@aws-sdk/client-cognito-sync 3.53.0 → 3.55.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 (35) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/CognitoSyncClient.js +13 -13
  3. package/dist-cjs/commands/BulkPublishCommand.js +3 -3
  4. package/dist-cjs/commands/DeleteDatasetCommand.js +3 -3
  5. package/dist-cjs/commands/DescribeDatasetCommand.js +3 -3
  6. package/dist-cjs/commands/DescribeIdentityPoolUsageCommand.js +3 -3
  7. package/dist-cjs/commands/DescribeIdentityUsageCommand.js +3 -3
  8. package/dist-cjs/commands/GetBulkPublishDetailsCommand.js +3 -3
  9. package/dist-cjs/commands/GetCognitoEventsCommand.js +3 -3
  10. package/dist-cjs/commands/GetIdentityPoolConfigurationCommand.js +3 -3
  11. package/dist-cjs/commands/ListDatasetsCommand.js +3 -3
  12. package/dist-cjs/commands/ListIdentityPoolUsageCommand.js +3 -3
  13. package/dist-cjs/commands/ListRecordsCommand.js +3 -3
  14. package/dist-cjs/commands/RegisterDeviceCommand.js +3 -3
  15. package/dist-cjs/commands/SetCognitoEventsCommand.js +3 -3
  16. package/dist-cjs/commands/SetIdentityPoolConfigurationCommand.js +3 -3
  17. package/dist-cjs/commands/SubscribeToDatasetCommand.js +3 -3
  18. package/dist-cjs/commands/UnsubscribeFromDatasetCommand.js +3 -3
  19. package/dist-cjs/commands/UpdateRecordsCommand.js +3 -3
  20. package/dist-cjs/endpoints.js +1 -1
  21. package/dist-cjs/protocols/Aws_restJson1.js +140 -140
  22. package/dist-cjs/runtimeConfig.browser.js +4 -4
  23. package/dist-cjs/runtimeConfig.js +9 -9
  24. package/dist-cjs/runtimeConfig.native.js +1 -1
  25. package/dist-es/CognitoSync.js +17 -17
  26. package/dist-es/protocols/Aws_restJson1.js +17 -17
  27. package/dist-types/CognitoSyncClient.d.ts +2 -2
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  29. package/dist-types/runtimeConfig.d.ts +1 -1
  30. package/dist-types/runtimeConfig.native.d.ts +3 -3
  31. package/dist-types/ts3.4/CognitoSyncClient.d.ts +2 -2
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  35. package/package.json +34 -34
@@ -15,7 +15,7 @@ const serializeAws_restJson1BulkPublishCommand = async (input, context) => {
15
15
  if (labelValue.length <= 0) {
16
16
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
17
17
  }
18
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
18
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
19
19
  }
20
20
  else {
21
21
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -42,7 +42,7 @@ const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
42
42
  if (labelValue.length <= 0) {
43
43
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
44
44
  }
45
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
45
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
46
46
  }
