Class PythonLayerVersion.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.python.alpha.PythonLayerVersion.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PythonLayerVersion>
- Enclosing class:
PythonLayerVersion
@Stability(Experimental)
public static final class PythonLayerVersion.Builder
extends Object
implements software.amazon.jsii.Builder<PythonLayerVersion>
(experimental) A fluent builder for
PythonLayerVersion
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
bundling
(BundlingOptions bundling) (experimental) Bundling options to use for this function.compatibleArchitectures
(List<? extends Architecture> compatibleArchitectures) (experimental) The system architectures compatible with this layer.compatibleRuntimes
(List<? extends Runtime> compatibleRuntimes) (experimental) The runtimes compatible with the python layer.static PythonLayerVersion.Builder
description
(String description) The description the this Lambda Layer.(experimental) The path to the root directory of the lambda layer.layerVersionName
(String layerVersionName) The name of the layer.The SPDX licence identifier or URL to the license file for this layer.removalPolicy
(RemovalPolicy removalPolicy) Whether to retain this version of the layer when a new version is added or when the stack is deleted.
-
Method Details
-
create
@Stability(Experimental) public static PythonLayerVersion.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
PythonLayerVersion.Builder
.
-
description
The description the this Lambda Layer.Default: - No description.
- Parameters:
description
- The description the this Lambda Layer. This parameter is required.- Returns:
this
-
layerVersionName
The name of the layer.Default: - A name will be generated.
- Parameters:
layerVersionName
- The name of the layer. This parameter is required.- Returns:
this
-
license
The SPDX licence identifier or URL to the license file for this layer.Default: - No license information will be recorded.
- Parameters:
license
- The SPDX licence identifier or URL to the license file for this layer. This parameter is required.- Returns:
this
-
removalPolicy
Whether to retain this version of the layer when a new version is added or when the stack is deleted.Default: RemovalPolicy.DESTROY
- Parameters:
removalPolicy
- Whether to retain this version of the layer when a new version is added or when the stack is deleted. This parameter is required.- Returns:
this
-
entry
(experimental) The path to the root directory of the lambda layer.- Parameters:
entry
- The path to the root directory of the lambda layer. This parameter is required.- Returns:
this
-
bundling
(experimental) Bundling options to use for this function.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.
- Parameters:
bundling
- Bundling options to use for this function. This parameter is required.- Returns:
this
-
compatibleArchitectures
@Stability(Experimental) public PythonLayerVersion.Builder compatibleArchitectures(List<? extends Architecture> compatibleArchitectures) (experimental) The system architectures compatible with this layer.Default: [Architecture.X86_64]
- Parameters:
compatibleArchitectures
- The system architectures compatible with this layer. This parameter is required.- Returns:
this
-
compatibleRuntimes
@Stability(Experimental) public PythonLayerVersion.Builder compatibleRuntimes(List<? extends Runtime> compatibleRuntimes) (experimental) The runtimes compatible with the python layer.Default: - Only Python 3.7 is supported.
- Parameters:
compatibleRuntimes
- The runtimes compatible with the python layer. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PythonLayerVersion>
- Returns:
- a newly built instance of
PythonLayerVersion
.
-