Skip to content

Commit 571dd61

Browse files
committed
chore(codegen): remove hostname key from endpoint hashes
1 parent 453dfb5 commit 571dd61

File tree

1 file changed

+0
-8
lines changed
  • codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen

1 file changed

+0
-8
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,7 @@ private void writePartitionHash() {
138138
}
139139
});
140140
writer.write("regionRegex: $S,", partition.regionRegex);
141-
142-
// TODO: Remove hostname after fully switching to variants.
143-
writer.write("hostname: $S,", partition.hostnameTemplate);
144141
writer.write("variants: $L,", ArrayNode.prettyPrintJson(partition.getVariants()));
145-
146142
partition.getPartitionEndpoint().ifPresent(
147143
endpoint -> writer.write("endpoint: $S,", endpoint));
148144
});
@@ -171,10 +167,6 @@ private void writeEndpointProviderFunction() {
171167

172168
private void writeEndpointSpecificResolver(String region, ObjectNode resolved) {
173169
writer.openBlock("$S: {", "},", region, () -> {
174-
// TODO: Remove hostname after fully switching to variants.
175-
String hostname = resolved.expectStringMember("hostname").getValue();
176-
writer.write("hostname: $S,", hostname);
177-
178170
ArrayNode variants = resolved.expectArrayMember("variants");
179171
writer.write("variants: $L,", ArrayNode.prettyPrintJson(variants));
180172

0 commit comments

Comments
 (0)