Interface CfnPlacementGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPlacementGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:38.904Z")
@Stability(Stable)
public interface CfnPlacementGroupProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnPlacementGroup.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnPlacementGroupProps cfnPlacementGroupProps = CfnPlacementGroupProps.builder()
.partitionCount(123)
.spreadLevel("spreadLevel")
.strategy("strategy")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPlacementGroupPropsstatic final classAn implementation forCfnPlacementGroupProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPartitionCount
The number of partitions.Valid only when Strategy is set to
partition. -
getSpreadLevel
Determines how placement groups spread instances.- Host – You can use
hostonly with Outpost placement groups. - Rack – No usage restrictions.
- Host – You can use
-
getStrategy
The placement strategy. -
getTags
The tags to apply to the new placement group. -
builder
- Returns:
- a
CfnPlacementGroupProps.BuilderofCfnPlacementGroupProps
-