BedrockAgentCoreDataPlaneFrontingLayer / Client / get_workload_access_token_for_user_id
get_workload_access_token_for_user_id¶
- BedrockAgentCoreDataPlaneFrontingLayer.Client.get_workload_access_token_for_user_id(**kwargs)¶
Obtains an Workload access token for agentic workloads acting on behalf of user with User Id.
See also: AWS API Documentation
Request Syntax
response = client.get_workload_access_token_for_user_id( workloadName='string', userId='string' )
- Parameters:
workloadName (string) –
[REQUIRED]
The name of the worklaod you want to get the access token of.
userId (string) –
[REQUIRED]
The user id of the user you are retrieving the access token for.
- Return type:
dict
- Returns:
Response Syntax
{ 'workloadAccessToken': 'string' }
Response Structure
(dict) –
workloadAccessToken (string) –
The workload access token of the named workload.
Exceptions
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.UnauthorizedException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.ValidationException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.AccessDeniedException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.ResourceNotFoundException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.ThrottlingException
BedrockAgentCoreDataPlaneFrontingLayer.Client.exceptions.InternalServerException