Copyright | (c) 2013-2018 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 |
Declines a handshake request. This sets the handshake state to DECLINED
and effectively deactivates the request.
This operation can be called only from the account that received the handshake. The originator of the handshake can use CancelHandshake
instead. The originator can't reactivate a declined request, but can re-initiate the process with a new handshake request.
After you decline a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that it is deleted.
Synopsis
- declineHandshake :: Text -> DeclineHandshake
- data DeclineHandshake
- dHandshakeId :: Lens' DeclineHandshake Text
- declineHandshakeResponse :: Int -> DeclineHandshakeResponse
- data DeclineHandshakeResponse
- drsHandshake :: Lens' DeclineHandshakeResponse (Maybe Handshake)
- drsResponseStatus :: Lens' DeclineHandshakeResponse Int
Creating a Request
Creates a value of DeclineHandshake
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dHandshakeId
- The unique identifier (ID) of the handshake that you want to decline. You can get the ID from theListHandshakesForAccount
operation. The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lower-case letters or digits.
data DeclineHandshake Source #
See: declineHandshake
smart constructor.
Instances
Request Lenses
dHandshakeId :: Lens' DeclineHandshake Text Source #
The unique identifier (ID) of the handshake that you want to decline. You can get the ID from the ListHandshakesForAccount
operation. The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lower-case letters or digits.
Destructuring the Response
declineHandshakeResponse Source #
Creates a value of DeclineHandshakeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drsHandshake
- A structure that contains details about the declined handshake. The state is updated to show the valueDECLINED
.drsResponseStatus
- -- | The response status code.
data DeclineHandshakeResponse Source #
See: declineHandshakeResponse
smart constructor.
Instances
Response Lenses
drsHandshake :: Lens' DeclineHandshakeResponse (Maybe Handshake) Source #
A structure that contains details about the declined handshake. The state is updated to show the value DECLINED
.
drsResponseStatus :: Lens' DeclineHandshakeResponse Int Source #
- - | The response status code.