@aws-sdk/client-arc-region-switch 3.1077.0 → 3.1079.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.
Files changed (71) hide show
  1. package/dist-cjs/index.js +32 -240
  2. package/dist-es/commandBuilder.js +9 -0
  3. package/dist-es/commands/ApprovePlanExecutionStepCommand.js +2 -14
  4. package/dist-es/commands/CancelPlanExecutionCommand.js +2 -14
  5. package/dist-es/commands/CreatePlanCommand.js +2 -17
  6. package/dist-es/commands/DeletePlanCommand.js +2 -17
  7. package/dist-es/commands/GetPlanCommand.js +2 -17
  8. package/dist-es/commands/GetPlanEvaluationStatusCommand.js +2 -14
  9. package/dist-es/commands/GetPlanExecutionCommand.js +2 -14
  10. package/dist-es/commands/GetPlanInRegionCommand.js +2 -14
  11. package/dist-es/commands/ListPlanExecutionEventsCommand.js +2 -14
  12. package/dist-es/commands/ListPlanExecutionsCommand.js +2 -14
  13. package/dist-es/commands/ListPlansCommand.js +2 -17
  14. package/dist-es/commands/ListPlansInRegionCommand.js +2 -14
  15. package/dist-es/commands/ListRoute53HealthChecksCommand.js +2 -17
  16. package/dist-es/commands/ListRoute53HealthChecksInRegionCommand.js +2 -14
  17. package/dist-es/commands/ListTagsForResourceCommand.js +2 -17
  18. package/dist-es/commands/StartPlanExecutionCommand.js +2 -14
  19. package/dist-es/commands/TagResourceCommand.js +2 -17
  20. package/dist-es/commands/UntagResourceCommand.js +2 -17
  21. package/dist-es/commands/UpdatePlanCommand.js +2 -17
  22. package/dist-es/commands/UpdatePlanExecutionCommand.js +2 -14
  23. package/dist-es/commands/UpdatePlanExecutionStepCommand.js +2 -14
  24. package/dist-es/index.js +1 -0
  25. package/dist-types/commandBuilder.d.ts +22 -0
  26. package/dist-types/commands/ApprovePlanExecutionStepCommand.d.ts +3 -8
  27. package/dist-types/commands/CancelPlanExecutionCommand.d.ts +3 -8
  28. package/dist-types/commands/CreatePlanCommand.d.ts +3 -8
  29. package/dist-types/commands/DeletePlanCommand.d.ts +3 -8
  30. package/dist-types/commands/GetPlanCommand.d.ts +3 -8
  31. package/dist-types/commands/GetPlanEvaluationStatusCommand.d.ts +3 -8
  32. package/dist-types/commands/GetPlanExecutionCommand.d.ts +3 -8
  33. package/dist-types/commands/GetPlanInRegionCommand.d.ts +3 -8
  34. package/dist-types/commands/ListPlanExecutionEventsCommand.d.ts +3 -8
  35. package/dist-types/commands/ListPlanExecutionsCommand.d.ts +3 -8
  36. package/dist-types/commands/ListPlansCommand.d.ts +3 -8
  37. package/dist-types/commands/ListPlansInRegionCommand.d.ts +3 -8
  38. package/dist-types/commands/ListRoute53HealthChecksCommand.d.ts +3 -8
  39. package/dist-types/commands/ListRoute53HealthChecksInRegionCommand.d.ts +3 -8
  40. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  41. package/dist-types/commands/StartPlanExecutionCommand.d.ts +3 -8
  42. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  43. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  44. package/dist-types/commands/UpdatePlanCommand.d.ts +3 -8
  45. package/dist-types/commands/UpdatePlanExecutionCommand.d.ts +3 -8
  46. package/dist-types/commands/UpdatePlanExecutionStepCommand.d.ts +3 -8
  47. package/dist-types/index.d.ts +1 -0
  48. package/dist-types/ts3.4/commandBuilder.d.ts +47 -0
  49. package/dist-types/ts3.4/commands/ApprovePlanExecutionStepCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/CancelPlanExecutionCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/CreatePlanCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/DeletePlanCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/GetPlanCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/GetPlanEvaluationStatusCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/GetPlanExecutionCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/GetPlanInRegionCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/ListPlanExecutionEventsCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/ListPlanExecutionsCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/ListPlansCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/ListPlansInRegionCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/ListRoute53HealthChecksCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/ListRoute53HealthChecksInRegionCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/StartPlanExecutionCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/UpdatePlanCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/UpdatePlanExecutionCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/UpdatePlanExecutionStepCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/index.d.ts +1 -0
  71. package/package.json +8 -8
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -66,7 +67,7 @@ const commonParams = {
66
67
  Region: { type: "builtInParams", name: "region" },
67
68
  };
