You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(applicationautoscaling): validate evaluationPeriods and datapointsToAlarm for step scaling policy (#28880)
This PR adds validations for `evaluationPeriods` and `datapointsToAlarm` for step scaling policy. It is based on [the PR for datapointsToAlarm in autoscaling step scaling policy](#28792).
Check the following cases:
- `evaluationPeriods` < 1
- `datapointsToAlarm` is set, and
- `evaluationPeriods` is not set
- `datapointsToAlarm` < 1
- `evaluationPeriods` < `datapointsToAlarm`
These validations also consider whether those parameters are tokens or not.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
thrownewError(`datapointsToAlarm must be less than or equal to evaluationPeriods, got datapointsToAlarm: ${props.datapointsToAlarm}, evaluationPeriods: ${props.evaluationPeriods}`);
0 commit comments