Class LayerVersionProps
Inheritance
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LayerVersionProps : Object, ILayerVersionProps, ILayerVersionOptions
Syntax (vb)
Public Class LayerVersionProps
Inherits Object
Implements ILayerVersionProps, 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
Constructors
LayerVersionProps() |
Properties
Code | The content of this Layer. |
CompatibleArchitectures | The system architectures compatible with this layer. |
CompatibleRuntimes | The runtimes compatible with this Layer. |
Description | The description the this Lambda Layer. |
LayerVersionName | The name of the layer. |
License | The SPDX licence identifier or URL to the license file for this layer. |
RemovalPolicy | Whether to retain this version of the layer when a new version is added or when the stack is deleted. |
Constructors
LayerVersionProps()
public LayerVersionProps()
Properties
Code
The content of this Layer.
public Code Code { get; set; }
Property Value
Remarks
Using Code.fromInline
is not supported.
CompatibleArchitectures
The system architectures compatible with this layer.
public Architecture[] CompatibleArchitectures { get; set; }
Property Value
Remarks
Default: [Architecture.X86_64]
CompatibleRuntimes
The runtimes compatible with this Layer.
public Runtime[] CompatibleRuntimes { get; set; }
Property Value
Runtime[]
Remarks
Default: - All runtimes are supported.
Description
The description the this Lambda Layer.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: - No description.
LayerVersionName
The name of the layer.
public string LayerVersionName { get; set; }
Property Value
System.String
Remarks
Default: - A name will be generated.
License
The SPDX licence identifier or URL to the license file for this layer.
public string License { get; set; }
Property Value
System.String
Remarks
Default: - No license information will be recorded.
RemovalPolicy
Whether to retain this version of the layer when a new version is added or when the stack is deleted.
public Nullable<RemovalPolicy> RemovalPolicy { get; set; }
Property Value
System.Nullable<RemovalPolicy>
Remarks
Default: RemovalPolicy.DESTROY