Skip to content

Commit

Permalink
generate s3 control and s3 client constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
skotambkar committed Dec 21, 2020
1 parent cd0632f commit 4ee3cd5
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ private void writeAwsConfigConstructor(Model model, ServiceShape service, GoWrit
if (!awsResolverFunction.isPresent()) {
continue;
}
if (field.getServicePredicate().isPresent()) {
if (!field.getServicePredicate().get().test(model, service)) {
continue;
}
}
writer.write("$L(cfg, &opts)", awsResolverFunction.get());
}

Expand Down
17 changes: 17 additions & 0 deletions service/s3/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions service/s3control/api_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4ee3cd5

Please sign in to comment.