Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

list_member_accounts

list_member_accounts(**kwargs)

Returns a MemberAccounts object that lists the member accounts in the administrator's Amazon Web Services organization.

The ListMemberAccounts must be submitted by the account that is set as the Firewall Manager administrator.

See also: AWS API Documentation

Request Syntax

response = client.list_member_accounts(
    NextToken='string',
    MaxResults=123
)
Parameters
  • NextToken (string) -- If you specify a value for MaxResults and you have more account IDs than the number that you specify for MaxResults , Firewall Manager returns a NextToken value in the response that allows you to list another group of IDs. For the second and subsequent ListMemberAccountsRequest requests, specify the value of NextToken from the previous response to get information about another batch of member account IDs.
  • MaxResults (integer) -- Specifies the number of member account IDs that you want Firewall Manager to return for this request. If you have more IDs than the number that you specify for MaxResults , the response includes a NextToken value that you can use to get another batch of member account IDs.
Return type

dict

Returns

Response Syntax

{
    'MemberAccounts': [
        'string',
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • MemberAccounts (list) --

      An array of account IDs.

      • (string) --
    • NextToken (string) --

      If you have more member account IDs than the number that you specified for MaxResults in the request, the response includes a NextToken value. To list more IDs, submit another ListMemberAccounts request, and specify the NextToken value from the response in the NextToken value in the next request.

Exceptions

  • FMS.Client.exceptions.ResourceNotFoundException
  • FMS.Client.exceptions.InternalErrorException