@aws-sdk/client-pipes 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 (50) hide show
  1. package/dist-cjs/index.js +21 -105
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreatePipeCommand.js +2 -14
  4. package/dist-es/commands/DeletePipeCommand.js +2 -14
  5. package/dist-es/commands/DescribePipeCommand.js +2 -14
  6. package/dist-es/commands/ListPipesCommand.js +2 -14
  7. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  8. package/dist-es/commands/StartPipeCommand.js +2 -14
  9. package/dist-es/commands/StopPipeCommand.js +2 -14
  10. package/dist-es/commands/TagResourceCommand.js +2 -14
  11. package/dist-es/commands/UntagResourceCommand.js +2 -14
  12. package/dist-es/commands/UpdatePipeCommand.js +2 -14
  13. package/dist-es/index.js +1 -0
  14. package/dist-es/runtimeConfig.browser.js +0 -2
  15. package/dist-es/runtimeConfig.js +1 -2
  16. package/dist-es/runtimeConfig.native.js +0 -2
  17. package/dist-es/runtimeConfig.shared.js +2 -0
  18. package/dist-types/commandBuilder.d.ts +18 -0
  19. package/dist-types/commands/CreatePipeCommand.d.ts +3 -8
  20. package/dist-types/commands/DeletePipeCommand.d.ts +3 -8
  21. package/dist-types/commands/DescribePipeCommand.d.ts +3 -8
  22. package/dist-types/commands/ListPipesCommand.d.ts +3 -8
  23. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  24. package/dist-types/commands/StartPipeCommand.d.ts +3 -8
  25. package/dist-types/commands/StopPipeCommand.d.ts +3 -8
  26. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  27. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  28. package/dist-types/commands/UpdatePipeCommand.d.ts +3 -8
  29. package/dist-types/index.d.ts +1 -0
  30. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  31. package/dist-types/runtimeConfig.d.ts +1 -1
  32. package/dist-types/runtimeConfig.native.d.ts +1 -1
  33. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  34. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  35. package/dist-types/ts3.4/commands/CreatePipeCommand.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/DeletePipeCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/DescribePipeCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/ListPipesCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/StartPipeCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/StopPipeCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/UpdatePipeCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/index.d.ts +1 -0
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  49. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  50. 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 defaultPipesHttpAuthSchemeParametersProvider = 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
 
@@ -1270,6 +1272,7 @@ const getRuntimeConfig$1 = (config) => {
1270
1272
  serviceTarget: "Pipes",
1271
1273
  },
1272
1274
  serviceId: config?.serviceId ?? "Pipes",
1275
+ sha256: config?.sha256 ?? Sha256,
1273
1276
  urlParser: config?.urlParser ?? parseUrl,
1274
1277
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1275
1278
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1303,7 +1306,6 @@ const getRuntimeConfig = (config) => {
1303
1306
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1304
1307
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1305
1308
  }, config),
1306
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1307
1309
  streamCollector: config?.streamCollector ?? streamCollector,
1308
1310
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1309
1311
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1391,124 +1393,38 @@ class PipesClient extends Client {
1391
1393
  }
1392
1394
  }
1393
1395
 
