SecretReferenceProperty Struct
A reference to a customer-provided secret stored in AWS Secrets Manager.
| Source | |
|---|---|
| Type last changed |
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"),
}