Skip to content

Creates a new API key credential provider

Description

Creates a new API key credential provider.

Usage

bedrockagentcorecontrol_create_api_key_credential_provider(name, apiKey,
  apiKeySecretConfig, apiKeySecretSource, tags)

Arguments

  • name

    [required] The name of the API key credential provider. The name must be unique within your account.

  • apiKey

    The API key to use for authentication. This value is encrypted and stored securely.

  • apiKeySecretConfig

    A reference to the Amazon Web Services Secrets Manager secret that stores the API key. This includes the secret ID and the JSON key used to extract the API key value from the secret. Required when apiKeySecretSource is set to EXTERNAL.

  • apiKeySecretSource

    The source type of the API key secret. Use MANAGED if the secret is managed by the service, or EXTERNAL if you manage the secret yourself in Amazon Web Services Secrets Manager.

  • tags

    A map of tag keys and values to assign to the API key credential provider. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.

Value

A list with the following syntax:

list(
  apiKeySecretArn = list(
    secretArn = "string"
  ),
  apiKeySecretJsonKey = "string",
  apiKeySecretSource = "MANAGED"|"EXTERNAL",
  name = "string",
  credentialProviderArn = "string"
)

Request syntax

svc$create_api_key_credential_provider(
  name = "string",
  apiKey = "string",
  apiKeySecretConfig = list(
    secretId = "string",
    jsonKey = "string"
  ),
  apiKeySecretSource = "MANAGED"|"EXTERNAL",
  tags = list(
    "string"
  )
)