AutoDeleteObjects

class aws_cdk.mixins_preview.aws_s3.mixins.AutoDeleteObjects

Bases: object

(experimental) S3-specific mixin for auto-deleting objects.

Stability:

experimental

Mixin:

true

ExampleMetadata:

infused

Example:

bucket = s3.CfnBucket(scope, "Bucket")
Mixins.of(bucket).apply(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