CustomResourceProviderRuntime

class aws_cdk.CustomResourceProviderRuntime(value)

Bases: Enum

The lambda runtime to use for the resource provider.

This also indicates which language is used for the handler.

ExampleMetadata

infused

Example:

# Example automatically generated from non-compiling source. May contain errors.
provider = CustomResourceProvider.get_or_create_provider(self, "Custom::MyCustomResourceType",
    code_directory=f"{__dirname}/my-handler",
    runtime=CustomResourceProviderRuntime.NODEJS_14_X
)
provider.add_to_role_policy({
    "Effect": "Allow",
    "Action": "s3:GetObject",
    "Resource": "*"
})

Attributes

NODEJS_12_X

Node.js 12.x.

NODEJS_14_X

Node.js 14.x.

NODEJS_16_X

Node.js 16.x.