Skip to content

Commit 30ddc67

Browse files
author
awstools
committed
feat(client-privatenetworks): Fix incorrect endpoint-prefix in endpoint ruleset.
1 parent 2955f67 commit 30ddc67

File tree

2 files changed

+172
-20
lines changed

2 files changed

+172
-20
lines changed

clients/client-privatenetworks/src/endpoint/ruleset.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export const ruleSet: RuleSetObject = {
180180
{
181181
conditions: [],
182182
endpoint: {
183-
url: "https://privatenetworks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
183+
url: "https://private-networks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
184184
properties: {},
185185
headers: {},
186186
},
@@ -232,7 +232,7 @@ export const ruleSet: RuleSetObject = {
232232
{
233233
conditions: [],
234234
endpoint: {
235-
url: "https://privatenetworks-fips.{Region}.{PartitionResult#dnsSuffix}",
235+
url: "https://private-networks-fips.{Region}.{PartitionResult#dnsSuffix}",
236236
properties: {},
237237
headers: {},
238238
},
@@ -284,7 +284,7 @@ export const ruleSet: RuleSetObject = {
284284
{
285285
conditions: [],
286286
endpoint: {
287-
url: "https://privatenetworks.{Region}.{PartitionResult#dualStackDnsSuffix}",
287+
url: "https://private-networks.{Region}.{PartitionResult#dualStackDnsSuffix}",
288288
properties: {},
289289
headers: {},
290290
},
@@ -302,7 +302,7 @@ export const ruleSet: RuleSetObject = {
302302
{
303303
conditions: [],
304304
endpoint: {
305-
url: "https://privatenetworks.{Region}.{PartitionResult#dnsSuffix}",
305+
url: "https://private-networks.{Region}.{PartitionResult#dnsSuffix}",
306306
properties: {},
307307
headers: {},
308308
},

codegen/sdk-codegen/aws-models/privatenetworks.json

+168-16
Original file line numberDiff line numberDiff line change
@@ -996,11 +996,7 @@
996996
"x-amzn-platform-id",
997997
"x-amzn-trace-id"
998998
],
999-
"additionalExposedHeaders": [
1000-
"x-amzn-errortype",
1001-
"x-amzn-requestid",
1002-
"x-amzn-trace-id"
1003-
],
999+
"additionalExposedHeaders": ["x-amzn-errortype", "x-amzn-requestid", "x-amzn-trace-id"],
10041000
"maxAge": 86400
10051001
},
10061002
"smithy.api#documentation": "<p>Amazon Web Services Private 5G is a managed service that makes it easy to deploy, operate, and scale\n your own private mobile network at your on-premises location. Private 5G provides the\n pre-configured hardware and software for mobile networks, helps automate setup, and\n scales capacity on demand to support additional devices as needed.</p>",
@@ -1182,7 +1178,7 @@
11821178
{
11831179
"conditions": [],
11841180
"endpoint": {
1185-
"url": "https://privatenetworks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
1181+
"url": "https://private-networks-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
11861182
"properties": {},
11871183
"headers": {}
11881184
},
@@ -1234,7 +1230,7 @@
12341230
{
12351231
"conditions": [],
12361232
"endpoint": {
1237-
"url": "https://privatenetworks-fips.{Region}.{PartitionResult#dnsSuffix}",
1233+
"url": "https://private-networks-fips.{Region}.{PartitionResult#dnsSuffix}",
12381234
"properties": {},
12391235
"headers": {}
12401236
},
@@ -1286,7 +1282,7 @@
12861282
{
12871283
"conditions": [],
12881284
"endpoint": {
1289-
"url": "https://privatenetworks.{Region}.{PartitionResult#dualStackDnsSuffix}",
1285+
"url": "https://private-networks.{Region}.{PartitionResult#dualStackDnsSuffix}",
12901286
"properties": {},
12911287
"headers": {}
12921288
},
@@ -1304,7 +1300,7 @@
13041300
{
13051301
"conditions": [],
13061302
"endpoint": {
1307-
"url": "https://privatenetworks.{Region}.{PartitionResult#dnsSuffix}",
1303+
"url": "https://private-networks.{Region}.{PartitionResult#dnsSuffix}",
13081304
"properties": {},
13091305
"headers": {}
13101306
},
@@ -1316,6 +1312,162 @@
13161312
},
13171313
"smithy.rules#endpointTests": {
13181314
"testCases": [
1315+
{
1316+
"documentation": "For region us-west-2 with FIPS enabled and DualStack enabled",
1317+
"expect": {
1318+
"endpoint": {
1319+
"url": "https://private-networks-fips.us-west-2.api.aws"
1320+
}
1321+
},
1322+
"params": {
1323+
"UseFIPS": true,
1324+
"UseDualStack": true,
1325+
"Region": "us-west-2"
1326+
}
1327+
},
1328+
{
1329+
"documentation": "For region us-west-2 with FIPS enabled and DualStack disabled",
1330+
"expect": {
1331+
"endpoint": {
1332+
"url": "https://private-networks-fips.us-west-2.amazonaws.com"
1333+
}
1334+
},
1335+
"params": {
1336+
"UseFIPS": true,
1337+
"UseDualStack": false,
1338+
"Region": "us-west-2"
1339+
}
1340+
},
1341+
{
1342+
"documentation": "For region us-west-2 with FIPS disabled and DualStack enabled",
1343+
"expect": {
1344+
"endpoint": {
1345+
"url": "https://private-networks.us-west-2.api.aws"
1346+
}
1347+
},
1348+
"params": {
1349+
"UseFIPS": false,
1350+
"UseDualStack": true,
1351+
"Region": "us-west-2"
1352+
}
1353+
},
1354+
{
1355+
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
1356+
"expect": {
1357+
"endpoint": {
1358+
"url": "https://private-networks.us-west-2.amazonaws.com"
1359+
}
1360+
},
1361+
"params": {
1362+
"UseFIPS": false,
1363+
"UseDualStack": false,
1364+
"Region": "us-west-2"
1365+
}
1366+
},
1367+
{
1368+
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
1369+
"expect": {
1370+
"endpoint": {
1371+
"url": "https://private-networks-fips.us-east-1.api.aws"
1372+
}
1373+
},
1374+
"params": {
1375+
"UseFIPS": true,
1376+
"UseDualStack": true,
1377+
"Region": "us-east-1"
1378+
}
1379+
},
1380+
{
1381+
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
1382+
"expect": {
1383+
"endpoint": {
1384+
"url": "https://private-networks-fips.us-east-1.amazonaws.com"
1385+
}
1386+
},
1387+
"params": {
1388+
"UseFIPS": true,
1389+
"UseDualStack": false,
1390+
"Region": "us-east-1"
1391+
}
1392+
},
1393+
{
1394+
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
1395+
"expect": {
1396+
"endpoint": {
1397+
"url": "https://private-networks.us-east-1.api.aws"
1398+
}
1399+
},
1400+
"params": {
1401+
"UseFIPS": false,
1402+
"UseDualStack": true,
1403+
"Region": "us-east-1"
1404+
}
1405+
},
1406+
{
1407+
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
1408+
"expect": {
1409+
"endpoint": {
1410+
"url": "https://private-networks.us-east-1.amazonaws.com"
1411+
}
1412+
},
1413+
"params": {
1414+
"UseFIPS": false,
1415+
"UseDualStack": false,
1416+
"Region": "us-east-1"
1417+
}
1418+
},
1419+
{
1420+
"documentation": "For region us-east-2 with FIPS enabled and DualStack enabled",
1421+
"expect": {
1422+
"endpoint": {
1423+
"url": "https://private-networks-fips.us-east-2.api.aws"
1424+
}
1425+
},
1426+
"params": {
1427+
"UseFIPS": true,
1428+
"UseDualStack": true,
1429+
"Region": "us-east-2"
1430+
}
1431+
},
1432+
{
1433+
"documentation": "For region us-east-2 with FIPS enabled and DualStack disabled",
1434+
"expect": {
1435+
"endpoint": {
1436+
"url": "https://private-networks-fips.us-east-2.amazonaws.com"
1437+
}
1438+
},
1439+
"params": {
1440+
"UseFIPS": true,
1441+
"UseDualStack": false,
1442+
"Region": "us-east-2"
1443+
}
1444+
},
1445+
{
1446+
"documentation": "For region us-east-2 with FIPS disabled and DualStack enabled",
1447+
"expect": {
1448+
"endpoint": {
1449+
"url": "https://private-networks.us-east-2.api.aws"
1450+
}
1451+
},
1452+
"params": {
1453+
"UseFIPS": false,
1454+
"UseDualStack": true,
1455+
"Region": "us-east-2"
1456+
}
1457+
},
1458+
{
1459+
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
1460+
"expect": {
1461+
"endpoint": {
1462+
"url": "https://private-networks.us-east-2.amazonaws.com"
1463+
}
1464+
},
1465+
"params": {
1466+
"UseFIPS": false,
1467+
"UseDualStack": false,
1468+
"Region": "us-east-2"
1469+
}
1470+
},
13191471
{
13201472
"documentation": "For custom endpoint with fips disabled and dualstack disabled",
13211473
"expect": {
@@ -1324,9 +1476,9 @@
13241476
}
13251477
},
13261478
"params": {
1327-
"Region": "us-east-1",
1328-
"UseDualStack": false,
13291479
"UseFIPS": false,
1480+
"UseDualStack": false,
1481+
"Region": "us-east-1",
13301482
"Endpoint": "https://example.com"
13311483
}
13321484
},
@@ -1336,9 +1488,9 @@
13361488
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
13371489
},
13381490
"params": {
1339-
"Region": "us-east-1",
1340-
"UseDualStack": false,
13411491
"UseFIPS": true,
1492+
"UseDualStack": false,
1493+
"Region": "us-east-1",
13421494
"Endpoint": "https://example.com"
13431495
}
13441496
},
@@ -1348,9 +1500,9 @@
13481500
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
13491501
},
13501502
"params": {
1351-
"Region": "us-east-1",
1352-
"UseDualStack": true,
13531503
"UseFIPS": false,
1504+
"UseDualStack": true,
1505+
"Region": "us-east-1",
13541506
"Endpoint": "https://example.com"
13551507
}
13561508
}
@@ -3389,4 +3541,4 @@
33893541
}
33903542
}
33913543
}
3392-
}
3544+
}

0 commit comments

Comments
 (0)