Macie / Client / associate_s3_resources
associate_s3_resources#
- Macie.Client.associate_s3_resources(**kwargs)#
- (Discontinued) Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification. If - memberAccountIdisn’t specified, the action associates specified S3 resources with Macie Classic for the current Macie Classic administrator account. If- memberAccountIdis specified, the action associates specified S3 resources with Macie Classic for the specified member account.- See also: AWS API Documentation - Request Syntax - response = client.associate_s3_resources( memberAccountId='string', s3Resources=[ { 'bucketName': 'string', 'prefix': 'string', 'classificationType': { 'oneTime': 'FULL'|'NONE', 'continuous': 'FULL' } }, ] ) - Parameters:
- memberAccountId (string) – (Discontinued) The ID of the Amazon Macie Classic member account whose resources you want to associate with Macie Classic. 
- s3Resources (list) – - [REQUIRED] - (Discontinued) The S3 resources that you want to associate with Amazon Macie Classic for monitoring and data classification. - (dict) – - (Discontinued) The S3 resources that you want to associate with Amazon Macie Classic for monitoring and data classification. This data type is used as a request parameter in the - AssociateS3Resourcesaction and a response parameter in the- ListS3Resourcesaction.- bucketName (string) – [REQUIRED] - (Discontinued) The name of the S3 bucket that you want to associate with Amazon Macie Classic. 
- prefix (string) – - (Discontinued) The prefix of the S3 bucket that you want to associate with Amazon Macie Classic. 
- classificationType (dict) – [REQUIRED] - (Discontinued) The classification type that you want to specify for the resource associated with Amazon Macie Classic. - oneTime (string) – [REQUIRED] - (Discontinued) A one-time classification of all of the existing objects in a specified S3 bucket. 
- continuous (string) – [REQUIRED] - (Discontinued) A continuous classification of the objects that are added to a specified S3 bucket. Amazon Macie Classic begins performing continuous classification after a bucket is successfully associated with Macie Classic. 
 
 
 
 
- 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 associated with 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.LimitExceededException
- Macie.Client.exceptions.InternalException