:doc:`SecurityHub <../../securityhub>` / Client / batch_delete_automation_rules

*****************************
batch_delete_automation_rules
*****************************



.. py:method:: SecurityHub.Client.batch_delete_automation_rules(**kwargs)

  

  Deletes one or more automation rules.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchDeleteAutomationRules>`_  


  **Request Syntax**
  ::

    response = client.batch_delete_automation_rules(
        AutomationRulesArns=[
            'string',
        ]
    )
    
  :type AutomationRulesArns: list
  :param AutomationRulesArns: **[REQUIRED]** 

    A list of Amazon Resource Names (ARNs) for the rules that are to be deleted.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'ProcessedAutomationRules': [
              'string',
          ],
          'UnprocessedAutomationRules': [
              {
                  'RuleArn': 'string',
                  'ErrorCode': 123,
                  'ErrorMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ProcessedAutomationRules** *(list) --* 

        A list of properly processed rule ARNs.

        
        

        - *(string) --* 
    
      

      - **UnprocessedAutomationRules** *(list) --* 

        A list of objects containing ``RuleArn``, ``ErrorCode``, and ``ErrorMessage``. This parameter tells you which automation rules the request didn't delete and why.

        
        

        - *(dict) --* 

          A list of objects containing ``RuleArn``, ``ErrorCode``, and ``ErrorMessage``. This parameter tells you which automation rules the request didn't process and why.

          
          

          - **RuleArn** *(string) --* 

            The Amazon Resource Name (ARN) for the unprocessed automation rule.

            
          

          - **ErrorCode** *(integer) --* 

            The error code associated with the unprocessed automation rule.

            
          

          - **ErrorMessage** *(string) --* 

            An error message describing why a request didn't process a specific rule.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`SecurityHub.Client.exceptions.InternalException`

  
  *   :py:class:`SecurityHub.Client.exceptions.InvalidAccessException`

  
  *   :py:class:`SecurityHub.Client.exceptions.InvalidInputException`

  
  *   :py:class:`SecurityHub.Client.exceptions.LimitExceededException`

  
  *   :py:class:`SecurityHub.Client.exceptions.ResourceNotFoundException`

  