@aws-sdk/client-kinesis 3.797.0 → 3.799.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 (36) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +148 -28
  3. package/dist-cjs/runtimeConfig.js +1 -0
  4. package/dist-es/Kinesis.js +6 -0
  5. package/dist-es/commands/ListTagsForResourceCommand.js +26 -0
  6. package/dist-es/commands/TagResourceCommand.js +26 -0
  7. package/dist-es/commands/UntagResourceCommand.js +26 -0
  8. package/dist-es/commands/index.js +3 -0
  9. package/dist-es/models/models_0.js +12 -12
  10. package/dist-es/protocols/Aws_json1_1.js +63 -9
  11. package/dist-es/runtimeConfig.js +2 -1
  12. package/dist-types/Kinesis.d.ts +22 -0
  13. package/dist-types/KinesisClient.d.ts +5 -2
  14. package/dist-types/commands/CreateStreamCommand.d.ts +1 -5
  15. package/dist-types/commands/GetRecordsCommand.d.ts +4 -0
  16. package/dist-types/commands/GetShardIteratorCommand.d.ts +4 -0
  17. package/dist-types/commands/ListTagsForResourceCommand.d.ts +98 -0
  18. package/dist-types/commands/PutRecordCommand.d.ts +4 -0
  19. package/dist-types/commands/PutRecordsCommand.d.ts +4 -0
  20. package/dist-types/commands/RegisterStreamConsumerCommand.d.ts +4 -0
  21. package/dist-types/commands/TagResourceCommand.d.ts +93 -0
  22. package/dist-types/commands/UntagResourceCommand.d.ts +93 -0
  23. package/dist-types/commands/index.d.ts +3 -0
  24. package/dist-types/models/models_0.d.ts +90 -34
  25. package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
  26. package/dist-types/runtimeConfig.d.ts +1 -1
  27. package/dist-types/ts3.4/Kinesis.d.ts +52 -0
  28. package/dist-types/ts3.4/KinesisClient.d.ts +18 -0
  29. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  30. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
  31. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +26 -11
  34. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  35. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -4
  36. package/package.json +11 -11
package/README.md CHANGED
@@ -357,6 +357,14 @@ ListStreams
357
357
 
358
358
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kinesis/command/ListStreamsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/ListStreamsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/ListStreamsCommandOutput/)
359
359
 
360
+ </details>
361
+ <details>
362
+ <summary>
363
+ ListTagsForResource
364
+ </summary>
365
+
366
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kinesis/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/ListTagsForResourceCommandOutput/)
367
+
360
368
  </details>
361
369
  <details>
362
370
  <summary>
@@ -445,6 +453,22 @@ SubscribeToShard
445
453
 
446
454
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kinesis/command/SubscribeToShardCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/SubscribeToShardCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/SubscribeToShardCommandOutput/)
447
455
 
456
+ </details>
457
+ <details>
458
+ <summary>
459
+ TagResource
460
+ </summary>
461
+
462
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kinesis/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/TagResourceCommandOutput/)
463
+
464
+ </details>
465
+ <details>
466
+ <summary>
467
+ UntagResource
468
+ </summary>
469
+
470
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kinesis/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/UntagResourceCommandOutput/)
471
+
448
472
  </details>
449
473
  <details>
450
474
  <summary>
