{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-compute-optimizer/json-schema/amazon-compute-optimizer-list-automation-events-response-schema.json",
  "title": "ListAutomationEventsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-compute-optimizer-automation-event-api-openapi.yml#/components/schemas/ListAutomationEventsResponse",
  "type": "object",
  "properties": {
    "automationEvents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AutomationEvent"
      },
      "description": "The list of automation events that match the specified criteria."
    },
    "nextToken": {
      "type": "string",
      "description": "The token to use to retrieve the next page of results."
    }
  },
  "$defs": {
    "AcoAutomationEstimatedMonthlySavings": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string",
          "description": "The currency of the estimated savings."
        },
        "beforeDiscountSavings": {
          "type": "number",
          "description": "The estimated monthly savings before applying any discounts."
        },
        "afterDiscountSavings": {
          "type": "number",
          "description": "The estimated monthly savings after applying any discounts."
        },
        "savingsEstimationMode": {
          "type": "string",
          "enum": [
            "BeforeDiscount",
            "AfterDiscount"
          ],
          "description": "The mode used to calculate savings, either BeforeDiscount or AfterDiscount."
        }
      },
      "required": [
        "currency",
        "beforeDiscountSavings",
        "afterDiscountSavings",
        "savingsEstimationMode"
      ]
    },
    "AutomationEvent": {
      "type": "object",
      "properties": {
        "eventId": {
          "type": "string",
          "description": "The unique identifier for the automation event."
        },
        "eventDescription": {
          "type": "string",
          "description": "A description of the automation event."
        },
        "eventType": {
          "type": "string",
          "enum": [
            "SnapshotAndDeleteUnattachedEbsVolume",
            "UpgradeEbsVolumeType"
          ],
          "description": "The type of automation event."
        },
        "eventStatus": {
          "type": "string",
          "enum": [
            "Ready",
            "InProgress",
            "Complete",
            "Failed",
            "Cancelled",
            "RollbackReady",
            "RollbackInProgress",
            "RollbackComplete",
            "RollbackFailed"
          ],
          "description": "The current status of the automation event."
        },
        "eventStatusReason": {
          "type": "string",
          "description": "The reason for the current event status."
        },
        "resourceArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the resource affected by the automation event."
        },
        "resourceId": {
          "type": "string",
          "description": "The ID of the resource affected by the automation event."
        },
        "recommendedActionId": {
          "type": "string",
          "description": "The ID of the recommended action associated with this automation event."
        },
        "accountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID associated with the automation event."
        },
        "region": {
          "type": "string",
          "description": "The Amazon Web Services Region where the automation event occurred."
        },
        "ruleId": {
          "type": "string",
          "description": "The ID of the automation rule that triggered this event."
        },
        "resourceType": {
          "type": "string",
          "enum": [
            "EbsVolume"
          ],
          "description": "The type of resource affected by the automation event."
        },
        "createdTimestamp": {
          "type": "string",
          "description": "The timestamp when the automation event was created."
        },
        "completedTimestamp": {
          "type": "string",
          "description": "The timestamp when the automation event completed."
        },
        "estimatedMonthlySavings": {
          "$ref": "#/$defs/AcoAutomationEstimatedMonthlySavings"
        }
      }
    }
  }
}