

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::ProfileEntry VersionPolicy

Specifies how a profile entry selects which extension version to use.

## Syntax
<a name="aws-properties-cloudextensions-profileentry-versionpolicy-syntax"></a>

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

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

```json
{
  "[UpdateStrategy](#cfn-cloudextensions-profileentry-versionpolicy-updatestrategy)" : {{String}},
  "[VersionSelector](#cfn-cloudextensions-profileentry-versionpolicy-versionselector)" : {{String}}
}
```

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

```yaml
  [UpdateStrategy](#cfn-cloudextensions-profileentry-versionpolicy-updatestrategy): {{String}}
  [VersionSelector](#cfn-cloudextensions-profileentry-versionpolicy-versionselector): {{String}}
```

## Properties
<a name="aws-properties-cloudextensions-profileentry-versionpolicy-properties"></a>

`UpdateStrategy`  <a name="cfn-cloudextensions-profileentry-versionpolicy-updatestrategy"></a>
The update strategy to use when a new extension version is available. `AUTOMATIC` updates the entry to newer versions that match the `versionSelector`. `MANUAL` doesn't apply any automatic updates. You set the version explicitly.  
*Required*: No  
*Type*: String  
*Allowed values*: `AUTOMATIC | MANUAL`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`VersionSelector`  <a name="cfn-cloudextensions-profileentry-versionpolicy-versionselector"></a>
A version selector that limits which versions are eligible. If the update strategy is `AUTOMATIC`, you can use the selector to limit updates to patches within a minor version. If the update strategy is `MANUAL`, the value must correspond to a specific extension version.  
*Required*: No  
*Type*: String  
*Pattern*: `^(0|[1-9]\d{0,7})(\.[xX*](\.[xX*])?|\.(0|[1-9]\d{0,7})(\.([xX*]|0|[1-9]\d{0,7}))?)?$`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)