ApiKeyCredentialProviderProps
- class aws_cdk.aws_bedrock_agentcore_alpha.ApiKeyCredentialProviderProps(*, provider_arn, secret_arn, credential_location=None)
Bases:
object(deprecated) API key credential provider ARNs for gateway outbound auth (Token Vault identity).
Pass this to {@link GatewayCredentialProvider.fromApiKeyIdentityArn } or to {@link ApiKeyCredentialProviderConfiguration}.
- Parameters:
provider_arn (
str) – (deprecated) The API key credential provider ARN. This is returned when creating the API key credential provider via Console or API. Format: arn:aws:bedrock-agentcore:region:account:token-vault/id/apikeycredentialprovider/namesecret_arn (
str) – (deprecated) The ARN of the Secrets Manager secret containing the API key. This is returned when creating the API key credential provider via Console or API. Format: arn:aws:secretsmanager:region:account:secret:namecredential_location (
Optional[ApiKeyCredentialLocation]) – (deprecated) The location of the API key credential. This field specifies where in the request the API key should be placed. Default: - HEADER
- Deprecated:
Use the equivalent construct from
aws-cdk-lib/aws-bedrockagentcoreinstead.- Stability:
deprecated
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha # api_key_credential_location: bedrock_agentcore_alpha.ApiKeyCredentialLocation api_key_credential_provider_props = bedrock_agentcore_alpha.ApiKeyCredentialProviderProps( provider_arn="providerArn", secret_arn="secretArn", # the properties below are optional credential_location=api_key_credential_location )
Attributes
- credential_location
(deprecated) The location of the API key credential.
This field specifies where in the request the API key should be placed.
- Default:
HEADER
- Stability:
deprecated
- provider_arn
(deprecated) The API key credential provider ARN.
This is returned when creating the API key credential provider via Console or API. Format: arn:aws:bedrock-agentcore:region:account:token-vault/id/apikeycredentialprovider/name
- Stability:
deprecated
- secret_arn
(deprecated) The ARN of the Secrets Manager secret containing the API key.
This is returned when creating the API key credential provider via Console or API. Format: arn:aws:secretsmanager:region:account:secret:name
- Stability:
deprecated