Skip to content

EC2  >  Structures  >  ResourceTypeOption

ResourceTypeOption

Structure Class

ResourceTypeOption dataclass

Bases: _SerdeShape

The options that affect the scope of the response.

Attributes

option_name class-attribute instance-attribute
option_name: str | None = ...

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 class-attribute instance-attribute
option_values: list[str] | None = ...

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