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 Details

    • create

      @Stability(Stable) public static CfnLayerVersion.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnLayerVersion.Builder.
    • content

      @Stability(Stable) public CfnLayerVersion.Builder content(IResolvable content)
      The function layer archive.

      Parameters:
      content - The function layer archive. This parameter is required.
      Returns:
      this
    • content

      @Stability(Stable) public CfnLayerVersion.Builder content(CfnLayerVersion.ContentProperty 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)
      A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions .

      Parameters:
      compatibleRuntimes - A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions . This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnLayerVersion.Builder description(String description)
      The description of the version.

      Parameters:
      description - The description of the version. This parameter is required.
      Returns:
      this
    • layerName

      @Stability(Stable) public CfnLayerVersion.Builder layerName(String 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

      @Stability(Stable) public CfnLayerVersion.Builder licenseInfo(String 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
    • build

      @Stability(Stable) public CfnLayerVersion build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnLayerVersion>
      Returns:
      a newly built instance of CfnLayerVersion.