Class CfnPlacementGroupPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnPlacementGroupPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlacementGroupPropsMixin>
- Enclosing class:
CfnPlacementGroupPropsMixin
@Stability(Stable)
public static final class CfnPlacementGroupPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlacementGroupPropsMixin>
A fluent builder for
CfnPlacementGroupPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) 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 CfnPlacementGroupPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnPlacementGroupPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnPlacementGroupPropsMixin.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
hostonly 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlacementGroupPropsMixin>- Returns:
- a newly built instance of
CfnPlacementGroupPropsMixin.
-