update_scheduled_action
async
¶
update_scheduled_action(
domain_name: DomainName,
action_id: String,
action_type: ActionType,
schedule_at: ScheduleAt,
*,
config_overrides: Optional[AsyncOpenSearchClientConfig] = 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/async_open_search.py
6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 | |