Class CustomResourceProvider
(deprecated) Represents a provider for an AWS CloudFormation custom resources.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CloudFormation
Assembly: Amazon.CDK.AWS.CloudFormation.dll
Syntax (csharp)
public class CustomResourceProvider : DeputyBase, ICustomResourceProvider
Syntax (vb)
Public Class CustomResourceProvider
Inherits DeputyBase
Implements ICustomResourceProvider
Remarks
Stability: Deprecated
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.CloudFormation;
using Amazon.CDK.AWS.Lambda;
Function myFunction;
// invoke an AWS Lambda function when a lifecycle event occurs:
var provider = CustomResourceProvider.FromLambda(myFunction);
Synopsis
Constructors
CustomResourceProvider(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CustomResourceProvider(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
ServiceToken | (deprecated) the ServiceToken which contains the ARN for this provider. |
Methods
Bind(Construct) | (deprecated) Called when this provider is used by a |
FromLambda(IFunction) | (deprecated) The Lambda provider that implements this custom resource. |
FromTopic(ITopic) | (deprecated) The SNS Topic for the provider that implements this custom resource. |
Lambda(IFunction) | (deprecated) Use AWS Lambda as a provider. |
Topic(ITopic) | (deprecated) Use an SNS topic as the provider. |
Constructors
CustomResourceProvider(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CustomResourceProvider(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CustomResourceProvider(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CustomResourceProvider(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
ServiceToken
(deprecated) the ServiceToken which contains the ARN for this provider.
public virtual string ServiceToken { get; }
Property Value
System.String
Remarks
Stability: Deprecated
Methods
Bind(Construct)
(deprecated) Called when this provider is used by a CustomResource
.
public virtual ICustomResourceProviderConfig Bind(Construct _)
Parameters
Returns
Remarks
Stability: Deprecated
FromLambda(IFunction)
(deprecated) The Lambda provider that implements this custom resource.
public static CustomResourceProvider FromLambda(IFunction handler)
Parameters
- handler IFunction
Returns
Remarks
We recommend using a lambda.SingletonFunction for this.
Stability: Deprecated
FromTopic(ITopic)
(deprecated) The SNS Topic for the provider that implements this custom resource.
public static CustomResourceProvider FromTopic(ITopic topic)
Parameters
- topic ITopic
Returns
Remarks
Stability: Deprecated
Lambda(IFunction)
(deprecated) Use AWS Lambda as a provider.
public static CustomResourceProvider Lambda(IFunction handler)
Parameters
- handler IFunction
Returns
Remarks
Stability: Deprecated
Topic(ITopic)
(deprecated) Use an SNS topic as the provider.
public static CustomResourceProvider Topic(ITopic topic)
Parameters
- topic ITopic
Returns
Remarks
Stability: Deprecated