EventBridgeSchedulerClient.get_schedule
rboto-scheduler==0.4.0 · Service index · Types
Model summary (excerpt): Retrieves the specified schedule.
Install and imports
from rboto import EventBridgeSchedulerClient
from rboto_scheduler.types import (
GetScheduleOutput,
)
Signature
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 to retrieve. |
group_name |
No | The name of the schedule group associated with this schedule. If you omit this, EventBridge Scheduler assumes that the schedule is associated with the default group. |
Output
GetScheduleOutput.
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 |
|---|---|---|---|
arn |
str | None |
Always present | — |
group_name |
str | None |
Always present | — |
name |
str | None |
Always present | — |
schedule_expression |
str | None |
Always present | — |
start_date |
str | None |
Always present | — |
end_date |
str | None |
Always present | — |
description |
str | None |
Always present | — |
schedule_expression_timezone |
str | None |
Always present | — |
state |
ScheduleStateOutput | None |
Always present | ScheduleStateOutput |
creation_date |
str | None |
Always present | — |
last_modification_date |
str | None |
Always present | — |
kms_key_arn |
str | None |
Always present | — |
target |
TargetOutput | None |
Always present | TargetOutput |
flexible_time_window |
FlexibleTimeWindowOutput | None |
Always present | FlexibleTimeWindowOutput |
action_after_completion |
ActionAfterCompletionOutput | None |
Always present | ActionAfterCompletionOutput |
| 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
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:
InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.
Example
Complete, type-checked service example. Replace its placeholders and configure credentials before running it.
import asyncio
from rboto import EventBridgeSchedulerClient
async def main() -> None:
client = EventBridgeSchedulerClient(region="us-east-1")
response = await client.get_schedule(name="nightly-report", group_name="default")
print(response.schedule_expression, response.state)
if __name__ == "__main__":
asyncio.run(main())