EventBridgeSchedulerClient.create_schedule
rboto-scheduler==0.4.0 · Service index · Types
Model summary (excerpt): Creates the specified schedule.
Install and imports
from rboto import EventBridgeSchedulerClient
from rboto_scheduler.types import (
ActionAfterCompletion,
CreateScheduleOutput,
FlexibleTimeWindow,
ScheduleState,
Target,
)
Signature
async def create_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,
) -> CreateScheduleOutput: ...
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 creating. |
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's target. |
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 to associate with this schedule. If you omit this, the default schedule group is used. |
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 Amazon Resource Name (ARN) for the customer managed KMS key that EventBridge Scheduler will 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
CreateScheduleOutput.
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, CreateScheduleOutput, FlexibleTimeWindow, ScheduleState, Target
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.