47
47
  else {
48
48
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -52,7 +52,7 @@ const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
52
52
  if (labelValue.length <= 0) {
53
53
  throw new Error("Empty value provided for input HTTP label: IdentityId.");
54
54
  }
55
- resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
55
+ resolvedPath = resolvedPath.replace("{IdentityId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
56
56
  }
57
57
  else {
58
58
  throw new Error("No value provided for input HTTP label: IdentityId.");
@@ -62,7 +62,7 @@ const serializeAws_restJson1DeleteDatasetCommand = async (input, context) => {
62
62
  if (labelValue.length <= 0) {
63
63
  throw new Error("Empty value provided for input HTTP label: DatasetName.");
64
64
  }
65
- resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
65
+ resolvedPath = resolvedPath.replace("{DatasetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
66
66
  }
67
67
  else {
68
68
  throw new Error("No value provided for input HTTP label: DatasetName.");
@@ -89,7 +89,7 @@ const serializeAws_restJson1DescribeDatasetCommand = async (input, context) => {
89
89
  if (labelValue.length <= 0) {
90
90
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
91
91
  }
92
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
92
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
93
93
  }
94
94
  else {
95
95
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -99,7 +99,7 @@ const serializeAws_restJson1DescribeDatasetCommand = async (input, context) => {
99
99
  if (labelValue.length <= 0) {
100
100
  throw new Error("Empty value provided for input HTTP label: IdentityId.");
101
101
  }
102
- resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
102
+ resolvedPath = resolvedPath.replace("{IdentityId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
103
103
  }
104
104
  else {
105
105
  throw new Error("No value provided for input HTTP label: IdentityId.");
@@ -109,7 +109,7 @@ const serializeAws_restJson1DescribeDatasetCommand = async (input, context) => {
109
109
  if (labelValue.length <= 0) {
110
110
  throw new Error("Empty value provided for input HTTP label: DatasetName.");
111
111
  }
112
- resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
112
+ resolvedPath = resolvedPath.replace("{DatasetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
113
113
  }
114
114
  else {
115
115
  throw new Error("No value provided for input HTTP label: DatasetName.");
@@ -135,7 +135,7 @@ const serializeAws_restJson1DescribeIdentityPoolUsageCommand = async (input, con
135
135
  if (labelValue.length <= 0) {
136
136
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
137
137
  }
138
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
138
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
139
139
  }
140
140
  else {
141
141
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -162,7 +162,7 @@ const serializeAws_restJson1DescribeIdentityUsageCommand = async (input, context
162
162
  if (labelValue.length <= 0) {
163
163
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
164
164
  }
165
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
165
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
166
166
  }
167
167
  else {
168
168
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -172,7 +172,7 @@ const serializeAws_restJson1DescribeIdentityUsageCommand = async (input, context
172
172
  if (labelValue.length <= 0) {
173
173
  throw new Error("Empty value provided for input HTTP label: IdentityId.");
174
174
  }
175
- resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
175
+ resolvedPath = resolvedPath.replace("{IdentityId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
176
176
  }
177
177
  else {
178
178
  throw new Error("No value provided for input HTTP label: IdentityId.");
@@ -199,7 +199,7 @@ const serializeAws_restJson1GetBulkPublishDetailsCommand = async (input, context
199
199
  if (labelValue.length <= 0) {
200
200
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
201
201
  }
202
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
202
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
203
203
  }
204
204
  else {
205
205
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -225,7 +225,7 @@ const serializeAws_restJson1GetCognitoEventsCommand = async (input, context) =>
225
225
  if (labelValue.length <= 0) {
226
226
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
227
227
  }
228
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
228
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
229
229
  }
230
230
  else {
231
231
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -252,7 +252,7 @@ const serializeAws_restJson1GetIdentityPoolConfigurationCommand = async (input,
252
252
  if (labelValue.length <= 0) {
253
253
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
254
254
  }
255
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
255
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
256
256
  }
257
257
  else {
258
258
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -279,7 +279,7 @@ const serializeAws_restJson1ListDatasetsCommand = async (input, context) => {
279
279
  if (labelValue.length <= 0) {
280
280
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
281
281
  }
282
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
282
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
283
283
  }
284
284
  else {
285
285
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -289,7 +289,7 @@ const serializeAws_restJson1ListDatasetsCommand = async (input, context) => {
289
289
  if (labelValue.length <= 0) {
290
290
  throw new Error("Empty value provided for input HTTP label: IdentityId.");
291
291
  }
292
- resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
292
+ resolvedPath = resolvedPath.replace("{IdentityId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
293
293
  }
294
294
  else {
295
295
  throw new Error("No value provided for input HTTP label: IdentityId.");
@@ -342,7 +342,7 @@ const serializeAws_restJson1ListRecordsCommand = async (input, context) => {
342
342
  if (labelValue.length <= 0) {
343
343
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
344
344
  }
345
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
345
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
346
346
  }
347
347
  else {
348
348
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -352,7 +352,7 @@ const serializeAws_restJson1ListRecordsCommand = async (input, context) => {
352
352
  if (labelValue.length <= 0) {
353
353
  throw new Error("Empty value provided for input HTTP label: IdentityId.");
354
354
  }
355
- resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
355
+ resolvedPath = resolvedPath.replace("{IdentityId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
356
356
  }
357
357
  else {
358
358
  throw new Error("No value provided for input HTTP label: IdentityId.");
@@ -362,7 +362,7 @@ const serializeAws_restJson1ListRecordsCommand = async (input, context) => {
362
362
  if (labelValue.length <= 0) {
363
363
  throw new Error("Empty value provided for input HTTP label: DatasetName.");
364
364
  }
365
- resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
365
+ resolvedPath = resolvedPath.replace("{DatasetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
366
366
  }
367
367
  else {
368
368
  throw new Error("No value provided for input HTTP label: DatasetName.");
@@ -398,7 +398,7 @@ const serializeAws_restJson1RegisterDeviceCommand = async (input, context) => {
398
398
  if (labelValue.length <= 0) {
399
399
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
400
400
  }
401
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
401
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
402
402
  }
403
403
  else {
404
404
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -408,7 +408,7 @@ const serializeAws_restJson1RegisterDeviceCommand = async (input, context) => {
408
408
  if (labelValue.length <= 0) {
409
409
  throw new Error("Empty value provided for input HTTP label: IdentityId.");
410
410
  }
411
- resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
411
+ resolvedPath = resolvedPath.replace("{IdentityId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
412
412
  }
413
413
  else {
414
414
  throw new Error("No value provided for input HTTP label: IdentityId.");
@@ -440,7 +440,7 @@ const serializeAws_restJson1SetCognitoEventsCommand = async (input, context) =>
440
440
  if (labelValue.length <= 0) {
441
441
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
442
442
  }
443
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
443
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
444
444
  }
445
445
  else {
446
446
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -473,7 +473,7 @@ const serializeAws_restJson1SetIdentityPoolConfigurationCommand = async (input,
473
473
  if (labelValue.length <= 0) {
474
474
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
475
475
  }
476
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
476
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
477
477
  }
478
478
  else {
479
479
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -508,7 +508,7 @@ const serializeAws_restJson1SubscribeToDatasetCommand = async (input, context) =
508
508
  if (labelValue.length <= 0) {
509
509
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
510
510
  }
511
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
511
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
512
512
  }
513
513
  else {
514
514
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -518,7 +518,7 @@ const serializeAws_restJson1SubscribeToDatasetCommand = async (input, context) =
518
518
  if (labelValue.length <= 0) {
519
519
  throw new Error("Empty value provided for input HTTP label: IdentityId.");
520
520
  }
521
- resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
521
+ resolvedPath = resolvedPath.replace("{IdentityId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
522
522
  }
523
523
  else {
524
524
  throw new Error("No value provided for input HTTP label: IdentityId.");
@@ -528,7 +528,7 @@ const serializeAws_restJson1SubscribeToDatasetCommand = async (input, context) =
528
528
  if (labelValue.length <= 0) {
529
529
  throw new Error("Empty value provided for input HTTP label: DatasetName.");
530
530
  }
531
- resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
531
+ resolvedPath = resolvedPath.replace("{DatasetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
532
532
  }
533
533
  else {
534
534
  throw new Error("No value provided for input HTTP label: DatasetName.");
@@ -538,7 +538,7 @@ const serializeAws_restJson1SubscribeToDatasetCommand = async (input, context) =
538
538
  if (labelValue.length <= 0) {
539
539
  throw new Error("Empty value provided for input HTTP label: DeviceId.");
540
540
  }
541
- resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
541
+ resolvedPath = resolvedPath.replace("{DeviceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
542
542
  }
543
543
  else {
544
544
  throw new Error("No value provided for input HTTP label: DeviceId.");
@@ -565,7 +565,7 @@ const serializeAws_restJson1UnsubscribeFromDatasetCommand = async (input, contex
565
565
  if (labelValue.length <= 0) {
566
566
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
567
567
  }
568
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
568
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
569
569
  }
570
570
  else {
571
571
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -575,7 +575,7 @@ const serializeAws_restJson1UnsubscribeFromDatasetCommand = async (input, contex
575
575
  if (labelValue.length <= 0) {
576
576
  throw new Error("Empty value provided for input HTTP label: IdentityId.");
577
577
  }
578
- resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
578
+ resolvedPath = resolvedPath.replace("{IdentityId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
579
579
  }
580
580
  else {
581
581
  throw new Error("No value provided for input HTTP label: IdentityId.");
@@ -585,7 +585,7 @@ const serializeAws_restJson1UnsubscribeFromDatasetCommand = async (input, contex
585
585
  if (labelValue.length <= 0) {
586
586
  throw new Error("Empty value provided for input HTTP label: DatasetName.");
587
587
  }
588
- resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
588
+ resolvedPath = resolvedPath.replace("{DatasetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
589
589
  }
590
590
  else {
591
591
  throw new Error("No value provided for input HTTP label: DatasetName.");
@@ -595,7 +595,7 @@ const serializeAws_restJson1UnsubscribeFromDatasetCommand = async (input, contex
595
595
  if (labelValue.length <= 0) {
596
596
  throw new Error("Empty value provided for input HTTP label: DeviceId.");
597
597
  }
598
- resolvedPath = resolvedPath.replace("{DeviceId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
598
+ resolvedPath = resolvedPath.replace("{DeviceId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
599
599
  }
600
600
  else {
601
601
  throw new Error("No value provided for input HTTP label: DeviceId.");
@@ -625,7 +625,7 @@ const serializeAws_restJson1UpdateRecordsCommand = async (input, context) => {
625
625
  if (labelValue.length <= 0) {
626
626
  throw new Error("Empty value provided for input HTTP label: IdentityPoolId.");
627
627
  }
628
- resolvedPath = resolvedPath.replace("{IdentityPoolId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
628
+ resolvedPath = resolvedPath.replace("{IdentityPoolId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
629
629
  }
630
630
  else {
631
631
  throw new Error("No value provided for input HTTP label: IdentityPoolId.");
@@ -635,7 +635,7 @@ const serializeAws_restJson1UpdateRecordsCommand = async (input, context) => {
635
635
  if (labelValue.length <= 0) {
636
636
  throw new Error("Empty value provided for input HTTP label: IdentityId.");
637
637
  }
638
- resolvedPath = resolvedPath.replace("{IdentityId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
638
+ resolvedPath = resolvedPath.replace("{IdentityId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
639
639
  }
640
640
  else {
641
641
  throw new Error("No value provided for input HTTP label: IdentityId.");
@@ -645,7 +645,7 @@ const serializeAws_restJson1UpdateRecordsCommand = async (input, context) => {
645
645
  if (labelValue.length <= 0) {
646
646
  throw new Error("Empty value provided for input HTTP label: DatasetName.");
647
647
  }
648
- resolvedPath = resolvedPath.replace("{DatasetName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
648
+ resolvedPath = resolvedPath.replace("{DatasetName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
649
649
  }
650
650
  else {
651
651
  throw new Error("No value provided for input HTTP label: DatasetName.");
@@ -679,9 +679,9 @@ const deserializeAws_restJson1BulkPublishCommand = async (output, context) => {
679
679
  $metadata: deserializeMetadata(output),
680
680
  IdentityPoolId: undefined,
681
681
  };
682
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
682
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
683
683
  if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
684
- contents.IdentityPoolId = smithy_client_1.expectString(data.IdentityPoolId);
684
+ contents.IdentityPoolId = (0, smithy_client_1.expectString)(data.IdentityPoolId);
685
685
  }
686
686
  return Promise.resolve(contents);
687
687
  };
@@ -720,7 +720,7 @@ const deserializeAws_restJson1BulkPublishCommandError = async (output, context)
720
720
  $fault: "client",
721
721
  $metadata: deserializeMetadata(output),
722
722
  });
723
- throw smithy_client_1.decorateServiceException(response, parsedBody);
723
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
724
724
  }
725
725
  };
726
726
  const deserializeAws_restJson1DeleteDatasetCommand = async (output, context) => {
@@ -731,7 +731,7 @@ const deserializeAws_restJson1DeleteDatasetCommand = async (output, context) =>
731
731
  $metadata: deserializeMetadata(output),
732
732
  Dataset: undefined,
733
733
  };
734
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
734
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
735
735
  if (data.Dataset !== undefined && data.Dataset !== null) {
736
736
  contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
737
737
  }
@@ -772,7 +772,7 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
772
772
  $fault: "client",
773
773
  $metadata: deserializeMetadata(output),
774
774
  });
775
- throw smithy_client_1.decorateServiceException(response, parsedBody);
775
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
776
776
  }
777
777
  };
778
778
  const deserializeAws_restJson1DescribeDatasetCommand = async (output, context) => {
@@ -783,7 +783,7 @@ const deserializeAws_restJson1DescribeDatasetCommand = async (output, context) =
783
783
  $metadata: deserializeMetadata(output),
784
784
  Dataset: undefined,
785
785
  };
786
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
786
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
787
787
  if (data.Dataset !== undefined && data.Dataset !== null) {
788
788
  contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
789
789
  }
@@ -821,7 +821,7 @@ const deserializeAws_restJson1DescribeDatasetCommandError = async (output, conte
821
821
  $fault: "client",
822
822
  $metadata: deserializeMetadata(output),
823
823
  });
824
- throw smithy_client_1.decorateServiceException(response, parsedBody);
824
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
825
825
  }
826
826
  };
827
827
  const deserializeAws_restJson1DescribeIdentityPoolUsageCommand = async (output, context) => {
@@ -832,7 +832,7 @@ const deserializeAws_restJson1DescribeIdentityPoolUsageCommand = async (output,
832
832
  $metadata: deserializeMetadata(output),
833
833
  IdentityPoolUsage: undefined,
834
834
  };
835
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
835
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
836
836
  if (data.IdentityPoolUsage !== undefined && data.IdentityPoolUsage !== null) {
837
837
  contents.IdentityPoolUsage = deserializeAws_restJson1IdentityPoolUsage(data.IdentityPoolUsage, context);
838
838
  }
@@ -870,7 +870,7 @@ const deserializeAws_restJson1DescribeIdentityPoolUsageCommandError = async (out
870
870
  $fault: "client",
871
871
  $metadata: deserializeMetadata(output),
872
872
  });
873
- throw smithy_client_1.decorateServiceException(response, parsedBody);
873
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
874
874
  }
875
875
  };
876
876
  const deserializeAws_restJson1DescribeIdentityUsageCommand = async (output, context) => {
@@ -881,7 +881,7 @@ const deserializeAws_restJson1DescribeIdentityUsageCommand = async (output, cont
881
881
  $metadata: deserializeMetadata(output),
882
882
  IdentityUsage: undefined,
883
883
  };
884
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
884
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
885
885
  if (data.IdentityUsage !== undefined && data.IdentityUsage !== null) {
886
886
  contents.IdentityUsage = deserializeAws_restJson1IdentityUsage(data.IdentityUsage, context);
887
887
  }
@@ -919,7 +919,7 @@ const deserializeAws_restJson1DescribeIdentityUsageCommandError = async (output,
919
919
  $fault: "client",
920
920
  $metadata: deserializeMetadata(output),
921
921
  });
922
- throw smithy_client_1.decorateServiceException(response, parsedBody);
922
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
923
923
  }
924
924
  };
925
925
  const deserializeAws_restJson1GetBulkPublishDetailsCommand = async (output, context) => {
@@ -934,21 +934,21 @@ const deserializeAws_restJson1GetBulkPublishDetailsCommand = async (output, cont
934
934
  FailureMessage: undefined,
935
935
  IdentityPoolId: undefined,
936
936
  };
937
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
937
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
938
938
  if (data.BulkPublishCompleteTime !== undefined && data.BulkPublishCompleteTime !== null) {
939
- contents.BulkPublishCompleteTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.BulkPublishCompleteTime)));
939
+ contents.BulkPublishCompleteTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.BulkPublishCompleteTime)));
940
940
  }
941
941
  if (data.BulkPublishStartTime !== undefined && data.BulkPublishStartTime !== null) {
942
- contents.BulkPublishStartTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.BulkPublishStartTime)));
942
+ contents.BulkPublishStartTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.BulkPublishStartTime)));
943
943
  }
944
944
  if (data.BulkPublishStatus !== undefined && data.BulkPublishStatus !== null) {
945
- contents.BulkPublishStatus = smithy_client_1.expectString(data.BulkPublishStatus);
945
+ contents.BulkPublishStatus = (0, smithy_client_1.expectString)(data.BulkPublishStatus);
946
946
  }
947
947
  if (data.FailureMessage !== undefined && data.FailureMessage !== null) {
948
- contents.FailureMessage = smithy_client_1.expectString(data.FailureMessage);
948
+ contents.FailureMessage = (0, smithy_client_1.expectString)(data.FailureMessage);
949
949
  }
950
950
  if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
951
- contents.IdentityPoolId = smithy_client_1.expectString(data.IdentityPoolId);
951
+ contents.IdentityPoolId = (0, smithy_client_1.expectString)(data.IdentityPoolId);
952
952
  }
953
953
  return Promise.resolve(contents);
954
954
  };
@@ -981,7 +981,7 @@ const deserializeAws_restJson1GetBulkPublishDetailsCommandError = async (output,
981
981
  $fault: "client",
982
982
  $metadata: deserializeMetadata(output),
983
983
  });
984
- throw smithy_client_1.decorateServiceException(response, parsedBody);
984
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
985
985
  }
986
986
  };
987
987
  const deserializeAws_restJson1GetCognitoEventsCommand = async (output, context) => {
@@ -992,7 +992,7 @@ const deserializeAws_restJson1GetCognitoEventsCommand = async (output, context)
992
992
  $metadata: deserializeMetadata(output),
993
993
  Events: undefined,
994
994
  };
995
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
995
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
996
996
  if (data.Events !== undefined && data.Events !== null) {
997
997
  contents.Events = deserializeAws_restJson1Events(data.Events, context);
998
998
  }
@@ -1030,7 +1030,7 @@ const deserializeAws_restJson1GetCognitoEventsCommandError = async (output, cont
1030
1030
  $fault: "client",
1031
1031
  $metadata: deserializeMetadata(output),
1032
1032
  });
1033
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1033
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1034
1034
  }
1035
1035
  };
1036
1036
  const deserializeAws_restJson1GetIdentityPoolConfigurationCommand = async (output, context) => {
@@ -1043,12 +1043,12 @@ const deserializeAws_restJson1GetIdentityPoolConfigurationCommand = async (outpu
1043
1043
  IdentityPoolId: undefined,
1044
1044
  PushSync: undefined,
1045
1045
  };
1046
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1046
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1047
1047
  if (data.CognitoStreams !== undefined && data.CognitoStreams !== null) {
1048
1048
  contents.CognitoStreams = deserializeAws_restJson1CognitoStreams(data.CognitoStreams, context);
1049
1049
  }
1050
1050
  if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
1051
- contents.IdentityPoolId = smithy_client_1.expectString(data.IdentityPoolId);
1051
+ contents.IdentityPoolId = (0, smithy_client_1.expectString)(data.IdentityPoolId);
1052
1052
  }
1053
1053
  if (data.PushSync !== undefined && data.PushSync !== null) {
1054
1054
  contents.PushSync = deserializeAws_restJson1PushSync(data.PushSync, context);
@@ -1087,7 +1087,7 @@ const deserializeAws_restJson1GetIdentityPoolConfigurationCommandError = async (
1087
1087
  $fault: "client",
1088
1088
  $metadata: deserializeMetadata(output),
1089
1089
  });
1090
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1090
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1091
1091
  }
1092
1092
  };
1093
1093
  const deserializeAws_restJson1ListDatasetsCommand = async (output, context) => {
@@ -1100,15 +1100,15 @@ const deserializeAws_restJson1ListDatasetsCommand = async (output, context) => {
1100
1100
  Datasets: undefined,
1101
1101
  NextToken: undefined,
1102
1102
  };
1103
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1103
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1104
1104
  if (data.Count !== undefined && data.Count !== null) {
1105
- contents.Count = smithy_client_1.expectInt32(data.Count);
1105
+ contents.Count = (0, smithy_client_1.expectInt32)(data.Count);
1106
1106
  }
1107
1107
  if (data.Datasets !== undefined && data.Datasets !== null) {
1108
1108
  contents.Datasets = deserializeAws_restJson1DatasetList(data.Datasets, context);
1109
1109
  }
1110
1110
  if (data.NextToken !== undefined && data.NextToken !== null) {
1111
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1111
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1112
1112
  }
1113
1113
  return Promise.resolve(contents);
1114
1114
  };
@@ -1141,7 +1141,7 @@ const deserializeAws_restJson1ListDatasetsCommandError = async (output, context)
1141
1141
  $fault: "client",
1142
1142
  $metadata: deserializeMetadata(output),
1143
1143
  });
1144
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1144
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1145
1145
  }
1146
1146
  };
1147
1147
  const deserializeAws_restJson1ListIdentityPoolUsageCommand = async (output, context) => {
@@ -1155,18 +1155,18 @@ const deserializeAws_restJson1ListIdentityPoolUsageCommand = async (output, cont
1155
1155
  MaxResults: undefined,
1156
1156
  NextToken: undefined,
1157
1157
  };
1158
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1158
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1159
1159
  if (data.Count !== undefined && data.Count !== null) {
1160
- contents.Count = smithy_client_1.expectInt32(data.Count);
1160
+ contents.Count = (0, smithy_client_1.expectInt32)(data.Count);
1161
1161
  }
1162
1162
  if (data.IdentityPoolUsages !== undefined && data.IdentityPoolUsages !== null) {
1163
1163
  contents.IdentityPoolUsages = deserializeAws_restJson1IdentityPoolUsageList(data.IdentityPoolUsages, context);
1164
1164
  }
1165
1165
  if (data.MaxResults !== undefined && data.MaxResults !== null) {
1166
- contents.MaxResults = smithy_client_1.expectInt32(data.MaxResults);
1166
+ contents.MaxResults = (0, smithy_client_1.expectInt32)(data.MaxResults);
1167
1167
  }
1168
1168
  if (data.NextToken !== undefined && data.NextToken !== null) {
1169
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1169
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1170
1170
  }
1171
1171
  return Promise.resolve(contents);
1172
1172
  };
@@ -1199,7 +1199,7 @@ const deserializeAws_restJson1ListIdentityPoolUsageCommandError = async (output,
1199
1199
  $fault: "client",
1200
1200
  $metadata: deserializeMetadata(output),
1201
1201
  });
1202
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1202
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1203
1203
  }
1204
1204
  };
1205
1205
  const deserializeAws_restJson1ListRecordsCommand = async (output, context) => {
@@ -1218,33 +1218,33 @@ const deserializeAws_restJson1ListRecordsCommand = async (output, context) => {
1218
1218
  Records: undefined,
1219
1219
  SyncSessionToken: undefined,
1220
1220
  };
1221
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1221
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1222
1222
  if (data.Count !== undefined && data.Count !== null) {
1223
- contents.Count = smithy_client_1.expectInt32(data.Count);
1223
+ contents.Count = (0, smithy_client_1.expectInt32)(data.Count);
1224
1224
  }
1225
1225
  if (data.DatasetDeletedAfterRequestedSyncCount !== undefined && data.DatasetDeletedAfterRequestedSyncCount !== null) {
1226
- contents.DatasetDeletedAfterRequestedSyncCount = smithy_client_1.expectBoolean(data.DatasetDeletedAfterRequestedSyncCount);
1226
+ contents.DatasetDeletedAfterRequestedSyncCount = (0, smithy_client_1.expectBoolean)(data.DatasetDeletedAfterRequestedSyncCount);
1227
1227
  }
1228
1228
  if (data.DatasetExists !== undefined && data.DatasetExists !== null) {
1229
- contents.DatasetExists = smithy_client_1.expectBoolean(data.DatasetExists);
1229
+ contents.DatasetExists = (0, smithy_client_1.expectBoolean)(data.DatasetExists);
1230
1230
  }
1231
1231
  if (data.DatasetSyncCount !== undefined && data.DatasetSyncCount !== null) {
1232
- contents.DatasetSyncCount = smithy_client_1.expectLong(data.DatasetSyncCount);
1232
+ contents.DatasetSyncCount = (0, smithy_client_1.expectLong)(data.DatasetSyncCount);
1233
1233
  }
1234
1234
  if (data.LastModifiedBy !== undefined && data.LastModifiedBy !== null) {
1235
- contents.LastModifiedBy = smithy_client_1.expectString(data.LastModifiedBy);
1235
+ contents.LastModifiedBy = (0, smithy_client_1.expectString)(data.LastModifiedBy);
1236
1236
  }
1237
1237
  if (data.MergedDatasetNames !== undefined && data.MergedDatasetNames !== null) {
1238
1238
  contents.MergedDatasetNames = deserializeAws_restJson1MergedDatasetNameList(data.MergedDatasetNames, context);
1239
1239
  }
1240
1240
  if (data.NextToken !== undefined && data.NextToken !== null) {
1241
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1241
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1242
1242
  }
1243
1243
  if (data.Records !== undefined && data.Records !== null) {
1244
1244
  contents.Records = deserializeAws_restJson1RecordList(data.Records, context);
1245
1245
  }
1246
1246
  if (data.SyncSessionToken !== undefined && data.SyncSessionToken !== null) {
1247
- contents.SyncSessionToken = smithy_client_1.expectString(data.SyncSessionToken);
1247
+ contents.SyncSessionToken = (0, smithy_client_1.expectString)(data.SyncSessionToken);
1248
1248
  }
1249
1249
  return Promise.resolve(contents);
1250
1250
  };
@@ -1277,7 +1277,7 @@ const deserializeAws_restJson1ListRecordsCommandError = async (output, context)
1277
1277
  $fault: "client",
1278
1278
  $metadata: deserializeMetadata(output),
1279
1279
  });
