Skip to content

Commit

Permalink
add implicit global region to internal partition metadata (#2688)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws authored Jun 19, 2024
1 parent 077df5d commit 78777b6
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 46 deletions.
8 changes: 8 additions & 0 deletions .changelog/94ed40ed612c4d18b9acc033473afc08.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "94ed40ed-612c-4d18-b9ac-c033473afc08",
"type": "feature",
"description": "Add implicit global region to internal endpoint resolution metadata.",
"modules": [
"."
]
}
11 changes: 6 additions & 5 deletions internal/endpoints/awsrulesfn/internal/partition/codegen.go

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

11 changes: 6 additions & 5 deletions internal/endpoints/awsrulesfn/partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ type Partition struct {

// PartitionConfig provides the endpoint metadata for an AWS region or partition.
type PartitionConfig struct {
Name string `json:"name"`
DnsSuffix string `json:"dnsSuffix"`
DualStackDnsSuffix string `json:"dualStackDnsSuffix"`
SupportsFIPS bool `json:"supportsFIPS"`
SupportsDualStack bool `json:"supportsDualStack"`
Name string `json:"name"`
DnsSuffix string `json:"dnsSuffix"`
DualStackDnsSuffix string `json:"dualStackDnsSuffix"`
SupportsFIPS bool `json:"supportsFIPS"`
SupportsDualStack bool `json:"supportsDualStack"`
ImplicitGlobalRegion string `json:"implicitGlobalRegion"`
}

type RegionOverrides struct {
Expand Down
94 changes: 58 additions & 36 deletions internal/endpoints/awsrulesfn/partitions.go

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

0 comments on commit 78777b6

Please sign in to comment.