Class CfnLayerVersion.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnLayerVersion.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayerVersion>
- Enclosing class:
CfnLayerVersion
@Stability(Stable)
public static final class CfnLayerVersion.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayerVersion>
A fluent builder for
CfnLayerVersion
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
compatibleArchitectures
(List<String> compatibleArchitectures) A list of compatible instruction set architectures .compatibleRuntimes
(List<String> compatibleRuntimes) A list of compatible function runtimes .content
(IResolvable content) The function layer archive.content
(CfnLayerVersion.ContentProperty content) The function layer archive.static CfnLayerVersion.Builder
description
(String description) The description of the version.The name or Amazon Resource Name (ARN) of the layer.licenseInfo
(String licenseInfo) The layer's software license.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnLayerVersion.Builder
.
-
content
The function layer archive.- Parameters:
content
- The function layer archive. This parameter is required.- Returns:
this
-
content
The function layer archive.- Parameters:
content
- The function layer archive. This parameter is required.- Returns:
this
-
compatibleArchitectures
@Stability(Stable) public CfnLayerVersion.Builder compatibleArchitectures(List<String> compatibleArchitectures) A list of compatible instruction set architectures .- Parameters:
compatibleArchitectures
- A list of compatible instruction set architectures . This parameter is required.- Returns:
this
-
compatibleRuntimes
@Stability(Stable) public CfnLayerVersion.Builder compatibleRuntimes(List<String> compatibleRuntimes) - Parameters:
compatibleRuntimes
- A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions . This parameter is required.- Returns:
this
-
description
The description of the version.- Parameters:
description
- The description of the version. This parameter is required.- Returns:
this
-
layerName
The name or Amazon Resource Name (ARN) of the layer.- Parameters:
layerName
- The name or Amazon Resource Name (ARN) of the layer. This parameter is required.- Returns:
this
-
licenseInfo
The layer's software license. It can be any of the following:.- An SPDX license identifier . For example,
MIT
. - The URL of a license hosted on the internet. For example,
https://opensource.org/licenses/MIT
. - The full text of the license.
- Parameters:
licenseInfo
- The layer's software license. It can be any of the following:. This parameter is required.- Returns:
this
- An SPDX license identifier . For example,
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLayerVersion>
- Returns:
- a newly built instance of
CfnLayerVersion
.
-