@aws-sdk/client-firehose 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 (56) hide show
  1. package/dist-cjs/index.js +23 -125
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateDeliveryStreamCommand.js +2 -14
  4. package/dist-es/commands/DeleteDeliveryStreamCommand.js +2 -14
  5. package/dist-es/commands/DescribeDeliveryStreamCommand.js +2 -14
  6. package/dist-es/commands/ListDeliveryStreamsCommand.js +2 -14
  7. package/dist-es/commands/ListTagsForDeliveryStreamCommand.js +2 -14
  8. package/dist-es/commands/PutRecordBatchCommand.js +2 -14
  9. package/dist-es/commands/PutRecordCommand.js +2 -14
  10. package/dist-es/commands/StartDeliveryStreamEncryptionCommand.js +2 -14
  11. package/dist-es/commands/StopDeliveryStreamEncryptionCommand.js +2 -14
  12. package/dist-es/commands/TagDeliveryStreamCommand.js +2 -14
  13. package/dist-es/commands/UntagDeliveryStreamCommand.js +2 -14
  14. package/dist-es/commands/UpdateDestinationCommand.js +2 -14
  15. package/dist-es/index.js +1 -0
  16. package/dist-es/runtimeConfig.browser.js +0 -2
  17. package/dist-es/runtimeConfig.js +1 -2
  18. package/dist-es/runtimeConfig.native.js +0 -2
  19. package/dist-es/runtimeConfig.shared.js +2 -0
  20. package/dist-types/commandBuilder.d.ts +18 -0
  21. package/dist-types/commands/CreateDeliveryStreamCommand.d.ts +3 -8
  22. package/dist-types/commands/DeleteDeliveryStreamCommand.d.ts +3 -8
  23. package/dist-types/commands/DescribeDeliveryStreamCommand.d.ts +3 -8
  24. package/dist-types/commands/ListDeliveryStreamsCommand.d.ts +3 -8
  25. package/dist-types/commands/ListTagsForDeliveryStreamCommand.d.ts +3 -8
  26. package/dist-types/commands/PutRecordBatchCommand.d.ts +3 -8
  27. package/dist-types/commands/PutRecordCommand.d.ts +3 -8
  28. package/dist-types/commands/StartDeliveryStreamEncryptionCommand.d.ts +3 -8
  29. package/dist-types/commands/StopDeliveryStreamEncryptionCommand.d.ts +3 -8
  30. package/dist-types/commands/TagDeliveryStreamCommand.d.ts +3 -8
  31. package/dist-types/commands/UntagDeliveryStreamCommand.d.ts +3 -8
  32. package/dist-types/commands/UpdateDestinationCommand.d.ts +3 -8
  33. package/dist-types/index.d.ts +1 -0
  34. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  35. package/dist-types/runtimeConfig.d.ts +1 -1
  36. package/dist-types/runtimeConfig.native.d.ts +1 -1
  37. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  38. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  39. package/dist-types/ts3.4/commands/CreateDeliveryStreamCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/commands/DeleteDeliveryStreamCommand.d.ts +7 -16
  41. package/dist-types/ts3.4/commands/DescribeDeliveryStreamCommand.d.ts +7 -16
  42. package/dist-types/ts3.4/commands/ListDeliveryStreamsCommand.d.ts +7 -16
  43. package/dist-types/ts3.4/commands/ListTagsForDeliveryStreamCommand.d.ts +7 -16
  44. package/dist-types/ts3.4/commands/PutRecordBatchCommand.d.ts +7 -16
  45. package/dist-types/ts3.4/commands/PutRecordCommand.d.ts +7 -16
  46. package/dist-types/ts3.4/commands/StartDeliveryStreamEncryptionCommand.d.ts +7 -16
  47. package/dist-types/ts3.4/commands/StopDeliveryStreamEncryptionCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/TagDeliveryStreamCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/UntagDeliveryStreamCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/UpdateDestinationCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/index.d.ts +1 -0
  52. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  53. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  54. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  55. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  56. 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 { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultFirehoseHttpAuthSchemeParametersProvider = 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
 
@@ -1380,6 +1382,7 @@ const getRuntimeConfig$1 = (config) => {
1380
1382
  serviceTarget: "Firehose_20150804",
1381
1383
  },
1382
1384
  serviceId: config?.serviceId ?? "Firehose",
1385
+ sha256: config?.sha256 ?? Sha256,
1383
1386
  urlParser: config?.urlParser ?? parseUrl,
1384
1387
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1385
1388
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1413,7 +1416,6 @@ const getRuntimeConfig = (config) => {
1413
1416
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1414
1417
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1415
1418
  }, config),
