@aws-sdk/client-location 3.425.0 → 3.428.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ const se_AssociateTrackerConsumerCommand = async (input, context) => {
21
21
  }));
22
22
  let { hostname: resolvedHostname } = await context.endpoint();
23
23
  if (context.disableHostPrefix !== true) {
24
- resolvedHostname = "tracking." + resolvedHostname;
24
+ resolvedHostname = "cp.tracking." + resolvedHostname;
25
25
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
26
26
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
27
27
  }
@@ -318,7 +318,7 @@ const se_CreateGeofenceCollectionCommand = async (input, context) => {
318
318
  }));
319
319
  let { hostname: resolvedHostname } = await context.endpoint();
320
320
  if (context.disableHostPrefix !== true) {
321
- resolvedHostname = "geofencing." + resolvedHostname;
321
+ resolvedHostname = "cp.geofencing." + resolvedHostname;
322
322
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
323
323
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
324
324
  }
@@ -351,7 +351,7 @@ const se_CreateKeyCommand = async (input, context) => {
351
351
  }));
352
352
  let { hostname: resolvedHostname } = await context.endpoint();
353
353
  if (context.disableHostPrefix !== true) {
354
- resolvedHostname = "metadata." + resolvedHostname;
354
+ resolvedHostname = "cp.metadata." + resolvedHostname;
355
355
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
356
356
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
357
357
  }
@@ -383,7 +383,7 @@ const se_CreateMapCommand = async (input, context) => {
383
383
  }));
384
384
  let { hostname: resolvedHostname } = await context.endpoint();
385
385
  if (context.disableHostPrefix !== true) {
386
- resolvedHostname = "maps." + resolvedHostname;
386
+ resolvedHostname = "cp.maps." + resolvedHostname;
387
387
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
388
388
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
389
389
  }
@@ -416,7 +416,7 @@ const se_CreatePlaceIndexCommand = async (input, context) => {
416
416
  }));
417
417
  let { hostname: resolvedHostname } = await context.endpoint();
418
418
  if (context.disableHostPrefix !== true) {
419
- resolvedHostname = "places." + resolvedHostname;
419
+ resolvedHostname = "cp.places." + resolvedHostname;
420
420
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
421
421
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
422
422
  }
@@ -448,7 +448,7 @@ const se_CreateRouteCalculatorCommand = async (input, context) => {
448
448
  }));
449
449
  let { hostname: resolvedHostname } = await context.endpoint();
450
450
  if (context.disableHostPrefix !== true) {
451
- resolvedHostname = "routes." + resolvedHostname;
451
+ resolvedHostname = "cp.routes." + resolvedHostname;
452
452
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
453
453
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
454
454
  }
@@ -484,7 +484,7 @@ const se_CreateTrackerCommand = async (input, context) => {
484
484
  }));
485
485
  let { hostname: resolvedHostname } = await context.endpoint();
486
486
  if (context.disableHostPrefix !== true) {
487
- resolvedHostname = "tracking." + resolvedHostname;
487
+ resolvedHostname = "cp.tracking." + resolvedHostname;
488
488
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
489
489
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
490
490
  }
