| 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 |
Network.AWS.Organizations.CancelHandshake
Description
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.
Synopsis
- 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
Arguments
| :: Text | |
| -> CancelHandshake |
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 theListHandshakesForOrganizationoperation. 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.
Instances
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 #
Arguments
| :: Int | |
| -> CancelHandshakeResponse |
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.
Instances
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.