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();
 
  • Method Details

    • getPartitionCount

      @Stability(Stable) @Nullable default Number getPartitionCount()
      The number of partitions.

      Valid only when Strategy is set to partition .

    • getSpreadLevel

      @Stability(Stable) @Nullable default String getSpreadLevel()
      Determines how placement groups spread instances.

      • Host – You can use host only with Outpost placement groups.
      • Rack – No usage restrictions.
    • getStrategy

      @Stability(Stable) @Nullable default String getStrategy()
      The placement strategy.
    • getTags

      @Stability(Stable) @Nullable default List<CfnTag> getTags()
      The tags to apply to the new placement group.
    • builder

      @Stability(Stable) static CfnPlacementGroupProps.Builder builder()
      Returns:
      a CfnPlacementGroupProps.Builder of CfnPlacementGroupProps