Skip to content
v2.275.0

VersioningConfigurationProperty Struct ​

Describes the versioning state of an Amazon S3 bucket.

For more information, see PUT Bucket versioning in the Amazon S3 API Reference .

Keep the following timing in mind when enabling, suspending, or transitioning between versioning states:

  • Enabling versioning - Changes may take up to 15 minutes to propagate across all AWS regions for full consistency.
  • Suspending versioning - Takes effect immediately with no propagation delay.
  • Transitioning between states - Any change from Suspended to Enabled has a 15-minute delay.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const versioningConfigurationProperty: s3.CfnBucket.VersioningConfigurationProperty = {
  status: 'status',
};

Properties ​

statusstringstatusstrstatusStringStatusstringStatus*string= "Suspended"required#
The versioning state of the bucket.