Show / Hide Table of Contents

Interface ILayerVersionOptions

Non runtime options.

Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILayerVersionOptions
Syntax (vb)
Public Interface ILayerVersionOptions
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;
            using Amazon.CDK.AWS.Lambda;

            var layerVersionOptions = new LayerVersionOptions {
                Description = "description",
                LayerVersionName = "layerVersionName",
                License = "license",
                RemovalPolicy = RemovalPolicy.DESTROY
            };

Synopsis

Properties

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.

Properties

Description

The description the this Lambda Layer.

string? Description { get; }
Property Value

string

Remarks

Default: - No description.

LayerVersionName

The name of the layer.

string? LayerVersionName { get; }
Property Value

string

Remarks

Default: - A name will be generated.

License

The SPDX licence identifier or URL to the license file for this layer.

string? License { get; }
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.

RemovalPolicy? RemovalPolicy { get; }
Property Value

RemovalPolicy?

Remarks

Default: RemovalPolicy.DESTROY

Back to top Generated by DocFX