package/dist-cjs/index.js CHANGED
@@ -57,6 +57,7 @@ __export(index_exports, {
57
57
  ListShardsCommand: () => ListShardsCommand,
58
58
  ListStreamConsumersCommand: () => ListStreamConsumersCommand,
59
59
  ListStreamsCommand: () => ListStreamsCommand,
60
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
60
61
  ListTagsForStreamCommand: () => ListTagsForStreamCommand,
61
62
  MergeShardsCommand: () => MergeShardsCommand,
62
63
  MetricsName: () => MetricsName,
@@ -80,6 +81,8 @@ __export(index_exports, {
80
81
  SubscribeToShardEventStream: () => SubscribeToShardEventStream,
81
82
  SubscribeToShardEventStreamFilterSensitiveLog: () => SubscribeToShardEventStreamFilterSensitiveLog,
82
83
  SubscribeToShardOutputFilterSensitiveLog: () => SubscribeToShardOutputFilterSensitiveLog,
84
+ TagResourceCommand: () => TagResourceCommand,
85
+ UntagResourceCommand: () => UntagResourceCommand,
83
86
  UpdateShardCountCommand: () => UpdateShardCountCommand,
84
87
  UpdateStreamModeCommand: () => UpdateStreamModeCommand,
85
88
  ValidationException: () => ValidationException,
@@ -420,6 +423,24 @@ var ExpiredNextTokenException = class _ExpiredNextTokenException extends Kinesis
420
423
  Object.setPrototypeOf(this, _ExpiredNextTokenException.prototype);
421
424
  }
422
425
  };
426
+ var InternalFailureException = class _InternalFailureException extends KinesisServiceException {
427
+ static {
428
+ __name(this, "InternalFailureException");
429
+ }
430
+ name = "InternalFailureException";
431
+ $fault = "server";
432
+ /**
433
+ * @internal
434
+ */
435
+ constructor(opts) {
436
+ super({
437
+ name: "InternalFailureException",
438
+ $fault: "server",
439
+ ...opts
440
+ });
441
+ Object.setPrototypeOf(this, _InternalFailureException.prototype);
442
+ }
443
+ };
423
444
  var KMSAccessDeniedException = class _KMSAccessDeniedException extends KinesisServiceException {
424
445
  static {
425
446
  __name(this, "KMSAccessDeniedException");
@@ -553,24 +574,6 @@ var ShardIteratorType = {
553
574
  LATEST: "LATEST",
554
575
  TRIM_HORIZON: "TRIM_HORIZON"
555
576
  };
556
- var InternalFailureException = class _InternalFailureException extends KinesisServiceException {
557
- static {
558
- __name(this, "InternalFailureException");
559
- }
560
- name = "InternalFailureException";
561
- $fault = "server";
562
- /**
563
- * @internal
564
- */
565
- constructor(opts) {
566
- super({
567
- name: "InternalFailureException",
568
- $fault: "server",
569
- ...opts
570
- });
571
- Object.setPrototypeOf(this, _InternalFailureException.prototype);
572
- }
573
- };
574
577
  var ShardFilterType = {
575
578
  AFTER_SHARD_ID: "AFTER_SHARD_ID",
576
579
  AT_LATEST: "AT_LATEST",
@@ -753,6 +756,12 @@ var se_ListStreamsCommand = /* @__PURE__ */ __name(async (input, context) => {
753
756
  body = JSON.stringify((0, import_smithy_client._json)(input));
754
757
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
755
758
  }, "se_ListStreamsCommand");
759
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
760
+ const headers = sharedHeaders("ListTagsForResource");
761
+ let body;
762
+ body = JSON.stringify((0, import_smithy_client._json)(input));
763
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
764
+ }, "se_ListTagsForResourceCommand");
756
765
  var se_ListTagsForStreamCommand = /* @__PURE__ */ __name(async (input, context) => {
757
766
  const headers = sharedHeaders("ListTagsForStream");
758
767
  let body;
@@ -819,6 +828,18 @@ var se_SubscribeToShardCommand = /* @__PURE__ */ __name(async (input, context) =
819
828
  body = JSON.stringify(se_SubscribeToShardInput(input, context));
820
829
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
821
830
  }, "se_SubscribeToShardCommand");
831
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
832
+ const headers = sharedHeaders("TagResource");
833
+ let body;
834
+ body = JSON.stringify((0, import_smithy_client._json)(input));
835
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
836
+ }, "se_TagResourceCommand");
837
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
838
+ const headers = sharedHeaders("UntagResource");
839
+ let body;
840
+ body = JSON.stringify((0, import_smithy_client._json)(input));
841
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
842
+ }, "se_UntagResourceCommand");
822
843
  var se_UpdateShardCountCommand = /* @__PURE__ */ __name(async (input, context) => {
823
844
  const headers = sharedHeaders("UpdateShardCount");
824
845
  let body;
@@ -1057,6 +1078,19 @@ var de_ListStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
1057
1078
  };
1058
1079
  return response;
1059
1080
  }, "de_ListStreamsCommand");