@@ -509,7 +509,7 @@ const se_DeleteGeofenceCollectionCommand = async (input, context) => {
509
509
  let body;
510
510
  let { hostname: resolvedHostname } = await context.endpoint();
511
511
  if (context.disableHostPrefix !== true) {
512
- resolvedHostname = "geofencing." + resolvedHostname;
512
+ resolvedHostname = "cp.geofencing." + resolvedHostname;
513
513
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
514
514
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
515
515
  }
@@ -533,7 +533,7 @@ const se_DeleteKeyCommand = async (input, context) => {
533
533
  let body;
534
534
  let { hostname: resolvedHostname } = await context.endpoint();
535
535
  if (context.disableHostPrefix !== true) {
536
- resolvedHostname = "metadata." + resolvedHostname;
536
+ resolvedHostname = "cp.metadata." + resolvedHostname;
537
537
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
538
538
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
539
539
  }
@@ -557,7 +557,7 @@ const se_DeleteMapCommand = async (input, context) => {
557
557
  let body;
558
558
  let { hostname: resolvedHostname } = await context.endpoint();
559
559
  if (context.disableHostPrefix !== true) {
560
- resolvedHostname = "maps." + resolvedHostname;
560
+ resolvedHostname = "cp.maps." + resolvedHostname;
561
561
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
562
562
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
563
563
  }
@@ -581,7 +581,7 @@ const se_DeletePlaceIndexCommand = async (input, context) => {
581
581
  let body;
582
582
  let { hostname: resolvedHostname } = await context.endpoint();
583
583
  if (context.disableHostPrefix !== true) {
584
- resolvedHostname = "places." + resolvedHostname;
584
+ resolvedHostname = "cp.places." + resolvedHostname;
585
585
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
586
586
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
587
587
  }
@@ -605,7 +605,7 @@ const se_DeleteRouteCalculatorCommand = async (input, context) => {
605
605
  let body;
606
606
  let { hostname: resolvedHostname } = await context.endpoint();
607
607
  if (context.disableHostPrefix !== true) {
608
- resolvedHostname = "routes." + resolvedHostname;
608
+ resolvedHostname = "cp.routes." + resolvedHostname;
609
609
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
610
610
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
611
611
  }
@@ -629,7 +629,7 @@ const se_DeleteTrackerCommand = async (input, context) => {
629
629
  let body;
630
630
  let { hostname: resolvedHostname } = await context.endpoint();
631
631
  if (context.disableHostPrefix !== true) {
632
- resolvedHostname = "tracking." + resolvedHostname;
632
+ resolvedHostname = "cp.tracking." + resolvedHostname;
633
633
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
634
634
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
635
635
  }
@@ -654,7 +654,7 @@ const se_DescribeGeofenceCollectionCommand = async (input, context) => {
654
654
  let body;
655
655
  let { hostname: resolvedHostname } = await context.endpoint();
656
656
  if (context.disableHostPrefix !== true) {
657
- resolvedHostname = "geofencing." + resolvedHostname;
657
+ resolvedHostname = "cp.geofencing." + resolvedHostname;
658
658
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
659
659
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
660
660
  }
@@ -678,7 +678,7 @@ const se_DescribeKeyCommand = async (input, context) => {
678
678
  let body;
679
679
  let { hostname: resolvedHostname } = await context.endpoint();
680
680
  if (context.disableHostPrefix !== true) {
681
- resolvedHostname = "metadata." + resolvedHostname;
681
+ resolvedHostname = "cp.metadata." + resolvedHostname;
682
682
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
683
683
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
684
684
  }
@@ -702,7 +702,7 @@ const se_DescribeMapCommand = async (input, context) => {
702
702
  let body;
703
703
  let { hostname: resolvedHostname } = await context.endpoint();
704
704
  if (context.disableHostPrefix !== true) {
705
- resolvedHostname = "maps." + resolvedHostname;
705
+ resolvedHostname = "cp.maps." + resolvedHostname;
706
706
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
707
707
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
708
708
  }
@@ -726,7 +726,7 @@ const se_DescribePlaceIndexCommand = async (input, context) => {
726
726
  let body;
727
727
  let { hostname: resolvedHostname } = await context.endpoint();
728
728
  if (context.disableHostPrefix !== true) {
729
- resolvedHostname = "places." + resolvedHostname;
729
+ resolvedHostname = "cp.places." + resolvedHostname;
730
730
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
731
731
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
732
732
  }
@@ -750,7 +750,7 @@ const se_DescribeRouteCalculatorCommand = async (input, context) => {
750
750
  let body;
751
751
  let { hostname: resolvedHostname } = await context.endpoint();
752
752
  if (context.disableHostPrefix !== true) {
753
- resolvedHostname = "routes." + resolvedHostname;
753
+ resolvedHostname = "cp.routes." + resolvedHostname;
754
754
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
755
755
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
756
756
  }
@@ -774,7 +774,7 @@ const se_DescribeTrackerCommand = async (input, context) => {
774
774
  let body;
775
775
  let { hostname: resolvedHostname } = await context.endpoint();
776
776
  if (context.disableHostPrefix !== true) {
777
- resolvedHostname = "tracking." + resolvedHostname;
777
+ resolvedHostname = "cp.tracking." + resolvedHostname;
778
778
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
779
779
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
780
780
  }
@@ -800,7 +800,7 @@ const se_DisassociateTrackerConsumerCommand = async (input, context) => {
800
800
  let body;
801
801
  let { hostname: resolvedHostname } = await context.endpoint();
802
802
  if (context.disableHostPrefix !== true) {
803
- resolvedHostname = "tracking." + resolvedHostname;
803
+ resolvedHostname = "cp.tracking." + resolvedHostname;
804
804
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
805
805
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
806
806
  }
@@ -1098,7 +1098,7 @@ const se_ListGeofenceCollectionsCommand = async (input, context) => {
1098
1098
  }));
1099
1099
  let { hostname: resolvedHostname } = await context.endpoint();
1100
1100
  if (context.disableHostPrefix !== true) {
1101
- resolvedHostname = "geofencing." + resolvedHostname;
1101
+ resolvedHostname = "cp.geofencing." + resolvedHostname;
1102
1102
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1103
1103
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1104
1104
  }
@@ -1159,7 +1159,7 @@ const se_ListKeysCommand = async (input, context) => {
1159
1159
  }));
1160
1160
  let { hostname: resolvedHostname } = await context.endpoint();
1161
1161
  if (context.disableHostPrefix !== true) {
1162
- resolvedHostname = "metadata." + resolvedHostname;
1162
+ resolvedHostname = "cp.metadata." + resolvedHostname;
1163
1163
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1164
1164
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1165
1165
  }
@@ -1188,7 +1188,7 @@ const se_ListMapsCommand = async (input, context) => {
1188
1188
  }));
1189
1189
  let { hostname: resolvedHostname } = await context.endpoint();
1190
1190
  if (context.disableHostPrefix !== true) {
1191
- resolvedHostname = "maps." + resolvedHostname;
1191
+ resolvedHostname = "cp.maps." + resolvedHostname;
1192
1192
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1193
1193
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1194
1194
  }
@@ -1217,7 +1217,7 @@ const se_ListPlaceIndexesCommand = async (input, context) => {
1217
1217
  }));
1218
1218
  let { hostname: resolvedHostname } = await context.endpoint();
1219
1219
  if (context.disableHostPrefix !== true) {
1220
- resolvedHostname = "places." + resolvedHostname;
1220
+ resolvedHostname = "cp.places." + resolvedHostname;
1221
1221
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1222
1222
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1223
1223
  }
@@ -1246,7 +1246,7 @@ const se_ListRouteCalculatorsCommand = async (input, context) => {
1246
1246
  }));
1247
1247
  let { hostname: resolvedHostname } = await context.endpoint();
1248
1248
  if (context.disableHostPrefix !== true) {
1249
- resolvedHostname = "routes." + resolvedHostname;
1249
+ resolvedHostname = "cp.routes." + resolvedHostname;
1250
1250
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1251
1251
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1252
1252
  }
@@ -1270,7 +1270,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
1270
1270
  let body;
1271
1271
  let { hostname: resolvedHostname } = await context.endpoint();
1272
1272
  if (context.disableHostPrefix !== true) {
1273
- resolvedHostname = "metadata." + resolvedHostname;
1273
+ resolvedHostname = "cp.metadata." + resolvedHostname;
1274
1274
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1275
1275
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1276
1276
  }
@@ -1301,7 +1301,7 @@ const se_ListTrackerConsumersCommand = async (input, context) => {
1301
1301
  }));
1302
1302
  let { hostname: resolvedHostname } = await context.endpoint();
1303
1303
  if (context.disableHostPrefix !== true) {
1304
- resolvedHostname = "tracking." + resolvedHostname;
1304
+ resolvedHostname = "cp.tracking." + resolvedHostname;
1305
1305
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1306
1306
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1307
1307
  }
@@ -1330,7 +1330,7 @@ const se_ListTrackersCommand = async (input, context) => {
1330
1330
  }));
