@aws-sdk/client-dataexchange 3.54.0 → 3.56.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 (64) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/DataExchange.js +15 -0
  3. package/dist-cjs/DataExchangeClient.js +13 -13
  4. package/dist-cjs/commands/CancelJobCommand.js +3 -3
  5. package/dist-cjs/commands/CreateDataSetCommand.js +3 -3
  6. package/dist-cjs/commands/CreateEventActionCommand.js +3 -3
  7. package/dist-cjs/commands/CreateJobCommand.js +3 -3
  8. package/dist-cjs/commands/CreateRevisionCommand.js +3 -3
  9. package/dist-cjs/commands/DeleteAssetCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteDataSetCommand.js +3 -3
  11. package/dist-cjs/commands/DeleteEventActionCommand.js +3 -3
  12. package/dist-cjs/commands/DeleteRevisionCommand.js +3 -3
  13. package/dist-cjs/commands/GetAssetCommand.js +3 -3
  14. package/dist-cjs/commands/GetDataSetCommand.js +3 -3
  15. package/dist-cjs/commands/GetEventActionCommand.js +3 -3
  16. package/dist-cjs/commands/GetJobCommand.js +3 -3
  17. package/dist-cjs/commands/GetRevisionCommand.js +3 -3
  18. package/dist-cjs/commands/ListDataSetRevisionsCommand.js +3 -3
  19. package/dist-cjs/commands/ListDataSetsCommand.js +3 -3
  20. package/dist-cjs/commands/ListEventActionsCommand.js +3 -3
  21. package/dist-cjs/commands/ListJobsCommand.js +3 -3
  22. package/dist-cjs/commands/ListRevisionAssetsCommand.js +3 -3
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  24. package/dist-cjs/commands/RevokeRevisionCommand.js +36 -0
  25. package/dist-cjs/commands/SendApiAssetCommand.js +3 -3
  26. package/dist-cjs/commands/StartJobCommand.js +3 -3
  27. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  28. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  29. package/dist-cjs/commands/UpdateAssetCommand.js +3 -3
  30. package/dist-cjs/commands/UpdateDataSetCommand.js +3 -3
  31. package/dist-cjs/commands/UpdateEventActionCommand.js +3 -3
  32. package/dist-cjs/commands/UpdateRevisionCommand.js +3 -3
  33. package/dist-cjs/commands/index.js +1 -0
  34. package/dist-cjs/endpoints.js +1 -1
  35. package/dist-cjs/models/models_0.js +14 -2
  36. package/dist-cjs/protocols/Aws_restJson1.js +480 -301
  37. package/dist-cjs/runtimeConfig.browser.js +4 -4
  38. package/dist-cjs/runtimeConfig.js +9 -9
  39. package/dist-cjs/runtimeConfig.native.js +1 -1
  40. package/dist-es/DataExchange.js +43 -28
  41. package/dist-es/commands/RevokeRevisionCommand.js +39 -0
  42. package/dist-es/commands/index.js +1 -0
  43. package/dist-es/models/models_0.js +8 -0
  44. package/dist-es/pagination/ListDataSetRevisionsPaginator.js +4 -4
  45. package/dist-es/pagination/ListDataSetsPaginator.js +4 -4
  46. package/dist-es/pagination/ListEventActionsPaginator.js +4 -4
  47. package/dist-es/pagination/ListJobsPaginator.js +4 -4
  48. package/dist-es/pagination/ListRevisionAssetsPaginator.js +4 -4
  49. package/dist-es/protocols/Aws_restJson1.js +250 -43
  50. package/dist-types/DataExchange.d.ts +7 -0
  51. package/dist-types/DataExchangeClient.d.ts +3 -2
  52. package/dist-types/commands/RevokeRevisionCommand.d.ts +35 -0
  53. package/dist-types/commands/index.d.ts +1 -0
  54. package/dist-types/models/models_0.d.ts +124 -1
  55. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  56. package/dist-types/runtimeConfig.native.d.ts +2 -2
  57. package/dist-types/ts3.4/DataExchange.d.ts +5 -0
  58. package/dist-types/ts3.4/DataExchangeClient.d.ts +3 -2
  59. package/dist-types/ts3.4/commands/RevokeRevisionCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  61. package/dist-types/ts3.4/models/models_0.d.ts +65 -0
  62. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  63. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  64. package/package.json +34 -34
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1StartJobCommand = exports.deserializeAws_restJson1SendApiAssetCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRevisionAssetsCommand = exports.deserializeAws_restJson1ListJobsCommand = exports.deserializeAws_restJson1ListEventActionsCommand = exports.deserializeAws_restJson1ListDataSetsCommand = exports.deserializeAws_restJson1ListDataSetRevisionsCommand = exports.deserializeAws_restJson1GetRevisionCommand = exports.deserializeAws_restJson1GetJobCommand = exports.deserializeAws_restJson1GetEventActionCommand = exports.deserializeAws_restJson1GetDataSetCommand = exports.deserializeAws_restJson1GetAssetCommand = exports.deserializeAws_restJson1DeleteRevisionCommand = exports.deserializeAws_restJson1DeleteEventActionCommand = exports.deserializeAws_restJson1DeleteDataSetCommand = exports.deserializeAws_restJson1DeleteAssetCommand = exports.deserializeAws_restJson1CreateRevisionCommand = exports.deserializeAws_restJson1CreateJobCommand = exports.deserializeAws_restJson1CreateEventActionCommand = exports.deserializeAws_restJson1CreateDataSetCommand = exports.deserializeAws_restJson1CancelJobCommand = exports.serializeAws_restJson1UpdateRevisionCommand = exports.serializeAws_restJson1UpdateEventActionCommand = exports.serializeAws_restJson1UpdateDataSetCommand = exports.serializeAws_restJson1UpdateAssetCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartJobCommand = exports.serializeAws_restJson1SendApiAssetCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRevisionAssetsCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1ListEventActionsCommand = exports.serializeAws_restJson1ListDataSetsCommand = exports.serializeAws_restJson1ListDataSetRevisionsCommand = exports.serializeAws_restJson1GetRevisionCommand = exports.serializeAws_restJson1GetJobCommand = exports.serializeAws_restJson1GetEventActionCommand = exports.serializeAws_restJson1GetDataSetCommand = exports.serializeAws_restJson1GetAssetCommand = exports.serializeAws_restJson1DeleteRevisionCommand = exports.serializeAws_restJson1DeleteEventActionCommand = exports.serializeAws_restJson1DeleteDataSetCommand = exports.serializeAws_restJson1DeleteAssetCommand = exports.serializeAws_restJson1CreateRevisionCommand = exports.serializeAws_restJson1CreateJobCommand = exports.serializeAws_restJson1CreateEventActionCommand = exports.serializeAws_restJson1CreateDataSetCommand = exports.serializeAws_restJson1CancelJobCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateRevisionCommand = exports.deserializeAws_restJson1UpdateEventActionCommand = exports.deserializeAws_restJson1UpdateDataSetCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = void 0;
3
+ exports.deserializeAws_restJson1RevokeRevisionCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRevisionAssetsCommand = exports.deserializeAws_restJson1ListJobsCommand = exports.deserializeAws_restJson1ListEventActionsCommand = exports.deserializeAws_restJson1ListDataSetsCommand = exports.deserializeAws_restJson1ListDataSetRevisionsCommand = exports.deserializeAws_restJson1GetRevisionCommand = exports.deserializeAws_restJson1GetJobCommand = exports.deserializeAws_restJson1GetEventActionCommand = exports.deserializeAws_restJson1GetDataSetCommand = exports.deserializeAws_restJson1GetAssetCommand = exports.deserializeAws_restJson1DeleteRevisionCommand = exports.deserializeAws_restJson1DeleteEventActionCommand = exports.deserializeAws_restJson1DeleteDataSetCommand = exports.deserializeAws_restJson1DeleteAssetCommand = exports.deserializeAws_restJson1CreateRevisionCommand = exports.deserializeAws_restJson1CreateJobCommand = exports.deserializeAws_restJson1CreateEventActionCommand = exports.deserializeAws_restJson1CreateDataSetCommand = exports.deserializeAws_restJson1CancelJobCommand = exports.serializeAws_restJson1UpdateRevisionCommand = exports.serializeAws_restJson1UpdateEventActionCommand = exports.serializeAws_restJson1UpdateDataSetCommand = exports.serializeAws_restJson1UpdateAssetCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartJobCommand = exports.serializeAws_restJson1SendApiAssetCommand = exports.serializeAws_restJson1RevokeRevisionCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRevisionAssetsCommand = exports.serializeAws_restJson1ListJobsCommand = exports.serializeAws_restJson1ListEventActionsCommand = exports.serializeAws_restJson1ListDataSetsCommand = exports.serializeAws_restJson1ListDataSetRevisionsCommand = exports.serializeAws_restJson1GetRevisionCommand = exports.serializeAws_restJson1GetJobCommand = exports.serializeAws_restJson1GetEventActionCommand = exports.serializeAws_restJson1GetDataSetCommand = exports.serializeAws_restJson1GetAssetCommand = exports.serializeAws_restJson1DeleteRevisionCommand = exports.serializeAws_restJson1DeleteEventActionCommand = exports.serializeAws_restJson1DeleteDataSetCommand = exports.serializeAws_restJson1DeleteAssetCommand = exports.serializeAws_restJson1CreateRevisionCommand = exports.serializeAws_restJson1CreateJobCommand = exports.serializeAws_restJson1CreateEventActionCommand = exports.serializeAws_restJson1CreateDataSetCommand = exports.serializeAws_restJson1CancelJobCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateRevisionCommand = exports.deserializeAws_restJson1UpdateEventActionCommand = exports.deserializeAws_restJson1UpdateDataSetCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartJobCommand = exports.deserializeAws_restJson1SendApiAssetCommand = 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 DataExchangeServiceException_1 = require("../models/DataExchangeServiceException");
@@ -15,7 +15,7 @@ const serializeAws_restJson1CancelJobCommand = async (input, context) => {
15
15
  if (labelValue.length <= 0) {
16
16
  throw new Error("Empty value provided for input HTTP label: JobId.");
17
17
  }
18
- resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
18
+ resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
19
19
  }
