:doc:`ConfigService <../../config>` / Client / get_aggregate_compliance_details_by_config_rule

***********************************************
get_aggregate_compliance_details_by_config_rule
***********************************************



.. py:method:: ConfigService.Client.get_aggregate_compliance_details_by_config_rule(**kwargs)

  

  Returns the evaluation results for the specified Config rule for a specific resource in a rule. The results indicate which Amazon Web Services resources were evaluated by the rule, when each resource was last evaluated, and whether each resource complies with the rule.

   

  .. note::

    

    The results can return an empty result page. But if you have a ``nextToken``, the results are displayed on the next page.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetAggregateComplianceDetailsByConfigRule>`_  


  **Request Syntax**
  ::

    response = client.get_aggregate_compliance_details_by_config_rule(
        ConfigurationAggregatorName='string',
        ConfigRuleName='string',
        AccountId='string',
        AwsRegion='string',
        ComplianceType='COMPLIANT'|'NON_COMPLIANT'|'NOT_APPLICABLE'|'INSUFFICIENT_DATA',
        Limit=123,
        NextToken='string'
    )
    
  :type ConfigurationAggregatorName: string
  :param ConfigurationAggregatorName: **[REQUIRED]** 

    The name of the configuration aggregator.

    

  
  :type ConfigRuleName: string
  :param ConfigRuleName: **[REQUIRED]** 

    The name of the Config rule for which you want compliance information.

    

  
  :type AccountId: string
  :param AccountId: **[REQUIRED]** 

    The 12-digit account ID of the source account.

    

  
  :type AwsRegion: string
  :param AwsRegion: **[REQUIRED]** 

    The source region from where the data is aggregated.

    

  
  :type ComplianceType: string
  :param ComplianceType: 

    The resource compliance status.

     

    .. note::

      

      For the ``GetAggregateComplianceDetailsByConfigRuleRequest`` data type, Config supports only the ``COMPLIANT`` and ``NON_COMPLIANT``. Config does not support the ``NOT_APPLICABLE`` and ``INSUFFICIENT_DATA`` values.

      

    

  
  :type Limit: integer
  :param Limit: 

    The maximum number of evaluation results returned on each page. The default is 50. You cannot specify a number greater than 100. If you specify 0, Config uses the default.

    

  
  :type NextToken: string
  :param NextToken: 

    The ``nextToken`` string returned on a previous page that you use to get the next page of results in a paginated response.

    

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

    
    ::

      {
          'AggregateEvaluationResults': [
              {
                  'EvaluationResultIdentifier': {
                      'EvaluationResultQualifier': {
                          'ConfigRuleName': 'string',
                          'ResourceType': 'string',
                          'ResourceId': 'string',
                          'EvaluationMode': 'DETECTIVE'|'PROACTIVE'
                      },
                      'OrderingTimestamp': datetime(2015, 1, 1),
                      'ResourceEvaluationId': 'string'
                  },
                  'ComplianceType': 'COMPLIANT'|'NON_COMPLIANT'|'NOT_APPLICABLE'|'INSUFFICIENT_DATA',
                  'ResultRecordedTime': datetime(2015, 1, 1),
                  'ConfigRuleInvokedTime': datetime(2015, 1, 1),
                  'Annotation': 'string',
                  'AccountId': 'string',
                  'AwsRegion': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AggregateEvaluationResults** *(list) --* 

        Returns an AggregateEvaluationResults object.

        
        

        - *(dict) --* 

          The details of an Config evaluation for an account ID and region in an aggregator. Provides the Amazon Web Services resource that was evaluated, the compliance of the resource, related time stamps, and supplementary information.

          
          

          - **EvaluationResultIdentifier** *(dict) --* 

            Uniquely identifies the evaluation result.

            
            

            - **EvaluationResultQualifier** *(dict) --* 

              Identifies an Config rule used to evaluate an Amazon Web Services resource, and provides the type and ID of the evaluated resource.

              
              

              - **ConfigRuleName** *(string) --* 

                The name of the Config rule that was used in the evaluation.

                
              

              - **ResourceType** *(string) --* 

                The type of Amazon Web Services resource that was evaluated.

                
              

              - **ResourceId** *(string) --* 

                The ID of the evaluated Amazon Web Services resource.

                
              

              - **EvaluationMode** *(string) --* 

                The mode of an evaluation. The valid values are Detective or Proactive.

                
          
            

            - **OrderingTimestamp** *(datetime) --* 

              The time of the event that triggered the evaluation of your Amazon Web Services resources. The time can indicate when Config delivered a configuration item change notification, or it can indicate when Config delivered the configuration snapshot, depending on which event triggered the evaluation.

              
            

            - **ResourceEvaluationId** *(string) --* 

              A Unique ID for an evaluation result.

              
        
          

          - **ComplianceType** *(string) --* 

            The resource compliance status.

             

            For the ``AggregationEvaluationResult`` data type, Config supports only the ``COMPLIANT`` and ``NON_COMPLIANT``. Config does not support the ``NOT_APPLICABLE`` and ``INSUFFICIENT_DATA`` value.

            
          

          - **ResultRecordedTime** *(datetime) --* 

            The time when Config recorded the aggregate evaluation result.

            
          

          - **ConfigRuleInvokedTime** *(datetime) --* 

            The time when the Config rule evaluated the Amazon Web Services resource.

            
          

          - **Annotation** *(string) --* 

            Supplementary information about how the agrregate evaluation determined the compliance.

            
          

          - **AccountId** *(string) --* 

            The 12-digit account ID of the source account.

            
          

          - **AwsRegion** *(string) --* 

            The source region from where the data is aggregated.

            
      
    
      

      - **NextToken** *(string) --* 

        The ``nextToken`` string returned on a previous page that you use to get the next page of results in a paginated response.

        
  
  **Exceptions**
  
  *   :py:class:`ConfigService.Client.exceptions.ValidationException`

  
  *   :py:class:`ConfigService.Client.exceptions.InvalidLimitException`

  
  *   :py:class:`ConfigService.Client.exceptions.InvalidNextTokenException`

  
  *   :py:class:`ConfigService.Client.exceptions.NoSuchConfigurationAggregatorException`

  