@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:16.495Z") @Stability(value=Experimental) public class Provider extends Construct implements ICustomResourceProvider
Example:
// Example automatically generated from non-compiling source. May contain errors.
import software.amazon.awscdk.core.CustomResource;
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.core.*;
Function onEvent = Function.Builder.create(this, "MyHandler").build();
Role myRole = Role.Builder.create(this, "MyRole").build();
Provider myProvider = Provider.Builder.create(this, "MyProvider")
.onEventHandler(onEvent)
.isCompleteHandler(isComplete) // optional async "waiter"
.logRetention(RetentionDays.ONE_DAY) // default is INFINITE
.role(myRole)
.build();
CustomResource.Builder.create(this, "Resource1").serviceToken(myProvider.getServiceToken()).build();
CustomResource.Builder.create(this, "Resource2").serviceToken(myProvider.getServiceToken()).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.