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

Copyright(c) 2013-2017 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.DescribeHostReservations

Contents

Description

Describes Dedicated Host Reservations which are associated with Dedicated Hosts in your account.

Synopsis

Creating a Request

describeHostReservations :: DescribeHostReservations Source #

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

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

  • dhrNextToken - The token to use to retrieve the next page of results.
  • dhrHostReservationIdSet - One or more host reservation IDs.
  • dhrFilter - One or more filters. * instance-family - The instance family (e.g., m4 ). * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront ). * state - The state of the reservation (payment-pending | payment-failed | active | retired ).
  • dhrMaxResults - 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.

data DescribeHostReservations Source #

See: describeHostReservations smart constructor.

Instances

Eq DescribeHostReservations Source # 
Data DescribeHostReservations Source # 

Methods

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

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

toConstr :: DescribeHostReservations -> Constr #

dataTypeOf :: DescribeHostReservations -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeHostReservations Source # 
Show DescribeHostReservations Source # 
Generic DescribeHostReservations Source # 
Hashable DescribeHostReservations Source # 
NFData DescribeHostReservations Source # 
AWSRequest DescribeHostReservations Source # 
ToQuery DescribeHostReservations Source # 
ToPath DescribeHostReservations Source # 
ToHeaders DescribeHostReservations Source # 
type Rep DescribeHostReservations Source # 
type Rep DescribeHostReservations = D1 (MetaData "DescribeHostReservations" "Network.AWS.EC2.DescribeHostReservations" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "DescribeHostReservations'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dhrNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dhrHostReservationIdSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) ((:*:) (S1 (MetaSel (Just Symbol "_dhrFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Filter]))) (S1 (MetaSel (Just Symbol "_dhrMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Int))))))
type Rs DescribeHostReservations Source # 

Request Lenses

dhrNextToken :: Lens' DescribeHostReservations (Maybe Text) Source #

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

dhrHostReservationIdSet :: Lens' DescribeHostReservations [Text] Source #

One or more host reservation IDs.

dhrFilter :: Lens' DescribeHostReservations [Filter] Source #

One or more filters. * instance-family - The instance family (e.g., m4 ). * payment-option - The payment option (NoUpfront | PartialUpfront | AllUpfront ). * state - The state of the reservation (payment-pending | payment-failed | active | retired ).

dhrMaxResults :: Lens' DescribeHostReservations (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.

Destructuring the Response

describeHostReservationsResponse Source #

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

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

data DescribeHostReservationsResponse Source #

See: describeHostReservationsResponse smart constructor.

Instances

Eq DescribeHostReservationsResponse Source # 
Data DescribeHostReservationsResponse Source # 

Methods

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

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

toConstr :: DescribeHostReservationsResponse -> Constr #

dataTypeOf :: DescribeHostReservationsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeHostReservationsResponse Source # 
Show DescribeHostReservationsResponse Source # 
Generic DescribeHostReservationsResponse Source # 
NFData DescribeHostReservationsResponse Source # 
type Rep DescribeHostReservationsResponse Source # 
type Rep DescribeHostReservationsResponse = D1 (MetaData "DescribeHostReservationsResponse" "Network.AWS.EC2.DescribeHostReservations" "amazonka-ec2-1.5.0-8IdXK3SzsETDMW2aFpANS9" False) (C1 (MetaCons "DescribeHostReservationsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dhrrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dhrrsHostReservationSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [HostReservation]))) (S1 (MetaSel (Just Symbol "_dhrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

dhrrsNextToken :: Lens' DescribeHostReservationsResponse (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.

dhrrsHostReservationSet :: Lens' DescribeHostReservationsResponse [HostReservation] Source #

Details about the reservation's configuration.