modify_scheduled_action
¶
modify_scheduled_action(
*,
config_overrides: Optional[RedshiftClientConfig] = None,
scheduled_action_name: Optional[String] = None,
target_action: Optional[ScheduledActionType] = None,
schedule: Optional[String] = None,
iam_role: Optional[String] = None,
scheduled_action_description: Optional[String] = None,
start_time: Optional[TStamp] = None,
end_time: Optional[TStamp] = None,
enable: Optional[BooleanOptional] = None,
) -> ScheduledAction
Modifies a scheduled action.
Parameters:
-
scheduled_action_name(Optional[String], default:None) –The name of the scheduled action to modify.
-
target_action(Optional[ScheduledActionType], default:None) –A modified JSON format of the scheduled action. For more information about this parameter, see ScheduledAction.
-
schedule(Optional[String], default:None) –A modified schedule in either
at( )orcron( )format. For more information about this parameter, see ScheduledAction. -
iam_role(Optional[String], default:None) –A different IAM role to assume to run the target action. For more information about this parameter, see ScheduledAction.
-
scheduled_action_description(Optional[String], default:None) –A modified description of the scheduled action.
-
start_time(Optional[TStamp], default:None) –A modified start time of the scheduled action. For more information about this parameter, see ScheduledAction.
-
end_time(Optional[TStamp], default:None) –A modified end time of the scheduled action. For more information about this parameter, see ScheduledAction.
-
enable(Optional[BooleanOptional], default:None) –A modified enable flag of the scheduled action. If true, the scheduled action is active. If false, the scheduled action is disabled.
Raises:
-
ClusterNotFoundFault–The
ClusterIdentifierparameter does not refer to an existing cluster. -
InvalidScheduledActionFault–The scheduled action is not valid.
-
InvalidScheduleFault–The schedule you submitted isn't valid.
-
ScheduledActionNotFoundFault–The scheduled action cannot be found.
-
ScheduledActionTypeUnsupportedFault–The action type specified for a scheduled action is not supported.
-
UnauthorizedOperation–Your account is not authorized to perform the requested operation.
-
UnsupportedOperationFault–The requested operation isn't supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/redshift.py
9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 | |