20
20
  else {
21
21
  throw new Error("No value provided for input HTTP label: JobId.");
@@ -115,7 +115,7 @@ const serializeAws_restJson1CreateRevisionCommand = async (input, context) => {
115
115
  if (labelValue.length <= 0) {
116
116
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
117
117
  }
118
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
118
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
119
119
  }
120
120
  else {
121
121
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -147,7 +147,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
147
147
  if (labelValue.length <= 0) {
148
148
  throw new Error("Empty value provided for input HTTP label: AssetId.");
149
149
  }
150
- resolvedPath = resolvedPath.replace("{AssetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
150
+ resolvedPath = resolvedPath.replace("{AssetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
151
151
  }
152
152
  else {
153
153
  throw new Error("No value provided for input HTTP label: AssetId.");
@@ -157,7 +157,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
157
157
  if (labelValue.length <= 0) {
158
158
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
159
159
  }
160
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
160
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
161
161
  }
162
162
  else {
163
163
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -167,7 +167,7 @@ const serializeAws_restJson1DeleteAssetCommand = async (input, context) => {
167
167
  if (labelValue.length <= 0) {
168
168
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
169
169
  }
170
- resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
170
+ resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
171
171
  }
172
172
  else {
173
173
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -193,7 +193,7 @@ const serializeAws_restJson1DeleteDataSetCommand = async (input, context) => {
193
193
  if (labelValue.length <= 0) {
194
194
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
195
195
  }
196
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
196
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
197
197
  }
198
198
  else {
199
199
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -219,7 +219,7 @@ const serializeAws_restJson1DeleteEventActionCommand = async (input, context) =>
219
219
  if (labelValue.length <= 0) {
220
220
  throw new Error("Empty value provided for input HTTP label: EventActionId.");
221
221
  }
222
- resolvedPath = resolvedPath.replace("{EventActionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
222
+ resolvedPath = resolvedPath.replace("{EventActionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
223
223
  }
224
224
  else {
225
225
  throw new Error("No value provided for input HTTP label: EventActionId.");
@@ -246,7 +246,7 @@ const serializeAws_restJson1DeleteRevisionCommand = async (input, context) => {
246
246
  if (labelValue.length <= 0) {
247
247
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
248
248
  }
249
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
249
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
250
250
  }
251
251
  else {
252
252
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -256,7 +256,7 @@ const serializeAws_restJson1DeleteRevisionCommand = async (input, context) => {
256
256
  if (labelValue.length <= 0) {
257
257
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
258
258
  }
259
- resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
259
+ resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
260
260
  }
261
261
  else {
262
262
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -283,7 +283,7 @@ const serializeAws_restJson1GetAssetCommand = async (input, context) => {
283
283
  if (labelValue.length <= 0) {
284
284
  throw new Error("Empty value provided for input HTTP label: AssetId.");
285
285
  }
286
- resolvedPath = resolvedPath.replace("{AssetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
286
+ resolvedPath = resolvedPath.replace("{AssetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
287
287
  }
288
288
  else {
289
289
  throw new Error("No value provided for input HTTP label: AssetId.");
@@ -293,7 +293,7 @@ const serializeAws_restJson1GetAssetCommand = async (input, context) => {
293
293
  if (labelValue.length <= 0) {
294
294
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
295
295
  }
296
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
296
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
297
297
  }
298
298
  else {
299
299
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -303,7 +303,7 @@ const serializeAws_restJson1GetAssetCommand = async (input, context) => {
303
303
  if (labelValue.length <= 0) {
304
304
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
305
305
  }
306
- resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
306
+ resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
307
307
  }
308
308
  else {
309
309
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -329,7 +329,7 @@ const serializeAws_restJson1GetDataSetCommand = async (input, context) => {
329
329
  if (labelValue.length <= 0) {
330
330
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
331
331
  }
332
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
332
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
333
333
  }
334
334
  else {
335
335
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -355,7 +355,7 @@ const serializeAws_restJson1GetEventActionCommand = async (input, context) => {
355
355
  if (labelValue.length <= 0) {
356
356
  throw new Error("Empty value provided for input HTTP label: EventActionId.");
357
357
  }
358
- resolvedPath = resolvedPath.replace("{EventActionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
358
+ resolvedPath = resolvedPath.replace("{EventActionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
359
359
  }
360
360
  else {
361
361
  throw new Error("No value provided for input HTTP label: EventActionId.");
@@ -381,7 +381,7 @@ const serializeAws_restJson1GetJobCommand = async (input, context) => {
381
381
  if (labelValue.length <= 0) {
382
382
  throw new Error("Empty value provided for input HTTP label: JobId.");
383
383
  }
384
- resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
384
+ resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
385
385
  }
386
386
  else {
387
387
  throw new Error("No value provided for input HTTP label: JobId.");
@@ -408,7 +408,7 @@ const serializeAws_restJson1GetRevisionCommand = async (input, context) => {
408
408
  if (labelValue.length <= 0) {
409
409
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
410
410
  }
411
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
411
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
412
412
  }
413
413
  else {
414
414
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -418,7 +418,7 @@ const serializeAws_restJson1GetRevisionCommand = async (input, context) => {
418
418
  if (labelValue.length <= 0) {
419
419
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
420
420
  }
421
- resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
421
+ resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
422
422
  }
423
423
  else {
424
424
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -444,7 +444,7 @@ const serializeAws_restJson1ListDataSetRevisionsCommand = async (input, context)
444
444
  if (labelValue.length <= 0) {
445
445
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
446
446
  }
447
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
447
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
448
448
  }
449
449
  else {
450
450
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -543,7 +543,7 @@ const serializeAws_restJson1ListRevisionAssetsCommand = async (input, context) =
543
543
  if (labelValue.length <= 0) {
544
544
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
545
545
  }
546
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
546
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
547
547
  }
548
548
  else {
549
549
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -553,7 +553,7 @@ const serializeAws_restJson1ListRevisionAssetsCommand = async (input, context) =
553
553
  if (labelValue.length <= 0) {
554
554
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
555
555
  }
556
- resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
556
+ resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
557
557
  }
558
558
  else {
559
559
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -584,7 +584,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
584
584
  if (labelValue.length <= 0) {
585
585
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
586
586
  }
587
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
587
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
588
588
  }
589
589
  else {
590
590
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -601,6 +601,49 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
601
601
  });
602
602
  };
603
603
  exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
604
+ const serializeAws_restJson1RevokeRevisionCommand = async (input, context) => {
605
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
606
+ const headers = {
607
+ "content-type": "application/json",
608
+ };
609
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
610
+ "/v1/data-sets/{DataSetId}/revisions/{RevisionId}/revoke";
611
+ if (input.DataSetId !== undefined) {
612
+ const labelValue = input.DataSetId;
613
+ if (labelValue.length <= 0) {
614
+ throw new Error("Empty value provided for input HTTP label: DataSetId.");
615
+ }
616
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
617
+ }
618
+ else {
619
+ throw new Error("No value provided for input HTTP label: DataSetId.");
620
+ }
621
+ if (input.RevisionId !== undefined) {
622
+ const labelValue = input.RevisionId;
623
+ if (labelValue.length <= 0) {
624
+ throw new Error("Empty value provided for input HTTP label: RevisionId.");
625
+ }
626
+ resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
627
+ }
628
+ else {
629
+ throw new Error("No value provided for input HTTP label: RevisionId.");
630
+ }
631
+ let body;
632
+ body = JSON.stringify({
633
+ ...(input.RevocationComment !== undefined &&
634
+ input.RevocationComment !== null && { RevocationComment: input.RevocationComment }),
635
+ });
636
+ return new protocol_http_1.HttpRequest({
637
+ protocol,
638
+ hostname,
639
+ port,
640
+ method: "POST",
641
+ headers,
642
+ path: resolvedPath,
643
+ body,
644
+ });
645
+ };
646
+ exports.serializeAws_restJson1RevokeRevisionCommand = serializeAws_restJson1RevokeRevisionCommand;
604
647
  const serializeAws_restJson1SendApiAssetCommand = async (input, context) => {
605
648
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
606
649
  const headers = {
@@ -627,7 +670,7 @@ const serializeAws_restJson1SendApiAssetCommand = async (input, context) => {
627
670
  let { hostname: resolvedHostname } = await context.endpoint();
628
671
  if (context.disableHostPrefix !== true) {
629
672
  resolvedHostname = "api-fulfill." + resolvedHostname;
630
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
673
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
631
674
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
632
675
  }
633
676
  }
@@ -652,7 +695,7 @@ const serializeAws_restJson1StartJobCommand = async (input, context) => {
652
695
  if (labelValue.length <= 0) {
653
696
  throw new Error("Empty value provided for input HTTP label: JobId.");
654
697
  }
655
- resolvedPath = resolvedPath.replace("{JobId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
698
+ resolvedPath = resolvedPath.replace("{JobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
656
699
  }
657
700
  else {
658
701
  throw new Error("No value provided for input HTTP label: JobId.");
@@ -680,7 +723,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
680
723
  if (labelValue.length <= 0) {
681
724
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
682
725
  }
683
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
726
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
684
727
  }
685
728
  else {
686
729
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -710,7 +753,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
710
753
  if (labelValue.length <= 0) {
711
754
  throw new Error("Empty value provided for input HTTP label: ResourceArn.");
712
755
  }
713
- resolvedPath = resolvedPath.replace("{ResourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
756
+ resolvedPath = resolvedPath.replace("{ResourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
714
757
  }
715
758
  else {
716
759
  throw new Error("No value provided for input HTTP label: ResourceArn.");
@@ -743,7 +786,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
743
786
  if (labelValue.length <= 0) {
744
787
  throw new Error("Empty value provided for input HTTP label: AssetId.");
745
788
  }
746
- resolvedPath = resolvedPath.replace("{AssetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
789
+ resolvedPath = resolvedPath.replace("{AssetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
747
790
  }
748
791
  else {
749
792
  throw new Error("No value provided for input HTTP label: AssetId.");
@@ -753,7 +796,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
753
796
  if (labelValue.length <= 0) {
754
797
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
755
798
  }
756
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
799
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
757
800
  }
758
801
  else {
759
802
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -763,7 +806,7 @@ const serializeAws_restJson1UpdateAssetCommand = async (input, context) => {
763
806
  if (labelValue.length <= 0) {
764
807
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
765
808
  }
766
- resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
809
+ resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
767
810
  }
768
811
  else {
769
812
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -794,7 +837,7 @@ const serializeAws_restJson1UpdateDataSetCommand = async (input, context) => {
794
837
  if (labelValue.length <= 0) {
795
838
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
796
839
  }
797
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
840
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
798
841
  }
799
842
  else {
800
843
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -826,7 +869,7 @@ const serializeAws_restJson1UpdateEventActionCommand = async (input, context) =>
826
869
  if (labelValue.length <= 0) {
827
870
  throw new Error("Empty value provided for input HTTP label: EventActionId.");
828
871
  }
829
- resolvedPath = resolvedPath.replace("{EventActionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
872
+ resolvedPath = resolvedPath.replace("{EventActionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
830
873
  }
831
874
  else {
832
875
  throw new Error("No value provided for input HTTP label: EventActionId.");
@@ -859,7 +902,7 @@ const serializeAws_restJson1UpdateRevisionCommand = async (input, context) => {
859
902
  if (labelValue.length <= 0) {
860
903
  throw new Error("Empty value provided for input HTTP label: DataSetId.");
861
904
  }
862
- resolvedPath = resolvedPath.replace("{DataSetId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
905
+ resolvedPath = resolvedPath.replace("{DataSetId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
863
906
  }
864
907
  else {
865
908
  throw new Error("No value provided for input HTTP label: DataSetId.");
@@ -869,7 +912,7 @@ const serializeAws_restJson1UpdateRevisionCommand = async (input, context) => {
869
912
  if (labelValue.length <= 0) {
870
913
  throw new Error("Empty value provided for input HTTP label: RevisionId.");
871
914
  }
872
- resolvedPath = resolvedPath.replace("{RevisionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
915
+ resolvedPath = resolvedPath.replace("{RevisionId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
873
916
  }
874
917
  else {
875
918
  throw new Error("No value provided for input HTTP label: RevisionId.");
@@ -932,7 +975,7 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
932
975
  $fault: "client",
933
976
  $metadata: deserializeMetadata(output),
934
977
  });
935
- throw smithy_client_1.decorateServiceException(response, parsedBody);
978
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
936
979
  }
937
980
  };
938
981
  const deserializeAws_restJson1CreateDataSetCommand = async (output, context) => {
@@ -953,39 +996,39 @@ const deserializeAws_restJson1CreateDataSetCommand = async (output, context) =>
953
996
  Tags: undefined,
954
997
  UpdatedAt: undefined,
955
998
  };
956
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
999
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
957
1000
  if (data.Arn !== undefined && data.Arn !== null) {
958
- contents.Arn = smithy_client_1.expectString(data.Arn);
1001
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
959
1002
  }
960
1003
  if (data.AssetType !== undefined && data.AssetType !== null) {
961
- contents.AssetType = smithy_client_1.expectString(data.AssetType);
1004
+ contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
962
1005
  }
963
1006
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
964
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1007
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
965
1008
  }
966
1009
  if (data.Description !== undefined && data.Description !== null) {
967
- contents.Description = smithy_client_1.expectString(data.Description);
1010
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
968
1011
  }
969
1012
  if (data.Id !== undefined && data.Id !== null) {
970
- contents.Id = smithy_client_1.expectString(data.Id);
1013
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
971
1014
  }
972
1015
  if (data.Name !== undefined && data.Name !== null) {
973
- contents.Name = smithy_client_1.expectString(data.Name);
1016
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
974
1017
  }
975
1018
  if (data.Origin !== undefined && data.Origin !== null) {
976
- contents.Origin = smithy_client_1.expectString(data.Origin);
1019
+ contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
977
1020
  }
978
1021
  if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
979
1022
  contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
980
1023
  }
981
1024
  if (data.SourceId !== undefined && data.SourceId !== null) {
982
- contents.SourceId = smithy_client_1.expectString(data.SourceId);
1025
+ contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
983
1026
  }
984
1027
  if (data.Tags !== undefined && data.Tags !== null) {
985
1028
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
986
1029
  }
987
1030
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
988
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1031
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
989
1032
  }
990
1033
  return Promise.resolve(contents);
991
1034
  };
@@ -1021,7 +1064,7 @@ const deserializeAws_restJson1CreateDataSetCommandError = async (output, context
1021
1064
  $fault: "client",
1022
1065
  $metadata: deserializeMetadata(output),
1023
1066
  });
1024
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1067
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1025
1068
  }
1026
1069
  };
1027
1070
  const deserializeAws_restJson1CreateEventActionCommand = async (output, context) => {
@@ -1037,24 +1080,24 @@ const deserializeAws_restJson1CreateEventActionCommand = async (output, context)
1037
1080
  Id: undefined,
1038
1081
  UpdatedAt: undefined,
1039
1082
  };
1040
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1083
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1041
1084
  if (data.Action !== undefined && data.Action !== null) {
1042
1085
  contents.Action = deserializeAws_restJson1Action(data.Action, context);
1043
1086
  }
1044
1087
  if (data.Arn !== undefined && data.Arn !== null) {
1045
- contents.Arn = smithy_client_1.expectString(data.Arn);
1088
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1046
1089
  }
1047
1090
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1048
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1091
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
1049
1092
  }
1050
1093
  if (data.Event !== undefined && data.Event !== null) {
1051
1094
  contents.Event = deserializeAws_restJson1Event(data.Event, context);
1052
1095
  }
1053
1096
  if (data.Id !== undefined && data.Id !== null) {
1054
- contents.Id = smithy_client_1.expectString(data.Id);
1097
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
1055
1098
  }
1056
1099
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1057
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1100
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
1058
1101
  }
1059
1102
  return Promise.resolve(contents);
1060
1103
  };
@@ -1090,7 +1133,7 @@ const deserializeAws_restJson1CreateEventActionCommandError = async (output, con
1090
1133
  $fault: "client",
1091
1134
  $metadata: deserializeMetadata(output),
1092
1135
  });
1093
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1136
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1094
1137
  }
1095
1138
  };
1096
1139
  const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
@@ -1108,12 +1151,12 @@ const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
1108
1151
  Type: undefined,
1109
1152
  UpdatedAt: undefined,
1110
1153
  };
1111
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1154
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1112
1155
  if (data.Arn !== undefined && data.Arn !== null) {
1113
- contents.Arn = smithy_client_1.expectString(data.Arn);
1156
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1114
1157
  }
1115
1158
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1116
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1159
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
1117
1160
  }
1118
1161
  if (data.Details !== undefined && data.Details !== null) {
1119
1162
  contents.Details = deserializeAws_restJson1ResponseDetails(data.Details, context);
@@ -1122,16 +1165,16 @@ const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
1122
1165
  contents.Errors = deserializeAws_restJson1ListOfJobError(data.Errors, context);
1123
1166
  }
1124
1167
  if (data.Id !== undefined && data.Id !== null) {
1125
- contents.Id = smithy_client_1.expectString(data.Id);
1168
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
1126
1169
  }
1127
1170
  if (data.State !== undefined && data.State !== null) {
1128
- contents.State = smithy_client_1.expectString(data.State);
1171
+ contents.State = (0, smithy_client_1.expectString)(data.State);
1129
1172
  }
1130
1173
  if (data.Type !== undefined && data.Type !== null) {
1131
- contents.Type = smithy_client_1.expectString(data.Type);
1174
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
1132
1175
  }
1133
1176
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1134
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1177
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
1135
1178
  }
1136
1179
  return Promise.resolve(contents);
1137
1180
  };
@@ -1148,6 +1191,9 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
1148
1191
  case "AccessDeniedException":
1149
1192
  case "com.amazonaws.dataexchange#AccessDeniedException":
1150
1193
  throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1194
+ case "ConflictException":
1195
+ case "com.amazonaws.dataexchange#ConflictException":
1196
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
1151
1197
  case "InternalServerException":
1152
1198
  case "com.amazonaws.dataexchange#InternalServerException":
1153
1199
  throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
@@ -1167,7 +1213,7 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
1167
1213
  $fault: "client",
1168
1214
  $metadata: deserializeMetadata(output),
1169
1215
  });
1170
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1216
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1171
1217
  }
1172
1218
  };
1173
1219
  const deserializeAws_restJson1CreateRevisionCommand = async (output, context) => {
@@ -1182,37 +1228,49 @@ const deserializeAws_restJson1CreateRevisionCommand = async (output, context) =>
1182
1228
  DataSetId: undefined,
1183
1229
  Finalized: undefined,
1184
1230
  Id: undefined,
1231
+ RevocationComment: undefined,
1232
+ Revoked: undefined,
1233
+ RevokedAt: undefined,
1185
1234
  SourceId: undefined,
1186
1235
  Tags: undefined,
1187
1236
  UpdatedAt: undefined,
1188
1237
  };
1189
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1238
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1190
1239
  if (data.Arn !== undefined && data.Arn !== null) {
1191
- contents.Arn = smithy_client_1.expectString(data.Arn);
1240
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1192
1241
  }
1193
1242
  if (data.Comment !== undefined && data.Comment !== null) {
1194
- contents.Comment = smithy_client_1.expectString(data.Comment);
1243
+ contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
1195
1244
  }
1196
1245
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1197
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1246
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
1198
1247
  }
1199
1248
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
1200
- contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
1249
+ contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
1201
1250
  }
1202
1251
  if (data.Finalized !== undefined && data.Finalized !== null) {
1203
- contents.Finalized = smithy_client_1.expectBoolean(data.Finalized);
1252
+ contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
1204
1253
  }
1205
1254
  if (data.Id !== undefined && data.Id !== null) {
1206
- contents.Id = smithy_client_1.expectString(data.Id);
1255
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
1256
+ }
1257
+ if (data.RevocationComment !== undefined && data.RevocationComment !== null) {
1258
+ contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
1259
+ }
1260
+ if (data.Revoked !== undefined && data.Revoked !== null) {
1261
+ contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
1262
+ }
1263
+ if (data.RevokedAt !== undefined && data.RevokedAt !== null) {
1264
+ contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.RevokedAt));
1207
1265
  }
1208
1266
  if (data.SourceId !== undefined && data.SourceId !== null) {
1209
- contents.SourceId = smithy_client_1.expectString(data.SourceId);
1267
+ contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
1210
1268
  }
1211
1269
  if (data.Tags !== undefined && data.Tags !== null) {
1212
1270
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
1213
1271
  }
1214
1272
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1215
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1273
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
1216
1274
  }
1217
1275
  return Promise.resolve(contents);
1218
1276
  };
@@ -1248,7 +1306,7 @@ const deserializeAws_restJson1CreateRevisionCommandError = async (output, contex
1248
1306
  $fault: "client",
1249
1307
  $metadata: deserializeMetadata(output),
1250
1308
  });
1251
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1309
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1252
1310
  }
1253
1311
  };
1254
1312
  const deserializeAws_restJson1DeleteAssetCommand = async (output, context) => {
@@ -1296,7 +1354,7 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
1296
1354
  $fault: "client",
1297
1355
  $metadata: deserializeMetadata(output),
1298
1356
  });
1299
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1357
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1300
1358
  }
1301
1359
  };
1302
1360
  const deserializeAws_restJson1DeleteDataSetCommand = async (output, context) => {
@@ -1344,7 +1402,7 @@ const deserializeAws_restJson1DeleteDataSetCommandError = async (output, context
1344
1402
  $fault: "client",
1345
1403
  $metadata: deserializeMetadata(output),
1346
1404
  });
1347
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1405
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1348
1406
  }
