Class CfnEC2Fleet.PlacementProperty
Describes the placement of an instance.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PlacementProperty : Object, CfnEC2Fleet.IPlacementProperty
Syntax (vb)
Public Class PlacementProperty
Inherits Object
Implements CfnEC2Fleet.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
Constructors
PlacementProperty() |
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 |
Constructors
PlacementProperty()
public PlacementProperty()
Properties
Affinity
The affinity setting for the instance on the Dedicated Host.
public string Affinity { get; set; }
Property Value
System.String
Remarks
This parameter is not supported for CreateFleet or ImportInstance .
AvailabilityZone
The Availability Zone of the instance.
public string AvailabilityZone { get; set; }
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.
public string GroupName { get; set; }
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.
public string HostId { get; set; }
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.
public string HostResourceGroupArn { get; set; }
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.
public Nullable<double> PartitionNumber { get; set; }
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.
public string SpreadDomain { get; set; }
Property Value
System.String
Remarks
Tenancy
The tenancy of the instance. An instance with a tenancy of dedicated
runs on single-tenant hardware.
public string Tenancy { get; set; }
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.