{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-backup/json-schema/aws-backup-create-legal-hold-input-schema.json",
  "title": "CreateLegalHoldInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-backup-legal-holds-api-openapi.yml#/components/schemas/CreateLegalHoldInput",
  "type": "object",
  "properties": {
    "Title": {
      "type": "string",
      "description": "The title of the legal hold."
    },
    "Description": {
      "type": "string",
      "description": "The description of the legal hold."
    },
    "IdempotencyToken": {
      "type": "string",
      "description": "This is a user-chosen string used to distinguish between otherwise identical calls. Retrying a successful request with the same idempotency token results in a success message with no action taken."
    },
    "RecoveryPointSelection": {
      "$ref": "#/$defs/RecoveryPointSelection"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Optional tags to include. A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /."
    }
  },
  "required": [
    "Title",
    "Description"
  ],
  "$defs": {
    "DateRange": {
      "type": "object",
      "properties": {
        "FromDate": {
          "type": "string",
          "format": "date-time",
          "description": "This value is the beginning date, inclusive. The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional)."
        },
        "ToDate": {
          "type": "string",
          "format": "date-time",
          "description": "This value is the end date, inclusive. The date and time are in Unix format and Coordinated Universal Time (UTC), and it is accurate to milliseconds (milliseconds are optional)."
        }
      },
      "required": [
        "FromDate",
        "ToDate"
      ]
    },
    "RecoveryPointSelection": {
      "type": "object",
      "properties": {
        "VaultNames": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "These are the names of the vaults in which the selected recovery points are contained."
        },
        "ResourceIdentifiers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "These are the resources included in the resource selection (including type of resources and vaults)."
        },
        "DateRange": {
          "$ref": "#/$defs/DateRange"
        }
      }
    }
  }
}