BedrockAgentCore / Client / get_resource_api_key
get_resource_api_key¶
- BedrockAgentCore.Client.get_resource_api_key(**kwargs)¶
Retrieves the API key associated with an API key credential provider.
See also: AWS API Documentation
Request Syntax
response = client.get_resource_api_key( workloadIdentityToken='string', resourceCredentialProviderName='string' )
- Parameters:
workloadIdentityToken (string) –
[REQUIRED]
The identity token of the workload from which you want to retrieve the API key.
resourceCredentialProviderName (string) –
[REQUIRED]
The credential provider name for the resource from which you are retrieving the API key.
- Return type:
dict
- Returns:
Response Syntax
{ 'apiKey': 'string' }
Response Structure
(dict) –
apiKey (string) –
The API key associated with the resource requested.
Exceptions
BedrockAgentCore.Client.exceptions.UnauthorizedExceptionBedrockAgentCore.Client.exceptions.ValidationExceptionBedrockAgentCore.Client.exceptions.AccessDeniedExceptionBedrockAgentCore.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCore.Client.exceptions.ThrottlingExceptionBedrockAgentCore.Client.exceptions.InternalServerException