BedrockAgentCore / Client / get_workload_access_token_for_jwt

get_workload_access_token_for_jwt

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

Request Syntax

response = client.get_workload_access_token_for_jwt(
    workloadName='string',
    userToken='string'
)
Parameters:
  • workloadName (string) –

    [REQUIRED]

    The unique identifier for the registered workload.

  • userToken (string) –

    [REQUIRED]

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

Return type:

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

  • BedrockAgentCore.Client.exceptions.UnauthorizedException

  • BedrockAgentCore.Client.exceptions.ValidationException

  • BedrockAgentCore.Client.exceptions.AccessDeniedException

  • BedrockAgentCore.Client.exceptions.ResourceNotFoundException

  • BedrockAgentCore.Client.exceptions.ThrottlingException

  • BedrockAgentCore.Client.exceptions.InternalServerException