Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListS3ResourcesCommandProtected

(Discontinued) Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId isn't specified, the action lists the S3 resources associated with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action lists the S3 resources associated with Macie Classic for the specified member account.

Example

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

import { MacieClient, ListS3ResourcesCommand } from "@aws-sdk/client-macie"; // ES Modules import
// const { MacieClient, ListS3ResourcesCommand } = require("@aws-sdk/client-macie"); // CommonJS import
const client = new MacieClient(config);
const input = { // ListS3ResourcesRequest
memberAccountId: "STRING_VALUE",
nextToken: "STRING_VALUE",
maxResults: Number("int"),
};
const command = new ListS3ResourcesCommand(input);
const response = await client.send(command);
// { // ListS3ResourcesResult
// s3Resources: [ // S3ResourcesClassification
// { // S3ResourceClassification
// bucketName: "STRING_VALUE", // required
// prefix: "STRING_VALUE",
// classificationType: { // ClassificationType
// oneTime: "FULL" || "NONE", // required
// continuous: "FULL", // required
// },
// },
// ],
// nextToken: "STRING_VALUE",
// };

Param

ListS3ResourcesCommandInput

Returns

ListS3ResourcesCommandOutput

See

Throws

AccessDeniedException (client fault)

(Discontinued) You do not have required permissions to access the requested resource.

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

Constructors

Properties

Methods