CustomResourceProviderRuntime

class aws_cdk.core.CustomResourceProviderRuntime(value)

Bases: enum.Enum

The lambda runtime to use for the resource provider.

This also indicates which language is used for the handler.

ExampleMetadata

infused

Example:

service_token = CustomResourceProvider.get_or_create(self, "Custom::MyCustomResourceType",
    code_directory=f"{__dirname}/my-handler",
    runtime=CustomResourceProviderRuntime.NODEJS_12_X,
    description="Lambda function created by the custom resource provider"
)

CustomResource(self, "MyResource",
    resource_type="Custom::MyCustomResourceType",
    service_token=service_token
)

Attributes

NODEJS_12

(deprecated) Node.js 12.x.

Deprecated

Use {@link NODEJS_14_X}

Stability

deprecated

NODEJS_12_X

Node.js 12.x.

NODEJS_14_X

Node.js 14.x.