Files
floci/docs
jwoa95 14f01c80e8 fix(eventbridge): validate scheduled rule rate expressions (#7996) (#8113)
* fix(eventbridge): validate scheduled rule rate expressions

Validate schedule expressions before PutRule creates or mutates a rule. Reject mismatched rate units with the AWS ValidationException while preserving existing rule state and timers. Keep stored-expression parsing tolerant.

Add service, SDK and scheduler regression coverage.

Closes #7996.

* refactor(eventbridge): share rate parsing and cover legacy stack updates

Use one matcher and parsed value/unit helper for strict API validation and tolerant stored-expression execution. Keep unit agreement checks at the API boundary.

Add a CloudFormation SDK regression proving that unrelated stack updates already skip unchanged legacy rules while direct PutRule calls remain strict. Correct the outdated test comment suggesting every resource is re-provisioned.

* refactor(eventbridge): share AWS rate validation with Scheduler

Move positive value, supported unit and singular/plural constraints into core.common.AwsRateExpressions. Both API validators call the shared checks while their execution parsers retain support for legacy stored expressions.

Parse Scheduler rates once per call and retain its checked interval conversion. Add cross-service tests for matching acceptance and rejection reasons.

Addresses review 5876298647 on #8113.
2026-11-12 11:26:00 -04:00
..
2026-03-15 17:43:56 -05:00