1280
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1280
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1281
1281
  }
1282
1282
  };
1283
1283
  const deserializeAws_restJson1RegisterDeviceCommand = async (output, context) => {
@@ -1288,9 +1288,9 @@ const deserializeAws_restJson1RegisterDeviceCommand = async (output, context) =>
1288
1288
  $metadata: deserializeMetadata(output),
1289
1289
  DeviceId: undefined,
1290
1290
  };
1291
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1291
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1292
1292
  if (data.DeviceId !== undefined && data.DeviceId !== null) {
1293
- contents.DeviceId = smithy_client_1.expectString(data.DeviceId);
1293
+ contents.DeviceId = (0, smithy_client_1.expectString)(data.DeviceId);
1294
1294
  }
1295
1295
  return Promise.resolve(contents);
1296
1296
  };
@@ -1329,7 +1329,7 @@ const deserializeAws_restJson1RegisterDeviceCommandError = async (output, contex
1329
1329
  $fault: "client",
1330
1330
  $metadata: deserializeMetadata(output),
1331
1331
  });
1332
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1332
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1333
1333
  }
1334
1334
  };
1335
1335
  const deserializeAws_restJson1SetCognitoEventsCommand = async (output, context) => {
@@ -1374,7 +1374,7 @@ const deserializeAws_restJson1SetCognitoEventsCommandError = async (output, cont
1374
1374
  $fault: "client",
1375
1375
  $metadata: deserializeMetadata(output),
1376
1376
  });
