# ApiKeyAdditionalConfiguration

API Key additional configuration.

Used as argument in: [ApiKeyCredentialLocation.header](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.ApiKeyCredentialLocation.html#header), ApiKeyCredentialLocation.queryParameter

- Source: [`lib/gateway/outbound-auth/api-key.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/gateway/outbound-auth/api-key.ts#L15)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `credentialParameterName`: 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.

- `credentialPrefix`: 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.
