Copyright | (c) 2013-2021 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 |
Exchanges a DC1 Reserved Node for a DC2 Reserved Node with no changes to the configuration (term, payment type, or number of nodes) and no additional costs.
Synopsis
- data AcceptReservedNodeExchange = AcceptReservedNodeExchange' {}
- newAcceptReservedNodeExchange :: Text -> Text -> AcceptReservedNodeExchange
- acceptReservedNodeExchange_reservedNodeId :: Lens' AcceptReservedNodeExchange Text
- acceptReservedNodeExchange_targetReservedNodeOfferingId :: Lens' AcceptReservedNodeExchange Text
- data AcceptReservedNodeExchangeResponse = AcceptReservedNodeExchangeResponse' {}
- newAcceptReservedNodeExchangeResponse :: Int -> AcceptReservedNodeExchangeResponse
- acceptReservedNodeExchangeResponse_exchangedReservedNode :: Lens' AcceptReservedNodeExchangeResponse (Maybe ReservedNode)
- acceptReservedNodeExchangeResponse_httpStatus :: Lens' AcceptReservedNodeExchangeResponse Int
Creating a Request
data AcceptReservedNodeExchange Source #
See: newAcceptReservedNodeExchange
smart constructor.
AcceptReservedNodeExchange' | |
|
Instances
newAcceptReservedNodeExchange Source #
:: Text | |
-> Text |
|
-> AcceptReservedNodeExchange |
Create a value of AcceptReservedNodeExchange
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:reservedNodeId:AcceptReservedNodeExchange'
, acceptReservedNodeExchange_reservedNodeId
- A string representing the node identifier of the DC1 Reserved Node to be
exchanged.
$sel:targetReservedNodeOfferingId:AcceptReservedNodeExchange'
, acceptReservedNodeExchange_targetReservedNodeOfferingId
- The unique identifier of the DC2 Reserved Node offering to be used for
the exchange. You can obtain the value for the parameter by calling
GetReservedNodeExchangeOfferings
Request Lenses
acceptReservedNodeExchange_reservedNodeId :: Lens' AcceptReservedNodeExchange Text Source #
A string representing the node identifier of the DC1 Reserved Node to be exchanged.
acceptReservedNodeExchange_targetReservedNodeOfferingId :: Lens' AcceptReservedNodeExchange Text Source #
The unique identifier of the DC2 Reserved Node offering to be used for the exchange. You can obtain the value for the parameter by calling GetReservedNodeExchangeOfferings
Destructuring the Response
data AcceptReservedNodeExchangeResponse Source #
See: newAcceptReservedNodeExchangeResponse
smart constructor.
AcceptReservedNodeExchangeResponse' | |
|
Instances
Eq AcceptReservedNodeExchangeResponse Source # | |
Read AcceptReservedNodeExchangeResponse Source # | |
Show AcceptReservedNodeExchangeResponse Source # | |
Generic AcceptReservedNodeExchangeResponse Source # | |
NFData AcceptReservedNodeExchangeResponse Source # | |
Defined in Amazonka.Redshift.AcceptReservedNodeExchange rnf :: AcceptReservedNodeExchangeResponse -> () # | |
type Rep AcceptReservedNodeExchangeResponse Source # | |
Defined in Amazonka.Redshift.AcceptReservedNodeExchange type Rep AcceptReservedNodeExchangeResponse = D1 ('MetaData "AcceptReservedNodeExchangeResponse" "Amazonka.Redshift.AcceptReservedNodeExchange" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "AcceptReservedNodeExchangeResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "exchangedReservedNode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReservedNode)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAcceptReservedNodeExchangeResponse Source #
Create a value of AcceptReservedNodeExchangeResponse
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:exchangedReservedNode:AcceptReservedNodeExchangeResponse'
, acceptReservedNodeExchangeResponse_exchangedReservedNode
-
$sel:httpStatus:AcceptReservedNodeExchangeResponse'
, acceptReservedNodeExchangeResponse_httpStatus
- The response's http status code.
Response Lenses
acceptReservedNodeExchangeResponse_exchangedReservedNode :: Lens' AcceptReservedNodeExchangeResponse (Maybe ReservedNode) Source #
acceptReservedNodeExchangeResponse_httpStatus :: Lens' AcceptReservedNodeExchangeResponse Int Source #
The response's http status code.