BucketVersioning

class aws_cdk.mixins_preview.aws_s3.mixins.BucketVersioning(enabled=None)

Bases: object

(experimental) S3-specific mixin for enabling versioning.

Stability:

experimental

ExampleMetadata:

infused

Example:

from aws_cdk.mixins_preview.with import


bucket = s3.CfnBucket(scope, "MyBucket").with(BucketVersioning()).with(AutoDeleteObjects())
Parameters:

enabled (Optional[bool])

Stability:

experimental

Methods

apply_to(construct)

(experimental) Applies the mixin functionality to the target construct.

Parameters:

construct (IConstruct)

Stability:

experimental

Return type:

None

supports(construct)

(experimental) Determines whether this mixin can be applied to the given construct.

Parameters:

construct (IConstruct)

Stability:

experimental

Return type:

bool