1349
1407
  };
1350
1408
  const deserializeAws_restJson1DeleteEventActionCommand = async (output, context) => {
@@ -1386,7 +1444,7 @@ const deserializeAws_restJson1DeleteEventActionCommandError = async (output, con
1386
1444
  $fault: "client",
1387
1445
  $metadata: deserializeMetadata(output),
1388
1446
  });
1389
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1447
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1390
1448
  }
1391
1449
  };
1392
1450
  const deserializeAws_restJson1DeleteRevisionCommand = async (output, context) => {
@@ -1434,7 +1492,7 @@ const deserializeAws_restJson1DeleteRevisionCommandError = async (output, contex
1434
1492
  $fault: "client",
1435
1493
  $metadata: deserializeMetadata(output),
1436
1494
  });
1437
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1495
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1438
1496
  }
1439
1497
  };
1440
1498
  const deserializeAws_restJson1GetAssetCommand = async (output, context) => {
@@ -1454,36 +1512,36 @@ const deserializeAws_restJson1GetAssetCommand = async (output, context) => {
1454
1512
  SourceId: undefined,
1455
1513
  UpdatedAt: undefined,
1456
1514
  };
1457
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1515
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1458
1516
  if (data.Arn !== undefined && data.Arn !== null) {
1459
- contents.Arn = smithy_client_1.expectString(data.Arn);
1517
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1460
1518
  }
1461
1519
  if (data.AssetDetails !== undefined && data.AssetDetails !== null) {
1462
1520
  contents.AssetDetails = deserializeAws_restJson1AssetDetails(data.AssetDetails, context);
1463
1521
  }
1464
1522
  if (data.AssetType !== undefined && data.AssetType !== null) {
1465
- contents.AssetType = smithy_client_1.expectString(data.AssetType);
1523
+ contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
1466
1524
  }
1467
1525
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1468
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1526
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
1469
1527
  }
1470
1528
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
1471
- contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
1529
+ contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
1472
1530
  }
1473
1531
  if (data.Id !== undefined && data.Id !== null) {
1474
- contents.Id = smithy_client_1.expectString(data.Id);
1532
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
1475
1533
  }
1476
1534
  if (data.Name !== undefined && data.Name !== null) {
1477
- contents.Name = smithy_client_1.expectString(data.Name);
1535
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
1478
1536
  }
1479
1537
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
1480
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
1538
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
1481
1539
  }
1482
1540
  if (data.SourceId !== undefined && data.SourceId !== null) {
1483
- contents.SourceId = smithy_client_1.expectString(data.SourceId);
1541
+ contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
1484
1542
  }
1485
1543
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1486
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1544
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
1487
1545
  }
1488
1546
  return Promise.resolve(contents);
1489
1547
  };
@@ -1516,7 +1574,7 @@ const deserializeAws_restJson1GetAssetCommandError = async (output, context) =>
1516
1574
  $fault: "client",
