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
9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 | |