Skip to content

EC2  >  Operations  >  describe_mac_hosts

describe_mac_hosts

Operation

describe_mac_hosts async

describe_mac_hosts(request: DescribeMacHostsInput | DescribeMacHostsInputDict, /, *, plugins: list[Plugin] | None = None) -> DescribeMacHostsOutput
describe_mac_hosts(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DescribeMacHostsInputDict]) -> DescribeMacHostsOutput

Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts.

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DescribeMacHostsOutput

An instance of DescribeMacHostsOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

DescribeMacHostsInput dataclass

Bases: _SerdeShape

Dataclass for DescribeMacHostsInput structure.

Attributes
filters class-attribute instance-attribute
filters: list[Filter] | None = ...

The filters.

  • availability-zone - The Availability Zone of the EC2 Mac Dedicated Host.

  • instance-type - The instance type size that the EC2 Mac Dedicated Host is configured to support.

host_ids class-attribute instance-attribute
host_ids: list[str] | None = ...

The IDs of the EC2 Mac Dedicated Hosts.

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

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500. If maxResults is given a larger value than 500, you receive an error.

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

The token to use to retrieve the next page of results.

Dictionaries

DescribeMacHostsInputDict

Bases: TypedDict

Dictionary form of DescribeMacHostsInput.

Attributes
filters instance-attribute
filters: Sequence[Filter | FilterDict] | None

The filters.

  • availability-zone - The Availability Zone of the EC2 Mac Dedicated Host.

  • instance-type - The instance type size that the EC2 Mac Dedicated Host is configured to support.

host_ids instance-attribute
host_ids: Sequence[str] | None

The IDs of the EC2 Mac Dedicated Hosts.

max_results instance-attribute
max_results: int | None

The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the returned nextToken value. This value can be between 5 and 500. If maxResults is given a larger value than 500, you receive an error.

next_token instance-attribute
next_token: str | None

The token to use to retrieve the next page of results.

Output

DescribeMacHostsOutput dataclass

Bases: _SerdeShape

Dataclass for DescribeMacHostsOutput structure.

Attributes

mac_hosts class-attribute instance-attribute
mac_hosts: list[MacHost] | None = ...

Information about the EC2 Mac Dedicated Hosts.

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

The token to use to retrieve the next page of results.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.