1081
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1082
+ if (output.statusCode >= 300) {
1083
+ return de_CommandError(output, context);
1084
+ }
1085
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1086
+ let contents = {};
1087
+ contents = (0, import_smithy_client._json)(data);
1088
+ const response = {
1089
+ $metadata: deserializeMetadata(output),
1090
+ ...contents
1091
+ };
1092
+ return response;
1093
+ }, "de_ListTagsForResourceCommand");
1060
1094
  var de_ListTagsForStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
1061
1095
  if (output.statusCode >= 300) {
1062
1096
  return de_CommandError(output, context);
@@ -1180,6 +1214,26 @@ var de_SubscribeToShardCommand = /* @__PURE__ */ __name(async (output, context)
1180
1214
  };
1181
1215
  return response;
1182
1216
  }, "de_SubscribeToShardCommand");
1217
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1218
+ if (output.statusCode >= 300) {
1219
+ return de_CommandError(output, context);
1220
+ }
1221
+ await (0, import_smithy_client.collectBody)(output.body, context);
1222
+ const response = {
1223
+ $metadata: deserializeMetadata(output)
1224
+ };
1225
+ return response;
1226
+ }, "de_TagResourceCommand");
1227
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1228
+ if (output.statusCode >= 300) {
1229
+ return de_CommandError(output, context);
1230
+ }
1231
+ await (0, import_smithy_client.collectBody)(output.body, context);
1232
+ const response = {
1233
+ $metadata: deserializeMetadata(output)
1234
+ };
1235
+ return response;
1236
+ }, "de_UntagResourceCommand");
1183
1237
  var de_UpdateShardCountCommand = /* @__PURE__ */ __name(async (output, context) => {
1184
1238
  if (output.statusCode >= 300) {
1185
1239
  return de_CommandError(output, context);
@@ -1228,6 +1282,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1228
1282
  case "ExpiredIteratorException":
1229
1283
  case "com.amazonaws.kinesis#ExpiredIteratorException":
1230
1284
  throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
1285
+ case "InternalFailureException":
1286
+ case "com.amazonaws.kinesis#InternalFailureException":
1287
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
1231
1288
  case "KMSAccessDeniedException":
1232
1289
  case "com.amazonaws.kinesis#KMSAccessDeniedException":
1233
1290
  throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
@@ -1291,6 +1348,15 @@ var de_ExpiredNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput
1291
1348
  });
1292
1349
  return (0, import_smithy_client.decorateServiceException)(exception, body);
1293
1350
  }, "de_ExpiredNextTokenExceptionRes");
1351
+ var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1352
+ const body = parsedOutput.body;
1353
+ const deserialized = (0, import_smithy_client._json)(body);
1354
+ const exception = new InternalFailureException({
1355
+ $metadata: deserializeMetadata(parsedOutput),
1356
+ ...deserialized
1357
+ });
1358
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1359
+ }, "de_InternalFailureExceptionRes");
1294
1360
  var de_InvalidArgumentExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1295
1361
  const body = parsedOutput.body;
1296
1362
  const deserialized = (0, import_smithy_client._json)(body);
@@ -1526,15 +1592,6 @@ var de_SubscribeToShardEvent_event = /* @__PURE__ */ __name(async (output, conte
1526
1592
  Object.assign(contents, de_SubscribeToShardEvent(data, context));
1527
1593
  return contents;
1528
1594
  }, "de_SubscribeToShardEvent_event");
