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 |
Amazonka.Redshift.AcceptReservedNodeExchange
Description
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.
Constructors
AcceptReservedNodeExchange' | |
Fields
|
Instances
newAcceptReservedNodeExchange Source #
Arguments
:: 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.
Constructors
AcceptReservedNodeExchangeResponse' | |
Fields
|
Instances
newAcceptReservedNodeExchangeResponse Source #
Arguments
:: Int | |
-> AcceptReservedNodeExchangeResponse |
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.