Interface CfnSpotFleet.SpotPlacementProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnSpotFleet.SpotPlacementProperty extends
Describes Spot Instance placement.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 SpotPlacementProperty spotPlacementProperty = SpotPlacementProperty.builder()
  • Method Details

    • getAvailabilityZone

      @Stability(Stable) @Nullable default String getAvailabilityZone()
      The Availability Zone.

      To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".

    • getGroupName

      @Stability(Stable) @Nullable default String getGroupName()
      The name of the placement group.
    • getTenancy

      @Stability(Stable) @Nullable default String getTenancy()
      The tenancy of the instance (if the instance is running in a VPC).

      An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot Instances.

    • builder

      @Stability(Stable) static CfnSpotFleet.SpotPlacementProperty.Builder builder()
      a CfnSpotFleet.SpotPlacementProperty.Builder of CfnSpotFleet.SpotPlacementProperty