get_classification_scope

get_classification_scope(**kwargs)

Retrieves the classification scope settings for an account.

See also: AWS API Documentation

Request Syntax

response = client.get_classification_scope(
    id='string'
)
Parameters
id (string) --

[REQUIRED]

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

Return type
dict
Returns
Response Syntax
{
    'id': 'string',
    'name': 'string',
    's3': {
        'excludes': {
            'bucketNames': [
                'string',
            ]
        }
    }
}

Response Structure

  • (dict) --

    The request succeeded.

    • id (string) --

      The unique identifier for the classification scope.

    • name (string) --

      The name of the classification scope: automated-sensitive-data-discovery.

    • s3 (dict) --

      The S3 buckets that are excluded from automated sensitive data discovery.

      • excludes (dict) --

        The S3 buckets that are excluded.

        • bucketNames (list) --

          An array of strings, one for each S3 bucket that is excluded. Each string is the full name of an excluded bucket.

          • (string) --

            The name of an S3 bucket.

Exceptions

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