Skip to content
v2.278.0

SecretReferenceProperty Struct ​

A reference to a customer-provided secret stored in AWS Secrets Manager.

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 secretReferenceProperty: bedrockagentcore.CfnOAuth2CredentialProvider.SecretReferenceProperty = {
  jsonKey: 'jsonKey',
  secretId: 'secretId',
};
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

secret_reference_property = bedrockagentcore.CfnOAuth2CredentialProvider.SecretReferenceProperty(
    json_key="jsonKey",
    secret_id="secretId"
)
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.*;

SecretReferenceProperty secretReferenceProperty = SecretReferenceProperty.builder()
        .jsonKey("jsonKey")
        .secretId("secretId")
        .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 secretReferenceProperty = new SecretReferenceProperty {
    JsonKey = "jsonKey",
    SecretId = "secretId"
};
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"

secretReferenceProperty := &SecretReferenceProperty{
	JsonKey: jsii.String("jsonKey"),
	SecretId: jsii.String("secretId"),
}

Properties ​

jsonKeystringjson_keystrjsonKeyStringJsonKeystringJsonKey*string required #
The JSON key within the secret that contains the credential value.
secretIdstringsecret_idstrsecretIdStringSecretIdstringSecretId*string required #
The ID or ARN of the secret in AWS Secrets Manager.