googleLoggingBillingAccountExclusion
Manages a billing account logging exclusion. For more information see:
- API documentation
- How-to Guides
- Excluding Logs
\~> You can specify exclusions for log sinks created by terraform by using the exclusions field of googleLoggingBillingAccountSink
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.loggingBillingAccountExclusion.LoggingBillingAccountExclusion(
this,
"my-exclusion",
{
billing_account: "ABCDEF-012345-GHIJKL",
description: "Exclude GCE instance debug logs",
filter: "resource.type = gce_instance AND severity <= DEBUG",
name: "my-instance-debug-exclusion",
}
);
Argument Reference
The following arguments are supported:
-
billingAccount
- (Required) The billing account to create the exclusion for. -
name
- (Required) The name of the logging exclusion. -
description
- (Optional) A human-readable description. -
disabled
- (Optional) Whether this exclusion rule should be disabled or not. This defaults to false. -
filter
- (Required) The filter to apply when excluding logs. Only log entries that match the filter are excluded. See Advanced Log Filters for information on how to write a filter.
Attributes Reference
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with formatbillingAccounts/{{billingAccount}}/exclusions/{{name}}
Import
Billing account logging exclusions can be imported using their URI, e.g.