Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.logging/v2.BillingAccountExclusion
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
Create BillingAccountExclusion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BillingAccountExclusion(name: string, args: BillingAccountExclusionArgs, opts?: CustomResourceOptions);
@overload
def BillingAccountExclusion(resource_name: str,
args: BillingAccountExclusionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BillingAccountExclusion(resource_name: str,
opts: Optional[ResourceOptions] = None,
billing_account_id: Optional[str] = None,
filter: Optional[str] = None,
description: Optional[str] = None,
disabled: Optional[bool] = None,
name: Optional[str] = None)
func NewBillingAccountExclusion(ctx *Context, name string, args BillingAccountExclusionArgs, opts ...ResourceOption) (*BillingAccountExclusion, error)
public BillingAccountExclusion(string name, BillingAccountExclusionArgs args, CustomResourceOptions? opts = null)
public BillingAccountExclusion(String name, BillingAccountExclusionArgs args)
public BillingAccountExclusion(String name, BillingAccountExclusionArgs args, CustomResourceOptions options)
type: google-native:logging/v2:BillingAccountExclusion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args BillingAccountExclusionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BillingAccountExclusionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BillingAccountExclusionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BillingAccountExclusionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BillingAccountExclusionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var billingAccountExclusionResource = new GoogleNative.Logging.V2.BillingAccountExclusion("billingAccountExclusionResource", new()
{
BillingAccountId = "string",
Filter = "string",
Description = "string",
Disabled = false,
Name = "string",
});
example, err := logging.NewBillingAccountExclusion(ctx, "billingAccountExclusionResource", &logging.BillingAccountExclusionArgs{
BillingAccountId: pulumi.String("string"),
Filter: pulumi.String("string"),
Description: pulumi.String("string"),
Disabled: pulumi.Bool(false),
Name: pulumi.String("string"),
})
var billingAccountExclusionResource = new BillingAccountExclusion("billingAccountExclusionResource", BillingAccountExclusionArgs.builder()
.billingAccountId("string")
.filter("string")
.description("string")
.disabled(false)
.name("string")
.build());
billing_account_exclusion_resource = google_native.logging.v2.BillingAccountExclusion("billingAccountExclusionResource",
billing_account_id="string",
filter="string",
description="string",
disabled=False,
name="string")
const billingAccountExclusionResource = new google_native.logging.v2.BillingAccountExclusion("billingAccountExclusionResource", {
billingAccountId: "string",
filter: "string",
description: "string",
disabled: false,
name: "string",
});
type: google-native:logging/v2:BillingAccountExclusion
properties:
billingAccountId: string
description: string
disabled: false
filter: string
name: string
BillingAccountExclusion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BillingAccountExclusion resource accepts the following input properties:
- Billing
Account stringId - Filter string
- An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)
- Description string
- Optional. A description of this exclusion.
- Disabled bool
- Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
- Name string
- A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
- Billing
Account stringId - Filter string
- An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)
- Description string
- Optional. A description of this exclusion.
- Disabled bool
- Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
- Name string
- A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
- billing
Account StringId - filter String
- An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)
- description String
- Optional. A description of this exclusion.
- disabled Boolean
- Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
- name String
- A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
- billing
Account stringId - filter string
- An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)
- description string
- Optional. A description of this exclusion.
- disabled boolean
- Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
- name string
- A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
- billing_
account_ strid - filter str
- An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)
- description str
- Optional. A description of this exclusion.
- disabled bool
- Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
- name str
- A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
- billing
Account StringId - filter String
- An advanced logs filter (https://cloud.google.com/logging/docs/view/advanced-queries) that matches the log entries to be excluded. By using the sample function (https://cloud.google.com/logging/docs/view/advanced-queries#sample), you can exclude less than 100% of the matching log entries.For example, the following query matches 99% of low-severity log entries from Google Cloud Storage buckets:resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)
- description String
- Optional. A description of this exclusion.
- disabled Boolean
- Optional. If set to True, then this exclusion is disabled and it does not exclude any log entries. You can update an exclusion to change the value of this field.
- name String
- A client-assigned identifier, such as "load-balancer-exclusion". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. First character has to be alphanumeric.
Outputs
All input properties are implicitly available as output properties. Additionally, the BillingAccountExclusion resource produces the following output properties:
- Create
Time string - The creation timestamp of the exclusion.This field may not be present for older exclusions.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The last update timestamp of the exclusion.This field may not be present for older exclusions.
- Create
Time string - The creation timestamp of the exclusion.This field may not be present for older exclusions.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - The last update timestamp of the exclusion.This field may not be present for older exclusions.
- create
Time String - The creation timestamp of the exclusion.This field may not be present for older exclusions.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The last update timestamp of the exclusion.This field may not be present for older exclusions.
- create
Time string - The creation timestamp of the exclusion.This field may not be present for older exclusions.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - The last update timestamp of the exclusion.This field may not be present for older exclusions.
- create_
time str - The creation timestamp of the exclusion.This field may not be present for older exclusions.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - The last update timestamp of the exclusion.This field may not be present for older exclusions.
- create
Time String - The creation timestamp of the exclusion.This field may not be present for older exclusions.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - The last update timestamp of the exclusion.This field may not be present for older exclusions.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.