// 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.
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.
// 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 .
func (c *Client) DescribeHosts(ctx context.Context, params *DescribeHostsInput, optFns ...func(*Options)) (*DescribeHostsOutput, error) {
	if params == nil {
		params = &DescribeHostsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DescribeHosts", params, optFns, addOperationDescribeHostsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DescribeHostsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DescribeHosts ( ctx context . Context , params * DescribeHostsInput , optFns ... func ( * Options ) ) ( * DescribeHostsOutput , error ) { if params == nil { params = & DescribeHostsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDescribeHostsMiddlewares ) if err != nil { return nil , err } out := result . ( * DescribeHostsOutput ) out . ResultMetadata = metadata return out , nil }
Describes the specified Dedicated Hosts or all your Dedicated Hosts.
Describes the specified Dedicated Hosts or all your Dedicated Hosts .