BedrockAgentCore / Client / get_workload_access_token

get_workload_access_token

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

Request Syntax

response = client.get_workload_access_token(
    workloadName='string'
)
Parameters:

workloadName (string) –

[REQUIRED]

The unique identifier for the registered workload.

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