# ApiKeyCredentialProviderProperty

The API key credential provider for the gateway target.

- Source: Generated at build time
- Type last changed: v2.220.0 · 14 Oct 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const apiKeyCredentialProviderProperty: bedrockagentcore.CfnGatewayTarget.ApiKeyCredentialProviderProperty = {
  providerArn: 'providerArn',

  // the properties below are optional
  credentialLocation: 'credentialLocation',
  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.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

api_key_credential_provider_property = bedrockagentcore.CfnGatewayTarget.ApiKeyCredentialProviderProperty(
    provider_arn="providerArn",

    # the properties below are optional
    credential_location="credentialLocation",
    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.bedrockagentcore.*;

ApiKeyCredentialProviderProperty apiKeyCredentialProviderProperty = ApiKeyCredentialProviderProperty.builder()
        .providerArn("providerArn")

        // the properties below are optional
        .credentialLocation("credentialLocation")
        .credentialParameterName("credentialParameterName")
        .credentialPrefix("credentialPrefix")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

var apiKeyCredentialProviderProperty = new ApiKeyCredentialProviderProperty {
    ProviderArn = "providerArn",

    // the properties below are optional
    CredentialLocation = "credentialLocation",
    CredentialParameterName = "credentialParameterName",
    CredentialPrefix = "credentialPrefix"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

apiKeyCredentialProviderProperty := &ApiKeyCredentialProviderProperty{
	ProviderArn: jsii.String("providerArn"),

	// the properties below are optional
	CredentialLocation: jsii.String("credentialLocation"),
	CredentialParameterName: jsii.String("credentialParameterName"),
	CredentialPrefix: jsii.String("credentialPrefix"),
}
```

## Properties

- `credentialLocation`: string — The credential location for the gateway target.

- `credentialParameterName`: string — The credential parameter name for the provider for the gateway target.

- `credentialPrefix`: string — The API key credential provider for the gateway target.

- `providerArn`: string (required) — The provider ARN for the gateway target.
