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.
-
apiKeyThe API key to use for authentication. This value is encrypted and stored securely.
-
apiKeySecretConfigA 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
apiKeySecretSourceis set toEXTERNAL. -
apiKeySecretSourceThe source type of the API key secret. Use
MANAGEDif the secret is managed by the service, orEXTERNALif you manage the secret yourself in Amazon Web Services Secrets Manager. -
tagsA 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"
)