Skip to content

/AWS1/CL_RSH=>CREATESCHEDULEDACTION()

About CreateScheduledAction

Creates a scheduled action. A scheduled action contains a schedule and an Amazon Redshift API action. For example, you can create a schedule of when to run the ResizeCluster API operation.

Method Signature

IMPORTING

Required arguments:

IV_SCHEDULEDACTIONNAME TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING

The name of the scheduled action. The name must be unique within an account. For more information about this parameter, see ScheduledAction.

IO_TARGETACTION TYPE REF TO /AWS1/CL_RSHSCHDDACTIONTYPE /AWS1/CL_RSHSCHDDACTIONTYPE

A JSON format string of the Amazon Redshift API operation with input parameters. For more information about this parameter, see ScheduledAction.

IV_SCHEDULE TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING

The schedule in at( ) or cron( ) format. For more information about this parameter, see ScheduledAction.

IV_IAMROLE TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING

The IAM role to assume to run the target action. For more information about this parameter, see ScheduledAction.

Optional arguments:

IV_SCHEDULEDACTIONDESC TYPE /AWS1/RSHSTRING /AWS1/RSHSTRING

The description of the scheduled action.

IV_STARTTIME TYPE /AWS1/RSHTSTAMP /AWS1/RSHTSTAMP

The start time in UTC of the scheduled action. Before this time, the scheduled action does not trigger. For more information about this parameter, see ScheduledAction.

IV_ENDTIME TYPE /AWS1/RSHTSTAMP /AWS1/RSHTSTAMP

The end time in UTC of the scheduled action. After this time, the scheduled action does not trigger. For more information about this parameter, see ScheduledAction.

IV_ENABLE TYPE /AWS1/RSHBOOLEANOPTIONAL /AWS1/RSHBOOLEANOPTIONAL

If true, the schedule is enabled. If false, the scheduled action does not trigger. For more information about state of the scheduled action, see ScheduledAction.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_RSHSCHEDULEDACTION /AWS1/CL_RSHSCHEDULEDACTION