interface PlacementProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.CfnLaunchTemplate.PlacementProperty |
Java | software.amazon.awscdk.services.ec2.CfnLaunchTemplate.PlacementProperty |
Python | aws_cdk.aws_ec2.CfnLaunchTemplate.PlacementProperty |
TypeScript | @aws-cdk/aws-ec2 » CfnLaunchTemplate » PlacementProperty |
Specifies the placement of an instance.
Placement
is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
const placementProperty: ec2.CfnLaunchTemplate.PlacementProperty = {
affinity: 'affinity',
availabilityZone: 'availabilityZone',
groupId: 'groupId',
groupName: 'groupName',
hostId: 'hostId',
hostResourceGroupArn: 'hostResourceGroupArn',
partitionNumber: 123,
spreadDomain: 'spreadDomain',
tenancy: 'tenancy',
};
Properties
Name | Type | Description |
---|---|---|
affinity? | string | The affinity setting for an instance on a Dedicated Host. |
availability | string | The Availability Zone for the instance. |
group | string | The Group Id of a placement group. |
group | string | The name of the placement group for the instance. |
host | string | The ID of the Dedicated Host for the instance. |
host | string | The ARN of the host resource group in which to launch the instances. |
partition | number | The number of the partition the instance should launch in. |
spread | string | Reserved for future use. |
tenancy? | string | The tenancy of the instance. |
affinity?
Type:
string
(optional)
The affinity setting for an instance on a Dedicated Host.
availabilityZone?
Type:
string
(optional)
The Availability Zone for the instance.
groupId?
Type:
string
(optional)
The Group Id of a placement group.
You must specify the Placement Group Group Id to launch an instance in a shared placement group.
groupName?
Type:
string
(optional)
The name of the placement group for the instance.
hostId?
Type:
string
(optional)
The ID of the Dedicated Host for the instance.
hostResourceGroupArn?
Type:
string
(optional)
The ARN of the host resource group in which to launch the instances.
If you specify a host resource group ARN, omit the Tenancy parameter or set it to host
.
partitionNumber?
Type:
number
(optional)
The number of the partition the instance should launch in.
Valid only if the placement group strategy is set to partition
.
spreadDomain?
Type:
string
(optional)
Reserved for future use.
tenancy?
Type:
string
(optional)
The tenancy of the instance.
An instance with a tenancy of dedicated runs on single-tenant hardware.