Skip to content

EC2  >  Structures  >  LaunchTemplatePlacement

LaunchTemplatePlacement

Structure Class

LaunchTemplatePlacement dataclass

Bases: _SerdeShape

Describes the placement of an instance.

Attributes

affinity class-attribute instance-attribute
affinity: str | None = ...

The affinity setting for the instance on the Dedicated Host.

availability_zone class-attribute instance-attribute
availability_zone: str | None = ...

The Availability Zone of the instance.

availability_zone_id class-attribute instance-attribute
availability_zone_id: str | None = ...

The ID of the Availability Zone of the instance.

group_id class-attribute instance-attribute
group_id: str | None = ...

The Group ID of the placement group. You must specify the Placement Group Group ID to launch an instance in a shared placement group.

group_name class-attribute instance-attribute
group_name: str | None = ...

The name of the placement group for the instance.

host_id class-attribute instance-attribute
host_id: str | None = ...

The ID of the Dedicated Host for the instance.

host_resource_group_arn class-attribute instance-attribute
host_resource_group_arn: str | None = ...

The ARN of the host resource group in which to launch the instances.

partition_number class-attribute instance-attribute
partition_number: int | None = ...

The number of the partition the instance should launch in. Valid only if the placement group strategy is set to partition.

spread_domain class-attribute instance-attribute
spread_domain: str | None = ...

Reserved for future use.

tenancy class-attribute instance-attribute
tenancy: str | None = ...

The tenancy of the instance. An instance with a tenancy of dedicated runs on single-tenant hardware.