# SecretReferenceProperty

Struct · External

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

- Source: Generated at build time
- Type last changed: v2.260.0 · 16 Jun 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 secretReferenceProperty: bedrockagentcore.CfnApiKeyCredentialProvider.SecretReferenceProperty = {
  jsonKey: 'jsonKey',
  secretId: 'secretId',
};
```

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

secret_reference_property = bedrockagentcore.CfnApiKeyCredentialProvider.SecretReferenceProperty(
    json_key="jsonKey",
    secret_id="secretId"
)
```

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

SecretReferenceProperty secretReferenceProperty = SecretReferenceProperty.builder()
        .jsonKey("jsonKey")
        .secretId("secretId")
        .build();
```

C#:

```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:

```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

- `jsonKey`: string (required) — The JSON key within the secret that contains the credential value.

- `secretId`: string (required) — The ID or ARN of the secret in AWS Secrets Manager.