1517
1575
  $metadata: deserializeMetadata(output),
1518
1576
  });
1519
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1577
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1520
1578
  }
1521
1579
  };
1522
1580
  const deserializeAws_restJson1GetDataSetCommand = async (output, context) => {
@@ -1537,39 +1595,39 @@ const deserializeAws_restJson1GetDataSetCommand = async (output, context) => {
1537
1595
  Tags: undefined,
1538
1596
  UpdatedAt: undefined,
1539
1597
  };
1540
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1598
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1541
1599
  if (data.Arn !== undefined && data.Arn !== null) {
1542
- contents.Arn = smithy_client_1.expectString(data.Arn);
1600
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1543
1601
  }
1544
1602
  if (data.AssetType !== undefined && data.AssetType !== null) {
1545
- contents.AssetType = smithy_client_1.expectString(data.AssetType);
1603
+ contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
1546
1604
  }
1547
1605
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1548
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1606
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
1549
1607
  }
1550
1608
  if (data.Description !== undefined && data.Description !== null) {
1551
- contents.Description = smithy_client_1.expectString(data.Description);
1609
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
1552
1610
  }
1553
1611
  if (data.Id !== undefined && data.Id !== null) {
1554
- contents.Id = smithy_client_1.expectString(data.Id);
1612
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
1555
1613
  }
1556
1614
  if (data.Name !== undefined && data.Name !== null) {
1557
- contents.Name = smithy_client_1.expectString(data.Name);
1615
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
1558
1616
  }
1559
1617
  if (data.Origin !== undefined && data.Origin !== null) {
1560
- contents.Origin = smithy_client_1.expectString(data.Origin);
1618
+ contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
1561
1619
  }
1562
1620
  if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
1563
1621
  contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
1564
1622
  }
1565
1623
  if (data.SourceId !== undefined && data.SourceId !== null) {
1566
- contents.SourceId = smithy_client_1.expectString(data.SourceId);
1624
+ contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
1567
1625
  }
1568
1626
  if (data.Tags !== undefined && data.Tags !== null) {
1569
1627
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
1570
1628
  }
1571
1629
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1572
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1630
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
1573
1631
  }
1574
1632
  return Promise.resolve(contents);
1575
1633
  };
@@ -1602,7 +1660,7 @@ const deserializeAws_restJson1GetDataSetCommandError = async (output, context) =
1602
1660
  $fault: "client",
1603
1661
  $metadata: deserializeMetadata(output),
1604
1662
  });
1605
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1663
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1606
1664
  }
1607
1665
  };
1608
1666
  const deserializeAws_restJson1GetEventActionCommand = async (output, context) => {
@@ -1618,24 +1676,24 @@ const deserializeAws_restJson1GetEventActionCommand = async (output, context) =>
1618
1676
  Id: undefined,
1619
1677
  UpdatedAt: undefined,
1620
1678
  };
1621
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1679
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1622
1680
  if (data.Action !== undefined && data.Action !== null) {
1623
1681
  contents.Action = deserializeAws_restJson1Action(data.Action, context);
1624
1682
  }
1625
1683
  if (data.Arn !== undefined && data.Arn !== null) {
1626
- contents.Arn = smithy_client_1.expectString(data.Arn);
1684
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1627
1685
  }
1628
1686
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1629
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1687
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
1630
1688
  }
1631
1689
  if (data.Event !== undefined && data.Event !== null) {
1632
1690
  contents.Event = deserializeAws_restJson1Event(data.Event, context);
1633
1691
  }
1634
1692
  if (data.Id !== undefined && data.Id !== null) {
1635
- contents.Id = smithy_client_1.expectString(data.Id);
1693
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
1636
1694
  }
1637
1695
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1638
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1696
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
1639
1697
  }
1640
1698
  return Promise.resolve(contents);
1641
1699
  };
@@ -1668,7 +1726,7 @@ const deserializeAws_restJson1GetEventActionCommandError = async (output, contex
1668
1726
  $fault: "client",
1669
1727
  $metadata: deserializeMetadata(output),
1670
1728
  });
1671
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1729
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1672
1730
  }
1673
1731
  };
1674
1732
  const deserializeAws_restJson1GetJobCommand = async (output, context) => {
@@ -1686,12 +1744,12 @@ const deserializeAws_restJson1GetJobCommand = async (output, context) => {
1686
1744
  Type: undefined,
1687
1745
  UpdatedAt: undefined,
1688
1746
  };
1689
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1747
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1690
1748
  if (data.Arn !== undefined && data.Arn !== null) {
1691
- contents.Arn = smithy_client_1.expectString(data.Arn);
1749
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1692
1750
  }
1693
1751
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1694
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1752
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
1695
1753
  }
1696
1754
  if (data.Details !== undefined && data.Details !== null) {
1697
1755
  contents.Details = deserializeAws_restJson1ResponseDetails(data.Details, context);
@@ -1700,16 +1758,16 @@ const deserializeAws_restJson1GetJobCommand = async (output, context) => {
1700
1758
  contents.Errors = deserializeAws_restJson1ListOfJobError(data.Errors, context);
1701
1759
  }
1702
1760
  if (data.Id !== undefined && data.Id !== null) {
1703
- contents.Id = smithy_client_1.expectString(data.Id);
1761
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
1704
1762
  }
1705
1763
  if (data.State !== undefined && data.State !== null) {
1706
- contents.State = smithy_client_1.expectString(data.State);
1764
+ contents.State = (0, smithy_client_1.expectString)(data.State);
1707
1765
  }
1708
1766
  if (data.Type !== undefined && data.Type !== null) {
1709
- contents.Type = smithy_client_1.expectString(data.Type);
1767
+ contents.Type = (0, smithy_client_1.expectString)(data.Type);
1710
1768
  }
1711
1769
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1712
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1770
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
1713
1771
  }
1714
1772
  return Promise.resolve(contents);
1715
1773
  };
@@ -1742,7 +1800,7 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
1742
1800
  $fault: "client",
1743
1801
  $metadata: deserializeMetadata(output),
1744
1802
  });
1745
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1803
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1746
1804
  }
1747
1805
  };
1748
1806
  const deserializeAws_restJson1GetRevisionCommand = async (output, context) => {
@@ -1757,37 +1815,49 @@ const deserializeAws_restJson1GetRevisionCommand = async (output, context) => {
1757
1815
  DataSetId: undefined,
1758
1816
  Finalized: undefined,
1759
1817
  Id: undefined,
1818
+ RevocationComment: undefined,
1819
+ Revoked: undefined,
1820
+ RevokedAt: undefined,
1760
1821
  SourceId: undefined,
1761
1822
  Tags: undefined,
1762
1823
  UpdatedAt: undefined,
1763
1824
  };
1764
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1825
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1765
1826
  if (data.Arn !== undefined && data.Arn !== null) {
1766
- contents.Arn = smithy_client_1.expectString(data.Arn);
1827
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
1767
1828
  }
1768
1829
  if (data.Comment !== undefined && data.Comment !== null) {
1769
- contents.Comment = smithy_client_1.expectString(data.Comment);
1830
+ contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
1770
1831
  }
1771
1832
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1772
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
1833
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
1773
1834
  }
1774
1835
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
1775
- contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
1836
+ contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
1776
1837
  }
1777
1838
  if (data.Finalized !== undefined && data.Finalized !== null) {
1778
- contents.Finalized = smithy_client_1.expectBoolean(data.Finalized);
1839
+ contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
1779
1840
  }
1780
1841
  if (data.Id !== undefined && data.Id !== null) {
1781
- contents.Id = smithy_client_1.expectString(data.Id);
1842
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
1843
+ }
1844
+ if (data.RevocationComment !== undefined && data.RevocationComment !== null) {
1845
+ contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
1846
+ }
1847
+ if (data.Revoked !== undefined && data.Revoked !== null) {
1848
+ contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
1849
+ }
1850
+ if (data.RevokedAt !== undefined && data.RevokedAt !== null) {
1851
+ contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.RevokedAt));
1782
1852
  }
1783
1853
  if (data.SourceId !== undefined && data.SourceId !== null) {
1784
- contents.SourceId = smithy_client_1.expectString(data.SourceId);
1854
+ contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
1785
1855
  }
1786
1856
  if (data.Tags !== undefined && data.Tags !== null) {
1787
1857
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
1788
1858
  }
1789
1859
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1790
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
1860
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
1791
1861
  }
1792
1862
  return Promise.resolve(contents);
1793
1863
  };
@@ -1820,7 +1890,7 @@ const deserializeAws_restJson1GetRevisionCommandError = async (output, context)
1820
1890
  $fault: "client",
1821
1891
  $metadata: deserializeMetadata(output),
1822
1892
  });
1823
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1893
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1824
1894
  }
1825
1895
  };
1826
1896
  const deserializeAws_restJson1ListDataSetRevisionsCommand = async (output, context) => {
@@ -1832,9 +1902,9 @@ const deserializeAws_restJson1ListDataSetRevisionsCommand = async (output, conte
1832
1902
  NextToken: undefined,
1833
1903
  Revisions: undefined,
1834
1904
  };
1835
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1905
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1836
1906
  if (data.NextToken !== undefined && data.NextToken !== null) {
1837
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1907
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1838
1908
  }
1839
1909
  if (data.Revisions !== undefined && data.Revisions !== null) {
1840
1910
  contents.Revisions = deserializeAws_restJson1ListOfRevisionEntry(data.Revisions, context);
@@ -1870,7 +1940,7 @@ const deserializeAws_restJson1ListDataSetRevisionsCommandError = async (output,
1870
1940
  $fault: "client",
1871
1941
  $metadata: deserializeMetadata(output),
1872
1942
  });
1873
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1943
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1874
1944
  }
1875
1945
  };
1876
1946
  const deserializeAws_restJson1ListDataSetsCommand = async (output, context) => {
@@ -1882,12 +1952,12 @@ const deserializeAws_restJson1ListDataSetsCommand = async (output, context) => {
1882
1952
  DataSets: undefined,
1883
1953
  NextToken: undefined,
1884
1954
  };
1885
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1955
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1886
1956
  if (data.DataSets !== undefined && data.DataSets !== null) {
1887
1957
  contents.DataSets = deserializeAws_restJson1ListOfDataSetEntry(data.DataSets, context);
1888
1958
  }
1889
1959
  if (data.NextToken !== undefined && data.NextToken !== null) {
1890
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
1960
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1891
1961
  }
1892
1962
  return Promise.resolve(contents);
1893
1963
  };
@@ -1920,7 +1990,7 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
1920
1990
  $fault: "client",
1921
1991
  $metadata: deserializeMetadata(output),
1922
1992
  });
1923
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1993
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1924
1994
  }
1925
1995
  };
1926
1996
  const deserializeAws_restJson1ListEventActionsCommand = async (output, context) => {
@@ -1932,12 +2002,12 @@ const deserializeAws_restJson1ListEventActionsCommand = async (output, context)
1932
2002
  EventActions: undefined,
1933
2003
  NextToken: undefined,
1934
2004
  };
1935
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2005
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1936
2006
  if (data.EventActions !== undefined && data.EventActions !== null) {
1937
2007
  contents.EventActions = deserializeAws_restJson1ListOfEventActionEntry(data.EventActions, context);
1938
2008
  }
1939
2009
  if (data.NextToken !== undefined && data.NextToken !== null) {
1940
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2010
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1941
2011
  }
1942
2012
  return Promise.resolve(contents);
1943
2013
  };
@@ -1970,7 +2040,7 @@ const deserializeAws_restJson1ListEventActionsCommandError = async (output, cont
1970
2040
  $fault: "client",
1971
2041
  $metadata: deserializeMetadata(output),
1972
2042
  });
