{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-kms/json-schema/amazon-kms-list-key-rotations-response-schema.json",
  "title": "ListKeyRotationsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-kms-key-rotation-api-openapi.yml#/components/schemas/ListKeyRotationsResponse",
  "type": "object",
  "properties": {
    "Rotations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RotationsListEntry"
      },
      "description": "A list of completed key material rotations. When the optional input parameter IncludeKeyMaterial is specified with a value of ALL_KEY_MATERIAL, this list includes the first key material and any imported key material pending rotation."
    },
    "NextMarker": {
      "type": "string",
      "description": "When Truncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent request."
    },
    "Truncated": {
      "type": "boolean",
      "description": "A flag that indicates whether there are more items in the list. When this value is true, the list in this response is truncated. To get more items, pass the value of the NextMarker element in this response to the Marker parameter in a subsequent request."
    }
  },
  "$defs": {
    "RotationsListEntry": {
      "type": "object",
      "properties": {
        "KeyId": {
          "type": "string",
          "description": "Unique identifier of the key."
        },
        "KeyMaterialId": {
          "type": "string",
          "description": "Unique identifier of the key material."
        },
        "KeyMaterialDescription": {
          "type": "string",
          "description": "User-specified description of the key material. This field is only present for symmetric encryption KMS keys with EXTERNAL origin."
        },
        "ImportState": {
          "type": "string",
          "enum": [
            "IMPORTED",
            "PENDING_IMPORT"
          ],
          "description": "Indicates if the key material is currently imported into KMS. It has two possible values: IMPORTED or PENDING_IMPORT. This field is only present for symmetric encryption KMS keys with EXTERNAL origin."
        },
        "KeyMaterialState": {
          "type": "string",
          "enum": [
            "NON_CURRENT",
            "CURRENT",
            "PENDING_ROTATION",
            "PENDING_MULTI_REGION_IMPORT_AND_ROTATION"
          ],
          "description": "There are four possible values for this field: CURRENT, NON_CURRENT, PENDING_MULTI_REGION_IMPORT_AND_ROTATION and PENDING_ROTATION. KMS uses CURRENT key material for both encryption and decryption and NON_CURRENT key material only for decryption. PENDING_ROTATION identifies key material that has been imported for on-demand key rotation but the rotation hasn't completed. The key material state PENDING_MULTI_REGION_IMPORT_AND_ROTATION is unique to multi-region, symmetric encryption keys with imported key material. It indicates key material that has been imported into the primary Region key but n"
        },
        "ExpirationModel": {
          "type": "string",
          "enum": [
            "KEY_MATERIAL_EXPIRES",
            "KEY_MATERIAL_DOES_NOT_EXPIRE"
          ],
          "description": "Indicates if the key material is configured to automatically expire. There are two possible values for this field: KEY_MATERIAL_EXPIRES and KEY_MATERIAL_DOES_NOT_EXPIRE. For any key material that expires, the expiration date and time is indicated in ValidTo. This field is only present for symmetric encryption KMS keys with EXTERNAL origin."
        },
        "ValidTo": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time at which the key material expires. This field is only present for symmetric encryption KMS keys with EXTERNAL origin in rotation list entries with an ExpirationModel value of KEY_MATERIAL_EXPIRES."
        },
        "RotationDate": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time that the key material rotation completed. Formatted as Unix time. This field is not present for the first key material or an imported key material in PENDING_ROTATION state."
        },
        "RotationType": {
          "type": "string",
          "enum": [
            "AUTOMATIC",
            "ON_DEMAND"
          ],
          "description": "Identifies whether the key material rotation was a scheduled automatic rotation or an on-demand rotation. This field is not present for the first key material or an imported key material in PENDING_ROTATION state."
        }
      }
    }
  }
}