Skip to content

SpotPlacement

Source code in docs_src/capo_ec2/types/spot_placement.py
class SpotPlacement(TypedDict, closed=True):
    availability_zone: NotRequired["capo_ec2.types.string.String"]
    """<p>The Availability Zone. For example, <code>us-east-2a</code>.</p> <p>[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "<code>us-east-2a</code>, <code>us-east-2b</code>".</p> <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> must be specified in the request, but not both.</p>"""
    group_name: NotRequired["capo_ec2.types.placement_group_name.PlacementGroupName"]
    """<p>The name of the placement group.</p>"""
    tenancy: NotRequired["capo_ec2.types.tenancy.Tenancy"]
    """<p>The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of <code>dedicated</code> runs on single-tenant hardware. The <code>host</code> tenancy is not supported for Spot Instances.</p>"""
    availability_zone_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The ID of the Availability Zone. For example, <code>use2-az1</code>.</p> <p>[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "<code>use2-az1</code>, <code>use2-bz1</code>".</p> <p>Either <code>AvailabilityZone</code> or <code>AvailabilityZoneId</code> must be specified in the request, but not both.</p>"""

availability_zone instance-attribute

availability_zone: NotRequired[String]

The Availability Zone. For example, us-east-2a.

[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-east-2a, us-east-2b".

Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

availability_zone_id instance-attribute

availability_zone_id: NotRequired[String]

The ID of the Availability Zone. For example, use2-az1.

[Spot Fleet only] To specify multiple Availability Zones, separate them using commas; for example, "use2-az1, use2-bz1".

Either AvailabilityZone or AvailabilityZoneId must be specified in the request, but not both.

group_name instance-attribute

group_name: NotRequired[PlacementGroupName]

The name of the placement group.

tenancy instance-attribute

tenancy: NotRequired[Tenancy]

The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot Instances.