enum CustomResourceProviderRuntime
Language | Type name |
---|---|
.NET | Amazon.CDK.CustomResourceProviderRuntime |
Go | github.com/aws/aws-cdk-go/awscdk/v2#CustomResourceProviderRuntime |
Java | software.amazon.awscdk.CustomResourceProviderRuntime |
Python | aws_cdk.CustomResourceProviderRuntime |
TypeScript (source) | aws-cdk-lib » CustomResourceProviderRuntime |
The lambda runtime to use for the resource provider.
This also indicates which language is used for the handler.
Example
const provider = CustomResourceProvider.getOrCreateProvider(this, 'Custom::MyCustomResourceType', {
codeDirectory: `${__dirname}/my-handler`,
runtime: CustomResourceProviderRuntime.NODEJS_18_X,
});
provider.addToRolePolicy({
Effect: 'Allow',
Action: 's3:GetObject',
Resource: '*',
})
Members
Name | Description |
---|---|
NODEJS_12_X | Node.js 12.x. |
NODEJS_14_X | 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. |
NODEJS_12_X
Node.js 12.x.
NODEJS_14_X
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.