@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
133 lines (132 loc) • 4.94 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_exclusion = new gcp.logging.BillingAccountExclusion("my-exclusion", {
* name: "my-instance-debug-exclusion",
* billingAccount: "ABCDEF-012345-GHIJKL",
* description: "Exclude GCE instance debug logs",
* filter: "resource.type = gce_instance AND severity <= DEBUG",
* });
* ```
*
* ## Import
*
* Billing account logging exclusions can be imported using their URI, e.g.
*
* * `billingAccounts/{{billing_account}}/exclusions/{{name}}`
*
* When using the `pulumi import` command, billing account logging exclusions can be imported using one of the formats above. For example:
*
* ```sh
* $ pulumi import gcp:logging/billingAccountExclusion:BillingAccountExclusion default billingAccounts/{{billing_account}}/exclusions/{{name}}
* ```
*/
export declare class BillingAccountExclusion extends pulumi.CustomResource {
/**
* Get an existing BillingAccountExclusion 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<pulumi.ID>, state?: BillingAccountExclusionState, opts?: pulumi.CustomResourceOptions): BillingAccountExclusion;
/**
* Returns true if the given object is an instance of BillingAccountExclusion. 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 BillingAccountExclusion;
/**
* The billing account to create the exclusion for.
*/
readonly billingAccount: pulumi.Output<string>;
/**
* A human-readable description.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Whether this exclusion rule should be disabled or not. This defaults to
* false.
*/
readonly disabled: pulumi.Output<boolean | undefined>;
/**
* 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<string>;
/**
* The name of the logging exclusion.
*/
readonly name: pulumi.Output<string>;
/**
* Create a BillingAccountExclusion 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: BillingAccountExclusionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering BillingAccountExclusion resources.
*/
export interface BillingAccountExclusionState {
/**
* The billing account to create the exclusion for.
*/
billingAccount?: pulumi.Input<string>;
/**
* A human-readable description.
*/
description?: pulumi.Input<string>;
/**
* Whether this exclusion rule should be disabled or not. This defaults to
* false.
*/
disabled?: pulumi.Input<boolean>;
/**
* 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<string>;
/**
* The name of the logging exclusion.
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a BillingAccountExclusion resource.
*/
export interface BillingAccountExclusionArgs {
/**
* The billing account to create the exclusion for.
*/
billingAccount: pulumi.Input<string>;
/**
* A human-readable description.
*/
description?: pulumi.Input<string>;
/**
* Whether this exclusion rule should be disabled or not. This defaults to
* false.
*/
disabled?: pulumi.Input<boolean>;
/**
* 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<string>;
/**
* The name of the logging exclusion.
*/
name?: pulumi.Input<string>;
}