google-native logo
Google Cloud Native v0.28.0, Feb 2 23

google-native.logging/v2.FolderExclusion

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 FolderExclusion Resource

new FolderExclusion(name: string, args: FolderExclusionArgs, opts?: CustomResourceOptions);
@overload
def FolderExclusion(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    disabled: Optional[bool] = None,
                    filter: Optional[str] = None,
                    folder_id: Optional[str] = None,
                    name: Optional[str] = None)
@overload
def FolderExclusion(resource_name: str,
                    args: FolderExclusionArgs,
                    opts: Optional[ResourceOptions] = None)
func NewFolderExclusion(ctx *Context, name string, args FolderExclusionArgs, opts ...ResourceOption) (*FolderExclusion, error)
public FolderExclusion(string name, FolderExclusionArgs args, CustomResourceOptions? opts = null)
public FolderExclusion(String name, FolderExclusionArgs args)
public FolderExclusion(String name, FolderExclusionArgs args, CustomResourceOptions options)
type: google-native:logging/v2:FolderExclusion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FolderExclusionArgs
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 FolderExclusionArgs
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 FolderExclusionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FolderExclusionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FolderExclusionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FolderExclusion Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The FolderExclusion resource accepts the following input properties:

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)

FolderId string
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.

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)

FolderId string
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.

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)

folderId String
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.

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)

folderId string
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.

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)

folder_id str
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.

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)

folderId String
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 FolderExclusion resource produces the following output properties:

CreateTime 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.

UpdateTime string

The last update timestamp of the exclusion.This field may not be present for older exclusions.

CreateTime 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.

UpdateTime string

The last update timestamp of the exclusion.This field may not be present for older exclusions.

createTime 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.

updateTime String

The last update timestamp of the exclusion.This field may not be present for older exclusions.

createTime 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.

updateTime 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.

createTime 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.

updateTime 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