EventBridgeSchedulerClient.update_schedule
rboto-scheduler==0.4.0 · Service index · Types
Model summary (excerpt): Updates the specified schedule. When you call UpdateSchedule , EventBridge Scheduler uses all values, including empty values, specified in the request and overrides the existing schedule. This is by design. This means that if you do not set an optional field in your request, that field will be set to its system-default value after the update. Before calling this operation, we recommend that...
Install and imports
from rboto import EventBridgeSchedulerClient
from rboto_scheduler.types import (
ActionAfterCompletion,
FlexibleTimeWindow,
ScheduleState,
Target,
UpdateScheduleOutput,
)
Signature
async def update_schedule(
*,
name: str,
schedule_expression: str,
target: Target,
flexible_time_window: FlexibleTimeWindow,
group_name: str | None = None,
start_date: str | None = None,
end_date: str | None = None,
description: str | None = None,
schedule_expression_timezone: str | None = None,
state: ScheduleState | None = None,
kms_key_arn: str | None = None,
client_token: str | None = None,
action_after_completion: ActionAfterCompletion | None = None,
) -> UpdateScheduleOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
name |
Yes | The name of the schedule that you are updating. |
schedule_expression |
Yes | The expression that defines when the schedule runs. The following formats are supported. at expression - at(yyyy-mm-ddThh:mm:ss) rate expression - rate(value unit) cron expression - cron(fields) You can use at expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use rate and cron expressions to create recurring... |
target |
Yes | The schedule target. You can use this operation to change the target that your schedule invokes. |
flexible_time_window |
Yes | Allows you to configure a time window during which EventBridge Scheduler invokes the schedule. |
group_name |
No | The name of the schedule group with which the schedule is associated. You must provide this value in order for EventBridge Scheduler to find the schedule you want to update. If you omit this value, EventBridge Scheduler assumes the group is associated to the default group. |
start_date |
No | The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the StartDate you specify. EventBridge Scheduler ignores StartDate for one-time schedules. |
end_date |
No | The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the EndDate you specify. EventBridge Scheduler ignores EndDate for one-time schedules. |
description |
No | The description you specify for the schedule. |
schedule_expression_timezone |
No | The timezone in which the scheduling expression is evaluated. |
state |
No | Specifies whether the schedule is enabled or disabled. |
kms_key_arn |
No | The ARN for the customer managed KMS key that that you want EventBridge Scheduler to use to encrypt and decrypt your data. |
client_token |
No | Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you do not specify a client token, EventBridge Scheduler uses a randomly generated token for the request to ensure idempotency. |
action_after_completion |
No | Specifies the action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target. |
Output
UpdateScheduleOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
schedule_arn |
str |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
ActionAfterCompletion, FlexibleTimeWindow, ScheduleState, Target, UpdateScheduleOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_scheduler.exceptions:
ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.