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
9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 | |