Macie2 / Client / get_master_account

get_master_account#

Macie2.Client.get_master_account()#

(Deprecated) Retrieves information about the Amazon Macie administrator account for an account. This operation has been replaced by the GetAdministratorAccount operation.

See also: AWS API Documentation

Request Syntax

response = client.get_master_account()
Return type:

dict

Returns:

Response Syntax

{
    'master': {
        'accountId': 'string',
        'invitationId': 'string',
        'invitedAt': datetime(2015, 1, 1),
        'relationshipStatus': 'Enabled'|'Paused'|'Invited'|'Created'|'Removed'|'Resigned'|'EmailVerificationInProgress'|'EmailVerificationFailed'|'RegionDisabled'|'AccountSuspended'
    }
}

Response Structure

  • (dict) –

    The request succeeded.

    • master (dict) –

      (Deprecated) The Amazon Web Services account ID for the administrator account. If the accounts are associated by a Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.

      • accountId (string) –

        The Amazon Web Services account ID for the account that sent the invitation.

      • invitationId (string) –

        The unique identifier for the invitation.

      • invitedAt (datetime) –

        The date and time, in UTC and extended ISO 8601 format, when the invitation was sent.

      • relationshipStatus (string) –

        The status of the relationship between the account that sent the invitation and the account that received the invitation.

Exceptions