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) contentUri
(String contentUri) contentUri
(IResolvable contentUri) contentUri
(CfnLayerVersion.S3LocationProperty contentUri) static CfnLayerVersion.Builder
description
(String description) licenseInfo
(String licenseInfo) retentionPolicy
(String retentionPolicy)
-
Method Details
-
create
@Stability(Stable) public static CfnLayerVersion.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLayerVersion.Builder
.
-
compatibleRuntimes
@Stability(Stable) public CfnLayerVersion.Builder compatibleRuntimes(List<String> compatibleRuntimes) - Parameters:
compatibleRuntimes
- This parameter is required.- Returns:
this
- See Also:
-
contentUri
- Parameters:
contentUri
- This parameter is required.- Returns:
this
- See Also:
-
contentUri
- Parameters:
contentUri
- This parameter is required.- Returns:
this
- See Also:
-
contentUri
@Stability(Stable) public CfnLayerVersion.Builder contentUri(CfnLayerVersion.S3LocationProperty contentUri) - Parameters:
contentUri
- This parameter is required.- Returns:
this
- See Also:
-
description
- Parameters:
description
- This parameter is required.- Returns:
this
- See Also:
-
layerName
- Parameters:
layerName
- This parameter is required.- Returns:
this
- See Also:
-
licenseInfo
- Parameters:
licenseInfo
- This parameter is required.- Returns:
this
- See Also:
-
retentionPolicy
- Parameters:
retentionPolicy
- This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLayerVersion>
- Returns:
- a newly built instance of
CfnLayerVersion
.
-