Class CfnPlacementGroup.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnPlacementGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlacementGroup>
- Enclosing class:
CfnPlacementGroup
@Stability(Stable)
public static final class CfnPlacementGroup.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlacementGroup>
A fluent builder for
CfnPlacementGroup
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnPlacementGroup.Builder
partitionCount
(Number partitionCount) The number of partitions.spreadLevel
(String spreadLevel) Determines how placement groups spread instances.The placement strategy.The tags to apply to the new placement group.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnPlacementGroup.Builder
.
-
partitionCount
The number of partitions.Valid only when Strategy is set to
partition
.- Parameters:
partitionCount
- The number of partitions. This parameter is required.- Returns:
this
-
spreadLevel
Determines how placement groups spread instances.- Host – You can use
host
only with Outpost placement groups. - Rack – No usage restrictions.
- Parameters:
spreadLevel
- Determines how placement groups spread instances. This parameter is required.- Returns:
this
- Host – You can use
-
strategy
The placement strategy.- Parameters:
strategy
- The placement strategy. This parameter is required.- Returns:
this
-
tags
The tags to apply to the new placement group.- Parameters:
tags
- The tags to apply to the new placement group. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlacementGroup>
- Returns:
- a newly built instance of
CfnPlacementGroup
.
-