Class PythonLayerVersionProps
(experimental) Properties for PythonLayerVersion.
Inheritance
Namespace: Amazon.CDK.AWS.Lambda.Python
Assembly: Amazon.CDK.AWS.Lambda.Python.dll
Syntax (csharp)
public class PythonLayerVersionProps : Object, IPythonLayerVersionProps, ILayerVersionOptions
Syntax (vb)
Public Class PythonLayerVersionProps
Inherits Object
Implements IPythonLayerVersionProps, ILayerVersionOptions
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
new PythonLayerVersion(this, "MyLayer", new PythonLayerVersionProps {
Entry = "/path/to/my/layer"
});
Synopsis
Constructors
PythonLayerVersionProps() |
Properties
Bundling | (experimental) Bundling options to use for this function. |
CompatibleArchitectures | (experimental) The system architectures compatible with this layer. |
CompatibleRuntimes | (experimental) The runtimes compatible with the python layer. |
Description | The description the this Lambda Layer. |
Entry | (experimental) The path to the root directory of the 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
PythonLayerVersionProps()
public PythonLayerVersionProps()
Properties
Bundling
(experimental) Bundling options to use for this function.
public IBundlingOptions Bundling { get; set; }
Property Value
Remarks
Use this to specify custom bundling options like the bundling Docker image, asset hash type, custom hash, architecture, etc.
Default: - Use the default bundling Docker image, with x86_64 architecture.
Stability: Experimental
CompatibleArchitectures
(experimental) The system architectures compatible with this layer.
public Architecture[] CompatibleArchitectures { get; set; }
Property Value
Remarks
Default: [Architecture.X86_64]
Stability: Experimental
CompatibleRuntimes
(experimental) The runtimes compatible with the python layer.
public Runtime[] CompatibleRuntimes { get; set; }
Property Value
Runtime[]
Remarks
Default: - Only Python 3.7 is supported.
Stability: Experimental
Description
The description the this Lambda Layer.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: - No description.
Entry
(experimental) The path to the root directory of the lambda layer.
public string Entry { get; set; }
Property Value
System.String
Remarks
Stability: Experimental
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