interface VersioningConfigurationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.S3.CfnBucket.VersioningConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnBucket_VersioningConfigurationProperty |
Java | software.amazon.awscdk.services.s3.CfnBucket.VersioningConfigurationProperty |
Python | aws_cdk.aws_s3.CfnBucket.VersioningConfigurationProperty |
TypeScript | aws-cdk-lib » aws_s3 » CfnBucket » VersioningConfigurationProperty |
Describes the versioning state of an Amazon S3 bucket.
For more information, see PUT Bucket versioning in the Amazon S3 API Reference .
When you enable versioning on a bucket for the first time, it might take a short amount of time for the change to be fully propagated. We recommend that you wait for 15 minutes after enabling versioning before issuing write operations (
PUT
orDELETE
) on objects in the bucket.
Example
// 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
Name | Type | Description |
---|---|---|
status | string | The versioning state of the bucket. |
status
Type:
string
The versioning state of the bucket.