:doc:`BedrockAgentCoreControl <../../bedrock-agentcore-control>` / Client / update_workload_identity

************************
update_workload_identity
************************



.. py:method:: BedrockAgentCoreControl.Client.update_workload_identity(**kwargs)

  

  Updates an existing workload identity.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-control-2023-06-05/UpdateWorkloadIdentity>`_  


  **Request Syntax**
  ::

    response = client.update_workload_identity(
        name='string',
        allowedResourceOauth2ReturnUrls=[
            'string',
        ]
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name of the workload identity to update.

    

  
  :type allowedResourceOauth2ReturnUrls: list
  :param allowedResourceOauth2ReturnUrls: 

    The new list of allowed OAuth2 return URLs for resources associated with this workload identity. This list replaces the existing list.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'name': 'string',
          'workloadIdentityArn': 'string',
          'allowedResourceOauth2ReturnUrls': [
              'string',
          ],
          'createdTime': datetime(2015, 1, 1),
          'lastUpdatedTime': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **name** *(string) --* 

        The name of the workload identity.

        
      

      - **workloadIdentityArn** *(string) --* 

        The Amazon Resource Name (ARN) of the workload identity.

        
      

      - **allowedResourceOauth2ReturnUrls** *(list) --* 

        The list of allowed OAuth2 return URLs for resources associated with this workload identity.

        
        

        - *(string) --* 
    
      

      - **createdTime** *(datetime) --* 

        The timestamp when the workload identity was created.

        
      

      - **lastUpdatedTime** *(datetime) --* 

        The timestamp when the workload identity was last updated.

        
  
  **Exceptions**
  
  *   :py:class:`BedrockAgentCoreControl.Client.exceptions.UnauthorizedException`

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

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

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

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

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

  