Data Source: azurermMonitorDiagnosticCategories
Use this data source to access information about the Monitor Diagnostics Categories supported by an existing Resource.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermKeyVaultExample =
new azurerm.dataAzurermKeyVault.DataAzurermKeyVault(this, "example", {
name: "${azurerm_key_vault.example.name}",
resource_group_name: "${azurerm_key_vault.example.resource_group_name}",
});
const dataAzurermMonitorDiagnosticCategoriesExample =
new azurerm.dataAzurermMonitorDiagnosticCategories.DataAzurermMonitorDiagnosticCategories(
this,
"example_1",
{
resource_id: dataAzurermKeyVaultExample.id,
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
dataAzurermMonitorDiagnosticCategoriesExample.overrideLogicalId("example");
Argument Reference
resourceId
- The ID of an existing Resource which Monitor Diagnostics Categories should be retrieved for.
Attributes Reference
-
id
- The ID of the Resource. -
logs
- A list of the Log Categories supported for this Resource. -
\~> NOTE:
logs
is deprecated and will be removed in favour of the propertylogCategoryTypes
andlogCategoryGroups
in version 4.0 of the AzureRM Provider. -
logCategoryTypes
- A list of the supported log category types of this resource to send to the destination. -
logCategoryGroups
- A list of the supported log category groups of this resource to send to the destination. -
metrics
- A list of the Metric Categories supported for this Resource.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Monitor Diagnostics Categories.