Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code-generate Acceptors for waiters #448

Closed
Tracked by #176
jbelkins opened this issue Oct 10, 2022 · 0 comments
Closed
Tracked by #176

Code-generate Acceptors for waiters #448

jbelkins opened this issue Oct 10, 2022 · 0 comments
Assignees
Labels
feature-request A feature should be added or improved. smithy-waiters Add support for Smithy Waiters

Comments

@jbelkins
Copy link
Contributor

jbelkins commented Oct 10, 2022

Every Smithy waiter will include a list of Acceptors, which define the conditions that cause a change in waiter state.

Code-generate a Swift expression creating the Acceptors that are defined in a waiter, and make them available as a static variable that contains an array of Acceptors.

Requirements:

  • Code generate all possible forms of Acceptor, including JMESPath expressions
  • Create a static variable containing an array of Acceptors for each defined waiter
  • Include unit tests ensuring that code is generated correctly for various Smithy definitions

When complete, this work should merge to a Waiters project branch while awaiting the completion of the rest of the Waiters project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. smithy-waiters Add support for Smithy Waiters
Projects
None yet
Development

No branches or pull requests

1 participant