Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class ListMemberAccountsCommandProtected

(Discontinued) Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.

Example

Use a bare-bones client and the command you need to make an API call.

import { MacieClient, ListMemberAccountsCommand } from "@aws-sdk/client-macie"; // ES Modules import
// const { MacieClient, ListMemberAccountsCommand } = require("@aws-sdk/client-macie"); // CommonJS import
const client = new MacieClient(config);
const input = { // ListMemberAccountsRequest
nextToken: "STRING_VALUE",
maxResults: Number("int"),
};
const command = new ListMemberAccountsCommand(input);
const response = await client.send(command);
// { // ListMemberAccountsResult
// memberAccounts: [ // MemberAccounts
// { // MemberAccount
// accountId: "STRING_VALUE",
// },
// ],
// nextToken: "STRING_VALUE",
// };

Param

ListMemberAccountsCommandInput

Returns

ListMemberAccountsCommandOutput

See

Throws

InternalException (server fault)

(Discontinued) Internal server error.

Throws

InvalidInputException (client fault)

(Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.

Throws

MacieServiceException

Base exception class for all service exceptions from Macie service.

Hierarchy

Constructors

Properties

Methods