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

feat: rollout generated waiters for ec2 #2717

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Conversation

lucix-aws
Copy link
Contributor

Enables new, generated waiters for the EC2 service. We intend to let this bake for a few weeks before following up with more/all other services.

@lucix-aws lucix-aws requested a review from a team as a code owner July 17, 2024 19:40
import static software.amazon.smithy.go.codegen.SymbolUtils.buildPackageSymbol;

public class AwsWaiters2 extends Waiters2 {
public static final List<ShapeId> PHASED_ROLLOUT_SERVICES = List.of(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] likely irrelevant due to small n, but this is definitely a use case for a Set

pathValue, err := jmespath.Search("BundleTasks[].State", output)
if err != nil {
return false, fmt.Errorf("error evaluating waiter state: %w", err)
v1 := output.BundleTasks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[no-op] I like that there are no type assertions with this new generator

@lucix-aws lucix-aws merged commit 30a39ba into main Jul 23, 2024
12 checks passed
@lucix-aws lucix-aws deleted the feat-waiters2rollout branch July 23, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants