Interface CfnLaunchTemplate.IPlacementProperty
Specifies the placement of an instance.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IPlacementProperty
Syntax (vb)
Public Interface 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
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. |
Properties
Affinity
The affinity setting for an instance on a Dedicated Host.
virtual string Affinity { get; }
Property Value
System.String
Remarks
AvailabilityZone
The Availability Zone for the instance.
virtual string AvailabilityZone { get; }
Property Value
System.String
Remarks
GroupId
The Group Id of a placement group.
virtual string GroupId { get; }
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.
virtual string GroupName { get; }
Property Value
System.String
Remarks
HostId
The ID of the Dedicated Host for the instance.
virtual string HostId { get; }
Property Value
System.String
Remarks
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 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.
virtual Nullable<double> PartitionNumber { get; }
Property Value
System.Nullable<System.Double>
Remarks
Valid only if the placement group strategy is set to partition
.
SpreadDomain
Reserved for future use.
virtual string SpreadDomain { get; }
Property Value
System.String
Remarks
Tenancy
The tenancy of the instance.
virtual string Tenancy { get; }
Property Value
System.String
Remarks
An instance with a tenancy of dedicated runs on single-tenant hardware.