:doc:`AccessAnalyzer <../../accessanalyzer>` / Client / list_analyzed_resources

***********************
list_analyzed_resources
***********************



.. py:method:: AccessAnalyzer.Client.list_analyzed_resources(**kwargs)

  

  Retrieves a list of resources of the specified type that have been analyzed by the specified analyzer.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzedResources>`_  


  **Request Syntax**
  ::

    response = client.list_analyzed_resources(
        analyzerArn='string',
        resourceType='AWS::S3::Bucket'|'AWS::IAM::Role'|'AWS::SQS::Queue'|'AWS::Lambda::Function'|'AWS::Lambda::LayerVersion'|'AWS::KMS::Key'|'AWS::SecretsManager::Secret'|'AWS::EFS::FileSystem'|'AWS::EC2::Snapshot'|'AWS::ECR::Repository'|'AWS::RDS::DBSnapshot'|'AWS::RDS::DBClusterSnapshot'|'AWS::SNS::Topic'|'AWS::S3Express::DirectoryBucket'|'AWS::DynamoDB::Table'|'AWS::DynamoDB::Stream'|'AWS::IAM::User',
        nextToken='string',
        maxResults=123
    )
    
  :type analyzerArn: string
  :param analyzerArn: **[REQUIRED]** 

    The `ARN of the analyzer <https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html#permission-resources>`__ to retrieve a list of analyzed resources from.

    

  
  :type resourceType: string
  :param resourceType: 

    The type of resource.

    

  
  :type nextToken: string
  :param nextToken: 

    A token used for pagination of results returned.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return in the response.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'analyzedResources': [
              {
                  'resourceArn': 'string',
                  'resourceOwnerAccount': 'string',
                  'resourceType': 'AWS::S3::Bucket'|'AWS::IAM::Role'|'AWS::SQS::Queue'|'AWS::Lambda::Function'|'AWS::Lambda::LayerVersion'|'AWS::KMS::Key'|'AWS::SecretsManager::Secret'|'AWS::EFS::FileSystem'|'AWS::EC2::Snapshot'|'AWS::ECR::Repository'|'AWS::RDS::DBSnapshot'|'AWS::RDS::DBClusterSnapshot'|'AWS::SNS::Topic'|'AWS::S3Express::DirectoryBucket'|'AWS::DynamoDB::Table'|'AWS::DynamoDB::Stream'|'AWS::IAM::User'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The response to the request.

      
      

      - **analyzedResources** *(list) --* 

        A list of resources that were analyzed.

        
        

        - *(dict) --* 

          Contains the ARN of the analyzed resource.

          
          

          - **resourceArn** *(string) --* 

            The ARN of the analyzed resource.

            
          

          - **resourceOwnerAccount** *(string) --* 

            The Amazon Web Services account ID that owns the resource.

            
          

          - **resourceType** *(string) --* 

            The type of resource that was analyzed.

            
      
    
      

      - **nextToken** *(string) --* 

        A token used for pagination of results returned.

        
  
  **Exceptions**
  
  *   :py:class:`AccessAnalyzer.Client.exceptions.ResourceNotFoundException`

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

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

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

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

  