{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudtrail/json-schema/amazon-cloudtrail-update-dashboard-response-schema.json",
  "title": "UpdateDashboardResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudtrail-dashboard-api-openapi.yml#/components/schemas/UpdateDashboardResponse",
  "type": "object",
  "properties": {
    "DashboardArn": {
      "type": "string",
      "description": "The ARN for the dashboard."
    },
    "Name": {
      "type": "string",
      "description": "The name for the dashboard."
    },
    "Type": {
      "type": "string",
      "enum": [
        "MANAGED",
        "CUSTOM"
      ],
      "description": "The type of dashboard."
    },
    "Widgets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Widget"
      },
      "description": "An array of widgets for the dashboard."
    },
    "RefreshSchedule": {
      "$ref": "#/$defs/RefreshSchedule"
    },
    "TerminationProtectionEnabled": {
      "type": "boolean",
      "description": "Indicates whether termination protection is enabled for the dashboard."
    },
    "CreatedTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp that shows when the dashboard was created."
    },
    "UpdatedTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp that shows when the dashboard was updated."
    }
  },
  "$defs": {
    "RefreshSchedule": {
      "type": "object",
      "properties": {
        "Frequency": {
          "$ref": "#/$defs/RefreshScheduleFrequency"
        },
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Specifies whether the refresh schedule is enabled. Set the value to ENABLED to enable the refresh schedule, or to DISABLED to turn off the refresh schedule."
        },
        "TimeOfDay": {
          "type": "string",
          "description": "The time of day in UTC to run the schedule; for hourly only refer to minutes; default is 00:00."
        }
      }
    },
    "RefreshScheduleFrequency": {
      "type": "object",
      "properties": {
        "Unit": {
          "type": "string",
          "enum": [
            "HOURS",
            "DAYS"
          ],
          "description": "The unit to use for the refresh. For custom dashboards, the unit can be HOURS or DAYS. For the Highlights dashboard, the Unit must be HOURS."
        },
        "Value": {
          "type": "integer",
          "description": "The value for the refresh schedule. For custom dashboards, the following values are valid when the unit is HOURS: 1, 6, 12, 24 For custom dashboards, the only valid value when the unit is DAYS is 1. For the Highlights dashboard, the Value must be 6."
        }
      }
    },
    "Widget": {
      "type": "object",
      "properties": {
        "QueryAlias": {
          "type": "string",
          "description": "The query alias used to identify the query for the widget."
        },
        "QueryStatement": {
          "type": "string",
          "description": "The SQL query statement for the widget."
        },
        "QueryParameters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The query parameters for the widget."
        },
        "ViewProperties": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The view properties for the widget. For more information about view properties, see View properties for widgets in the CloudTrail User Guide.."
        }
      }
    }
  }
}