Copyright | (c) 2013-2017 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- getReservedInstancesExchangeQuote :: GetReservedInstancesExchangeQuote
- data GetReservedInstancesExchangeQuote
- grieqTargetConfigurations :: Lens' GetReservedInstancesExchangeQuote [TargetConfigurationRequest]
- grieqDryRun :: Lens' GetReservedInstancesExchangeQuote (Maybe Bool)
- grieqReservedInstanceIds :: Lens' GetReservedInstancesExchangeQuote [Text]
- getReservedInstancesExchangeQuoteResponse :: Int -> GetReservedInstancesExchangeQuoteResponse
- data GetReservedInstancesExchangeQuoteResponse
- grieqrsValidationFailureReason :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text)
- grieqrsTargetConfigurationValueRollup :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe ReservationValue)
- grieqrsCurrencyCode :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text)
- grieqrsTargetConfigurationValueSet :: Lens' GetReservedInstancesExchangeQuoteResponse [TargetReservationValue]
- grieqrsReservedInstanceValueRollup :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe ReservationValue)
- grieqrsOutputReservedInstancesWillExpireAt :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe UTCTime)
- grieqrsReservedInstanceValueSet :: Lens' GetReservedInstancesExchangeQuoteResponse [ReservedInstanceReservationValue]
- grieqrsIsValidExchange :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Bool)
- grieqrsPaymentDue :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text)
- grieqrsResponseStatus :: Lens' GetReservedInstancesExchangeQuoteResponse Int
Creating a Request
getReservedInstancesExchangeQuote :: GetReservedInstancesExchangeQuote Source #
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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.grieqReservedInstanceIds
- The IDs of the Convertible Reserved Instances to exchange.
data GetReservedInstancesExchangeQuote Source #
Contains the parameters for GetReservedInstanceExchangeQuote.
See: getReservedInstancesExchangeQuote
smart constructor.
Request Lenses
grieqTargetConfigurations :: Lens' GetReservedInstancesExchangeQuote [TargetConfigurationRequest] Source #
The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.
grieqDryRun :: Lens' GetReservedInstancesExchangeQuote (Maybe Bool) Source #
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] Source #
The IDs of the Convertible Reserved Instances to exchange.
Destructuring the Response
getReservedInstancesExchangeQuoteResponse Source #
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:
grieqrsValidationFailureReason
- Describes the reason why the exchange cannot be completed.grieqrsTargetConfigurationValueRollup
- The cost associated with the Reserved Instance.grieqrsCurrencyCode
- The currency of the transaction.grieqrsTargetConfigurationValueSet
- The values of the target Convertible Reserved Instances.grieqrsReservedInstanceValueRollup
- The cost associated with the Reserved Instance.grieqrsOutputReservedInstancesWillExpireAt
- The new end date of the reservation term.grieqrsReservedInstanceValueSet
- The configuration of your Convertible Reserved Instances.grieqrsIsValidExchange
- Iftrue
, the exchange is valid. Iffalse
, the exchange cannot be completed.grieqrsPaymentDue
- The total true upfront charge for the exchange.grieqrsResponseStatus
- -- | The response status code.
data GetReservedInstancesExchangeQuoteResponse Source #
Contains the output of GetReservedInstancesExchangeQuote.
See: getReservedInstancesExchangeQuoteResponse
smart constructor.
Response Lenses
grieqrsValidationFailureReason :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text) Source #
Describes the reason why the exchange cannot be completed.
grieqrsTargetConfigurationValueRollup :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe ReservationValue) Source #
The cost associated with the Reserved Instance.
grieqrsCurrencyCode :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text) Source #
The currency of the transaction.
grieqrsTargetConfigurationValueSet :: Lens' GetReservedInstancesExchangeQuoteResponse [TargetReservationValue] Source #
The values of the target Convertible Reserved Instances.
grieqrsReservedInstanceValueRollup :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe ReservationValue) Source #
The cost associated with the Reserved Instance.
grieqrsOutputReservedInstancesWillExpireAt :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe UTCTime) Source #
The new end date of the reservation term.
grieqrsReservedInstanceValueSet :: Lens' GetReservedInstancesExchangeQuoteResponse [ReservedInstanceReservationValue] Source #
The configuration of your Convertible Reserved Instances.
grieqrsIsValidExchange :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Bool) Source #
If true
, the exchange is valid. If false
, the exchange cannot be completed.
grieqrsPaymentDue :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text) Source #
The total true upfront charge for the exchange.
grieqrsResponseStatus :: Lens' GetReservedInstancesExchangeQuoteResponse Int Source #
- - | The response status code.