Skip to content

Commit

Permalink
add rollout switches for waiters (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws authored Jul 19, 2024
1 parent fb114ca commit 0d6c804
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,16 @@ public Set<Symbol> getAdditionalClientOptions() {
return emptySet();
}

public boolean enabledForService(Model model, ShapeId service) {
return true;
}

@Override
public void writeAdditionalFiles(GoCodegenContext ctx) {
if (!enabledForService(ctx.model(), ctx.settings().getService())) {
return;
}

var service = ctx.settings().getService(ctx.model());

TopDownIndex.of(ctx.model()).getContainedOperations(service).stream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,16 @@ public Set<Symbol> getAdditionalClientOptions() {
return emptySet();
}

public boolean enabledForService(Model model, ShapeId service) {
return true;
}

@Override
public void writeAdditionalFiles(GoCodegenContext ctx) {
if (!enabledForService(ctx.model(), ctx.settings().getService())) {
return;
}

var service = ctx.settings().getService(ctx.model());

TopDownIndex.of(ctx.model()).getContainedOperations(service).stream()
Expand Down

0 comments on commit 0d6c804

Please sign in to comment.