Show / Hide Table of Contents

Class LayerVersionProps

Inheritance
object
LayerVersionProps
Implements
ILayerVersionProps
ILayerVersionOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LayerVersionProps : ILayerVersionProps, ILayerVersionOptions
Syntax (vb)
Public Class LayerVersionProps 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()
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 }
            });

Properties

Code

The content of this Layer.

public Code Code { get; set; }
Property Value

Code

Remarks

Using Code.fromInline is not supported.

CompatibleArchitectures

The system architectures compatible with this layer.

public Architecture[]? CompatibleArchitectures { get; set; }
Property Value

Architecture[]

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

string

Remarks

Default: - No description.

LayerVersionName

The name of the layer.

public string? LayerVersionName { get; set; }
Property Value

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

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 RemovalPolicy? RemovalPolicy { get; set; }
Property Value

RemovalPolicy?

Remarks

Default: RemovalPolicy.DESTROY

Implements

ILayerVersionProps
ILayerVersionOptions
Back to top Generated by DocFX