{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2/json-schema/amazon-ec2-enable-fast-snapshot-restores-result-schema.json",
  "title": "EnableFastSnapshotRestoresResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-fast-snapshot-restore-api-openapi.yml#/components/schemas/EnableFastSnapshotRestoresResult",
  "type": "object",
  "properties": {
    "Successful": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnableFastSnapshotRestoreSuccessItem"
      },
      "description": "Information about the snapshots for which fast snapshot restores were successfully enabled."
    },
    "Unsuccessful": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnableFastSnapshotRestoreErrorItem"
      },
      "description": "Information about the snapshots for which fast snapshot restores could not be enabled."
    }
  },
  "$defs": {
    "EnableFastSnapshotRestoreErrorItem": {
      "type": "object",
      "properties": {
        "SnapshotId": {
          "type": "string",
          "description": "The ID of the snapshot."
        },
        "FastSnapshotRestoreStateErrors": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnableFastSnapshotRestoreStateErrorItem"
          },
          "description": "The errors."
        }
      }
    },
    "EnableFastSnapshotRestoreStateError": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "The error code."
        },
        "Message": {
          "type": "string",
          "description": "The error message."
        }
      }
    },
    "EnableFastSnapshotRestoreStateErrorItem": {
      "type": "object",
      "properties": {
        "AvailabilityZone": {
          "type": "string",
          "description": "The Availability Zone."
        },
        "AvailabilityZoneId": {
          "type": "string",
          "description": "The ID of the Availability Zone."
        },
        "Error": {
          "$ref": "#/$defs/EnableFastSnapshotRestoreStateError"
        }
      }
    },
    "EnableFastSnapshotRestoreSuccessItem": {
      "type": "object",
      "properties": {
        "SnapshotId": {
          "type": "string",
          "description": "The ID of the snapshot."
        },
        "AvailabilityZone": {
          "type": "string",
          "description": "The Availability Zone."
        },
        "AvailabilityZoneId": {
          "type": "string",
          "description": "The ID of the Availability Zone."
        },
        "State": {
          "type": "string",
          "enum": [
            "enabling",
            "optimizing",
            "enabled",
            "disabling",
            "disabled"
          ],
          "description": "The state of fast snapshot restores."
        },
        "StateTransitionReason": {
          "type": "string",
          "description": "The reason for the state transition. The possible values are as follows: Client.UserInitiated - The state successfully transitioned to enabling or disabling. Client.UserInitiated - Lifecycle state transition - The state successfully transitioned to optimizing, enabled, or disabled."
        },
        "OwnerId": {
          "type": "string",
          "description": "The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot."
        },
        "OwnerAlias": {
          "type": "string",
          "description": "The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. This is intended for future use."
        },
        "EnablingTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which fast snapshot restores entered the enabling state."
        },
        "OptimizingTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which fast snapshot restores entered the optimizing state."
        },
        "EnabledTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which fast snapshot restores entered the enabled state."
        },
        "DisablingTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which fast snapshot restores entered the disabling state."
        },
        "DisabledTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time at which fast snapshot restores entered the disabled state."
        }
      }
    }
  }
}