Class CfnLaunchTemplate.PlacementProperty
Specifies the placement of an instance.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLaunchTemplate.PlacementProperty : CfnLaunchTemplate.IPlacementProperty
Syntax (vb)
Public Class CfnLaunchTemplate.PlacementProperty 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() | Specifies the placement of an instance. |
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()
Specifies the placement of an instance.
public PlacementProperty()
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"
};
Properties
Affinity
The affinity setting for an instance on a Dedicated Host.
public string? Affinity { get; set; }
Property Value
Remarks
AvailabilityZone
The Availability Zone for the instance.
public string? AvailabilityZone { get; set; }
Property Value
Remarks
Either AvailabilityZone or AvailabilityZoneId can be specified, but not both
GroupId
The Group Id of a placement group.
public string? GroupId { get; set; }
Property Value
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
Remarks
HostId
The ID of the Dedicated Host for the instance.
public string? HostId { get; set; }
Property Value
Remarks
HostResourceGroupArn
The ARN of the host resource group in which to launch the instances.
public string? HostResourceGroupArn { get; set; }
Property Value
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 double? PartitionNumber { get; set; }
Property Value
Remarks
Valid only if the placement group strategy is set to partition .
SpreadDomain
Reserved for future use.
public string? SpreadDomain { get; set; }
Property Value
Remarks
Tenancy
The tenancy of the instance.
public string? Tenancy { get; set; }
Property Value
Remarks
An instance with a tenancy of dedicated runs on single-tenant hardware.