

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::AmplifyGen3::Environment SkewProtectionConfig

The version skew protection settings for an environment.

## Syntax
<a name="aws-properties-amplifygen3-environment-skewprotectionconfig-syntax"></a>

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

### JSON
<a name="aws-properties-amplifygen3-environment-skewprotectionconfig-syntax.json"></a>

```json
{
  "[CookieMaxAgeSeconds](#cfn-amplifygen3-environment-skewprotectionconfig-cookiemaxageseconds)" : {{Integer}},
  "[Status](#cfn-amplifygen3-environment-skewprotectionconfig-status)" : {{String}}
}
```

### YAML
<a name="aws-properties-amplifygen3-environment-skewprotectionconfig-syntax.yaml"></a>

```yaml
  [CookieMaxAgeSeconds](#cfn-amplifygen3-environment-skewprotectionconfig-cookiemaxageseconds): {{Integer}}
  [Status](#cfn-amplifygen3-environment-skewprotectionconfig-status): {{String}}
```

## Properties
<a name="aws-properties-amplifygen3-environment-skewprotectionconfig-properties"></a>

`CookieMaxAgeSeconds`  <a name="cfn-amplifygen3-environment-skewprotectionconfig-cookiemaxageseconds"></a>
The maximum age, in seconds, of the version skew protection cookie.  
*Required*: No  
*Type*: Integer  
*Minimum*: `0`  
*Maximum*: `604800`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Status`  <a name="cfn-amplifygen3-environment-skewprotectionconfig-status"></a>
Specifies whether version skew protection is enabled for the environment.  
*Required*: No  
*Type*: String  
*Allowed values*: `ENABLED | DISABLED`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)