

# virtualmachine-resources-protected-by-backup-plan
<a name="virtualmachine-resources-protected-by-backup-plan"></a>

Checks if AWS Backup-Gateway VirtualMachines are protected by a backup plan. The rule is NON\$1COMPLIANT if the Backup-Gateway VirtualMachine is not covered by a backup plan. 



**Identifier:** VIRTUALMACHINE\$1RESOURCES\$1PROTECTED\$1BY\$1BACKUP\$1PLAN

**Resource Types:** AWS::BackupGateway::VirtualMachine

**Trigger type:** Periodic

**AWS Region:** All supported AWS regions except Asia Pacific (New Zealand), China (Beijing), Asia Pacific (Thailand), Asia Pacific (Jakarta), Middle East (UAE), Asia Pacific (Hyderabad), Asia Pacific (Malaysia), Asia Pacific (Melbourne), Mexico (Central), Israel (Tel Aviv), Asia Pacific (Taipei), Canada West (Calgary), Europe (Spain), China (Ningxia), Europe (Zurich) Region

**Parameters:**

resourceTags (Optional)Type: String  
Tags for AWS Backup-Gateway VirtualMachines for the rule to check, in JSON format `{"tagkey" : "tagValue"}`.

resourceId (Optional)Type: String  
ID of AWS Backup-Gateway VirtualMachine for the rule to check.

crossRegionList (Optional)Type: String  
Comma-separated list of destination regions for the cross-region backup copy to be kept

crossAccountList (Optional)Type: String  
Comma-separated list of destination accounts for cross-account backup copy to be kept

maxRetentionDays (Optional)Type: int  
The maximum retention period in days for the Backup Vault Lock

minRetentionDays (Optional)Type: int  
The minimum retention period in days for the Backup Vault Lock

backupVaultLockCheck (Optional)Type: String  
Accepted values: 'True' or 'False'. Enter 'True' for the rule to check if the resource is backed up in a locked vault

## AWS CloudFormation template
<a name="w2aac20c16c17b7e1569c19"></a>

To create AWS Config managed rules with AWS CloudFormation templates, see [Creating AWS Config Managed Rules With AWS CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).