Class LayerVersionOptions
Non runtime options.
Inheritance
System.Object
LayerVersionOptions
Implements
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class LayerVersionOptions : Object, ILayerVersionOptions
Syntax (vb)
Public Class LayerVersionOptions
Inherits Object
Implements 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.AWS.Lambda;
using Amazon.CDK;
var layerVersionOptions = new LayerVersionOptions {
Description = "description",
LayerVersionName = "layerVersionName",
License = "license",
RemovalPolicy = RemovalPolicy.DESTROY
};
Synopsis
Constructors
LayerVersionOptions() |
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. |
Constructors
LayerVersionOptions()
public LayerVersionOptions()
Properties
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