Class OrganizationExclusion
Manages an organization-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.
Example Usage
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var my_exclusion = new Gcp.Logging.OrganizationExclusion("my-exclusion", new Gcp.Logging.OrganizationExclusionArgs
{
Description = "Exclude GCE instance debug logs",
Filter = "resource.type = gce_instance AND severity <= DEBUG",
OrgId = "123456789",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Logging
Assembly: Pulumi.Gcp.dll
Syntax
public class OrganizationExclusion : CustomResource
Constructors
View SourceOrganizationExclusion(String, OrganizationExclusionArgs, CustomResourceOptions)
Create a OrganizationExclusion resource with the given unique name, arguments, and options.
Declaration
public OrganizationExclusion(string name, OrganizationExclusionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| OrganizationExclusionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDescription
A human-readable description.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Disabled
Whether this exclusion rule should be disabled or not. This defaults to false.
Declaration
public Output<bool?> Disabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Filter
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.
Declaration
public Output<string> Filter { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the logging exclusion.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OrgId
The organization to create the exclusion in.
Declaration
public Output<string> OrgId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, OrganizationExclusionState, CustomResourceOptions)
Get an existing OrganizationExclusion resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static OrganizationExclusion Get(string name, Input<string> id, OrganizationExclusionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| OrganizationExclusionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| OrganizationExclusion |