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

*************************
get_workload_access_token
*************************



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

  

  Obtains a workload access token for agentic workloads not acting on behalf of a user.

  

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


  **Request Syntax**
  ::

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

    The unique identifier for the registered workload.

    

  
  
  :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`

  