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 |
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 reinitiate 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's deleted.
Synopsis
- data DeclineHandshake = DeclineHandshake' {
- handshakeId :: Text
- newDeclineHandshake :: Text -> DeclineHandshake
- declineHandshake_handshakeId :: Lens' DeclineHandshake Text
- data DeclineHandshakeResponse = DeclineHandshakeResponse' {
- handshake :: Maybe Handshake
- httpStatus :: Int
- newDeclineHandshakeResponse :: Int -> DeclineHandshakeResponse
- declineHandshakeResponse_handshake :: Lens' DeclineHandshakeResponse (Maybe Handshake)
- declineHandshakeResponse_httpStatus :: Lens' DeclineHandshakeResponse Int
Creating a Request
data DeclineHandshake Source #
See: newDeclineHandshake
smart constructor.
DeclineHandshake' | |
|
Instances
Create a value of DeclineHandshake
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:handshakeId:DeclineHandshake'
, declineHandshake_handshakeId
- 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 lowercase letters or digits.
Request Lenses
declineHandshake_handshakeId :: 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 lowercase letters or digits.
Destructuring the Response
data DeclineHandshakeResponse Source #
See: newDeclineHandshakeResponse
smart constructor.
DeclineHandshakeResponse' | |
|
Instances
newDeclineHandshakeResponse Source #
Create a value of DeclineHandshakeResponse
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:handshake:DeclineHandshakeResponse'
, declineHandshakeResponse_handshake
- A structure that contains details about the declined handshake. The
state is updated to show the value DECLINED
.
$sel:httpStatus:DeclineHandshakeResponse'
, declineHandshakeResponse_httpStatus
- The response's http status code.
Response Lenses
declineHandshakeResponse_handshake :: Lens' DeclineHandshakeResponse (Maybe Handshake) Source #
A structure that contains details about the declined handshake. The
state is updated to show the value DECLINED
.
declineHandshakeResponse_httpStatus :: Lens' DeclineHandshakeResponse Int Source #
The response's http status code.