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.GetReservedInstancesExchangeQuote

Contents

Description

Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange.

Synopsis

Creating a Request

getReservedInstancesExchangeQuote :: GetReservedInstancesExchangeQuote #

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

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

  • grieqTargetConfigurations - The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.
  • grieqDryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • grieqReservedInstanceIds - The IDs of the Convertible Reserved Instances to exchange.

data GetReservedInstancesExchangeQuote #

Contains the parameters for GetReservedInstanceExchangeQuote.

See: getReservedInstancesExchangeQuote smart constructor.

Instances
Eq GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Data GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Methods

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

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

toConstr :: GetReservedInstancesExchangeQuote -> Constr #

dataTypeOf :: GetReservedInstancesExchangeQuote -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Show GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Generic GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Associated Types

type Rep GetReservedInstancesExchangeQuote :: Type -> Type #

Hashable GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

AWSRequest GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Associated Types

type Rs GetReservedInstancesExchangeQuote :: Type #

ToHeaders GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

ToPath GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

ToQuery GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

NFData GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

type Rep GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

type Rep GetReservedInstancesExchangeQuote = D1 (MetaData "GetReservedInstancesExchangeQuote" "Network.AWS.EC2.GetReservedInstancesExchangeQuote" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "GetReservedInstancesExchangeQuote'" PrefixI True) (S1 (MetaSel (Just "_grieqTargetConfigurations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TargetConfigurationRequest])) :*: (S1 (MetaSel (Just "_grieqDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_grieqReservedInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))
type Rs GetReservedInstancesExchangeQuote # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Request Lenses

grieqTargetConfigurations :: Lens' GetReservedInstancesExchangeQuote [TargetConfigurationRequest] #

The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.

grieqDryRun :: Lens' GetReservedInstancesExchangeQuote (Maybe Bool) #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

grieqReservedInstanceIds :: Lens' GetReservedInstancesExchangeQuote [Text] #

The IDs of the Convertible Reserved Instances to exchange.

Destructuring the Response

getReservedInstancesExchangeQuoteResponse #

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

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

data GetReservedInstancesExchangeQuoteResponse #

Contains the output of GetReservedInstancesExchangeQuote.

See: getReservedInstancesExchangeQuoteResponse smart constructor.

Instances
Eq GetReservedInstancesExchangeQuoteResponse # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Data GetReservedInstancesExchangeQuoteResponse # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Methods

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

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

toConstr :: GetReservedInstancesExchangeQuoteResponse -> Constr #

dataTypeOf :: GetReservedInstancesExchangeQuoteResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetReservedInstancesExchangeQuoteResponse # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Show GetReservedInstancesExchangeQuoteResponse # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

Generic GetReservedInstancesExchangeQuoteResponse # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

NFData GetReservedInstancesExchangeQuoteResponse # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

type Rep GetReservedInstancesExchangeQuoteResponse # 
Instance details

Defined in Network.AWS.EC2.GetReservedInstancesExchangeQuote

type Rep GetReservedInstancesExchangeQuoteResponse = D1 (MetaData "GetReservedInstancesExchangeQuoteResponse" "Network.AWS.EC2.GetReservedInstancesExchangeQuote" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "GetReservedInstancesExchangeQuoteResponse'" PrefixI True) (((S1 (MetaSel (Just "_grieqrsValidationFailureReason") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_grieqrsTargetConfigurationValueRollup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ReservationValue))) :*: (S1 (MetaSel (Just "_grieqrsCurrencyCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_grieqrsTargetConfigurationValueSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TargetReservationValue])) :*: S1 (MetaSel (Just "_grieqrsReservedInstanceValueRollup") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ReservationValue))))) :*: ((S1 (MetaSel (Just "_grieqrsOutputReservedInstancesWillExpireAt") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 (MetaSel (Just "_grieqrsReservedInstanceValueSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ReservedInstanceReservationValue]))) :*: (S1 (MetaSel (Just "_grieqrsIsValidExchange") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_grieqrsPaymentDue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_grieqrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))))

Response Lenses

grieqrsValidationFailureReason :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text) #

Describes the reason why the exchange cannot be completed.

grieqrsIsValidExchange :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Bool) #

If true , the exchange is valid. If false , the exchange cannot be completed.

grieqrsPaymentDue :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text) #

The total true upfront charge for the exchange.