modify_scheduled_action
async
¶
modify_scheduled_action(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = 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/async_redshift.py
9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 | |