1377
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1377
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1378
1378
  }
1379
1379
  };
1380
1380
  const deserializeAws_restJson1SetIdentityPoolConfigurationCommand = async (output, context) => {
@@ -1387,12 +1387,12 @@ const deserializeAws_restJson1SetIdentityPoolConfigurationCommand = async (outpu
1387
1387
  IdentityPoolId: undefined,
1388
1388
  PushSync: undefined,
1389
1389
  };
1390
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1390
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1391
1391
  if (data.CognitoStreams !== undefined && data.CognitoStreams !== null) {
1392
1392
  contents.CognitoStreams = deserializeAws_restJson1CognitoStreams(data.CognitoStreams, context);
1393
1393
  }
1394
1394
  if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
1395
- contents.IdentityPoolId = smithy_client_1.expectString(data.IdentityPoolId);
1395
+ contents.IdentityPoolId = (0, smithy_client_1.expectString)(data.IdentityPoolId);
1396
1396
  }
1397
1397
  if (data.PushSync !== undefined && data.PushSync !== null) {
1398
1398
  contents.PushSync = deserializeAws_restJson1PushSync(data.PushSync, context);
@@ -1434,7 +1434,7 @@ const deserializeAws_restJson1SetIdentityPoolConfigurationCommandError = async (
1434
1434
  $fault: "client",
1435
1435
  $metadata: deserializeMetadata(output),
1436
1436
  });
