@aws-sdk/client-kinesis 3.43.0 → 3.47.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/CHANGELOG.md +50 -0
  2. package/README.md +2 -2
  3. package/dist-cjs/Kinesis.js +15 -0
  4. package/dist-cjs/commands/UpdateStreamModeCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +1 -0
  6. package/dist-cjs/endpoints.js +1 -16
  7. package/dist-cjs/models/models_0.js +28 -95
  8. package/dist-cjs/protocols/Aws_json1_1.js +151 -2
  9. package/dist-cjs/runtimeConfig.browser.js +7 -2
  10. package/dist-cjs/runtimeConfig.js +9 -3
  11. package/dist-es/Kinesis.js +15 -0
  12. package/dist-es/commands/UpdateStreamModeCommand.js +39 -0
  13. package/dist-es/commands/index.js +1 -0
  14. package/dist-es/endpoints.js +1 -16
  15. package/dist-es/models/models_0.js +22 -65
  16. package/dist-es/protocols/Aws_json1_1.js +189 -35
  17. package/dist-es/runtimeConfig.browser.js +12 -3
  18. package/dist-es/runtimeConfig.js +13 -6
  19. package/dist-types/Kinesis.d.ts +165 -143
  20. package/dist-types/KinesisClient.d.ts +10 -5
  21. package/dist-types/commands/AddTagsToStreamCommand.d.ts +2 -4
  22. package/dist-types/commands/CreateStreamCommand.d.ts +19 -19
  23. package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +5 -5
  24. package/dist-types/commands/DeleteStreamCommand.d.ts +5 -4
  25. package/dist-types/commands/DescribeStreamCommand.d.ts +5 -1
  26. package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +5 -5
  27. package/dist-types/commands/GetRecordsCommand.d.ts +29 -19
  28. package/dist-types/commands/GetShardIteratorCommand.d.ts +7 -7
  29. package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +3 -3
  30. package/dist-types/commands/ListShardsCommand.d.ts +4 -2
  31. package/dist-types/commands/ListStreamsCommand.d.ts +1 -1
  32. package/dist-types/commands/MergeShardsCommand.d.ts +5 -5
  33. package/dist-types/commands/PutRecordCommand.d.ts +8 -8
  34. package/dist-types/commands/PutRecordsCommand.d.ts +7 -7
  35. package/dist-types/commands/SplitShardCommand.d.ts +17 -19
  36. package/dist-types/commands/StartStreamEncryptionCommand.d.ts +10 -10
  37. package/dist-types/commands/StopStreamEncryptionCommand.d.ts +8 -9
  38. package/dist-types/commands/SubscribeToShardCommand.d.ts +3 -2
  39. package/dist-types/commands/UpdateShardCountCommand.d.ts +10 -11
  40. package/dist-types/commands/UpdateStreamModeCommand.d.ts +38 -0
  41. package/dist-types/commands/index.d.ts +1 -0
  42. package/dist-types/models/models_0.d.ts +327 -236
  43. package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
  44. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  45. package/dist-types/runtimeConfig.d.ts +4 -3
  46. package/dist-types/runtimeConfig.native.d.ts +1 -0
  47. package/dist-types/ts3.4/Kinesis.d.ts +5 -0
  48. package/dist-types/ts3.4/KinesisClient.d.ts +6 -3
  49. package/dist-types/ts3.4/commands/UpdateStreamModeCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +50 -57
  52. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
  53. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  54. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  55. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  56. package/package.json +42 -49
