@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.885Z") @Stability(value=Stable) public enum CustomResourceProviderRuntime extends Enum<CustomResourceProviderRuntime>
This also indicates which language is used for the handler.
Example:
// Example automatically generated from non-compiling source. May contain errors.
CustomResourceProvider provider = CustomResourceProvider.getOrCreateProvider(this, "Custom::MyCustomResourceType", CustomResourceProviderProps.builder()
.codeDirectory(String.format("%s/my-handler", __dirname))
.runtime(CustomResourceProviderRuntime.NODEJS_14_X)
.build());
provider.addToRolePolicy(Map.of(
"Effect", "Allow",
"Action", "s3:GetObject",
"Resource", "*"));
| Enum Constant and Description |
|---|
NODEJS_12_X
Node.js 12.x.
|
NODEJS_14_X
Node.js 14.x.
|
NODEJS_16_X
Node.js 16.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=Stable) public static final CustomResourceProviderRuntime NODEJS_12_X
@Stability(value=Stable) public static final CustomResourceProviderRuntime NODEJS_14_X
@Stability(value=Stable) public static final CustomResourceProviderRuntime NODEJS_16_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.