@Stability(value=Experimental) public static final class PythonLayerVersion.Builder extends Object implements software.amazon.jsii.Builder<PythonLayerVersion>
PythonLayerVersion.| Modifier and Type | Method and Description |
|---|---|
PythonLayerVersion |
build() |
PythonLayerVersion.Builder |
bundling(BundlingOptions bundling)
(experimental) Bundling options to use for this function.
|
PythonLayerVersion.Builder |
compatibleArchitectures(List<? extends Architecture> compatibleArchitectures)
(experimental) The system architectures compatible with this layer.
|
PythonLayerVersion.Builder |
compatibleRuntimes(List<? extends Runtime> compatibleRuntimes)
(experimental) The runtimes compatible with the python layer.
|
static PythonLayerVersion.Builder |
create(software.constructs.Construct scope,
String id) |
PythonLayerVersion.Builder |
description(String description)
The description the this Lambda Layer.
|
PythonLayerVersion.Builder |
entry(String entry)
(experimental) The path to the root directory of the lambda layer.
|
PythonLayerVersion.Builder |
layerVersionName(String layerVersionName)
The name of the layer.
|
PythonLayerVersion.Builder |
license(String license)
The SPDX licence identifier or URL to the license file for this layer.
|
PythonLayerVersion.Builder |
removalPolicy(RemovalPolicy removalPolicy)
Whether to retain this version of the layer when a new version is added or when the stack is deleted.
|
@Stability(value=Experimental) public static PythonLayerVersion.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.PythonLayerVersion.Builder.@Stability(value=Stable) public PythonLayerVersion.Builder description(String description)
Default: - No description.
description - The description the this Lambda Layer. This parameter is required.this@Stability(value=Stable) public PythonLayerVersion.Builder layerVersionName(String layerVersionName)
Default: - A name will be generated.
layerVersionName - The name of the layer. This parameter is required.this@Stability(value=Stable) public PythonLayerVersion.Builder license(String license)
Default: - No license information will be recorded.
license - The SPDX licence identifier or URL to the license file for this layer. This parameter is required.this@Stability(value=Stable) public PythonLayerVersion.Builder removalPolicy(RemovalPolicy removalPolicy)
Default: RemovalPolicy.DESTROY
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.this@Stability(value=Experimental) public PythonLayerVersion.Builder entry(String entry)
entry - The path to the root directory of the lambda layer. This parameter is required.this@Stability(value=Experimental) public PythonLayerVersion.Builder bundling(BundlingOptions bundling)
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.
bundling - Bundling options to use for this function. This parameter is required.this@Stability(value=Experimental) public PythonLayerVersion.Builder compatibleArchitectures(List<? extends Architecture> compatibleArchitectures)
Default: [Architecture.X86_64]
compatibleArchitectures - The system architectures compatible with this layer. This parameter is required.this@Stability(value=Experimental) public PythonLayerVersion.Builder compatibleRuntimes(List<? extends Runtime> compatibleRuntimes)
Default: - Only Python 3.7 is supported.
compatibleRuntimes - The runtimes compatible with the python layer. This parameter is required.this@Stability(value=Experimental) public PythonLayerVersion build()
build in interface software.amazon.jsii.Builder<PythonLayerVersion>Copyright © 2022. All rights reserved.