FolderExclusion
Manages a folder-level logging exclusion. For more information see the official documentation and Excluding Logs.
Note that you must have the “Logs Configuration Writer” IAM role (roles/logging.configWriter)
granted to the credentials used with this provider.
Create a FolderExclusion Resource
new FolderExclusion(name: string, args: FolderExclusionArgs, opts?: CustomResourceOptions);def FolderExclusion(resource_name, opts=None, description=None, disabled=None, filter=None, folder=None, name=None, __props__=None);func NewFolderExclusion(ctx *Context, name string, args FolderExclusionArgs, opts ...ResourceOption) (*FolderExclusion, error)public FolderExclusion(string name, FolderExclusionArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
FolderExclusion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The FolderExclusion resource accepts the following input properties:
- Filter string
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.
- Folder string
The folder to be exported to the sink. Note that either [FOLDER_ID] or “folders/[FOLDER_ID]” is accepted.
- Description string
A human-readable description.
- Disabled bool
Whether this exclusion rule should be disabled or not. This defaults to false.
- Name string
The name of the logging exclusion.
- Filter string
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.
- Folder string
The folder to be exported to the sink. Note that either [FOLDER_ID] or “folders/[FOLDER_ID]” is accepted.
- Description string
A human-readable description.
- Disabled bool
Whether this exclusion rule should be disabled or not. This defaults to false.
- Name string
The name of the logging exclusion.
- filter string
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.
- folder string
The folder to be exported to the sink. Note that either [FOLDER_ID] or “folders/[FOLDER_ID]” is accepted.
- description string
A human-readable description.
- disabled boolean
Whether this exclusion rule should be disabled or not. This defaults to false.
- name string
The name of the logging exclusion.
- filter str
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.
- folder str
The folder to be exported to the sink. Note that either [FOLDER_ID] or “folders/[FOLDER_ID]” is accepted.
- description str
A human-readable description.
- disabled bool
Whether this exclusion rule should be disabled or not. This defaults to false.
- name str
The name of the logging exclusion.
Outputs
All input properties are implicitly available as output properties. Additionally, the FolderExclusion resource produces the following output properties:
Look up an Existing FolderExclusion Resource
Get an existing FolderExclusion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FolderExclusionState, opts?: CustomResourceOptions): FolderExclusionstatic get(resource_name, id, opts=None, description=None, disabled=None, filter=None, folder=None, name=None, __props__=None);func GetFolderExclusion(ctx *Context, name string, id IDInput, state *FolderExclusionState, opts ...ResourceOption) (*FolderExclusion, error)public static FolderExclusion Get(string name, Input<string> id, FolderExclusionState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Description string
A human-readable description.
- Disabled bool
Whether this exclusion rule should be disabled or not. This defaults to false.
- Filter string
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.
- Folder string
The folder to be exported to the sink. Note that either [FOLDER_ID] or “folders/[FOLDER_ID]” is accepted.
- Name string
The name of the logging exclusion.
- Description string
A human-readable description.
- Disabled bool
Whether this exclusion rule should be disabled or not. This defaults to false.
- Filter string
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.
- Folder string
The folder to be exported to the sink. Note that either [FOLDER_ID] or “folders/[FOLDER_ID]” is accepted.
- Name string
The name of the logging exclusion.
- description string
A human-readable description.
- disabled boolean
Whether this exclusion rule should be disabled or not. This defaults to false.
- filter string
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.
- folder string
The folder to be exported to the sink. Note that either [FOLDER_ID] or “folders/[FOLDER_ID]” is accepted.
- name string
The name of the logging exclusion.
- description str
A human-readable description.
- disabled bool
Whether this exclusion rule should be disabled or not. This defaults to false.
- filter str
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.
- folder str
The folder to be exported to the sink. Note that either [FOLDER_ID] or “folders/[FOLDER_ID]” is accepted.
- name str
The name of the logging exclusion.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.