Interface CfnEC2Fleet.IPlacementProperty
Describes the placement of an instance.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface IPlacementProperty
Syntax (vb)
Public Interface IPlacementProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var placementProperty = new PlacementProperty {
Affinity = "affinity",
AvailabilityZone = "availabilityZone",
GroupName = "groupName",
HostId = "hostId",
HostResourceGroupArn = "hostResourceGroupArn",
PartitionNumber = 123,
SpreadDomain = "spreadDomain",
Tenancy = "tenancy"
};
Synopsis
Properties
Affinity | The affinity setting for the instance on the Dedicated Host. |
AvailabilityZone | The Availability Zone of the instance. |
GroupName | The name of the placement group that the instance is in. |
HostId | The ID of the Dedicated Host on which the instance resides. |
HostResourceGroupArn | The ARN of the host resource group in which to launch the instances. |
PartitionNumber | The number of the partition that the instance is in. |
SpreadDomain | Reserved for future use. |
Tenancy | The tenancy of the instance. An instance with a tenancy of |
Properties
Affinity
The affinity setting for the instance on the Dedicated Host.
virtual string Affinity { get; }
Property Value
System.String
Remarks
This parameter is not supported for CreateFleet or ImportInstance .
AvailabilityZone
The Availability Zone of the instance.
virtual string AvailabilityZone { get; }
Property Value
System.String
Remarks
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 for CreateFleet .
GroupName
The name of the placement group that the instance is in.
virtual string GroupName { get; }
Property Value
System.String
Remarks
If you specify GroupName
, you can't specify GroupId
.
HostId
The ID of the Dedicated Host on which the instance resides.
virtual string HostId { get; }
Property Value
System.String
Remarks
This parameter is not supported for CreateFleet or ImportInstance .
HostResourceGroupArn
The ARN of the host resource group in which to launch the instances.
virtual string HostResourceGroupArn { get; }
Property Value
System.String
Remarks
If you specify this parameter, either omit the Tenancy parameter or set it to host
.
This parameter is not supported for CreateFleet .
PartitionNumber
The number of the partition that the instance is in.
virtual Nullable<double> PartitionNumber { get; }
Property Value
System.Nullable<System.Double>
Remarks
Valid only if the placement group strategy is set to partition
.
This parameter is not supported for CreateFleet .
SpreadDomain
Reserved for future use.
virtual string SpreadDomain { get; }
Property Value
System.String
Remarks
Tenancy
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
virtual string Tenancy { get; }
Property Value
System.String
Remarks
This parameter is not supported for CreateFleet . The host
tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited
CPU credit option.