1437
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1437
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1438
1438
  }
1439
1439
  };
1440
1440
  const deserializeAws_restJson1SubscribeToDatasetCommand = async (output, context) => {
@@ -1482,7 +1482,7 @@ const deserializeAws_restJson1SubscribeToDatasetCommandError = async (output, co
1482
1482
  $fault: "client",
1483
1483
  $metadata: deserializeMetadata(output),
1484
1484
  });
1485
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1485
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1486
1486
  }
1487
1487
  };
1488
1488
  const deserializeAws_restJson1UnsubscribeFromDatasetCommand = async (output, context) => {
@@ -1530,7 +1530,7 @@ const deserializeAws_restJson1UnsubscribeFromDatasetCommandError = async (output
1530
1530
  $fault: "client",
1531
1531
  $metadata: deserializeMetadata(output),
1532
1532
  });
1533
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1533
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1534
1534
  }
1535
1535
  };
1536
1536
  const deserializeAws_restJson1UpdateRecordsCommand = async (output, context) => {
@@ -1541,7 +1541,7 @@ const deserializeAws_restJson1UpdateRecordsCommand = async (output, context) =>
1541
1541
  $metadata: deserializeMetadata(output),
1542
1542
  Records: undefined,
1543
1543
  };
1544
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1544
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1545
1545
  if (data.Records !== undefined && data.Records !== null) {
1546
1546
  contents.Records = deserializeAws_restJson1RecordList(data.Records, context);
1547
1547
  }
