Inspector2 / Client / associate_member

associate_member#

Inspector2.Client.associate_member(**kwargs)#

Associates an Amazon Web Services account with an Amazon Inspector delegated administrator. An HTTP 200 response indicates the association was successfully started, but doesn’t indicate whether it was completed. You can check if the association completed by using ListMembers for multiple accounts or GetMembers for a single account.

See also: AWS API Documentation

Request Syntax

response = client.associate_member(
    accountId='string'
)
Parameters:

accountId (string) –

[REQUIRED]

The Amazon Web Services account ID of the member account to be associated.

Return type:

dict

Returns:

Response Syntax

{
    'accountId': 'string'
}

Response Structure

  • (dict) –

    • accountId (string) –

      The Amazon Web Services account ID of the successfully associated member account.

Exceptions

  • Inspector2.Client.exceptions.ValidationException

  • Inspector2.Client.exceptions.AccessDeniedException

  • Inspector2.Client.exceptions.ThrottlingException

  • Inspector2.Client.exceptions.InternalServerException