Interface CfnEC2Fleet.PlacementProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEC2Fleet.PlacementProperty.Jsii$Proxy
- Enclosing class:
CfnEC2Fleet
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnEC2Fleet.PlacementPropertystatic final classAn implementation forCfnEC2Fleet.PlacementProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe affinity setting for the instance on the Dedicated Host.default StringThe Availability Zone of the instance.default StringThe name of the placement group that the instance is in.default StringThe ID of the Dedicated Host on which the instance resides.default StringThe ARN of the host resource group in which to launch the instances.default NumberThe number of the partition that the instance is in.default StringReserved for future use.default StringThe tenancy of the instance.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAffinity
The affinity setting for the instance on the Dedicated Host.This parameter is not supported for CreateFleet or ImportInstance .
- See Also:
-
getAvailabilityZone
The Availability Zone of the instance.On input, you can specify
AvailabilityZoneorAvailabilityZoneId, but not both. If you specify neither one, Amazon EC2 automatically selects an Availability Zone for you.This parameter is not supported for CreateFleet .
- See Also:
-
getGroupName
The name of the placement group that the instance is in.On input, you can specify
GroupIdorGroupName, but not both.- See Also:
-
getHostId
The ID of the Dedicated Host on which the instance resides.This parameter is not supported for CreateFleet or ImportInstance .
- See Also:
-
getHostResourceGroupArn
The ARN of the host resource group in which to launch the instances.On input, if you specify this parameter, either omit the Tenancy parameter or set it to
host.This parameter is not supported for CreateFleet .
- See Also:
-
getPartitionNumber
The number of the partition that the instance is in.Valid only if the placement group strategy is set to
partition.This parameter is not supported for CreateFleet .
- See Also:
-
getSpreadDomain
Reserved for future use.- See Also:
-
getTenancy
The tenancy of the instance. An instance with a tenancy ofdedicatedruns on single-tenant hardware.This parameter is not supported for CreateFleet . The
hosttenancy is not supported for ImportInstance or for T3 instances that are configured for theunlimitedCPU credit option.- See Also:
-
builder
-