{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-backup/json-schema/aws-backup-create-legal-hold-output-schema.json",
  "title": "CreateLegalHoldOutput",
  "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/CreateLegalHoldOutput",
  "type": "object",
  "properties": {
    "Title": {
      "type": "string",
      "description": "The title of the legal hold."
    },
    "Status": {
      "type": "string",
      "enum": [
        "CREATING",
        "ACTIVE",
        "CANCELING",
        "CANCELED"
      ],
      "description": "The status of the legal hold."
    },
    "Description": {
      "type": "string",
      "description": "The description of the legal hold."
    },
    "LegalHoldId": {
      "type": "string",
      "description": "The ID of the legal hold."
    },
    "LegalHoldArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the legal hold."
    },
    "CreationDate": {
      "type": "string",
      "format": "date-time",
      "description": "The time when the legal hold was created."
    },
    "RecoveryPointSelection": {
      "$ref": "#/$defs/RecoveryPointSelection"
    }
  },
  "$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"
        }
      }
    }
  }
}