CustomResourceProviderRuntime
- class aws_cdk.CustomResourceProviderRuntime(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
The lambda runtime to use for the resource provider.
This also indicates which language is used for the handler.
- ExampleMetadata:
infused
Example:
provider = CustomResourceProvider.get_or_create_provider(self, "Custom::MyCustomResourceType", code_directory=f"{__dirname}/my-handler", runtime=CustomResourceProviderRuntime.NODEJS_18_X ) provider.add_to_role_policy({ "Effect": "Allow", "Action": "s3:GetObject", "Resource": "*" })
Attributes
- NODEJS_12_X
(deprecated) Node.js 12.x.
- Deprecated:
Use latest version
- Stability:
deprecated
- NODEJS_14_X
(deprecated) Node.js 14.x.
- Deprecated:
Use latest version
- Stability:
deprecated
- NODEJS_16_X
Node.js 16.x.
- NODEJS_18_X
Node.js 18.x.
- NODEJS_20_X
Node.js 20.x.