Class CustomResourceProviderRuntime
The lambda runtime to use for the resource provider.
Inheritance
System.Object
CustomResourceProviderRuntime
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.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 provider = CustomResourceProvider.GetOrCreateProvider(this, "Custom::MyCustomResourceType", new CustomResourceProviderProps {
CodeDirectory = $"{__dirname}/my-handler",
Runtime = CustomResourceProviderRuntime.NODEJS_18_X
});
provider.AddToRolePolicy(new Dictionary<string, string> {
{ "Effect", "Allow" },
{ "Action", "s3:GetObject" },
{ "Resource", "*" }
});
Synopsis
Fields
NODEJS_12_X | (deprecated) Node.js 12.x. |
NODEJS_14_X | (deprecated) Node.js 14.x. |
NODEJS_16_X | Node.js 16.x. |
NODEJS_18_X | Node.js 18.x. |
value__ |
Fields
NODEJS_12_X
(deprecated) Node.js 12.x.
public const CustomResourceProviderRuntime NODEJS_12_X
Field Value
Type | Description |
---|---|
CustomResourceProviderRuntime |
Remarks
Stability: Deprecated
NODEJS_14_X
(deprecated) Node.js 14.x.
public const CustomResourceProviderRuntime NODEJS_14_X
Field Value
Type | Description |
---|---|
CustomResourceProviderRuntime |
Remarks
Stability: Deprecated
NODEJS_16_X
Node.js 16.x.
public const CustomResourceProviderRuntime NODEJS_16_X
Field Value
Type | Description |
---|---|
CustomResourceProviderRuntime |
NODEJS_18_X
Node.js 18.x.
public const CustomResourceProviderRuntime NODEJS_18_X
Field Value
Type | Description |
---|---|
CustomResourceProviderRuntime |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |