Skip to content

CreateFleetInstance

Source code in docs_src/capo_ec2/types/create_fleet_instance.py
class CreateFleetInstance(TypedDict, closed=True):
    launch_template_and_overrides: NotRequired[
        "capo_ec2.types.launch_template_and_overrides_response.LaunchTemplateAndOverridesResponse"
    ]
    """<p>The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.</p>"""
    lifecycle: NotRequired["capo_ec2.types.instance_lifecycle.InstanceLifecycle"]
    """<p>Indicates if the instance that was launched is a Spot, On-Demand, Capacity Block for ML, or interruptible Capacity Reservation instance.</p>"""
    instance_ids: NotRequired["capo_ec2.types.instance_ids_set.InstanceIdsSet"]
    """<p>The IDs of the instances.</p>"""
    instance_type: NotRequired["capo_ec2.types.instance_type.InstanceType"]
    """<p>The instance type.</p>"""
    platform: NotRequired["capo_ec2.types.platform_values.PlatformValues"]
    """<p>The value is <code>windows</code> for Windows instances in an EC2 Fleet. Otherwise, the value is blank.</p>"""
    availability_zone_id: NotRequired[
        "capo_ec2.types.availability_zone_id.AvailabilityZoneId"
    ]
    """<p>The ID of the Availability Zone in which the instance was launched. For example, <code>use2-az1</code>.</p> <p>Supported only for fleets of type <code>instant</code>.</p>"""
    availability_zone: NotRequired[
        "capo_ec2.types.availability_zone_name.AvailabilityZoneName"
    ]
    """<p>The name of the Availability Zone in which the instance was launched. For example, <code>us-east-2a</code>.</p> <p>Supported only for fleets of type <code>instant</code>.</p>"""
    subnet_id: NotRequired["capo_ec2.types.subnet_id.SubnetId"]
    """<p>The ID of the subnet in which the instance was launched.</p> <p>Supported only for fleets of type <code>instant</code>.</p>"""

availability_zone instance-attribute

availability_zone: NotRequired[AvailabilityZoneName]

The name of the Availability Zone in which the instance was launched. For example, us-east-2a.

Supported only for fleets of type instant.

availability_zone_id instance-attribute

availability_zone_id: NotRequired[AvailabilityZoneId]

The ID of the Availability Zone in which the instance was launched. For example, use2-az1.

Supported only for fleets of type instant.

instance_ids instance-attribute

instance_ids: NotRequired[InstanceIdsSet]

The IDs of the instances.

instance_type instance-attribute

instance_type: NotRequired[InstanceType]

The instance type.

launch_template_and_overrides instance-attribute

launch_template_and_overrides: NotRequired[LaunchTemplateAndOverridesResponse]

The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.

lifecycle instance-attribute

lifecycle: NotRequired[InstanceLifecycle]

Indicates if the instance that was launched is a Spot, On-Demand, Capacity Block for ML, or interruptible Capacity Reservation instance.

platform instance-attribute

platform: NotRequired[PlatformValues]

The value is windows for Windows instances in an EC2 Fleet. Otherwise, the value is blank.

subnet_id instance-attribute

subnet_id: NotRequired[SubnetId]

The ID of the subnet in which the instance was launched.

Supported only for fleets of type instant.