

# SecretKey

A Signature Version 4 (SigV4) secret key, which you supply inline or by reference to an AWS Secrets Manager secret. Exactly one member is set.

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

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** literal **   <a name="systemsmanagercloudextensions-Type-SecretKey-literal"></a>
The secret key value, supplied inline. The value is 16 to 36 letters, digits, or hyphens. The value is returned unmasked only in the create or update response that sets or rotates it. Everywhere else, the value is masked.  
Type: String  
Pattern: `[a-zA-Z0-9-]{16,36}`   
Required: No

 ** reference **   <a name="systemsmanagercloudextensions-Type-SecretKey-reference"></a>
The ARN of a Secrets Manager secret that holds the secret key.  
Type: String  
Length Constraints: Minimum length of 54. Maximum length of 566.  
Pattern: `arn:[a-z0-9-]+:secretsmanager:[a-z0-9-]*:[0-9]{0,12}:secret:[a-zA-Z0-9/_+=\.@-]+`   
Required: No

## See Also
<a name="API_SecretKey_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/cloudextensions-2026-11-29/SecretKey) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cloudextensions-2026-11-29/SecretKey) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cloudextensions-2026-11-29/SecretKey) 