# GatewayApiKeyIdentityBinding

Provider and secret ARNs for wiring a Token Vault API key identity into a gateway target.

Returned by: [IApiKeyCredentialProvider.bindForGatewayApiKeyTarget](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.IApiKeyCredentialProvider.html#bindforgatewayapikeytarget)

- Source: [`lib/identity/api-key-credential-provider.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/identity/api-key-credential-provider.ts#L108)

## 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 gatewayApiKeyIdentityBinding: bedrock_agentcore_alpha.GatewayApiKeyIdentityBinding = {
  providerArn: 'providerArn',
  secretArn: 'secretArn',
};
```

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

gateway_api_key_identity_binding = bedrock_agentcore_alpha.GatewayApiKeyIdentityBinding(
    provider_arn="providerArn",
    secret_arn="secretArn"
)
```

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.*;

GatewayApiKeyIdentityBinding gatewayApiKeyIdentityBinding = GatewayApiKeyIdentityBinding.builder()
        .providerArn("providerArn")
        .secretArn("secretArn")
        .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 gatewayApiKeyIdentityBinding = new GatewayApiKeyIdentityBinding {
    ProviderArn = "providerArn",
    SecretArn = "secretArn"
};
```

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"

gatewayApiKeyIdentityBinding := &GatewayApiKeyIdentityBinding{
	ProviderArn: jsii.String("providerArn"),
	SecretArn: jsii.String("secretArn"),
}
```

## Properties

- `providerArn`: string (required) — API key credential provider ARN.

- `secretArn`: string (required) — Secrets Manager secret ARN for the API key material.
