{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ses/json-schema/amazon-ses-get-archive-response-schema.json",
  "title": "GetArchiveResponse",
  "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/GetArchiveResponse",
  "type": "object",
  "properties": {
    "ArchiveId": {
      "type": "string",
      "description": "The unique identifier of the archive."
    },
    "ArchiveName": {
      "type": "string",
      "description": "The unique name assigned to the archive."
    },
    "ArchiveArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the archive."
    },
    "ArchiveState": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "PENDING_DELETION"
      ],
      "description": "The current state of the archive: ACTIVE – The archive is ready and available for use. PENDING_DELETION – The archive has been marked for deletion and will be permanently deleted in 30 days. No further modifications can be made in this state."
    },
    "Retention": {
      "$ref": "#/$defs/ArchiveRetention"
    },
    "CreatedTimestamp": {
      "type": "string",
      "description": "The timestamp of when the archive was created."
    },
    "LastUpdatedTimestamp": {
      "type": "string",
      "description": "The timestamp of when the archive was modified."
    },
    "KmsKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the KMS key used to encrypt the archive."
    }
  },
  "required": [
    "ArchiveId",
    "ArchiveName",
    "ArchiveArn",
    "ArchiveState",
    "Retention"
  ],
  "$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."
    }
  }
}