@@ -1591,164 +1591,164 @@ const deserializeAws_restJson1UpdateRecordsCommandError = async (output, context
1591
1591
  $fault: "client",
1592
1592
  $metadata: deserializeMetadata(output),
1593
1593
  });
1594
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1594
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1595
1595
  }
1596
1596
  };
1597
1597
  const deserializeAws_restJson1AlreadyStreamedExceptionResponse = async (parsedOutput, context) => {
1598
1598
  const contents = {};
1599
1599
  const data = parsedOutput.body;
1600
1600
  if (data.message !== undefined && data.message !== null) {
1601
- contents.message = smithy_client_1.expectString(data.message);
1601
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1602
1602
  }
1603
1603
  const exception = new models_0_1.AlreadyStreamedException({
1604
1604
  $metadata: deserializeMetadata(parsedOutput),
1605
1605
  ...contents,
1606
1606
  });
1607
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1607
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1608
1608
  };
1609
1609
  const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
1610
1610
  const contents = {};
1611
1611
  const data = parsedOutput.body;
1612
1612
  if (data.message !== undefined && data.message !== null) {
1613
- contents.message = smithy_client_1.expectString(data.message);
1613
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1614
1614
  }
1615
1615
  const exception = new models_0_1.ConcurrentModificationException({
1616
1616
  $metadata: deserializeMetadata(parsedOutput),
1617
1617
  ...contents,
1618
1618
  });
1619
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1619
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1620
1620
  };
1621
1621
  const deserializeAws_restJson1DuplicateRequestExceptionResponse = async (parsedOutput, context) => {
1622
1622
  const contents = {};
1623
1623
  const data = parsedOutput.body;
1624
1624
  if (data.message !== undefined && data.message !== null) {
1625
- contents.message = smithy_client_1.expectString(data.message);
1625
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1626
1626
  }
1627
1627
  const exception = new models_0_1.DuplicateRequestException({
1628
1628
  $metadata: deserializeMetadata(parsedOutput),
1629
1629
  ...contents,
1630
1630
  });
1631
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1631
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1632
1632
  };
