@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:20:01.360Z") public class Provider extends Construct implements ICustomResourceProvider
Example:
import software.amazon.awscdk.customresources.*; import software.amazon.awscdk.services.lambda.*; import software.amazon.awscdk.core.Stack; Function myOnEventLambda; Function myIsCompleteLambda; Stack stack = new Stack(); Provider provider = Provider.Builder.create(stack, "myProvider") .onEventHandler(myOnEventLambda) .isCompleteHandler(myIsCompleteLambda) .build();
Modifier and Type | Class and Description |
---|---|
static class |
Provider.Builder
A fluent builder for
Provider . |
ICustomResourceProvider.Jsii$Default, ICustomResourceProvider.Jsii$Proxy
IConstruct.Jsii$Default, IConstruct.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Provider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Provider(software.amazon.jsii.JsiiObjectRef objRef) |
|
Provider(software.constructs.Construct scope,
java.lang.String id,
ProviderProps props) |
Modifier and Type | Method and Description |
---|---|
CustomResourceProviderConfig |
bind(Construct _scope)
Deprecated.
use `provider.serviceToken` instead
|
IFunction |
getIsCompleteHandler()
The user-defined AWS Lambda function which is invoked asynchronously in order to determine if the operation is complete.
|
IFunction |
getOnEventHandler()
The user-defined AWS Lambda function which is invoked for all resource lifecycle operations (CREATE/UPDATE/DELETE).
|
java.lang.String |
getServiceToken()
The service token to use in order to define custom resources that are backed by this provider.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
protected Provider(software.amazon.jsii.JsiiObjectRef objRef)
protected Provider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Provider(software.constructs.Construct scope, java.lang.String id, ProviderProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.@Deprecated public CustomResourceProviderConfig bind(Construct _scope)
bind
in interface ICustomResourceProvider
_scope
- This parameter is required.public IFunction getOnEventHandler()
public java.lang.String getServiceToken()
public IFunction getIsCompleteHandler()