class BucketVersioning (mixin)
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.S3.Mixins.BucketVersioning |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3/mixins#BucketVersioning |
Java | software.amazon.awscdk.services.s3.mixins.BucketVersioning |
Python | aws_cdk.aws_s3.mixins.BucketVersioning |
TypeScript (source) | aws-cdk-lib » aws_s3 » mixins » BucketVersioning |
Implements
IMixin
Extends
Mixin
S3-specific mixin for enabling versioning.
Example
new s3.CfnBucket(this, 'Bucket')
.with(new s3.mixins.BucketVersioning());
Initializer
new BucketVersioning(enabled?: boolean)
Parameters
- enabled
boolean
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): void
Parameters
- construct
IConstruct
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 (