Skip to content

Commit 8f5fdb8

Browse files
committed
Add java doc for partiton display name mapping
1 parent 0acb769 commit 8f5fdb8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

codegen-lite/src/main/java/software/amazon/awssdk/codegen/lite/regions/PartitionMetadataGenerator.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444

4545
public class PartitionMetadataGenerator implements PoetClass {
4646

47+
/**
48+
* Hardcoded mapping of partition IDs to display names.
49+
* This preserves backward compatibility since partitions.json only provides
50+
* partition IDs, while the old endpoints.json had separate partitionName fields.
51+
* New partitions will fall back to using their ID as the display name.
52+
*/
4753
private static final Map<String, String> PARTITION_DISPLAY_NAMES =
4854
ImmutableMap.<String, String>builder()
4955
.put("aws", "AWS Standard")

0 commit comments

Comments
 (0)