1331
1331
  let { hostname: resolvedHostname } = await context.endpoint();
1332
1332
  if (context.disableHostPrefix !== true) {
1333
- resolvedHostname = "tracking." + resolvedHostname;
1333
+ resolvedHostname = "cp.tracking." + resolvedHostname;
1334
1334
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1335
1335
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1336
1336
  }
@@ -1507,7 +1507,7 @@ const se_TagResourceCommand = async (input, context) => {
1507
1507
  }));
1508
1508
  let { hostname: resolvedHostname } = await context.endpoint();
1509
1509
  if (context.disableHostPrefix !== true) {
1510
- resolvedHostname = "metadata." + resolvedHostname;
1510
+ resolvedHostname = "cp.metadata." + resolvedHostname;
1511
1511
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1512
1512
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1513
1513
  }
@@ -1537,7 +1537,7 @@ const se_UntagResourceCommand = async (input, context) => {
1537
1537
  let body;
1538
1538
  let { hostname: resolvedHostname } = await context.endpoint();
1539
1539
  if (context.disableHostPrefix !== true) {
1540
- resolvedHostname = "metadata." + resolvedHostname;
1540
+ resolvedHostname = "cp.metadata." + resolvedHostname;
1541
1541
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1542
1542
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1543
1543
  }
@@ -1570,7 +1570,7 @@ const se_UpdateGeofenceCollectionCommand = async (input, context) => {
1570
1570
  }));
1571
1571
  let { hostname: resolvedHostname } = await context.endpoint();
1572
1572
  if (context.disableHostPrefix !== true) {
1573
- resolvedHostname = "geofencing." + resolvedHostname;
1573
+ resolvedHostname = "cp.geofencing." + resolvedHostname;
1574
1574
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1575
1575
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1576
1576
  }
@@ -1603,7 +1603,7 @@ const se_UpdateKeyCommand = async (input, context) => {
1603
1603
  }));
1604
1604
  let { hostname: resolvedHostname } = await context.endpoint();
1605
1605
  if (context.disableHostPrefix !== true) {
1606
- resolvedHostname = "metadata." + resolvedHostname;
1606
+ resolvedHostname = "cp.metadata." + resolvedHostname;
1607
1607
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1608
1608
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1609
1609
  }
@@ -1634,7 +1634,7 @@ const se_UpdateMapCommand = async (input, context) => {
1634
1634
  }));
