{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-redshift-scheduledaction.json",
  "title": "AWSRedshiftScheduledActionProperties",
  "description": "The `AWS::Redshift::ScheduledAction` resource creates an Amazon Redshift Scheduled Action.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-redshift>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-redshift-scheduledaction.json",
    "sourceSha256": "c45339c6b5b6094388f8cb152e3e069572c7a8b9812a4e6d664ff82378642681"
  },
  "type": "object",
  "properties": {
    "ScheduledActionName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^(?=^[a-z][a-z0-9]*(-[a-z0-9]+)*$).{1,60}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the scheduled action. The name must be unique within an account."
    },
    "TargetAction": {
      "description": "A JSON format string of the Amazon Redshift API operation with input parameters.",
      "$ref": "#/$defs/ScheduledActionType"
    },
    "Schedule": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The schedule in `at( )` or `cron( )` format."
    },
    "IamRole": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The IAM role to assume to run the target action."
    },
    "ScheduledActionDescription": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^(?=^[\\x09\\x0a\\x0d\\x20-\\xff]*$).{1,255}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The description of the scheduled action."
    },
    "StartTime": {
      "description": "The start time in UTC of the scheduled action. Before this time, the scheduled action does not trigger.",
      "$ref": "#/$defs/timestamp"
    },
    "EndTime": {
      "description": "The end time in UTC of the scheduled action. After this time, the scheduled action does not trigger.",
      "$ref": "#/$defs/timestamp"
    },
    "Enable": {
      "description": "If true, the schedule is enabled. If false, the scheduled action does not trigger.",
      "type": "boolean"
    }
  },
  "typeName": "AWS::Redshift::ScheduledAction",
  "readOnlyProperties": [
    "/properties/State",
    "/properties/NextInvocations"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-redshift",
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/ScheduledActionName"
  ],
  "tagging": {
    "taggable": false
  },
  "$defs": {
    "ResizeClusterMessage": {
      "description": "Describes a resize cluster operation. For example, a scheduled action to run the `ResizeCluster` API operation.",
      "type": "object",
      "properties": {
        "ClusterIdentifier": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ClusterType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "NodeType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "NumberOfNodes": {
          "type": "integer"
        },
        "Classic": {
          "type": "boolean"
        }
      },
      "required": [
        "ClusterIdentifier"
      ],
      "title": "AWSRedshiftScheduledActionResizeClusterMessageDefinition",
      "additionalProperties": false
    },
    "PauseClusterMessage": {
      "description": "Describes a pause cluster operation. For example, a scheduled action to run the `PauseCluster` API operation.",
      "type": "object",
      "properties": {
        "ClusterIdentifier": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "ClusterIdentifier"
      ],
      "title": "AWSRedshiftScheduledActionPauseClusterMessageDefinition",
      "additionalProperties": false
    },
    "ResumeClusterMessage": {
      "description": "Describes a resume cluster operation. For example, a scheduled action to run the `ResumeCluster` API operation.",
      "type": "object",
      "properties": {
        "ClusterIdentifier": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "ClusterIdentifier"
      ],
      "title": "AWSRedshiftScheduledActionResumeClusterMessageDefinition",
      "additionalProperties": false
    },
    "ScheduledActionType": {
      "type": "object",
      "oneOf": [
        {
          "properties": {
            "ResizeCluster": {
              "$ref": "#/$defs/ResizeClusterMessage"
            }
          },
          "additionalProperties": false,
          "type": "object"
        },
        {
          "properties": {
            "PauseCluster": {
              "$ref": "#/$defs/PauseClusterMessage"
            }
          },
          "additionalProperties": false,
          "type": "object"
        },
        {
          "properties": {
            "ResumeCluster": {
              "$ref": "#/$defs/ResumeClusterMessage"
            }
          },
          "additionalProperties": false,
          "type": "object"
        }
      ],
      "title": "AWSRedshiftScheduledActionScheduledActionTypeDefinition"
    },
    "timestamp": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSRedshiftScheduledActiontimestampDefinition"
    }
  },
  "required": [
    "ScheduledActionName"
  ],
  "primaryIdentifier": [
    "/properties/ScheduledActionName"
  ]
}
