update_classification_scope

Macie2.Client.update_classification_scope(**kwargs)

Updates the classification scope settings for an account.

See also: AWS API Documentation

Request Syntax

response = client.update_classification_scope(
    id='string',
    s3={
        'excludes': {
            'bucketNames': [
                'string',
            ],
            'operation': 'ADD'|'REPLACE'|'REMOVE'
        }
    }
)
Parameters
  • id (string) --

    [REQUIRED]

    The unique identifier for the Amazon Macie resource that the request applies to.

  • s3 (dict) --

    The S3 buckets to add or remove from the exclusion list defined by the classification scope.

    • excludes (dict) -- [REQUIRED]

      The names of the S3 buckets to add or remove from the list.

      • bucketNames (list) -- [REQUIRED]

        Depending on the value specified for the update operation (ClassificationScopeUpdateOperation), an array of strings that: lists the names of buckets to add or remove from the list, or specifies a new set of bucket names that overwrites all existing names in the list. Each string must be the full name of an S3 bucket. Values are case sensitive.

        • (string) --

          The name of an S3 bucket.

      • operation (string) -- [REQUIRED]

        Specifies how to apply the changes to the exclusion list. Valid values are:

        • ADD - Append the specified bucket names to the current list.
        • REMOVE - Remove the specified bucket names from the current list.
        • REPLACE - Overwrite the current list with the specified list of bucket names. If you specify this value, Amazon Macie removes all existing names from the list and adds all the specified names to the list.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

    The request succeeded. The specified settings were updated and there isn't any content to include in the body of the response (No Content).

Exceptions

  • Macie2.Client.exceptions.ResourceNotFoundException
  • Macie2.Client.exceptions.ThrottlingException
  • Macie2.Client.exceptions.ValidationException
  • Macie2.Client.exceptions.InternalServerException
  • Macie2.Client.exceptions.AccessDeniedException