@aws-sdk/client-arc-region-switch 3.1076.0 → 3.1078.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 (83) hide show
  1. package/dist-cjs/index.js +35 -242
  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-es/runtimeConfig.browser.js +0 -2
  26. package/dist-es/runtimeConfig.js +1 -2
  27. package/dist-es/runtimeConfig.native.js +0 -2
  28. package/dist-es/runtimeConfig.shared.js +2 -0
  29. package/dist-types/commandBuilder.d.ts +22 -0
  30. package/dist-types/commands/ApprovePlanExecutionStepCommand.d.ts +3 -8
  31. package/dist-types/commands/CancelPlanExecutionCommand.d.ts +3 -8
  32. package/dist-types/commands/CreatePlanCommand.d.ts +3 -8
  33. package/dist-types/commands/DeletePlanCommand.d.ts +3 -8
  34. package/dist-types/commands/GetPlanCommand.d.ts +3 -8
  35. package/dist-types/commands/GetPlanEvaluationStatusCommand.d.ts +3 -8
  36. package/dist-types/commands/GetPlanExecutionCommand.d.ts +3 -8
  37. package/dist-types/commands/GetPlanInRegionCommand.d.ts +3 -8
  38. package/dist-types/commands/ListPlanExecutionEventsCommand.d.ts +3 -8
  39. package/dist-types/commands/ListPlanExecutionsCommand.d.ts +3 -8
  40. package/dist-types/commands/ListPlansCommand.d.ts +3 -8
  41. package/dist-types/commands/ListPlansInRegionCommand.d.ts +3 -8
  42. package/dist-types/commands/ListRoute53HealthChecksCommand.d.ts +3 -8
  43. package/dist-types/commands/ListRoute53HealthChecksInRegionCommand.d.ts +3 -8
  44. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  45. package/dist-types/commands/StartPlanExecutionCommand.d.ts +3 -8
  46. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  47. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  48. package/dist-types/commands/UpdatePlanCommand.d.ts +3 -8
  49. package/dist-types/commands/UpdatePlanExecutionCommand.d.ts +3 -8
  50. package/dist-types/commands/UpdatePlanExecutionStepCommand.d.ts +3 -8
  51. package/dist-types/index.d.ts +1 -0
  52. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  53. package/dist-types/runtimeConfig.d.ts +1 -1
  54. package/dist-types/runtimeConfig.native.d.ts +1 -1
  55. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  56. package/dist-types/ts3.4/commandBuilder.d.ts +47 -0
  57. package/dist-types/ts3.4/commands/ApprovePlanExecutionStepCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/CancelPlanExecutionCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/CreatePlanCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/DeletePlanCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/GetPlanCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/GetPlanEvaluationStatusCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/GetPlanExecutionCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/GetPlanInRegionCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/ListPlanExecutionEventsCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/ListPlanExecutionsCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/ListPlansCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/ListPlansInRegionCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/ListRoute53HealthChecksCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/ListRoute53HealthChecksInRegionCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/StartPlanExecutionCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/UpdatePlanCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/UpdatePlanExecutionCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/UpdatePlanExecutionStepCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/index.d.ts +1 -0
  79. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  80. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  81. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  82. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  83. package/package.json +8 -10
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");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultARCRegionSwitchHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -65,7 +67,7 @@ const commonParams = {
65
67
  Region: { type: "builtInParams", name: "region" },
66
68
  };
67
69
 
68
- var version = "3.1075.0";
70
+ var version = "3.1077.0";
69
71
  var packageInfo = {
70
72
  version: version};
71
73
 
@@ -1166,6 +1168,7 @@ const getRuntimeConfig$1 = (config) => {
1166
1168
  serviceTarget: "ArcRegionSwitch",
1167
1169
  },
1168
1170
  serviceId: config?.serviceId ?? "ARC Region switch",
1171
+ sha256: config?.sha256 ?? Sha256,
1169
1172
  urlParser: config?.urlParser ?? parseUrl,
1170
1173
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1171
1174
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1199,7 +1202,6 @@ const getRuntimeConfig = (config) => {
1199
1202
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1200
1203
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1201
1204
  }, config),
1202
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1203
1205
  streamCollector: config?.streamCollector ?? streamCollector,
1204
1206
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1205
1207
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1287,283 +1289,74 @@ class ARCRegionSwitchClient extends Client {
1287
1289
  }
1288
1290
  }
1289
1291
 
