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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSpotFleet.SpotPlacementPropertystatic final classAn implementation forCfnSpotFleet.SpotPlacementProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAvailabilityZone
The Availability Zone.To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
- See Also:
-
getGroupName
The name of the placement group.- See Also:
-
getTenancy
The tenancy of the instance (if the instance is running in a VPC).An instance with a tenancy of
dedicatedruns on single-tenant hardware. Thehosttenancy is not supported for Spot Instances.- See Also:
-
builder
-