68
69
 
69
- var version = "3.1076.0";
70
+ var version = "3.1078.0";
70
71
  var packageInfo = {
71
72
  version: version};
72
73
 
@@ -1288,283 +1289,74 @@ class ARCRegionSwitchClient extends Client {
1288
1289
  }
1289
1290
  }
1290
1291
 
1291
- class ApprovePlanExecutionStepCommand extends Command
1292
- .classBuilder()
1293
- .ep(commonParams)
1294
- .m(function (Command, cs, config, o) {
1295
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1296
- })
1297
- .s("ArcRegionSwitch", "ApprovePlanExecutionStep", {})
1298
- .n("ARCRegionSwitchClient", "ApprovePlanExecutionStepCommand")
1299
- .sc(ApprovePlanExecutionStep$)
1300
- .build() {
1292
+ const command = makeBuilder(commonParams, "ArcRegionSwitch", "ARCRegionSwitchClient", getEndpointPlugin);
1293
+ const _ep0 = {};
1294
+ const _ep1 = {
1295
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1296
+ };
1297
+ const _mw0 = (Command, cs, config, o) => [];
1298
+
1299
+ class ApprovePlanExecutionStepCommand extends command(_ep0, _mw0, "ApprovePlanExecutionStep", ApprovePlanExecutionStep$) {
1301
1300
  }
1302
1301
 
1303
- class CancelPlanExecutionCommand extends Command
1304
- .classBuilder()
1305
- .ep(commonParams)
1306
- .m(function (Command, cs, config, o) {
1307
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1308
- })
1309
- .s("ArcRegionSwitch", "CancelPlanExecution", {})
1310
- .n("ARCRegionSwitchClient", "CancelPlanExecutionCommand")
1311
- .sc(CancelPlanExecution$)
1312
- .build() {
1302
+ class CancelPlanExecutionCommand extends command(_ep0, _mw0, "CancelPlanExecution", CancelPlanExecution$) {
1313
1303
  }
1314
1304
 
1315
- class CreatePlanCommand extends Command
1316
- .classBuilder()
1317
- .ep({
1318
- ...commonParams,
1319
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1320
- })
1321
- .m(function (Command, cs, config, o) {
1322
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1323
- })
1324
- .s("ArcRegionSwitch", "CreatePlan", {})
1325
- .n("ARCRegionSwitchClient", "CreatePlanCommand")
1326
- .sc(CreatePlan$)
1327
- .build() {
1305
+ class CreatePlanCommand extends command(_ep1, _mw0, "CreatePlan", CreatePlan$) {
1328
1306
  }
1329
1307
 
1330
- class DeletePlanCommand extends Command
1331
- .classBuilder()
1332
- .ep({
1333
- ...commonParams,
1334
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1335
- })
1336
- .m(function (Command, cs, config, o) {
1337
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1338
- })
1339
- .s("ArcRegionSwitch", "DeletePlan", {})
1340
- .n("ARCRegionSwitchClient", "DeletePlanCommand")
1341
- .sc(DeletePlan$)
1342
- .build() {
1308
+ class DeletePlanCommand extends command(_ep1, _mw0, "DeletePlan", DeletePlan$) {
1343
1309
  }
1344
1310
 
1345
- class GetPlanCommand extends Command
1346
- .classBuilder()
1347
- .ep({
1348
- ...commonParams,
1349
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1350
- })
1351
- .m(function (Command, cs, config, o) {
1352
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1353
- })
1354
- .s("ArcRegionSwitch", "GetPlan", {})
1355
- .n("ARCRegionSwitchClient", "GetPlanCommand")
1356
- .sc(GetPlan$)
1357
- .build() {
1311
+ class GetPlanCommand extends command(_ep1, _mw0, "GetPlan", GetPlan$) {
1358
1312
  }
1359
1313
 
1360
- class GetPlanEvaluationStatusCommand extends Command
1361
- .classBuilder()
1362
- .ep(commonParams)
1363
- .m(function (Command, cs, config, o) {
1364
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1365
- })
1366
- .s("ArcRegionSwitch", "GetPlanEvaluationStatus", {})
1367
- .n("ARCRegionSwitchClient", "GetPlanEvaluationStatusCommand")
1368
- .sc(GetPlanEvaluationStatus$)
1369
- .build() {
1314
+ class GetPlanEvaluationStatusCommand extends command(_ep0, _mw0, "GetPlanEvaluationStatus", GetPlanEvaluationStatus$) {
1370
1315
  }
1371
1316
 
1372
- class GetPlanExecutionCommand extends Command
1373
- .classBuilder()
1374
- .ep(commonParams)
1375
- .m(function (Command, cs, config, o) {
1376
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1377
- })
1378
- .s("ArcRegionSwitch", "GetPlanExecution", {})
1379
- .n("ARCRegionSwitchClient", "GetPlanExecutionCommand")
1380
- .sc(GetPlanExecution$)
1381
- .build() {
1317
+ class GetPlanExecutionCommand extends command(_ep0, _mw0, "GetPlanExecution", GetPlanExecution$) {
1382
1318
  }
1383
1319
 
1384
- class GetPlanInRegionCommand extends Command
1385
- .classBuilder()
1386
- .ep(commonParams)
1387
- .m(function (Command, cs, config, o) {
1388
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1389
- })
1390
- .s("ArcRegionSwitch", "GetPlanInRegion", {})
1391
- .n("ARCRegionSwitchClient", "GetPlanInRegionCommand")
1392
- .sc(GetPlanInRegion$)
1393
- .build() {
1320
+ class GetPlanInRegionCommand extends command(_ep0, _mw0, "GetPlanInRegion", GetPlanInRegion$) {
1394
1321
  }
1395
1322
 
1396
- class ListPlanExecutionEventsCommand extends Command
1397
- .classBuilder()
1398
- .ep(commonParams)
1399
- .m(function (Command, cs, config, o) {
1400
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1401
- })
1402
- .s("ArcRegionSwitch", "ListPlanExecutionEvents", {})
1403
- .n("ARCRegionSwitchClient", "ListPlanExecutionEventsCommand")
1404
- .sc(ListPlanExecutionEvents$)
1405
- .build() {
1323
+ class ListPlanExecutionEventsCommand extends command(_ep0, _mw0, "ListPlanExecutionEvents", ListPlanExecutionEvents$) {
1406
1324
  }
1407
1325
 
1408
- class ListPlanExecutionsCommand extends Command
1409
- .classBuilder()
1410
- .ep(commonParams)
1411
- .m(function (Command, cs, config, o) {
1412
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1413
- })
1414
- .s("ArcRegionSwitch", "ListPlanExecutions", {})
1415
- .n("ARCRegionSwitchClient", "ListPlanExecutionsCommand")
1416
- .sc(ListPlanExecutions$)
1417
- .build() {
1326
+ class ListPlanExecutionsCommand extends command(_ep0, _mw0, "ListPlanExecutions", ListPlanExecutions$) {
1418
1327
  }
1419
1328
 
1420
- class ListPlansCommand extends Command
1421
- .classBuilder()
1422
- .ep({
1423
- ...commonParams,
1424
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1425
- })
1426
- .m(function (Command, cs, config, o) {
1427
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1428
- })
1429
- .s("ArcRegionSwitch", "ListPlans", {})
1430
- .n("ARCRegionSwitchClient", "ListPlansCommand")
1431
- .sc(ListPlans$)
1432
- .build() {
1329
+ class ListPlansCommand extends command(_ep1, _mw0, "ListPlans", ListPlans$) {
1433
1330
  }
1434
1331
 
1435
- class ListPlansInRegionCommand extends Command
1436
- .classBuilder()
1437
- .ep(commonParams)
1438
- .m(function (Command, cs, config, o) {
1439
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1440
- })
1441
- .s("ArcRegionSwitch", "ListPlansInRegion", {})
1442
- .n("ARCRegionSwitchClient", "ListPlansInRegionCommand")
1443
- .sc(ListPlansInRegion$)
1444
- .build() {
1332
+ class ListPlansInRegionCommand extends command(_ep0, _mw0, "ListPlansInRegion", ListPlansInRegion$) {
1445
1333
  }
1446
1334
 
1447
- class ListRoute53HealthChecksCommand extends Command
1448
- .classBuilder()
1449
- .ep({
1450
- ...commonParams,
1451
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1452
- })
1453
- .m(function (Command, cs, config, o) {
1454
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1455
- })
1456
- .s("ArcRegionSwitch", "ListRoute53HealthChecks", {})
1457
- .n("ARCRegionSwitchClient", "ListRoute53HealthChecksCommand")
1458
- .sc(ListRoute53HealthChecks$)
1459
- .build() {
1335
+ class ListRoute53HealthChecksCommand extends command(_ep1, _mw0, "ListRoute53HealthChecks", ListRoute53HealthChecks$) {
1460
1336
  }
1461
1337
 
1462
- class ListRoute53HealthChecksInRegionCommand extends Command
1463
- .classBuilder()
1464
- .ep(commonParams)
1465
- .m(function (Command, cs, config, o) {
1466
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1467
- })
1468
- .s("ArcRegionSwitch", "ListRoute53HealthChecksInRegion", {})
1469
- .n("ARCRegionSwitchClient", "ListRoute53HealthChecksInRegionCommand")
1470
- .sc(ListRoute53HealthChecksInRegion$)
1471
- .build() {
1338
+ class ListRoute53HealthChecksInRegionCommand extends command(_ep0, _mw0, "ListRoute53HealthChecksInRegion", ListRoute53HealthChecksInRegion$) {
1472
1339
  }
1473
1340
 
1474
- class ListTagsForResourceCommand extends Command
1475
- .classBuilder()
1476
- .ep({
1477
- ...commonParams,
1478
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1479
- })
1480
- .m(function (Command, cs, config, o) {
1481
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1482
- })
1483
- .s("ArcRegionSwitch", "ListTagsForResource", {})
1484
- .n("ARCRegionSwitchClient", "ListTagsForResourceCommand")
1485
- .sc(ListTagsForResource$)
1486
- .build() {
1341
+ class ListTagsForResourceCommand extends command(_ep1, _mw0, "ListTagsForResource", ListTagsForResource$) {
1487
1342
  }
1488
1343
 
1489
- class StartPlanExecutionCommand extends Command
1490
- .classBuilder()
1491
- .ep(commonParams)
1492
- .m(function (Command, cs, config, o) {
1493
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1494
- })
1495
- .s("ArcRegionSwitch", "StartPlanExecution", {})
1496
- .n("ARCRegionSwitchClient", "StartPlanExecutionCommand")
1497
- .sc(StartPlanExecution$)
1498
- .build() {
1344
+ class StartPlanExecutionCommand extends command(_ep0, _mw0, "StartPlanExecution", StartPlanExecution$) {
1499
1345
  }
1500
1346
 
1501
- class TagResourceCommand extends Command
1502
- .classBuilder()
1503
- .ep({
1504
- ...commonParams,
1505
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1506
- })
1507
- .m(function (Command, cs, config, o) {
1508
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1509
- })
1510
- .s("ArcRegionSwitch", "TagResource", {})
1511
- .n("ARCRegionSwitchClient", "TagResourceCommand")
1512
- .sc(TagResource$)
1513
- .build() {
1347
+ class TagResourceCommand extends command(_ep1, _mw0, "TagResource", TagResource$) {
1514
1348
  }
1515
1349
 
1516
- class UntagResourceCommand extends Command
1517
- .classBuilder()
1518
- .ep({
1519
- ...commonParams,
1520
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1521
- })
1522
- .m(function (Command, cs, config, o) {
1523
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1524
- })
1525
- .s("ArcRegionSwitch", "UntagResource", {})
1526
- .n("ARCRegionSwitchClient", "UntagResourceCommand")
1527
- .sc(UntagResource$)
1528
- .build() {
1350
+ class UntagResourceCommand extends command(_ep1, _mw0, "UntagResource", UntagResource$) {
1529
1351
  }
1530
1352
 
1531
- class UpdatePlanCommand extends Command
1532
- .classBuilder()
1533
- .ep({
1534
- ...commonParams,
1535
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1536
- })
1537
- .m(function (Command, cs, config, o) {
1538
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1539
- })
1540
- .s("ArcRegionSwitch", "UpdatePlan", {})
1541
- .n("ARCRegionSwitchClient", "UpdatePlanCommand")
1542
- .sc(UpdatePlan$)
1543
- .build() {
1353
+ class UpdatePlanCommand extends command(_ep1, _mw0, "UpdatePlan", UpdatePlan$) {
1544
1354
  }
1545
1355
 
1546
- class UpdatePlanExecutionCommand extends Command
1547
- .classBuilder()
1548
- .ep(commonParams)
1549
- .m(function (Command, cs, config, o) {
1550
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1551
- })
1552
- .s("ArcRegionSwitch", "UpdatePlanExecution", {})
1553
- .n("ARCRegionSwitchClient", "UpdatePlanExecutionCommand")
1554
- .sc(UpdatePlanExecution$)
1555
- .build() {
1356
+ class UpdatePlanExecutionCommand extends command(_ep0, _mw0, "UpdatePlanExecution", UpdatePlanExecution$) {
1556
1357
  }
1557
1358
 
1558
- class UpdatePlanExecutionStepCommand extends Command
1559
- .classBuilder()
1560
- .ep(commonParams)
1561
- .m(function (Command, cs, config, o) {
1562
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1563
- })
1564
- .s("ArcRegionSwitch", "UpdatePlanExecutionStep", {})
1565
- .n("ARCRegionSwitchClient", "UpdatePlanExecutionStepCommand")
1566
- .sc(UpdatePlanExecutionStep$)
1567
- .build() {
1359
+ class UpdatePlanExecutionStepCommand extends command(_ep0, _mw0, "UpdatePlanExecutionStep", UpdatePlanExecutionStep$) {
1568
1360
  }
1569
1361
 
1570
1362
  const paginateGetPlanEvaluationStatus = createPaginator(ARCRegionSwitchClient, GetPlanEvaluationStatusCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,9 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "ArcRegionSwitch", "ARCRegionSwitchClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _ep1 = {
7
+ UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
8
+ };
9
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ApprovePlanExecutionStep$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ApprovePlanExecutionStepCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ArcRegionSwitch", "ApprovePlanExecutionStep", {})
13
- .n("ARCRegionSwitchClient", "ApprovePlanExecutionStepCommand")
14
- .sc(ApprovePlanExecutionStep$)
15
- .build() {
3
+ export class ApprovePlanExecutionStepCommand extends command(_ep0, _mw0, "ApprovePlanExecutionStep", ApprovePlanExecutionStep$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CancelPlanExecution$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CancelPlanExecutionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ArcRegionSwitch", "CancelPlanExecution", {})
13
- .n("ARCRegionSwitchClient", "CancelPlanExecutionCommand")
14
- .sc(CancelPlanExecution$)
15
- .build() {
3
+ export class CancelPlanExecutionCommand extends command(_ep0, _mw0, "CancelPlanExecution", CancelPlanExecution$) {
16
4
  }
@@ -1,19 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
4
2
  import { CreatePlan$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreatePlanCommand extends $Command
7
- .classBuilder()
8
- .ep({
9
- ...commonParams,
10
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
11
- })
12
- .m(function (Command, cs, config, o) {
13
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("ArcRegionSwitch", "CreatePlan", {})
16
- .n("ARCRegionSwitchClient", "CreatePlanCommand")
17
- .sc(CreatePlan$)
18
- .build() {
3
+ export class CreatePlanCommand extends command(_ep1, _mw0, "CreatePlan", CreatePlan$) {
19
4
  }
@@ -1,19 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
4
2
  import { DeletePlan$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeletePlanCommand extends $Command
7
- .classBuilder()
8
- .ep({
9
- ...commonParams,
10
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
11
- })
12
- .m(function (Command, cs, config, o) {
13
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("ArcRegionSwitch", "DeletePlan", {})
16
- .n("ARCRegionSwitchClient", "DeletePlanCommand")
17
- .sc(DeletePlan$)
18
- .build() {
3
+ export class DeletePlanCommand extends command(_ep1, _mw0, "DeletePlan", DeletePlan$) {
19
4
  }
@@ -1,19 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
4
2
  import { GetPlan$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetPlanCommand extends $Command
7
- .classBuilder()
8
- .ep({
9
- ...commonParams,
10
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
11
- })
12
- .m(function (Command, cs, config, o) {
13
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("ArcRegionSwitch", "GetPlan", {})
16
- .n("ARCRegionSwitchClient", "GetPlanCommand")
17
- .sc(GetPlan$)
18
- .build() {
3
+ export class GetPlanCommand extends command(_ep1, _mw0, "GetPlan", GetPlan$) {
19
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetPlanEvaluationStatus$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetPlanEvaluationStatusCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ArcRegionSwitch", "GetPlanEvaluationStatus", {})
13
- .n("ARCRegionSwitchClient", "GetPlanEvaluationStatusCommand")
14
- .sc(GetPlanEvaluationStatus$)
15
- .build() {
3
+ export class GetPlanEvaluationStatusCommand extends command(_ep0, _mw0, "GetPlanEvaluationStatus", GetPlanEvaluationStatus$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetPlanExecution$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetPlanExecutionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ArcRegionSwitch", "GetPlanExecution", {})
13
- .n("ARCRegionSwitchClient", "GetPlanExecutionCommand")
14
- .sc(GetPlanExecution$)
15
- .build() {
3
+ export class GetPlanExecutionCommand extends command(_ep0, _mw0, "GetPlanExecution", GetPlanExecution$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetPlanInRegion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetPlanInRegionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ArcRegionSwitch", "GetPlanInRegion", {})
13
- .n("ARCRegionSwitchClient", "GetPlanInRegionCommand")
14
- .sc(GetPlanInRegion$)
15
- .build() {
3
+ export class GetPlanInRegionCommand extends command(_ep0, _mw0, "GetPlanInRegion", GetPlanInRegion$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListPlanExecutionEvents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListPlanExecutionEventsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ArcRegionSwitch", "ListPlanExecutionEvents", {})
13
- .n("ARCRegionSwitchClient", "ListPlanExecutionEventsCommand")
14
- .sc(ListPlanExecutionEvents$)
15
- .build() {
3
+ export class ListPlanExecutionEventsCommand extends command(_ep0, _mw0, "ListPlanExecutionEvents", ListPlanExecutionEvents$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListPlanExecutions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListPlanExecutionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ArcRegionSwitch", "ListPlanExecutions", {})
13
- .n("ARCRegionSwitchClient", "ListPlanExecutionsCommand")
14
- .sc(ListPlanExecutions$)
15
- .build() {
3
+ export class ListPlanExecutionsCommand extends command(_ep0, _mw0, "ListPlanExecutions", ListPlanExecutions$) {
16
4
  }
@@ -1,19 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
4
2
  import { ListPlans$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListPlansCommand extends $Command
7
- .classBuilder()
8
- .ep({
9
- ...commonParams,
10
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
11
- })
12
- .m(function (Command, cs, config, o) {
13
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("ArcRegionSwitch", "ListPlans", {})
16
- .n("ARCRegionSwitchClient", "ListPlansCommand")
17
- .sc(ListPlans$)
18
- .build() {
3
+ export class ListPlansCommand extends command(_ep1, _mw0, "ListPlans", ListPlans$) {
19
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListPlansInRegion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListPlansInRegionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ArcRegionSwitch", "ListPlansInRegion", {})
13
- .n("ARCRegionSwitchClient", "ListPlansInRegionCommand")
14
- .sc(ListPlansInRegion$)
15
- .build() {
3
+ export class ListPlansInRegionCommand extends command(_ep0, _mw0, "ListPlansInRegion", ListPlansInRegion$) {
16
4
  }
@@ -1,19 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
4
2
  import { ListRoute53HealthChecks$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRoute53HealthChecksCommand extends $Command
7
- .classBuilder()
8
- .ep({
9
- ...commonParams,
10
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
11
- })
12
- .m(function (Command, cs, config, o) {
13
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("ArcRegionSwitch", "ListRoute53HealthChecks", {})
16
- .n("ARCRegionSwitchClient", "ListRoute53HealthChecksCommand")
17
- .sc(ListRoute53HealthChecks$)
18
- .build() {
3
+ export class ListRoute53HealthChecksCommand extends command(_ep1, _mw0, "ListRoute53HealthChecks", ListRoute53HealthChecks$) {
19
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListRoute53HealthChecksInRegion$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRoute53HealthChecksInRegionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ArcRegionSwitch", "ListRoute53HealthChecksInRegion", {})
13
- .n("ARCRegionSwitchClient", "ListRoute53HealthChecksInRegionCommand")
14
- .sc(ListRoute53HealthChecksInRegion$)
15
- .build() {
3
+ export class ListRoute53HealthChecksInRegionCommand extends command(_ep0, _mw0, "ListRoute53HealthChecksInRegion", ListRoute53HealthChecksInRegion$) {
16
4
  }
@@ -1,19 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep({
9
- ...commonParams,
10
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
11
- })
12
- .m(function (Command, cs, config, o) {
13
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("ArcRegionSwitch", "ListTagsForResource", {})
16
- .n("ARCRegionSwitchClient", "ListTagsForResourceCommand")
17
- .sc(ListTagsForResource$)
18
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep1, _mw0, "ListTagsForResource", ListTagsForResource$) {
19
4
  }