@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:15.933Z") @Stability(value=Experimental) public class Provider extends Construct implements ICustomResourceProvider
Example:
Function onEvent;
Function isComplete;
Role myRole;
Provider myProvider = Provider.Builder.create(this, "MyProvider")
.onEventHandler(onEvent)
.isCompleteHandler(isComplete)
.logRetention(RetentionDays.ONE_DAY)
.role(myRole)
.providerFunctionName("the-lambda-name")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
Provider.Builder
(experimental) A fluent builder for
Provider. |
software.amazon.jsii.JsiiObject.InitializationModeICustomResourceProvider.Jsii$Default, ICustomResourceProvider.Jsii$ProxyIConstruct.Jsii$Default, IConstruct.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Provider(software.constructs.Construct scope,
String id,
ProviderProps props) |
protected |
Provider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Provider(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
CustomResourceProviderConfig |
bind(Construct _scope)
Deprecated.
use `provider.serviceToken` instead
|
IFunction |
getIsCompleteHandler()
(experimental) The user-defined AWS Lambda function which is invoked asynchronously in order to determine if the operation is complete.
|
IFunction |
getOnEventHandler()
(experimental) The user-defined AWS Lambda function which is invoked for all resource lifecycle operations (CREATE/UPDATE/DELETE).
|
String |
getServiceToken()
(experimental) The service token to use in order to define custom resources that are backed by this provider.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Provider(software.amazon.jsii.JsiiObjectRef objRef)
protected Provider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Provider(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ProviderProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Deprecated) @Deprecated @NotNull public CustomResourceProviderConfig bind(@NotNull Construct _scope)
bind in interface ICustomResourceProvider_scope - This parameter is required.@Stability(value=Experimental) @NotNull public IFunction getOnEventHandler()
@Stability(value=Experimental) @NotNull public String getServiceToken()
@Stability(value=Experimental) @Nullable public IFunction getIsCompleteHandler()
Copyright © 2022. All rights reserved.