Macie / Client / disassociate_s3_resources
disassociate_s3_resources#
- Macie.Client.disassociate_s3_resources(**kwargs)#
- (Discontinued) Removes specified S3 resources from being monitored by Amazon Macie Classic. If - memberAccountIdisn’t specified, the action removes specified S3 resources from Macie Classic for the current Macie Classic administrator account. If- memberAccountIdis specified, the action removes specified S3 resources from Macie Classic for the specified member account.- See also: AWS API Documentation - Request Syntax - response = client.disassociate_s3_resources( memberAccountId='string', associatedS3Resources=[ { 'bucketName': 'string', 'prefix': 'string' }, ] ) - Parameters:
- memberAccountId (string) – (Discontinued) The ID of the Amazon Macie Classic member account whose resources you want to remove from being monitored by Macie Classic. 
- associatedS3Resources (list) – - [REQUIRED] - (Discontinued) The S3 resources (buckets or prefixes) that you want to remove from being monitored and classified by Amazon Macie Classic. - (dict) – - (Discontinued) Contains information about the S3 resource. This data type is used as a request parameter in the - DisassociateS3Resourcesaction and can be used as a response parameter in the- AssociateS3Resourcesand- UpdateS3Resourcesactions.- bucketName (string) – [REQUIRED] - (Discontinued) The name of the S3 bucket. 
- prefix (string) – - (Discontinued) The prefix of the S3 bucket. 
 
 
 
- Return type:
- dict 
- Returns:
- Response Syntax - { 'failedS3Resources': [ { 'failedItem': { 'bucketName': 'string', 'prefix': 'string' }, 'errorCode': 'string', 'errorMessage': 'string' }, ] } - Response Structure - (dict) – - failedS3Resources (list) – - (Discontinued) S3 resources that couldn’t be removed from being monitored and classified by Amazon Macie Classic. An error code and an error message are provided for each failed item. - (dict) – - (Discontinued) Includes details about the failed S3 resources. - failedItem (dict) – - (Discontinued) The failed S3 resources. - bucketName (string) – - (Discontinued) The name of the S3 bucket. 
- prefix (string) – - (Discontinued) The prefix of the S3 bucket. 
 
- errorCode (string) – - (Discontinued) The status code of a failed item. 
- errorMessage (string) – - (Discontinued) The error message of a failed item. 
 
 
 
 
 - Exceptions - Macie.Client.exceptions.InvalidInputException
- Macie.Client.exceptions.AccessDeniedException
- Macie.Client.exceptions.InternalException