Skip to content

ResourceTypeOption

Source code in docs_src/capo_ec2/types/resource_type_option.py
class ResourceTypeOption(TypedDict, closed=True):
    option_name: NotRequired[
        "capo_ec2.types.image_reference_option_name.ImageReferenceOptionName"
    ]
    """<p>The name of the option.</p> <ul> <li> <p>For <code>ec2:Instance</code>:</p> <p>Specify <code>state-name</code> - The current state of the EC2 instance.</p> </li> <li> <p>For <code>ec2:LaunchTemplate</code>:</p> <p>Specify <code>version-depth</code> - The number of launch template versions to check, starting from the most recent version.</p> </li> </ul>"""
    option_values: NotRequired[
        "capo_ec2.types.resource_type_option_values_list.ResourceTypeOptionValuesList"
    ]
    """<p>A value for the specified option.</p> <ul> <li> <p>For <code>state-name</code>:</p> <ul> <li> <p>Valid values: <code>pending</code> | <code>running</code> | <code>shutting-down</code> | <code>terminated</code> | <code>stopping</code> | <code>stopped</code> </p> </li> <li> <p>Default: All states</p> </li> </ul> </li> <li> <p>For <code>version-depth</code>:</p> <ul> <li> <p>Valid values: Integers between <code>1</code> and <code>10000</code> </p> </li> <li> <p>Default: <code>10</code> </p> </li> </ul> </li> </ul>"""

option_name instance-attribute

option_name: NotRequired[ImageReferenceOptionName]

The name of the option.

  • For ec2:Instance:

    Specify state-name - The current state of the EC2 instance.

  • For ec2:LaunchTemplate:

    Specify version-depth - The number of launch template versions to check, starting from the most recent version.

option_values instance-attribute

option_values: NotRequired[ResourceTypeOptionValuesList]

A value for the specified option.

  • For state-name:

    • Valid values: pending | running | shutting-down | terminated | stopping | stopped

    • Default: All states

  • For version-depth:

    • Valid values: Integers between 1 and 10000

    • Default: 10