link to reference doc page
https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-events.Rule.html#schedule
Describe your issue?
The CDK documentation states that when creating a new instance of the Rule class and utilizing the Schedule constructor property. If the user is choosing to leverage the static method rate it accepts ANY valid Duration value. However this method will throw and it is expected to throw if that value is not a whole number of minutes. Currently it is expected of the user to click on and read this documentation. The aforementioned documentation link that is provided does not immediately discuss this limitation it is better defined here to understand that this is not a possibility. I think this would provide some clarity to new users interfacing with Rules for the first time.
link to reference doc page
https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-events.Rule.html#schedule
Describe your issue?
The CDK documentation states that when creating a new instance of the Rule class and utilizing the Schedule constructor property. If the user is choosing to leverage the static method rate it accepts ANY valid Duration value. However this method will throw and it is expected to throw if that value is not a whole number of minutes. Currently it is expected of the user to click on and read this documentation. The aforementioned documentation link that is provided does not immediately discuss this limitation it is better defined here to understand that this is not a possibility. I think this would provide some clarity to new users interfacing with Rules for the first time.