Skip to main content

scheduled_action

Gets an individual scheduled_action resource

Overview

Namescheduled_action
TypeResource
Descriptionscheduled_action
Idawscc.redshift.scheduled_action

Fields

NameDatatypeDescription
scheduled_action_namestringThe name of the scheduled action. The name must be unique within an account.
target_actionobjectA JSON format string of the Amazon Redshift API operation with input parameters.
schedulestringThe schedule in `at( )` or `cron( )` format.
iam_rolestringThe IAM role to assume to run the target action.
scheduled_action_descriptionstringThe description of the scheduled action.
start_timestringThe start time in UTC of the scheduled action. Before this time, the scheduled action does not trigger.
end_timestringThe end time in UTC of the scheduled action. After this time, the scheduled action does not trigger.
enablebooleanIf true, the schedule is enabled. If false, the scheduled action does not trigger.
statestringThe state of the scheduled action.
next_invocationsarrayList of times when the scheduled action will run.
regionstringAWS region.

Methods

Currently only SELECT is supported for this resource resource.

Example

SELECT
region,
scheduled_action_name,
target_action,
schedule,
iam_role,
scheduled_action_description,
start_time,
end_time,
enable,
state,
next_invocations
FROM awscc.redshift.scheduled_action
WHERE data__Identifier = '<ScheduledActionName>';

Permissions

To operate on the scheduled_action resource, the following permissions are required:

Read

redshift:DescribeScheduledActions,
redshift:DescribeTags

Update

redshift:DescribeScheduledActions,
redshift:ModifyScheduledAction,
redshift:PauseCluster,
redshift:ResumeCluster,
redshift:ResizeCluster,
redshift:DescribeTags,
iam:PassRole

Delete

redshift:DescribeTags,
redshift:DescribeScheduledActions,
redshift:DeleteScheduledAction