1416
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1417
1419
  streamCollector: config?.streamCollector ?? streamCollector,
1418
1420
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1419
1421
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1501,148 +1503,44 @@ class FirehoseClient extends Client {
1501
1503
  }
1502
1504
  }
1503
1505
 
1504
- class CreateDeliveryStreamCommand extends Command
1505
- .classBuilder()
1506
- .ep(commonParams)
1507
- .m(function (Command, cs, config, o) {
1508
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1509
- })
1510
- .s("Firehose_20150804", "CreateDeliveryStream", {})
1511
- .n("FirehoseClient", "CreateDeliveryStreamCommand")
1512
- .sc(CreateDeliveryStream$)
1513
- .build() {
1506
+ const command = makeBuilder(commonParams, "Firehose_20150804", "FirehoseClient", getEndpointPlugin);
1507
+ const _ep0 = {};
1508
+ const _mw0 = (Command, cs, config, o) => [];
1509
+
1510
+ class CreateDeliveryStreamCommand extends command(_ep0, _mw0, "CreateDeliveryStream", CreateDeliveryStream$) {
1514
1511
  }
1515
1512
 
1516
- class DeleteDeliveryStreamCommand extends Command
1517
- .classBuilder()
1518
- .ep(commonParams)
1519
- .m(function (Command, cs, config, o) {
1520
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1521
- })
1522
- .s("Firehose_20150804", "DeleteDeliveryStream", {})
1523
- .n("FirehoseClient", "DeleteDeliveryStreamCommand")
1524
- .sc(DeleteDeliveryStream$)
1525
- .build() {
1513
+ class DeleteDeliveryStreamCommand extends command(_ep0, _mw0, "DeleteDeliveryStream", DeleteDeliveryStream$) {
1526
1514
  }
1527
1515
 
1528
- class DescribeDeliveryStreamCommand extends Command
1529
- .classBuilder()
1530
- .ep(commonParams)
1531
- .m(function (Command, cs, config, o) {
1532
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1533
- })
1534
- .s("Firehose_20150804", "DescribeDeliveryStream", {})
1535
- .n("FirehoseClient", "DescribeDeliveryStreamCommand")
1536
- .sc(DescribeDeliveryStream$)
1537
- .build() {
1516
+ class DescribeDeliveryStreamCommand extends command(_ep0, _mw0, "DescribeDeliveryStream", DescribeDeliveryStream$) {
1538
1517
  }
1539
1518
 
1540
- class ListDeliveryStreamsCommand extends Command
1541
- .classBuilder()
1542
- .ep(commonParams)
1543
- .m(function (Command, cs, config, o) {
1544
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1545
- })
1546
- .s("Firehose_20150804", "ListDeliveryStreams", {})
1547
- .n("FirehoseClient", "ListDeliveryStreamsCommand")
1548
- .sc(ListDeliveryStreams$)
1549
- .build() {
1519
+ class ListDeliveryStreamsCommand extends command(_ep0, _mw0, "ListDeliveryStreams", ListDeliveryStreams$) {
1550
1520
  }
1551
1521
 
1552
- class ListTagsForDeliveryStreamCommand extends Command
1553
- .classBuilder()
1554
- .ep(commonParams)
1555
- .m(function (Command, cs, config, o) {
1556
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1557
- })
1558
- .s("Firehose_20150804", "ListTagsForDeliveryStream", {})
1559
- .n("FirehoseClient", "ListTagsForDeliveryStreamCommand")
1560
- .sc(ListTagsForDeliveryStream$)
1561
- .build() {
1522
+ class ListTagsForDeliveryStreamCommand extends command(_ep0, _mw0, "ListTagsForDeliveryStream", ListTagsForDeliveryStream$) {
1562
1523
  }
1563
1524
 
1564
- class PutRecordBatchCommand extends Command
1565
- .classBuilder()
1566
- .ep(commonParams)
1567
- .m(function (Command, cs, config, o) {
1568
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1569
- })
1570
- .s("Firehose_20150804", "PutRecordBatch", {})
1571
- .n("FirehoseClient", "PutRecordBatchCommand")
1572
- .sc(PutRecordBatch$)
1573
- .build() {
1525
+ class PutRecordBatchCommand extends command(_ep0, _mw0, "PutRecordBatch", PutRecordBatch$) {
1574
1526
  }
1575
1527
 
1576
- class PutRecordCommand extends Command
1577
- .classBuilder()
1578
- .ep(commonParams)
1579
- .m(function (Command, cs, config, o) {
1580
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1581
- })
1582
- .s("Firehose_20150804", "PutRecord", {})
1583
- .n("FirehoseClient", "PutRecordCommand")
1584
- .sc(PutRecord$)
1585
- .build() {
1528
+ class PutRecordCommand extends command(_ep0, _mw0, "PutRecord", PutRecord$) {
1586
1529
  }
1587
1530
 
1588
- class StartDeliveryStreamEncryptionCommand extends Command
1589
- .classBuilder()
1590
- .ep(commonParams)
1591
- .m(function (Command, cs, config, o) {
1592
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1593
- })
1594
- .s("Firehose_20150804", "StartDeliveryStreamEncryption", {})
1595
- .n("FirehoseClient", "StartDeliveryStreamEncryptionCommand")
1596
- .sc(StartDeliveryStreamEncryption$)
1597
- .build() {
1531
+ class StartDeliveryStreamEncryptionCommand extends command(_ep0, _mw0, "StartDeliveryStreamEncryption", StartDeliveryStreamEncryption$) {
1598
1532
  }
1599
1533
 
1600
- class StopDeliveryStreamEncryptionCommand extends Command
1601
- .classBuilder()
1602
- .ep(commonParams)
1603
- .m(function (Command, cs, config, o) {
1604
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1605
- })
1606
- .s("Firehose_20150804", "StopDeliveryStreamEncryption", {})
1607
- .n("FirehoseClient", "StopDeliveryStreamEncryptionCommand")
1608
- .sc(StopDeliveryStreamEncryption$)
1609
- .build() {
1534
+ class StopDeliveryStreamEncryptionCommand extends command(_ep0, _mw0, "StopDeliveryStreamEncryption", StopDeliveryStreamEncryption$) {
1610
1535
  }
1611
1536
 
1612
- class TagDeliveryStreamCommand extends Command
1613
- .classBuilder()
1614
- .ep(commonParams)
1615
- .m(function (Command, cs, config, o) {
1616
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1617
- })
1618
- .s("Firehose_20150804", "TagDeliveryStream", {})
1619
- .n("FirehoseClient", "TagDeliveryStreamCommand")
1620
- .sc(TagDeliveryStream$)
1621
- .build() {
1537
+ class TagDeliveryStreamCommand extends command(_ep0, _mw0, "TagDeliveryStream", TagDeliveryStream$) {
1622
1538
  }
1623
1539
 
1624
- class UntagDeliveryStreamCommand extends Command
1625
- .classBuilder()
1626
- .ep(commonParams)
1627
- .m(function (Command, cs, config, o) {
1628
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1629
- })
1630
- .s("Firehose_20150804", "UntagDeliveryStream", {})
1631
- .n("FirehoseClient", "UntagDeliveryStreamCommand")
1632
- .sc(UntagDeliveryStream$)
1633
- .build() {
1540
+ class UntagDeliveryStreamCommand extends command(_ep0, _mw0, "UntagDeliveryStream", UntagDeliveryStream$) {
1634
1541
  }
1635
1542
 
1636
- class UpdateDestinationCommand extends Command
1637
- .classBuilder()
1638
- .ep(commonParams)
1639
- .m(function (Command, cs, config, o) {
1640
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1641
- })
1642
- .s("Firehose_20150804", "UpdateDestination", {})
1643
- .n("FirehoseClient", "UpdateDestinationCommand")
1644
- .sc(UpdateDestination$)
1645
- .build() {
1543
+ class UpdateDestinationCommand extends command(_ep0, _mw0, "UpdateDestination", UpdateDestination$) {
1646
1544
  }
1647
1545
 
1648
1546
  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, "Firehose_20150804", "FirehoseClient", 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 { CreateDeliveryStream$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateDeliveryStreamCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "CreateDeliveryStream", {})
13
- .n("FirehoseClient", "CreateDeliveryStreamCommand")
14
- .sc(CreateDeliveryStream$)
15
- .build() {
3
+ export class CreateDeliveryStreamCommand extends command(_ep0, _mw0, "CreateDeliveryStream", CreateDeliveryStream$) {
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 { DeleteDeliveryStream$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteDeliveryStreamCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "DeleteDeliveryStream", {})
13
- .n("FirehoseClient", "DeleteDeliveryStreamCommand")
14
- .sc(DeleteDeliveryStream$)
15
- .build() {
3
+ export class DeleteDeliveryStreamCommand extends command(_ep0, _mw0, "DeleteDeliveryStream", DeleteDeliveryStream$) {
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 { DescribeDeliveryStream$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeDeliveryStreamCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "DescribeDeliveryStream", {})
13
- .n("FirehoseClient", "DescribeDeliveryStreamCommand")
14
- .sc(DescribeDeliveryStream$)
15
- .build() {
3
+ export class DescribeDeliveryStreamCommand extends command(_ep0, _mw0, "DescribeDeliveryStream", DescribeDeliveryStream$) {
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 { ListDeliveryStreams$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDeliveryStreamsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "ListDeliveryStreams", {})
13
- .n("FirehoseClient", "ListDeliveryStreamsCommand")
14
- .sc(ListDeliveryStreams$)
15
- .build() {
3
+ export class ListDeliveryStreamsCommand extends command(_ep0, _mw0, "ListDeliveryStreams", ListDeliveryStreams$) {
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 { ListTagsForDeliveryStream$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForDeliveryStreamCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "ListTagsForDeliveryStream", {})
13
- .n("FirehoseClient", "ListTagsForDeliveryStreamCommand")
14
- .sc(ListTagsForDeliveryStream$)
15
- .build() {
3
+ export class ListTagsForDeliveryStreamCommand extends command(_ep0, _mw0, "ListTagsForDeliveryStream", ListTagsForDeliveryStream$) {
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 { PutRecordBatch$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutRecordBatchCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "PutRecordBatch", {})
13
- .n("FirehoseClient", "PutRecordBatchCommand")
14
- .sc(PutRecordBatch$)
15
- .build() {
3
+ export class PutRecordBatchCommand extends command(_ep0, _mw0, "PutRecordBatch", PutRecordBatch$) {
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 { PutRecord$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutRecordCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "PutRecord", {})
13
- .n("FirehoseClient", "PutRecordCommand")
14
- .sc(PutRecord$)
15
- .build() {
3
+ export class PutRecordCommand extends command(_ep0, _mw0, "PutRecord", PutRecord$) {
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 { StartDeliveryStreamEncryption$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StartDeliveryStreamEncryptionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "StartDeliveryStreamEncryption", {})
13
- .n("FirehoseClient", "StartDeliveryStreamEncryptionCommand")
14
- .sc(StartDeliveryStreamEncryption$)
15
- .build() {
3
+ export class StartDeliveryStreamEncryptionCommand extends command(_ep0, _mw0, "StartDeliveryStreamEncryption", StartDeliveryStreamEncryption$) {
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 { StopDeliveryStreamEncryption$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class StopDeliveryStreamEncryptionCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "StopDeliveryStreamEncryption", {})
13
- .n("FirehoseClient", "StopDeliveryStreamEncryptionCommand")
14
- .sc(StopDeliveryStreamEncryption$)
15
- .build() {
3
+ export class StopDeliveryStreamEncryptionCommand extends command(_ep0, _mw0, "StopDeliveryStreamEncryption", StopDeliveryStreamEncryption$) {
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 { TagDeliveryStream$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagDeliveryStreamCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "TagDeliveryStream", {})
13
- .n("FirehoseClient", "TagDeliveryStreamCommand")
14
- .sc(TagDeliveryStream$)
15
- .build() {
3
+ export class TagDeliveryStreamCommand extends command(_ep0, _mw0, "TagDeliveryStream", TagDeliveryStream$) {
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 { UntagDeliveryStream$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagDeliveryStreamCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "UntagDeliveryStream", {})
13
- .n("FirehoseClient", "UntagDeliveryStreamCommand")
14
- .sc(UntagDeliveryStream$)
15
- .build() {
3
+ export class UntagDeliveryStreamCommand extends command(_ep0, _mw0, "UntagDeliveryStream", UntagDeliveryStream$) {
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 { UpdateDestination$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateDestinationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Firehose_20150804", "UpdateDestination", {})
13
- .n("FirehoseClient", "UpdateDestinationCommand")
14
- .sc(UpdateDestination$)
15
- .build() {
3
+ export class UpdateDestinationCommand extends command(_ep0, _mw0, "UpdateDestination", UpdateDestination$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./FirehoseClient";
2
2
  export * from "./Firehose";
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 "./models/enums";
6
7
  export * from "./models/errors";
@@ -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 { AwsJson1_1Protocol } 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: "Firehose_20150804",
33
34
  },
34
35
  serviceId: config?.serviceId ?? "Firehose",
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 { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./FirehoseClient";
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, FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, FirehoseClientResolvedConfig, 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
- import type { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
4
2
  import type { CreateDeliveryStreamInput, CreateDeliveryStreamOutput } from "../models/models_0";
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 CreateDeliveryStreamCommandInput extends CreateDeliveryStreamIn
22
19
  export interface CreateDeliveryStreamCommandOutput extends CreateDeliveryStreamOutput, __MetadataBearer {
23
20
  }
24
21
  declare const CreateDeliveryStreamCommand_base: {
25
- new (input: CreateDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<CreateDeliveryStreamCommandInput, CreateDeliveryStreamCommandOutput, FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<CreateDeliveryStreamCommandInput, CreateDeliveryStreamCommandOutput, FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<CreateDeliveryStreamCommandInput, CreateDeliveryStreamCommandOutput, import("..").FirehoseClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<CreateDeliveryStreamCommandInput, CreateDeliveryStreamCommandOutput, import("..").FirehoseClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a Firehose stream.</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
- import type { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
4
2
  import type { DeleteDeliveryStreamInput, DeleteDeliveryStreamOutput } from "../models/models_0";
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 DeleteDeliveryStreamCommandInput extends DeleteDeliveryStreamIn
22
19
  export interface DeleteDeliveryStreamCommandOutput extends DeleteDeliveryStreamOutput, __MetadataBearer {
23
20
  }
24
21
  declare const DeleteDeliveryStreamCommand_base: {
25
- new (input: DeleteDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<DeleteDeliveryStreamCommandInput, DeleteDeliveryStreamCommandOutput, FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<DeleteDeliveryStreamCommandInput, DeleteDeliveryStreamCommandOutput, FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DeleteDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<DeleteDeliveryStreamCommandInput, DeleteDeliveryStreamCommandOutput, import("..").FirehoseClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DeleteDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<DeleteDeliveryStreamCommandInput, DeleteDeliveryStreamCommandOutput, import("..").FirehoseClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Deletes a Firehose stream and its data.</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
- import type { FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FirehoseClient";
4
2
  import type { DescribeDeliveryStreamInput, DescribeDeliveryStreamOutput } from "../models/models_0";
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 DescribeDeliveryStreamCommandInput extends DescribeDeliveryStre
22
19
  export interface DescribeDeliveryStreamCommandOutput extends DescribeDeliveryStreamOutput, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeDeliveryStreamCommand_base: {
25
- new (input: DescribeDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeliveryStreamCommandInput, DescribeDeliveryStreamCommandOutput, FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DescribeDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeliveryStreamCommandInput, DescribeDeliveryStreamCommandOutput, FirehoseClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeliveryStreamCommandInput, DescribeDeliveryStreamCommandOutput, import("..").FirehoseClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribeDeliveryStreamCommandInput): import("@smithy/core/client").CommandImpl<DescribeDeliveryStreamCommandInput, DescribeDeliveryStreamCommandOutput, import("..").FirehoseClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Describes the specified Firehose stream and its status. For example, after your