

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

# AWS::EC2::LaunchTemplate MaintenanceOptions
<a name="aws-properties-ec2-launchtemplate-maintenanceoptions"></a>

The maintenance options of your instance.

## Syntax
<a name="aws-properties-ec2-launchtemplate-maintenanceoptions-syntax"></a>

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

### JSON
<a name="aws-properties-ec2-launchtemplate-maintenanceoptions-syntax.json"></a>

```
{
  "[AutoRecovery](#cfn-ec2-launchtemplate-maintenanceoptions-autorecovery)" : String
}
```

### YAML
<a name="aws-properties-ec2-launchtemplate-maintenanceoptions-syntax.yaml"></a>

```
  [AutoRecovery](#cfn-ec2-launchtemplate-maintenanceoptions-autorecovery): String
```

## Properties
<a name="aws-properties-ec2-launchtemplate-maintenanceoptions-properties"></a>

`AutoRecovery`  <a name="cfn-ec2-launchtemplate-maintenanceoptions-autorecovery"></a>
Disables the automatic recovery behavior of your instance or sets it to default.  
*Required*: No  
*Type*: String  
*Allowed values*: `default | disabled`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)