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 |
Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.
Synopsis
- data AcceptReservedInstancesExchangeQuote = AcceptReservedInstancesExchangeQuote' {}
- newAcceptReservedInstancesExchangeQuote :: AcceptReservedInstancesExchangeQuote
- acceptReservedInstancesExchangeQuote_dryRun :: Lens' AcceptReservedInstancesExchangeQuote (Maybe Bool)
- acceptReservedInstancesExchangeQuote_targetConfigurations :: Lens' AcceptReservedInstancesExchangeQuote (Maybe [TargetConfigurationRequest])
- acceptReservedInstancesExchangeQuote_reservedInstanceIds :: Lens' AcceptReservedInstancesExchangeQuote [Text]
- data AcceptReservedInstancesExchangeQuoteResponse = AcceptReservedInstancesExchangeQuoteResponse' {
- exchangeId :: Maybe Text
- httpStatus :: Int
- newAcceptReservedInstancesExchangeQuoteResponse :: Int -> AcceptReservedInstancesExchangeQuoteResponse
- acceptReservedInstancesExchangeQuoteResponse_exchangeId :: Lens' AcceptReservedInstancesExchangeQuoteResponse (Maybe Text)
- acceptReservedInstancesExchangeQuoteResponse_httpStatus :: Lens' AcceptReservedInstancesExchangeQuoteResponse Int
Creating a Request
data AcceptReservedInstancesExchangeQuote Source #
Contains the parameters for accepting the quote.
See: newAcceptReservedInstancesExchangeQuote
smart constructor.
AcceptReservedInstancesExchangeQuote' | |
|
Instances
newAcceptReservedInstancesExchangeQuote :: AcceptReservedInstancesExchangeQuote Source #
Create a value of AcceptReservedInstancesExchangeQuote
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:AcceptReservedInstancesExchangeQuote'
, acceptReservedInstancesExchangeQuote_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:AcceptReservedInstancesExchangeQuote'
, acceptReservedInstancesExchangeQuote_targetConfigurations
- The configuration of the target Convertible Reserved Instance to
exchange for your current Convertible Reserved Instances.
$sel:reservedInstanceIds:AcceptReservedInstancesExchangeQuote'
, acceptReservedInstancesExchangeQuote_reservedInstanceIds
- The IDs of the Convertible Reserved Instances to exchange for another
Convertible Reserved Instance of the same or higher value.
Request Lenses
acceptReservedInstancesExchangeQuote_dryRun :: Lens' AcceptReservedInstancesExchangeQuote (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
.
acceptReservedInstancesExchangeQuote_targetConfigurations :: Lens' AcceptReservedInstancesExchangeQuote (Maybe [TargetConfigurationRequest]) Source #
The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.
acceptReservedInstancesExchangeQuote_reservedInstanceIds :: Lens' AcceptReservedInstancesExchangeQuote [Text] Source #
The IDs of the Convertible Reserved Instances to exchange for another Convertible Reserved Instance of the same or higher value.
Destructuring the Response
data AcceptReservedInstancesExchangeQuoteResponse Source #
The result of the exchange and whether it was successful
.
See: newAcceptReservedInstancesExchangeQuoteResponse
smart constructor.
AcceptReservedInstancesExchangeQuoteResponse' | |
|
Instances
newAcceptReservedInstancesExchangeQuoteResponse Source #
:: Int |
|
-> AcceptReservedInstancesExchangeQuoteResponse |
Create a value of AcceptReservedInstancesExchangeQuoteResponse
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:exchangeId:AcceptReservedInstancesExchangeQuoteResponse'
, acceptReservedInstancesExchangeQuoteResponse_exchangeId
- The ID of the successful exchange.
$sel:httpStatus:AcceptReservedInstancesExchangeQuoteResponse'
, acceptReservedInstancesExchangeQuoteResponse_httpStatus
- The response's http status code.
Response Lenses
acceptReservedInstancesExchangeQuoteResponse_exchangeId :: Lens' AcceptReservedInstancesExchangeQuoteResponse (Maybe Text) Source #
The ID of the successful exchange.
acceptReservedInstancesExchangeQuoteResponse_httpStatus :: Lens' AcceptReservedInstancesExchangeQuoteResponse Int Source #
The response's http status code.