:doc:`FMS <../../fms>` / Client / batch_disassociate_resource

***************************
batch_disassociate_resource
***************************



.. py:method:: FMS.Client.batch_disassociate_resource(**kwargs)

  

  Disassociates resources from a Firewall Manager resource set.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/BatchDisassociateResource>`_  


  **Request Syntax**
  ::

    response = client.batch_disassociate_resource(
        ResourceSetIdentifier='string',
        Items=[
            'string',
        ]
    )
    
  :type ResourceSetIdentifier: string
  :param ResourceSetIdentifier: **[REQUIRED]** 

    A unique identifier for the resource set, used in a request to refer to the resource set.

    

  
  :type Items: list
  :param Items: **[REQUIRED]** 

    The uniform resource identifiers (URI) of resources that should be disassociated from the resource set. The URIs must be Amazon Resource Names (ARNs).

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'ResourceSetIdentifier': 'string',
          'FailedItems': [
              {
                  'URI': 'string',
                  'Reason': 'NOT_VALID_ARN'|'NOT_VALID_PARTITION'|'NOT_VALID_REGION'|'NOT_VALID_SERVICE'|'NOT_VALID_RESOURCE_TYPE'|'NOT_VALID_ACCOUNT_ID'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ResourceSetIdentifier** *(string) --* 

        A unique identifier for the resource set, used in a request to refer to the resource set.

        
      

      - **FailedItems** *(list) --* 

        The resources that failed to disassociate from the resource set.

        
        

        - *(dict) --* 

          Details of a resource that failed when trying to update it's association to a resource set.

          
          

          - **URI** *(string) --* 

            The univeral resource indicator (URI) of the resource that failed.

            
          

          - **Reason** *(string) --* 

            The reason the resource's association could not be updated.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`FMS.Client.exceptions.InvalidOperationException`

  
  *   :py:class:`FMS.Client.exceptions.InternalErrorException`

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

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

  