update_scheduled_action
¶
update_scheduled_action(
domain_name: DomainName,
action_id: String,
action_type: ActionType,
schedule_at: ScheduleAt,
*,
config_overrides: Optional[OpenSearchClientConfig] = None,
desired_start_time: Optional[Long] = None,
) -> UpdateScheduledActionResponse
Reschedules a planned domain configuration change for a later time. This change can be a scheduled service software update or a blue/green Auto-Tune enhancement.
Parameters:
-
domain_name(DomainName) –The name of the domain to reschedule an action for.
-
action_id(String) –The unique identifier of the action to reschedule. To retrieve this ID, send a ListScheduledActions request.
-
action_type(ActionType) –The type of action to reschedule. Can be one of
SERVICE_SOFTWARE_UPDATE,JVM_HEAP_SIZE_TUNING, orJVM_YOUNG_GEN_TUNING. To retrieve this value, send a ListScheduledActions request. -
schedule_at(ScheduleAt) –When to schedule the action.
-
NOW- Immediately schedules the update to happen in the current hour if there's capacity available. -
TIMESTAMP- Lets you specify a custom date and time to apply the update. If you specify this value, you must also provide a value forDesiredStartTime. -
OFF_PEAK_WINDOW- Marks the action to be picked up during an upcoming off-peak window. There's no guarantee that the change will be implemented during the next immediate window. Depending on capacity, it might happen in subsequent days.
-
-
desired_start_time(Optional[Long], default:None) –The time to implement the change, in Coordinated Universal Time (UTC). Only specify this parameter if you set
ScheduleAttoTIMESTAMP.
Raises:
-
BaseException–An error occurred while processing the request.
-
ConflictException–An error occurred because the client attempts to remove a resource that is currently in use.
-
InternalException–Request processing failed because of an unknown error, exception, or internal failure.
-
LimitExceededException–An exception for trying to create more than the allowed number of resources or sub-resources.
-
ResourceNotFoundException–An exception for accessing or deleting a resource that doesn't exist.
-
SlotNotAvailableException–An exception for attempting to schedule a domain action during an unavailable time slot.
-
ValidationException–An exception for accessing or deleting a resource that doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_opensearch/_services/open_search.py
6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 | |