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
@Stability(Stable) public static CfnPlacementGroup.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
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
- See Also:
-
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
- See Also:
- Host – You can use
-
strategy
The placement strategy.- Parameters:
strategy
- The placement strategy. This parameter is required.- Returns:
this
- See Also:
-
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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlacementGroup>
- Returns:
- a newly built instance of
CfnPlacementGroup
.
-