Skip to content

(@aws-cdk/events): Lambda Scheduled events cannot be run in fractions of a minute #17814

@mwithington

Description

@mwithington

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-eventsRelated to CloudWatch EventsdocumentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions