Class Provider
Defines an AWS CloudFormation custom resource provider.
Inheritance
Namespace: Amazon.CDK.CustomResources
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class Provider : Construct
Syntax (vb)
Public Class Provider
Inherits Construct
Remarks
ExampleMetadata: infused
Examples
Function onEvent;
Function isComplete;
Role myRole;
var myProvider = new Provider(this, "MyProvider", new ProviderProps {
OnEventHandler = onEvent,
IsCompleteHandler = isComplete,
LogGroup = new LogGroup(this, "MyProviderLogs", new LogGroupProps {
Retention = RetentionDays.ONE_DAY
}),
Role = myRole,
ProviderFunctionName = "the-lambda-name"
});
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. |
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