1635
1635
  let { hostname: resolvedHostname } = await context.endpoint();
1636
1636
  if (context.disableHostPrefix !== true) {
1637
- resolvedHostname = "maps." + resolvedHostname;
1637
+ resolvedHostname = "cp.maps." + resolvedHostname;
1638
1638
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1639
1639
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1640
1640
  }
@@ -1665,7 +1665,7 @@ const se_UpdatePlaceIndexCommand = async (input, context) => {
1665
1665
  }));
1666
1666
  let { hostname: resolvedHostname } = await context.endpoint();
1667
1667
  if (context.disableHostPrefix !== true) {
1668
- resolvedHostname = "places." + resolvedHostname;
1668
+ resolvedHostname = "cp.places." + resolvedHostname;
1669
1669
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1670
1670
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1671
1671
  }
@@ -1695,7 +1695,7 @@ const se_UpdateRouteCalculatorCommand = async (input, context) => {
1695
1695
  }));
1696
1696
  let { hostname: resolvedHostname } = await context.endpoint();
1697
1697
  if (context.disableHostPrefix !== true) {
1698
- resolvedHostname = "routes." + resolvedHostname;
1698
+ resolvedHostname = "cp.routes." + resolvedHostname;
1699
1699
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1700
1700
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1701
1701
  }
@@ -1729,7 +1729,7 @@ const se_UpdateTrackerCommand = async (input, context) => {
1729
1729
  }));
1730
1730
  let { hostname: resolvedHostname } = await context.endpoint();
1731
1731
  if (context.disableHostPrefix !== true) {
1732
- resolvedHostname = "tracking." + resolvedHostname;
1732
+ resolvedHostname = "cp.tracking." + resolvedHostname;
1733
1733
  if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1734
1734
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1735
1735
  }
@@ -16,7 +16,7 @@ export const se_AssociateTrackerConsumerCommand = async (input, context) => {
16
16
  }));
17
17
  let { hostname: resolvedHostname } = await context.endpoint();
18
18
  if (context.disableHostPrefix !== true) {
19
- resolvedHostname = "tracking." + resolvedHostname;
19
+ resolvedHostname = "cp.tracking." + resolvedHostname;
20
20
  if (!__isValidHostname(resolvedHostname)) {
21
21
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
22
22
  }
@@ -304,7 +304,7 @@ export const se_CreateGeofenceCollectionCommand = async (input, context) => {
304
304
  }));
305
305
  let { hostname: resolvedHostname } = await context.endpoint();
306
306
  if (context.disableHostPrefix !== true) {
307
- resolvedHostname = "geofencing." + resolvedHostname;
307
+ resolvedHostname = "cp.geofencing." + resolvedHostname;
308
308
  if (!__isValidHostname(resolvedHostname)) {
309
309
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
310
310
  }
@@ -336,7 +336,7 @@ export const se_CreateKeyCommand = async (input, context) => {
336
336
  }));
337
337
  let { hostname: resolvedHostname } = await context.endpoint();
338
338
  if (context.disableHostPrefix !== true) {
339
- resolvedHostname = "metadata." + resolvedHostname;
339
+ resolvedHostname = "cp.metadata." + resolvedHostname;
340
340
  if (!__isValidHostname(resolvedHostname)) {
341
341
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
342
342
  }
@@ -367,7 +367,7 @@ export const se_CreateMapCommand = async (input, context) => {
367
367
  }));
368
368
  let { hostname: resolvedHostname } = await context.endpoint();
369
369
  if (context.disableHostPrefix !== true) {
370
- resolvedHostname = "maps." + resolvedHostname;
370
+ resolvedHostname = "cp.maps." + resolvedHostname;
371
371
  if (!__isValidHostname(resolvedHostname)) {
372
372
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
373
373
  }
@@ -399,7 +399,7 @@ export const se_CreatePlaceIndexCommand = async (input, context) => {
399
399
  }));
400
400
  let { hostname: resolvedHostname } = await context.endpoint();
401
401
  if (context.disableHostPrefix !== true) {
402
- resolvedHostname = "places." + resolvedHostname;
402
+ resolvedHostname = "cp.places." + resolvedHostname;
403
403
  if (!__isValidHostname(resolvedHostname)) {
404
404
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
405
405
  }
@@ -430,7 +430,7 @@ export const se_CreateRouteCalculatorCommand = async (input, context) => {
430
430
  }));
431
431
  let { hostname: resolvedHostname } = await context.endpoint();
432
432
  if (context.disableHostPrefix !== true) {
433
- resolvedHostname = "routes." + resolvedHostname;
433
+ resolvedHostname = "cp.routes." + resolvedHostname;
434
434
  if (!__isValidHostname(resolvedHostname)) {
435
435
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
436
436
  }
@@ -465,7 +465,7 @@ export const se_CreateTrackerCommand = async (input, context) => {
465
465
  }));
