Class Provider
Defines an AWS CloudFormation custom resource provider.
Inherited Members
Namespace: Amazon.CDK.CustomResources
Assembly: Amazon.CDK.AWS.CustomResources.dll
Syntax (csharp)
public class Provider : Construct, IConstruct, IDependable, ICustomResourceProvider
Syntax (vb)
Public Class Provider
Inherits Construct
Implements IConstruct, IDependable, ICustomResourceProvider
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.CustomResources;
using Amazon.CDK.AWS.Lambda;
using Amazon.CDK;
Function myOnEventLambda;
Function myIsCompleteLambda;
var stack = new Stack();
var provider = new Provider(stack, "myProvider", new ProviderProps {
OnEventHandler = myOnEventLambda,
IsCompleteHandler = myIsCompleteLambda
});
Synopsis
Constructors
Provider(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Provider(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Provider(Construct, String, IProviderProps) |
Properties
IsCompleteHandler | The user-defined AWS Lambda function which is invoked asynchronously in order to determine if the operation is complete. |
OnEventHandler | The user-defined AWS Lambda function which is invoked for all resource lifecycle operations (CREATE/UPDATE/DELETE). |
ServiceToken | The service token to use in order to define custom resources that are backed by this provider. |
Methods
Bind(Construct) | (deprecated) Called by |
Constructors
Provider(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Provider(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Provider(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Provider(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Provider(Construct, String, IProviderProps)
public Provider(Construct scope, string id, IProviderProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IProviderProps
Properties
IsCompleteHandler
The user-defined AWS Lambda function which is invoked asynchronously in order to determine if the operation is complete.
public virtual IFunction IsCompleteHandler { get; }
Property Value
OnEventHandler
The user-defined AWS Lambda function which is invoked for all resource lifecycle operations (CREATE/UPDATE/DELETE).
public virtual IFunction OnEventHandler { get; }
Property Value
ServiceToken
The service token to use in order to define custom resources that are backed by this provider.
public virtual string ServiceToken { get; }
Property Value
System.String
Methods
Bind(Construct)
(deprecated) Called by CustomResource
which uses this provider.
public virtual ICustomResourceProviderConfig Bind(Construct scope)
Parameters
- scope Construct
Returns
Remarks
Stability: Deprecated