Class PlacementGroupProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.PlacementGroupProps.Jsii$Proxy
All Implemented Interfaces:
PlacementGroupProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
PlacementGroupProps

@Stability(Stable) @Internal public static final class PlacementGroupProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PlacementGroupProps
An implementation for PlacementGroupProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(PlacementGroupProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the PlacementGroupProps.Builder.
  • Method Details

    • getPartitions

      public final Number getPartitions()
      Description copied from interface: PlacementGroupProps
      The number of partitions.

      Valid only when Strategy is set to partition.

      Default: 0

      Specified by:
      getPartitions in interface PlacementGroupProps
    • getPlacementGroupName

      public final String getPlacementGroupName()
      Description copied from interface: PlacementGroupProps
      the name of this placement group.

      Default: - generated by CFN

      Specified by:
      getPlacementGroupName in interface PlacementGroupProps
    • getSpreadLevel

      public final PlacementGroupSpreadLevel getSpreadLevel()
      Description copied from interface: PlacementGroupProps
      Places instances on distinct hardware.

      Spread placement groups are recommended for applications that have a small number of critical instances that should be kept separate from each other. Launching instances in a spread level placement group reduces the risk of simultaneous failures that might occur when instances share the same equipment. Spread level placement groups provide access to distinct hardware, and are therefore suitable for mixing instance types or launching instances over time. If you start or launch an instance in a spread placement group and there is insufficient unique hardware to fulfill the request, the request fails. Amazon EC2 makes more distinct hardware available over time, so you can try your request again later. Placement groups can spread instances across racks or hosts. You can use host level spread placement groups only with AWS Outposts.

      Default: - no spread level

      Specified by:
      getSpreadLevel in interface PlacementGroupProps
    • getStrategy

      public final PlacementGroupStrategy getStrategy()
      Description copied from interface: PlacementGroupProps
      Which strategy to use when launching instances.

      Default: - `PlacementGroupStrategy.PARTITION` if `partitions` is defined, `CLUSTER` otherwise

      Specified by:
      getStrategy in interface PlacementGroupProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object