Amazon Macie
API Reference (API Version 2017-12-19)

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

DisassociateS3Resources

Removes specified S3 resources from being monitored by Amazon Macie. If memberAccountId isn't specified, the action removes specified S3 resources from Macie for the current master account. If memberAccountId is specified, the action removes specified S3 resources from Macie for the specified member account.

Request Syntax

{ "associatedS3Resources": [ { "bucketName": "string", "prefix": "string" } ], "memberAccountId": "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.

associatedS3Resources

The S3 resources (buckets or prefixes) that you want to remove from being monitored and classified by Amazon Macie.

Type: Array of S3Resource objects

Required: Yes

memberAccountId

The ID of the Amazon Macie member account whose resources you want to remove from being monitored by Amazon Macie.

Type: String

Pattern: [0-9]{12}

Required: No

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

S3 resources that couldn't be removed from being monitored and classified by Amazon Macie. 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

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

HTTP Status Code: 400

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: