Smaws_Client_Organizations.AcceptHandshakeAccepts a handshake by sending an ACCEPTED response to the sender. You can view accepted handshakes in API responses for 30 days before they are deleted.
Only the management account can accept the following handshakes:
APPROVE_ALL_FEATURES)TRANSFER_RESPONSIBILITY)For more information, see Enabling all features and Responding to a billing transfer invitation in the Organizations User Guide.
Only a member account can accept the following handshakes:
INVITE)ENABLE_ALL_FEATURES)For more information, see Responding to invitations and Enabling all features in the Organizations User Guide.
When a handshake is accepted, Organizations logs membership events in CloudTrail, available only in the management account's event history. If the account was standalone and joined a new organization, an AccountJoinedOrganization event is logged with joinedMethod:Invited and joinedTime fields. If the account departed one organization and joined another, both an AccountDepartedOrganization event with departedMethod:Left and departedTime and an AccountJoinedOrganization event with joinedMethod:Invited and joinedTime are logged in their respective management accounts.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `AccessDeniedForDependencyException of
Types.access_denied_for_dependency_exception
| `AWSOrganizationsNotInUseException of
Types.aws_organizations_not_in_use_exception
| `ConcurrentModificationException of Types.concurrent_modification_exception
| `ConstraintViolationException of Types.constraint_violation_exception
| `HandshakeAlreadyInStateException of
Types.handshake_already_in_state_exception
| `HandshakeConstraintViolationException of
Types.handshake_constraint_violation_exception
| `HandshakeNotFoundException of Types.handshake_not_found_exception
| `InvalidHandshakeTransitionException of
Types.invalid_handshake_transition_exception
| `InvalidInputException of Types.invalid_input_exception
| `MasterCannotLeaveOrganizationException of
Types.master_cannot_leave_organization_exception
| `ServiceException of Types.service_exception
| `TooManyRequestsException of Types.too_many_requests_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.accept_handshake_request ->
(Types.accept_handshake_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `AccessDeniedForDependencyException of
Types.access_denied_for_dependency_exception
| `AWSOrganizationsNotInUseException of
Types.aws_organizations_not_in_use_exception
| `ConcurrentModificationException of
Types.concurrent_modification_exception
| `ConstraintViolationException of Types.constraint_violation_exception
| `HandshakeAlreadyInStateException of
Types.handshake_already_in_state_exception
| `HandshakeConstraintViolationException of
Types.handshake_constraint_violation_exception
| `HandshakeNotFoundException of Types.handshake_not_found_exception
| `InvalidHandshakeTransitionException of
Types.invalid_handshake_transition_exception
| `InvalidInputException of Types.invalid_input_exception
| `MasterCannotLeaveOrganizationException of
Types.master_cannot_leave_organization_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.accept_handshake_request ->
(Types.accept_handshake_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_exception
| `AccessDeniedForDependencyException of
Types.access_denied_for_dependency_exception
| `AWSOrganizationsNotInUseException of
Types.aws_organizations_not_in_use_exception
| `ConcurrentModificationException of
Types.concurrent_modification_exception
| `ConstraintViolationException of Types.constraint_violation_exception
| `HandshakeAlreadyInStateException of
Types.handshake_already_in_state_exception
| `HandshakeConstraintViolationException of
Types.handshake_constraint_violation_exception
| `HandshakeNotFoundException of Types.handshake_not_found_exception
| `InvalidHandshakeTransitionException of
Types.invalid_handshake_transition_exception
| `InvalidInputException of Types.invalid_input_exception
| `MasterCannotLeaveOrganizationException of
Types.master_cannot_leave_organization_exception
| `ServiceException of Types.service_exception
| `TooManyRequestsException of Types.too_many_requests_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result