Skip to content
v2.273.0

CfnBucketPropsMixin Mixin ​

The AWS::S3::Bucket resource creates an Amazon S3 bucket in the same AWS Region where you create the AWS CloudFormation stack.

To control how AWS CloudFormation handles the bucket when the stack is deleted, you can set a deletion policy for your bucket. You can choose to retain the bucket or to delete the bucket. For more information, see DeletionPolicy Attribute .

You can only delete empty buckets. Deletion fails for buckets that have contents.

Initializer ​

ts
new CfnBucketPropsMixin(props: CfnBucketMixinProps, options?: CfnPropertyMixinOptions)
python
CfnBucketPropsMixin(props: CfnBucketMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnBucketPropsMixin(CfnBucketMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnBucketPropsMixin(CfnBucketMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnBucketPropsMixin(Props CfnBucketMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Mixin.

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#
Check if this mixin supports the given construct.