1290
- class ApprovePlanExecutionStepCommand extends Command
1291
- .classBuilder()
1292
- .ep(commonParams)
1293
- .m(function (Command, cs, config, o) {
1294
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1295
- })
1296
- .s("ArcRegionSwitch", "ApprovePlanExecutionStep", {})
1297
- .n("ARCRegionSwitchClient", "ApprovePlanExecutionStepCommand")
1298
- .sc(ApprovePlanExecutionStep$)
1299
- .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$) {
1300
1300
  }
1301
1301
 
1302
- class CancelPlanExecutionCommand extends Command
1303
- .classBuilder()
1304
- .ep(commonParams)
1305
- .m(function (Command, cs, config, o) {
1306
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1307
- })
1308
- .s("ArcRegionSwitch", "CancelPlanExecution", {})
1309
- .n("ARCRegionSwitchClient", "CancelPlanExecutionCommand")
1310
- .sc(CancelPlanExecution$)
1311
- .build() {
1302
+ class CancelPlanExecutionCommand extends command(_ep0, _mw0, "CancelPlanExecution", CancelPlanExecution$) {
1312
1303
  }
1313
1304
 
1314
- class CreatePlanCommand extends Command
1315
- .classBuilder()
1316
- .ep({
1317
- ...commonParams,
1318
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1319
- })
1320
- .m(function (Command, cs, config, o) {
1321
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1322
- })
1323
- .s("ArcRegionSwitch", "CreatePlan", {})
1324
- .n("ARCRegionSwitchClient", "CreatePlanCommand")
1325
- .sc(CreatePlan$)
1326
- .build() {
1305
+ class CreatePlanCommand extends command(_ep1, _mw0, "CreatePlan", CreatePlan$) {
1327
1306
  }
1328
1307
 
1329
- class DeletePlanCommand extends Command
1330
- .classBuilder()
1331
- .ep({
1332
- ...commonParams,
1333
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1334
- })
1335
- .m(function (Command, cs, config, o) {
1336
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1337
- })
1338
- .s("ArcRegionSwitch", "DeletePlan", {})
1339
- .n("ARCRegionSwitchClient", "DeletePlanCommand")
1340
- .sc(DeletePlan$)
1341
- .build() {
1308
+ class DeletePlanCommand extends command(_ep1, _mw0, "DeletePlan", DeletePlan$) {
1342
1309
  }
1343
1310
 
1344
- class GetPlanCommand extends Command
1345
- .classBuilder()
1346
- .ep({
1347
- ...commonParams,
1348
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1349
- })
1350
- .m(function (Command, cs, config, o) {
1351
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1352
- })
1353
- .s("ArcRegionSwitch", "GetPlan", {})
1354
- .n("ARCRegionSwitchClient", "GetPlanCommand")
1355
- .sc(GetPlan$)
1356
- .build() {
1311
+ class GetPlanCommand extends command(_ep1, _mw0, "GetPlan", GetPlan$) {
1357
1312
  }
1358
1313
 
1359
- class GetPlanEvaluationStatusCommand extends Command
1360
- .classBuilder()
1361
- .ep(commonParams)
1362
- .m(function (Command, cs, config, o) {
1363
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1364
- })
1365
- .s("ArcRegionSwitch", "GetPlanEvaluationStatus", {})
1366
- .n("ARCRegionSwitchClient", "GetPlanEvaluationStatusCommand")
1367
- .sc(GetPlanEvaluationStatus$)
1368
- .build() {
1314
+ class GetPlanEvaluationStatusCommand extends command(_ep0, _mw0, "GetPlanEvaluationStatus", GetPlanEvaluationStatus$) {
1369
1315
  }
1370
1316
 
1371
- class GetPlanExecutionCommand extends Command
1372
- .classBuilder()
1373
- .ep(commonParams)
1374
- .m(function (Command, cs, config, o) {
1375
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1376
- })
1377
- .s("ArcRegionSwitch", "GetPlanExecution", {})
1378
- .n("ARCRegionSwitchClient", "GetPlanExecutionCommand")
1379
- .sc(GetPlanExecution$)
1380
- .build() {
1317
+ class GetPlanExecutionCommand extends command(_ep0, _mw0, "GetPlanExecution", GetPlanExecution$) {
1381
1318
  }
1382
1319
 
1383
- class GetPlanInRegionCommand extends Command
1384
- .classBuilder()
1385
- .ep(commonParams)
1386
- .m(function (Command, cs, config, o) {
1387
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1388
- })
1389
- .s("ArcRegionSwitch", "GetPlanInRegion", {})
1390
- .n("ARCRegionSwitchClient", "GetPlanInRegionCommand")
1391
- .sc(GetPlanInRegion$)
1392
- .build() {
1320
+ class GetPlanInRegionCommand extends command(_ep0, _mw0, "GetPlanInRegion", GetPlanInRegion$) {
1393
1321
  }
1394
1322
 
1395
- class ListPlanExecutionEventsCommand extends Command
1396
- .classBuilder()
1397
- .ep(commonParams)
1398
- .m(function (Command, cs, config, o) {
1399
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1400
- })
1401
- .s("ArcRegionSwitch", "ListPlanExecutionEvents", {})
1402
- .n("ARCRegionSwitchClient", "ListPlanExecutionEventsCommand")
1403
- .sc(ListPlanExecutionEvents$)
1404
- .build() {
1323
+ class ListPlanExecutionEventsCommand extends command(_ep0, _mw0, "ListPlanExecutionEvents", ListPlanExecutionEvents$) {
1405
1324
  }
1406
1325
 
1407
- class ListPlanExecutionsCommand extends Command
1408
- .classBuilder()
1409
- .ep(commonParams)
1410
- .m(function (Command, cs, config, o) {
1411
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1412
- })
1413
- .s("ArcRegionSwitch", "ListPlanExecutions", {})
1414
- .n("ARCRegionSwitchClient", "ListPlanExecutionsCommand")
1415
- .sc(ListPlanExecutions$)
1416
- .build() {
1326
+ class ListPlanExecutionsCommand extends command(_ep0, _mw0, "ListPlanExecutions", ListPlanExecutions$) {
1417
1327
  }
1418
1328
 
1419
- class ListPlansCommand extends Command
1420
- .classBuilder()
1421
- .ep({
1422
- ...commonParams,
1423
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1424
- })
1425
- .m(function (Command, cs, config, o) {
1426
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1427
- })
1428
- .s("ArcRegionSwitch", "ListPlans", {})
1429
- .n("ARCRegionSwitchClient", "ListPlansCommand")
1430
- .sc(ListPlans$)
1431
- .build() {
1329
+ class ListPlansCommand extends command(_ep1, _mw0, "ListPlans", ListPlans$) {
1432
1330
  }
1433
1331
 
1434
- class ListPlansInRegionCommand extends Command
1435
- .classBuilder()
1436
- .ep(commonParams)
1437
- .m(function (Command, cs, config, o) {
1438
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1439
- })
1440
- .s("ArcRegionSwitch", "ListPlansInRegion", {})
1441
- .n("ARCRegionSwitchClient", "ListPlansInRegionCommand")
1442
- .sc(ListPlansInRegion$)
1443
- .build() {
1332
+ class ListPlansInRegionCommand extends command(_ep0, _mw0, "ListPlansInRegion", ListPlansInRegion$) {
1444
1333
  }
1445
1334
 
1446
- class ListRoute53HealthChecksCommand extends Command
1447
- .classBuilder()
1448
- .ep({
1449
- ...commonParams,
1450
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1451
- })
1452
- .m(function (Command, cs, config, o) {
1453
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1454
- })
1455
- .s("ArcRegionSwitch", "ListRoute53HealthChecks", {})
1456
- .n("ARCRegionSwitchClient", "ListRoute53HealthChecksCommand")
1457
- .sc(ListRoute53HealthChecks$)
1458
- .build() {
1335
+ class ListRoute53HealthChecksCommand extends command(_ep1, _mw0, "ListRoute53HealthChecks", ListRoute53HealthChecks$) {
1459
1336
  }
1460
1337
 
1461
- class ListRoute53HealthChecksInRegionCommand extends Command
1462
- .classBuilder()
1463
- .ep(commonParams)
1464
- .m(function (Command, cs, config, o) {
1465
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1466
- })
1467
- .s("ArcRegionSwitch", "ListRoute53HealthChecksInRegion", {})
1468
- .n("ARCRegionSwitchClient", "ListRoute53HealthChecksInRegionCommand")
1469
- .sc(ListRoute53HealthChecksInRegion$)
1470
- .build() {
1338
+ class ListRoute53HealthChecksInRegionCommand extends command(_ep0, _mw0, "ListRoute53HealthChecksInRegion", ListRoute53HealthChecksInRegion$) {
1471
1339
  }
1472
1340
 
1473
- class ListTagsForResourceCommand extends Command
1474
- .classBuilder()
1475
- .ep({
1476
- ...commonParams,
1477
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1478
- })
1479
- .m(function (Command, cs, config, o) {
1480
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1481
- })
1482
- .s("ArcRegionSwitch", "ListTagsForResource", {})
1483
- .n("ARCRegionSwitchClient", "ListTagsForResourceCommand")
1484
- .sc(ListTagsForResource$)
1485
- .build() {
1341
+ class ListTagsForResourceCommand extends command(_ep1, _mw0, "ListTagsForResource", ListTagsForResource$) {
1486
1342
  }
1487
1343
 
1488
- class StartPlanExecutionCommand extends Command
1489
- .classBuilder()
1490
- .ep(commonParams)
1491
- .m(function (Command, cs, config, o) {
1492
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1493
- })
1494
- .s("ArcRegionSwitch", "StartPlanExecution", {})
1495
- .n("ARCRegionSwitchClient", "StartPlanExecutionCommand")
1496
- .sc(StartPlanExecution$)
1497
- .build() {
1344
+ class StartPlanExecutionCommand extends command(_ep0, _mw0, "StartPlanExecution", StartPlanExecution$) {
1498
1345
  }
1499
1346
 
1500
- class TagResourceCommand extends Command
1501
- .classBuilder()
1502
- .ep({
1503
- ...commonParams,
1504
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1505
- })
1506
- .m(function (Command, cs, config, o) {
1507
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1508
- })
1509
- .s("ArcRegionSwitch", "TagResource", {})
1510
- .n("ARCRegionSwitchClient", "TagResourceCommand")
1511
- .sc(TagResource$)
1512
- .build() {
1347
+ class TagResourceCommand extends command(_ep1, _mw0, "TagResource", TagResource$) {
1513
1348
  }
1514
1349
 
1515
- class UntagResourceCommand extends Command
1516
- .classBuilder()
1517
- .ep({
1518
- ...commonParams,
1519
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1520
- })
1521
- .m(function (Command, cs, config, o) {
1522
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1523
- })
1524
- .s("ArcRegionSwitch", "UntagResource", {})
1525
- .n("ARCRegionSwitchClient", "UntagResourceCommand")
1526
- .sc(UntagResource$)
1527
- .build() {
1350
+ class UntagResourceCommand extends command(_ep1, _mw0, "UntagResource", UntagResource$) {
1528
1351
  }
1529
1352
 
1530
- class UpdatePlanCommand extends Command
1531
- .classBuilder()
1532
- .ep({
1533
- ...commonParams,
1534
- UseControlPlaneEndpoint: { type: "staticContextParams", value: true },
1535
- })
1536
- .m(function (Command, cs, config, o) {
1537
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1538
- })
1539
- .s("ArcRegionSwitch", "UpdatePlan", {})
1540
- .n("ARCRegionSwitchClient", "UpdatePlanCommand")
1541
- .sc(UpdatePlan$)
1542
- .build() {
1353
+ class UpdatePlanCommand extends command(_ep1, _mw0, "UpdatePlan", UpdatePlan$) {
1543
1354
  }
1544
1355
 
1545
- class UpdatePlanExecutionCommand extends Command
1546
- .classBuilder()
1547
- .ep(commonParams)
1548
- .m(function (Command, cs, config, o) {
1549
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1550
- })
1551
- .s("ArcRegionSwitch", "UpdatePlanExecution", {})
1552
- .n("ARCRegionSwitchClient", "UpdatePlanExecutionCommand")
1553
- .sc(UpdatePlanExecution$)
1554
- .build() {
1356
+ class UpdatePlanExecutionCommand extends command(_ep0, _mw0, "UpdatePlanExecution", UpdatePlanExecution$) {
1555
1357
  }
1556
1358
 
1557
- class UpdatePlanExecutionStepCommand extends Command
1558
- .classBuilder()
1559
- .ep(commonParams)
1560
- .m(function (Command, cs, config, o) {
1561
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1562
- })
1563
- .s("ArcRegionSwitch", "UpdatePlanExecutionStep", {})
1564
- .n("ARCRegionSwitchClient", "UpdatePlanExecutionStepCommand")
1565
- .sc(UpdatePlanExecutionStep$)
1566
- .build() {
1359
+ class UpdatePlanExecutionStepCommand extends command(_ep0, _mw0, "UpdatePlanExecutionStep", UpdatePlanExecutionStep$) {
1567
1360
  }
1568
1361
 
1569
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
  }