:doc:`Inspector <../../inspector>` / Client / remove_attributes_from_findings

*******************************
remove_attributes_from_findings
*******************************



.. py:method:: Inspector.Client.remove_attributes_from_findings(**kwargs)

  

  Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RemoveAttributesFromFindings>`_  


  **Request Syntax**
  ::

    response = client.remove_attributes_from_findings(
        findingArns=[
            'string',
        ],
        attributeKeys=[
            'string',
        ]
    )
    
  :type findingArns: list
  :param findingArns: **[REQUIRED]** 

    The ARNs that specify the findings that you want to remove attributes from.

    

  
    - *(string) --* 

    

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

    The array of attribute keys that you want to remove from specified findings.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'failedItems': {
              'string': {
                  'failureCode': 'INVALID_ARN'|'DUPLICATE_ARN'|'ITEM_DOES_NOT_EXIST'|'ACCESS_DENIED'|'LIMIT_EXCEEDED'|'INTERNAL_ERROR',
                  'retryable': True|False
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **failedItems** *(dict) --* 

        Attributes details that cannot be described. An error code is provided for each failed item.

        
        

        - *(string) --* 
          

          - *(dict) --* 

            Includes details about the failed items.

            
            

            - **failureCode** *(string) --* 

              The status code of a failed item.

              
            

            - **retryable** *(boolean) --* 

              Indicates whether you can immediately retry a request for this item for a specified resource.

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

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

  
  *   :py:class:`Inspector.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Inspector.Client.exceptions.NoSuchEntityException`

  
  *   :py:class:`Inspector.Client.exceptions.ServiceTemporarilyUnavailableException`

  

  **Examples**

  Removes entire attributes (key and value pairs) from the findings that are specified by the ARNs of the findings where an attribute with the specified key exists.
  ::

    response = client.remove_attributes_from_findings(
        attributeKeys=[
            'key=Example,value=example',
        ],
        findingArns=[
            'arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU',
        ],
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'failedItems': {
        },
        'ResponseMetadata': {
            '...': '...',
        },
    }

  