Module Smaws_Client_Organizations.InviteAccountToOrganization

Sends an invitation to another account to join your organization as a member account. Organizations sends email on your behalf to the email address that is associated with the other account's owner. The invitation is implemented as a Handshake whose details are in the response.

If you receive an exception that indicates that you exceeded your account limits for the organization or that the operation failed because your organization is still initializing, wait one hour and then try again. If the error persists after an hour, contact Amazon Web Services Support.

If the request includes tags, then the requester must have the organizations:TagResource permission.

You can only call this operation from the management account.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AccountOwnerNotVerifiedException of Types.account_owner_not_verified_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `DuplicateHandshakeException of Types.duplicate_handshake_exception | `FinalizingOrganizationException of Types.finalizing_organization_exception | `HandshakeConstraintViolationException of Types.handshake_constraint_violation_exception | `InvalidInputException of Types.invalid_input_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.invite_account_to_organization_request -> (Types.invite_account_to_organization_response, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AccountOwnerNotVerifiedException of Types.account_owner_not_verified_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `DuplicateHandshakeException of Types.duplicate_handshake_exception | `FinalizingOrganizationException of Types.finalizing_organization_exception | `HandshakeConstraintViolationException of Types.handshake_constraint_violation_exception | `InvalidInputException of Types.invalid_input_exception | `ServiceException of Types.service_exception | `TooManyRequestsException of Types.too_many_requests_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.invite_account_to_organization_request -> (Types.invite_account_to_organization_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `AccountOwnerNotVerifiedException of Types.account_owner_not_verified_exception | `AWSOrganizationsNotInUseException of Types.aws_organizations_not_in_use_exception | `ConcurrentModificationException of Types.concurrent_modification_exception | `ConstraintViolationException of Types.constraint_violation_exception | `DuplicateHandshakeException of Types.duplicate_handshake_exception | `FinalizingOrganizationException of Types.finalizing_organization_exception | `HandshakeConstraintViolationException of Types.handshake_constraint_violation_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