Class CfnLayerVersionProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnLayerVersionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayerVersionProps>
- Enclosing interface:
CfnLayerVersionProps
@Stability(Stable)
public static final class CfnLayerVersionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayerVersionProps>
A builder for
CfnLayerVersionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.compatibleArchitectures(List<String> compatibleArchitectures) Sets the value ofCfnLayerVersionProps.getCompatibleArchitectures()compatibleRuntimes(List<String> compatibleRuntimes) Sets the value ofCfnLayerVersionProps.getCompatibleRuntimes()content(IResolvable content) Sets the value ofCfnLayerVersionProps.getContent()content(CfnLayerVersion.ContentProperty content) Sets the value ofCfnLayerVersionProps.getContent()description(String description) Sets the value ofCfnLayerVersionProps.getDescription()Sets the value ofCfnLayerVersionProps.getLayerName()licenseInfo(String licenseInfo) Sets the value ofCfnLayerVersionProps.getLicenseInfo()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofCfnLayerVersionProps.getContent()- Parameters:
content- The function layer archive. This parameter is required.- Returns:
this
-
content
@Stability(Stable) public CfnLayerVersionProps.Builder content(CfnLayerVersion.ContentProperty content) Sets the value ofCfnLayerVersionProps.getContent()- Parameters:
content- The function layer archive. This parameter is required.- Returns:
this
-
compatibleArchitectures
@Stability(Stable) public CfnLayerVersionProps.Builder compatibleArchitectures(List<String> compatibleArchitectures) Sets the value ofCfnLayerVersionProps.getCompatibleArchitectures()- Parameters:
compatibleArchitectures- A list of compatible instruction set architectures .- Returns:
this
-
compatibleRuntimes
@Stability(Stable) public CfnLayerVersionProps.Builder compatibleRuntimes(List<String> compatibleRuntimes) Sets the value ofCfnLayerVersionProps.getCompatibleRuntimes()- Parameters:
compatibleRuntimes- A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions .- Returns:
this
-
description
Sets the value ofCfnLayerVersionProps.getDescription()- Parameters:
description- The description of the version.- Returns:
this
-
layerName
Sets the value ofCfnLayerVersionProps.getLayerName()- Parameters:
layerName- The name or Amazon Resource Name (ARN) of the layer.- Returns:
this
-
licenseInfo
Sets the value ofCfnLayerVersionProps.getLicenseInfo()- Parameters:
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.
- An SPDX license identifier . For example,
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLayerVersionProps>- Returns:
- a new instance of
CfnLayerVersionProps - Throws:
NullPointerException- if any required attribute was not provided
-