1973
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2043
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1974
2044
  }
1975
2045
  };
1976
2046
  const deserializeAws_restJson1ListJobsCommand = async (output, context) => {
@@ -1982,12 +2052,12 @@ const deserializeAws_restJson1ListJobsCommand = async (output, context) => {
1982
2052
  Jobs: undefined,
1983
2053
  NextToken: undefined,
1984
2054
  };
1985
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2055
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1986
2056
  if (data.Jobs !== undefined && data.Jobs !== null) {
1987
2057
  contents.Jobs = deserializeAws_restJson1ListOfJobEntry(data.Jobs, context);
1988
2058
  }
1989
2059
  if (data.NextToken !== undefined && data.NextToken !== null) {
1990
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2060
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1991
2061
  }
1992
2062
  return Promise.resolve(contents);
1993
2063
  };
@@ -2020,7 +2090,7 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
2020
2090
  $fault: "client",
2021
2091
  $metadata: deserializeMetadata(output),
2022
2092
  });
2023
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2093
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2024
2094
  }
2025
2095
  };
2026
2096
  const deserializeAws_restJson1ListRevisionAssetsCommand = async (output, context) => {
@@ -2032,12 +2102,12 @@ const deserializeAws_restJson1ListRevisionAssetsCommand = async (output, context
2032
2102
  Assets: undefined,
2033
2103
  NextToken: undefined,
2034
2104
  };
2035
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2105
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2036
2106
  if (data.Assets !== undefined && data.Assets !== null) {
2037
2107
  contents.Assets = deserializeAws_restJson1ListOfAssetEntry(data.Assets, context);
2038
2108
  }
2039
2109
  if (data.NextToken !== undefined && data.NextToken !== null) {
2040
- contents.NextToken = smithy_client_1.expectString(data.NextToken);
2110
+ contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
2041
2111
  }
2042
2112
  return Promise.resolve(contents);
2043
2113
  };
@@ -2070,7 +2140,7 @@ const deserializeAws_restJson1ListRevisionAssetsCommandError = async (output, co
2070
2140
  $fault: "client",
2071
2141
  $metadata: deserializeMetadata(output),
2072
2142
  });
2073
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2143
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2074
2144
  }
2075
2145
  };
2076
2146
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -2081,7 +2151,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
2081
2151
  $metadata: deserializeMetadata(output),
2082
2152
  Tags: undefined,
2083
2153
  };
2084
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2154
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2085
2155
  if (data.tags !== undefined && data.tags !== null) {
2086
2156
  contents.Tags = deserializeAws_restJson1MapOf__string(data.tags, context);
2087
2157
  }
@@ -2104,7 +2174,99 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
2104
2174
  $fault: "client",
2105
2175
  $metadata: deserializeMetadata(output),
2106
2176
  });
2107
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2177
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2178
+ }
2179
+ };
2180
+ const deserializeAws_restJson1RevokeRevisionCommand = async (output, context) => {
2181
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2182
+ return deserializeAws_restJson1RevokeRevisionCommandError(output, context);
2183
+ }
2184
+ const contents = {
2185
+ $metadata: deserializeMetadata(output),
2186
+ Arn: undefined,
2187
+ Comment: undefined,
2188
+ CreatedAt: undefined,
2189
+ DataSetId: undefined,
2190
+ Finalized: undefined,
2191
+ Id: undefined,
2192
+ RevocationComment: undefined,
2193
+ Revoked: undefined,
2194
+ RevokedAt: undefined,
2195
+ SourceId: undefined,
2196
+ UpdatedAt: undefined,
2197
+ };
2198
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2199
+ if (data.Arn !== undefined && data.Arn !== null) {
2200
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2201
+ }
2202
+ if (data.Comment !== undefined && data.Comment !== null) {
2203
+ contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
2204
+ }
2205
+ if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2206
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
2207
+ }
2208
+ if (data.DataSetId !== undefined && data.DataSetId !== null) {
2209
+ contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
2210
+ }
2211
+ if (data.Finalized !== undefined && data.Finalized !== null) {
2212
+ contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
2213
+ }
2214
+ if (data.Id !== undefined && data.Id !== null) {
2215
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
2216
+ }
2217
+ if (data.RevocationComment !== undefined && data.RevocationComment !== null) {
2218
+ contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
2219
+ }
2220
+ if (data.Revoked !== undefined && data.Revoked !== null) {
2221
+ contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
2222
+ }
2223
+ if (data.RevokedAt !== undefined && data.RevokedAt !== null) {
2224
+ contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.RevokedAt));
2225
+ }
2226
+ if (data.SourceId !== undefined && data.SourceId !== null) {
2227
+ contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
2228
+ }
2229
+ if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2230
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
2231
+ }
2232
+ return Promise.resolve(contents);
2233
+ };
2234
+ exports.deserializeAws_restJson1RevokeRevisionCommand = deserializeAws_restJson1RevokeRevisionCommand;
2235
+ const deserializeAws_restJson1RevokeRevisionCommandError = async (output, context) => {
2236
+ const parsedOutput = {
2237
+ ...output,
2238
+ body: await parseBody(output.body, context),
2239
+ };
2240
+ let response;
2241
+ let errorCode = "UnknownError";
2242
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2243
+ switch (errorCode) {
2244
+ case "AccessDeniedException":
2245
+ case "com.amazonaws.dataexchange#AccessDeniedException":
2246
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
2247
+ case "ConflictException":
2248
+ case "com.amazonaws.dataexchange#ConflictException":
2249
+ throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
2250
+ case "InternalServerException":
2251
+ case "com.amazonaws.dataexchange#InternalServerException":
2252
+ throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
2253
+ case "ResourceNotFoundException":
2254
+ case "com.amazonaws.dataexchange#ResourceNotFoundException":
2255
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
2256
+ case "ThrottlingException":
2257
+ case "com.amazonaws.dataexchange#ThrottlingException":
2258
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
2259
+ case "ValidationException":
2260
+ case "com.amazonaws.dataexchange#ValidationException":
2261
+ throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
2262
+ default:
2263
+ const parsedBody = parsedOutput.body;
2264
+ response = new DataExchangeServiceException_1.DataExchangeServiceException({
2265
+ name: parsedBody.code || parsedBody.Code || errorCode,
2266
+ $fault: "client",
2267
+ $metadata: deserializeMetadata(output),
2268
+ });
2269
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2108
2270
  }
2109
2271
  };
2110
2272
  const deserializeAws_restJson1SendApiAssetCommand = async (output, context) => {
@@ -2125,7 +2287,7 @@ const deserializeAws_restJson1SendApiAssetCommand = async (output, context) => {
2125
2287
  }
2126
2288
  });
2127
2289
  const data = await collectBodyString(output.body, context);
2128
- contents.Body = smithy_client_1.expectString(data);
2290
+ contents.Body = (0, smithy_client_1.expectString)(data);
2129
2291
  return Promise.resolve(contents);
2130
2292
  };
2131
2293
  exports.deserializeAws_restJson1SendApiAssetCommand = deserializeAws_restJson1SendApiAssetCommand;
@@ -2160,7 +2322,7 @@ const deserializeAws_restJson1SendApiAssetCommandError = async (output, context)
2160
2322
  $fault: "client",
2161
2323
  $metadata: deserializeMetadata(output),
2162
2324
  });
2163
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2325
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2164
2326
  }
2165
2327
  };
2166
2328
  const deserializeAws_restJson1StartJobCommand = async (output, context) => {
@@ -2208,7 +2370,7 @@ const deserializeAws_restJson1StartJobCommandError = async (output, context) =>
2208
2370
  $fault: "client",
2209
2371
  $metadata: deserializeMetadata(output),
2210
2372
  });
2211
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2373
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2212
2374
  }
2213
2375
  };
2214
2376
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -2238,7 +2400,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
2238
2400
  $fault: "client",
2239
2401
  $metadata: deserializeMetadata(output),
2240
2402
  });
2241
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2403
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2242
2404
  }
2243
2405
  };
2244
2406
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -2268,7 +2430,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
2268
2430
  $fault: "client",
2269
2431
  $metadata: deserializeMetadata(output),
2270
2432
  });
2271
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2433
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2272
2434
  }
2273
2435
  };
2274
2436
  const deserializeAws_restJson1UpdateAssetCommand = async (output, context) => {
@@ -2288,36 +2450,36 @@ const deserializeAws_restJson1UpdateAssetCommand = async (output, context) => {
2288
2450
  SourceId: undefined,
2289
2451
  UpdatedAt: undefined,
2290
2452
  };
2291
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2453
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2292
2454
  if (data.Arn !== undefined && data.Arn !== null) {
2293
- contents.Arn = smithy_client_1.expectString(data.Arn);
2455
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2294
2456
  }
2295
2457
  if (data.AssetDetails !== undefined && data.AssetDetails !== null) {
2296
2458
  contents.AssetDetails = deserializeAws_restJson1AssetDetails(data.AssetDetails, context);
2297
2459
  }
2298
2460
  if (data.AssetType !== undefined && data.AssetType !== null) {
2299
- contents.AssetType = smithy_client_1.expectString(data.AssetType);
2461
+ contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
2300
2462
  }
2301
2463
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2302
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
2464
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
2303
2465
  }
2304
2466
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
2305
- contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
2467
+ contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
2306
2468
  }
2307
2469
  if (data.Id !== undefined && data.Id !== null) {
2308
- contents.Id = smithy_client_1.expectString(data.Id);
2470
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
2309
2471
  }
2310
2472
  if (data.Name !== undefined && data.Name !== null) {
2311
- contents.Name = smithy_client_1.expectString(data.Name);
2473
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
2312
2474
  }
2313
2475
  if (data.RevisionId !== undefined && data.RevisionId !== null) {
2314
- contents.RevisionId = smithy_client_1.expectString(data.RevisionId);
2476
+ contents.RevisionId = (0, smithy_client_1.expectString)(data.RevisionId);
2315
2477
  }
2316
2478
  if (data.SourceId !== undefined && data.SourceId !== null) {
2317
- contents.SourceId = smithy_client_1.expectString(data.SourceId);
2479
+ contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
2318
2480
  }
2319
2481
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2320
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
2482
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
2321
2483
  }
2322
2484
  return Promise.resolve(contents);
2323
2485
  };
@@ -2356,7 +2518,7 @@ const deserializeAws_restJson1UpdateAssetCommandError = async (output, context)
2356
2518
  $fault: "client",
2357
2519
  $metadata: deserializeMetadata(output),
2358
2520
  });
2359
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2521
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2360
2522
  }
2361
2523
  };
2362
2524
  const deserializeAws_restJson1UpdateDataSetCommand = async (output, context) => {
@@ -2376,36 +2538,36 @@ const deserializeAws_restJson1UpdateDataSetCommand = async (output, context) =>
2376
2538
  SourceId: undefined,
2377
2539
  UpdatedAt: undefined,
2378
2540
  };
2379
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2541
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2380
2542
  if (data.Arn !== undefined && data.Arn !== null) {
2381
- contents.Arn = smithy_client_1.expectString(data.Arn);
2543
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2382
2544
  }
2383
2545
  if (data.AssetType !== undefined && data.AssetType !== null) {
2384
- contents.AssetType = smithy_client_1.expectString(data.AssetType);
2546
+ contents.AssetType = (0, smithy_client_1.expectString)(data.AssetType);
2385
2547
  }
2386
2548
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2387
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
2549
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
2388
2550
  }
2389
2551
  if (data.Description !== undefined && data.Description !== null) {
2390
- contents.Description = smithy_client_1.expectString(data.Description);
2552
+ contents.Description = (0, smithy_client_1.expectString)(data.Description);
2391
2553
  }
