Skip to content

Get Resource Api Key

bedrockagentcore_get_resource_api_key R Documentation

Retrieves the API key associated with an API key credential provider

Description

Retrieves the API key associated with an API key credential provider.

Usage

bedrockagentcore_get_resource_api_key(workloadIdentityToken,
  resourceCredentialProviderName)

Arguments

workloadIdentityToken

[required] The identity token of the workload from which you want to retrieve the API key.

resourceCredentialProviderName

[required] The credential provider name for the resource from which you are retrieving the API key.

Value

A list with the following syntax:

list(
  apiKey = "string"
)

Request syntax

svc$get_resource_api_key(
  workloadIdentityToken = "string",
  resourceCredentialProviderName = "string"
)