

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 还原测试推断出的元数据
<a name="restore-testing-inferred-metadata"></a>

还原恢复点需要还原元数据。为了执行还原测试， AWS Backup 会自动推断可能有助于实现成功还原的元数据。该命令`get-restore-testing-inferred-metadata`可用于预览 AWS Backup 将推断出的内容。该命令`get-restore-job-metadata`返回由 AWS Backup推断出的元数据集。请注意，对于某些资源类型 (Amazon FSx) AWS Backup ，无法推断出完整的元数据集。

*推断出的还原元数据*是在还原测试过程中确定的。您可以通过在 `RestoreTestingSelection` 的正文中添加参数 `RestoreMetadataOverrides` 来覆盖某些还原元数据键。某些元数据覆盖在 AWS Backup 控制台中不可用。

每个支持的资源都具有推断出的还原元数据键和值，以及可覆盖的还原元数据键。只有`RestoreMetadataOverrides`键值对或标*required for successful restore*有标记的嵌套键值对才需要包含；其他是可选的。请注意，键值不区分大小写。

**重要**  
AWS Backup 可以推断资源应恢复到默认设置，例如将 Amazon EC2 实例或 Amazon RDS 集群恢复到默认 VPC。但是，如果不存在默认值，例如默认 VPC 或子网已被删除且未输入任何元数据覆盖，则还原将不会成功。


| 资源类型 | 推断出的还原元数据键和值 | 可覆盖的元数据 | 
| --- | --- | --- | 
| **DynamoDB** |  `deletionProtection`，其中值设置为 `false` `encryptionType` 设置为 `Default` `targetTableName`，其中值设置为随机值（从 `awsbackup-restore-test-` 开始）  |  `encryptionType` `kmsMasterKeyArn`  | 
| **Amazon EBS** |  `availabilityZone`，其值设置为随机可用区 `encrypted`，其值设置为 `true`  |  `availabilityZone` `iops` `kmsKeyId` `throughput` `volumesize` `volumetype`  | 
| **Amazon EC2** |  `disableApiTermination` 值设置为 `false` `instanceType` 值设置为正在还原的恢复点的实例类型 `requiredImdsV2` 值设置为 `true`  |  `iamInstanceProfileName`（空值或 `UseBackedUpValue`） `instanceType` `requireImdsV2` `securityGroupIds` `subnetId`  | 
| **Amazon EFS** |  `encrypted` 值设置为 `true` `file-system-id` 值设置为正在还原的恢复点的文件系统 ID `kmsKeyId value` 设置为 `alias/aws/elasticfilesystem` `newFileSystem` 值设置为 `true` `performanceMode` 值设置为 `generalPurpose`  |  `kmsKeyId` `performanceMode`  | 
| **亚马逊 f FSx or Lustre** |  `lustreConfiguration` 具有嵌套键。一个嵌套键是 `automaticBackupRetentionDays`，其值设置为 `0`  |  `kmsKeyId` `lustreConfiguration` 具有嵌套键 `logConfiguration` `securityGroupIds` `subnetIds`, *required for successful restore*  | 
| ** FSx 适用于 NetApp ONTAP 的 Amazon** |  `name` 设置为随机值（从 `awsbackup_restore_test_` 开始） `ontapConfiguration` 具有嵌套键，其中包括： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/aws-backup/latest/devguide/restore-testing-inferred-metadata.html)  |  `ontapConfiguration` 具有特定的可覆盖嵌套键，其中包括： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/aws-backup/latest/devguide/restore-testing-inferred-metadata.html)  | 
| ** FSx 适用于 OpenZFS 的亚马逊** |  `openZfzConfiguration`，具有嵌套键，其中包括： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/aws-backup/latest/devguide/restore-testing-inferred-metadata.html)  |  `kmsKeyId` `openZfsConfiguration` 具有特定的可覆盖嵌套键，其中包括： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) `securityGroupIds` `subnetIds`  | 
| ** FSx 适用于 Windows 文件服务器的亚马逊** |  `windowsConfiguration`，具有嵌套键，其中包括： [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/aws-backup/latest/devguide/restore-testing-inferred-metadata.html)  |  `kmsKeyId` `securityGroupIds` `subnetIds` *required for successful restore* `windowsConfiguration`，带有特定的可覆盖嵌套键 [\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/aws-backup/latest/devguide/restore-testing-inferred-metadata.html)  | 
| **Amazon RDS、Aurora、Amazon DocumentDB、Amazon Neptune 集群** |  `availabilityZones`，其值设置为列有多达三个随机可用区的列表 `dbClusterIdentifier`，从 `awsbackup-restore-test` 开始的随机值 `engine`，其值设置为正在还原的恢复点的引擎  |  `availabilityZones` `databaseName` `dbClusterParameterGroupName` `dbSubnetGroupName` `enableCloudwatchLogsExports` `enableIamDatabaseAuthentication` `engine` `engineMode` `engineVersion` `kmskeyId` `port` `optionGroupName` `scalingConfiguration` `vpcSecurityGroupIds`  | 
| **Amazon RDS 实例** |  `dbInstanceIdentifier`，从 `awsbackup-restore-test-` 开始的随机值 `deletionProtection`，其值设置为 `false` `multiAz`，其值设置为 `false` `publiclyAccessible`，其值设置为 false  |  `allocatedStorage` `availabilityZones` `dbInstanceClass` `dbName` `dbParameterGroupName` `dbSubnetGroupName` `domain` `domainIamRoleName` `enableCloudwatchLogsExports` `enableIamDatabaseAuthentication` `iops` `licensemodel` `multiAz` `optionGroupName` `port` `processorFeatures` `publiclyAccessible` `storageType` `vpcSecurityGroupIds`  | 
| **Amazon Simple Storage Service（Amazon S3）** |  `destinationBucketName`，从 `awsbackup-restore-test-` 开始的随机值 `encrypted `，其值设置为 `true` `encryptionType`，其值设置为 `SSE-S3` `newBucket`，其值设置为 `true`  |  `encryptionType` `kmsKey`  | 