:doc:`Macie2 <../../macie2>` / Client / get_classification_scope

************************
get_classification_scope
************************



.. py:method:: Macie2.Client.get_classification_scope(**kwargs)

  

  Retrieves the classification scope settings for an account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetClassificationScope>`_  


  **Request Syntax**
  ::

    response = client.get_classification_scope(
        id='string'
    )
    
  :type id: string
  :param id: **[REQUIRED]** 

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

    

  
  
  :rtype: 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**
  
  *   :py:class:`Macie2.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Macie2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Macie2.Client.exceptions.ValidationException`

  
  *   :py:class:`Macie2.Client.exceptions.InternalServerException`

  
  *   :py:class:`Macie2.Client.exceptions.AccessDeniedException`

  