Copyright | (c) 2013-2017 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 |
Cancels a handshake. Canceling a handshake sets the handshake state to CANCELED
.
This operation can be called only from the account that originated the handshake. The recipient of the handshake can't cancel it, but can use DeclineHandshake
instead. After a handshake is canceled, the recipient can no longer respond to that handshake.
After you cancel a handshake, it continues to appear in the results of relevant APIs for only 30 days. After that it is deleted.
- cancelHandshake :: Text -> CancelHandshake
- data CancelHandshake
- chHandshakeId :: Lens' CancelHandshake Text
- cancelHandshakeResponse :: Int -> CancelHandshakeResponse
- data CancelHandshakeResponse
- chrsHandshake :: Lens' CancelHandshakeResponse (Maybe Handshake)
- chrsResponseStatus :: Lens' CancelHandshakeResponse Int
Creating a Request
Creates a value of CancelHandshake
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
chHandshakeId
- The unique identifier (ID) of the handshake that you want to cancel. You can get the ID from theListHandshakesForOrganization
operation. The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lower-case letters or digits.
data CancelHandshake Source #
See: cancelHandshake
smart constructor.
Request Lenses
chHandshakeId :: Lens' CancelHandshake Text Source #
The unique identifier (ID) of the handshake that you want to cancel. You can get the ID from the ListHandshakesForOrganization
operation. The regex pattern for handshake ID string requires "h-" followed by from 8 to 32 lower-case letters or digits.
Destructuring the Response
cancelHandshakeResponse Source #
Creates a value of CancelHandshakeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
chrsHandshake
- A structure that contains details about the handshake that you canceled.chrsResponseStatus
- -- | The response status code.
data CancelHandshakeResponse Source #
See: cancelHandshakeResponse
smart constructor.
Response Lenses
chrsHandshake :: Lens' CancelHandshakeResponse (Maybe Handshake) Source #
A structure that contains details about the handshake that you canceled.
chrsResponseStatus :: Lens' CancelHandshakeResponse Int Source #
- - | The response status code.