{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-modify-scheduled-action-message-schema.json",
  "title": "ModifyScheduledActionMessage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-scheduled-action-api-openapi.yml#/components/schemas/ModifyScheduledActionMessage",
  "type": "object",
  "properties": {
    "ScheduledActionName": {
      "type": "string",
      "description": "The name of the scheduled action to modify."
    },
    "TargetAction": {
      "$ref": "#/$defs/ScheduledActionType"
    },
    "Schedule": {
      "type": "string",
      "description": "A modified schedule in either at( ) or cron( ) format. For more information about this parameter, see ScheduledAction."
    },
    "IamRole": {
      "type": "string",
      "description": "A different IAM role to assume to run the target action. For more information about this parameter, see ScheduledAction."
    },
    "ScheduledActionDescription": {
      "type": "string",
      "description": "A modified description of the scheduled action."
    },
    "StartTime": {
      "type": "string",
      "format": "date-time",
      "description": "A modified start time of the scheduled action. For more information about this parameter, see ScheduledAction."
    },
    "EndTime": {
      "type": "string",
      "format": "date-time",
      "description": "A modified end time of the scheduled action. For more information about this parameter, see ScheduledAction."
    },
    "Enable": {
      "type": "boolean",
      "description": "A modified enable flag of the scheduled action. If true, the scheduled action is active. If false, the scheduled action is disabled."
    }
  },
  "required": [
    "ScheduledActionName"
  ],
  "$defs": {
    "PauseClusterMessage": {
      "type": "object",
      "properties": {
        "ClusterIdentifier": {
          "type": "string",
          "description": "The identifier of the cluster to be paused."
        }
      },
      "required": [
        "ClusterIdentifier"
      ]
    },
    "ResizeClusterMessage": {
      "type": "object",
      "properties": {
        "ClusterIdentifier": {
          "type": "string",
          "description": "The unique identifier for the cluster to resize."
        },
        "ClusterType": {
          "type": "string",
          "description": "The new cluster type for the specified cluster."
        },
        "NodeType": {
          "type": "string",
          "description": "The new node type for the nodes you are adding. If not specified, the cluster's current node type is used."
        },
        "NumberOfNodes": {
          "type": "integer",
          "description": "The new number of nodes for the cluster. If not specified, the cluster's current number of nodes is used."
        },
        "Classic": {
          "type": "boolean",
          "description": "A boolean value indicating whether the resize operation is using the classic resize process. If you don't provide this parameter or set the value to false, the resize type is elastic."
        },
        "ReservedNodeId": {
          "type": "string",
          "description": "The identifier of the reserved node."
        },
        "TargetReservedNodeOfferingId": {
          "type": "string",
          "description": "The identifier of the target reserved node offering."
        }
      },
      "required": [
        "ClusterIdentifier"
      ]
    },
    "ResumeClusterMessage": {
      "type": "object",
      "properties": {
        "ClusterIdentifier": {
          "type": "string",
          "description": "The identifier of the cluster to be resumed."
        }
      },
      "required": [
        "ClusterIdentifier"
      ]
    },
    "ScheduledActionType": {
      "type": "object",
      "properties": {
        "ResizeCluster": {
          "$ref": "#/$defs/ResizeClusterMessage"
        },
        "PauseCluster": {
          "$ref": "#/$defs/PauseClusterMessage"
        },
        "ResumeCluster": {
          "$ref": "#/$defs/ResumeClusterMessage"
        }
      }
    }
  }
}