Skip to content

EC2  >  Dictionaries  >  ResourceTypeOptionDict

ResourceTypeOptionDict

Dictionary Type

ResourceTypeOptionDict

Bases: TypedDict

Dictionary form of ResourceTypeOption.

Attributes

option_name 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 instance-attribute
option_values: Sequence[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