Skip to content

Commit 8cafdd8

Browse files
author
AWS
committed
Amazon EventBridge Update: Added support for EventBridge Dualstack endpoints in AWS GovCloud (US) regions (us-gov-east-1 and us-gov-west-1). The dualstack endpoints are identical for both FIPS and non-FIPS configurations, following the format: events.{region}.api.aws
1 parent af806fe commit 8cafdd8

File tree

3 files changed

+176
-44
lines changed

3 files changed

+176
-44
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon EventBridge",
4+
"contributor": "",
5+
"description": "Added support for EventBridge Dualstack endpoints in AWS GovCloud (US) regions (us-gov-east-1 and us-gov-west-1). The dualstack endpoints are identical for both FIPS and non-FIPS configurations, following the format: events.{region}.api.aws"
6+
}

services/eventbridge/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,79 @@
3434
}
3535
},
3636
"rules": [
37+
{
38+
"conditions": [
39+
{
40+
"fn": "not",
41+
"argv": [
42+
{
43+
"fn": "isSet",
44+
"argv": [
45+
{
46+
"ref": "Endpoint"
47+
}
48+
]
49+
}
50+
]
51+
},
52+
{
53+
"fn": "isSet",
54+
"argv": [
55+
{
56+
"ref": "Region"
57+
}
58+
]
59+
},
60+
{
61+
"fn": "aws.partition",
62+
"argv": [
63+
{
64+
"ref": "Region"
65+
}
66+
],
67+
"assign": "PartitionResult"
68+
},
69+
{
70+
"fn": "stringEquals",
71+
"argv": [
72+
{
73+
"fn": "getAttr",
74+
"argv": [
75+
{
76+
"ref": "PartitionResult"
77+
},
78+
"name"
79+
]
80+
},
81+
"aws-us-gov"
82+
]
83+
},
84+
{
85+
"fn": "booleanEquals",
86+
"argv": [
87+
{
88+
"ref": "UseFIPS"
89+
},
90+
true
91+
]
92+
},
93+
{
94+
"fn": "booleanEquals",
95+
"argv": [
96+
{
97+
"ref": "UseDualStack"
98+
},
99+
true
100+
]
101+
}
102+
],
103+
"endpoint": {
104+
"url": "https://events.{Region}.{PartitionResult#dualStackDnsSuffix}",
105+
"properties": {},
106+
"headers": {}
107+
},
108+
"type": "endpoint"
109+
},
37110
{
38111
"conditions": [
39112
{

services/eventbridge/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 97 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -442,19 +442,6 @@
442442
"UseDualStack": false
443443
}
444444
},
445-
{
446-
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled",
447-
"expect": {
448-
"endpoint": {
449-
"url": "https://events.us-gov-east-1.amazonaws.com"
450-
}
451-
},
452-
"params": {
453-
"Region": "us-gov-east-1",
454-
"UseFIPS": true,
455-
"UseDualStack": false
456-
}
457-
},
458445
{
459446
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
460447
"expect": {
@@ -468,32 +455,6 @@
468455
"UseDualStack": false
469456
}
470457
},
471-
{
472-
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
473-
"expect": {
474-
"endpoint": {
475-
"url": "https://events.us-gov-west-1.amazonaws.com"
476-
}
477-
},
478-
"params": {
479-
"Region": "us-gov-west-1",
480-
"UseFIPS": true,
481-
"UseDualStack": false
482-
}
483-
},
484-
{
485-
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
486-
"expect": {
487-
"endpoint": {
488-
"url": "https://events-fips.us-gov-east-1.api.aws"
489-
}
490-
},
491-
"params": {
492-
"Region": "us-gov-east-1",
493-
"UseFIPS": true,
494-
"UseDualStack": true
495-
}
496-
},
497458
{
498459
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
499460
"expect": {
@@ -816,15 +777,107 @@
816777
}
817778
},
818779
{
819-
"documentation": "Valid EndpointId with DualStack enabled and partition does not support DualStack",
780+
"documentation": "legacy fips endpoint @ us-gov-east-1",
820781
"expect": {
821-
"error": "DualStack is enabled but this partition does not support DualStack"
782+
"endpoint": {
783+
"url": "https://events.us-gov-east-1.amazonaws.com"
784+
}
822785
},
823786
"params": {
824-
"EndpointId": "abc123.456def",
787+
"Region": "us-gov-east-1",
788+
"UseDualStack": false,
789+
"UseFIPS": true
790+
}
791+
},
792+
{
793+
"documentation": "legacy non-fips endpoint @ us-gov-east-1",
794+
"expect": {
795+
"endpoint": {
796+
"url": "https://events.us-gov-east-1.amazonaws.com"
797+
}
798+
},
799+
"params": {
800+
"Region": "us-gov-east-1",
801+
"UseDualStack": false,
802+
"UseFIPS": false
803+
}
804+
},
805+
{
806+
"documentation": "Dualstack fips endpoint @ us-gov-east-1",
807+
"expect": {
808+
"endpoint": {
809+
"url": "https://events.us-gov-east-1.api.aws"
810+
}
811+
},
812+
"params": {
813+
"Region": "us-gov-east-1",
825814
"UseDualStack": true,
826-
"UseFIPS": false,
827-
"Region": "us-isob-east-1"
815+
"UseFIPS": true
816+
}
817+
},
818+
{
819+
"documentation": "Dualstack non-fips endpoint @ us-gov-east-1",
820+
"expect": {
821+
"endpoint": {
822+
"url": "https://events.us-gov-east-1.api.aws"
823+
}
824+
},
825+
"params": {
826+
"Region": "us-gov-east-1",
827+
"UseDualStack": true,
828+
"UseFIPS": false
829+
}
830+
},
831+
{
832+
"documentation": "legacy fips endpoint @ us-gov-west-1",
833+
"expect": {
834+
"endpoint": {
835+
"url": "https://events.us-gov-west-1.amazonaws.com"
836+
}
837+
},
838+
"params": {
839+
"Region": "us-gov-west-1",
840+
"UseDualStack": false,
841+
"UseFIPS": true
842+
}
843+
},
844+
{
845+
"documentation": "legacy non-fips endpoint @ us-gov-west-1",
846+
"expect": {
847+
"endpoint": {
848+
"url": "https://events.us-gov-west-1.amazonaws.com"
849+
}
850+
},
851+
"params": {
852+
"Region": "us-gov-west-1",
853+
"UseDualStack": false,
854+
"UseFIPS": false
855+
}
856+
},
857+
{
858+
"documentation": "Dualstack fips endpoint @ us-gov-west-1",
859+
"expect": {
860+
"endpoint": {
861+
"url": "https://events.us-gov-west-1.api.aws"
862+
}
863+
},
864+
"params": {
865+
"Region": "us-gov-west-1",
866+
"UseDualStack": true,
867+
"UseFIPS": true
868+
}
869+
},
870+
{
871+
"documentation": "Dualstack non-fips endpoint @ us-gov-west-1",
872+
"expect": {
873+
"endpoint": {
874+
"url": "https://events.us-gov-west-1.api.aws"
875+
}
876+
},
877+
"params": {
878+
"Region": "us-gov-west-1",
879+
"UseDualStack": true,
880+
"UseFIPS": false
828881
}
829882
}
830883
],

0 commit comments

Comments
 (0)