UpdateS3Resources - Amazon Macie Classic

Amazon Macie Classic has been discontinued and is no longer available. A new Amazon Macie is now available with significant design improvements and additional features, at a lower price and in most AWS Regions. To learn about the new Amazon Macie, see the Amazon Macie User Guide.

UpdateS3Resources

(Discontinued) Updates the classification types for the specified S3 resources. If memberAccountId isn't specified, the action updates the classification types of the S3 resources associated with Amazon Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action updates the classification types of the S3 resources associated with Macie Classic for the specified member account.

Request Syntax

{ "memberAccountId": "string", "s3ResourcesUpdate": [ { "bucketName": "string", "classificationTypeUpdate": { "continuous": "string", "oneTime": "string" }, "prefix": "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.

memberAccountId

(Discontinued) The AWS account ID of the Amazon Macie Classic member account whose S3 resources' classification types you want to update.

Type: String

Pattern: [0-9]{12}

Required: No

s3ResourcesUpdate

(Discontinued) The S3 resources whose classification types you want to update.

Type: Array of S3ResourceClassificationUpdate objects

Required: Yes

Response Syntax

{ "failedS3Resources": [ { "errorCode": "string", "errorMessage": "string", "failedItem": { "bucketName": "string", "prefix": "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.

failedS3Resources

(Discontinued) The S3 resources whose classification types can't be updated. An error code and an error message are provided for each failed item.

Type: Array of FailedS3Resource objects

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

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

HTTP Status Code: 400

InternalException

(Discontinued) Internal server error.

HTTP Status Code: 500

InvalidInputException

(Discontinued) 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: