CustomResourceProvider
- class aws_cdk.aws_cloudformation.CustomResourceProvider(*args: Any, **kwargs)
 Bases:
object(deprecated) Represents a provider for an AWS CloudFormation custom resources.
- Deprecated:
 use core.CustomResource instead
- Stability:
 deprecated
- ExampleMetadata:
 infused
Example:
import aws_cdk.aws_cloudformation as cloudformation import aws_cdk.aws_lambda as lambda_ # my_function: lambda.Function # invoke an AWS Lambda function when a lifecycle event occurs: provider = cloudformation.CustomResourceProvider.from_lambda(my_function)
Methods
- bind(_)
 (deprecated) Called when this provider is used by a
CustomResource.- Parameters:
 _
- Stability:
 deprecated
- Return type:
 
Attributes
- service_token
 (deprecated) the ServiceToken which contains the ARN for this provider.
- Stability:
 deprecated
Static Methods
- classmethod from_lambda(handler)
 (deprecated) The Lambda provider that implements this custom resource.
We recommend using a lambda.SingletonFunction for this.
- Parameters:
 handler (
IFunction)- Stability:
 deprecated
- Return type:
 
- classmethod from_topic(topic)
 (deprecated) The SNS Topic for the provider that implements this custom resource.
- Parameters:
 topic (
ITopic)- Stability:
 deprecated
- Return type:
 
- classmethod lambda_(handler)
 (deprecated) Use AWS Lambda as a provider.
- Parameters:
 handler (
IFunction)- Deprecated:
 use
fromLambda- Stability:
 deprecated
- Return type: