:doc:`TrustedAdvisorPublicAPI <../../trustedadvisor>` / Client / batch_update_recommendation_resource_exclusion

**********************************************
batch_update_recommendation_resource_exclusion
**********************************************



.. py:method:: TrustedAdvisorPublicAPI.Client.batch_update_recommendation_resource_exclusion(**kwargs)

  

  Update one or more exclusion status for a list of recommendation resources

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/trustedadvisor-2022-09-15/BatchUpdateRecommendationResourceExclusion>`_  


  **Request Syntax**
  ::

    response = client.batch_update_recommendation_resource_exclusion(
        recommendationResourceExclusions=[
            {
                'arn': 'string',
                'isExcluded': True|False
            },
        ]
    )
    
  :type recommendationResourceExclusions: list
  :param recommendationResourceExclusions: **[REQUIRED]** 

    A list of recommendation resource ARNs and exclusion status to update

    

  
    - *(dict) --* 

      The request entry for Recommendation Resource exclusion. Each entry is a combination of Recommendation Resource ARN and corresponding exclusion status

      

    
      - **arn** *(string) --* **[REQUIRED]** 

        The ARN of the Recommendation Resource

        

      
      - **isExcluded** *(boolean) --* **[REQUIRED]** 

        The exclusion status

        

      
    

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

    
    ::

      {
          'batchUpdateRecommendationResourceExclusionErrors': [
              {
                  'arn': 'string',
                  'errorCode': 'string',
                  'errorMessage': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **batchUpdateRecommendationResourceExclusionErrors** *(list) --* 

        A list of recommendation resource ARNs whose exclusion status failed to update, if any

        
        

        - *(dict) --* 

          The error entry for Recommendation Resource exclusion. Each entry is a combination of Recommendation Resource ARN, error code and error message

          
          

          - **arn** *(string) --* 

            The ARN of the Recommendation Resource

            
          

          - **errorCode** *(string) --* 

            The error code

            
          

          - **errorMessage** *(string) --* 

            The error message

            
      
    
  
  **Exceptions**
  
  *   :py:class:`TrustedAdvisorPublicAPI.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`TrustedAdvisorPublicAPI.Client.exceptions.ConflictException`

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

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

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

  