{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-backup/json-schema/aws-backup-create-restore-testing-plan-input-schema.json",
  "title": "CreateRestoreTestingPlanInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-backup-restore-testing-api-openapi.yml#/components/schemas/CreateRestoreTestingPlanInput",
  "type": "object",
  "properties": {
    "CreatorRequestId": {
      "type": "string",
      "description": "This is a unique string that identifies the request and allows failed requests to be retriedwithout the risk of running the operation twice. This parameter is optional. If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters."
    },
    "RestoreTestingPlan": {
      "$ref": "#/$defs/RestoreTestingPlanForCreate"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags to assign to the restore testing plan."
    }
  },
  "required": [
    "RestoreTestingPlan"
  ],
  "$defs": {
    "RestoreTestingPlanForCreate": {
      "type": "object",
      "properties": {
        "RecoveryPointSelection": {
          "$ref": "#/$defs/RestoreTestingRecoveryPointSelection"
        },
        "RestoreTestingPlanName": {
          "type": "string",
          "description": "The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores."
        },
        "ScheduleExpression": {
          "type": "string",
          "description": "A CRON expression in specified timezone when a restore testing plan is executed. When no CRON expression is provided, Backup will use the default expression cron(0 5 ? * * *)."
        },
        "ScheduleExpressionTimezone": {
          "type": "string",
          "description": "Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone."
        },
        "StartWindowHours": {
          "type": "integer",
          "description": "Defaults to 24 hours. A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours (one week)."
        }
      },
      "required": [
        "RecoveryPointSelection",
        "RestoreTestingPlanName",
        "ScheduleExpression"
      ]
    },
    "RestoreTestingRecoveryPointSelection": {
      "type": "object",
      "properties": {
        "Algorithm": {
          "type": "string",
          "enum": [
            "LATEST_WITHIN_WINDOW",
            "RANDOM_WITHIN_WINDOW"
          ],
          "description": "Acceptable values include \"LATEST_WITHIN_WINDOW\" or \"RANDOM_WITHIN_WINDOW\""
        },
        "ExcludeVaults": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Accepted values include specific ARNs or list of selectors. Defaults to empty list if not listed."
        },
        "IncludeVaults": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Accepted values include wildcard [\"*\"] or by specific ARNs or ARN wilcard replacement [\"arn:aws:backup:us-west-2:123456789012:backup-vault:asdf\", ...] [\"arn:aws:backup:*:*:backup-vault:asdf-*\", ...]"
        },
        "RecoveryPointTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "CONTINUOUS",
              "SNAPSHOT"
            ]
          },
          "description": "These are the types of recovery points. Include SNAPSHOT to restore only snapshot recovery points; include CONTINUOUS to restore continuous recovery points (point in time restore / PITR); use both to restore either a snapshot or a continuous recovery point. The recovery point will be determined by the value for Algorithm."
        },
        "SelectionWindowDays": {
          "type": "integer",
          "description": "Accepted values are integers from 1 to 365. If not included, the value defaults to 30. The selection window is calculated from the actual job execution time, not the plan's scheduled start time."
        }
      }
    }
  }
}