Package software.amazon.awscdk.core
Class CfnModuleDefaultVersion.Builder
java.lang.Object
software.amazon.awscdk.core.CfnModuleDefaultVersion.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnModuleDefaultVersion>
- Enclosing class:
CfnModuleDefaultVersion
@Stability(Stable)
public static final class CfnModuleDefaultVersion.Builder
extends Object
implements software.amazon.jsii.Builder<CfnModuleDefaultVersion>
A fluent builder for
CfnModuleDefaultVersion
.-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the module version to set as the default version.build()
moduleName
(String moduleName) The name of the module.The ID for the specific version of the module.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnModuleDefaultVersion.Builder
.
-
arn
The Amazon Resource Name (ARN) of the module version to set as the default version.Conditional: You must specify either
Arn
, orModuleName
andVersionId
.- Parameters:
arn
- The Amazon Resource Name (ARN) of the module version to set as the default version. This parameter is required.- Returns:
this
-
moduleName
The name of the module.Conditional: You must specify either
Arn
, orModuleName
andVersionId
.- Parameters:
moduleName
- The name of the module. This parameter is required.- Returns:
this
-
versionId
The ID for the specific version of the module.Conditional: You must specify either
Arn
, orModuleName
andVersionId
.- Parameters:
versionId
- The ID for the specific version of the module. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnModuleDefaultVersion>
- Returns:
- a newly built instance of
CfnModuleDefaultVersion
.
-