Skip to content

Commit 05f1a4d

Browse files
author
AWS
committed
AWS Private 5G Update: Fix incorrect endpoint-prefix in endpoint ruleset.
1 parent e4075f9 commit 05f1a4d

File tree

3 files changed

+169
-7
lines changed

3 files changed

+169
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Private 5G",
4+
"contributor": "",
5+
"description": "Fix incorrect endpoint-prefix in endpoint ruleset."
6+
}

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
{
176176
"conditions": [],
177177
"endpoint": {
178-
"url": "https://privatenetworks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
178+
"url": "https://private-networks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
179179
"properties": {},
180180
"headers": {}
181181
},
@@ -227,7 +227,7 @@
227227
{
228228
"conditions": [],
229229
"endpoint": {
230-
"url": "https://privatenetworks-fips.{Region}.{PartitionResult#dnsSuffix}",
230+
"url": "https://private-networks-fips.{Region}.{PartitionResult#dnsSuffix}",
231231
"properties": {},
232232
"headers": {}
233233
},
@@ -279,7 +279,7 @@
279279
{
280280
"conditions": [],
281281
"endpoint": {
282-
"url": "https://privatenetworks.{Region}.{PartitionResult#dualStackDnsSuffix}",
282+
"url": "https://private-networks.{Region}.{PartitionResult#dualStackDnsSuffix}",
283283
"properties": {},
284284
"headers": {}
285285
},
@@ -297,7 +297,7 @@
297297
{
298298
"conditions": [],
299299
"endpoint": {
300-
"url": "https://privatenetworks.{Region}.{PartitionResult#dnsSuffix}",
300+
"url": "https://private-networks.{Region}.{PartitionResult#dnsSuffix}",
301301
"properties": {},
302302
"headers": {}
303303
},

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

+159-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,161 @@
11
{
22
"testCases": [
3+
{
4+
"documentation": "For region us-west-2 with FIPS enabled and DualStack enabled",
5+
"expect": {
6+
"endpoint": {
7+
"url": "https://private-networks-fips.us-west-2.api.aws"
8+
}
9+
},
10+
"params": {
11+
"UseFIPS": true,
12+
"UseDualStack": true,
13+
"Region": "us-west-2"
14+
}
15+
},
16+
{
17+
"documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
18+
"expect": {
19+
"endpoint": {
20+
"url": "https://private-networks-fips.us-west-2.amazonaws.com"
21+
}
22+
},
23+
"params": {
24+
"UseFIPS": true,
25+
"UseDualStack": false,
26+
"Region": "us-west-2"
27+
}
28+
},
29+
{
30+
"documentation": "For region us-west-2 with FIPS disabled and DualStack enabled",
31+
"expect": {
32+
"endpoint": {
33+
"url": "https://private-networks.us-west-2.api.aws"
34+
}
35+
},
36+
"params": {
37+
"UseFIPS": false,
38+
"UseDualStack": true,
39+
"Region": "us-west-2"
40+
}
41+
},
42+
{
43+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
44+
"expect": {
45+
"endpoint": {
46+
"url": "https://private-networks.us-west-2.amazonaws.com"
47+
}
48+
},
49+
"params": {
50+
"UseFIPS": false,
51+
"UseDualStack": false,
52+
"Region": "us-west-2"
53+
}
54+
},
55+
{
56+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
57+
"expect": {
58+
"endpoint": {
59+
"url": "https://private-networks-fips.us-east-1.api.aws"
60+
}
61+
},
62+
"params": {
63+
"UseFIPS": true,
64+
"UseDualStack": true,
65+
"Region": "us-east-1"
66+
}
67+
},
68+
{
69+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
70+
"expect": {
71+
"endpoint": {
72+
"url": "https://private-networks-fips.us-east-1.amazonaws.com"
73+
}
74+
},
75+
"params": {
76+
"UseFIPS": true,
77+
"UseDualStack": false,
78+
"Region": "us-east-1"
79+
}
80+
},
81+
{
82+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
83+
"expect": {
84+
"endpoint": {
85+
"url": "https://private-networks.us-east-1.api.aws"
86+
}
87+
},
88+
"params": {
89+
"UseFIPS": false,
90+
"UseDualStack": true,
91+
"Region": "us-east-1"
92+
}
93+
},
94+
{
95+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
96+
"expect": {
97+
"endpoint": {
98+
"url": "https://private-networks.us-east-1.amazonaws.com"
99+
}
100+
},
101+
"params": {
102+
"UseFIPS": false,
103+
"UseDualStack": false,
104+
"Region": "us-east-1"
105+
}
106+
},
107+
{
108+
"documentation": "For region us-east-2 with FIPS enabled and DualStack enabled",
109+
"expect": {
110+
"endpoint": {
111+
"url": "https://private-networks-fips.us-east-2.api.aws"
112+
}
113+
},
114+
"params": {
115+
"UseFIPS": true,
116+
"UseDualStack": true,
117+
"Region": "us-east-2"
118+
}
119+
},
120+
{
121+
"documentation": "For region us-east-2 with FIPS enabled and DualStack disabled",
122+
"expect": {
123+
"endpoint": {
124+
"url": "https://private-networks-fips.us-east-2.amazonaws.com"
125+
}
126+
},
127+
"params": {
128+
"UseFIPS": true,
129+
"UseDualStack": false,
130+
"Region": "us-east-2"
131+
}
132+
},
133+
{
134+
"documentation": "For region us-east-2 with FIPS disabled and DualStack enabled",
135+
"expect": {
136+
"endpoint": {
137+
"url": "https://private-networks.us-east-2.api.aws"
138+
}
139+
},
140+
"params": {
141+
"UseFIPS": false,
142+
"UseDualStack": true,
143+
"Region": "us-east-2"
144+
}
145+
},
146+
{
147+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
148+
"expect": {
149+
"endpoint": {
150+
"url": "https://private-networks.us-east-2.amazonaws.com"
151+
}
152+
},
153+
"params": {
154+
"UseFIPS": false,
155+
"UseDualStack": false,
156+
"Region": "us-east-2"
157+
}
158+
},
3159
{
4160
"documentation": "For custom endpoint with fips disabled and dualstack disabled",
5161
"expect": {
@@ -8,9 +164,9 @@
8164
}
9165
},
10166
"params": {
167+
"UseFIPS": false,
11168
"UseDualStack": false,
12169
"Region": "us-east-1",
13-
"UseFIPS": false,
14170
"Endpoint": "https://example.com"
15171
}
16172
},
@@ -20,9 +176,9 @@
20176
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
21177
},
22178
"params": {
179+
"UseFIPS": true,
23180
"UseDualStack": false,
24181
"Region": "us-east-1",
25-
"UseFIPS": true,
26182
"Endpoint": "https://example.com"
27183
}
28184
},
@@ -32,9 +188,9 @@
32188
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
33189
},
34190
"params": {
191+
"UseFIPS": false,
35192
"UseDualStack": true,
36193
"Region": "us-east-1",
37-
"UseFIPS": false,
38194
"Endpoint": "https://example.com"
39195
}
40196
}

0 commit comments

Comments
 (0)