EnableVersioning

class aws_cdk.mixins_preview.aws_s3.mixins.EnableVersioning

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(EnableVersioning()).with(AutoDeleteObjects())
Stability:

experimental

Methods

apply_to(construct)

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

Parameters:

construct (IConstruct)

Stability:

experimental

Return type:

IConstruct

supports(construct)

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

Parameters:

construct (IConstruct)

Stability:

experimental

Return type:

bool