@Stability(value=Experimental) public static final class LayerVersion.Builder extends Object implements software.amazon.jsii.Builder<LayerVersion>
LayerVersion.| Modifier and Type | Method and Description |
|---|---|
LayerVersion |
build() |
LayerVersion.Builder |
code(Code code)
(experimental) The content of this Layer.
|
LayerVersion.Builder |
compatibleRuntimes(List<? extends Runtime> compatibleRuntimes)
(experimental) The runtimes compatible with this Layer.
|
static LayerVersion.Builder |
create(software.constructs.Construct scope,
String id) |
LayerVersion.Builder |
description(String description)
(experimental) The description the this Lambda Layer.
|
LayerVersion.Builder |
layerVersionName(String layerVersionName)
(experimental) The name of the layer.
|
LayerVersion.Builder |
license(String license)
(experimental) The SPDX licence identifier or URL to the license file for this layer.
|
LayerVersion.Builder |
removalPolicy(RemovalPolicy removalPolicy)
(experimental) 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 LayerVersion.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.LayerVersion.Builder.@Stability(value=Experimental) public LayerVersion.Builder description(String description)
Default: - No description.
description - The description the this Lambda Layer. This parameter is required.this@Stability(value=Experimental) public LayerVersion.Builder layerVersionName(String layerVersionName)
Default: - A name will be generated.
layerVersionName - The name of the layer. This parameter is required.this@Stability(value=Experimental) public LayerVersion.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=Experimental) public LayerVersion.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 LayerVersion.Builder code(Code code)
Using Code.fromInline is not supported.
code - The content of this Layer. This parameter is required.this@Stability(value=Experimental) public LayerVersion.Builder compatibleRuntimes(List<? extends Runtime> compatibleRuntimes)
Default: - All runtimes are supported.
compatibleRuntimes - The runtimes compatible with this Layer. This parameter is required.this@Stability(value=Experimental) public LayerVersion build()
build in interface software.amazon.jsii.Builder<LayerVersion>Copyright © 2021. All rights reserved.