Class CfnLayerVersion.Builder

java.lang.Object
software.amazon.awscdk.services.sam.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.
    • compatibleRuntimes

      @Stability(Stable) public CfnLayerVersion.Builder compatibleRuntimes(List<String> compatibleRuntimes)
      AWS::Serverless::LayerVersion.CompatibleRuntimes.

      Parameters:
      compatibleRuntimes - AWS::Serverless::LayerVersion.CompatibleRuntimes. This parameter is required.
      Returns:
      this
    • contentUri

      @Stability(Stable) public CfnLayerVersion.Builder contentUri(String contentUri)
      AWS::Serverless::LayerVersion.ContentUri.

      Parameters:
      contentUri - AWS::Serverless::LayerVersion.ContentUri. This parameter is required.
      Returns:
      this
    • contentUri

      @Stability(Stable) public CfnLayerVersion.Builder contentUri(IResolvable contentUri)
      AWS::Serverless::LayerVersion.ContentUri.

      Parameters:
      contentUri - AWS::Serverless::LayerVersion.ContentUri. This parameter is required.
      Returns:
      this
    • contentUri

      @Stability(Stable) public CfnLayerVersion.Builder contentUri(CfnLayerVersion.S3LocationProperty contentUri)
      AWS::Serverless::LayerVersion.ContentUri.

      Parameters:
      contentUri - AWS::Serverless::LayerVersion.ContentUri. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnLayerVersion.Builder description(String description)
      AWS::Serverless::LayerVersion.Description.

      Parameters:
      description - AWS::Serverless::LayerVersion.Description. This parameter is required.
      Returns:
      this
    • layerName

      @Stability(Stable) public CfnLayerVersion.Builder layerName(String layerName)
      AWS::Serverless::LayerVersion.LayerName.

      Parameters:
      layerName - AWS::Serverless::LayerVersion.LayerName. This parameter is required.
      Returns:
      this
    • licenseInfo

      @Stability(Stable) public CfnLayerVersion.Builder licenseInfo(String licenseInfo)
      AWS::Serverless::LayerVersion.LicenseInfo.

      Parameters:
      licenseInfo - AWS::Serverless::LayerVersion.LicenseInfo. This parameter is required.
      Returns:
      this
    • retentionPolicy

      @Stability(Stable) public CfnLayerVersion.Builder retentionPolicy(String retentionPolicy)
      AWS::Serverless::LayerVersion.RetentionPolicy.

      Parameters:
      retentionPolicy - AWS::Serverless::LayerVersion.RetentionPolicy. 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.