Skip to content
v2.275.0

CfnCustomResourcePropsMixin Mixin ​

The AWS::CloudFormation::CustomResource resource creates a custom resource.

Custom resources provide a way for you to write custom provisioning logic into your CloudFormation templates and have CloudFormation run it anytime you create, update (if you changed the custom resource), or delete a stack.

For more information, see Create custom provisioning logic with custom resources in the CloudFormation User Guide .

If you use AWS PrivateLink , custom resources in the VPC must have access to CloudFormation -specific Amazon S3 buckets. Custom resources must send responses to a presigned Amazon S3 URL. If they can't send responses to Amazon S3 , CloudFormation won't receive a response and the stack operation fails. For more information, see Access CloudFormation using an interface endpoint ( AWS PrivateLink ) in the CloudFormation User Guide .

Initializer ​

ts
new CfnCustomResourcePropsMixin(props: CfnCustomResourceMixinProps, options?: CfnPropertyMixinOptions)
python
CfnCustomResourcePropsMixin(props: CfnCustomResourceMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnCustomResourcePropsMixin(CfnCustomResourceMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnCustomResourcePropsMixin(CfnCustomResourceMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnCustomResourcePropsMixin(Props CfnCustomResourceMixinProps, 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.