@aws-sdk/client-amplifybackend 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 (113) hide show
  1. package/dist-cjs/index.js +42 -315
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CloneBackendCommand.js +2 -14
  4. package/dist-es/commands/CreateBackendAPICommand.js +2 -14
  5. package/dist-es/commands/CreateBackendAuthCommand.js +2 -14
  6. package/dist-es/commands/CreateBackendCommand.js +2 -14
  7. package/dist-es/commands/CreateBackendConfigCommand.js +2 -14
  8. package/dist-es/commands/CreateBackendStorageCommand.js +2 -14
  9. package/dist-es/commands/CreateTokenCommand.js +2 -14
  10. package/dist-es/commands/DeleteBackendAPICommand.js +2 -14
  11. package/dist-es/commands/DeleteBackendAuthCommand.js +2 -14
  12. package/dist-es/commands/DeleteBackendCommand.js +2 -14
  13. package/dist-es/commands/DeleteBackendStorageCommand.js +2 -14
  14. package/dist-es/commands/DeleteTokenCommand.js +2 -14
  15. package/dist-es/commands/GenerateBackendAPIModelsCommand.js +2 -14
  16. package/dist-es/commands/GetBackendAPICommand.js +2 -14
  17. package/dist-es/commands/GetBackendAPIModelsCommand.js +2 -14
  18. package/dist-es/commands/GetBackendAuthCommand.js +2 -14
  19. package/dist-es/commands/GetBackendCommand.js +2 -14
  20. package/dist-es/commands/GetBackendJobCommand.js +2 -14
  21. package/dist-es/commands/GetBackendStorageCommand.js +2 -14
  22. package/dist-es/commands/GetTokenCommand.js +2 -14
  23. package/dist-es/commands/ImportBackendAuthCommand.js +2 -14
  24. package/dist-es/commands/ImportBackendStorageCommand.js +2 -14
  25. package/dist-es/commands/ListBackendJobsCommand.js +2 -14
  26. package/dist-es/commands/ListS3BucketsCommand.js +2 -14
  27. package/dist-es/commands/RemoveAllBackendsCommand.js +2 -14
  28. package/dist-es/commands/RemoveBackendConfigCommand.js +2 -14
  29. package/dist-es/commands/UpdateBackendAPICommand.js +2 -14
  30. package/dist-es/commands/UpdateBackendAuthCommand.js +2 -14
  31. package/dist-es/commands/UpdateBackendConfigCommand.js +2 -14
  32. package/dist-es/commands/UpdateBackendJobCommand.js +2 -14
  33. package/dist-es/commands/UpdateBackendStorageCommand.js +2 -14
  34. package/dist-es/index.js +1 -0
  35. package/dist-es/runtimeConfig.browser.js +0 -2
  36. package/dist-es/runtimeConfig.js +1 -2
  37. package/dist-es/runtimeConfig.native.js +0 -2
  38. package/dist-es/runtimeConfig.shared.js +2 -0
  39. package/dist-types/commandBuilder.d.ts +18 -0
  40. package/dist-types/commands/CloneBackendCommand.d.ts +3 -8
  41. package/dist-types/commands/CreateBackendAPICommand.d.ts +3 -8
  42. package/dist-types/commands/CreateBackendAuthCommand.d.ts +3 -8
  43. package/dist-types/commands/CreateBackendCommand.d.ts +3 -8
  44. package/dist-types/commands/CreateBackendConfigCommand.d.ts +3 -8
  45. package/dist-types/commands/CreateBackendStorageCommand.d.ts +3 -8
  46. package/dist-types/commands/CreateTokenCommand.d.ts +3 -8
  47. package/dist-types/commands/DeleteBackendAPICommand.d.ts +3 -8
  48. package/dist-types/commands/DeleteBackendAuthCommand.d.ts +3 -8
  49. package/dist-types/commands/DeleteBackendCommand.d.ts +3 -8
  50. package/dist-types/commands/DeleteBackendStorageCommand.d.ts +3 -8
  51. package/dist-types/commands/DeleteTokenCommand.d.ts +3 -8
  52. package/dist-types/commands/GenerateBackendAPIModelsCommand.d.ts +3 -8
  53. package/dist-types/commands/GetBackendAPICommand.d.ts +3 -8
  54. package/dist-types/commands/GetBackendAPIModelsCommand.d.ts +3 -8
  55. package/dist-types/commands/GetBackendAuthCommand.d.ts +3 -8
  56. package/dist-types/commands/GetBackendCommand.d.ts +3 -8
  57. package/dist-types/commands/GetBackendJobCommand.d.ts +3 -8
  58. package/dist-types/commands/GetBackendStorageCommand.d.ts +3 -8
  59. package/dist-types/commands/GetTokenCommand.d.ts +3 -8
  60. package/dist-types/commands/ImportBackendAuthCommand.d.ts +3 -8
  61. package/dist-types/commands/ImportBackendStorageCommand.d.ts +3 -8
  62. package/dist-types/commands/ListBackendJobsCommand.d.ts +3 -8
  63. package/dist-types/commands/ListS3BucketsCommand.d.ts +3 -8
  64. package/dist-types/commands/RemoveAllBackendsCommand.d.ts +3 -8
  65. package/dist-types/commands/RemoveBackendConfigCommand.d.ts +3 -8
  66. package/dist-types/commands/UpdateBackendAPICommand.d.ts +3 -8
  67. package/dist-types/commands/UpdateBackendAuthCommand.d.ts +3 -8
  68. package/dist-types/commands/UpdateBackendConfigCommand.d.ts +3 -8
  69. package/dist-types/commands/UpdateBackendJobCommand.d.ts +3 -8
  70. package/dist-types/commands/UpdateBackendStorageCommand.d.ts +3 -8
  71. package/dist-types/index.d.ts +1 -0
  72. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  73. package/dist-types/runtimeConfig.d.ts +1 -1
  74. package/dist-types/runtimeConfig.native.d.ts +1 -1
  75. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  76. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  77. package/dist-types/ts3.4/commands/CloneBackendCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/CreateBackendAPICommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/CreateBackendAuthCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/CreateBackendCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/CreateBackendConfigCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/CreateBackendStorageCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/commands/DeleteBackendAPICommand.d.ts +7 -16
  85. package/dist-types/ts3.4/commands/DeleteBackendAuthCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/DeleteBackendCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/DeleteBackendStorageCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/DeleteTokenCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/GenerateBackendAPIModelsCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/GetBackendAPICommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/GetBackendAPIModelsCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/GetBackendAuthCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/GetBackendCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/GetBackendJobCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/GetBackendStorageCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/GetTokenCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/ImportBackendAuthCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/ImportBackendStorageCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/ListBackendJobsCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/ListS3BucketsCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/RemoveAllBackendsCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/RemoveBackendConfigCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/UpdateBackendAPICommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/UpdateBackendAuthCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/commands/UpdateBackendConfigCommand.d.ts +7 -16
  106. package/dist-types/ts3.4/commands/UpdateBackendJobCommand.d.ts +7 -16
  107. package/dist-types/ts3.4/commands/UpdateBackendStorageCommand.d.ts +7 -16
  108. package/dist-types/ts3.4/index.d.ts +1 -0
  109. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  110. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  111. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  112. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  113. 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 } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, 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 { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultAmplifyBackendHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -1175,6 +1177,7 @@ const getRuntimeConfig$1 = (config) => {
1175
1177
  serviceTarget: "AmplifyBackend",
1176
1178
  },
1177
1179
  serviceId: config?.serviceId ?? "AmplifyBackend",
1180
+ sha256: config?.sha256 ?? Sha256,
1178
1181
  urlParser: config?.urlParser ?? parseUrl,
1179
1182
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1180
1183
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1208,7 +1211,6 @@ const getRuntimeConfig = (config) => {
1208
1211
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1209
1212
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1210
1213
  }, config),
1211
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1212
1214
  streamCollector: config?.streamCollector ?? streamCollector,
1213
1215
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1214
1216
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1296,376 +1298,101 @@ class AmplifyBackendClient extends Client {
1296
1298
  }
1297
1299
  }
1298
1300
 
1299
- class CloneBackendCommand extends Command
1300
- .classBuilder()
1301
- .ep(commonParams)
1302
- .m(function (Command, cs, config, o) {
1303
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1304
- })
1305
- .s("AmplifyBackend", "CloneBackend", {})
1306
- .n("AmplifyBackendClient", "CloneBackendCommand")
1307
- .sc(CloneBackend$)
1308
- .build() {
1301
+ const command = makeBuilder(commonParams, "AmplifyBackend", "AmplifyBackendClient", getEndpointPlugin);
1302
+ const _ep0 = {};
1303
+ const _mw0 = (Command, cs, config, o) => [];
1304
+
1305
+ class CloneBackendCommand extends command(_ep0, _mw0, "CloneBackend", CloneBackend$) {
1309
1306
  }
1310
1307
 
1311
- class CreateBackendAPICommand extends Command
1312
- .classBuilder()
1313
- .ep(commonParams)
1314
- .m(function (Command, cs, config, o) {
1315
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1316
- })
1317
- .s("AmplifyBackend", "CreateBackendAPI", {})
1318
- .n("AmplifyBackendClient", "CreateBackendAPICommand")
1319
- .sc(CreateBackendAPI$)
1320
- .build() {
1308
+ class CreateBackendAPICommand extends command(_ep0, _mw0, "CreateBackendAPI", CreateBackendAPI$) {
1321
1309
  }
1322
1310
 
1323
- class CreateBackendAuthCommand extends Command
1324
- .classBuilder()
1325
- .ep(commonParams)
1326
- .m(function (Command, cs, config, o) {
1327
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1328
- })
1329
- .s("AmplifyBackend", "CreateBackendAuth", {})
1330
- .n("AmplifyBackendClient", "CreateBackendAuthCommand")
1331
- .sc(CreateBackendAuth$)
1332
- .build() {
1311
+ class CreateBackendAuthCommand extends command(_ep0, _mw0, "CreateBackendAuth", CreateBackendAuth$) {
1333
1312
  }
1334
1313
 
1335
- class CreateBackendCommand extends Command
1336
- .classBuilder()
1337
- .ep(commonParams)
1338
- .m(function (Command, cs, config, o) {
1339
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1340
- })
1341
- .s("AmplifyBackend", "CreateBackend", {})
1342
- .n("AmplifyBackendClient", "CreateBackendCommand")
1343
- .sc(CreateBackend$)
1344
- .build() {
1314
+ class CreateBackendCommand extends command(_ep0, _mw0, "CreateBackend", CreateBackend$) {
1345
1315
  }
1346
1316
 
1347
- class CreateBackendConfigCommand extends Command
1348
- .classBuilder()
1349
- .ep(commonParams)
1350
- .m(function (Command, cs, config, o) {
1351
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1352
- })
1353
- .s("AmplifyBackend", "CreateBackendConfig", {})
1354
- .n("AmplifyBackendClient", "CreateBackendConfigCommand")
1355
- .sc(CreateBackendConfig$)
1356
- .build() {
1317
+ class CreateBackendConfigCommand extends command(_ep0, _mw0, "CreateBackendConfig", CreateBackendConfig$) {
1357
1318
  }
1358
1319
 
1359
- class CreateBackendStorageCommand extends Command
1360
- .classBuilder()
1361
- .ep(commonParams)
1362
- .m(function (Command, cs, config, o) {
1363
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1364
- })
1365
- .s("AmplifyBackend", "CreateBackendStorage", {})
1366
- .n("AmplifyBackendClient", "CreateBackendStorageCommand")
1367
- .sc(CreateBackendStorage$)
1368
- .build() {
1320
+ class CreateBackendStorageCommand extends command(_ep0, _mw0, "CreateBackendStorage", CreateBackendStorage$) {
1369
1321
  }
1370
1322
 
1371
- class CreateTokenCommand extends Command
1372
- .classBuilder()
1373
- .ep(commonParams)
1374
- .m(function (Command, cs, config, o) {
1375
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1376
- })
1377
- .s("AmplifyBackend", "CreateToken", {})
1378
- .n("AmplifyBackendClient", "CreateTokenCommand")
1379
- .sc(CreateToken$)
1380
- .build() {
1323
+ class CreateTokenCommand extends command(_ep0, _mw0, "CreateToken", CreateToken$) {
1381
1324
  }
1382
1325
 
1383
- class DeleteBackendAPICommand extends Command
1384
- .classBuilder()
1385
- .ep(commonParams)
1386
- .m(function (Command, cs, config, o) {
1387
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1388
- })
1389
- .s("AmplifyBackend", "DeleteBackendAPI", {})
1390
- .n("AmplifyBackendClient", "DeleteBackendAPICommand")
1391
- .sc(DeleteBackendAPI$)
1392
- .build() {
1326
+ class DeleteBackendAPICommand extends command(_ep0, _mw0, "DeleteBackendAPI", DeleteBackendAPI$) {
1393
1327
  }
1394
1328
 
1395
- class DeleteBackendAuthCommand extends Command
1396
- .classBuilder()
1397
- .ep(commonParams)
1398
- .m(function (Command, cs, config, o) {
1399
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1400
- })
1401
- .s("AmplifyBackend", "DeleteBackendAuth", {})
1402
- .n("AmplifyBackendClient", "DeleteBackendAuthCommand")
1403
- .sc(DeleteBackendAuth$)
1404
- .build() {
1329
+ class DeleteBackendAuthCommand extends command(_ep0, _mw0, "DeleteBackendAuth", DeleteBackendAuth$) {
1405
1330
  }
1406
1331
 
1407
- class DeleteBackendCommand extends Command
1408
- .classBuilder()
1409
- .ep(commonParams)
1410
- .m(function (Command, cs, config, o) {
1411
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1412
- })
1413
- .s("AmplifyBackend", "DeleteBackend", {})
1414
- .n("AmplifyBackendClient", "DeleteBackendCommand")
1415
- .sc(DeleteBackend$)
1416
- .build() {
1332
+ class DeleteBackendCommand extends command(_ep0, _mw0, "DeleteBackend", DeleteBackend$) {
1417
1333
  }
1418
1334
 
1419
- class DeleteBackendStorageCommand extends Command
1420
- .classBuilder()
1421
- .ep(commonParams)
1422
- .m(function (Command, cs, config, o) {
1423
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1424
- })
1425
- .s("AmplifyBackend", "DeleteBackendStorage", {})
1426
- .n("AmplifyBackendClient", "DeleteBackendStorageCommand")
1427
- .sc(DeleteBackendStorage$)
1428
- .build() {
1335
+ class DeleteBackendStorageCommand extends command(_ep0, _mw0, "DeleteBackendStorage", DeleteBackendStorage$) {
1429
1336
  }
1430
1337
 
1431
- class DeleteTokenCommand extends Command
1432
- .classBuilder()
1433
- .ep(commonParams)
1434
- .m(function (Command, cs, config, o) {
1435
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1436
- })
1437
- .s("AmplifyBackend", "DeleteToken", {})
1438
- .n("AmplifyBackendClient", "DeleteTokenCommand")
1439
- .sc(DeleteToken$)
1440
- .build() {
1338
+ class DeleteTokenCommand extends command(_ep0, _mw0, "DeleteToken", DeleteToken$) {
1441
1339
  }
1442
1340
 
1443
- class GenerateBackendAPIModelsCommand extends Command
1444
- .classBuilder()
1445
- .ep(commonParams)
1446
- .m(function (Command, cs, config, o) {
1447
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1448
- })
1449
- .s("AmplifyBackend", "GenerateBackendAPIModels", {})
1450
- .n("AmplifyBackendClient", "GenerateBackendAPIModelsCommand")
1451
- .sc(GenerateBackendAPIModels$)
1452
- .build() {
1341
+ class GenerateBackendAPIModelsCommand extends command(_ep0, _mw0, "GenerateBackendAPIModels", GenerateBackendAPIModels$) {
1453
1342
  }
1454
1343
 
1455
- class GetBackendAPICommand extends Command
1456
- .classBuilder()
1457
- .ep(commonParams)
1458
- .m(function (Command, cs, config, o) {
1459
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1460
- })
1461
- .s("AmplifyBackend", "GetBackendAPI", {})
1462
- .n("AmplifyBackendClient", "GetBackendAPICommand")
1463
- .sc(GetBackendAPI$)
1464
- .build() {
1344
+ class GetBackendAPICommand extends command(_ep0, _mw0, "GetBackendAPI", GetBackendAPI$) {
1465
1345
  }
1466
1346
 
1467
- class GetBackendAPIModelsCommand extends Command
1468
- .classBuilder()
1469
- .ep(commonParams)
1470
- .m(function (Command, cs, config, o) {
1471
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1472
- })
1473
- .s("AmplifyBackend", "GetBackendAPIModels", {})
1474
- .n("AmplifyBackendClient", "GetBackendAPIModelsCommand")
1475
- .sc(GetBackendAPIModels$)
1476
- .build() {
1347
+ class GetBackendAPIModelsCommand extends command(_ep0, _mw0, "GetBackendAPIModels", GetBackendAPIModels$) {
1477
1348
  }
1478
1349
 
1479
- class GetBackendAuthCommand extends Command
1480
- .classBuilder()
1481
- .ep(commonParams)
1482
- .m(function (Command, cs, config, o) {
1483
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1484
- })
1485
- .s("AmplifyBackend", "GetBackendAuth", {})
1486
- .n("AmplifyBackendClient", "GetBackendAuthCommand")
1487
- .sc(GetBackendAuth$)
1488
- .build() {
1350
+ class GetBackendAuthCommand extends command(_ep0, _mw0, "GetBackendAuth", GetBackendAuth$) {
1489
1351
  }
1490
1352
 
1491
- class GetBackendCommand extends Command
1492
- .classBuilder()
1493
- .ep(commonParams)
1494
- .m(function (Command, cs, config, o) {
1495
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1496
- })
1497
- .s("AmplifyBackend", "GetBackend", {})
1498
- .n("AmplifyBackendClient", "GetBackendCommand")
1499
- .sc(GetBackend$)
1500
- .build() {
1353
+ class GetBackendCommand extends command(_ep0, _mw0, "GetBackend", GetBackend$) {
1501
1354
  }
1502
1355
 
1503
- class GetBackendJobCommand extends Command
1504
- .classBuilder()
1505
- .ep(commonParams)
1506
- .m(function (Command, cs, config, o) {
1507
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1508
- })
1509
- .s("AmplifyBackend", "GetBackendJob", {})
1510
- .n("AmplifyBackendClient", "GetBackendJobCommand")
1511
- .sc(GetBackendJob$)
1512
- .build() {
1356
+ class GetBackendJobCommand extends command(_ep0, _mw0, "GetBackendJob", GetBackendJob$) {
1513
1357
  }
1514
1358
 
1515
- class GetBackendStorageCommand extends Command
1516
- .classBuilder()
1517
- .ep(commonParams)
1518
- .m(function (Command, cs, config, o) {
1519
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1520
- })
1521
- .s("AmplifyBackend", "GetBackendStorage", {})
1522
- .n("AmplifyBackendClient", "GetBackendStorageCommand")
1523
- .sc(GetBackendStorage$)
1524
- .build() {
1359
+ class GetBackendStorageCommand extends command(_ep0, _mw0, "GetBackendStorage", GetBackendStorage$) {
1525
1360
  }
1526
1361
 
1527
- class GetTokenCommand extends Command
1528
- .classBuilder()
1529
- .ep(commonParams)
1530
- .m(function (Command, cs, config, o) {
1531
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1532
- })
1533
- .s("AmplifyBackend", "GetToken", {})
1534
- .n("AmplifyBackendClient", "GetTokenCommand")
1535
- .sc(GetToken$)
1536
- .build() {
1362
+ class GetTokenCommand extends command(_ep0, _mw0, "GetToken", GetToken$) {
1537
1363
  }
1538
1364
 
1539
- class ImportBackendAuthCommand extends Command
1540
- .classBuilder()
1541
- .ep(commonParams)
1542
- .m(function (Command, cs, config, o) {
1543
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1544
- })
1545
- .s("AmplifyBackend", "ImportBackendAuth", {})
1546
- .n("AmplifyBackendClient", "ImportBackendAuthCommand")
1547
- .sc(ImportBackendAuth$)
1548
- .build() {
1365
+ class ImportBackendAuthCommand extends command(_ep0, _mw0, "ImportBackendAuth", ImportBackendAuth$) {
1549
1366
  }
1550
1367
 
1551
- class ImportBackendStorageCommand extends Command
1552
- .classBuilder()
1553
- .ep(commonParams)
1554
- .m(function (Command, cs, config, o) {
1555
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1556
- })
1557
- .s("AmplifyBackend", "ImportBackendStorage", {})
1558
- .n("AmplifyBackendClient", "ImportBackendStorageCommand")
1559
- .sc(ImportBackendStorage$)
1560
- .build() {
1368
+ class ImportBackendStorageCommand extends command(_ep0, _mw0, "ImportBackendStorage", ImportBackendStorage$) {
1561
1369
  }
1562
1370
 
1563
- class ListBackendJobsCommand extends Command
1564
- .classBuilder()
1565
- .ep(commonParams)
1566
- .m(function (Command, cs, config, o) {
1567
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1568
- })
1569
- .s("AmplifyBackend", "ListBackendJobs", {})
1570
- .n("AmplifyBackendClient", "ListBackendJobsCommand")
1571
- .sc(ListBackendJobs$)
1572
- .build() {
1371
+ class ListBackendJobsCommand extends command(_ep0, _mw0, "ListBackendJobs", ListBackendJobs$) {
1573
1372
  }
1574
1373
 
1575
- class ListS3BucketsCommand extends Command
1576
- .classBuilder()
1577
- .ep(commonParams)
1578
- .m(function (Command, cs, config, o) {
1579
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1580
- })
1581
- .s("AmplifyBackend", "ListS3Buckets", {})
1582
- .n("AmplifyBackendClient", "ListS3BucketsCommand")
1583
- .sc(ListS3Buckets$)
1584
- .build() {
1374
+ class ListS3BucketsCommand extends command(_ep0, _mw0, "ListS3Buckets", ListS3Buckets$) {
1585
1375
  }
1586
1376
 
1587
- class RemoveAllBackendsCommand extends Command
1588
- .classBuilder()
1589
- .ep(commonParams)
1590
- .m(function (Command, cs, config, o) {
1591
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1592
- })
1593
- .s("AmplifyBackend", "RemoveAllBackends", {})
1594
- .n("AmplifyBackendClient", "RemoveAllBackendsCommand")
1595
- .sc(RemoveAllBackends$)
1596
- .build() {
1377
+ class RemoveAllBackendsCommand extends command(_ep0, _mw0, "RemoveAllBackends", RemoveAllBackends$) {
1597
1378
  }
1598
1379
 
1599
- class RemoveBackendConfigCommand extends Command
1600
- .classBuilder()
1601
- .ep(commonParams)
1602
- .m(function (Command, cs, config, o) {
1603
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1604
- })
1605
- .s("AmplifyBackend", "RemoveBackendConfig", {})
1606
- .n("AmplifyBackendClient", "RemoveBackendConfigCommand")
1607
- .sc(RemoveBackendConfig$)
1608
- .build() {
1380
+ class RemoveBackendConfigCommand extends command(_ep0, _mw0, "RemoveBackendConfig", RemoveBackendConfig$) {
1609
1381
  }
1610
1382
 
1611
- class UpdateBackendAPICommand extends Command
1612
- .classBuilder()
1613
- .ep(commonParams)
1614
- .m(function (Command, cs, config, o) {
1615
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1616
- })
1617
- .s("AmplifyBackend", "UpdateBackendAPI", {})
1618
- .n("AmplifyBackendClient", "UpdateBackendAPICommand")
1619
- .sc(UpdateBackendAPI$)
1620
- .build() {
1383
+ class UpdateBackendAPICommand extends command(_ep0, _mw0, "UpdateBackendAPI", UpdateBackendAPI$) {
1621
1384
  }
1622
1385
 
1623
- class UpdateBackendAuthCommand extends Command
1624
- .classBuilder()
1625
- .ep(commonParams)
1626
- .m(function (Command, cs, config, o) {
1627
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1628
- })
1629
- .s("AmplifyBackend", "UpdateBackendAuth", {})
1630
- .n("AmplifyBackendClient", "UpdateBackendAuthCommand")
1631
- .sc(UpdateBackendAuth$)
1632
- .build() {
1386
+ class UpdateBackendAuthCommand extends command(_ep0, _mw0, "UpdateBackendAuth", UpdateBackendAuth$) {
1633
1387
  }
1634
1388
 
1635
- class UpdateBackendConfigCommand extends Command
1636
- .classBuilder()
1637
- .ep(commonParams)
1638
- .m(function (Command, cs, config, o) {
1639
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1640
- })
1641
- .s("AmplifyBackend", "UpdateBackendConfig", {})
1642
- .n("AmplifyBackendClient", "UpdateBackendConfigCommand")
1643
- .sc(UpdateBackendConfig$)
1644
- .build() {
1389
+ class UpdateBackendConfigCommand extends command(_ep0, _mw0, "UpdateBackendConfig", UpdateBackendConfig$) {
1645
1390
  }
1646
1391
 
1647
- class UpdateBackendJobCommand extends Command
1648
- .classBuilder()
1649
- .ep(commonParams)
1650
- .m(function (Command, cs, config, o) {
1651
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1652
- })
1653
- .s("AmplifyBackend", "UpdateBackendJob", {})
1654
- .n("AmplifyBackendClient", "UpdateBackendJobCommand")
1655
- .sc(UpdateBackendJob$)
1656
- .build() {
1392
+ class UpdateBackendJobCommand extends command(_ep0, _mw0, "UpdateBackendJob", UpdateBackendJob$) {
1657
1393
  }
1658
1394
 
1659
- class UpdateBackendStorageCommand extends Command
1660
- .classBuilder()
1661
- .ep(commonParams)
1662
- .m(function (Command, cs, config, o) {
1663
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1664
- })
1665
- .s("AmplifyBackend", "UpdateBackendStorage", {})
1666
- .n("AmplifyBackendClient", "UpdateBackendStorageCommand")
1667
- .sc(UpdateBackendStorage$)
1668
- .build() {
1395
+ class UpdateBackendStorageCommand extends command(_ep0, _mw0, "UpdateBackendStorage", UpdateBackendStorage$) {
1669
1396
  }
1670
1397
 
1671
1398
  const commands = {
@@ -0,0 +1,6 @@
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, "AmplifyBackend", "AmplifyBackendClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ 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 { CloneBackend$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CloneBackendCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyBackend", "CloneBackend", {})
13
- .n("AmplifyBackendClient", "CloneBackendCommand")
14
- .sc(CloneBackend$)
15
- .build() {
3
+ export class CloneBackendCommand extends command(_ep0, _mw0, "CloneBackend", CloneBackend$) {
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 { CreateBackendAPI$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateBackendAPICommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyBackend", "CreateBackendAPI", {})
13
- .n("AmplifyBackendClient", "CreateBackendAPICommand")
14
- .sc(CreateBackendAPI$)
15
- .build() {
3
+ export class CreateBackendAPICommand extends command(_ep0, _mw0, "CreateBackendAPI", CreateBackendAPI$) {
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 { CreateBackendAuth$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateBackendAuthCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyBackend", "CreateBackendAuth", {})
13
- .n("AmplifyBackendClient", "CreateBackendAuthCommand")
14
- .sc(CreateBackendAuth$)
15
- .build() {
3
+ export class CreateBackendAuthCommand extends command(_ep0, _mw0, "CreateBackendAuth", CreateBackendAuth$) {
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 { CreateBackend$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateBackendCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyBackend", "CreateBackend", {})
13
- .n("AmplifyBackendClient", "CreateBackendCommand")
14
- .sc(CreateBackend$)
15
- .build() {
3
+ export class CreateBackendCommand extends command(_ep0, _mw0, "CreateBackend", CreateBackend$) {
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 { CreateBackendConfig$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateBackendConfigCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyBackend", "CreateBackendConfig", {})
13
- .n("AmplifyBackendClient", "CreateBackendConfigCommand")
14
- .sc(CreateBackendConfig$)
15
- .build() {
3
+ export class CreateBackendConfigCommand extends command(_ep0, _mw0, "CreateBackendConfig", CreateBackendConfig$) {
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 { CreateBackendStorage$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateBackendStorageCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyBackend", "CreateBackendStorage", {})
13
- .n("AmplifyBackendClient", "CreateBackendStorageCommand")
14
- .sc(CreateBackendStorage$)
15
- .build() {
3
+ export class CreateBackendStorageCommand extends command(_ep0, _mw0, "CreateBackendStorage", CreateBackendStorage$) {
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 { CreateToken$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateTokenCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyBackend", "CreateToken", {})
13
- .n("AmplifyBackendClient", "CreateTokenCommand")
14
- .sc(CreateToken$)
15
- .build() {
3
+ export class CreateTokenCommand extends command(_ep0, _mw0, "CreateToken", CreateToken$) {
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 { DeleteBackendAPI$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteBackendAPICommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyBackend", "DeleteBackendAPI", {})
13
- .n("AmplifyBackendClient", "DeleteBackendAPICommand")
14
- .sc(DeleteBackendAPI$)
15
- .build() {
3
+ export class DeleteBackendAPICommand extends command(_ep0, _mw0, "DeleteBackendAPI", DeleteBackendAPI$) {
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 { DeleteBackendAuth$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteBackendAuthCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyBackend", "DeleteBackendAuth", {})
13
- .n("AmplifyBackendClient", "DeleteBackendAuthCommand")
14
- .sc(DeleteBackendAuth$)
15
- .build() {
3
+ export class DeleteBackendAuthCommand extends command(_ep0, _mw0, "DeleteBackendAuth", DeleteBackendAuth$) {
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 { DeleteBackend$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteBackendCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmplifyBackend", "DeleteBackend", {})
13
- .n("AmplifyBackendClient", "DeleteBackendCommand")
14
- .sc(DeleteBackend$)
15
- .build() {
3
+ export class DeleteBackendCommand extends command(_ep0, _mw0, "DeleteBackend", DeleteBackend$) {
16
4
  }