@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:19:53.045Z") public enum CustomResourceProviderRuntime extends java.lang.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(java.lang.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.
|
@Deprecated public static final CustomResourceProviderRuntime NODEJS_12
NODEJS_12_X
public static final CustomResourceProviderRuntime NODEJS_14_X
public static CustomResourceProviderRuntime[] values()
for (CustomResourceProviderRuntime c : CustomResourceProviderRuntime.values()) System.out.println(c);
public static CustomResourceProviderRuntime valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null