import * as pulumi from "@pulumi/pulumi"; /** * Manages a project-level logging exclusion. For more information see: * * * [API documentation](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.exclusions) * * How-to Guides * * [Excluding Logs](https://cloud.google.com/logging/docs/exclusions) * * > You can specify exclusions for log sinks created by the provider by using the exclusions field of `gcp.logging.ProjectSink` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const my_exclusion = new gcp.logging.ProjectExclusion("my-exclusion", { * name: "my-instance-debug-exclusion", * description: "Exclude GCE instance debug logs", * filter: "resource.type = gce_instance AND severity <= DEBUG", * }); * ``` * * ## Import * * Project-level logging exclusions can be imported using their URI, e.g. * * * `projects/{{project_id}}/exclusions/{{name}}` * * When using the `pulumi import` command, project-level logging exclusions can be imported using one of the formats above. For example: * * ```sh * $ pulumi import gcp:logging/projectExclusion:ProjectExclusion default projects/{{project_id}}/exclusions/{{name}} * ``` */ export declare class ProjectExclusion extends pulumi.CustomResource { /** * Get an existing ProjectExclusion resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ProjectExclusionState, opts?: pulumi.CustomResourceOptions): ProjectExclusion; /** * Returns true if the given object is an instance of ProjectExclusion. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ProjectExclusion; /** * A human-readable description. */ readonly description: pulumi.Output; /** * Whether this exclusion rule should be disabled or not. This defaults to * false. */ readonly disabled: pulumi.Output; /** * The filter to apply when excluding logs. Only log entries that match the filter are excluded. * See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced-filters) for information on how to * write a filter. */ readonly filter: pulumi.Output; /** * The name of the logging exclusion. */ readonly name: pulumi.Output; /** * The project to create the exclusion in. If omitted, the project associated with the provider is * used. */ readonly project: pulumi.Output; /** * Create a ProjectExclusion resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ProjectExclusionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ProjectExclusion resources. */ export interface ProjectExclusionState { /** * A human-readable description. */ description?: pulumi.Input; /** * Whether this exclusion rule should be disabled or not. This defaults to * false. */ disabled?: pulumi.Input; /** * The filter to apply when excluding logs. Only log entries that match the filter are excluded. * See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced-filters) for information on how to * write a filter. */ filter?: pulumi.Input; /** * The name of the logging exclusion. */ name?: pulumi.Input; /** * The project to create the exclusion in. If omitted, the project associated with the provider is * used. */ project?: pulumi.Input; } /** * The set of arguments for constructing a ProjectExclusion resource. */ export interface ProjectExclusionArgs { /** * A human-readable description. */ description?: pulumi.Input; /** * Whether this exclusion rule should be disabled or not. This defaults to * false. */ disabled?: pulumi.Input; /** * The filter to apply when excluding logs. Only log entries that match the filter are excluded. * See [Advanced Log Filters](https://cloud.google.com/logging/docs/view/advanced-filters) for information on how to * write a filter. */ filter: pulumi.Input; /** * The name of the logging exclusion. */ name?: pulumi.Input; /** * The project to create the exclusion in. If omitted, the project associated with the provider is * used. */ project?: pulumi.Input; }