Macie2 / Client / accept_invitation

accept_invitation#

Macie2.Client.accept_invitation(**kwargs)#

Accepts an Amazon Macie membership invitation that was received from a specific account.

See also: AWS API Documentation

Request Syntax

response = client.accept_invitation(
    administratorAccountId='string',
    invitationId='string',
    masterAccount='string'
)
Parameters:
  • administratorAccountId (string) – The Amazon Web Services account ID for the account that sent the invitation.

  • invitationId (string) –

    [REQUIRED]

    The unique identifier for the invitation to accept.

  • masterAccount (string) – (Deprecated) The Amazon Web Services account ID for the account that sent the invitation. This property has been replaced by the administratorAccountId property and is retained only for backward compatibility.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    The request succeeded and there isn’t any content to include in the body of the response (No Content).

Exceptions

  • Macie2.Client.exceptions.ValidationException

  • Macie2.Client.exceptions.InternalServerException

  • Macie2.Client.exceptions.ServiceQuotaExceededException

  • Macie2.Client.exceptions.AccessDeniedException

  • Macie2.Client.exceptions.ResourceNotFoundException

  • Macie2.Client.exceptions.ThrottlingException

  • Macie2.Client.exceptions.ConflictException