1394
- class CreatePipeCommand extends Command
1395
- .classBuilder()
1396
- .ep(commonParams)
1397
- .m(function (Command, cs, config, o) {
1398
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1399
- })
1400
- .s("Pipes", "CreatePipe", {})
1401
- .n("PipesClient", "CreatePipeCommand")
1402
- .sc(CreatePipe$)
1403
- .build() {
1396
+ const command = makeBuilder(commonParams, "Pipes", "PipesClient", getEndpointPlugin);
1397
+ const _ep0 = {};
1398
+ const _mw0 = (Command, cs, config, o) => [];
1399
+
1400
+ class CreatePipeCommand extends command(_ep0, _mw0, "CreatePipe", CreatePipe$) {
1404
1401
  }
1405
1402
 
1406
- class DeletePipeCommand extends Command
1407
- .classBuilder()
1408
- .ep(commonParams)
1409
- .m(function (Command, cs, config, o) {
1410
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1411
- })
1412
- .s("Pipes", "DeletePipe", {})
1413
- .n("PipesClient", "DeletePipeCommand")
1414
- .sc(DeletePipe$)
1415
- .build() {
1403
+ class DeletePipeCommand extends command(_ep0, _mw0, "DeletePipe", DeletePipe$) {
1416
1404
  }
1417
1405
 
1418
- class DescribePipeCommand extends Command
1419
- .classBuilder()
1420
- .ep(commonParams)
1421
- .m(function (Command, cs, config, o) {
1422
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1423
- })
1424
- .s("Pipes", "DescribePipe", {})
1425
- .n("PipesClient", "DescribePipeCommand")
1426
- .sc(DescribePipe$)
1427
- .build() {
1406
+ class DescribePipeCommand extends command(_ep0, _mw0, "DescribePipe", DescribePipe$) {
1428
1407
  }
1429
1408
 
1430
- class ListPipesCommand extends Command
1431
- .classBuilder()
1432
- .ep(commonParams)
1433
- .m(function (Command, cs, config, o) {
1434
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1435
- })
1436
- .s("Pipes", "ListPipes", {})
1437
- .n("PipesClient", "ListPipesCommand")
1438
- .sc(ListPipes$)
1439
- .build() {
1409
+ class ListPipesCommand extends command(_ep0, _mw0, "ListPipes", ListPipes$) {
1440
1410
  }
1441
1411
 
1442
- class ListTagsForResourceCommand extends Command
1443
- .classBuilder()
1444
- .ep(commonParams)
1445
- .m(function (Command, cs, config, o) {
1446
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1447
- })
1448
- .s("Pipes", "ListTagsForResource", {})
1449
- .n("PipesClient", "ListTagsForResourceCommand")
1450
- .sc(ListTagsForResource$)
1451
- .build() {
1412
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1452
1413
  }
1453
1414
 
1454
- class StartPipeCommand extends Command
1455
- .classBuilder()
1456
- .ep(commonParams)
1457
- .m(function (Command, cs, config, o) {
1458
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1459
- })
1460
- .s("Pipes", "StartPipe", {})
1461
- .n("PipesClient", "StartPipeCommand")
1462
- .sc(StartPipe$)
1463
- .build() {
1415
+ class StartPipeCommand extends command(_ep0, _mw0, "StartPipe", StartPipe$) {
1464
1416
  }
1465
1417
 
1466
- class StopPipeCommand extends Command
1467
- .classBuilder()
1468
- .ep(commonParams)
1469
- .m(function (Command, cs, config, o) {
1470
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1471
- })
1472
- .s("Pipes", "StopPipe", {})
1473
- .n("PipesClient", "StopPipeCommand")
1474
- .sc(StopPipe$)
1475
- .build() {
1418
+ class StopPipeCommand extends command(_ep0, _mw0, "StopPipe", StopPipe$) {
1476
1419
  }
1477
1420
 
1478
- class TagResourceCommand extends Command
1479
- .classBuilder()
1480
- .ep(commonParams)
1481
- .m(function (Command, cs, config, o) {
1482
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1483
- })
1484
- .s("Pipes", "TagResource", {})
1485
- .n("PipesClient", "TagResourceCommand")
1486
- .sc(TagResource$)
1487
- .build() {
1421
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1488
1422
  }
1489
1423
 
1490
- class UntagResourceCommand extends Command
1491
- .classBuilder()
1492
- .ep(commonParams)
1493
- .m(function (Command, cs, config, o) {
1494
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1495
- })
1496
- .s("Pipes", "UntagResource", {})
1497
- .n("PipesClient", "UntagResourceCommand")
1498
- .sc(UntagResource$)
1499
- .build() {
1424
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1500
1425
  }
1501
1426
 
1502
- class UpdatePipeCommand extends Command
1503
- .classBuilder()
1504
- .ep(commonParams)
1505
- .m(function (Command, cs, config, o) {
1506
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1507
- })
1508
- .s("Pipes", "UpdatePipe", {})
1509
- .n("PipesClient", "UpdatePipeCommand")
1510
- .sc(UpdatePipe$)
1511
- .build() {
1427
+ class UpdatePipeCommand extends command(_ep0, _mw0, "UpdatePipe", UpdatePipe$) {
1512
1428
  }
1513
1429
 
1514
1430
  const paginateListPipes = createPaginator(PipesClient, ListPipesCommand, "NextToken", "NextToken", "Limit");
@@ -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, "Pipes", "PipesClient", 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 { CreatePipe$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreatePipeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Pipes", "CreatePipe", {})
13
- .n("PipesClient", "CreatePipeCommand")
14
- .sc(CreatePipe$)
15
- .build() {
3
+ export class CreatePipeCommand extends command(_ep0, _mw0, "CreatePipe", CreatePipe$) {
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 { DeletePipe$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeletePipeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Pipes", "DeletePipe", {})
13
- .n("PipesClient", "DeletePipeCommand")
14
- .sc(DeletePipe$)
15
- .build() {
3
+ export class DeletePipeCommand extends command(_ep0, _mw0, "DeletePipe", DeletePipe$) {
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 { DescribePipe$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribePipeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Pipes", "DescribePipe", {})
13
- .n("PipesClient", "DescribePipeCommand")
14
- .sc(DescribePipe$)
15
- .build() {
3
+ export class DescribePipeCommand extends command(_ep0, _mw0, "DescribePipe", DescribePipe$) {
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 { ListPipes$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListPipesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Pipes", "ListPipes", {})
13
- .n("PipesClient", "ListPipesCommand")
14
- .sc(ListPipes$)
15
- .build() {
3
+ export class ListPipesCommand extends command(_ep0, _mw0, "ListPipes", ListPipes$) {
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 { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Pipes", "ListTagsForResource", {})
13
- .n("PipesClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
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 { StartPipe$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartPipeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Pipes", "StartPipe", {})
13
- .n("PipesClient", "StartPipeCommand")
14
- .sc(StartPipe$)
15
- .build() {
3
+ export class StartPipeCommand extends command(_ep0, _mw0, "StartPipe", StartPipe$) {
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 { StopPipe$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StopPipeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Pipes", "StopPipe", {})
13
- .n("PipesClient", "StopPipeCommand")
14
- .sc(StopPipe$)
15
- .build() {
3
+ export class StopPipeCommand extends command(_ep0, _mw0, "StopPipe", StopPipe$) {
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 { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Pipes", "TagResource", {})
13
- .n("PipesClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
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 { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Pipes", "UntagResource", {})
13
- .n("PipesClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
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 { UpdatePipe$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdatePipeCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Pipes", "UpdatePipe", {})
13
- .n("PipesClient", "UpdatePipeCommand")
14
- .sc(UpdatePipe$)
15
- .build() {
3
+ export class UpdatePipeCommand extends command(_ep0, _mw0, "UpdatePipe", UpdatePipe$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./PipesClient";
2
2
  export * from "./Pipes";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -32,6 +33,7 @@ export const getRuntimeConfig = (config) => {
32
33
  serviceTarget: "Pipes",
33
34
  },
34
35
  serviceId: config?.serviceId ?? "Pipes",
36
+ sha256: config?.sha256 ?? Sha256,
35
37
  urlParser: config?.urlParser ?? parseUrl,
36
38
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
39
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./PipesClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreatePipeRequest, CreatePipeResponse } from "../models/models_0";
4
- import type { PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PipesClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreatePipeCommandInput extends CreatePipeRequest {
22
19
  export interface CreatePipeCommandOutput extends CreatePipeResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreatePipeCommand_base: {
25
- new (input: CreatePipeCommandInput): import("@smithy/core/client").CommandImpl<CreatePipeCommandInput, CreatePipeCommandOutput, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreatePipeCommandInput): import("@smithy/core/client").CommandImpl<CreatePipeCommandInput, CreatePipeCommandOutput, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreatePipeCommandInput): import("@smithy/core/client").CommandImpl<CreatePipeCommandInput, CreatePipeCommandOutput, import("..").PipesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreatePipeCommandInput): import("@smithy/core/client").CommandImpl<CreatePipeCommandInput, CreatePipeCommandOutput, import("..").PipesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Create a pipe. Amazon EventBridge Pipes connect event sources to targets and reduces
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DeletePipeRequest, DeletePipeResponse } from "../models/models_0";
4
- import type { PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PipesClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DeletePipeCommandInput extends DeletePipeRequest {
22
19
  export interface DeletePipeCommandOutput extends DeletePipeResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DeletePipeCommand_base: {
25
- new (input: DeletePipeCommandInput): import("@smithy/core/client").CommandImpl<DeletePipeCommandInput, DeletePipeCommandOutput, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeletePipeCommandInput): import("@smithy/core/client").CommandImpl<DeletePipeCommandInput, DeletePipeCommandOutput, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeletePipeCommandInput): import("@smithy/core/client").CommandImpl<DeletePipeCommandInput, DeletePipeCommandOutput, import("..").PipesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeletePipeCommandInput): import("@smithy/core/client").CommandImpl<DeletePipeCommandInput, DeletePipeCommandOutput, import("..").PipesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Delete an existing pipe. For more information about pipes, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html">Amazon EventBridge Pipes</a> in the Amazon EventBridge User Guide.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DescribePipeRequest, DescribePipeResponse } from "../models/models_0";
4
- import type { PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PipesClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DescribePipeCommandInput extends DescribePipeRequest {
22
19
  export interface DescribePipeCommandOutput extends DescribePipeResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DescribePipeCommand_base: {
25
- new (input: DescribePipeCommandInput): import("@smithy/core/client").CommandImpl<DescribePipeCommandInput, DescribePipeCommandOutput, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DescribePipeCommandInput): import("@smithy/core/client").CommandImpl<DescribePipeCommandInput, DescribePipeCommandOutput, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribePipeCommandInput): import("@smithy/core/client").CommandImpl<DescribePipeCommandInput, DescribePipeCommandOutput, import("..").PipesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribePipeCommandInput): import("@smithy/core/client").CommandImpl<DescribePipeCommandInput, DescribePipeCommandOutput, import("..").PipesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Get the information about an existing pipe. For more information about pipes, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html">Amazon EventBridge Pipes</a> in the Amazon EventBridge User Guide.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { ListPipesRequest, ListPipesResponse } from "../models/models_0";
4
- import type { PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PipesClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface ListPipesCommandInput extends ListPipesRequest {
22
19
  export interface ListPipesCommandOutput extends ListPipesResponse, __MetadataBearer {
23
20
  }
24
21
  declare const ListPipesCommand_base: {
25
- new (input: ListPipesCommandInput): import("@smithy/core/client").CommandImpl<ListPipesCommandInput, ListPipesCommandOutput, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [ListPipesCommandInput]): import("@smithy/core/client").CommandImpl<ListPipesCommandInput, ListPipesCommandOutput, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ListPipesCommandInput): import("@smithy/core/client").CommandImpl<ListPipesCommandInput, ListPipesCommandOutput, import("..").PipesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListPipesCommandInput]): import("@smithy/core/client").CommandImpl<ListPipesCommandInput, ListPipesCommandOutput, import("..").PipesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Get the pipes associated with this account. For more information about pipes, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html">Amazon EventBridge Pipes</a> in the Amazon EventBridge User Guide.</p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
4
- import type { PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PipesClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequ
22
19
  export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
20
  }
24
21
  declare const ListTagsForResourceCommand_base: {
25
- new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, PipesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").PipesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListTagsForResourceCommandInput): import("@smithy/core/client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, import("..").PipesClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Displays the tags associated with a pipe.</p>