class EnableVersioning
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Mixins.EnableVersioning |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/mixins#EnableVersioning |
Java | software.amazon.awscdk.mixins.preview.services.s3.mixins.EnableVersioning |
Python | aws_cdk.mixins_preview.aws_s3.mixins.EnableVersioning |
TypeScript (source) | @aws-cdk/mixins-preview ยป aws_s3 ยป mixins ยป EnableVersioning |
Implements
IMixin
S3-specific mixin for enabling versioning.
Example
import '@aws-cdk/mixins-preview/with';
const bucket = new s3.CfnBucket(scope, "MyBucket")
.with(new EnableVersioning())
.with(new AutoDeleteObjects());
Initializer
new EnableVersioning()
Methods
| Name | Description |
|---|---|
| apply | Applies the mixin functionality to the target construct. |
| supports(construct) | Determines whether this mixin can be applied to the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Applies the mixin functionality to the target construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Determines whether this mixin can be applied to the given construct.

.NET
Go
Java
Python
TypeScript (