Smaws_Client_Organizations.DeclineHandshakeDeclines a Handshake.
Only the account that receives a handshake can call this operation. The sender of the handshake can use CancelHandshake to cancel if the handshake hasn't yet been responded to.
You can view canceled handshakes in API responses for 30 days before they are deleted.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ConcurrentModificationException of Types.concurrent_modification_exception
| `HandshakeAlreadyInStateException of
Types.handshake_already_in_state_exception
| `HandshakeNotFoundException of Types.handshake_not_found_exception
| `InvalidHandshakeTransitionException of
Types.invalid_handshake_transition_exception
| `InvalidInputException of Types.invalid_input_exception
| `ServiceException of Types.service_exception
| `TooManyRequestsException of Types.too_many_requests_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.decline_handshake_request ->
(Types.decline_handshake_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ConcurrentModificationException of
Types.concurrent_modification_exception
| `HandshakeAlreadyInStateException of
Types.handshake_already_in_state_exception
| `HandshakeNotFoundException of Types.handshake_not_found_exception
| `InvalidHandshakeTransitionException of
Types.invalid_handshake_transition_exception
| `InvalidInputException of Types.invalid_input_exception
| `ServiceException of Types.service_exception
| `TooManyRequestsException of Types.too_many_requests_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.decline_handshake_request ->
(Types.decline_handshake_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `ConcurrentModificationException of
Types.concurrent_modification_exception
| `HandshakeAlreadyInStateException of
Types.handshake_already_in_state_exception
| `HandshakeNotFoundException of Types.handshake_not_found_exception
| `InvalidHandshakeTransitionException of
Types.invalid_handshake_transition_exception
| `InvalidInputException of Types.invalid_input_exception
| `ServiceException of Types.service_exception
| `TooManyRequestsException of Types.too_many_requests_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result