@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-11T17:58:40.584Z") @Stability(value=Stable) public enum CustomResourceProviderRuntime extends Enum<CustomResourceProviderRuntime>
This also indicates which language is used for the handler.
Example:
String serviceToken = CustomResourceProvider.getOrCreate(this, "Custom::MyCustomResourceType", CustomResourceProviderProps.builder()
.codeDirectory(String.format("%s/my-handler", __dirname))
.runtime(CustomResourceProviderRuntime.NODEJS_12_X)
.description("Lambda function created by the custom resource provider")
.build());
CustomResource.Builder.create(this, "MyResource")
.resourceType("Custom::MyCustomResourceType")
.serviceToken(serviceToken)
.build();
| Enum Constant and Description |
|---|
NODEJS_12
Deprecated.
Use
NODEJS_12_X |
NODEJS_14_X
Node.js 14.x.
|
| Modifier and Type | Method and Description |
|---|---|
static CustomResourceProviderRuntime |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CustomResourceProviderRuntime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Deprecated) @Deprecated public static final CustomResourceProviderRuntime NODEJS_12
NODEJS_12_X@Stability(value=Stable) public static final CustomResourceProviderRuntime NODEJS_14_X
public static CustomResourceProviderRuntime[] values()
for (CustomResourceProviderRuntime c : CustomResourceProviderRuntime.values()) System.out.println(c);
public static CustomResourceProviderRuntime valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.