describeHosts

inline suspend fun Ec2Client.describeHosts(crossinline block: DescribeHostsRequest.Builder.() -> Unit): DescribeHostsResponse

Describes the specified Dedicated Hosts or all your Dedicated Hosts.

The results describe only the Dedicated Hosts in the Region you're currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state released.