BedrockAgentCoreDataPlaneFrontingLayer / Client / get_resource_api_key

get_resource_api_key

BedrockAgentCoreDataPlaneFrontingLayer.Client.get_resource_api_key(**kwargs)

Retrieves an 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 you want to get the API Key of.

  • resourceCredentialProviderName (string) –

    [REQUIRED]

    The credential provider name of the resource you are retrieving the API Key of.

Return type:

dict

Returns:

Response Syntax

{
    'apiKey': 'string'
}

Response Structure

  • (dict) –

    • apiKey (string) –

      The API Key associated with the resource requested.

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