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 Summary
Modifier and TypeMethodDescriptionbuild()compatibleRuntimes(List<String> compatibleRuntimes) `AWS::Serverless::LayerVersion.CompatibleRuntimes`.contentUri(String contentUri) `AWS::Serverless::LayerVersion.ContentUri`.contentUri(software.amazon.awscdk.core.IResolvable contentUri) `AWS::Serverless::LayerVersion.ContentUri`.contentUri(CfnLayerVersion.S3LocationProperty contentUri) `AWS::Serverless::LayerVersion.ContentUri`.static CfnLayerVersion.Builderdescription(String description) `AWS::Serverless::LayerVersion.Description`.`AWS::Serverless::LayerVersion.LayerName`.licenseInfo(String licenseInfo) `AWS::Serverless::LayerVersion.LicenseInfo`.retentionPolicy(String retentionPolicy) `AWS::Serverless::LayerVersion.RetentionPolicy`.
-
Method Details
-
create
@Stability(Stable) public static CfnLayerVersion.Builder create(software.amazon.awscdk.core.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
`AWS::Serverless::LayerVersion.ContentUri`.- Parameters:
contentUri- `AWS::Serverless::LayerVersion.ContentUri`. This parameter is required.- Returns:
this
-
contentUri
@Stability(Stable) public CfnLayerVersion.Builder contentUri(software.amazon.awscdk.core.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
`AWS::Serverless::LayerVersion.Description`.- Parameters:
description- `AWS::Serverless::LayerVersion.Description`. This parameter is required.- Returns:
this
-
layerName
`AWS::Serverless::LayerVersion.LayerName`.- Parameters:
layerName- `AWS::Serverless::LayerVersion.LayerName`. This parameter is required.- Returns:
this
-
licenseInfo
`AWS::Serverless::LayerVersion.LicenseInfo`.- Parameters:
licenseInfo- `AWS::Serverless::LayerVersion.LicenseInfo`. This parameter is required.- Returns:
this
-
retentionPolicy
`AWS::Serverless::LayerVersion.RetentionPolicy`.- Parameters:
retentionPolicy- `AWS::Serverless::LayerVersion.RetentionPolicy`. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLayerVersion>
-