{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-backup/json-schema/aws-backup-create-restore-testing-selection-input-schema.json",
  "title": "CreateRestoreTestingSelectionInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-backup-selections-api-openapi.yml#/components/schemas/CreateRestoreTestingSelectionInput",
  "type": "object",
  "properties": {
    "CreatorRequestId": {
      "type": "string",
      "description": "This is an optional unique string that identifies the request and allows failed requests to be retried without the risk of running the operation twice. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters."
    },
    "RestoreTestingPlanName": {
      "type": "string",
      "description": "Input the restore testing plan name that was returned from the related CreateRestoreTestingPlan request."
    },
    "RestoreTestingSelection": {
      "$ref": "#/$defs/RestoreTestingSelectionForCreate"
    }
  },
  "required": [
    "RestoreTestingPlanName",
    "RestoreTestingSelection"
  ],
  "$defs": {
    "KeyValue": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key (String). The key can't start with aws:. Length Constraints: Minimum length of 1. Maximum length of 128. Pattern: ^(?![aA]{1}[wW]{1}[sS]{1}:)([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]+)$"
        },
        "Value": {
          "type": "string",
          "description": "The value of the key. Length Constraints: Maximum length of 256. Pattern: ^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$"
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "ProtectedResourceConditions": {
      "type": "object",
      "properties": {
        "StringEquals": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/KeyValue"
          },
          "description": "Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called \"exact matching.\""
        },
        "StringNotEquals": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/KeyValue"
          },
          "description": "Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called \"negated matching.\""
        }
      }
    },
    "RestoreTestingSelectionForCreate": {
      "type": "object",
      "properties": {
        "IamRoleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target resource; for example: arn:aws:iam::123456789012:role/S3Access."
        },
        "ProtectedResourceArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Each protected resource can be filtered by its specific ARNs, such as ProtectedResourceArns: [\"arn:aws:...\", \"arn:aws:...\"] or by a wildcard: ProtectedResourceArns: [\"*\"], but not both."
        },
        "ProtectedResourceConditions": {
          "$ref": "#/$defs/ProtectedResourceConditions"
        },
        "ProtectedResourceType": {
          "type": "string",
          "description": "The type of Amazon Web Services resource included in a restore testing selection; for example, an Amazon EBS volume or an Amazon RDS database. Supported resource types accepted include: Aurora for Amazon Aurora DocumentDB for Amazon DocumentDB (with MongoDB compatibility) DynamoDB for Amazon DynamoDB EBS for Amazon Elastic Block Store EC2 for Amazon Elastic Compute Cloud EFS for Amazon Elastic File System FSx for Amazon FSx Neptune for Amazon Neptune RDS for Amazon Relational Database Service S3 for Amazon S3"
        },
        "RestoreMetadataOverrides": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides in the body of RestoreTestingSelection. Key values are not case sensitive. See the complete list of restore testing inferred metadata."
        },
        "RestoreTestingSelectionName": {
          "type": "string",
          "description": "The unique name of the restore testing selection that belongs to the related restore testing plan. The name consists of only alphanumeric characters and underscores. Maximum length is 50."
        },
        "ValidationWindowHours": {
          "type": "integer",
          "description": "This is amount of hours (0 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first."
        }
      },
      "required": [
        "IamRoleArn",
        "ProtectedResourceType",
        "RestoreTestingSelectionName"
      ]
    }
  }
}