Class CfnLaunchTemplate.PlacementProperty
Specifies the placement of an instance.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PlacementProperty : Object, CfnLaunchTemplate.IPlacementProperty
Syntax (vb)
Public Class PlacementProperty
Inherits Object
Implements CfnLaunchTemplate.IPlacementProperty
Remarks
Placement
is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .
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",
GroupId = "groupId",
GroupName = "groupName",
HostId = "hostId",
HostResourceGroupArn = "hostResourceGroupArn",
PartitionNumber = 123,
SpreadDomain = "spreadDomain",
Tenancy = "tenancy"
};
Synopsis
Constructors
PlacementProperty() |
Properties
Affinity | The affinity setting for an instance on a Dedicated Host. |
AvailabilityZone | The Availability Zone for the instance. |
GroupId | The Group Id of a placement group. |
GroupName | The name of the placement group for the instance. |
HostId | The ID of the Dedicated Host for the instance. |
HostResourceGroupArn | The ARN of the host resource group in which to launch the instances. |
PartitionNumber | The number of the partition the instance should launch in. |
SpreadDomain | Reserved for future use. |
Tenancy | The tenancy of the instance. |
Constructors
PlacementProperty()
public PlacementProperty()
Properties
Affinity
The affinity setting for an instance on a Dedicated Host.
public string Affinity { get; set; }
Property Value
System.String
Remarks
AvailabilityZone
The Availability Zone for the instance.
public string AvailabilityZone { get; set; }
Property Value
System.String
Remarks
GroupId
The Group Id of a placement group.
public string GroupId { get; set; }
Property Value
System.String
Remarks
You must specify the Placement Group Group Id to launch an instance in a shared placement group.
GroupName
The name of the placement group for the instance.
public string GroupName { get; set; }
Property Value
System.String
Remarks
HostId
The ID of the Dedicated Host for the instance.
public string HostId { get; set; }
Property Value
System.String
Remarks
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 a host resource group ARN, omit the Tenancy parameter or set it to host
.
PartitionNumber
The number of the partition the instance should launch 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
.
SpreadDomain
Reserved for future use.
public string SpreadDomain { get; set; }
Property Value
System.String
Remarks
Tenancy
The tenancy of the instance.
public string Tenancy { get; set; }
Property Value
System.String
Remarks
An instance with a tenancy of dedicated runs on single-tenant hardware.