1529
- var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1530
- const body = parsedOutput.body;
1531
- const deserialized = (0, import_smithy_client._json)(body);
1532
- const exception = new InternalFailureException({
1533
- $metadata: deserializeMetadata(parsedOutput),
1534
- ...deserialized
1535
- });
1536
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1537
- }, "de_InternalFailureExceptionRes");
1538
1595
  var se_GetShardIteratorInput = /* @__PURE__ */ __name((input, context) => {
1539
1596
  return (0, import_smithy_client.take)(input, {
1540
1597
  ShardId: [],
@@ -2128,6 +2185,25 @@ var ListStreamsCommand = class extends import_smithy_client.Command.classBuilder
2128
2185
  }
2129
2186
  };
2130
2187
 
2188
+ // src/commands/ListTagsForResourceCommand.ts
2189
+
2190
+
2191
+
2192
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep({
2193
+ ...commonParams,
2194
+ OperationType: { type: "staticContextParams", value: `control` },
2195
+ ResourceARN: { type: "contextParams", name: "ResourceARN" }
2196
+ }).m(function(Command, cs, config, o) {
2197
+ return [
2198
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2199
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2200
+ ];
2201
+ }).s("Kinesis_20131202", "ListTagsForResource", {}).n("KinesisClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2202
+ static {
2203
+ __name(this, "ListTagsForResourceCommand");
2204
+ }
2205
+ };
2206
+
2131
2207
  // src/commands/ListTagsForStreamCommand.ts
2132
2208
 
2133
2209
 
@@ -2344,6 +2420,44 @@ var SubscribeToShardCommand = class extends import_smithy_client.Command.classBu
2344
2420
  }
2345
2421
  };
2346
2422
 
2423
+ // src/commands/TagResourceCommand.ts
2424
+
2425
+
2426
+
2427
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep({
2428
+ ...commonParams,
2429
+ OperationType: { type: "staticContextParams", value: `control` },
2430
+ ResourceARN: { type: "contextParams", name: "ResourceARN" }
2431
+ }).m(function(Command, cs, config, o) {
2432
+ return [
2433
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2434
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2435
+ ];
2436
+ }).s("Kinesis_20131202", "TagResource", {}).n("KinesisClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2437
+ static {
2438
+ __name(this, "TagResourceCommand");
2439
+ }
2440
+ };
2441
+
2442
+ // src/commands/UntagResourceCommand.ts
2443
+
2444
+
2445
+
2446
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep({
2447
+ ...commonParams,
2448
+ OperationType: { type: "staticContextParams", value: `control` },
2449
+ ResourceARN: { type: "contextParams", name: "ResourceARN" }
2450
+ }).m(function(Command, cs, config, o) {
2451
+ return [
2452
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2453
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2454
+ ];
2455
+ }).s("Kinesis_20131202", "UntagResource", {}).n("KinesisClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2456
+ static {
2457
+ __name(this, "UntagResourceCommand");
2458
+ }
2459
+ };
2460
+
2347
2461
  // src/commands/UpdateShardCountCommand.ts
2348
2462
 
2349
2463
 
