:doc:`BedrockAgentCore <../../bedrock-agentcore>` / Client / get_workload_access_token_for_jwt

*********************************
get_workload_access_token_for_jwt
*********************************



.. py:method:: BedrockAgentCore.Client.get_workload_access_token_for_jwt(**kwargs)

  

  Obtains a workload access token for agentic workloads acting on behalf of a user, using a JWT token.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-agentcore-2024-02-28/GetWorkloadAccessTokenForJWT>`_  


  **Request Syntax**
  ::

    response = client.get_workload_access_token_for_jwt(
        workloadName='string',
        userToken='string'
    )
    
  :type workloadName: string
  :param workloadName: **[REQUIRED]** 

    The unique identifier for the registered workload.

    

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

    The OAuth 2.0 token issued by the user's identity provider.

    

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

    
    ::

      {
          'workloadAccessToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **workloadAccessToken** *(string) --* 

        An opaque token representing the identity of both the workload and the user.

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

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

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

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

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

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

  