EventBridge Scheduler Create Then Update Schedule
A 3-step recipe with Amazon EventBridge Scheduler. We can help you get access.
Recipe · 3 steps
EventBridge Scheduler Create Then Update Schedule
Create a schedule, update its expression and state, then get it.
- Create the initial schedule in the default group with the supplied expression and target.
- Apply a full-replacement update to the schedule, changing its expression and state. All required fields are re-supplied because UpdateSchedule overrides the existing schedule with the request values.
- Read the schedule back to confirm the updated expression and state are in effect.
What you'll need to have ready
- scheduleName: The name of the schedule to create and then update.
- scheduleExpression: The initial expression that defines when the schedule runs.
- updatedScheduleExpression: The new expression to apply during the update.
- updatedState: The state to set on the schedule during the update (ENABLED or DISABLED).
- targetArn: The Amazon Resource Name (ARN) of the schedule target.
- roleArn: The ARN of the IAM role EventBridge Scheduler uses to invoke the target.
For your developer
Arazzo workflow amazon-eventbridge-scheduler:create-then-update-schedule, 3 operations: CreateSchedule → UpdateSchedule → GetSchedule. Specs on APIs.io.