2392
2554
  if (data.Id !== undefined && data.Id !== null) {
2393
- contents.Id = smithy_client_1.expectString(data.Id);
2555
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
2394
2556
  }
2395
2557
  if (data.Name !== undefined && data.Name !== null) {
2396
- contents.Name = smithy_client_1.expectString(data.Name);
2558
+ contents.Name = (0, smithy_client_1.expectString)(data.Name);
2397
2559
  }
2398
2560
  if (data.Origin !== undefined && data.Origin !== null) {
2399
- contents.Origin = smithy_client_1.expectString(data.Origin);
2561
+ contents.Origin = (0, smithy_client_1.expectString)(data.Origin);
2400
2562
  }
2401
2563
  if (data.OriginDetails !== undefined && data.OriginDetails !== null) {
2402
2564
  contents.OriginDetails = deserializeAws_restJson1OriginDetails(data.OriginDetails, context);
2403
2565
  }
2404
2566
  if (data.SourceId !== undefined && data.SourceId !== null) {
2405
- contents.SourceId = smithy_client_1.expectString(data.SourceId);
2567
+ contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
2406
2568
  }
2407
2569
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2408
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
2570
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
2409
2571
  }
2410
2572
  return Promise.resolve(contents);
2411
2573
  };
@@ -2441,7 +2603,7 @@ const deserializeAws_restJson1UpdateDataSetCommandError = async (output, context
2441
2603
  $fault: "client",
2442
2604
  $metadata: deserializeMetadata(output),
2443
2605
  });
2444
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2606
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2445
2607
  }
2446
2608
  };
2447
2609
  const deserializeAws_restJson1UpdateEventActionCommand = async (output, context) => {
@@ -2457,24 +2619,24 @@ const deserializeAws_restJson1UpdateEventActionCommand = async (output, context)
2457
2619
  Id: undefined,
2458
2620
  UpdatedAt: undefined,
2459
2621
  };
2460
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2622
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2461
2623
  if (data.Action !== undefined && data.Action !== null) {
2462
2624
  contents.Action = deserializeAws_restJson1Action(data.Action, context);
2463
2625
  }
2464
2626
  if (data.Arn !== undefined && data.Arn !== null) {
2465
- contents.Arn = smithy_client_1.expectString(data.Arn);
2627
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2466
2628
  }
2467
2629
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2468
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
2630
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
2469
2631
  }
2470
2632
  if (data.Event !== undefined && data.Event !== null) {
2471
2633
  contents.Event = deserializeAws_restJson1Event(data.Event, context);
2472
2634
  }
2473
2635
  if (data.Id !== undefined && data.Id !== null) {
2474
- contents.Id = smithy_client_1.expectString(data.Id);
2636
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
2475
2637
  }
2476
2638
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2477
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
2639
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
2478
2640
  }
2479
2641
  return Promise.resolve(contents);
2480
2642
  };
@@ -2510,7 +2672,7 @@ const deserializeAws_restJson1UpdateEventActionCommandError = async (output, con
2510
2672
  $fault: "client",
2511
2673
  $metadata: deserializeMetadata(output),
2512
2674
  });
2513
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2675
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2514
2676
  }
2515
2677
  };
2516
2678
  const deserializeAws_restJson1UpdateRevisionCommand = async (output, context) => {
@@ -2525,33 +2687,45 @@ const deserializeAws_restJson1UpdateRevisionCommand = async (output, context) =>
2525
2687
  DataSetId: undefined,
2526
2688
  Finalized: undefined,
2527
2689
  Id: undefined,
2690
+ RevocationComment: undefined,
2691
+ Revoked: undefined,
2692
+ RevokedAt: undefined,
2528
2693
  SourceId: undefined,
2529
2694
  UpdatedAt: undefined,
2530
2695
  };
2531
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2696
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2532
2697
  if (data.Arn !== undefined && data.Arn !== null) {
2533
- contents.Arn = smithy_client_1.expectString(data.Arn);
2698
+ contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
2534
2699
  }
2535
2700
  if (data.Comment !== undefined && data.Comment !== null) {
2536
- contents.Comment = smithy_client_1.expectString(data.Comment);
2701
+ contents.Comment = (0, smithy_client_1.expectString)(data.Comment);
2537
2702
  }
2538
2703
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2539
- contents.CreatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreatedAt));
2704
+ contents.CreatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.CreatedAt));
2540
2705
  }
2541
2706
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
2542
- contents.DataSetId = smithy_client_1.expectString(data.DataSetId);
2707
+ contents.DataSetId = (0, smithy_client_1.expectString)(data.DataSetId);
2543
2708
  }
2544
2709
  if (data.Finalized !== undefined && data.Finalized !== null) {
2545
- contents.Finalized = smithy_client_1.expectBoolean(data.Finalized);
2710
+ contents.Finalized = (0, smithy_client_1.expectBoolean)(data.Finalized);
2546
2711
  }
2547
2712
  if (data.Id !== undefined && data.Id !== null) {
2548
- contents.Id = smithy_client_1.expectString(data.Id);
2713
+ contents.Id = (0, smithy_client_1.expectString)(data.Id);
2714
+ }
2715
+ if (data.RevocationComment !== undefined && data.RevocationComment !== null) {
2716
+ contents.RevocationComment = (0, smithy_client_1.expectString)(data.RevocationComment);
2717
+ }
2718
+ if (data.Revoked !== undefined && data.Revoked !== null) {
2719
+ contents.Revoked = (0, smithy_client_1.expectBoolean)(data.Revoked);
2720
+ }
2721
+ if (data.RevokedAt !== undefined && data.RevokedAt !== null) {
2722
+ contents.RevokedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.RevokedAt));
2549
2723
  }
2550
2724
  if (data.SourceId !== undefined && data.SourceId !== null) {
2551
- contents.SourceId = smithy_client_1.expectString(data.SourceId);
2725
+ contents.SourceId = (0, smithy_client_1.expectString)(data.SourceId);
2552
2726
  }
2553
2727
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2554
- contents.UpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdatedAt));
2728
+ contents.UpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.UpdatedAt));
2555
2729
  }
2556
2730
  return Promise.resolve(contents);
2557
2731
  };
@@ -2590,113 +2764,113 @@ const deserializeAws_restJson1UpdateRevisionCommandError = async (output, contex
2590
2764
  $fault: "client",
2591
2765
  $metadata: deserializeMetadata(output),
2592
2766
  });
2593
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2767
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2594
2768
  }
2595
2769
  };
2596
2770
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
2597
2771
  const contents = {};
2598
2772
  const data = parsedOutput.body;
2599
2773
  if (data.Message !== undefined && data.Message !== null) {
2600
- contents.Message = smithy_client_1.expectString(data.Message);
2774
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2601
2775
  }
2602
2776
  const exception = new models_0_1.AccessDeniedException({
2603
2777
  $metadata: deserializeMetadata(parsedOutput),
2604
2778
  ...contents,
2605
2779
  });
2606
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2780
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2607
2781
  };
2608
2782
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
2609
2783
  const contents = {};
2610
2784
  const data = parsedOutput.body;
2611
2785
  if (data.Message !== undefined && data.Message !== null) {
2612
- contents.Message = smithy_client_1.expectString(data.Message);
2786
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2613
2787
  }
2614
2788
  if (data.ResourceId !== undefined && data.ResourceId !== null) {
2615
- contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
2789
+ contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
2616
2790
  }
2617
2791
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
2618
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
2792
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
2619
2793
  }
2620
2794
  const exception = new models_0_1.ConflictException({
2621
2795
  $metadata: deserializeMetadata(parsedOutput),
2622
2796
  ...contents,
2623
2797
  });
2624
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2798
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2625
2799
  };
2626
2800
  const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
2627
2801
  const contents = {};
2628
2802
  const data = parsedOutput.body;
2629
2803
  if (data.Message !== undefined && data.Message !== null) {
2630
- contents.Message = smithy_client_1.expectString(data.Message);
2804
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2631
2805
  }
2632
2806
  const exception = new models_0_1.InternalServerException({
2633
2807
  $metadata: deserializeMetadata(parsedOutput),
2634
2808
  ...contents,
2635
2809
  });
2636
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2810
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2637
2811
  };
2638
2812
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
2639
2813
  const contents = {};
2640
2814
  const data = parsedOutput.body;
2641
2815
  if (data.Message !== undefined && data.Message !== null) {
2642
- contents.Message = smithy_client_1.expectString(data.Message);
2816
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2643
2817
  }
2644
2818
  if (data.ResourceId !== undefined && data.ResourceId !== null) {
2645
- contents.ResourceId = smithy_client_1.expectString(data.ResourceId);
2819
+ contents.ResourceId = (0, smithy_client_1.expectString)(data.ResourceId);
2646
2820
  }
2647
2821
  if (data.ResourceType !== undefined && data.ResourceType !== null) {
2648
- contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
2822
+ contents.ResourceType = (0, smithy_client_1.expectString)(data.ResourceType);
2649
2823
  }
2650
2824
  const exception = new models_0_1.ResourceNotFoundException({
2651
2825
  $metadata: deserializeMetadata(parsedOutput),
2652
2826
  ...contents,
2653
2827
  });
2654
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2828
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2655
2829
  };
2656
2830
  const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async (parsedOutput, context) => {
2657
2831
  const contents = {};
2658
2832
  const data = parsedOutput.body;
2659
2833
  if (data.LimitName !== undefined && data.LimitName !== null) {
2660
- contents.LimitName = smithy_client_1.expectString(data.LimitName);
2834
+ contents.LimitName = (0, smithy_client_1.expectString)(data.LimitName);
2661
2835
  }
2662
2836
  if (data.LimitValue !== undefined && data.LimitValue !== null) {
2663
- contents.LimitValue = smithy_client_1.limitedParseDouble(data.LimitValue);
2837
+ contents.LimitValue = (0, smithy_client_1.limitedParseDouble)(data.LimitValue);
2664
2838
  }
2665
2839
  if (data.Message !== undefined && data.Message !== null) {
2666
- contents.Message = smithy_client_1.expectString(data.Message);
2840
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2667
2841
  }
2668
2842
  const exception = new models_0_1.ServiceLimitExceededException({
2669
2843
  $metadata: deserializeMetadata(parsedOutput),
2670
2844
  ...contents,
2671
2845
  });
2672
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2846
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2673
2847
  };
2674
2848
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
2675
2849
  const contents = {};
2676
2850
  const data = parsedOutput.body;
2677
2851
  if (data.Message !== undefined && data.Message !== null) {
2678
- contents.Message = smithy_client_1.expectString(data.Message);
2852
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2679
2853
  }
2680
2854
  const exception = new models_0_1.ThrottlingException({
2681
2855
  $metadata: deserializeMetadata(parsedOutput),
2682
2856
  ...contents,
2683
2857
  });
2684
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2858
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2685
2859
  };
2686
2860
  const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
2687
2861
  const contents = {};
2688
2862
  const data = parsedOutput.body;
2689
2863
  if (data.ExceptionCause !== undefined && data.ExceptionCause !== null) {
2690
- contents.ExceptionCause = smithy_client_1.expectString(data.ExceptionCause);
2864
+ contents.ExceptionCause = (0, smithy_client_1.expectString)(data.ExceptionCause);
2691
2865
  }
2692
2866
  if (data.Message !== undefined && data.Message !== null) {
2693
- contents.Message = smithy_client_1.expectString(data.Message);
2867
+ contents.Message = (0, smithy_client_1.expectString)(data.Message);
2694
2868
  }