1633
1633
  const deserializeAws_restJson1InternalErrorExceptionResponse = async (parsedOutput, context) => {
1634
1634
  const contents = {};
1635
1635
  const data = parsedOutput.body;
1636
1636
  if (data.message !== undefined && data.message !== null) {
1637
- contents.message = smithy_client_1.expectString(data.message);
1637
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1638
1638
  }
1639
1639
  const exception = new models_0_1.InternalErrorException({
1640
1640
  $metadata: deserializeMetadata(parsedOutput),
1641
1641
  ...contents,
1642
1642
  });
1643
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1643
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1644
1644
  };
1645
1645
  const deserializeAws_restJson1InvalidConfigurationExceptionResponse = async (parsedOutput, context) => {
1646
1646
  const contents = {};
1647
1647
  const data = parsedOutput.body;
1648
1648
  if (data.message !== undefined && data.message !== null) {
1649
- contents.message = smithy_client_1.expectString(data.message);
1649
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1650
1650
  }
1651
1651
  const exception = new models_0_1.InvalidConfigurationException({
1652
1652
  $metadata: deserializeMetadata(parsedOutput),
1653
1653
  ...contents,
1654
1654
  });
1655
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1655
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1656
1656
  };
1657
1657
  const deserializeAws_restJson1InvalidLambdaFunctionOutputExceptionResponse = async (parsedOutput, context) => {
1658
1658
  const contents = {};
1659
1659
  const data = parsedOutput.body;
1660
1660
  if (data.message !== undefined && data.message !== null) {
1661
- contents.message = smithy_client_1.expectString(data.message);
1661
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1662
1662
  }
1663
1663
  const exception = new models_0_1.InvalidLambdaFunctionOutputException({
1664
1664
  $metadata: deserializeMetadata(parsedOutput),
1665
1665
  ...contents,
1666
1666
  });
1667
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1667
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1668
1668
  };
1669
1669
  const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
1670
1670
  const contents = {};
1671
1671
  const data = parsedOutput.body;
1672
1672
  if (data.message !== undefined && data.message !== null) {
1673
- contents.message = smithy_client_1.expectString(data.message);
1673
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1674
1674
  }
1675
1675
  const exception = new models_0_1.InvalidParameterException({
1676
1676
  $metadata: deserializeMetadata(parsedOutput),
1677
1677
  ...contents,
1678
1678
  });
1679
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1679
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1680
1680
  };
1681
1681
  const deserializeAws_restJson1LambdaThrottledExceptionResponse = async (parsedOutput, context) => {
1682
1682
  const contents = {};
1683
1683
  const data = parsedOutput.body;
1684
1684
  if (data.message !== undefined && data.message !== null) {
1685
- contents.message = smithy_client_1.expectString(data.message);
1685
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1686
1686
  }
1687
1687
  const exception = new models_0_1.LambdaThrottledException({
1688
1688
  $metadata: deserializeMetadata(parsedOutput),
1689
1689
  ...contents,
1690
1690
  });
1691
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1691
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1692
1692
  };
1693
1693
  const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
1694
1694
  const contents = {};
1695
1695
  const data = parsedOutput.body;
1696
1696
  if (data.message !== undefined && data.message !== null) {
1697
- contents.message = smithy_client_1.expectString(data.message);
1697
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1698
1698
  }
1699
1699
  const exception = new models_0_1.LimitExceededException({
1700
1700
  $metadata: deserializeMetadata(parsedOutput),
1701
1701
  ...contents,
1702
1702
  });
1703
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1703
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1704
1704
  };
1705
1705
  const deserializeAws_restJson1NotAuthorizedExceptionResponse = async (parsedOutput, context) => {
1706
1706
  const contents = {};
1707
1707
  const data = parsedOutput.body;
1708
1708
  if (data.message !== undefined && data.message !== null) {
1709
- contents.message = smithy_client_1.expectString(data.message);
1709
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1710
1710
  }
1711
1711
  const exception = new models_0_1.NotAuthorizedException({
1712
1712
  $metadata: deserializeMetadata(parsedOutput),
1713
1713
  ...contents,
1714
1714
  });
1715
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1715
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1716
1716
  };
1717
1717
  const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedOutput, context) => {
1718
1718
  const contents = {};
1719
1719
  const data = parsedOutput.body;
1720
1720
  if (data.message !== undefined && data.message !== null) {
1721
- contents.message = smithy_client_1.expectString(data.message);
1721
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1722
1722
  }
1723
1723
  const exception = new models_0_1.ResourceConflictException({
1724
1724
  $metadata: deserializeMetadata(parsedOutput),
1725
1725
  ...contents,
1726
1726
  });
1727
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1727
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1728
1728
  };
1729
1729
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
1730
1730
  const contents = {};
1731
1731
  const data = parsedOutput.body;
1732
1732
  if (data.message !== undefined && data.message !== null) {
1733
- contents.message = smithy_client_1.expectString(data.message);
1733
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1734
1734
  }
1735
1735
  const exception = new models_0_1.ResourceNotFoundException({
1736
1736
  $metadata: deserializeMetadata(parsedOutput),
1737
1737
  ...contents,
1738
1738
  });
1739
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1739
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1740
1740
  };
1741
1741
  const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
1742
1742
  const contents = {};
1743
1743
  const data = parsedOutput.body;
1744
1744
  if (data.message !== undefined && data.message !== null) {
1745
- contents.message = smithy_client_1.expectString(data.message);
1745
+ contents.message = (0, smithy_client_1.expectString)(data.message);
1746
1746
  }
1747
1747
  const exception = new models_0_1.TooManyRequestsException({
1748
1748
  $metadata: deserializeMetadata(parsedOutput),
1749
1749
  ...contents,
1750
1750
  });
1751
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
1751
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1752
1752
  };
1753
1753
  const serializeAws_restJson1ApplicationArnList = (input, context) => {
1754
1754
  return input
@@ -1817,30 +1817,30 @@ const deserializeAws_restJson1ApplicationArnList = (output, context) => {
1817
1817
  if (entry === null) {
1818
1818
  return null;
1819
1819
  }
1820
- return smithy_client_1.expectString(entry);
1820
+ return (0, smithy_client_1.expectString)(entry);
1821
1821
  });
