{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-compute-optimizer/json-schema/amazon-compute-optimizer-get-automation-event-response-schema.json",
  "title": "GetAutomationEventResponse",
  "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/GetAutomationEventResponse",
  "type": "object",
  "properties": {
    "eventId": {
      "type": "string",
      "description": "The ID of the automation event to retrieve."
    },
    "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"
    }
  },
  "$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"
      ]
    }
  }
}