BucketArgs constructor

const BucketArgs({
  1. Input<bool>? analyticsEnabled,
  2. required Input<String> bucketId,
  3. Input<CmekSettings>? cmekSettings,
  4. Input<String>? description,
  5. Input<List<IndexConfig>>? indexConfigs,
  6. Input<String>? location,
  7. Input<bool>? locked,
  8. Input<String>? project,
  9. Input<List<String>>? restrictedFields,
  10. Input<int>? retentionDays,
})

Creates a new BucketArgs. analyticsEnabled Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled. bucketId 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. 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. description Describes this bucket. indexConfigs A list of indexed fields and related configuration data. location Optional. 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. project Optional. restrictedFields 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) 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 BucketArgs({
  this.analyticsEnabled,
  required this.bucketId,
  this.cmekSettings,
  this.description,
  this.indexConfigs,
  this.location,
  this.locked,
  this.project,
  this.restrictedFields,
  this.retentionDays,
});