amazonka-ec2-1.6.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DescribeHosts

Contents

Description

Describes one or more of 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 will be listed with the state released .

Synopsis

Creating a Request

describeHosts :: DescribeHosts Source #

Creates a value of DescribeHosts with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dhNextToken - The token to retrieve the next page of results.
  • dhFilter - One or more filters. * auto-placement - Whether auto-placement is enabled or disabled (on | off ). * availability-zone - The Availability Zone of the host. * client-token - The idempotency token you provided when you allocated the host. * host-reservation-id - The ID of the reservation assigned to this host. * instance-type - The instance type size that the Dedicated Host is configured to support. * state - The allocation state of the Dedicated Host (available | under-assessment | permanent-failure | released | released-permanent-failure ).
  • dhHostIds - The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches.
  • dhMaxResults - 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 will receive an error. You cannot specify this parameter and the host IDs parameter in the same request.

data DescribeHosts Source #

Contains the parameters for DescribeHosts.

See: describeHosts smart constructor.

Instances
Eq DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Data DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeHosts -> c DescribeHosts #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeHosts #

toConstr :: DescribeHosts -> Constr #

dataTypeOf :: DescribeHosts -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeHosts) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeHosts) #

gmapT :: (forall b. Data b => b -> b) -> DescribeHosts -> DescribeHosts #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeHosts -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeHosts -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeHosts -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeHosts -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeHosts -> m DescribeHosts #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeHosts -> m DescribeHosts #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeHosts -> m DescribeHosts #

Read DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Show DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Generic DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Associated Types

type Rep DescribeHosts :: Type -> Type #

Hashable DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

AWSRequest DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Associated Types

type Rs DescribeHosts :: Type #

ToHeaders DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

ToPath DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

ToQuery DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

NFData DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Methods

rnf :: DescribeHosts -> () #

type Rep DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

type Rep DescribeHosts = D1 (MetaData "DescribeHosts" "Network.AWS.EC2.DescribeHosts" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeHosts'" PrefixI True) ((S1 (MetaSel (Just "_dhNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dhFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter]))) :*: (S1 (MetaSel (Just "_dhHostIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 (MetaSel (Just "_dhMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int)))))
type Rs DescribeHosts Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Request Lenses

dhNextToken :: Lens' DescribeHosts (Maybe Text) Source #

The token to retrieve the next page of results.

dhFilter :: Lens' DescribeHosts [Filter] Source #

One or more filters. * auto-placement - Whether auto-placement is enabled or disabled (on | off ). * availability-zone - The Availability Zone of the host. * client-token - The idempotency token you provided when you allocated the host. * host-reservation-id - The ID of the reservation assigned to this host. * instance-type - The instance type size that the Dedicated Host is configured to support. * state - The allocation state of the Dedicated Host (available | under-assessment | permanent-failure | released | released-permanent-failure ).

dhHostIds :: Lens' DescribeHosts [Text] Source #

The IDs of the Dedicated Hosts. The IDs are used for targeted instance launches.

dhMaxResults :: Lens' DescribeHosts (Maybe Int) Source #

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 will receive an error. You cannot specify this parameter and the host IDs parameter in the same request.

Destructuring the Response

describeHostsResponse Source #

Creates a value of DescribeHostsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dhrsHosts - Information about the Dedicated Hosts.
  • dhrsNextToken - The token to use to retrieve the next page of results. This value is null when there are no more results to return.
  • dhrsResponseStatus - -- | The response status code.

data DescribeHostsResponse Source #

Contains the output of DescribeHosts.

See: describeHostsResponse smart constructor.

Instances
Eq DescribeHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Data DescribeHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeHostsResponse -> c DescribeHostsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeHostsResponse #

toConstr :: DescribeHostsResponse -> Constr #

dataTypeOf :: DescribeHostsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DescribeHostsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeHostsResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeHostsResponse -> DescribeHostsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeHostsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeHostsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeHostsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeHostsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeHostsResponse -> m DescribeHostsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeHostsResponse -> m DescribeHostsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeHostsResponse -> m DescribeHostsResponse #

Read DescribeHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Show DescribeHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Generic DescribeHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Associated Types

type Rep DescribeHostsResponse :: Type -> Type #

NFData DescribeHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

Methods

rnf :: DescribeHostsResponse -> () #

type Rep DescribeHostsResponse Source # 
Instance details

Defined in Network.AWS.EC2.DescribeHosts

type Rep DescribeHostsResponse = D1 (MetaData "DescribeHostsResponse" "Network.AWS.EC2.DescribeHosts" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" False) (C1 (MetaCons "DescribeHostsResponse'" PrefixI True) (S1 (MetaSel (Just "_dhrsHosts") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Host])) :*: (S1 (MetaSel (Just "_dhrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dhrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dhrsHosts :: Lens' DescribeHostsResponse [Host] Source #

Information about the Dedicated Hosts.

dhrsNextToken :: Lens' DescribeHostsResponse (Maybe Text) Source #

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

dhrsResponseStatus :: Lens' DescribeHostsResponse Int Source #

  • - | The response status code.