ProjectBucketConfigState constructor
- Input<
String?> ? bucketId, - Input<
ProjectBucketConfigCmekSettings?> ? cmekSettings, - Input<
String?> ? deletionPolicy, - Input<
String?> ? description, - Input<
bool?> ? enableAnalytics, - Input<
List< ? indexConfigs,ProjectBucketConfigIndexConfig> ?> - Input<
String?> ? lifecycleState, - Input<
String?> ? location, - Input<
bool?> ? locked, - Input<
String?> ? name, - Input<
String?> ? project, - Input<
int?> ? retentionDays,
Creates a new ProjectBucketConfigState.
bucketId The name of the logging bucket. Logging automatically creates two log buckets: _Required and _Default.
cmekSettings 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. Structure is documented below.
deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to "DELETE".
description Describes this bucket.
enableAnalytics Whether or not Log Analytics is enabled. Logs for buckets with Log Analytics enabled can be queried in the Log Analytics page using SQL queries. Cannot be disabled once enabled.
indexConfigs A list of indexed fields and related configuration data. Structure is documented below.
lifecycleState The bucket's lifecycle such as active or deleted. See LifecycleState.
location The location of the bucket.
locked 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.
name The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id"
project The parent resource that contains the logging bucket.
retentionDays 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.
Implementation
const ProjectBucketConfigState({
this.bucketId,
this.cmekSettings,
this.deletionPolicy,
this.description,
this.enableAnalytics,
this.indexConfigs,
this.lifecycleState,
this.location,
this.locked,
this.name,
this.project,
this.retentionDays,
});