BucketVersioning
- class aws_cdk.aws_s3.mixins.BucketVersioning(enabled=None)
Bases:
MixinS3-specific mixin for enabling versioning.
- ExampleMetadata:
infused
Example:
s3.CfnBucket(self, "Bucket").with(s3.mixins.BucketVersioning())
- Parameters:
enabled (
Optional[bool])
Methods
- apply_to(construct)
Applies the mixin functionality to the target construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Determines whether this mixin can be applied to the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.