1822
1822
  return retVal;
1823
1823
  };
1824
1824
  const deserializeAws_restJson1CognitoStreams = (output, context) => {
1825
1825
  return {
1826
- RoleArn: smithy_client_1.expectString(output.RoleArn),
1827
- StreamName: smithy_client_1.expectString(output.StreamName),
1828
- StreamingStatus: smithy_client_1.expectString(output.StreamingStatus),
1826
+ RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
1827
+ StreamName: (0, smithy_client_1.expectString)(output.StreamName),
1828
+ StreamingStatus: (0, smithy_client_1.expectString)(output.StreamingStatus),
1829
1829
  };
1830
1830
  };
1831
1831
  const deserializeAws_restJson1Dataset = (output, context) => {
1832
1832
  return {
1833
1833
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
1834
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
1834
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
1835
1835
  : undefined,
1836
- DataStorage: smithy_client_1.expectLong(output.DataStorage),
1837
- DatasetName: smithy_client_1.expectString(output.DatasetName),
1838
- IdentityId: smithy_client_1.expectString(output.IdentityId),
1839
- LastModifiedBy: smithy_client_1.expectString(output.LastModifiedBy),
1836
+ DataStorage: (0, smithy_client_1.expectLong)(output.DataStorage),
1837
+ DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
1838
+ IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
1839
+ LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
1840
1840
  LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
1841
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
1841
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
1842
1842
  : undefined,
1843
- NumRecords: smithy_client_1.expectLong(output.NumRecords),
1843
+ NumRecords: (0, smithy_client_1.expectLong)(output.NumRecords),
1844
1844
  };
1845
1845
  };
1846
1846
  const deserializeAws_restJson1DatasetList = (output, context) => {
@@ -1861,18 +1861,18 @@ const deserializeAws_restJson1Events = (output, context) => {
1861
1861
  }
1862
1862
  return {
1863
1863
  ...acc,
1864
- [key]: smithy_client_1.expectString(value),
1864
+ [key]: (0, smithy_client_1.expectString)(value),
1865
1865
  };
1866
1866
  }, {});
1867
1867
  };
1868
1868
  const deserializeAws_restJson1IdentityPoolUsage = (output, context) => {
1869
1869
  return {
1870
- DataStorage: smithy_client_1.expectLong(output.DataStorage),
1871
- IdentityPoolId: smithy_client_1.expectString(output.IdentityPoolId),
1870
+ DataStorage: (0, smithy_client_1.expectLong)(output.DataStorage),
1871
+ IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
1872
1872
  LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
1873
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
1873
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
1874
1874
  : undefined,
1875
- SyncSessionsCount: smithy_client_1.expectLong(output.SyncSessionsCount),
1875
+ SyncSessionsCount: (0, smithy_client_1.expectLong)(output.SyncSessionsCount),
1876
1876
  };
1877
1877
  };
1878
1878
  const deserializeAws_restJson1IdentityPoolUsageList = (output, context) => {
@@ -1888,12 +1888,12 @@ const deserializeAws_restJson1IdentityPoolUsageList = (output, context) => {
1888
1888
  };
1889
1889
  const deserializeAws_restJson1IdentityUsage = (output, context) => {
1890
1890
  return {
1891
- DataStorage: smithy_client_1.expectLong(output.DataStorage),
1892
- DatasetCount: smithy_client_1.expectInt32(output.DatasetCount),
1893
- IdentityId: smithy_client_1.expectString(output.IdentityId),
1894
- IdentityPoolId: smithy_client_1.expectString(output.IdentityPoolId),
1891
+ DataStorage: (0, smithy_client_1.expectLong)(output.DataStorage),
1892
+ DatasetCount: (0, smithy_client_1.expectInt32)(output.DatasetCount),
1893
+ IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
1894
+ IdentityPoolId: (0, smithy_client_1.expectString)(output.IdentityPoolId),
1895
1895
  LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
1896
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
1896
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
1897
1897
  : undefined,
1898
1898
  };
1899
1899
  };
@@ -1904,7 +1904,7 @@ const deserializeAws_restJson1MergedDatasetNameList = (output, context) => {
1904
1904
  if (entry === null) {
1905
1905
  return null;
1906
1906
  }
1907
- return smithy_client_1.expectString(entry);
1907
+ return (0, smithy_client_1.expectString)(entry);
1908
1908
  });
1909
1909
  return retVal;
1910
1910
  };
@@ -1913,21 +1913,21 @@ const deserializeAws_restJson1PushSync = (output, context) => {
1913
1913
  ApplicationArns: output.ApplicationArns !== undefined && output.ApplicationArns !== null
1914
1914
  ? deserializeAws_restJson1ApplicationArnList(output.ApplicationArns, context)
1915
1915
  : undefined,
1916
- RoleArn: smithy_client_1.expectString(output.RoleArn),
1916
+ RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
1917
1917
  };
1918
1918
  };
1919
1919
  const deserializeAws_restJson1_Record = (output, context) => {
1920
1920
  return {
1921
1921
  DeviceLastModifiedDate: output.DeviceLastModifiedDate !== undefined && output.DeviceLastModifiedDate !== null
1922
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeviceLastModifiedDate)))
1922
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeviceLastModifiedDate)))
1923
1923
  : undefined,
1924
- Key: smithy_client_1.expectString(output.Key),
1925
- LastModifiedBy: smithy_client_1.expectString(output.LastModifiedBy),
1924
+ Key: (0, smithy_client_1.expectString)(output.Key),
1925
+ LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
1926
1926
  LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
1927
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
1927
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
1928
1928
  : undefined,
1929
- SyncCount: smithy_client_1.expectLong(output.SyncCount),
1930
- Value: smithy_client_1.expectString(output.Value),
1929
+ SyncCount: (0, smithy_client_1.expectLong)(output.SyncCount),
1930
+ Value: (0, smithy_client_1.expectString)(output.Value),
1931
1931
  };
1932
1932
  };
1933
1933
  const deserializeAws_restJson1RecordList = (output, context) => {