Class CustomResourceProviderRuntime
The lambda runtime to use for the resource provider.
Inheritance
System.Object
CustomResourceProviderRuntime
Namespace: Amazon.CDK
Assembly: Amazon.CDK.dll
Syntax (csharp)
public sealed class CustomResourceProviderRuntime : Enum
Syntax (vb)
Public NotInheritable Class CustomResourceProviderRuntime
Inherits
Enum
Remarks
This also indicates which language is used for the handler.
ExampleMetadata: infused
Examples
var serviceToken = CustomResourceProvider.GetOrCreate(this, "Custom::MyCustomResourceType", new CustomResourceProviderProps {
CodeDirectory = $"{__dirname}/my-handler",
Runtime = CustomResourceProviderRuntime.NODEJS_14_X,
Description = "Lambda function created by the custom resource provider"
});
new CustomResource(this, "MyResource", new CustomResourceProps {
ResourceType = "Custom::MyCustomResourceType",
ServiceToken = serviceToken
});
Synopsis
Fields
NODEJS_12 | (deprecated) Node.js 12.x. |
NODEJS_12_X | Node.js 12.x. |
NODEJS_14_X | Node.js 14.x. |
NODEJS_16_X | Node.js 16.x. |
value__ |
Fields
NODEJS_12
(deprecated) Node.js 12.x.
public const CustomResourceProviderRuntime NODEJS_12
Field Value
Type | Description |
---|---|
CustomResourceProviderRuntime |
Remarks
Stability: Deprecated
NODEJS_12_X
Node.js 12.x.
public const CustomResourceProviderRuntime NODEJS_12_X
Field Value
Type | Description |
---|---|
CustomResourceProviderRuntime |
NODEJS_14_X
Node.js 14.x.
public const CustomResourceProviderRuntime NODEJS_14_X
Field Value
Type | Description |
---|---|
CustomResourceProviderRuntime |
NODEJS_16_X
Node.js 16.x.
public const CustomResourceProviderRuntime NODEJS_16_X
Field Value
Type | Description |
---|---|
CustomResourceProviderRuntime |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |