Skip to content

Commit

Permalink
Update codegen to use migrated util-endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
srchase committed Oct 17, 2023
1 parent a1b205a commit 99dae1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public enum TypeScriptDependency implements Dependency {
UTIL_RETRY("dependencies", "@smithy/util-retry", false),
MIDDLEWARE_STACK("dependencies", "@smithy/middleware-stack", true),
MIDDLEWARE_ENDPOINTS_V2("dependencies", "@smithy/middleware-endpoint", false),
AWS_SDK_UTIL_ENDPOINTS("dependencies", "@aws-sdk/util-endpoints", false),
@Deprecated AWS_SDK_UTIL_ENDPOINTS("dependencies", "@aws-sdk/util-endpoints", false),
UTIL_ENDPOINTS("dependencies", "@smithy/util-endpoints", false),

AWS_CRYPTO_SHA256_BROWSER("dependencies", "@aws-crypto/sha256-browser", "3.0.0", true),
AWS_CRYPTO_SHA256_JS("dependencies", "@aws-crypto/sha256-js", "3.0.0", true),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ private void generateEndpointResolver() {
writer.addImport("EndpointV2", null, TypeScriptDependency.SMITHY_TYPES);
writer.addImport("Logger", null, TypeScriptDependency.SMITHY_TYPES);

writer.addDependency(TypeScriptDependency.AWS_SDK_UTIL_ENDPOINTS);
writer.addImport("EndpointParams", null, TypeScriptDependency.AWS_SDK_UTIL_ENDPOINTS);
writer.addImport("resolveEndpoint", null, TypeScriptDependency.AWS_SDK_UTIL_ENDPOINTS);
writer.addDependency(TypeScriptDependency.UTIL_ENDPOINTS);
writer.addImport("EndpointParams", null, TypeScriptDependency.UTIL_ENDPOINTS);
writer.addImport("resolveEndpoint", null, TypeScriptDependency.UTIL_ENDPOINTS);
writer.addRelativeImport("EndpointParameters", null,
Paths.get(".", CodegenUtils.SOURCE_FOLDER, ENDPOINT_FOLDER,
ENDPOINT_PARAMETERS_FILE.replace(".ts", "")));
Expand Down

0 comments on commit 99dae1d

Please sign in to comment.