Skip to content

EC2  >  Dictionaries  >  PlacementDict

PlacementDict

Dictionary Type

PlacementDict

Bases: TypedDict

Dictionary form of Placement.

Attributes

affinity instance-attribute
affinity: str | None

The affinity setting for the instance on the Dedicated Host.

This parameter is not supported for CreateFleet or ImportInstance.

availability_zone instance-attribute
availability_zone: str | None

The Availability Zone of the instance.

On input, you can specify AvailabilityZone or AvailabilityZoneId, but not both. If you specify neither one, Amazon EC2 automatically selects an Availability Zone for you.

This parameter is not supported for CreateFleet.

availability_zone_id instance-attribute
availability_zone_id: str | None

The ID of the Availability Zone of the instance.

On input, you can specify AvailabilityZone or AvailabilityZoneId, but not both. If you specify neither one, Amazon EC2 automatically selects an Availability Zone for you.

This parameter is not supported for CreateFleet.

group_id instance-attribute
group_id: str | None

The ID of the placement group that the instance is in.

On input, you can specify GroupId or GroupName, but not both.

group_name instance-attribute
group_name: str | None

The name of the placement group that the instance is in.

On input, you can specify GroupId or GroupName, but not both.

host_id instance-attribute
host_id: str | None

The ID of the Dedicated Host on which the instance resides.

This parameter is not supported for CreateFleet or ImportInstance.

host_resource_group_arn instance-attribute
host_resource_group_arn: str | None

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

On input, if you specify this parameter, either omit the Tenancy parameter or set it to host.

This parameter is not supported for CreateFleet.

partition_number instance-attribute
partition_number: int | None

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

This parameter is not supported for CreateFleet.

spread_domain instance-attribute
spread_domain: str | None

Reserved for future use.

tenancy instance-attribute
tenancy: str | None

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

This parameter is not supported for CreateFleet. The host tenancy is not supported for ImportInstance or for T3 instances that are configured for the unlimited CPU credit option.