update_s3_resources

update_s3_resources(**kwargs)

(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.

See also: AWS API Documentation

Request Syntax

response = client.update_s3_resources(
    memberAccountId='string',
    s3ResourcesUpdate=[
        {
            'bucketName': 'string',
            'prefix': 'string',
            'classificationTypeUpdate': {
                'oneTime': 'FULL'|'NONE',
                'continuous': 'FULL'
            }
        },
    ]
)
Parameters
  • memberAccountId (string) -- (Discontinued) The Amazon Web Services account ID of the Amazon Macie Classic member account whose S3 resources' classification types you want to update.
  • s3ResourcesUpdate (list) --

    [REQUIRED]

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

    • (dict) --

      (Discontinued) The S3 resources whose classification types you want to update. This data type is used as a request parameter in the UpdateS3Resources action.

      • bucketName (string) -- [REQUIRED]

        (Discontinued) The name of the S3 bucket whose classification types you want to update.

      • prefix (string) --

        (Discontinued) The prefix of the S3 bucket whose classification types you want to update.

      • classificationTypeUpdate (dict) -- [REQUIRED]

        (Discontinued) The classification type that you want to update for the resource associated with Amazon Macie Classic.

        • oneTime (string) --

          (Discontinued) A one-time classification of all of the existing objects in a specified S3 bucket.

        • continuous (string) --

          (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) The S3 resources whose classification types can't be updated. 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