Interface ILayerVersionProps
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILayerVersionProps : ILayerVersionOptions
Syntax (vb)
Public Interface ILayerVersionProps
Inherits ILayerVersionOptions
Remarks
ExampleMetadata: infused
Examples
new LayerVersion(this, "MyLayer", new LayerVersionProps {
RemovalPolicy = RemovalPolicy.RETAIN,
Code = Code.FromAsset(Join(__dirname, "lambda-handler")),
CompatibleArchitectures = new [] { Architecture.X86_64, Architecture.ARM_64 }
});
Synopsis
Properties
Code | The content of this Layer. |
CompatibleArchitectures | The system architectures compatible with this layer. |
CompatibleRuntimes | The runtimes compatible with this Layer. |
Properties
Code
The content of this Layer.
Code Code { get; }
Property Value
Remarks
Using Code.fromInline
is not supported.
CompatibleArchitectures
The system architectures compatible with this layer.
virtual Architecture[] CompatibleArchitectures { get; }
Property Value
Remarks
Default: [Architecture.X86_64]
CompatibleRuntimes
The runtimes compatible with this Layer.
virtual Runtime[] CompatibleRuntimes { get; }
Property Value
Runtime[]
Remarks
Default: - All runtimes are supported.