aws-cdk-lib.aws_ec2.CfnLaunchTemplate.PlacementProperty

interface PlacementProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnLaunchTemplate.PlacementProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnLaunchTemplate_PlacementProperty
Javasoftware.amazon.awscdk.services.ec2.CfnLaunchTemplate.PlacementProperty
Pythonaws_cdk.aws_ec2.CfnLaunchTemplate.PlacementProperty
TypeScript aws-cdk-lib » 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 { aws_ec2 as ec2 } from 'aws-cdk-lib';
const placementProperty: ec2.CfnLaunchTemplate.PlacementProperty = {
  affinity: 'affinity',
  availabilityZone: 'availabilityZone',
  groupId: 'groupId',
  groupName: 'groupName',
  hostId: 'hostId',
  hostResourceGroupArn: 'hostResourceGroupArn',
  partitionNumber: 123,
  spreadDomain: 'spreadDomain',
  tenancy: 'tenancy',
};

Properties

NameTypeDescription
affinity?stringThe affinity setting for an instance on a Dedicated Host.
availabilityZone?stringThe Availability Zone for the instance.
groupId?stringThe Group Id of a placement group.
groupName?stringThe name of the placement group for the instance.
hostId?stringThe ID of the Dedicated Host for the instance.
hostResourceGroupArn?stringThe ARN of the host resource group in which to launch the instances.
partitionNumber?numberThe number of the partition the instance should launch in.
spreadDomain?stringReserved for future use.
tenancy?stringThe 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.