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.UnauthorizedExceptionBedrockAgentCore.Client.exceptions.ValidationExceptionBedrockAgentCore.Client.exceptions.AccessDeniedExceptionBedrockAgentCore.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCore.Client.exceptions.ThrottlingExceptionBedrockAgentCore.Client.exceptions.InternalServerException