Skip to content
v2.278.0

ApiKeyAdditionalConfiguration Struct ​

API Key additional configuration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const apiKeyAdditionalConfiguration: bedrock_agentcore_alpha.ApiKeyAdditionalConfiguration = {
  credentialParameterName: 'credentialParameterName',
  credentialPrefix: 'credentialPrefix',
};
python
# 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_additional_configuration = bedrock_agentcore_alpha.ApiKeyAdditionalConfiguration(
    credential_parameter_name="credentialParameterName",
    credential_prefix="credentialPrefix"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.agentcore.alpha.*;

ApiKeyAdditionalConfiguration apiKeyAdditionalConfiguration = ApiKeyAdditionalConfiguration.builder()
        .credentialParameterName("credentialParameterName")
        .credentialPrefix("credentialPrefix")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;

var apiKeyAdditionalConfiguration = new ApiKeyAdditionalConfiguration {
    CredentialParameterName = "credentialParameterName",
    CredentialPrefix = "credentialPrefix"
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"

apiKeyAdditionalConfiguration := &ApiKeyAdditionalConfiguration{
	CredentialParameterName: jsii.String("credentialParameterName"),
	CredentialPrefix: jsii.String("credentialPrefix"),
}

Properties ​

credentialParameterNameoptionalstringcredential_parameter_nameoptionalstrcredentialParameterNameoptionalStringCredentialParameterNameoptionalstringCredentialParameterNameoptional*string #
The name of the credential parameter for the API key.

Default: 'Authorization' for HEADER, 'api_key' for QUERY_PARAMETER

This parameter name is used when sending the API key to the target endpoint.

Length Constraints: Minimum length of 1. Maximum length of 64.

credentialPrefixoptionalstringcredential_prefixoptionalstrcredentialPrefixoptionalStringCredentialPrefixoptionalstringCredentialPrefixoptional*string #
The prefix for the API key credential.

Default: 'Bearer ' for HEADER, no prefix for QUERY_PARAMETER

This prefix is added to the API key when sending it to the target endpoint.

Length Constraints: Minimum length of 1. Maximum length of 64.