@Stability(value=Stable)
public static interface CfnEC2Fleet.PlacementProperty
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.*;
PlacementProperty placementProperty = PlacementProperty.builder()
.affinity("affinity")
.availabilityZone("availabilityZone")
.groupName("groupName")
.hostId("hostId")
.hostResourceGroupArn("hostResourceGroupArn")
.partitionNumber(123)
.spreadDomain("spreadDomain")
.tenancy("tenancy")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEC2Fleet.PlacementProperty.Builder
A builder for
CfnEC2Fleet.PlacementProperty |
static class |
CfnEC2Fleet.PlacementProperty.Jsii$Proxy
An implementation for
CfnEC2Fleet.PlacementProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnEC2Fleet.PlacementProperty.Builder |
builder() |
default String |
getAffinity()
The affinity setting for the instance on the Dedicated Host.
|
default String |
getAvailabilityZone()
The Availability Zone of the instance.
|
default String |
getGroupName()
The name of the placement group the instance is in.
|
default String |
getHostId()
The ID of the Dedicated Host on which the instance resides.
|
default String |
getHostResourceGroupArn()
The ARN of the host resource group in which to launch the instances.
|
default Number |
getPartitionNumber()
The number of the partition that the instance is in.
|
default String |
getSpreadDomain()
Reserved for future use.
|
default String |
getTenancy()
The tenancy of the instance (if the instance is running in a VPC).
|
@Stability(value=Stable) @Nullable default String getAffinity()
This parameter is not supported by CreateFleet .
@Stability(value=Stable) @Nullable default String getAvailabilityZone()
If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.
This parameter is not supported by CreateFleet .
@Stability(value=Stable) @Nullable default String getGroupName()
@Stability(value=Stable) @Nullable default String getHostId()
This parameter is not supported for the ImportInstance command.
This parameter is not supported by CreateFleet .
@Stability(value=Stable) @Nullable default String getHostResourceGroupArn()
If you specify a host resource group ARN, omit the Tenancy parameter or set it to host .
This parameter is not supported by CreateFleet .
@Stability(value=Stable) @Nullable default Number getPartitionNumber()
Valid only if the placement group strategy is set to partition .
This parameter is not supported by CreateFleet .
@Stability(value=Stable) @Nullable default String getSpreadDomain()
This parameter is not supported by CreateFleet .
@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 the ImportInstance command.
This parameter is not supported by CreateFleet .
T3 instances that use the unlimited CPU credit option do not support host tenancy.
@Stability(value=Stable) static CfnEC2Fleet.PlacementProperty.Builder builder()
Copyright © 2022. All rights reserved.