@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:40.513Z") @Stability(value=Experimental) public enum CustomResourceProviderRuntime extends Enum<CustomResourceProviderRuntime>
This also indicates which language is used for the handler.
Example:
CustomResourceProvider provider = CustomResourceProvider.getOrCreateProvider(this, "Custom::MyCustomResourceType", CustomResourceProviderProps.builder()
.codeDirectory(String.format("%s/my-handler", __dirname))
.runtime(CustomResourceProviderRuntime.NODEJS_14_X)
.policyStatements(List.of(Map.of(
"Effect", "Allow",
"Action", "s3:PutObject*",
"Resource", "*")))
.build());
| Enum Constant and Description |
|---|
NODEJS_12
Deprecated.
Use
NODEJS_14_X |
NODEJS_12_X
(experimental) Node.js 12.x.
|
NODEJS_14_X
(experimental) 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_14_X@Stability(value=Experimental) public static final CustomResourceProviderRuntime NODEJS_12_X
@Stability(value=Experimental) 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.