

# SecretReference

A reference to a credential held in a Secrets Manager secret that you own and manage. Use this instead of supplying the credential directly, so the value stays in your own secret.

## Contents
<a name="API_SecretReference_Contents"></a>

 ** jsonKey **   <a name="credentialbrokercontrol-Type-SecretReference-jsonKey"></a>
Key to read from the secret's JSON payload. The secret value must be a JSON object, and this key must be present in it; the value stored under the key is used as the credential.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Required: Yes

 ** secretId **   <a name="credentialbrokercontrol-Type-SecretReference-secretId"></a>
Name or Amazon Resource Name of a secret in AWS Secrets Manager that you own. The secret must be in the same Region as the resource that references it, and its resource policy must allow this service to read it.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Required: Yes

## See Also
<a name="API_SecretReference_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/credentialbroker-control-2026-09-30/SecretReference) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/credentialbroker-control-2026-09-30/SecretReference) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/credentialbroker-control-2026-09-30/SecretReference) 