{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/ScheduledActionName"
 ],
 "definitions": {
  "PauseClusterMessage": {
   "additionalProperties": false,
   "properties": {
    "ClusterIdentifier": {
     "type": "string"
    }
   },
   "required": [
    "ClusterIdentifier"
   ],
   "type": "object"
  },
  "ResizeClusterMessage": {
   "additionalProperties": false,
   "properties": {
    "Classic": {
     "type": "boolean"
    },
    "ClusterIdentifier": {
     "type": "string"
    },
    "ClusterType": {
     "type": "string"
    },
    "NodeType": {
     "type": "string"
    },
    "NumberOfNodes": {
     "type": "integer"
    }
   },
   "required": [
    "ClusterIdentifier"
   ],
   "type": "object"
  },
  "ResumeClusterMessage": {
   "additionalProperties": false,
   "properties": {
    "ClusterIdentifier": {
     "type": "string"
    }
   },
   "required": [
    "ClusterIdentifier"
   ],
   "type": "object"
  },
  "ScheduledActionType": {
   "oneOf": [
    {
     "additionalProperties": false,
     "properties": {
      "ResizeCluster": {
       "$ref": "#/definitions/ResizeClusterMessage"
      }
     }
    },
    {
     "additionalProperties": false,
     "properties": {
      "PauseCluster": {
       "$ref": "#/definitions/PauseClusterMessage"
      }
     }
    },
    {
     "additionalProperties": false,
     "properties": {
      "ResumeCluster": {
       "$ref": "#/definitions/ResumeClusterMessage"
      }
     }
    }
   ],
   "type": "object"
  },
  "timestamp": {
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/ScheduledActionName"
 ],
 "properties": {
  "Enable": {
   "type": "boolean"
  },
  "EndTime": {
   "$ref": "#/definitions/timestamp"
  },
  "IamRole": {
   "maxLength": 2147483647,
   "minLength": 0,
   "type": "string"
  },
  "NextInvocations": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/timestamp"
   },
   "type": "array"
  },
  "Schedule": {
   "maxLength": 2147483647,
   "minLength": 0,
   "type": "string"
  },
  "ScheduledActionDescription": {
   "maxLength": 2147483647,
   "minLength": 0,
   "type": "string"
  },
  "ScheduledActionName": {
   "maxLength": 2147483647,
   "minLength": 0,
   "type": "string"
  },
  "StartTime": {
   "$ref": "#/definitions/timestamp"
  },
  "State": {
   "enum": [
    "ACTIVE",
    "DISABLED"
   ],
   "type": "string"
  },
  "TargetAction": {
   "$ref": "#/definitions/ScheduledActionType"
  }
 },
 "readOnlyProperties": [
  "/properties/State",
  "/properties/NextInvocations"
 ],
 "required": [
  "ScheduledActionName"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-redshift",
 "tagging": {
  "taggable": false
 },
 "typeName": "AWS::Redshift::ScheduledAction"
}
