Interface CfnPlacementGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPlacementGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:08.917Z")
@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();
- See Also:
-
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.- See Also:
-
getSpreadLevel
Determines how placement groups spread instances.- Host – You can use
hostonly with Outpost placement groups. - Rack – No usage restrictions.
- See Also:
- Host – You can use
-
getStrategy
The placement strategy.- See Also:
-
getTags
The tags to apply to the new placement group.- See Also:
-
builder
- Returns:
- a
CfnPlacementGroupProps.BuilderofCfnPlacementGroupProps
-