package/CHANGELOG.md CHANGED
@@ -3,6 +3,56 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.44.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.43.0...v3.44.0) (2021-12-02)
46
+
47
+
48
+ ### Features
49
+
50
+ * **clients:** update clients as of 2021/11/30 ([#3077](https://github.com/aws/aws-sdk-js-v3/issues/3077)) ([2bdba30](https://github.com/aws/aws-sdk-js-v3/commit/2bdba30963e550728ba2903d57daa1e666a29d71))
51
+
52
+
53
+
54
+
55
+
6
56
  # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
7
57
 
8
58
  **Note:** Version bump only for package @aws-sdk/client-kinesis
package/README.md CHANGED
@@ -9,8 +9,8 @@ AWS SDK for JavaScript Kinesis Client for Node.js, Browser and React Native.
9
9
 
10
10
  <fullname>Amazon Kinesis Data Streams Service API Reference</fullname>
11
11
 
12
- <p>Amazon Kinesis Data Streams is a managed service that scales elastically for
13
- real-time processing of streaming big data.</p>
12
+ <p>Amazon Kinesis Data Streams is a managed service that scales elastically for real-time
13
+ processing of streaming big data.</p>
14
14
 
15
15
  ## Installing
16
16
 
@@ -29,6 +29,7 @@ const StartStreamEncryptionCommand_1 = require("./commands/StartStreamEncryption
29
29
  const StopStreamEncryptionCommand_1 = require("./commands/StopStreamEncryptionCommand");
30
30
  const SubscribeToShardCommand_1 = require("./commands/SubscribeToShardCommand");
31
31
  const UpdateShardCountCommand_1 = require("./commands/UpdateShardCountCommand");
32
+ const UpdateStreamModeCommand_1 = require("./commands/UpdateStreamModeCommand");
32
33
  const KinesisClient_1 = require("./KinesisClient");
33
34
  class Kinesis extends KinesisClient_1.KinesisClient {
34
35
  addTagsToStream(args, optionsOrCb, cb) {
@@ -423,5 +424,19 @@ class Kinesis extends KinesisClient_1.KinesisClient {
423
424
  return this.send(command, optionsOrCb);
424
425
  }
425
426
  }
427
+ updateStreamMode(args, optionsOrCb, cb) {
428
+ const command = new UpdateStreamModeCommand_1.UpdateStreamModeCommand(args);
429
+ if (typeof optionsOrCb === "function") {
430
+ this.send(command, optionsOrCb);
431
+ }
432
+ else if (typeof cb === "function") {
433
+ if (typeof optionsOrCb !== "object")
434
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
435
+ this.send(command, optionsOrCb || {}, cb);
436
+ }
437
+ else {
438
+ return this.send(command, optionsOrCb);
439
+ }
440
+ }
426
441
  }
427
442
  exports.Kinesis = Kinesis;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateStreamModeCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class UpdateStreamModeCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "KinesisClient";
18
+ const commandName = "UpdateStreamModeCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateStreamModeInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1UpdateStreamModeCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1UpdateStreamModeCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateStreamModeCommand = UpdateStreamModeCommand;
@@ -29,3 +29,4 @@ tslib_1.__exportStar(require("./StartStreamEncryptionCommand"), exports);
29
29
  tslib_1.__exportStar(require("./StopStreamEncryptionCommand"), exports);
30
30
  tslib_1.__exportStar(require("./SubscribeToShardCommand"), exports);
31
31
  tslib_1.__exportStar(require("./UpdateShardCountCommand"), exports);
32
+ tslib_1.__exportStar(require("./UpdateStreamModeCommand"), exports);
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "us-east-1": {
7
7
  variants: [
8
- {
9
- hostname: "kinesis.us-east-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "kinesis-fips.us-east-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "us-east-2": {
19
15
  variants: [
20
- {
21
- hostname: "kinesis.us-east-2.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "kinesis-fips.us-east-2.amazonaws.com",
26
18
  tags: ["fips"],
@@ -47,10 +39,6 @@ const regionHash = {
47
39
  },
48
40
  "us-west-1": {
49
41
  variants: [
50
- {
51
- hostname: "kinesis.us-west-1.amazonaws.com",
52
- tags: [],
53
- },
54
42
  {
55
43
  hostname: "kinesis-fips.us-west-1.amazonaws.com",
56
44
  tags: ["fips"],
@@ -59,10 +47,6 @@ const regionHash = {
59
47
  },
60
48
  "us-west-2": {
61
49
  variants: [
62
- {
63
- hostname: "kinesis.us-west-2.amazonaws.com",
64
- tags: [],
65
- },
66
50
  {
67
51
  hostname: "kinesis-fips.us-west-2.amazonaws.com",
68
52
  tags: ["fips"],
@@ -81,6 +65,7 @@ const partitionHash = {
81
65
  "ap-south-1",
82
66
  "ap-southeast-1",
83
67
  "ap-southeast-2",
68
+ "ap-southeast-3",
84
69
  "ca-central-1",
85
70
  "eu-central-1",
86
71
  "eu-north-1",
@@ -1,37 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InternalFailureException = exports.IncreaseStreamRetentionPeriodInput = exports.GetShardIteratorOutput = exports.GetShardIteratorInput = exports.ShardIteratorType = exports.ProvisionedThroughputExceededException = exports.KMSThrottlingException = exports.KMSOptInRequired = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.GetRecordsOutput = exports._Record = exports.GetRecordsInput = exports.ExpiredNextTokenException = exports.ExpiredIteratorException = exports.EnableEnhancedMonitoringInput = exports.EnhancedMonitoringOutput = exports.DisableEnhancedMonitoringInput = exports.DescribeStreamSummaryOutput = exports.StreamDescriptionSummary = exports.DescribeStreamSummaryInput = exports.DescribeStreamConsumerOutput = exports.DescribeStreamConsumerInput = exports.DescribeStreamOutput = exports.StreamDescription = exports.StreamStatus = exports.Shard = exports.SequenceNumberRange = exports.EnhancedMetrics = exports.MetricsName = exports.EncryptionType = exports.DescribeStreamInput = exports.DescribeLimitsOutput = exports.DescribeLimitsInput = exports.DeregisterStreamConsumerInput = exports.DeleteStreamInput = exports.DecreaseStreamRetentionPeriodInput = exports.CreateStreamInput = exports.ConsumerDescription = exports.Consumer = exports.ConsumerStatus = exports.ChildShard = exports.HashKeyRange = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.LimitExceededException = exports.InvalidArgumentException = exports.AddTagsToStreamInput = void 0;
4
- exports.UpdateShardCountOutput = exports.UpdateShardCountInput = exports.ScalingType = exports.SubscribeToShardOutput = exports.SubscribeToShardEventStream = exports.SubscribeToShardEvent = exports.SubscribeToShardInput = exports.StartingPosition = exports.StopStreamEncryptionInput = exports.StartStreamEncryptionInput = exports.SplitShardInput = exports.RemoveTagsFromStreamInput = exports.RegisterStreamConsumerOutput = exports.RegisterStreamConsumerInput = exports.PutRecordsOutput = exports.PutRecordsResultEntry = exports.PutRecordsInput = exports.PutRecordsRequestEntry = exports.PutRecordOutput = exports.PutRecordInput = exports.MergeShardsInput = exports.ListTagsForStreamOutput = exports.Tag = exports.ListTagsForStreamInput = exports.ListStreamsOutput = exports.ListStreamsInput = exports.ListStreamConsumersOutput = exports.ListStreamConsumersInput = exports.ListShardsOutput = exports.ListShardsInput = exports.ShardFilter = exports.ShardFilterType = void 0;
3
+ exports.MergeShardsInput = exports.ListTagsForStreamOutput = exports.Tag = exports.ListTagsForStreamInput = exports.ListStreamsOutput = exports.ListStreamsInput = exports.ListStreamConsumersOutput = exports.ListStreamConsumersInput = exports.ListShardsOutput = exports.ListShardsInput = exports.ShardFilter = exports.ShardFilterType = exports.IncreaseStreamRetentionPeriodInput = exports.GetShardIteratorOutput = exports.GetShardIteratorInput = exports.ShardIteratorType = exports.GetRecordsOutput = exports._Record = exports.GetRecordsInput = exports.EnableEnhancedMonitoringInput = exports.EnhancedMonitoringOutput = exports.DisableEnhancedMonitoringInput = exports.DescribeStreamSummaryOutput = exports.StreamDescriptionSummary = exports.DescribeStreamSummaryInput = exports.DescribeStreamConsumerOutput = exports.DescribeStreamConsumerInput = exports.DescribeStreamOutput = exports.StreamDescription = exports.StreamStatus = exports.Shard = exports.SequenceNumberRange = exports.EnhancedMetrics = exports.MetricsName = exports.EncryptionType = exports.DescribeStreamInput = exports.DescribeLimitsOutput = exports.DescribeLimitsInput = exports.DeregisterStreamConsumerInput = exports.DeleteStreamInput = exports.DecreaseStreamRetentionPeriodInput = exports.CreateStreamInput = exports.StreamModeDetails = exports.StreamMode = exports.ConsumerDescription = exports.Consumer = exports.ConsumerStatus = exports.ChildShard = exports.HashKeyRange = exports.AddTagsToStreamInput = void 0;
4
+ exports.UpdateStreamModeInput = exports.UpdateShardCountOutput = exports.UpdateShardCountInput = exports.ScalingType = exports.SubscribeToShardOutput = exports.SubscribeToShardEventStream = exports.SubscribeToShardEvent = exports.SubscribeToShardInput = exports.StartingPosition = exports.StopStreamEncryptionInput = exports.StartStreamEncryptionInput = exports.SplitShardInput = exports.RemoveTagsFromStreamInput = exports.RegisterStreamConsumerOutput = exports.RegisterStreamConsumerInput = exports.PutRecordsOutput = exports.PutRecordsResultEntry = exports.PutRecordsInput = exports.PutRecordsRequestEntry = exports.PutRecordOutput = exports.PutRecordInput = void 0;
5
5
  var AddTagsToStreamInput;
6
6
  (function (AddTagsToStreamInput) {
7
7
  AddTagsToStreamInput.filterSensitiveLog = (obj) => ({
8
8
  ...obj,
9
9
  });
10
10
  })(AddTagsToStreamInput = exports.AddTagsToStreamInput || (exports.AddTagsToStreamInput = {}));
11
- var InvalidArgumentException;
12
- (function (InvalidArgumentException) {
13
- InvalidArgumentException.filterSensitiveLog = (obj) => ({
14
- ...obj,
15
- });
16
- })(InvalidArgumentException = exports.InvalidArgumentException || (exports.InvalidArgumentException = {}));
17
- var LimitExceededException;
18
- (function (LimitExceededException) {
19
- LimitExceededException.filterSensitiveLog = (obj) => ({
20
- ...obj,
21
- });
22
- })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
23
- var ResourceInUseException;
24
- (function (ResourceInUseException) {
25
- ResourceInUseException.filterSensitiveLog = (obj) => ({
26
- ...obj,
27
- });
28
- })(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {}));
29
- var ResourceNotFoundException;
30
- (function (ResourceNotFoundException) {
31
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
32
- ...obj,
33
- });
34
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
35
11
  var HashKeyRange;
36
12
  (function (HashKeyRange) {
37
13
  HashKeyRange.filterSensitiveLog = (obj) => ({
@@ -62,6 +38,17 @@ var ConsumerDescription;
62
38
  ...obj,
63
39
  });
64
40
  })(ConsumerDescription = exports.ConsumerDescription || (exports.ConsumerDescription = {}));
41
+ var StreamMode;
42
+ (function (StreamMode) {
43
+ StreamMode["ON_DEMAND"] = "ON_DEMAND";
44
+ StreamMode["PROVISIONED"] = "PROVISIONED";
45
+ })(StreamMode = exports.StreamMode || (exports.StreamMode = {}));
46
+ var StreamModeDetails;
47
+ (function (StreamModeDetails) {
48
+ StreamModeDetails.filterSensitiveLog = (obj) => ({
49
+ ...obj,
50
+ });
51
+ })(StreamModeDetails = exports.StreamModeDetails || (exports.StreamModeDetails = {}));
65
52
  var CreateStreamInput;
66
53
  (function (CreateStreamInput) {
67
54
  CreateStreamInput.filterSensitiveLog = (obj) => ({
@@ -205,18 +192,6 @@ var EnableEnhancedMonitoringInput;
205
192
  ...obj,
206
193
  });
207
194
  })(EnableEnhancedMonitoringInput = exports.EnableEnhancedMonitoringInput || (exports.EnableEnhancedMonitoringInput = {}));
208
- var ExpiredIteratorException;
209
- (function (ExpiredIteratorException) {
210
- ExpiredIteratorException.filterSensitiveLog = (obj) => ({
211
- ...obj,
212
- });
213
- })(ExpiredIteratorException = exports.ExpiredIteratorException || (exports.ExpiredIteratorException = {}));
214
- var ExpiredNextTokenException;
215
- (function (ExpiredNextTokenException) {
216
- ExpiredNextTokenException.filterSensitiveLog = (obj) => ({
217
- ...obj,
218
- });
219
- })(ExpiredNextTokenException = exports.ExpiredNextTokenException || (exports.ExpiredNextTokenException = {}));
220
195
  var GetRecordsInput;
221
196
  (function (GetRecordsInput) {
222
197
  GetRecordsInput.filterSensitiveLog = (obj) => ({
@@ -235,48 +210,6 @@ var GetRecordsOutput;
235
210
  ...obj,
236
211
  });
237
212
  })(GetRecordsOutput = exports.GetRecordsOutput || (exports.GetRecordsOutput = {}));
238
- var KMSAccessDeniedException;
239
- (function (KMSAccessDeniedException) {
240
- KMSAccessDeniedException.filterSensitiveLog = (obj) => ({
241
- ...obj,
242
- });
243
- })(KMSAccessDeniedException = exports.KMSAccessDeniedException || (exports.KMSAccessDeniedException = {}));
244
- var KMSDisabledException;
245
- (function (KMSDisabledException) {
246
- KMSDisabledException.filterSensitiveLog = (obj) => ({
247
- ...obj,
248
- });
249
- })(KMSDisabledException = exports.KMSDisabledException || (exports.KMSDisabledException = {}));
250
- var KMSInvalidStateException;
251
- (function (KMSInvalidStateException) {
252
- KMSInvalidStateException.filterSensitiveLog = (obj) => ({
253
- ...obj,
254
- });
255
- })(KMSInvalidStateException = exports.KMSInvalidStateException || (exports.KMSInvalidStateException = {}));
256
- var KMSNotFoundException;
257
- (function (KMSNotFoundException) {
258
- KMSNotFoundException.filterSensitiveLog = (obj) => ({
259
- ...obj,
260
- });
261
- })(KMSNotFoundException = exports.KMSNotFoundException || (exports.KMSNotFoundException = {}));
262
- var KMSOptInRequired;
263
- (function (KMSOptInRequired) {
264
- KMSOptInRequired.filterSensitiveLog = (obj) => ({
265
- ...obj,
266
- });
267
- })(KMSOptInRequired = exports.KMSOptInRequired || (exports.KMSOptInRequired = {}));
268
- var KMSThrottlingException;
269
- (function (KMSThrottlingException) {
270
- KMSThrottlingException.filterSensitiveLog = (obj) => ({
271
- ...obj,
272
- });
273
- })(KMSThrottlingException = exports.KMSThrottlingException || (exports.KMSThrottlingException = {}));
274
- var ProvisionedThroughputExceededException;
275
- (function (ProvisionedThroughputExceededException) {
276
- ProvisionedThroughputExceededException.filterSensitiveLog = (obj) => ({
277
- ...obj,
278
- });
279
- })(ProvisionedThroughputExceededException = exports.ProvisionedThroughputExceededException || (exports.ProvisionedThroughputExceededException = {}));
280
213
  var ShardIteratorType;
281
214
  (function (ShardIteratorType) {
282
215
  ShardIteratorType["AFTER_SEQUENCE_NUMBER"] = "AFTER_SEQUENCE_NUMBER";
@@ -303,12 +236,6 @@ var IncreaseStreamRetentionPeriodInput;
303
236
  ...obj,
304
237
  });
305
238
  })(IncreaseStreamRetentionPeriodInput = exports.IncreaseStreamRetentionPeriodInput || (exports.IncreaseStreamRetentionPeriodInput = {}));
306
- var InternalFailureException;
307
- (function (InternalFailureException) {
308
- InternalFailureException.filterSensitiveLog = (obj) => ({
309
- ...obj,
310
- });
311
- })(InternalFailureException = exports.InternalFailureException || (exports.InternalFailureException = {}));
312
239
  var ShardFilterType;
313
240
  (function (ShardFilterType) {
314
241
  ShardFilterType["AFTER_SHARD_ID"] = "AFTER_SHARD_ID";
@@ -503,23 +430,23 @@ var SubscribeToShardEventStream;
503
430
  if (obj.SubscribeToShardEvent !== undefined)
504
431
  return { SubscribeToShardEvent: SubscribeToShardEvent.filterSensitiveLog(obj.SubscribeToShardEvent) };
505
432
  if (obj.ResourceNotFoundException !== undefined)
506
- return { ResourceNotFoundException: ResourceNotFoundException.filterSensitiveLog(obj.ResourceNotFoundException) };
433
+ return { ResourceNotFoundException: obj.ResourceNotFoundException };
507
434
  if (obj.ResourceInUseException !== undefined)
508
- return { ResourceInUseException: ResourceInUseException.filterSensitiveLog(obj.ResourceInUseException) };
435
+ return { ResourceInUseException: obj.ResourceInUseException };
509
436
  if (obj.KMSDisabledException !== undefined)
510
- return { KMSDisabledException: KMSDisabledException.filterSensitiveLog(obj.KMSDisabledException) };
437
+ return { KMSDisabledException: obj.KMSDisabledException };
511
438
  if (obj.KMSInvalidStateException !== undefined)
512
- return { KMSInvalidStateException: KMSInvalidStateException.filterSensitiveLog(obj.KMSInvalidStateException) };
439
+ return { KMSInvalidStateException: obj.KMSInvalidStateException };
513
440
  if (obj.KMSAccessDeniedException !== undefined)
514
- return { KMSAccessDeniedException: KMSAccessDeniedException.filterSensitiveLog(obj.KMSAccessDeniedException) };
441
+ return { KMSAccessDeniedException: obj.KMSAccessDeniedException };
515
442
  if (obj.KMSNotFoundException !== undefined)
516
- return { KMSNotFoundException: KMSNotFoundException.filterSensitiveLog(obj.KMSNotFoundException) };
443
+ return { KMSNotFoundException: obj.KMSNotFoundException };
517
444
  if (obj.KMSOptInRequired !== undefined)
518
- return { KMSOptInRequired: KMSOptInRequired.filterSensitiveLog(obj.KMSOptInRequired) };
445
+ return { KMSOptInRequired: obj.KMSOptInRequired };
519
446
  if (obj.KMSThrottlingException !== undefined)
520
- return { KMSThrottlingException: KMSThrottlingException.filterSensitiveLog(obj.KMSThrottlingException) };
447
+ return { KMSThrottlingException: obj.KMSThrottlingException };
521
448
  if (obj.InternalFailureException !== undefined)
522
- return { InternalFailureException: InternalFailureException.filterSensitiveLog(obj.InternalFailureException) };
449
+ return { InternalFailureException: obj.InternalFailureException };
523
450
  if (obj.$unknown !== undefined)
524
451
  return { [obj.$unknown[0]]: "UNKNOWN" };
525
452
  };
@@ -547,3 +474,9 @@ var UpdateShardCountOutput;
547
474
  ...obj,
548
475
  });
549
476
  })(UpdateShardCountOutput = exports.UpdateShardCountOutput || (exports.UpdateShardCountOutput = {}));
477
+ var UpdateStreamModeInput;
478
+ (function (UpdateStreamModeInput) {
479
+ UpdateStreamModeInput.filterSensitiveLog = (obj) => ({
480
+ ...obj,
481
+ });
482
+ })(UpdateStreamModeInput = exports.UpdateStreamModeInput || (exports.UpdateStreamModeInput = {}));
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_1RegisterStreamConsumerCommand = exports.deserializeAws_json1_1PutRecordsCommand = exports.deserializeAws_json1_1PutRecordCommand = exports.deserializeAws_json1_1MergeShardsCommand = exports.deserializeAws_json1_1ListTagsForStreamCommand = exports.deserializeAws_json1_1ListStreamsCommand = exports.deserializeAws_json1_1ListStreamConsumersCommand = exports.deserializeAws_json1_1ListShardsCommand = exports.deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand = exports.deserializeAws_json1_1GetShardIteratorCommand = exports.deserializeAws_json1_1GetRecordsCommand = exports.deserializeAws_json1_1EnableEnhancedMonitoringCommand = exports.deserializeAws_json1_1DisableEnhancedMonitoringCommand = exports.deserializeAws_json1_1DescribeStreamSummaryCommand = exports.deserializeAws_json1_1DescribeStreamConsumerCommand = exports.deserializeAws_json1_1DescribeStreamCommand = exports.deserializeAws_json1_1DescribeLimitsCommand = exports.deserializeAws_json1_1DeregisterStreamConsumerCommand = exports.deserializeAws_json1_1DeleteStreamCommand = exports.deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand = exports.deserializeAws_json1_1CreateStreamCommand = exports.deserializeAws_json1_1AddTagsToStreamCommand = exports.serializeAws_json1_1UpdateShardCountCommand = exports.serializeAws_json1_1SubscribeToShardCommand = exports.serializeAws_json1_1StopStreamEncryptionCommand = exports.serializeAws_json1_1StartStreamEncryptionCommand = exports.serializeAws_json1_1SplitShardCommand = exports.serializeAws_json1_1RemoveTagsFromStreamCommand = exports.serializeAws_json1_1RegisterStreamConsumerCommand = exports.serializeAws_json1_1PutRecordsCommand = exports.serializeAws_json1_1PutRecordCommand = exports.serializeAws_json1_1MergeShardsCommand = exports.serializeAws_json1_1ListTagsForStreamCommand = exports.serializeAws_json1_1ListStreamsCommand = exports.serializeAws_json1_1ListStreamConsumersCommand = exports.serializeAws_json1_1ListShardsCommand = exports.serializeAws_json1_1IncreaseStreamRetentionPeriodCommand = exports.serializeAws_json1_1GetShardIteratorCommand = exports.serializeAws_json1_1GetRecordsCommand = exports.serializeAws_json1_1EnableEnhancedMonitoringCommand = exports.serializeAws_json1_1DisableEnhancedMonitoringCommand = exports.serializeAws_json1_1DescribeStreamSummaryCommand = exports.serializeAws_json1_1DescribeStreamConsumerCommand = exports.serializeAws_json1_1DescribeStreamCommand = exports.serializeAws_json1_1DescribeLimitsCommand = exports.serializeAws_json1_1DeregisterStreamConsumerCommand = exports.serializeAws_json1_1DeleteStreamCommand = exports.serializeAws_json1_1DecreaseStreamRetentionPeriodCommand = exports.serializeAws_json1_1CreateStreamCommand = exports.serializeAws_json1_1AddTagsToStreamCommand = void 0;
4
- exports.deserializeAws_json1_1UpdateShardCountCommand = exports.deserializeAws_json1_1SubscribeToShardCommand = exports.deserializeAws_json1_1StopStreamEncryptionCommand = exports.deserializeAws_json1_1StartStreamEncryptionCommand = exports.deserializeAws_json1_1SplitShardCommand = exports.deserializeAws_json1_1RemoveTagsFromStreamCommand = void 0;
3
+ exports.deserializeAws_json1_1PutRecordsCommand = exports.deserializeAws_json1_1PutRecordCommand = exports.deserializeAws_json1_1MergeShardsCommand = exports.deserializeAws_json1_1ListTagsForStreamCommand = exports.deserializeAws_json1_1ListStreamsCommand = exports.deserializeAws_json1_1ListStreamConsumersCommand = exports.deserializeAws_json1_1ListShardsCommand = exports.deserializeAws_json1_1IncreaseStreamRetentionPeriodCommand = exports.deserializeAws_json1_1GetShardIteratorCommand = exports.deserializeAws_json1_1GetRecordsCommand = exports.deserializeAws_json1_1EnableEnhancedMonitoringCommand = exports.deserializeAws_json1_1DisableEnhancedMonitoringCommand = exports.deserializeAws_json1_1DescribeStreamSummaryCommand = exports.deserializeAws_json1_1DescribeStreamConsumerCommand = exports.deserializeAws_json1_1DescribeStreamCommand = exports.deserializeAws_json1_1DescribeLimitsCommand = exports.deserializeAws_json1_1DeregisterStreamConsumerCommand = exports.deserializeAws_json1_1DeleteStreamCommand = exports.deserializeAws_json1_1DecreaseStreamRetentionPeriodCommand = exports.deserializeAws_json1_1CreateStreamCommand = exports.deserializeAws_json1_1AddTagsToStreamCommand = exports.serializeAws_json1_1UpdateStreamModeCommand = exports.serializeAws_json1_1UpdateShardCountCommand = exports.serializeAws_json1_1SubscribeToShardCommand = exports.serializeAws_json1_1StopStreamEncryptionCommand = exports.serializeAws_json1_1StartStreamEncryptionCommand = exports.serializeAws_json1_1SplitShardCommand = exports.serializeAws_json1_1RemoveTagsFromStreamCommand = exports.serializeAws_json1_1RegisterStreamConsumerCommand = exports.serializeAws_json1_1PutRecordsCommand = exports.serializeAws_json1_1PutRecordCommand = exports.serializeAws_json1_1MergeShardsCommand = exports.serializeAws_json1_1ListTagsForStreamCommand = exports.serializeAws_json1_1ListStreamsCommand = exports.serializeAws_json1_1ListStreamConsumersCommand = exports.serializeAws_json1_1ListShardsCommand = exports.serializeAws_json1_1IncreaseStreamRetentionPeriodCommand = exports.serializeAws_json1_1GetShardIteratorCommand = exports.serializeAws_json1_1GetRecordsCommand = exports.serializeAws_json1_1EnableEnhancedMonitoringCommand = exports.serializeAws_json1_1DisableEnhancedMonitoringCommand = exports.serializeAws_json1_1DescribeStreamSummaryCommand = exports.serializeAws_json1_1DescribeStreamConsumerCommand = exports.serializeAws_json1_1DescribeStreamCommand = exports.serializeAws_json1_1DescribeLimitsCommand = exports.serializeAws_json1_1DeregisterStreamConsumerCommand = exports.serializeAws_json1_1DeleteStreamCommand = exports.serializeAws_json1_1DecreaseStreamRetentionPeriodCommand = exports.serializeAws_json1_1CreateStreamCommand = exports.serializeAws_json1_1AddTagsToStreamCommand = void 0;
4
+ exports.deserializeAws_json1_1UpdateStreamModeCommand = exports.deserializeAws_json1_1UpdateShardCountCommand = exports.deserializeAws_json1_1SubscribeToShardCommand = exports.deserializeAws_json1_1StopStreamEncryptionCommand = exports.deserializeAws_json1_1StartStreamEncryptionCommand = exports.deserializeAws_json1_1SplitShardCommand = exports.deserializeAws_json1_1RemoveTagsFromStreamCommand = exports.deserializeAws_json1_1RegisterStreamConsumerCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const serializeAws_json1_1AddTagsToStreamCommand = async (input, context) => {
@@ -284,6 +284,16 @@ const serializeAws_json1_1UpdateShardCountCommand = async (input, context) => {
284
284
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
285
285
  };
286
286
  exports.serializeAws_json1_1UpdateShardCountCommand = serializeAws_json1_1UpdateShardCountCommand;
287
+ const serializeAws_json1_1UpdateStreamModeCommand = async (input, context) => {
288
+ const headers = {
289
+ "content-type": "application/x-amz-json-1.1",
290
+ "x-amz-target": "Kinesis_20131202.UpdateStreamMode",
291
+ };
292
+ let body;
293
+ body = JSON.stringify(serializeAws_json1_1UpdateStreamModeInput(input, context));
294
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
+ };
296
+ exports.serializeAws_json1_1UpdateStreamModeCommand = serializeAws_json1_1UpdateStreamModeCommand;
287
297
  const deserializeAws_json1_1AddTagsToStreamCommand = async (output, context) => {
288
298
  if (output.statusCode >= 300) {
289
299
  return deserializeAws_json1_1AddTagsToStreamCommandError(output, context);
@@ -1532,6 +1542,14 @@ const deserializeAws_json1_1MergeShardsCommandError = async (output, context) =>
1532
1542
  $metadata: deserializeMetadata(output),
1533
1543
  };
1534
1544
  break;
1545
+ case "ValidationException":
1546
+ case "com.amazonaws.kinesis#ValidationException":
1547
+ response = {
1548
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
1549
+ name: errorCode,
1550
+ $metadata: deserializeMetadata(output),
1551
+ };
1552
+ break;
1535
1553
  default:
1536
1554
  const parsedBody = parsedOutput.body;
1537
1555
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -1961,6 +1979,14 @@ const deserializeAws_json1_1SplitShardCommandError = async (output, context) =>
1961
1979
  $metadata: deserializeMetadata(output),
1962
1980
  };
1963
1981
  break;
1982
+ case "ValidationException":
1983
+ case "com.amazonaws.kinesis#ValidationException":
1984
+ response = {
1985
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
1986
+ name: errorCode,
1987
+ $metadata: deserializeMetadata(output),
1988
+ };
1989
+ break;
1964
1990
  default:
1965
1991
  const parsedBody = parsedOutput.body;
1966
1992
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -2247,6 +2273,82 @@ const deserializeAws_json1_1UpdateShardCountCommand = async (output, context) =>
2247
2273
  };
2248
2274
  exports.deserializeAws_json1_1UpdateShardCountCommand = deserializeAws_json1_1UpdateShardCountCommand;
2249
2275
  const deserializeAws_json1_1UpdateShardCountCommandError = async (output, context) => {
2276
+ const parsedOutput = {
2277
+ ...output,
2278
+ body: await parseBody(output.body, context),
2279
+ };
2280
+ let response;
2281
+ let errorCode = "UnknownError";
2282
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2283
+ switch (errorCode) {
2284
+ case "InvalidArgumentException":
2285
+ case "com.amazonaws.kinesis#InvalidArgumentException":
2286
+ response = {
2287
+ ...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
2288
+ name: errorCode,
2289
+ $metadata: deserializeMetadata(output),
2290
+ };
2291
+ break;
2292
+ case "LimitExceededException":
2293
+ case "com.amazonaws.kinesis#LimitExceededException":
2294
+ response = {
2295
+ ...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
2296
+ name: errorCode,
2297
+ $metadata: deserializeMetadata(output),
2298
+ };
2299
+ break;
2300
+ case "ResourceInUseException":
2301
+ case "com.amazonaws.kinesis#ResourceInUseException":
2302
+ response = {
2303
+ ...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
2304
+ name: errorCode,
2305
+ $metadata: deserializeMetadata(output),
2306
+ };
2307
+ break;
2308
+ case "ResourceNotFoundException":
2309
+ case "com.amazonaws.kinesis#ResourceNotFoundException":
2310
+ response = {
2311
+ ...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
2312
+ name: errorCode,
2313
+ $metadata: deserializeMetadata(output),
2314
+ };
2315
+ break;
2316
+ case "ValidationException":
2317
+ case "com.amazonaws.kinesis#ValidationException":
2318
+ response = {
2319
+ ...(await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)),
2320
+ name: errorCode,
2321
+ $metadata: deserializeMetadata(output),
2322
+ };
2323
+ break;
2324
+ default:
2325
+ const parsedBody = parsedOutput.body;
2326
+ errorCode = parsedBody.code || parsedBody.Code || errorCode;
2327
+ response = {
2328
+ ...parsedBody,
2329
+ name: `${errorCode}`,
2330
+ message: parsedBody.message || parsedBody.Message || errorCode,
2331
+ $fault: "client",
2332
+ $metadata: deserializeMetadata(output),
2333
+ };
2334
+ }
2335
+ const message = response.message || response.Message || errorCode;
2336
+ response.message = message;
2337
+ delete response.Message;
2338
+ return Promise.reject(Object.assign(new Error(message), response));
2339
+ };
2340
+ const deserializeAws_json1_1UpdateStreamModeCommand = async (output, context) => {
2341
+ if (output.statusCode >= 300) {
2342
+ return deserializeAws_json1_1UpdateStreamModeCommandError(output, context);
2343
+ }
2344
+ await collectBody(output.body, context);
2345
+ const response = {
2346
+ $metadata: deserializeMetadata(output),
2347
+ };
2348
+ return Promise.resolve(response);
2349
+ };
2350
+ exports.deserializeAws_json1_1UpdateStreamModeCommand = deserializeAws_json1_1UpdateStreamModeCommand;
2351
+ const deserializeAws_json1_1UpdateStreamModeCommandError = async (output, context) => {
2250
2352
  const parsedOutput = {
2251
2353
  ...output,
2252
2354
  body: await parseBody(output.body, context),
@@ -2446,6 +2548,17 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
2446
2548
  };
2447
2549
  return contents;
2448
2550
  };
2551
+ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
2552
+ const body = parsedOutput.body;
2553
+ const deserialized = deserializeAws_json1_1ValidationException(body, context);
2554
+ const contents = {
2555
+ name: "ValidationException",
2556
+ $fault: "client",
2557
+ $metadata: deserializeMetadata(parsedOutput),
2558
+ ...deserialized,
2559
+ };
2560
+ return contents;
2561
+ };
2449
2562
  const serializeAws_json1_1AddTagsToStreamInput = (input, context) => {
2450
2563
  return {
2451
2564
  ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
@@ -2455,6 +2568,10 @@ const serializeAws_json1_1AddTagsToStreamInput = (input, context) => {
2455
2568
  const serializeAws_json1_1CreateStreamInput = (input, context) => {
2456
2569
  return {
2457
2570
  ...(input.ShardCount !== undefined && input.ShardCount !== null && { ShardCount: input.ShardCount }),
2571
+ ...(input.StreamModeDetails !== undefined &&
2572
+ input.StreamModeDetails !== null && {
2573
+ StreamModeDetails: serializeAws_json1_1StreamModeDetails(input.StreamModeDetails, context),
2574
+ }),
2458
2575
  ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
2459
2576
  };
2460
2577
  };
@@ -2694,6 +2811,11 @@ const serializeAws_json1_1StopStreamEncryptionInput = (input, context) => {
2694
2811
  ...(input.StreamName !== undefined && input.StreamName !== null && { StreamName: input.StreamName }),
2695
2812
  };
2696
2813
  };
2814
+ const serializeAws_json1_1StreamModeDetails = (input, context) => {
2815
+ return {
2816
+ ...(input.StreamMode !== undefined && input.StreamMode !== null && { StreamMode: input.StreamMode }),
2817
+ };
2818
+ };
2697
2819
  const serializeAws_json1_1SubscribeToShardInput = (input, context) => {
2698
2820
  return {
2699
2821
  ...(input.ConsumerARN !== undefined && input.ConsumerARN !== null && { ConsumerARN: input.ConsumerARN }),
@@ -2733,6 +2855,15 @@ const serializeAws_json1_1UpdateShardCountInput = (input, context) => {
2733
2855
  input.TargetShardCount !== null && { TargetShardCount: input.TargetShardCount }),
2734
2856
  };
2735
2857
  };
2858
+ const serializeAws_json1_1UpdateStreamModeInput = (input, context) => {
2859
+ return {
2860
+ ...(input.StreamARN !== undefined && input.StreamARN !== null && { StreamARN: input.StreamARN }),
2861
+ ...(input.StreamModeDetails !== undefined &&
2862
+ input.StreamModeDetails !== null && {
2863
+ StreamModeDetails: serializeAws_json1_1StreamModeDetails(input.StreamModeDetails, context),
2864
+ }),
2865
+ };
2866
+ };
2736
2867
  const deserializeAws_json1_1ChildShard = (output, context) => {
2737
2868
  return {
2738
2869
  HashKeyRange: output.HashKeyRange !== undefined && output.HashKeyRange !== null
@@ -2787,6 +2918,8 @@ const deserializeAws_json1_1ConsumerList = (output, context) => {
2787
2918
  };
2788
2919
  const deserializeAws_json1_1DescribeLimitsOutput = (output, context) => {
2789
2920
  return {
2921
+ OnDemandStreamCount: smithy_client_1.expectInt32(output.OnDemandStreamCount),
2922
+ OnDemandStreamCountLimit: smithy_client_1.expectInt32(output.OnDemandStreamCountLimit),
2790
2923
  OpenShardCount: smithy_client_1.expectInt32(output.OpenShardCount),
2791
2924
  ShardLimit: smithy_client_1.expectInt32(output.ShardLimit),
2792
2925
  };
@@ -3092,6 +3225,9 @@ const deserializeAws_json1_1StreamDescription = (output, context) => {
3092
3225
  StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
3093
3226
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StreamCreationTimestamp)))
3094
3227
  : undefined,
3228
+ StreamModeDetails: output.StreamModeDetails !== undefined && output.StreamModeDetails !== null
3229
+ ? deserializeAws_json1_1StreamModeDetails(output.StreamModeDetails, context)
3230
+ : undefined,
3095
3231
  StreamName: smithy_client_1.expectString(output.StreamName),
3096
3232
  StreamStatus: smithy_client_1.expectString(output.StreamStatus),
3097
3233
  };
@@ -3110,10 +3246,18 @@ const deserializeAws_json1_1StreamDescriptionSummary = (output, context) => {
3110
3246
  StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
3111
3247
  ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StreamCreationTimestamp)))
3112
3248
  : undefined,
3249
+ StreamModeDetails: output.StreamModeDetails !== undefined && output.StreamModeDetails !== null
3250
+ ? deserializeAws_json1_1StreamModeDetails(output.StreamModeDetails, context)
3251
+ : undefined,
3113
3252
  StreamName: smithy_client_1.expectString(output.StreamName),
3114
3253
  StreamStatus: smithy_client_1.expectString(output.StreamStatus),
3115
3254
  };
3116
3255
  };
3256
+ const deserializeAws_json1_1StreamModeDetails = (output, context) => {
3257
+ return {
3258
+ StreamMode: smithy_client_1.expectString(output.StreamMode),
3259
+ };
3260
+ };
3117
3261
  const deserializeAws_json1_1StreamNameList = (output, context) => {
3118
3262
  return (output || [])
3119
3263
  .filter((e) => e != null)
@@ -3219,6 +3363,11 @@ const deserializeAws_json1_1UpdateShardCountOutput = (output, context) => {
3219
3363
  TargetShardCount: smithy_client_1.expectInt32(output.TargetShardCount),
3220
3364
  };
3221
3365
  };
3366
+ const deserializeAws_json1_1ValidationException = (output, context) => {
3367
+ return {
3368
+ message: smithy_client_1.expectString(output.message),
3369
+ };
3370
+ };
3222
3371
  const deserializeMetadata = (output) => {
3223
3372
  var _a;
3224
3373
  return ({