FMS / Client / list_member_accounts
list_member_accounts#
- FMS.Client.list_member_accounts(**kwargs)#
Returns a
MemberAccounts
object that lists the member accounts in the administrator’s Amazon Web Services organization.Either an Firewall Manager administrator or the organization’s management account can make this request.
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 forMaxResults
, Firewall Manager returns aNextToken
value in the response that allows you to list another group of IDs. For the second and subsequentListMemberAccountsRequest
requests, specify the value ofNextToken
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 aNextToken
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 aNextToken
value. To list more IDs, submit anotherListMemberAccounts
request, and specify theNextToken
value from the response in theNextToken
value in the next request.
Exceptions