{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-get-segment-subscription-response-schema.json",
  "title": "GetSegmentSubscriptionResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-subscriptions-api-openapi.yml#/components/schemas/GetSegmentSubscriptionResponse",
  "type": "object",
  "properties": {
    "Status": {
      "type": "string",
      "enum": [
        "STARTING",
        "RUNNING",
        "STOPPED",
        "FAILED"
      ],
      "description": "The current lifecycle status of the subscription. The following are valid values: STARTING: Initial snapshot is in progress. RUNNING: Notifications are active and running. STOPPED: Notifications have been stopped. FAILED: Notifications failed (for example, the Amazon Kinesis data stream became inaccessible)."
    },
    "Message": {
      "type": "string",
      "description": "A status message providing additional context, such as a failure reason."
    },
    "ScheduleConfiguration": {
      "$ref": "#/$defs/ScheduleConfiguration"
    },
    "ScheduledExecutions": {
      "$ref": "#/$defs/ScheduledExecutions"
    },
    "StartedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the subscription was first started."
    },
    "LastUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of the most recent configuration change."
    }
  },
  "$defs": {
    "ScheduleConfiguration": {
      "type": "object",
      "properties": {
        "Interval": {
          "type": "integer",
          "description": "The interval between scheduled executions."
        },
        "Unit": {
          "type": "string",
          "enum": [
            "HOURLY"
          ],
          "description": "The unit for the interval. The following are valid values: HOURLY: The interval is measured in hours."
        }
      },
      "required": [
        "Interval"
      ]
    },
    "ScheduledExecutions": {
      "type": "object",
      "properties": {
        "NextExecutedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of the next scheduled execution."
        },
        "LastExecutedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of the last successful scheduled execution."
        }
      }
    }
  }
}