import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed. * Auto-naming is currently not supported for this resource. */ export declare class FolderBucket extends pulumi.CustomResource { /** * Get an existing FolderBucket 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): FolderBucket; /** * Returns true if the given object is an instance of FolderBucket. 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 FolderBucket; /** * Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled. */ readonly analyticsEnabled: pulumi.Output; /** * Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */ readonly bucketId: pulumi.Output; /** * The CMEK settings of the log bucket. If present, new log entries written to this log bucket are encrypted using the CMEK key provided in this configuration. If a log bucket has CMEK settings, the CMEK settings cannot be disabled later by updating the log bucket. Changing the KMS key is allowed. */ readonly cmekSettings: pulumi.Output; /** * The creation timestamp of the bucket. This is not set for any of the default buckets. */ readonly createTime: pulumi.Output; /** * Describes this bucket. */ readonly description: pulumi.Output; readonly folderId: pulumi.Output; /** * A list of indexed fields and related configuration data. */ readonly indexConfigs: pulumi.Output; /** * The bucket lifecycle state. */ readonly lifecycleState: pulumi.Output; readonly location: pulumi.Output; /** * Whether the bucket is locked.The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty. */ readonly locked: pulumi.Output; /** * The resource name of the bucket.For example:projects/my-project/locations/global/buckets/my-bucketFor a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support)For the location of global it is unspecified where log entries are actually stored.After a bucket has been created, the location cannot be changed. */ readonly name: pulumi.Output; /** * Log entry field paths that are denied access in this bucket.The following fields and their children are eligible: textPayload, jsonPayload, protoPayload, httpRequest, labels, sourceLocation.Restricting a repeated field will restrict all values. Adding a parent will block all child fields. (e.g. foo.bar will block foo.bar.baz) */ readonly restrictedFields: pulumi.Output; /** * Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used. */ readonly retentionDays: pulumi.Output; /** * The last update timestamp of the bucket. */ readonly updateTime: pulumi.Output; /** * Create a FolderBucket 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: FolderBucketArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a FolderBucket resource. */ export interface FolderBucketArgs { /** * Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled. */ analyticsEnabled?: pulumi.Input; /** * Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */ bucketId: pulumi.Input; /** * The CMEK settings of the log bucket. If present, new log entries written to this log bucket are encrypted using the CMEK key provided in this configuration. If a log bucket has CMEK settings, the CMEK settings cannot be disabled later by updating the log bucket. Changing the KMS key is allowed. */ cmekSettings?: pulumi.Input; /** * Describes this bucket. */ description?: pulumi.Input; folderId: pulumi.Input; /** * A list of indexed fields and related configuration data. */ indexConfigs?: pulumi.Input[]>; location?: pulumi.Input; /** * Whether the bucket is locked.The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty. */ locked?: pulumi.Input; /** * Log entry field paths that are denied access in this bucket.The following fields and their children are eligible: textPayload, jsonPayload, protoPayload, httpRequest, labels, sourceLocation.Restricting a repeated field will restrict all values. Adding a parent will block all child fields. (e.g. foo.bar will block foo.bar.baz) */ restrictedFields?: pulumi.Input[]>; /** * Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used. */ retentionDays?: pulumi.Input; }