class AutoDeleteObjects
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Mixins.AutoDeleteObjects |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/mixins#AutoDeleteObjects |
Java | software.amazon.awscdk.mixins.preview.services.s3.mixins.AutoDeleteObjects |
Python | aws_cdk.mixins_preview.aws_s3.mixins.AutoDeleteObjects |
TypeScript (source) | @aws-cdk/mixins-preview ยป aws_s3 ยป mixins ยป AutoDeleteObjects |
Implements
IMixin
S3-specific mixin for auto-deleting objects.
Example
const bucket = new s3.CfnBucket(scope, "Bucket");
Mixins.of(bucket).apply(new AutoDeleteObjects());
Initializer
new AutoDeleteObjects()
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): IConstruct
Parameters
- construct
IConstruct
Returns
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 (