# PrivateKeySourceProperty

Contains the private key source configuration for a JWT client assertion.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 Sep 2026

## 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 privateKeySourceProperty: bedrockagentcore.CfnOAuth2CredentialProvider.PrivateKeySourceProperty = {
  kmsKeySource: {
    kmsKeyArn: 'kmsKeyArn',
  },
};
```

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

private_key_source_property = bedrockagentcore.CfnOAuth2CredentialProvider.PrivateKeySourceProperty(
    kms_key_source=bedrockagentcore.CfnOAuth2CredentialProvider.KmsKeySourceTypeProperty(
        kms_key_arn="kmsKeyArn"
    )
)
```

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

PrivateKeySourceProperty privateKeySourceProperty = PrivateKeySourceProperty.builder()
        .kmsKeySource(KmsKeySourceTypeProperty.builder()
                .kmsKeyArn("kmsKeyArn")
                .build())
        .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 privateKeySourceProperty = new PrivateKeySourceProperty {
    KmsKeySource = new KmsKeySourceTypeProperty {
        KmsKeyArn = "kmsKeyArn"
    }
};
```

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"

privateKeySourceProperty := &PrivateKeySourceProperty{
	KmsKeySource: &KmsKeySourceTypeProperty{
		KmsKeyArn: jsii.String("kmsKeyArn"),
	},
}
```

## Properties

- `kmsKeySource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnOAuth2CredentialProvider.KmsKeySourceTypeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnOAuth2CredentialProvider.KmsKeySourceTypeProperty.html) — Contains the KMS key configuration for a JWT client assertion.
