Data Source: azurermMonitorLogProfile
Use this data source to access the properties of a Log Profile.
Example Usage
import * as cdktf from "cdktf";
/*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 dataAzurermMonitorLogProfileExample =
new azurerm.dataAzurermMonitorLogProfile.DataAzurermMonitorLogProfile(
this,
"example",
{
name: "test-logprofile",
}
);
new cdktf.TerraformOutput(this, "log_profile_storage_account_id", {
value: dataAzurermMonitorLogProfileExample.storageAccountId,
});
Argument Reference
name
- Specifies the Name of the Log Profile.
Attributes Reference
-
id
- The ID of the Log Profile. -
storageAccountId
- The resource id of the storage account in which the Activity Log is stored. -
servicebusRuleId
- The service bus (or event hub) rule ID of the service bus (or event hub) namespace in which the Activity Log is streamed to. -
locations
- List of regions for which Activity Log events are stored or streamed. -
categories
- List of categories of the logs. -
retentionPolicy
- aretentionPolicy
block as documented below.
The retentionPolicy
block supports:
-
enabled
- A boolean value indicating whether the retention policy is enabled. -
days
- The number of days for the retention policy.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Log Profile.