Package software.amazon.awscdk
Enum CustomResourceProviderRuntime
- All Implemented Interfaces:
Serializable
,Comparable<CustomResourceProviderRuntime>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-11T23:26:27.514Z")
@Stability(Stable)
public enum CustomResourceProviderRuntime
extends Enum<CustomResourceProviderRuntime>
The lambda runtime to use for the resource provider.
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_18_X) .build()); provider.addToRolePolicy(Map.of( "Effect", "Allow", "Action", "s3:GetObject", "Resource", "*"));
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.Use latest versionDeprecated.Use latest versionNode.js 16.x.Node.js 18.x.Node.js 20.x. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
Enum Constant Details
-
NODEJS_12_X
Deprecated.Use latest version(deprecated) Node.js 12.x. -
NODEJS_14_X
Deprecated.Use latest version(deprecated) Node.js 14.x. -
NODEJS_16_X
Node.js 16.x. -
NODEJS_18_X
Node.js 18.x. -
NODEJS_20_X
Node.js 20.x.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-