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

************************
update_assessment_target
************************



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

  

  Updates the assessment target that is specified by the ARN of the assessment target.

   

  If resourceGroupArn is not specified, all EC2 instances in the current AWS account and region are included in the assessment target.

  

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


  **Request Syntax**
  ::

    response = client.update_assessment_target(
        assessmentTargetArn='string',
        assessmentTargetName='string',
        resourceGroupArn='string'
    )
    
  :type assessmentTargetArn: string
  :param assessmentTargetArn: **[REQUIRED]** 

    The ARN of the assessment target that you want to update.

    

  
  :type assessmentTargetName: string
  :param assessmentTargetName: **[REQUIRED]** 

    The name of the assessment target that you want to update.

    

  
  :type resourceGroupArn: string
  :param resourceGroupArn: 

    The ARN of the resource group that is used to specify the new resource group to associate with the assessment target.

    

  
  
  :returns: None
  **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**

  Updates the assessment target that is specified by the ARN of the assessment target.
  ::

    response = client.update_assessment_target(
        assessmentTargetArn='arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX',
        assessmentTargetName='Example',
        resourceGroupArn='arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-yNbgL5Pt',
    )
    
    print(response)

  
  Expected Output:
  ::

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

  