2695
2869
  const exception = new models_0_1.ValidationException({
2696
2870
  $metadata: deserializeMetadata(parsedOutput),
2697
2871
  ...contents,
2698
2872
  });
2699
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
2873
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2700
2874
  };
2701
2875
  const serializeAws_restJson1Action = (input, context) => {
2702
2876
  return {
@@ -2937,24 +3111,24 @@ const deserializeAws_restJson1Action = (output, context) => {
2937
3111
  };
2938
3112
  const deserializeAws_restJson1ApiGatewayApiAsset = (output, context) => {
2939
3113
  return {
2940
- ApiDescription: smithy_client_1.expectString(output.ApiDescription),
2941
- ApiEndpoint: smithy_client_1.expectString(output.ApiEndpoint),
2942
- ApiId: smithy_client_1.expectString(output.ApiId),
2943
- ApiKey: smithy_client_1.expectString(output.ApiKey),
2944
- ApiName: smithy_client_1.expectString(output.ApiName),
2945
- ApiSpecificationDownloadUrl: smithy_client_1.expectString(output.ApiSpecificationDownloadUrl),
3114
+ ApiDescription: (0, smithy_client_1.expectString)(output.ApiDescription),
3115
+ ApiEndpoint: (0, smithy_client_1.expectString)(output.ApiEndpoint),
3116
+ ApiId: (0, smithy_client_1.expectString)(output.ApiId),
3117
+ ApiKey: (0, smithy_client_1.expectString)(output.ApiKey),
3118
+ ApiName: (0, smithy_client_1.expectString)(output.ApiName),
3119
+ ApiSpecificationDownloadUrl: (0, smithy_client_1.expectString)(output.ApiSpecificationDownloadUrl),
2946
3120
  ApiSpecificationDownloadUrlExpiresAt: output.ApiSpecificationDownloadUrlExpiresAt !== undefined && output.ApiSpecificationDownloadUrlExpiresAt !== null
2947
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.ApiSpecificationDownloadUrlExpiresAt))
3121
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ApiSpecificationDownloadUrlExpiresAt))
2948
3122
  : undefined,
2949
- ProtocolType: smithy_client_1.expectString(output.ProtocolType),
2950
- Stage: smithy_client_1.expectString(output.Stage),
3123
+ ProtocolType: (0, smithy_client_1.expectString)(output.ProtocolType),
3124
+ Stage: (0, smithy_client_1.expectString)(output.Stage),
2951
3125
  };
2952
3126
  };
2953
3127
  const deserializeAws_restJson1AssetDestinationEntry = (output, context) => {
2954
3128
  return {
2955
- AssetId: smithy_client_1.expectString(output.AssetId),
2956
- Bucket: smithy_client_1.expectString(output.Bucket),
2957
- Key: smithy_client_1.expectString(output.Key),
3129
+ AssetId: (0, smithy_client_1.expectString)(output.AssetId),
3130
+ Bucket: (0, smithy_client_1.expectString)(output.Bucket),
3131
+ Key: (0, smithy_client_1.expectString)(output.Key),
2958
3132
  };
2959
3133
  };
2960
3134
  const deserializeAws_restJson1AssetDetails = (output, context) => {
@@ -2972,34 +3146,34 @@ const deserializeAws_restJson1AssetDetails = (output, context) => {
2972
3146
  };
2973
3147
  const deserializeAws_restJson1AssetEntry = (output, context) => {
2974
3148
  return {
2975
- Arn: smithy_client_1.expectString(output.Arn),
3149
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
2976
3150
  AssetDetails: output.AssetDetails !== undefined && output.AssetDetails !== null
2977
3151
  ? deserializeAws_restJson1AssetDetails(output.AssetDetails, context)
2978
3152
  : undefined,
2979
- AssetType: smithy_client_1.expectString(output.AssetType),
3153
+ AssetType: (0, smithy_client_1.expectString)(output.AssetType),
2980
3154
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
2981
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
3155
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt))
2982
3156
  : undefined,
2983
- DataSetId: smithy_client_1.expectString(output.DataSetId),
2984
- Id: smithy_client_1.expectString(output.Id),
2985
- Name: smithy_client_1.expectString(output.Name),
2986
- RevisionId: smithy_client_1.expectString(output.RevisionId),
2987
- SourceId: smithy_client_1.expectString(output.SourceId),
3157
+ DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3158
+ Id: (0, smithy_client_1.expectString)(output.Id),
3159
+ Name: (0, smithy_client_1.expectString)(output.Name),
3160
+ RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3161
+ SourceId: (0, smithy_client_1.expectString)(output.SourceId),
2988
3162
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
2989
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
3163
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt))
2990
3164
  : undefined,
2991
3165
  };
2992
3166
  };
2993
3167
  const deserializeAws_restJson1AssetSourceEntry = (output, context) => {
2994
3168
  return {
2995
- Bucket: smithy_client_1.expectString(output.Bucket),
2996
- Key: smithy_client_1.expectString(output.Key),
3169
+ Bucket: (0, smithy_client_1.expectString)(output.Bucket),
3170
+ Key: (0, smithy_client_1.expectString)(output.Key),
2997
3171
  };
2998
3172
  };
2999
3173
  const deserializeAws_restJson1AutoExportRevisionDestinationEntry = (output, context) => {
3000
3174
  return {
3001
- Bucket: smithy_client_1.expectString(output.Bucket),
3002
- KeyPattern: smithy_client_1.expectString(output.KeyPattern),
3175
+ Bucket: (0, smithy_client_1.expectString)(output.Bucket),
3176
+ KeyPattern: (0, smithy_client_1.expectString)(output.KeyPattern),
3003
3177
  };
3004
3178
  };
3005
3179
  const deserializeAws_restJson1AutoExportRevisionToS3RequestDetails = (output, context) => {
@@ -3014,21 +3188,21 @@ const deserializeAws_restJson1AutoExportRevisionToS3RequestDetails = (output, co
3014
3188
  };
3015
3189
  const deserializeAws_restJson1DataSetEntry = (output, context) => {
3016
3190
  return {
3017
- Arn: smithy_client_1.expectString(output.Arn),
3018
- AssetType: smithy_client_1.expectString(output.AssetType),
3191
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
3192
+ AssetType: (0, smithy_client_1.expectString)(output.AssetType),
3019
3193
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3020
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
3194
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt))
3021
3195
  : undefined,
3022
- Description: smithy_client_1.expectString(output.Description),
3023
- Id: smithy_client_1.expectString(output.Id),
3024
- Name: smithy_client_1.expectString(output.Name),
3025
- Origin: smithy_client_1.expectString(output.Origin),
3196
+ Description: (0, smithy_client_1.expectString)(output.Description),
3197
+ Id: (0, smithy_client_1.expectString)(output.Id),
3198
+ Name: (0, smithy_client_1.expectString)(output.Name),
3199
+ Origin: (0, smithy_client_1.expectString)(output.Origin),
3026
3200
  OriginDetails: output.OriginDetails !== undefined && output.OriginDetails !== null
3027
3201
  ? deserializeAws_restJson1OriginDetails(output.OriginDetails, context)
3028
3202
  : undefined,
3029
- SourceId: smithy_client_1.expectString(output.SourceId),
3203
+ SourceId: (0, smithy_client_1.expectString)(output.SourceId),
3030
3204
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3031
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
3205
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt))
3032
3206
  : undefined,
3033
3207
  };
3034
3208
  };
@@ -3055,16 +3229,16 @@ const deserializeAws_restJson1EventActionEntry = (output, context) => {
3055
3229
  Action: output.Action !== undefined && output.Action !== null
3056
3230
  ? deserializeAws_restJson1Action(output.Action, context)
3057
3231
  : undefined,
3058
- Arn: smithy_client_1.expectString(output.Arn),
3232
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
3059
3233
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3060
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
3234
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt))
3061
3235
  : undefined,
3062
3236
  Event: output.Event !== undefined && output.Event !== null
3063
3237
  ? deserializeAws_restJson1Event(output.Event, context)
3064
3238
  : undefined,
3065
- Id: smithy_client_1.expectString(output.Id),
3239
+ Id: (0, smithy_client_1.expectString)(output.Id),
3066
3240
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3067
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
3241
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt))
3068
3242
  : undefined,
3069
3243
  };
3070
3244
  };
@@ -3073,31 +3247,31 @@ const deserializeAws_restJson1ExportAssetsToS3ResponseDetails = (output, context
3073
3247
  AssetDestinations: output.AssetDestinations !== undefined && output.AssetDestinations !== null
3074
3248
  ? deserializeAws_restJson1ListOfAssetDestinationEntry(output.AssetDestinations, context)
3075
3249
  : undefined,
3076
- DataSetId: smithy_client_1.expectString(output.DataSetId),
3250
+ DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3077
3251
  Encryption: output.Encryption !== undefined && output.Encryption !== null
3078
3252
  ? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
3079
3253
  : undefined,
3080
- RevisionId: smithy_client_1.expectString(output.RevisionId),
3254
+ RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3081
3255
  };
3082
3256
  };
3083
3257
  const deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails = (output, context) => {
3084
3258
  return {
3085
- AssetId: smithy_client_1.expectString(output.AssetId),
3086
- DataSetId: smithy_client_1.expectString(output.DataSetId),
3087
- RevisionId: smithy_client_1.expectString(output.RevisionId),
3088
- SignedUrl: smithy_client_1.expectString(output.SignedUrl),
3259
+ AssetId: (0, smithy_client_1.expectString)(output.AssetId),
3260
+ DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3261
+ RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3262
+ SignedUrl: (0, smithy_client_1.expectString)(output.SignedUrl),
3089
3263
  SignedUrlExpiresAt: output.SignedUrlExpiresAt !== undefined && output.SignedUrlExpiresAt !== null
3090
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SignedUrlExpiresAt))
3264
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SignedUrlExpiresAt))
3091
3265
  : undefined,
3092
3266
  };
3093
3267
  };
3094
3268
  const deserializeAws_restJson1ExportRevisionsToS3ResponseDetails = (output, context) => {
3095
3269
  return {
3096
- DataSetId: smithy_client_1.expectString(output.DataSetId),
3270
+ DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3097
3271
  Encryption: output.Encryption !== undefined && output.Encryption !== null
3098
3272
  ? deserializeAws_restJson1ExportServerSideEncryption(output.Encryption, context)
3099
3273
  : undefined,
3100
- EventActionArn: smithy_client_1.expectString(output.EventActionArn),
3274
+ EventActionArn: (0, smithy_client_1.expectString)(output.EventActionArn),
3101
3275
  RevisionDestinations: output.RevisionDestinations !== undefined && output.RevisionDestinations !== null
3102
3276
  ? deserializeAws_restJson1ListOfRevisionDestinationEntry(output.RevisionDestinations, context)
3103
3277
  : undefined,
@@ -3105,41 +3279,41 @@ const deserializeAws_restJson1ExportRevisionsToS3ResponseDetails = (output, cont
3105
3279
  };
3106
3280
  const deserializeAws_restJson1ExportServerSideEncryption = (output, context) => {
3107
3281
  return {
3108
- KmsKeyArn: smithy_client_1.expectString(output.KmsKeyArn),
3109
- Type: smithy_client_1.expectString(output.Type),
3282
+ KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
3283
+ Type: (0, smithy_client_1.expectString)(output.Type),
3110
3284
  };
3111
3285
  };
3112
3286
  const deserializeAws_restJson1ImportAssetFromApiGatewayApiResponseDetails = (output, context) => {
3113
3287
  return {
3114
- ApiDescription: smithy_client_1.expectString(output.ApiDescription),
3115
- ApiId: smithy_client_1.expectString(output.ApiId),
3116
- ApiKey: smithy_client_1.expectString(output.ApiKey),
3117
- ApiName: smithy_client_1.expectString(output.ApiName),
3118
- ApiSpecificationMd5Hash: smithy_client_1.expectString(output.ApiSpecificationMd5Hash),
3119
- ApiSpecificationUploadUrl: smithy_client_1.expectString(output.ApiSpecificationUploadUrl),
3288
+ ApiDescription: (0, smithy_client_1.expectString)(output.ApiDescription),
3289
+ ApiId: (0, smithy_client_1.expectString)(output.ApiId),
3290
+ ApiKey: (0, smithy_client_1.expectString)(output.ApiKey),
3291
+ ApiName: (0, smithy_client_1.expectString)(output.ApiName),
3292
+ ApiSpecificationMd5Hash: (0, smithy_client_1.expectString)(output.ApiSpecificationMd5Hash),
3293
+ ApiSpecificationUploadUrl: (0, smithy_client_1.expectString)(output.ApiSpecificationUploadUrl),
3120
3294
  ApiSpecificationUploadUrlExpiresAt: output.ApiSpecificationUploadUrlExpiresAt !== undefined && output.ApiSpecificationUploadUrlExpiresAt !== null
3121
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.ApiSpecificationUploadUrlExpiresAt))
3295
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ApiSpecificationUploadUrlExpiresAt))
3122
3296
  : undefined,
