Skip to content

Placement

Source code in docs_src/capo_imagebuilder/types/placement.py
class Placement(TypedDict, closed=True):
    availability_zone: NotRequired[
        "capo_imagebuilder.types.non_empty_string.NonEmptyString"
    ]
    """<p>The Availability Zone where your build and test instances will launch.</p>"""
    tenancy: NotRequired["capo_imagebuilder.types.tenancy_type.TenancyType"]
    """<p>The tenancy of the instance. An instance with a tenancy of <code>dedicated</code> runs on single-tenant hardware. An instance with a tenancy of <code>host</code> runs on a Dedicated Host.</p> <p>If tenancy is set to <code>host</code>, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.</p>"""
    host_id: NotRequired["capo_imagebuilder.types.non_empty_string.NonEmptyString"]
    """<p>The ID of the Dedicated Host on which build and test instances run. This only applies if <code>tenancy</code> is <code>host</code>.</p>"""
    host_resource_group_arn: NotRequired[
        "capo_imagebuilder.types.non_empty_string.NonEmptyString"
    ]
    """<p>The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if <code>tenancy</code> is <code>host</code>.</p>"""

availability_zone instance-attribute

availability_zone: NotRequired[NonEmptyString]

The Availability Zone where your build and test instances will launch.

host_id instance-attribute

host_id: NotRequired[NonEmptyString]

The ID of the Dedicated Host on which build and test instances run. This only applies if tenancy is host.

host_resource_group_arn instance-attribute

host_resource_group_arn: NotRequired[NonEmptyString]

The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies if tenancy is host.

tenancy instance-attribute

tenancy: NotRequired[TenancyType]

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

If tenancy is set to host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.