BucketObjectLockConfigurationV2Args constructor

const BucketObjectLockConfigurationV2Args({
  1. required Input<String> bucket,
  2. Input<String?>? expectedBucketOwner,
  3. Input<String?>? objectLockEnabled,
  4. Input<String?>? region,
  5. Input<BucketObjectLockConfigurationV2Rule?>? rule,
  6. Input<String?>? token,
})

Creates a new BucketObjectLockConfigurationV2Args. bucket Name of the bucket. expectedBucketOwner Account ID of the expected bucket owner. objectLockEnabled Whether this bucket has an Object Lock configuration enabled. Defaults to Enabled. Valid values: Enabled. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. rule Configuration block for specifying the Object Lock rule for the specified object. See below. token Token to allow Object Lock to be enabled for an existing bucket. To enable Object Lock for an existing bucket, you must first enable versioning on the bucket and then enable Object Lock. For more details on versioning, see the aws.s3.BucketVersioning resource.

Implementation

const BucketObjectLockConfigurationV2Args({
  required this.bucket,
  this.expectedBucketOwner,
  this.objectLockEnabled,
  this.region,
  this.rule,
  this.token,
});