[{"data":1,"prerenderedAt":30},["ShallowReactive",2],{"snippet-eventbridge-onetime-scheduler-with-timezone":3},{"id":4,"title":5,"contributors":6,"description":8,"extension":9,"gitHub":10,"introBox":13,"languages":17,"meta":19,"resources":20,"services":21,"snippets":23,"stem":26,"tags":27,"type":28,"__hash__":29},"snippets\u002Fsnippets\u002Feventbridge-onetime-scheduler-with-timezone.json","Create One-time schedule with timezone support",[7],"content\u002Fcontributors\u002Frajil-paloth.json","CLI command that creates a one-time EventBridge schedule which has timezone support","json",{"template":11},{"repoURL":12},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-snippets\u002Ftree\u002Fmain\u002Feventbridge-onetime-scheduler-with-timezone",{"headline":14,"text":15},"How it works",[16],"CLI Command executes the EventBridge Scheduler API call which creates the one-time scheduler",[18],"AWS CLI",{},null,[22],"eventbridge",[24],{"title":5,"language":18,"code":25},"aws scheduler create-schedule \\\n  --name \"one-time-schedule\" \\\n  --schedule-expression \"at(&#60;TIME IN ISO 8601; EX - 2026-03-11T10:21:00&#62;)\" \\\n  --schedule-expression-timezone \"&#60;EXACT TIMEZONE VALUE; EX - Asia\u002FKolkata&#62;\" \\\n  --flexible-time-window '{\"Mode\": \"OFF\"}' \\\n  --target '{\n    \"Arn\": \"&#60;TARGET ARN; EX - LAMBDA FUNCTION ARN&#62;\",\n    \"RoleArn\": \"&#60;ARN FOR THE IAM ROLE WHICH HAS A TRUST RELATIONSHIP WITH scheduler.amazonaws.com AND HAS TARGET PERMISSIONS&#62;\"\n  }' \\\n  --action-after-completion \"NONE\"","snippets\u002Feventbridge-onetime-scheduler-with-timezone",[],"AWS EventBridge Scheduler","VEjdPrNMAUHijCSrzSg4rPpM8rrTaekzPw7fkkDVsZM",1792665262995]