Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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.
Synopsis
- data GetReservedInstancesExchangeQuote = GetReservedInstancesExchangeQuote' {}
- newGetReservedInstancesExchangeQuote :: GetReservedInstancesExchangeQuote
- getReservedInstancesExchangeQuote_dryRun :: Lens' GetReservedInstancesExchangeQuote (Maybe Bool)
- getReservedInstancesExchangeQuote_targetConfigurations :: Lens' GetReservedInstancesExchangeQuote (Maybe [TargetConfigurationRequest])
- getReservedInstancesExchangeQuote_reservedInstanceIds :: Lens' GetReservedInstancesExchangeQuote [Text]
- data GetReservedInstancesExchangeQuoteResponse = GetReservedInstancesExchangeQuoteResponse' {
- currencyCode :: Maybe Text
- isValidExchange :: Maybe Bool
- outputReservedInstancesWillExpireAt :: Maybe ISO8601
- paymentDue :: Maybe Text
- reservedInstanceValueRollup :: Maybe ReservationValue
- reservedInstanceValueSet :: Maybe [ReservedInstanceReservationValue]
- targetConfigurationValueRollup :: Maybe ReservationValue
- targetConfigurationValueSet :: Maybe [TargetReservationValue]
- validationFailureReason :: Maybe Text
- httpStatus :: Int
- newGetReservedInstancesExchangeQuoteResponse :: Int -> GetReservedInstancesExchangeQuoteResponse
- getReservedInstancesExchangeQuoteResponse_currencyCode :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text)
- getReservedInstancesExchangeQuoteResponse_isValidExchange :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Bool)
- getReservedInstancesExchangeQuoteResponse_outputReservedInstancesWillExpireAt :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe UTCTime)
- getReservedInstancesExchangeQuoteResponse_paymentDue :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text)
- getReservedInstancesExchangeQuoteResponse_reservedInstanceValueRollup :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe ReservationValue)
- getReservedInstancesExchangeQuoteResponse_reservedInstanceValueSet :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe [ReservedInstanceReservationValue])
- getReservedInstancesExchangeQuoteResponse_targetConfigurationValueRollup :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe ReservationValue)
- getReservedInstancesExchangeQuoteResponse_targetConfigurationValueSet :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe [TargetReservationValue])
- getReservedInstancesExchangeQuoteResponse_validationFailureReason :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text)
- getReservedInstancesExchangeQuoteResponse_httpStatus :: Lens' GetReservedInstancesExchangeQuoteResponse Int
Creating a Request
data GetReservedInstancesExchangeQuote Source #
Contains the parameters for GetReservedInstanceExchangeQuote.
See: newGetReservedInstancesExchangeQuote
smart constructor.
GetReservedInstancesExchangeQuote' | |
|
Instances
newGetReservedInstancesExchangeQuote :: GetReservedInstancesExchangeQuote Source #
Create a value of GetReservedInstancesExchangeQuote
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:GetReservedInstancesExchangeQuote'
, getReservedInstancesExchangeQuote_dryRun
- 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
.
$sel:targetConfigurations:GetReservedInstancesExchangeQuote'
, getReservedInstancesExchangeQuote_targetConfigurations
- The configuration of the target Convertible Reserved Instance to
exchange for your current Convertible Reserved Instances.
$sel:reservedInstanceIds:GetReservedInstancesExchangeQuote'
, getReservedInstancesExchangeQuote_reservedInstanceIds
- The IDs of the Convertible Reserved Instances to exchange.
Request Lenses
getReservedInstancesExchangeQuote_dryRun :: 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
.
getReservedInstancesExchangeQuote_targetConfigurations :: Lens' GetReservedInstancesExchangeQuote (Maybe [TargetConfigurationRequest]) Source #
The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.
getReservedInstancesExchangeQuote_reservedInstanceIds :: Lens' GetReservedInstancesExchangeQuote [Text] Source #
The IDs of the Convertible Reserved Instances to exchange.
Destructuring the Response
data GetReservedInstancesExchangeQuoteResponse Source #
Contains the output of GetReservedInstancesExchangeQuote.
See: newGetReservedInstancesExchangeQuoteResponse
smart constructor.
GetReservedInstancesExchangeQuoteResponse' | |
|
Instances
newGetReservedInstancesExchangeQuoteResponse Source #
Create a value of GetReservedInstancesExchangeQuoteResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetReservedInstancesExchangeQuoteResponse
, getReservedInstancesExchangeQuoteResponse_currencyCode
- The currency of the transaction.
$sel:isValidExchange:GetReservedInstancesExchangeQuoteResponse'
, getReservedInstancesExchangeQuoteResponse_isValidExchange
- If true
, the exchange is valid. If false
, the exchange cannot be
completed.
$sel:outputReservedInstancesWillExpireAt:GetReservedInstancesExchangeQuoteResponse'
, getReservedInstancesExchangeQuoteResponse_outputReservedInstancesWillExpireAt
- The new end date of the reservation term.
$sel:paymentDue:GetReservedInstancesExchangeQuoteResponse'
, getReservedInstancesExchangeQuoteResponse_paymentDue
- The total true upfront charge for the exchange.
$sel:reservedInstanceValueRollup:GetReservedInstancesExchangeQuoteResponse'
, getReservedInstancesExchangeQuoteResponse_reservedInstanceValueRollup
- The cost associated with the Reserved Instance.
$sel:reservedInstanceValueSet:GetReservedInstancesExchangeQuoteResponse'
, getReservedInstancesExchangeQuoteResponse_reservedInstanceValueSet
- The configuration of your Convertible Reserved Instances.
$sel:targetConfigurationValueRollup:GetReservedInstancesExchangeQuoteResponse'
, getReservedInstancesExchangeQuoteResponse_targetConfigurationValueRollup
- The cost associated with the Reserved Instance.
$sel:targetConfigurationValueSet:GetReservedInstancesExchangeQuoteResponse'
, getReservedInstancesExchangeQuoteResponse_targetConfigurationValueSet
- The values of the target Convertible Reserved Instances.
$sel:validationFailureReason:GetReservedInstancesExchangeQuoteResponse'
, getReservedInstancesExchangeQuoteResponse_validationFailureReason
- Describes the reason why the exchange cannot be completed.
$sel:httpStatus:GetReservedInstancesExchangeQuoteResponse'
, getReservedInstancesExchangeQuoteResponse_httpStatus
- The response's http status code.
Response Lenses
getReservedInstancesExchangeQuoteResponse_currencyCode :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text) Source #
The currency of the transaction.
getReservedInstancesExchangeQuoteResponse_isValidExchange :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Bool) Source #
If true
, the exchange is valid. If false
, the exchange cannot be
completed.
getReservedInstancesExchangeQuoteResponse_outputReservedInstancesWillExpireAt :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe UTCTime) Source #
The new end date of the reservation term.
getReservedInstancesExchangeQuoteResponse_paymentDue :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text) Source #
The total true upfront charge for the exchange.
getReservedInstancesExchangeQuoteResponse_reservedInstanceValueRollup :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe ReservationValue) Source #
The cost associated with the Reserved Instance.
getReservedInstancesExchangeQuoteResponse_reservedInstanceValueSet :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe [ReservedInstanceReservationValue]) Source #
The configuration of your Convertible Reserved Instances.
getReservedInstancesExchangeQuoteResponse_targetConfigurationValueRollup :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe ReservationValue) Source #
The cost associated with the Reserved Instance.
getReservedInstancesExchangeQuoteResponse_targetConfigurationValueSet :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe [TargetReservationValue]) Source #
The values of the target Convertible Reserved Instances.
getReservedInstancesExchangeQuoteResponse_validationFailureReason :: Lens' GetReservedInstancesExchangeQuoteResponse (Maybe Text) Source #
Describes the reason why the exchange cannot be completed.
getReservedInstancesExchangeQuoteResponse_httpStatus :: Lens' GetReservedInstancesExchangeQuoteResponse Int Source #
The response's http status code.