

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CloudExtensions::Profile SecretKey

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

## Syntax
<a name="aws-properties-cloudextensions-profile-secretkey-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-cloudextensions-profile-secretkey-syntax.json"></a>

```json
{
  "[Literal](#cfn-cloudextensions-profile-secretkey-literal)" : {{String}},
  "[Reference](#cfn-cloudextensions-profile-secretkey-reference)" : {{String}}
}
```

### YAML
<a name="aws-properties-cloudextensions-profile-secretkey-syntax.yaml"></a>

```yaml
  [Literal](#cfn-cloudextensions-profile-secretkey-literal): {{String}}
  [Reference](#cfn-cloudextensions-profile-secretkey-reference): {{String}}
```

## Properties
<a name="aws-properties-cloudextensions-profile-secretkey-properties"></a>

`Literal`  <a name="cfn-cloudextensions-profile-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.  
*Required*: No  
*Type*: String  
*Pattern*: `^[a-zA-Z0-9-]{16,36}$`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Reference`  <a name="cfn-cloudextensions-profile-secretkey-reference"></a>
The ARN of a Secrets Manager secret that holds the secret key.  
*Required*: No  
*Type*: String  
*Pattern*: `^arn:[a-z0-9-]+:secretsmanager:[a-z0-9-]*:[0-9]{0,12}:secret:[a-zA-Z0-9/_+=\.@-]+$`  
*Minimum*: `54`  
*Maximum*: `566`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)