Skip to content

EC2  >  Structures  >  FleetInstanceMetadataOptionsRequest

FleetInstanceMetadataOptionsRequest

Structure Class

FleetInstanceMetadataOptionsRequest dataclass

Bases: _SerdeShape

Describes the metadata options for the instances. Supported only for fleets of type instant.

Attributes

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

Enables or disables the HTTP metadata endpoint on your instances.

  • enabled - The HTTP metadata endpoint is enabled.

  • disabled - The HTTP metadata endpoint is disabled.

http_put_response_hop_limit class-attribute instance-attribute
http_put_response_hop_limit: int | None = ...

The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.

Default: 1

Possible values: Integers from 1 to 64

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

Indicates whether IMDSv2 is required.

  • optional - IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1.

  • required - IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.