Interface CfnPlacementGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPlacementGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-15T10:24:58.108Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnPlacementGroupProps
static final class
An 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
host
only 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.Builder
ofCfnPlacementGroupProps
-