This is the API Reference for Amazon Macie Classic. For information about the new Amazon Macie and Amazon Macie API, see the new Amazon Macie documentation.
ListMemberAccounts
Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
Request Syntax
{
"maxResults": number
,
"nextToken": "string
"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- maxResults
-
Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250.
Type: Integer
Valid Range: Maximum value of 250.
Required: No
- nextToken
-
Use this parameter when paginating results. Set the value of this parameter to null on your first call to the ListMemberAccounts action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.
Type: String
Length Constraints: Maximum length of 500.
Required: No
Response Syntax
{
"memberAccounts": [
{
"accountId": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- memberAccounts
-
A list of the Amazon Macie Classic member accounts returned by the action. The current Macie Classic administrator account is also included in this list.
Type: Array of MemberAccount objects
- nextToken
-
When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
Type: String
Length Constraints: Maximum length of 500.
Errors
For information about the errors that are common to all actions, see Common Errors.
- InternalException
-
Internal server error.
HTTP Status Code: 500
- InvalidInputException
-
The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: