@aws-sdk/client-synthetics 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 (86) hide show
  1. package/dist-cjs/index.js +33 -225
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AssociateResourceCommand.js +2 -14
  4. package/dist-es/commands/CreateCanaryCommand.js +2 -14
  5. package/dist-es/commands/CreateGroupCommand.js +2 -14
  6. package/dist-es/commands/DeleteCanaryCommand.js +2 -14
  7. package/dist-es/commands/DeleteGroupCommand.js +2 -14
  8. package/dist-es/commands/DescribeCanariesCommand.js +2 -14
  9. package/dist-es/commands/DescribeCanariesLastRunCommand.js +2 -14
  10. package/dist-es/commands/DescribeRuntimeVersionsCommand.js +2 -14
  11. package/dist-es/commands/DisassociateResourceCommand.js +2 -14
  12. package/dist-es/commands/GetCanaryCommand.js +2 -14
  13. package/dist-es/commands/GetCanaryRunsCommand.js +2 -14
  14. package/dist-es/commands/GetGroupCommand.js +2 -14
  15. package/dist-es/commands/ListAssociatedGroupsCommand.js +2 -14
  16. package/dist-es/commands/ListGroupResourcesCommand.js +2 -14
  17. package/dist-es/commands/ListGroupsCommand.js +2 -14
  18. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  19. package/dist-es/commands/StartCanaryCommand.js +2 -14
  20. package/dist-es/commands/StartCanaryDryRunCommand.js +2 -14
  21. package/dist-es/commands/StopCanaryCommand.js +2 -14
  22. package/dist-es/commands/TagResourceCommand.js +2 -14
  23. package/dist-es/commands/UntagResourceCommand.js +2 -14
  24. package/dist-es/commands/UpdateCanaryCommand.js +2 -14
  25. package/dist-es/index.js +1 -0
  26. package/dist-es/runtimeConfig.browser.js +0 -2
  27. package/dist-es/runtimeConfig.js +1 -2
  28. package/dist-es/runtimeConfig.native.js +0 -2
  29. package/dist-es/runtimeConfig.shared.js +2 -0
  30. package/dist-types/commandBuilder.d.ts +18 -0
  31. package/dist-types/commands/AssociateResourceCommand.d.ts +3 -8
  32. package/dist-types/commands/CreateCanaryCommand.d.ts +3 -8
  33. package/dist-types/commands/CreateGroupCommand.d.ts +3 -8
  34. package/dist-types/commands/DeleteCanaryCommand.d.ts +3 -8
  35. package/dist-types/commands/DeleteGroupCommand.d.ts +3 -8
  36. package/dist-types/commands/DescribeCanariesCommand.d.ts +3 -8
  37. package/dist-types/commands/DescribeCanariesLastRunCommand.d.ts +3 -8
  38. package/dist-types/commands/DescribeRuntimeVersionsCommand.d.ts +3 -8
  39. package/dist-types/commands/DisassociateResourceCommand.d.ts +3 -8
  40. package/dist-types/commands/GetCanaryCommand.d.ts +3 -8
  41. package/dist-types/commands/GetCanaryRunsCommand.d.ts +3 -8
  42. package/dist-types/commands/GetGroupCommand.d.ts +3 -8
  43. package/dist-types/commands/ListAssociatedGroupsCommand.d.ts +3 -8
  44. package/dist-types/commands/ListGroupResourcesCommand.d.ts +3 -8
  45. package/dist-types/commands/ListGroupsCommand.d.ts +3 -8
  46. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  47. package/dist-types/commands/StartCanaryCommand.d.ts +3 -8
  48. package/dist-types/commands/StartCanaryDryRunCommand.d.ts +3 -8
  49. package/dist-types/commands/StopCanaryCommand.d.ts +3 -8
  50. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  51. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  52. package/dist-types/commands/UpdateCanaryCommand.d.ts +3 -8
  53. package/dist-types/index.d.ts +1 -0
  54. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  55. package/dist-types/runtimeConfig.d.ts +1 -1
  56. package/dist-types/runtimeConfig.native.d.ts +1 -1
  57. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  58. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  59. package/dist-types/ts3.4/commands/AssociateResourceCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/CreateCanaryCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/DeleteCanaryCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/DescribeCanariesCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/DescribeCanariesLastRunCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/DescribeRuntimeVersionsCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/DisassociateResourceCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/GetCanaryCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/GetCanaryRunsCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/ListAssociatedGroupsCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/ListGroupResourcesCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/StartCanaryCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/StartCanaryDryRunCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/StopCanaryCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/UpdateCanaryCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/index.d.ts +1 -0
  82. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  83. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  84. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  85. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  86. 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, 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 defaultSyntheticsHttpAuthSchemeParametersProvider = 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
 
@@ -1117,6 +1119,7 @@ const getRuntimeConfig$1 = (config) => {
1117
1119
  serviceTarget: "Synthetics",
1118
1120
  },
1119
1121
  serviceId: config?.serviceId ?? "synthetics",
1122
+ sha256: config?.sha256 ?? Sha256,
1120
1123
  urlParser: config?.urlParser ?? parseUrl,
1121
1124
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1122
1125
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1150,7 +1153,6 @@ const getRuntimeConfig = (config) => {
1150
1153
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1151
1154
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1152
1155
  }, config),
1153
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1154
1156
  streamCollector: config?.streamCollector ?? streamCollector,
1155
1157
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1156
1158
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1238,268 +1240,74 @@ class SyntheticsClient extends Client {
1238
1240
  }
1239
1241
  }
1240
1242
 
1241
- class AssociateResourceCommand extends Command
1242
- .classBuilder()
1243
- .ep(commonParams)
1244
- .m(function (Command, cs, config, o) {
1245
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1246
- })
1247
- .s("Synthetics", "AssociateResource", {})
1248
- .n("SyntheticsClient", "AssociateResourceCommand")
1249
- .sc(AssociateResource$)
1250
- .build() {
1243
+ const command = makeBuilder(commonParams, "Synthetics", "SyntheticsClient", getEndpointPlugin);
1244
+ const _ep0 = {};
1245
+ const _mw0 = (Command, cs, config, o) => [];
1246
+
1247
+ class AssociateResourceCommand extends command(_ep0, _mw0, "AssociateResource", AssociateResource$) {
1251
1248
  }
1252
1249
 
1253
- class CreateCanaryCommand extends Command
1254
- .classBuilder()
1255
- .ep(commonParams)
1256
- .m(function (Command, cs, config, o) {
1257
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1258
- })
1259
- .s("Synthetics", "CreateCanary", {})
1260
- .n("SyntheticsClient", "CreateCanaryCommand")
1261
- .sc(CreateCanary$)
1262
- .build() {
1250
+ class CreateCanaryCommand extends command(_ep0, _mw0, "CreateCanary", CreateCanary$) {
1263
1251
  }
1264
1252
 
1265
- class CreateGroupCommand extends Command
1266
- .classBuilder()
1267
- .ep(commonParams)
1268
- .m(function (Command, cs, config, o) {
1269
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1270
- })
1271
- .s("Synthetics", "CreateGroup", {})
1272
- .n("SyntheticsClient", "CreateGroupCommand")
1273
- .sc(CreateGroup$)
1274
- .build() {
1253
+ class CreateGroupCommand extends command(_ep0, _mw0, "CreateGroup", CreateGroup$) {
1275
1254
  }
1276
1255
 
1277
- class DeleteCanaryCommand extends Command
1278
- .classBuilder()
1279
- .ep(commonParams)
1280
- .m(function (Command, cs, config, o) {
1281
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1282
- })
1283
- .s("Synthetics", "DeleteCanary", {})
1284
- .n("SyntheticsClient", "DeleteCanaryCommand")
1285
- .sc(DeleteCanary$)
1286
- .build() {
1256
+ class DeleteCanaryCommand extends command(_ep0, _mw0, "DeleteCanary", DeleteCanary$) {
1287
1257
  }
1288
1258
 
1289
- class DeleteGroupCommand extends Command
1290
- .classBuilder()
1291
- .ep(commonParams)
1292
- .m(function (Command, cs, config, o) {
1293
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1294
- })
1295
- .s("Synthetics", "DeleteGroup", {})
1296
- .n("SyntheticsClient", "DeleteGroupCommand")
1297
- .sc(DeleteGroup$)
1298
- .build() {
1259
+ class DeleteGroupCommand extends command(_ep0, _mw0, "DeleteGroup", DeleteGroup$) {
1299
1260
  }
1300
1261
 
1301
- class DescribeCanariesCommand extends Command
1302
- .classBuilder()
1303
- .ep(commonParams)
1304
- .m(function (Command, cs, config, o) {
1305
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1306
- })
1307
- .s("Synthetics", "DescribeCanaries", {})
1308
- .n("SyntheticsClient", "DescribeCanariesCommand")
1309
- .sc(DescribeCanaries$)
1310
- .build() {
1262
+ class DescribeCanariesCommand extends command(_ep0, _mw0, "DescribeCanaries", DescribeCanaries$) {
1311
1263
  }
1312
1264
 
1313
- class DescribeCanariesLastRunCommand extends Command
1314
- .classBuilder()
1315
- .ep(commonParams)
1316
- .m(function (Command, cs, config, o) {
1317
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1318
- })
1319
- .s("Synthetics", "DescribeCanariesLastRun", {})
1320
- .n("SyntheticsClient", "DescribeCanariesLastRunCommand")
1321
- .sc(DescribeCanariesLastRun$)
1322
- .build() {
1265
+ class DescribeCanariesLastRunCommand extends command(_ep0, _mw0, "DescribeCanariesLastRun", DescribeCanariesLastRun$) {
1323
1266
  }
1324
1267
 
1325
- class DescribeRuntimeVersionsCommand extends Command
1326
- .classBuilder()
1327
- .ep(commonParams)
1328
- .m(function (Command, cs, config, o) {
1329
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1330
- })
1331
- .s("Synthetics", "DescribeRuntimeVersions", {})
1332
- .n("SyntheticsClient", "DescribeRuntimeVersionsCommand")
1333
- .sc(DescribeRuntimeVersions$)
1334
- .build() {
1268
+ class DescribeRuntimeVersionsCommand extends command(_ep0, _mw0, "DescribeRuntimeVersions", DescribeRuntimeVersions$) {
1335
1269
  }
1336
1270
 
1337
- class DisassociateResourceCommand extends Command
1338
- .classBuilder()
1339
- .ep(commonParams)
1340
- .m(function (Command, cs, config, o) {
1341
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1342
- })
1343
- .s("Synthetics", "DisassociateResource", {})
1344
- .n("SyntheticsClient", "DisassociateResourceCommand")
1345
- .sc(DisassociateResource$)
1346
- .build() {
1271
+ class DisassociateResourceCommand extends command(_ep0, _mw0, "DisassociateResource", DisassociateResource$) {
1347
1272
  }
1348
1273
 
1349
- class GetCanaryCommand extends Command
1350
- .classBuilder()
1351
- .ep(commonParams)
1352
- .m(function (Command, cs, config, o) {
1353
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1354
- })
1355
- .s("Synthetics", "GetCanary", {})
1356
- .n("SyntheticsClient", "GetCanaryCommand")
1357
- .sc(GetCanary$)
1358
- .build() {
1274
+ class GetCanaryCommand extends command(_ep0, _mw0, "GetCanary", GetCanary$) {
1359
1275
  }
1360
1276
 
1361
- class GetCanaryRunsCommand extends Command
1362
- .classBuilder()
1363
- .ep(commonParams)
1364
- .m(function (Command, cs, config, o) {
1365
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1366
- })
1367
- .s("Synthetics", "GetCanaryRuns", {})
1368
- .n("SyntheticsClient", "GetCanaryRunsCommand")
1369
- .sc(GetCanaryRuns$)
1370
- .build() {
1277
+ class GetCanaryRunsCommand extends command(_ep0, _mw0, "GetCanaryRuns", GetCanaryRuns$) {
1371
1278
  }
1372
1279
 
1373
- class GetGroupCommand extends Command
1374
- .classBuilder()
1375
- .ep(commonParams)
1376
- .m(function (Command, cs, config, o) {
1377
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1378
- })
1379
- .s("Synthetics", "GetGroup", {})
1380
- .n("SyntheticsClient", "GetGroupCommand")
1381
- .sc(GetGroup$)
1382
- .build() {
1280
+ class GetGroupCommand extends command(_ep0, _mw0, "GetGroup", GetGroup$) {
1383
1281
  }
1384
1282
 
1385
- class ListAssociatedGroupsCommand extends Command
1386
- .classBuilder()
1387
- .ep(commonParams)
1388
- .m(function (Command, cs, config, o) {
1389
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1390
- })
1391
- .s("Synthetics", "ListAssociatedGroups", {})
1392
- .n("SyntheticsClient", "ListAssociatedGroupsCommand")
1393
- .sc(ListAssociatedGroups$)
1394
- .build() {
1283
+ class ListAssociatedGroupsCommand extends command(_ep0, _mw0, "ListAssociatedGroups", ListAssociatedGroups$) {
1395
1284
  }
1396
1285
 
1397
- class ListGroupResourcesCommand extends Command
1398
- .classBuilder()
1399
- .ep(commonParams)
1400
- .m(function (Command, cs, config, o) {
1401
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1402
- })
1403
- .s("Synthetics", "ListGroupResources", {})
1404
- .n("SyntheticsClient", "ListGroupResourcesCommand")
1405
- .sc(ListGroupResources$)
1406
- .build() {
1286
+ class ListGroupResourcesCommand extends command(_ep0, _mw0, "ListGroupResources", ListGroupResources$) {
1407
1287
  }
1408
1288
 
1409
- class ListGroupsCommand extends Command
1410
- .classBuilder()
1411
- .ep(commonParams)
1412
- .m(function (Command, cs, config, o) {
1413
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1414
- })
1415
- .s("Synthetics", "ListGroups", {})
1416
- .n("SyntheticsClient", "ListGroupsCommand")
1417
- .sc(ListGroups$)
1418
- .build() {
1289
+ class ListGroupsCommand extends command(_ep0, _mw0, "ListGroups", ListGroups$) {
1419
1290
  }
1420
1291
 
1421
- class ListTagsForResourceCommand extends Command
1422
- .classBuilder()
1423
- .ep(commonParams)
1424
- .m(function (Command, cs, config, o) {
1425
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1426
- })
1427
- .s("Synthetics", "ListTagsForResource", {})
1428
- .n("SyntheticsClient", "ListTagsForResourceCommand")
1429
- .sc(ListTagsForResource$)
1430
- .build() {
1292
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1431
1293
  }
1432
1294
 
1433
- class StartCanaryCommand extends Command
1434
- .classBuilder()
1435
- .ep(commonParams)
1436
- .m(function (Command, cs, config, o) {
1437
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1438
- })
1439
- .s("Synthetics", "StartCanary", {})
1440
- .n("SyntheticsClient", "StartCanaryCommand")
1441
- .sc(StartCanary$)
1442
- .build() {
1295
+ class StartCanaryCommand extends command(_ep0, _mw0, "StartCanary", StartCanary$) {
1443
1296
  }
1444
1297
 
1445
- class StartCanaryDryRunCommand extends Command
1446
- .classBuilder()
1447
- .ep(commonParams)
1448
- .m(function (Command, cs, config, o) {
1449
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1450
- })
1451
- .s("Synthetics", "StartCanaryDryRun", {})
1452
- .n("SyntheticsClient", "StartCanaryDryRunCommand")
1453
- .sc(StartCanaryDryRun$)
1454
- .build() {
1298
+ class StartCanaryDryRunCommand extends command(_ep0, _mw0, "StartCanaryDryRun", StartCanaryDryRun$) {
1455
1299
  }
1456
1300
 
1457
- class StopCanaryCommand extends Command
1458
- .classBuilder()
1459
- .ep(commonParams)
1460
- .m(function (Command, cs, config, o) {
1461
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1462
- })
1463
- .s("Synthetics", "StopCanary", {})
1464
- .n("SyntheticsClient", "StopCanaryCommand")
1465
- .sc(StopCanary$)
1466
- .build() {
1301
+ class StopCanaryCommand extends command(_ep0, _mw0, "StopCanary", StopCanary$) {
1467
1302
  }
1468
1303
 
1469
- class TagResourceCommand extends Command
1470
- .classBuilder()
1471
- .ep(commonParams)
1472
- .m(function (Command, cs, config, o) {
1473
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1474
- })
1475
- .s("Synthetics", "TagResource", {})
1476
- .n("SyntheticsClient", "TagResourceCommand")
1477
- .sc(TagResource$)
1478
- .build() {
1304
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1479
1305
  }
1480
1306
 
1481
- class UntagResourceCommand extends Command
1482
- .classBuilder()
1483
- .ep(commonParams)
1484
- .m(function (Command, cs, config, o) {
1485
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1486
- })
1487
- .s("Synthetics", "UntagResource", {})
1488
- .n("SyntheticsClient", "UntagResourceCommand")
1489
- .sc(UntagResource$)
1490
- .build() {
1307
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1491
1308
  }
1492
1309
 
1493
- class UpdateCanaryCommand extends Command
1494
- .classBuilder()
1495
- .ep(commonParams)
1496
- .m(function (Command, cs, config, o) {
1497
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1498
- })
1499
- .s("Synthetics", "UpdateCanary", {})
1500
- .n("SyntheticsClient", "UpdateCanaryCommand")
1501
- .sc(UpdateCanary$)
1502
- .build() {
1310
+ class UpdateCanaryCommand extends command(_ep0, _mw0, "UpdateCanary", UpdateCanary$) {
1503
1311
  }
1504
1312
 
1505
1313
  const paginateDescribeCanariesLastRun = createPaginator(SyntheticsClient, DescribeCanariesLastRunCommand, "NextToken", "NextToken", "MaxResults");
@@ -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, "Synthetics", "SyntheticsClient", 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 { AssociateResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssociateResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "AssociateResource", {})
13
- .n("SyntheticsClient", "AssociateResourceCommand")
14
- .sc(AssociateResource$)
15
- .build() {
3
+ export class AssociateResourceCommand extends command(_ep0, _mw0, "AssociateResource", AssociateResource$) {
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 { CreateCanary$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateCanaryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "CreateCanary", {})
13
- .n("SyntheticsClient", "CreateCanaryCommand")
14
- .sc(CreateCanary$)
15
- .build() {
3
+ export class CreateCanaryCommand extends command(_ep0, _mw0, "CreateCanary", CreateCanary$) {
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 { CreateGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "CreateGroup", {})
13
- .n("SyntheticsClient", "CreateGroupCommand")
14
- .sc(CreateGroup$)
15
- .build() {
3
+ export class CreateGroupCommand extends command(_ep0, _mw0, "CreateGroup", CreateGroup$) {
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 { DeleteCanary$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteCanaryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "DeleteCanary", {})
13
- .n("SyntheticsClient", "DeleteCanaryCommand")
14
- .sc(DeleteCanary$)
15
- .build() {
3
+ export class DeleteCanaryCommand extends command(_ep0, _mw0, "DeleteCanary", DeleteCanary$) {
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 { DeleteGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "DeleteGroup", {})
13
- .n("SyntheticsClient", "DeleteGroupCommand")
14
- .sc(DeleteGroup$)
15
- .build() {
3
+ export class DeleteGroupCommand extends command(_ep0, _mw0, "DeleteGroup", DeleteGroup$) {
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 { DescribeCanaries$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeCanariesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "DescribeCanaries", {})
13
- .n("SyntheticsClient", "DescribeCanariesCommand")
14
- .sc(DescribeCanaries$)
15
- .build() {
3
+ export class DescribeCanariesCommand extends command(_ep0, _mw0, "DescribeCanaries", DescribeCanaries$) {
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 { DescribeCanariesLastRun$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeCanariesLastRunCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "DescribeCanariesLastRun", {})
13
- .n("SyntheticsClient", "DescribeCanariesLastRunCommand")
14
- .sc(DescribeCanariesLastRun$)
15
- .build() {
3
+ export class DescribeCanariesLastRunCommand extends command(_ep0, _mw0, "DescribeCanariesLastRun", DescribeCanariesLastRun$) {
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 { DescribeRuntimeVersions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeRuntimeVersionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "DescribeRuntimeVersions", {})
13
- .n("SyntheticsClient", "DescribeRuntimeVersionsCommand")
14
- .sc(DescribeRuntimeVersions$)
15
- .build() {
3
+ export class DescribeRuntimeVersionsCommand extends command(_ep0, _mw0, "DescribeRuntimeVersions", DescribeRuntimeVersions$) {
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 { DisassociateResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DisassociateResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "DisassociateResource", {})
13
- .n("SyntheticsClient", "DisassociateResourceCommand")
14
- .sc(DisassociateResource$)
15
- .build() {
3
+ export class DisassociateResourceCommand extends command(_ep0, _mw0, "DisassociateResource", DisassociateResource$) {
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 { GetCanary$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetCanaryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "GetCanary", {})
13
- .n("SyntheticsClient", "GetCanaryCommand")
14
- .sc(GetCanary$)
15
- .build() {
3
+ export class GetCanaryCommand extends command(_ep0, _mw0, "GetCanary", GetCanary$) {
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 { GetCanaryRuns$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetCanaryRunsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "GetCanaryRuns", {})
13
- .n("SyntheticsClient", "GetCanaryRunsCommand")
14
- .sc(GetCanaryRuns$)
15
- .build() {
3
+ export class GetCanaryRunsCommand extends command(_ep0, _mw0, "GetCanaryRuns", GetCanaryRuns$) {
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 { GetGroup$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetGroupCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "GetGroup", {})
13
- .n("SyntheticsClient", "GetGroupCommand")
14
- .sc(GetGroup$)
15
- .build() {
3
+ export class GetGroupCommand extends command(_ep0, _mw0, "GetGroup", GetGroup$) {
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 { ListAssociatedGroups$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListAssociatedGroupsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "ListAssociatedGroups", {})
13
- .n("SyntheticsClient", "ListAssociatedGroupsCommand")
14
- .sc(ListAssociatedGroups$)
15
- .build() {
3
+ export class ListAssociatedGroupsCommand extends command(_ep0, _mw0, "ListAssociatedGroups", ListAssociatedGroups$) {
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 { ListGroupResources$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListGroupResourcesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "ListGroupResources", {})
13
- .n("SyntheticsClient", "ListGroupResourcesCommand")
14
- .sc(ListGroupResources$)
15
- .build() {
3
+ export class ListGroupResourcesCommand extends command(_ep0, _mw0, "ListGroupResources", ListGroupResources$) {
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 { ListGroups$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListGroupsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Synthetics", "ListGroups", {})
13
- .n("SyntheticsClient", "ListGroupsCommand")
14
- .sc(ListGroups$)
15
- .build() {
3
+ export class ListGroupsCommand extends command(_ep0, _mw0, "ListGroups", ListGroups$) {
16
4
  }