@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:42.446Z") @Stability(value=Experimental) public class CustomResourceProvider extends software.constructs.Construct
| Modifier | Constructor and Description |
|---|---|
protected |
CustomResourceProvider(software.constructs.Construct scope,
String id,
CustomResourceProviderProps props) |
protected |
CustomResourceProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CustomResourceProvider(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getOrCreate(software.constructs.Construct scope,
String uniqueid,
CustomResourceProviderProps props)
(experimental) Returns a stack-level singleton ARN (service token) for the custom resource provider.
|
static CustomResourceProvider |
getOrCreateProvider(software.constructs.Construct scope,
String uniqueid,
CustomResourceProviderProps props)
(experimental) Returns a stack-level singleton for the custom resource provider.
|
String |
getRoleArn()
(experimental) The ARN of the provider's AWS Lambda function role.
|
String |
getServiceToken()
(experimental) The ARN of the provider's AWS Lambda function which should be used as the `serviceToken` when defining a custom resource.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CustomResourceProvider(software.amazon.jsii.JsiiObjectRef objRef)
protected CustomResourceProvider(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected CustomResourceProvider(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CustomResourceProviderProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static String getOrCreate(@NotNull software.constructs.Construct scope, @NotNull String uniqueid, @NotNull CustomResourceProviderProps props)
scope - Construct scope. This parameter is required.uniqueid - A globally unique id that will be used for the stack-level construct. This parameter is required.props - Provider properties which will only be applied when the provider is first created. This parameter is required.@Stability(value=Experimental) @NotNull public static CustomResourceProvider getOrCreateProvider(@NotNull software.constructs.Construct scope, @NotNull String uniqueid, @NotNull CustomResourceProviderProps props)
scope - Construct scope. This parameter is required.uniqueid - A globally unique id that will be used for the stack-level construct. This parameter is required.props - Provider properties which will only be applied when the provider is first created. This parameter is required.@Stability(value=Experimental) @NotNull public String getRoleArn()
@Stability(value=Experimental) @NotNull public String getServiceToken()
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 new CustomResource(this, "MyCustomResource", new CustomResourceProps() // ... .serviceToken(myProvider.getServiceToken()));
Copyright © 2021. All rights reserved.