Skip to content
v2.278.0

PrivateKeySourceProperty Struct ​

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

Example ​

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
# 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
// 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();
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"
    }
};
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 ​

kmsKeySourceoptionalIResolvable | CfnOAuth2CredentialProvider.KmsKeySourceTypePropertykms_key_sourceoptionaltyping.Union[IResolvable, KmsKeySourceTypeProperty]kmsKeySourceoptionalIResolvableKmsKeySourceoptionalIResolvableKmsKeySourceoptionalinterface{} #
Contains the KMS key configuration for a JWT client assertion.