3123
- DataSetId: smithy_client_1.expectString(output.DataSetId),
3124
- ProtocolType: smithy_client_1.expectString(output.ProtocolType),
3125
- RevisionId: smithy_client_1.expectString(output.RevisionId),
3126
- Stage: smithy_client_1.expectString(output.Stage),
3297
+ DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3298
+ ProtocolType: (0, smithy_client_1.expectString)(output.ProtocolType),
3299
+ RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3300
+ Stage: (0, smithy_client_1.expectString)(output.Stage),
3127
3301
  };
3128
3302
  };
3129
3303
  const deserializeAws_restJson1ImportAssetFromSignedUrlJobErrorDetails = (output, context) => {
3130
3304
  return {
3131
- AssetName: smithy_client_1.expectString(output.AssetName),
3305
+ AssetName: (0, smithy_client_1.expectString)(output.AssetName),
3132
3306
  };
3133
3307
  };
3134
3308
  const deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails = (output, context) => {
3135
3309
  return {
3136
- AssetName: smithy_client_1.expectString(output.AssetName),
3137
- DataSetId: smithy_client_1.expectString(output.DataSetId),
3138
- Md5Hash: smithy_client_1.expectString(output.Md5Hash),
3139
- RevisionId: smithy_client_1.expectString(output.RevisionId),
3140
- SignedUrl: smithy_client_1.expectString(output.SignedUrl),
3310
+ AssetName: (0, smithy_client_1.expectString)(output.AssetName),
3311
+ DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3312
+ Md5Hash: (0, smithy_client_1.expectString)(output.Md5Hash),
3313
+ RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3314
+ SignedUrl: (0, smithy_client_1.expectString)(output.SignedUrl),
3141
3315
  SignedUrlExpiresAt: output.SignedUrlExpiresAt !== undefined && output.SignedUrlExpiresAt !== null
3142
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SignedUrlExpiresAt))
3316
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SignedUrlExpiresAt))
3143
3317
  : undefined,
3144
3318
  };
3145
3319
  };
@@ -3148,8 +3322,8 @@ const deserializeAws_restJson1ImportAssetsFromRedshiftDataSharesResponseDetails
3148
3322
  AssetSources: output.AssetSources !== undefined && output.AssetSources !== null
3149
3323
  ? deserializeAws_restJson1ListOfRedshiftDataShareAssetSourceEntry(output.AssetSources, context)
3150
3324
  : undefined,
3151
- DataSetId: smithy_client_1.expectString(output.DataSetId),
3152
- RevisionId: smithy_client_1.expectString(output.RevisionId),
3325
+ DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3326
+ RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3153
3327
  };
3154
3328
  };
3155
3329
  const deserializeAws_restJson1ImportAssetsFromS3ResponseDetails = (output, context) => {
@@ -3157,15 +3331,15 @@ const deserializeAws_restJson1ImportAssetsFromS3ResponseDetails = (output, conte
3157
3331
  AssetSources: output.AssetSources !== undefined && output.AssetSources !== null
3158
3332
  ? deserializeAws_restJson1ListOfAssetSourceEntry(output.AssetSources, context)
3159
3333
  : undefined,
3160
- DataSetId: smithy_client_1.expectString(output.DataSetId),
3161
- RevisionId: smithy_client_1.expectString(output.RevisionId),
3334
+ DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3335
+ RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3162
3336
  };
3163
3337
  };
3164
3338
  const deserializeAws_restJson1JobEntry = (output, context) => {
3165
3339
  return {
3166
- Arn: smithy_client_1.expectString(output.Arn),
3340
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
3167
3341
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3168
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
3342
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt))
3169
3343
  : undefined,
3170
3344
  Details: output.Details !== undefined && output.Details !== null
3171
3345
  ? deserializeAws_restJson1ResponseDetails(output.Details, context)
@@ -3173,25 +3347,25 @@ const deserializeAws_restJson1JobEntry = (output, context) => {
3173
3347
  Errors: output.Errors !== undefined && output.Errors !== null
3174
3348
  ? deserializeAws_restJson1ListOfJobError(output.Errors, context)
3175
3349
  : undefined,
3176
- Id: smithy_client_1.expectString(output.Id),
3177
- State: smithy_client_1.expectString(output.State),
3178
- Type: smithy_client_1.expectString(output.Type),
3350
+ Id: (0, smithy_client_1.expectString)(output.Id),
3351
+ State: (0, smithy_client_1.expectString)(output.State),
3352
+ Type: (0, smithy_client_1.expectString)(output.Type),
3179
3353
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3180
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
3354
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt))
3181
3355
  : undefined,
3182
3356
  };
3183
3357
  };
3184
3358
  const deserializeAws_restJson1JobError = (output, context) => {
3185
3359
  return {
3186
- Code: smithy_client_1.expectString(output.Code),
3360
+ Code: (0, smithy_client_1.expectString)(output.Code),
3187
3361
  Details: output.Details !== undefined && output.Details !== null
3188
3362
  ? deserializeAws_restJson1Details(output.Details, context)
3189
3363
  : undefined,
3190
- LimitName: smithy_client_1.expectString(output.LimitName),
3191
- LimitValue: smithy_client_1.limitedParseDouble(output.LimitValue),
3192
- Message: smithy_client_1.expectString(output.Message),
3193
- ResourceId: smithy_client_1.expectString(output.ResourceId),
3194
- ResourceType: smithy_client_1.expectString(output.ResourceType),
3364
+ LimitName: (0, smithy_client_1.expectString)(output.LimitName),
3365
+ LimitValue: (0, smithy_client_1.limitedParseDouble)(output.LimitValue),
3366
+ Message: (0, smithy_client_1.expectString)(output.Message),
3367
+ ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
3368
+ ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3195
3369
  };
3196
3370
  };
3197
3371
  const deserializeAws_restJson1ListOfAssetDestinationEntry = (output, context) => {
@@ -3311,23 +3485,23 @@ const deserializeAws_restJson1MapOf__string = (output, context) => {
3311
3485
  }
3312
3486
  return {
3313
3487
  ...acc,
3314
- [key]: smithy_client_1.expectString(value),
3488
+ [key]: (0, smithy_client_1.expectString)(value),
3315
3489
  };
3316
3490
  }, {});
3317
3491
  };
3318
3492
  const deserializeAws_restJson1OriginDetails = (output, context) => {
3319
3493
  return {
3320
- ProductId: smithy_client_1.expectString(output.ProductId),
3494
+ ProductId: (0, smithy_client_1.expectString)(output.ProductId),
3321
3495
  };
3322
3496
  };
3323
3497
  const deserializeAws_restJson1RedshiftDataShareAsset = (output, context) => {
3324
3498
  return {
3325
- Arn: smithy_client_1.expectString(output.Arn),
3499
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
3326
3500
  };
3327
3501
  };
3328
3502
  const deserializeAws_restJson1RedshiftDataShareAssetSourceEntry = (output, context) => {
3329
3503
  return {
3330
- DataShareArn: smithy_client_1.expectString(output.DataShareArn),
3504
+ DataShareArn: (0, smithy_client_1.expectString)(output.DataShareArn),
3331
3505
  };
3332
3506
  };
3333
3507
  const deserializeAws_restJson1ResponseDetails = (output, context) => {
@@ -3357,35 +3531,40 @@ const deserializeAws_restJson1ResponseDetails = (output, context) => {
3357
3531
  };
3358
3532
  const deserializeAws_restJson1RevisionDestinationEntry = (output, context) => {
3359
3533
  return {
3360
- Bucket: smithy_client_1.expectString(output.Bucket),
3361
- KeyPattern: smithy_client_1.expectString(output.KeyPattern),
3362
- RevisionId: smithy_client_1.expectString(output.RevisionId),
3534
+ Bucket: (0, smithy_client_1.expectString)(output.Bucket),
3535
+ KeyPattern: (0, smithy_client_1.expectString)(output.KeyPattern),
3536
+ RevisionId: (0, smithy_client_1.expectString)(output.RevisionId),
3363
3537
  };
3364
3538
  };
3365
3539
  const deserializeAws_restJson1RevisionEntry = (output, context) => {
3366
3540
  return {
3367
- Arn: smithy_client_1.expectString(output.Arn),
3368
- Comment: smithy_client_1.expectString(output.Comment),
3541
+ Arn: (0, smithy_client_1.expectString)(output.Arn),
3542
+ Comment: (0, smithy_client_1.expectString)(output.Comment),
3369
3543
  CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
3370
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreatedAt))
3544
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedAt))
3545
+ : undefined,
3546
+ DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3547
+ Finalized: (0, smithy_client_1.expectBoolean)(output.Finalized),
3548
+ Id: (0, smithy_client_1.expectString)(output.Id),
3549
+ RevocationComment: (0, smithy_client_1.expectString)(output.RevocationComment),
3550
+ Revoked: (0, smithy_client_1.expectBoolean)(output.Revoked),
3551
+ RevokedAt: output.RevokedAt !== undefined && output.RevokedAt !== null
3552
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.RevokedAt))
3371
3553
  : undefined,
3372
- DataSetId: smithy_client_1.expectString(output.DataSetId),
3373
- Finalized: smithy_client_1.expectBoolean(output.Finalized),
3374
- Id: smithy_client_1.expectString(output.Id),
3375
- SourceId: smithy_client_1.expectString(output.SourceId),
3554
+ SourceId: (0, smithy_client_1.expectString)(output.SourceId),
3376
3555
  UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null
3377
- ? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdatedAt))
3556
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedAt))
3378
3557
  : undefined,
3379
3558
  };
3380
3559
  };
3381
3560
  const deserializeAws_restJson1RevisionPublished = (output, context) => {
3382
3561
  return {
3383
- DataSetId: smithy_client_1.expectString(output.DataSetId),
3562
+ DataSetId: (0, smithy_client_1.expectString)(output.DataSetId),
3384
3563
  };
3385
3564
  };
3386
3565
  const deserializeAws_restJson1S3SnapshotAsset = (output, context) => {
3387
3566
  return {
3388
- Size: smithy_client_1.limitedParseDouble(output.Size),
3567
+ Size: (0, smithy_client_1.limitedParseDouble)(output.Size),
3389
3568
  };
3390
3569
  };
3391
3570
  const deserializeMetadata = (output) => {