@Stability(value=Stable)
public static interface CfnSpotFleet.SpotPlacementProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnSpotFleet.SpotPlacementProperty.Builder
A builder for
CfnSpotFleet.SpotPlacementProperty |
static class |
CfnSpotFleet.SpotPlacementProperty.Jsii$Proxy
An implementation for
CfnSpotFleet.SpotPlacementProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnSpotFleet.SpotPlacementProperty.Builder |
builder() |
default String |
getAvailabilityZone()
The Availability Zone.
|
default String |
getGroupName()
The name of the placement group.
|
default String |
getTenancy()
The tenancy of the instance (if the instance is running in a VPC).
|
@Stability(value=Stable) @Nullable default String getAvailabilityZone()
To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
@Stability(value=Stable) @Nullable default String getGroupName()
@Stability(value=Stable) @Nullable default String getTenancy()
An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot Instances.
@Stability(value=Stable) static CfnSpotFleet.SpotPlacementProperty.Builder builder()
Copyright © 2022. All rights reserved.