Macie.Client.
associate_s3_resources
(**kwargs)¶(Discontinued) Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification. If memberAccountId
isn't specified, the action associates specified S3 resources with Macie Classic for the current Macie Classic administrator account. If memberAccountId
is 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'
}
},
]
)
[REQUIRED]
(Discontinued) The S3 resources that you want to associate with Amazon Macie Classic for monitoring and data classification.
(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 AssociateS3Resources
action and a response parameter in the ListS3Resources
action.
(Discontinued) The name of the S3 bucket that you want to associate with Amazon Macie Classic.
(Discontinued) The prefix of the S3 bucket that you want to associate with Amazon Macie Classic.
(Discontinued) The classification type that you want to specify for the resource associated with Amazon Macie Classic.
(Discontinued) A one-time classification of all of the existing objects in a specified S3 bucket.
(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.
dict
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