Interface CfnSpotFleet.SpotPlacementProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnSpotFleet.SpotPlacementProperty.Jsii$Proxy
Enclosing class:
CfnSpotFleet

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

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.*;
 SpotPlacementProperty spotPlacementProperty = SpotPlacementProperty.builder()
         .availabilityZone("availabilityZone")
         .groupName("groupName")
         .tenancy("tenancy")
         .build();
 
  • 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()
      Returns:
      a CfnSpotFleet.SpotPlacementProperty.Builder of CfnSpotFleet.SpotPlacementProperty