466
466
  let { hostname: resolvedHostname } = await context.endpoint();
467
467
  if (context.disableHostPrefix !== true) {
468
- resolvedHostname = "tracking." + resolvedHostname;
468
+ resolvedHostname = "cp.tracking." + resolvedHostname;
469
469
  if (!__isValidHostname(resolvedHostname)) {
470
470
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
471
471
  }
@@ -489,7 +489,7 @@ export const se_DeleteGeofenceCollectionCommand = async (input, context) => {
489
489
  let body;
490
490
  let { hostname: resolvedHostname } = await context.endpoint();
491
491
  if (context.disableHostPrefix !== true) {
492
- resolvedHostname = "geofencing." + resolvedHostname;
492
+ resolvedHostname = "cp.geofencing." + resolvedHostname;
493
493
  if (!__isValidHostname(resolvedHostname)) {
494
494
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
495
495
  }
@@ -512,7 +512,7 @@ export const se_DeleteKeyCommand = async (input, context) => {
512
512
  let body;
513
513
  let { hostname: resolvedHostname } = await context.endpoint();
514
514
  if (context.disableHostPrefix !== true) {
515
- resolvedHostname = "metadata." + resolvedHostname;
515
+ resolvedHostname = "cp.metadata." + resolvedHostname;
516
516
  if (!__isValidHostname(resolvedHostname)) {
517
517
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
518
518
  }
@@ -535,7 +535,7 @@ export const se_DeleteMapCommand = async (input, context) => {
535
535
  let body;
536
536
  let { hostname: resolvedHostname } = await context.endpoint();
537
537
  if (context.disableHostPrefix !== true) {
538
- resolvedHostname = "maps." + resolvedHostname;
538
+ resolvedHostname = "cp.maps." + resolvedHostname;
539
539
  if (!__isValidHostname(resolvedHostname)) {
540
540
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
541
541
  }
@@ -558,7 +558,7 @@ export const se_DeletePlaceIndexCommand = async (input, context) => {
558
558
  let body;
559
559
  let { hostname: resolvedHostname } = await context.endpoint();
560
560
  if (context.disableHostPrefix !== true) {
561
- resolvedHostname = "places." + resolvedHostname;
561
+ resolvedHostname = "cp.places." + resolvedHostname;
562
562
  if (!__isValidHostname(resolvedHostname)) {
563
563
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
564
564
  }
@@ -581,7 +581,7 @@ export const se_DeleteRouteCalculatorCommand = async (input, context) => {
581
581
  let body;
582
582
  let { hostname: resolvedHostname } = await context.endpoint();
583
583
  if (context.disableHostPrefix !== true) {
584
- resolvedHostname = "routes." + resolvedHostname;
584
+ resolvedHostname = "cp.routes." + resolvedHostname;
585
585
  if (!__isValidHostname(resolvedHostname)) {
586
586
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
587
587
  }
@@ -604,7 +604,7 @@ export const se_DeleteTrackerCommand = async (input, context) => {
604
604
  let body;
605
605
  let { hostname: resolvedHostname } = await context.endpoint();
606
606
  if (context.disableHostPrefix !== true) {
607
- resolvedHostname = "tracking." + resolvedHostname;
607
+ resolvedHostname = "cp.tracking." + resolvedHostname;
608
608
  if (!__isValidHostname(resolvedHostname)) {
609
609
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
610
610
  }
@@ -628,7 +628,7 @@ export const se_DescribeGeofenceCollectionCommand = async (input, context) => {
628
628
  let body;
629
629
  let { hostname: resolvedHostname } = await context.endpoint();
630
630
  if (context.disableHostPrefix !== true) {
631
- resolvedHostname = "geofencing." + resolvedHostname;
631
+ resolvedHostname = "cp.geofencing." + resolvedHostname;
632
632
  if (!__isValidHostname(resolvedHostname)) {
633
633
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
634
634
  }
@@ -651,7 +651,7 @@ export const se_DescribeKeyCommand = async (input, context) => {
651
651
  let body;
652
652
  let { hostname: resolvedHostname } = await context.endpoint();
653
653
  if (context.disableHostPrefix !== true) {
654
- resolvedHostname = "metadata." + resolvedHostname;
654
+ resolvedHostname = "cp.metadata." + resolvedHostname;
655
655
  if (!__isValidHostname(resolvedHostname)) {
656
656
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
657
657
  }
@@ -674,7 +674,7 @@ export const se_DescribeMapCommand = async (input, context) => {
674
674
  let body;
675
675
  let { hostname: resolvedHostname } = await context.endpoint();
676
676
  if (context.disableHostPrefix !== true) {
677
- resolvedHostname = "maps." + resolvedHostname;
677
+ resolvedHostname = "cp.maps." + resolvedHostname;
678
678
  if (!__isValidHostname(resolvedHostname)) {
679
679
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
680
680
  }
@@ -697,7 +697,7 @@ export const se_DescribePlaceIndexCommand = async (input, context) => {
697
697
  let body;
698
698
  let { hostname: resolvedHostname } = await context.endpoint();
699
699
  if (context.disableHostPrefix !== true) {
700
- resolvedHostname = "places." + resolvedHostname;
700
+ resolvedHostname = "cp.places." + resolvedHostname;
701
701
  if (!__isValidHostname(resolvedHostname)) {
702
702
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
703
703
  }
@@ -720,7 +720,7 @@ export const se_DescribeRouteCalculatorCommand = async (input, context) => {
720
720
  let body;
721
721
  let { hostname: resolvedHostname } = await context.endpoint();
722
722
  if (context.disableHostPrefix !== true) {
723
- resolvedHostname = "routes." + resolvedHostname;
723
+ resolvedHostname = "cp.routes." + resolvedHostname;
724
724
  if (!__isValidHostname(resolvedHostname)) {
725
725
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
726
726
  }
@@ -743,7 +743,7 @@ export const se_DescribeTrackerCommand = async (input, context) => {
743
743
  let body;
744
744
  let { hostname: resolvedHostname } = await context.endpoint();
745
745
  if (context.disableHostPrefix !== true) {
746
- resolvedHostname = "tracking." + resolvedHostname;
746
+ resolvedHostname = "cp.tracking." + resolvedHostname;
747
747
  if (!__isValidHostname(resolvedHostname)) {
748
748
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
749
749
  }
@@ -768,7 +768,7 @@ export const se_DisassociateTrackerConsumerCommand = async (input, context) => {
768
768
  let body;
769
769
  let { hostname: resolvedHostname } = await context.endpoint();
770
770
  if (context.disableHostPrefix !== true) {
771
- resolvedHostname = "tracking." + resolvedHostname;
771
+ resolvedHostname = "cp.tracking." + resolvedHostname;
772
772
  if (!__isValidHostname(resolvedHostname)) {
773
773
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
774
774
  }
@@ -1056,7 +1056,7 @@ export const se_ListGeofenceCollectionsCommand = async (input, context) => {
1056
1056
  }));
1057
1057
  let { hostname: resolvedHostname } = await context.endpoint();
1058
1058
  if (context.disableHostPrefix !== true) {
1059
- resolvedHostname = "geofencing." + resolvedHostname;
1059
+ resolvedHostname = "cp.geofencing." + resolvedHostname;
1060
1060
  if (!__isValidHostname(resolvedHostname)) {
1061
1061
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1062
1062
  }
@@ -1115,7 +1115,7 @@ export const se_ListKeysCommand = async (input, context) => {
1115
1115
  }));
1116
1116
  let { hostname: resolvedHostname } = await context.endpoint();
1117
1117
  if (context.disableHostPrefix !== true) {
1118
- resolvedHostname = "metadata." + resolvedHostname;
1118
+ resolvedHostname = "cp.metadata." + resolvedHostname;
1119
1119
  if (!__isValidHostname(resolvedHostname)) {
1120
1120
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1121
1121
  }
@@ -1143,7 +1143,7 @@ export const se_ListMapsCommand = async (input, context) => {
1143
1143
  }));
1144
1144
  let { hostname: resolvedHostname } = await context.endpoint();
1145
1145
  if (context.disableHostPrefix !== true) {
1146
- resolvedHostname = "maps." + resolvedHostname;
1146
+ resolvedHostname = "cp.maps." + resolvedHostname;
1147
1147
  if (!__isValidHostname(resolvedHostname)) {
1148
1148
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1149
1149
  }
@@ -1171,7 +1171,7 @@ export const se_ListPlaceIndexesCommand = async (input, context) => {
1171
1171
  }));
1172
1172
  let { hostname: resolvedHostname } = await context.endpoint();
1173
1173
  if (context.disableHostPrefix !== true) {
1174
- resolvedHostname = "places." + resolvedHostname;
1174
+ resolvedHostname = "cp.places." + resolvedHostname;
1175
1175
  if (!__isValidHostname(resolvedHostname)) {
1176
1176
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1177
1177
  }
@@ -1199,7 +1199,7 @@ export const se_ListRouteCalculatorsCommand = async (input, context) => {
1199
1199
  }));
1200
1200
  let { hostname: resolvedHostname } = await context.endpoint();
1201
1201
  if (context.disableHostPrefix !== true) {
1202
- resolvedHostname = "routes." + resolvedHostname;
1202
+ resolvedHostname = "cp.routes." + resolvedHostname;
1203
1203
  if (!__isValidHostname(resolvedHostname)) {
1204
1204
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1205
1205
  }
@@ -1222,7 +1222,7 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
1222
1222
  let body;
1223
1223
  let { hostname: resolvedHostname } = await context.endpoint();
1224
1224
  if (context.disableHostPrefix !== true) {
1225
- resolvedHostname = "metadata." + resolvedHostname;
1225
+ resolvedHostname = "cp.metadata." + resolvedHostname;
1226
1226
  if (!__isValidHostname(resolvedHostname)) {
1227
1227
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1228
1228
  }
@@ -1252,7 +1252,7 @@ export const se_ListTrackerConsumersCommand = async (input, context) => {
1252
1252
  }));
1253
1253
  let { hostname: resolvedHostname } = await context.endpoint();
1254
1254
  if (context.disableHostPrefix !== true) {
1255
- resolvedHostname = "tracking." + resolvedHostname;
1255
+ resolvedHostname = "cp.tracking." + resolvedHostname;
1256
1256
  if (!__isValidHostname(resolvedHostname)) {
1257
1257
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1258
1258
  }
@@ -1280,7 +1280,7 @@ export const se_ListTrackersCommand = async (input, context) => {
1280
1280
  }));
1281
1281
  let { hostname: resolvedHostname } = await context.endpoint();
1282
1282
  if (context.disableHostPrefix !== true) {
1283
- resolvedHostname = "tracking." + resolvedHostname;
1283
+ resolvedHostname = "cp.tracking." + resolvedHostname;
1284
1284
  if (!__isValidHostname(resolvedHostname)) {
1285
1285
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1286
1286
  }
@@ -1452,7 +1452,7 @@ export const se_TagResourceCommand = async (input, context) => {
1452
1452
  }));
1453
1453
  let { hostname: resolvedHostname } = await context.endpoint();
1454
1454
  if (context.disableHostPrefix !== true) {
1455
- resolvedHostname = "metadata." + resolvedHostname;
1455
+ resolvedHostname = "cp.metadata." + resolvedHostname;
1456
1456
  if (!__isValidHostname(resolvedHostname)) {
1457
1457
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1458
1458
  }
@@ -1481,7 +1481,7 @@ export const se_UntagResourceCommand = async (input, context) => {
1481
1481
  let body;
1482
1482
  let { hostname: resolvedHostname } = await context.endpoint();
1483
1483
  if (context.disableHostPrefix !== true) {
1484
- resolvedHostname = "metadata." + resolvedHostname;
1484
+ resolvedHostname = "cp.metadata." + resolvedHostname;
1485
1485
  if (!__isValidHostname(resolvedHostname)) {
1486
1486
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1487
1487
  }
@@ -1513,7 +1513,7 @@ export const se_UpdateGeofenceCollectionCommand = async (input, context) => {
1513
1513
  }));
1514
1514
  let { hostname: resolvedHostname } = await context.endpoint();
1515
1515
  if (context.disableHostPrefix !== true) {
1516
- resolvedHostname = "geofencing." + resolvedHostname;
1516
+ resolvedHostname = "cp.geofencing." + resolvedHostname;
1517
1517
  if (!__isValidHostname(resolvedHostname)) {
1518
1518
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1519
1519
  }
@@ -1545,7 +1545,7 @@ export const se_UpdateKeyCommand = async (input, context) => {
1545
1545
  }));
1546
1546
  let { hostname: resolvedHostname } = await context.endpoint();
1547
1547
  if (context.disableHostPrefix !== true) {
1548
- resolvedHostname = "metadata." + resolvedHostname;
1548
+ resolvedHostname = "cp.metadata." + resolvedHostname;
1549
1549
  if (!__isValidHostname(resolvedHostname)) {
1550
1550
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1551
1551
  }
@@ -1575,7 +1575,7 @@ export const se_UpdateMapCommand = async (input, context) => {
1575
1575
  }));
1576
1576
  let { hostname: resolvedHostname } = await context.endpoint();
1577
1577
  if (context.disableHostPrefix !== true) {
1578
- resolvedHostname = "maps." + resolvedHostname;
1578
+ resolvedHostname = "cp.maps." + resolvedHostname;
1579
1579
  if (!__isValidHostname(resolvedHostname)) {
1580
1580
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1581
1581
  }
@@ -1605,7 +1605,7 @@ export const se_UpdatePlaceIndexCommand = async (input, context) => {
1605
1605
  }));
1606
1606
  let { hostname: resolvedHostname } = await context.endpoint();
1607
1607
  if (context.disableHostPrefix !== true) {
1608
- resolvedHostname = "places." + resolvedHostname;
1608
+ resolvedHostname = "cp.places." + resolvedHostname;
1609
1609
  if (!__isValidHostname(resolvedHostname)) {
1610
1610
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1611
1611
  }
@@ -1634,7 +1634,7 @@ export const se_UpdateRouteCalculatorCommand = async (input, context) => {
1634
1634
  }));
1635
1635
  let { hostname: resolvedHostname } = await context.endpoint();
1636
1636
  if (context.disableHostPrefix !== true) {
1637
- resolvedHostname = "routes." + resolvedHostname;
1637
+ resolvedHostname = "cp.routes." + resolvedHostname;
1638
1638
  if (!__isValidHostname(resolvedHostname)) {
1639
1639
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1640
1640
  }
@@ -1667,7 +1667,7 @@ export const se_UpdateTrackerCommand = async (input, context) => {
1667
1667
  }));
1668
1668
  let { hostname: resolvedHostname } = await context.endpoint();
1669
1669
  if (context.disableHostPrefix !== true) {
1670
- resolvedHostname = "tracking." + resolvedHostname;
1670
+ resolvedHostname = "cp.tracking." + resolvedHostname;
1671
1671
  if (!__isValidHostname(resolvedHostname)) {
1672
1672
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1673
1673
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-location",
3
3
  "description": "AWS SDK for JavaScript Location Client for Node.js, Browser and React Native",
4
- "version": "3.425.0",
4
+ "version": "3.428.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,40 +21,40 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.425.0",
25
- "@aws-sdk/credential-provider-node": "3.425.0",
26
- "@aws-sdk/middleware-host-header": "3.425.0",
27
- "@aws-sdk/middleware-logger": "3.425.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.425.0",
29
- "@aws-sdk/middleware-signing": "3.425.0",
30
- "@aws-sdk/middleware-user-agent": "3.425.0",
31
- "@aws-sdk/region-config-resolver": "3.425.0",
32
- "@aws-sdk/types": "3.425.0",
33
- "@aws-sdk/util-endpoints": "3.425.0",
34
- "@aws-sdk/util-user-agent-browser": "3.425.0",
35
- "@aws-sdk/util-user-agent-node": "3.425.0",
36
- "@smithy/config-resolver": "^2.0.11",
37
- "@smithy/fetch-http-handler": "^2.2.1",
38
- "@smithy/hash-node": "^2.0.10",
39
- "@smithy/invalid-dependency": "^2.0.10",
40
- "@smithy/middleware-content-length": "^2.0.12",
41
- "@smithy/middleware-endpoint": "^2.0.10",
42
- "@smithy/middleware-retry": "^2.0.13",
43
- "@smithy/middleware-serde": "^2.0.10",
44
- "@smithy/middleware-stack": "^2.0.4",
45
- "@smithy/node-config-provider": "^2.0.13",
46
- "@smithy/node-http-handler": "^2.1.6",
47
- "@smithy/protocol-http": "^3.0.6",
48
- "@smithy/smithy-client": "^2.1.9",
49
- "@smithy/types": "^2.3.4",
50
- "@smithy/url-parser": "^2.0.10",
24
+ "@aws-sdk/client-sts": "3.428.0",
25
+ "@aws-sdk/credential-provider-node": "3.428.0",
26
+ "@aws-sdk/middleware-host-header": "3.428.0",
27
+ "@aws-sdk/middleware-logger": "3.428.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
+ "@aws-sdk/middleware-signing": "3.428.0",
30
+ "@aws-sdk/middleware-user-agent": "3.428.0",
31
+ "@aws-sdk/region-config-resolver": "3.428.0",
32
+ "@aws-sdk/types": "3.428.0",
33
+ "@aws-sdk/util-endpoints": "3.428.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.428.0",
35
+ "@aws-sdk/util-user-agent-node": "3.428.0",
36
+ "@smithy/config-resolver": "^2.0.14",
37
+ "@smithy/fetch-http-handler": "^2.2.3",
38
+ "@smithy/hash-node": "^2.0.11",
39
+ "@smithy/invalid-dependency": "^2.0.11",
40
+ "@smithy/middleware-content-length": "^2.0.13",
41
+ "@smithy/middleware-endpoint": "^2.1.0",
42
+ "@smithy/middleware-retry": "^2.0.16",
43
+ "@smithy/middleware-serde": "^2.0.11",
44
+ "@smithy/middleware-stack": "^2.0.5",
45
+ "@smithy/node-config-provider": "^2.1.1",
46
+ "@smithy/node-http-handler": "^2.1.7",
47
+ "@smithy/protocol-http": "^3.0.7",
48
+ "@smithy/smithy-client": "^2.1.11",
49
+ "@smithy/types": "^2.3.5",
50
+ "@smithy/url-parser": "^2.0.11",
51
51
  "@smithy/util-base64": "^2.0.0",
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
- "@smithy/util-defaults-mode-browser": "^2.0.13",
55
- "@smithy/util-defaults-mode-node": "^2.0.15",
56
- "@smithy/util-retry": "^2.0.3",
57
- "@smithy/util-stream": "^2.0.14",
54
+ "@smithy/util-defaults-mode-browser": "^2.0.15",
55
+ "@smithy/util-defaults-mode-node": "^2.0.19",
56
+ "@smithy/util-retry": "^2.0.4",
57
+ "@smithy/util-stream": "^2.0.16",
58
58
  "@smithy/util-utf8": "^2.0.0",
59
59
  "tslib": "^2.5.0"
60
60
  },