:doc:`CloudWatch <../../cloudwatch>` / Client / list_managed_insight_rules

**************************
list_managed_insight_rules
**************************



.. py:method:: CloudWatch.Client.list_managed_insight_rules(**kwargs)

  

  Returns a list that contains the number of managed Contributor Insights rules in your account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules>`_  


  **Request Syntax**
  ::

    response = client.list_managed_insight_rules(
        ResourceARN='string',
        NextToken='string',
        MaxResults=123
    )
    
  :type ResourceARN: string
  :param ResourceARN: **[REQUIRED]** 

    The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.

    

  
  :type NextToken: string
  :param NextToken: 

    Include this value to get the next set of rules if the value was returned by the previous operation.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return in one operation. If you omit this parameter, the default number is used. The default number is ``100``.

    

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

    
    ::

      {
          'ManagedRules': [
              {
                  'TemplateName': 'string',
                  'ResourceARN': 'string',
                  'RuleState': {
                      'RuleName': 'string',
                      'State': 'string'
                  }
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ManagedRules** *(list) --* 

        The managed rules that are available for the specified Amazon Web Services resource.

        
        

        - *(dict) --* 

          Contains information about managed Contributor Insights rules, as returned by ``ListManagedInsightRules``.

          
          

          - **TemplateName** *(string) --* 

            The template name for the managed rule. Used to enable managed rules using ``PutManagedInsightRules``.

            
          

          - **ResourceARN** *(string) --* 

            If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.

            
          

          - **RuleState** *(dict) --* 

            Describes the state of a managed rule. If present, it contains information about the Contributor Insights rule that contains information about the related Amazon Web Services resource.

            
            

            - **RuleName** *(string) --* 

              The name of the Contributor Insights rule that contains data for the specified Amazon Web Services resource.

              
            

            - **State** *(string) --* 

              Indicates whether the rule is enabled or disabled.

              
        
      
    
      

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

        Include this value to get the next set of rules if the value was returned by the previous operation.

        
  
  **Exceptions**
  
  *   :py:class:`CloudWatch.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`CloudWatch.Client.exceptions.MissingRequiredParameterException`

  
  *   :py:class:`CloudWatch.Client.exceptions.InvalidNextToken`

  