@@ -2403,6 +2517,7 @@ var commands = {
2403
2517
  ListShardsCommand,
2404
2518
  ListStreamConsumersCommand,
2405
2519
  ListStreamsCommand,
2520
+ ListTagsForResourceCommand,
2406
2521
  ListTagsForStreamCommand,
2407
2522
  MergeShardsCommand,
2408
2523
  PutRecordCommand,
@@ -2414,6 +2529,8 @@ var commands = {
2414
2529
  StartStreamEncryptionCommand,
2415
2530
  StopStreamEncryptionCommand,
2416
2531
  SubscribeToShardCommand,
2532
+ TagResourceCommand,
2533
+ UntagResourceCommand,
2417
2534
  UpdateShardCountCommand,
2418
2535
  UpdateStreamModeCommand
2419
2536
  };
@@ -2514,6 +2631,7 @@ var waitUntilStreamNotExists = /* @__PURE__ */ __name(async (params, input) => {
2514
2631
  ListShardsCommand,
2515
2632
  ListStreamConsumersCommand,
2516
2633
  ListStreamsCommand,
2634
+ ListTagsForResourceCommand,
2517
2635
  ListTagsForStreamCommand,
2518
2636
  MergeShardsCommand,
2519
2637
  PutRecordCommand,
@@ -2525,6 +2643,8 @@ var waitUntilStreamNotExists = /* @__PURE__ */ __name(async (params, input) => {
2525
2643
  StartStreamEncryptionCommand,
2526
2644
  StopStreamEncryptionCommand,
2527
2645
  SubscribeToShardCommand,
2646
+ TagResourceCommand,
2647
+ UntagResourceCommand,
2528
2648
  UpdateShardCountCommand,
2529
2649
  UpdateStreamModeCommand,
2530
2650
  paginateListStreamConsumers,
@@ -2545,6 +2665,7 @@ var waitUntilStreamNotExists = /* @__PURE__ */ __name(async (params, input) => {
2545
2665
  StreamStatus,
2546
2666
  ExpiredIteratorException,
2547
2667
  ExpiredNextTokenException,
2668
+ InternalFailureException,
2548
2669
  KMSAccessDeniedException,
2549
2670
  KMSDisabledException,
2550
2671
  KMSInvalidStateException,
@@ -2553,7 +2674,6 @@ var waitUntilStreamNotExists = /* @__PURE__ */ __name(async (params, input) => {
2553
2674
  KMSThrottlingException,
2554
2675
  ProvisionedThroughputExceededException,
2555
2676
  ShardIteratorType,
2556
- InternalFailureException,
2557
2677
  ShardFilterType,
2558
2678
  ValidationException,
2559
2679
  SubscribeToShardEventStream,
@@ -30,6 +30,7 @@ const getRuntimeConfig = (config) => {
30
30
  ...config,
31
31
  runtime: "node",
32
32
  defaultsMode,
33
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
33
34
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
35
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
35
36
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -18,6 +18,7 @@ import { IncreaseStreamRetentionPeriodCommand, } from "./commands/IncreaseStream
18
18
  import { ListShardsCommand } from "./commands/ListShardsCommand";
19
19
  import { ListStreamConsumersCommand, } from "./commands/ListStreamConsumersCommand";
20
20
  import { ListStreamsCommand } from "./commands/ListStreamsCommand";
21
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
21
22
  import { ListTagsForStreamCommand, } from "./commands/ListTagsForStreamCommand";
22
23
  import { MergeShardsCommand } from "./commands/MergeShardsCommand";
23
24
  import { PutRecordCommand } from "./commands/PutRecordCommand";
@@ -29,6 +30,8 @@ import { SplitShardCommand } from "./commands/SplitShardCommand";
29
30
  import { StartStreamEncryptionCommand, } from "./commands/StartStreamEncryptionCommand";
30
31
  import { StopStreamEncryptionCommand, } from "./commands/StopStreamEncryptionCommand";
31
32
  import { SubscribeToShardCommand, } from "./commands/SubscribeToShardCommand";
33
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
34
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
32
35
  import { UpdateShardCountCommand, } from "./commands/UpdateShardCountCommand";
33
36
  import { UpdateStreamModeCommand, } from "./commands/UpdateStreamModeCommand";
34
37
  import { KinesisClient } from "./KinesisClient";
@@ -52,6 +55,7 @@ const commands = {
52
55
  ListShardsCommand,
53
56
  ListStreamConsumersCommand,
54
57
  ListStreamsCommand,
58
+ ListTagsForResourceCommand,
55
59
  ListTagsForStreamCommand,
56
60
  MergeShardsCommand,
57
61
  PutRecordCommand,
@@ -63,6 +67,8 @@ const commands = {
63
67
  StartStreamEncryptionCommand,
64
68
  StopStreamEncryptionCommand,
65
69
  SubscribeToShardCommand,
70
+ TagResourceCommand,
71
+ UntagResourceCommand,
66
72
  UpdateShardCountCommand,
67
73
  UpdateStreamModeCommand,
68
74
  };
@@ -0,0 +1,26 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ OperationType: { type: "staticContextParams", value: `control` },
12
+ ResourceARN: { type: "contextParams", name: "ResourceARN" },
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getSerdePlugin(config, this.serialize, this.deserialize),
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ ];
19
+ })
20
+ .s("Kinesis_20131202", "ListTagsForResource", {})
21
+ .n("KinesisClient", "ListTagsForResourceCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_ListTagsForResourceCommand)
24
+ .de(de_ListTagsForResourceCommand)
25
+ .build() {
26
+ }
@@ -0,0 +1,26 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ OperationType: { type: "staticContextParams", value: `control` },
12
+ ResourceARN: { type: "contextParams", name: "ResourceARN" },
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getSerdePlugin(config, this.serialize, this.deserialize),
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ ];
19
+ })
20
+ .s("Kinesis_20131202", "TagResource", {})
21
+ .n("KinesisClient", "TagResourceCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_TagResourceCommand)
24
+ .de(de_TagResourceCommand)
25
+ .build() {
26
+ }
@@ -0,0 +1,26 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ OperationType: { type: "staticContextParams", value: `control` },
12
+ ResourceARN: { type: "contextParams", name: "ResourceARN" },
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getSerdePlugin(config, this.serialize, this.deserialize),
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ ];
19
+ })
20
+ .s("Kinesis_20131202", "UntagResource", {})
21
+ .n("KinesisClient", "UntagResourceCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_UntagResourceCommand)
24
+ .de(de_UntagResourceCommand)
25
+ .build() {
26
+ }
@@ -17,6 +17,7 @@ export * from "./IncreaseStreamRetentionPeriodCommand";
17
17
  export * from "./ListShardsCommand";
18
18
  export * from "./ListStreamConsumersCommand";
19
19
  export * from "./ListStreamsCommand";
20
+ export * from "./ListTagsForResourceCommand";
20
21
  export * from "./ListTagsForStreamCommand";
21
22
  export * from "./MergeShardsCommand";
22
23
  export * from "./PutRecordCommand";
@@ -28,5 +29,7 @@ export * from "./SplitShardCommand";
28
29
  export * from "./StartStreamEncryptionCommand";
29
30
  export * from "./StopStreamEncryptionCommand";
30
31
  export * from "./SubscribeToShardCommand";
32
+ export * from "./TagResourceCommand";
33
+ export * from "./UntagResourceCommand";
31
34
  export * from "./UpdateShardCountCommand";
32
35
  export * from "./UpdateStreamModeCommand";
@@ -112,6 +112,18 @@ export class ExpiredNextTokenException extends __BaseException {
112
112
  Object.setPrototypeOf(this, ExpiredNextTokenException.prototype);
113
113
  }
114
114
  }
115
+ export class InternalFailureException extends __BaseException {
116
+ name = "InternalFailureException";
117
+ $fault = "server";
118
+ constructor(opts) {
119
+ super({
120
+ name: "InternalFailureException",
121
+ $fault: "server",
122
+ ...opts,
123
+ });
124
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
125
+ }
126
+ }
115
127
  export class KMSAccessDeniedException extends __BaseException {
116
128
  name = "KMSAccessDeniedException";
117
129
  $fault = "client";
@@ -203,18 +215,6 @@ export const ShardIteratorType = {
203
215
  LATEST: "LATEST",
204
216
  TRIM_HORIZON: "TRIM_HORIZON",
205
217
  };
206
- export class InternalFailureException extends __BaseException {
207
- name = "InternalFailureException";
208
- $fault = "server";
209
- constructor(opts) {
210
- super({
211
- name: "InternalFailureException",
212
- $fault: "server",
213
- ...opts,
214
- });
215
- Object.setPrototypeOf(this, InternalFailureException.prototype);
216
- }
217
- }
218
218
  export const ShardFilterType = {
219
219
  AFTER_SHARD_ID: "AFTER_SHARD_ID",
220
220
  AT_LATEST: "AT_LATEST",
@@ -117,6 +117,12 @@ export const se_ListStreamsCommand = async (input, context) => {
117
117
  body = JSON.stringify(_json(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
+ export const se_ListTagsForResourceCommand = async (input, context) => {
121
+ const headers = sharedHeaders("ListTagsForResource");
122
+ let body;
123
+ body = JSON.stringify(_json(input));
124
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
+ };
120
126
  export const se_ListTagsForStreamCommand = async (input, context) => {
121
127
  const headers = sharedHeaders("ListTagsForStream");
122
128
  let body;
@@ -183,6 +189,18 @@ export const se_SubscribeToShardCommand = async (input, context) => {
183
189
  body = JSON.stringify(se_SubscribeToShardInput(input, context));
184
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
191
  };
192
+ export const se_TagResourceCommand = async (input, context) => {
193
+ const headers = sharedHeaders("TagResource");
194
+ let body;
195
+ body = JSON.stringify(_json(input));
196
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
+ };
198
+ export const se_UntagResourceCommand = async (input, context) => {
199
+ const headers = sharedHeaders("UntagResource");
200
+ let body;
201
+ body = JSON.stringify(_json(input));
202
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
+ };
186
204
  export const se_UpdateShardCountCommand = async (input, context) => {
187
205
  const headers = sharedHeaders("UpdateShardCount");
188
206
  let body;
@@ -421,6 +439,19 @@ export const de_ListStreamsCommand = async (output, context) => {
421
439
  };
422
440
  return response;
423
441
  };
442
+ export const de_ListTagsForResourceCommand = async (output, context) => {
443
+ if (output.statusCode >= 300) {
444
+ return de_CommandError(output, context);
445
+ }
446
+ const data = await parseBody(output.body, context);
447
+ let contents = {};
448
+ contents = _json(data);
449
+ const response = {
450
+ $metadata: deserializeMetadata(output),
451
+ ...contents,
452
+ };
453
+ return response;
454
+ };
424
455
  export const de_ListTagsForStreamCommand = async (output, context) => {
425
456
  if (output.statusCode >= 300) {
426
457
  return de_CommandError(output, context);
@@ -544,6 +575,26 @@ export const de_SubscribeToShardCommand = async (output, context) => {
544
575
  };
545
576
  return response;
546
577
  };
578
+ export const de_TagResourceCommand = async (output, context) => {
579
+ if (output.statusCode >= 300) {
580
+ return de_CommandError(output, context);
581
+ }
582
+ await collectBody(output.body, context);
583
+ const response = {
584
+ $metadata: deserializeMetadata(output),
585
+ };
586
+ return response;
587
+ };
588
+ export const de_UntagResourceCommand = async (output, context) => {
589
+ if (output.statusCode >= 300) {
590
+ return de_CommandError(output, context);
591
+ }
592
+ await collectBody(output.body, context);
593
+ const response = {
594
+ $metadata: deserializeMetadata(output),
595
+ };
596
+ return response;
597
+ };
547
598
  export const de_UpdateShardCountCommand = async (output, context) => {
548
599
  if (output.statusCode >= 300) {
549
600
  return de_CommandError(output, context);
@@ -592,6 +643,9 @@ const de_CommandError = async (output, context) => {
592
643
  case "ExpiredIteratorException":
593
644
  case "com.amazonaws.kinesis#ExpiredIteratorException":
594
645
  throw await de_ExpiredIteratorExceptionRes(parsedOutput, context);
646
+ case "InternalFailureException":
647
+ case "com.amazonaws.kinesis#InternalFailureException":
648
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
595
649
  case "KMSAccessDeniedException":
596
650
  case "com.amazonaws.kinesis#KMSAccessDeniedException":
597
651
  throw await de_KMSAccessDeniedExceptionRes(parsedOutput, context);
@@ -655,6 +709,15 @@ const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
655
709
  });
656
710
  return __decorateServiceException(exception, body);
657
711
  };
712
+ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
713
+ const body = parsedOutput.body;
714
+ const deserialized = _json(body);
715
+ const exception = new InternalFailureException({
716
+ $metadata: deserializeMetadata(parsedOutput),
717
+ ...deserialized,
718
+ });
719
+ return __decorateServiceException(exception, body);
720
+ };
658
721
  const de_InvalidArgumentExceptionRes = async (parsedOutput, context) => {
659
722
  const body = parsedOutput.body;
660
723
  const deserialized = _json(body);
@@ -887,15 +950,6 @@ const de_SubscribeToShardEvent_event = async (output, context) => {
887
950
  Object.assign(contents, de_SubscribeToShardEvent(data, context));
888
951
  return contents;
889
952
  };
890
- const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
891
- const body = parsedOutput.body;
892
- const deserialized = _json(body);
893
- const exception = new InternalFailureException({
894
- $metadata: deserializeMetadata(parsedOutput),
895
- ...deserialized,
896
- });
897
- return __decorateServiceException(exception, body);
898
- };
899
953
  const se_GetShardIteratorInput = (input, context) => {
900
954
  return take(input, {
901
955
  ShardId: [],
@@ -1,5 +1,5 @@
1
1
  import packageInfo from "../package.json";
2
- import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
4
  import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
@@ -26,6 +26,7 @@ export const getRuntimeConfig = (config) => {
26
26
  ...config,
27
27
  runtime: "node",
28
28
  defaultsMode,
29
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
29
30
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
31
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
31
32
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??