{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ses/json-schema/amazon-ses-update-archive-request-schema.json",
  "title": "UpdateArchiveRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ses-archive-api-openapi.yml#/components/schemas/UpdateArchiveRequest",
  "type": "object",
  "properties": {
    "ArchiveId": {
      "type": "string",
      "description": "The identifier of the archive to update."
    },
    "ArchiveName": {
      "type": "string",
      "description": "A new, unique name for the archive."
    },
    "Retention": {
      "$ref": "#/$defs/ArchiveRetention"
    }
  },
  "required": [
    "ArchiveId"
  ],
  "$defs": {
    "ArchiveRetention": {
      "type": "object",
      "properties": {
        "RetentionPeriod": {
          "type": "string",
          "enum": [
            "THREE_MONTHS",
            "SIX_MONTHS",
            "NINE_MONTHS",
            "ONE_YEAR",
            "EIGHTEEN_MONTHS",
            "TWO_YEARS",
            "THIRTY_MONTHS",
            "THREE_YEARS",
            "FOUR_YEARS",
            "FIVE_YEARS",
            "SIX_YEARS",
            "SEVEN_YEARS",
            "EIGHT_YEARS",
            "NINE_YEARS",
            "TEN_YEARS",
            "PERMANENT"
          ],
          "description": "The enum value sets the period for retaining emails in an archive."
        }
      },
      "description": "Exactly one member is set."
    }
  }
}