Skip to content

Commit

Permalink
feat(experimentalIdentityAndAuth): add `getEndpointParameterInstructi…
Browse files Browse the repository at this point in the history
…ons()` to smithy context
  • Loading branch information
Steven Yuan committed Sep 23, 2023
1 parent c7640d3 commit b42b666
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ private void generateCommandMiddlewareResolver(String configType) {
writer.openBlock("[SMITHY_CONTEXT_KEY]: {", "},", () -> {
writer.write("service: $S,", service.toShapeId().getName());
writer.write("operation: $S,", operation.toShapeId().getName());
if (service.hasTrait(EndpointRuleSetTrait.class)) {
writer.openBlock("endpointRuleSet: {", "},", () -> {
writer.write("getEndpointParameterInstructions: $L.getEndpointParameterInstructions,",
symbol.getName());
});
}
});
});
writer.write("const { requestHandler } = configuration;");
Expand Down

0 comments on commit b42b666

Please sign in to comment.