@aws-sdk/client-iot-jobs-data-plane 3.33.0 → 3.36.1

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 (115) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/IoTJobsDataPlane.js +1 -15
  3. package/dist-cjs/IoTJobsDataPlaneClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/DescribeJobExecutionCommand.js +2 -27
  5. package/{dist/cjs → dist-cjs}/commands/GetPendingJobExecutionsCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/StartNextPendingJobExecutionCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/commands/UpdateJobExecutionCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  9. package/{dist/cjs → dist-cjs}/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  11. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -55
  12. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -6
  13. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  17. package/{dist/es → dist-es}/IoTJobsDataPlane.js +2 -16
  18. package/{dist/es → dist-es}/IoTJobsDataPlaneClient.js +2 -21
  19. package/{dist/es → dist-es}/commands/DescribeJobExecutionCommand.js +4 -30
  20. package/{dist/es → dist-es}/commands/GetPendingJobExecutionsCommand.js +4 -30
  21. package/{dist/es → dist-es}/commands/StartNextPendingJobExecutionCommand.js +4 -30
  22. package/{dist/es → dist-es}/commands/UpdateJobExecutionCommand.js +4 -30
  23. package/{dist/es → dist-es}/endpoints.js +1 -2
  24. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  25. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  26. package/{dist/es → dist-es}/models/models_0.js +0 -55
  27. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +127 -133
  28. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  29. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  30. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  31. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  32. package/{dist/types → dist-types}/IoTJobsDataPlane.d.ts +2 -2
  33. package/{dist/types → dist-types}/IoTJobsDataPlaneClient.d.ts +5 -5
  34. package/{dist/types → dist-types}/commands/DescribeJobExecutionCommand.d.ts +2 -2
  35. package/{dist/types → dist-types}/commands/GetPendingJobExecutionsCommand.d.ts +2 -2
  36. package/{dist/types → dist-types}/commands/StartNextPendingJobExecutionCommand.d.ts +2 -2
  37. package/{dist/types → dist-types}/commands/UpdateJobExecutionCommand.d.ts +2 -2
  38. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  39. package/{index.ts → dist-types/index.d.ts} +0 -0
  40. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  41. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  42. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  43. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  44. package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -4
  45. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  46. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  47. package/{dist/types → dist-types}/ts3.4/IoTJobsDataPlane.d.ts +7 -27
  48. package/dist-types/ts3.4/IoTJobsDataPlaneClient.d.ts +71 -0
  49. package/{dist/types → dist-types}/ts3.4/commands/DescribeJobExecutionCommand.d.ts +4 -22
  50. package/{dist/types → dist-types}/ts3.4/commands/GetPendingJobExecutionsCommand.d.ts +4 -22
  51. package/{dist/types → dist-types}/ts3.4/commands/StartNextPendingJobExecutionCommand.d.ts +4 -22
  52. package/{dist/types → dist-types}/ts3.4/commands/UpdateJobExecutionCommand.d.ts +4 -22
  53. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  54. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  55. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  56. package/dist-types/ts3.4/models/models_0.d.ts +251 -0
  57. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  58. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  59. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +3 -7
  60. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  61. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  62. package/package.json +52 -49
  63. package/IoTJobsDataPlane.ts +0 -165
  64. package/IoTJobsDataPlaneClient.ts +0 -266
  65. package/commands/DescribeJobExecutionCommand.ts +0 -94
  66. package/commands/GetPendingJobExecutionsCommand.ts +0 -94
  67. package/commands/StartNextPendingJobExecutionCommand.ts +0 -99
  68. package/commands/UpdateJobExecutionCommand.ts +0 -94
  69. package/dist/cjs/IoTJobsDataPlane.js.map +0 -1
  70. package/dist/cjs/IoTJobsDataPlaneClient.js +0 -54
  71. package/dist/cjs/IoTJobsDataPlaneClient.js.map +0 -1
  72. package/dist/cjs/commands/DescribeJobExecutionCommand.js.map +0 -1
  73. package/dist/cjs/commands/GetPendingJobExecutionsCommand.js.map +0 -1
  74. package/dist/cjs/commands/StartNextPendingJobExecutionCommand.js.map +0 -1
  75. package/dist/cjs/commands/UpdateJobExecutionCommand.js.map +0 -1
  76. package/dist/cjs/endpoints.js.map +0 -1
  77. package/dist/cjs/index.js.map +0 -1
  78. package/dist/cjs/models/index.js.map +0 -1
  79. package/dist/cjs/models/models_0.js.map +0 -1
  80. package/dist/cjs/package.json +0 -91
  81. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  82. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  83. package/dist/cjs/runtimeConfig.js.map +0 -1
  84. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  85. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  86. package/dist/es/IoTJobsDataPlane.js.map +0 -1
  87. package/dist/es/IoTJobsDataPlaneClient.js.map +0 -1
  88. package/dist/es/commands/DescribeJobExecutionCommand.js.map +0 -1
  89. package/dist/es/commands/GetPendingJobExecutionsCommand.js.map +0 -1
  90. package/dist/es/commands/StartNextPendingJobExecutionCommand.js.map +0 -1
  91. package/dist/es/commands/UpdateJobExecutionCommand.js.map +0 -1
  92. package/dist/es/endpoints.js.map +0 -1
  93. package/dist/es/index.js +0 -8
  94. package/dist/es/index.js.map +0 -1
  95. package/dist/es/models/index.js +0 -2
  96. package/dist/es/models/index.js.map +0 -1
  97. package/dist/es/models/models_0.js.map +0 -1
  98. package/dist/es/package.json +0 -91
  99. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  100. package/dist/es/runtimeConfig.browser.js.map +0 -1
  101. package/dist/es/runtimeConfig.js.map +0 -1
  102. package/dist/es/runtimeConfig.native.js.map +0 -1
  103. package/dist/es/runtimeConfig.shared.js.map +0 -1
  104. package/dist/types/ts3.4/IoTJobsDataPlaneClient.d.ts +0 -146
  105. package/dist/types/ts3.4/models/models_0.d.ts +0 -435
  106. package/endpoints.ts +0 -91
  107. package/jest.config.js +0 -4
  108. package/models/models_0.ts +0 -533
  109. package/protocols/Aws_restJson1.ts +0 -848
  110. package/runtimeConfig.browser.ts +0 -40
  111. package/runtimeConfig.native.ts +0 -16
  112. package/runtimeConfig.shared.ts +0 -16
  113. package/runtimeConfig.ts +0 -45
  114. package/tsconfig.es.json +0 -12
  115. package/tsconfig.json +0 -32
@@ -5,7 +5,7 @@ export var serializeAws_restJson1DescribeJobExecutionCommand = function (input,
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
6
6
  return __generator(this, function (_c) {
7
7
  switch (_c.label) {
8
- case 0: return [4 /*yield*/, context.endpoint()];
8
+ case 0: return [4, context.endpoint()];
9
9
  case 1:
10
10
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
11
11
  headers = {};
@@ -31,7 +31,7 @@ export var serializeAws_restJson1DescribeJobExecutionCommand = function (input,
31
31
  throw new Error("No value provided for input HTTP label: thingName.");
32
32
  }
33
33
  query = __assign(__assign({}, (input.includeJobDocument !== undefined && { includeJobDocument: input.includeJobDocument.toString() })), (input.executionNumber !== undefined && { executionNumber: input.executionNumber.toString() }));
34
- return [2 /*return*/, new __HttpRequest({
34
+ return [2, new __HttpRequest({
35
35
  protocol: protocol,
36
36
  hostname: hostname,
37
37
  port: port,
@@ -48,7 +48,7 @@ export var serializeAws_restJson1GetPendingJobExecutionsCommand = function (inpu
48
48
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
49
49
  return __generator(this, function (_c) {
50
50
  switch (_c.label) {
51
- case 0: return [4 /*yield*/, context.endpoint()];
51
+ case 0: return [4, context.endpoint()];
52
52
  case 1:
53
53
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
54
54
  headers = {};
@@ -63,7 +63,7 @@ export var serializeAws_restJson1GetPendingJobExecutionsCommand = function (inpu
63
63
  else {
64
64
  throw new Error("No value provided for input HTTP label: thingName.");
65
65
  }
66
- return [2 /*return*/, new __HttpRequest({
66
+ return [2, new __HttpRequest({
67
67
  protocol: protocol,
68
68
  hostname: hostname,
69
69
  port: port,
@@ -79,7 +79,7 @@ export var serializeAws_restJson1StartNextPendingJobExecutionCommand = function
79
79
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
80
80
  return __generator(this, function (_c) {
81
81
  switch (_c.label) {
82
- case 0: return [4 /*yield*/, context.endpoint()];
82
+ case 0: return [4, context.endpoint()];
83
83
  case 1:
84
84
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
85
85
  headers = {
@@ -101,7 +101,7 @@ export var serializeAws_restJson1StartNextPendingJobExecutionCommand = function
101
101
  statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
102
102
  })), (input.stepTimeoutInMinutes !== undefined &&
103
103
  input.stepTimeoutInMinutes !== null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes })));
104
- return [2 /*return*/, new __HttpRequest({
104
+ return [2, new __HttpRequest({
105
105
  protocol: protocol,
106
106
  hostname: hostname,
107
107
  port: port,
@@ -117,7 +117,7 @@ export var serializeAws_restJson1UpdateJobExecutionCommand = function (input, co
117
117
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
118
118
  return __generator(this, function (_c) {
119
119
  switch (_c.label) {
120
- case 0: return [4 /*yield*/, context.endpoint()];
120
+ case 0: return [4, context.endpoint()];
121
121
  case 1:
122
122
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
123
123
  headers = {
@@ -153,7 +153,7 @@ export var serializeAws_restJson1UpdateJobExecutionCommand = function (input, co
153
153
  statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
154
154
  })), (input.stepTimeoutInMinutes !== undefined &&
155
155
  input.stepTimeoutInMinutes !== null && { stepTimeoutInMinutes: input.stepTimeoutInMinutes })));
156
- return [2 /*return*/, new __HttpRequest({
156
+ return [2, new __HttpRequest({
157
157
  protocol: protocol,
158
158
  hostname: hostname,
159
159
  port: port,
@@ -171,7 +171,7 @@ export var deserializeAws_restJson1DescribeJobExecutionCommand = function (outpu
171
171
  switch (_c.label) {
172
172
  case 0:
173
173
  if (output.statusCode !== 200 && output.statusCode >= 300) {
174
- return [2 /*return*/, deserializeAws_restJson1DescribeJobExecutionCommandError(output, context)];
174
+ return [2, deserializeAws_restJson1DescribeJobExecutionCommandError(output, context)];
175
175
  }
176
176
  contents = {
177
177
  $metadata: deserializeMetadata(output),
@@ -179,13 +179,13 @@ export var deserializeAws_restJson1DescribeJobExecutionCommand = function (outpu
179
179
  };
180
180
  _a = __expectNonNull;
181
181
  _b = __expectObject;
182
- return [4 /*yield*/, parseBody(output.body, context)];
182
+ return [4, parseBody(output.body, context)];
183
183
  case 1:
184
184
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
185
185
  if (data.execution !== undefined && data.execution !== null) {
186
186
  contents.execution = deserializeAws_restJson1JobExecution(data.execution, context);
187
187
  }
188
- return [2 /*return*/, Promise.resolve(contents)];
188
+ return [2, Promise.resolve(contents)];
189
189
  }
190
190
  });
191
191
  }); };
@@ -197,63 +197,63 @@ var deserializeAws_restJson1DescribeJobExecutionCommandError = function (output,
197
197
  case 0:
198
198
  _a = [__assign({}, output)];
199
199
  _j = {};
200
- return [4 /*yield*/, parseBody(output.body, context)];
200
+ return [4, parseBody(output.body, context)];
201
201
  case 1:
202
202
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
203
203
  errorCode = "UnknownError";
204
204
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
205
205
  _b = errorCode;
206
206
  switch (_b) {
207
- case "CertificateValidationException": return [3 /*break*/, 2];
208
- case "com.amazonaws.iotjobsdataplane#CertificateValidationException": return [3 /*break*/, 2];
209
- case "InvalidRequestException": return [3 /*break*/, 4];
210
- case "com.amazonaws.iotjobsdataplane#InvalidRequestException": return [3 /*break*/, 4];
211
- case "ResourceNotFoundException": return [3 /*break*/, 6];
212
- case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException": return [3 /*break*/, 6];
213
- case "ServiceUnavailableException": return [3 /*break*/, 8];
214
- case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException": return [3 /*break*/, 8];
215
- case "TerminalStateException": return [3 /*break*/, 10];
216
- case "com.amazonaws.iotjobsdataplane#TerminalStateException": return [3 /*break*/, 10];
217
- case "ThrottlingException": return [3 /*break*/, 12];
218
- case "com.amazonaws.iotjobsdataplane#ThrottlingException": return [3 /*break*/, 12];
207
+ case "CertificateValidationException": return [3, 2];
208
+ case "com.amazonaws.iotjobsdataplane#CertificateValidationException": return [3, 2];
209
+ case "InvalidRequestException": return [3, 4];
210
+ case "com.amazonaws.iotjobsdataplane#InvalidRequestException": return [3, 4];
211
+ case "ResourceNotFoundException": return [3, 6];
212
+ case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException": return [3, 6];
213
+ case "ServiceUnavailableException": return [3, 8];
214
+ case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException": return [3, 8];
215
+ case "TerminalStateException": return [3, 10];
216
+ case "com.amazonaws.iotjobsdataplane#TerminalStateException": return [3, 10];
217
+ case "ThrottlingException": return [3, 12];
218
+ case "com.amazonaws.iotjobsdataplane#ThrottlingException": return [3, 12];
219
219
  }
220
- return [3 /*break*/, 14];
220
+ return [3, 14];
221
221
  case 2:
222
222
  _c = [{}];
223
- return [4 /*yield*/, deserializeAws_restJson1CertificateValidationExceptionResponse(parsedOutput, context)];
223
+ return [4, deserializeAws_restJson1CertificateValidationExceptionResponse(parsedOutput, context)];
224
224
  case 3:
225
225
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
226
- return [3 /*break*/, 15];
226
+ return [3, 15];
227
227
  case 4:
228
228
  _d = [{}];
229
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
229
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
230
230
  case 5:
231
231
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
232
- return [3 /*break*/, 15];
232
+ return [3, 15];
233
233
  case 6:
234
234
  _e = [{}];
235
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
235
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
236
236
  case 7:
237
237
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
238
- return [3 /*break*/, 15];
238
+ return [3, 15];
239
239
  case 8:
240
240
  _f = [{}];
241
- return [4 /*yield*/, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
241
+ return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
242
242
  case 9:
243
243
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
244
- return [3 /*break*/, 15];
244
+ return [3, 15];
245
245
  case 10:
246
246
  _g = [{}];
247
- return [4 /*yield*/, deserializeAws_restJson1TerminalStateExceptionResponse(parsedOutput, context)];
247
+ return [4, deserializeAws_restJson1TerminalStateExceptionResponse(parsedOutput, context)];
248
248
  case 11:
249
249
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
250
- return [3 /*break*/, 15];
250
+ return [3, 15];
251
251
  case 12:
252
252
  _h = [{}];
253
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
253
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
254
254
  case 13:
255
255
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
256
- return [3 /*break*/, 15];
256
+ return [3, 15];
257
257
  case 14:
258
258
  parsedBody = parsedOutput.body;
259
259
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -263,7 +263,7 @@ var deserializeAws_restJson1DescribeJobExecutionCommandError = function (output,
263
263
  message = response.message || response.Message || errorCode;
264
264
  response.message = message;
265
265
  delete response.Message;
266
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
266
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
267
267
  }
268
268
  });
269
269
  }); };
@@ -273,7 +273,7 @@ export var deserializeAws_restJson1GetPendingJobExecutionsCommand = function (ou
273
273
  switch (_c.label) {
274
274
  case 0:
275
275
  if (output.statusCode !== 200 && output.statusCode >= 300) {
276
- return [2 /*return*/, deserializeAws_restJson1GetPendingJobExecutionsCommandError(output, context)];
276
+ return [2, deserializeAws_restJson1GetPendingJobExecutionsCommandError(output, context)];
277
277
  }
278
278
  contents = {
279
279
  $metadata: deserializeMetadata(output),
@@ -282,7 +282,7 @@ export var deserializeAws_restJson1GetPendingJobExecutionsCommand = function (ou
282
282
  };
283
283
  _a = __expectNonNull;
284
284
  _b = __expectObject;
285
- return [4 /*yield*/, parseBody(output.body, context)];
285
+ return [4, parseBody(output.body, context)];
286
286
  case 1:
287
287
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
288
288
  if (data.inProgressJobs !== undefined && data.inProgressJobs !== null) {
@@ -291,7 +291,7 @@ export var deserializeAws_restJson1GetPendingJobExecutionsCommand = function (ou
291
291
  if (data.queuedJobs !== undefined && data.queuedJobs !== null) {
292
292
  contents.queuedJobs = deserializeAws_restJson1JobExecutionSummaryList(data.queuedJobs, context);
293
293
  }
294
- return [2 /*return*/, Promise.resolve(contents)];
294
+ return [2, Promise.resolve(contents)];
295
295
  }
296
296
  });
297
297
  }); };
@@ -303,55 +303,55 @@ var deserializeAws_restJson1GetPendingJobExecutionsCommandError = function (outp
303
303
  case 0:
304
304
  _a = [__assign({}, output)];
305
305
  _h = {};
306
- return [4 /*yield*/, parseBody(output.body, context)];
306
+ return [4, parseBody(output.body, context)];
307
307
  case 1:
308
308
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
309
309
  errorCode = "UnknownError";
310
310
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
311
311
  _b = errorCode;
312
312
  switch (_b) {
313
- case "CertificateValidationException": return [3 /*break*/, 2];
314
- case "com.amazonaws.iotjobsdataplane#CertificateValidationException": return [3 /*break*/, 2];
315
- case "InvalidRequestException": return [3 /*break*/, 4];
316
- case "com.amazonaws.iotjobsdataplane#InvalidRequestException": return [3 /*break*/, 4];
317
- case "ResourceNotFoundException": return [3 /*break*/, 6];
318
- case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException": return [3 /*break*/, 6];
319
- case "ServiceUnavailableException": return [3 /*break*/, 8];
320
- case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException": return [3 /*break*/, 8];
321
- case "ThrottlingException": return [3 /*break*/, 10];
322
- case "com.amazonaws.iotjobsdataplane#ThrottlingException": return [3 /*break*/, 10];
313
+ case "CertificateValidationException": return [3, 2];
314
+ case "com.amazonaws.iotjobsdataplane#CertificateValidationException": return [3, 2];
315
+ case "InvalidRequestException": return [3, 4];
316
+ case "com.amazonaws.iotjobsdataplane#InvalidRequestException": return [3, 4];
317
+ case "ResourceNotFoundException": return [3, 6];
318
+ case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException": return [3, 6];
319
+ case "ServiceUnavailableException": return [3, 8];
320
+ case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException": return [3, 8];
321
+ case "ThrottlingException": return [3, 10];
322
+ case "com.amazonaws.iotjobsdataplane#ThrottlingException": return [3, 10];
323
323
  }
324
- return [3 /*break*/, 12];
324
+ return [3, 12];
325
325
  case 2:
326
326
  _c = [{}];
327
- return [4 /*yield*/, deserializeAws_restJson1CertificateValidationExceptionResponse(parsedOutput, context)];
327
+ return [4, deserializeAws_restJson1CertificateValidationExceptionResponse(parsedOutput, context)];
328
328
  case 3:
329
329
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
330
- return [3 /*break*/, 13];
330
+ return [3, 13];
331
331
  case 4:
332
332
  _d = [{}];
333
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
333
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
334
334
  case 5:
335
335
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
336
- return [3 /*break*/, 13];
336
+ return [3, 13];
337
337
  case 6:
338
338
  _e = [{}];
339
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
339
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
340
340
  case 7:
341
341
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
342
- return [3 /*break*/, 13];
342
+ return [3, 13];
343
343
  case 8:
344
344
  _f = [{}];
345
- return [4 /*yield*/, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
345
+ return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
346
346
  case 9:
347
347
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
348
- return [3 /*break*/, 13];
348
+ return [3, 13];
349
349
  case 10:
350
350
  _g = [{}];
351
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
351
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
352
352
  case 11:
353
353
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
354
- return [3 /*break*/, 13];
354
+ return [3, 13];
355
355
  case 12:
356
356
  parsedBody = parsedOutput.body;
357
357
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -361,7 +361,7 @@ var deserializeAws_restJson1GetPendingJobExecutionsCommandError = function (outp
361
361
  message = response.message || response.Message || errorCode;
362
362
  response.message = message;
363
363
  delete response.Message;
364
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
364
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
365
365
  }
366
366
  });
367
367
  }); };
@@ -371,7 +371,7 @@ export var deserializeAws_restJson1StartNextPendingJobExecutionCommand = functio
371
371
  switch (_c.label) {
372
372
  case 0:
373
373
  if (output.statusCode !== 200 && output.statusCode >= 300) {
374
- return [2 /*return*/, deserializeAws_restJson1StartNextPendingJobExecutionCommandError(output, context)];
374
+ return [2, deserializeAws_restJson1StartNextPendingJobExecutionCommandError(output, context)];
375
375
  }
376
376
  contents = {
377
377
  $metadata: deserializeMetadata(output),
@@ -379,13 +379,13 @@ export var deserializeAws_restJson1StartNextPendingJobExecutionCommand = functio
379
379
  };
380
380
  _a = __expectNonNull;
381
381
  _b = __expectObject;
382
- return [4 /*yield*/, parseBody(output.body, context)];
382
+ return [4, parseBody(output.body, context)];
383
383
  case 1:
384
384
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
385
385
  if (data.execution !== undefined && data.execution !== null) {
386
386
  contents.execution = deserializeAws_restJson1JobExecution(data.execution, context);
387
387
  }
388
- return [2 /*return*/, Promise.resolve(contents)];
388
+ return [2, Promise.resolve(contents)];
389
389
  }
390
390
  });
391
391
  }); };
@@ -397,55 +397,55 @@ var deserializeAws_restJson1StartNextPendingJobExecutionCommandError = function
397
397
  case 0:
398
398
  _a = [__assign({}, output)];
399
399
  _h = {};
400
- return [4 /*yield*/, parseBody(output.body, context)];
400
+ return [4, parseBody(output.body, context)];
401
401
  case 1:
402
402
  parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
403
403
  errorCode = "UnknownError";
404
404
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
405
405
  _b = errorCode;
406
406
  switch (_b) {
407
- case "CertificateValidationException": return [3 /*break*/, 2];
408
- case "com.amazonaws.iotjobsdataplane#CertificateValidationException": return [3 /*break*/, 2];
409
- case "InvalidRequestException": return [3 /*break*/, 4];
410
- case "com.amazonaws.iotjobsdataplane#InvalidRequestException": return [3 /*break*/, 4];
411
- case "ResourceNotFoundException": return [3 /*break*/, 6];
412
- case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException": return [3 /*break*/, 6];
413
- case "ServiceUnavailableException": return [3 /*break*/, 8];
414
- case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException": return [3 /*break*/, 8];
415
- case "ThrottlingException": return [3 /*break*/, 10];
416
- case "com.amazonaws.iotjobsdataplane#ThrottlingException": return [3 /*break*/, 10];
407
+ case "CertificateValidationException": return [3, 2];
408
+ case "com.amazonaws.iotjobsdataplane#CertificateValidationException": return [3, 2];
409
+ case "InvalidRequestException": return [3, 4];
410
+ case "com.amazonaws.iotjobsdataplane#InvalidRequestException": return [3, 4];
411
+ case "ResourceNotFoundException": return [3, 6];
412
+ case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException": return [3, 6];
413
+ case "ServiceUnavailableException": return [3, 8];
414
+ case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException": return [3, 8];
415
+ case "ThrottlingException": return [3, 10];
416
+ case "com.amazonaws.iotjobsdataplane#ThrottlingException": return [3, 10];
417
417
  }
418
- return [3 /*break*/, 12];
418
+ return [3, 12];
419
419
  case 2:
420
420
  _c = [{}];
421
- return [4 /*yield*/, deserializeAws_restJson1CertificateValidationExceptionResponse(parsedOutput, context)];
421
+ return [4, deserializeAws_restJson1CertificateValidationExceptionResponse(parsedOutput, context)];
422
422
  case 3:
423
423
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
424
- return [3 /*break*/, 13];
424
+ return [3, 13];
425
425
  case 4:
426
426
  _d = [{}];
427
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
427
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
428
428
  case 5:
429
429
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
430
- return [3 /*break*/, 13];
430
+ return [3, 13];
431
431
  case 6:
432
432
  _e = [{}];
433
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
433
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
434
434
  case 7:
435
435
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
436
- return [3 /*break*/, 13];
436
+ return [3, 13];
437
437
  case 8:
438
438
  _f = [{}];
439
- return [4 /*yield*/, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
439
+ return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
440
440
  case 9:
441
441
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
442
- return [3 /*break*/, 13];
442
+ return [3, 13];
443
443
  case 10:
444
444
  _g = [{}];
445
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
445
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
446
446
  case 11:
447
447
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
448
- return [3 /*break*/, 13];
448
+ return [3, 13];
449
449
  case 12:
450
450
  parsedBody = parsedOutput.body;
451
451
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -455,7 +455,7 @@ var deserializeAws_restJson1StartNextPendingJobExecutionCommandError = function
455
455
  message = response.message || response.Message || errorCode;
456
456
  response.message = message;
457
457
  delete response.Message;
458
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
458
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
459
459
  }
460
460
  });
461
461
  }); };
@@ -465,7 +465,7 @@ export var deserializeAws_restJson1UpdateJobExecutionCommand = function (output,
465
465
  switch (_c.label) {
466
466
  case 0:
467
467
  if (output.statusCode !== 200 && output.statusCode >= 300) {
468
- return [2 /*return*/, deserializeAws_restJson1UpdateJobExecutionCommandError(output, context)];
468
+ return [2, deserializeAws_restJson1UpdateJobExecutionCommandError(output, context)];
469
469
  }
470
470
  contents = {
471
471
  $metadata: deserializeMetadata(output),
@@ -474,7 +474,7 @@ export var deserializeAws_restJson1UpdateJobExecutionCommand = function (output,
474
474
  };
475
475
  _a = __expectNonNull;
476
476
  _b = __expectObject;
477
- return [4 /*yield*/, parseBody(output.body, context)];
477
+ return [4, parseBody(output.body, context)];
478
478
  case 1:
479
479
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
480
480
  if (data.executionState !== undefined && data.executionState !== null) {
@@ -483,7 +483,7 @@ export var deserializeAws_restJson1UpdateJobExecutionCommand = function (output,
483
483
  if (data.jobDocument !== undefined && data.jobDocument !== null) {
484
484
  contents.jobDocument = __expectString(data.jobDocument);
485
485
  }
486
- return [2 /*return*/, Promise.resolve(contents)];
486
+ return [2, Promise.resolve(contents)];
487
487
  }
488
488
  });
489
489
  }); };
@@ -495,63 +495,63 @@ var deserializeAws_restJson1UpdateJobExecutionCommandError = function (output, c
495
495
  case 0:
496
496
  _a = [__assign({}, output)];
497
497
  _j = {};
498
- return [4 /*yield*/, parseBody(output.body, context)];
498
+ return [4, parseBody(output.body, context)];
499
499
  case 1:
500
500
  parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
501
501
  errorCode = "UnknownError";
502
502
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
503
503
  _b = errorCode;
504
504
  switch (_b) {
505
- case "CertificateValidationException": return [3 /*break*/, 2];
506
- case "com.amazonaws.iotjobsdataplane#CertificateValidationException": return [3 /*break*/, 2];
507
- case "InvalidRequestException": return [3 /*break*/, 4];
508
- case "com.amazonaws.iotjobsdataplane#InvalidRequestException": return [3 /*break*/, 4];
509
- case "InvalidStateTransitionException": return [3 /*break*/, 6];
510
- case "com.amazonaws.iotjobsdataplane#InvalidStateTransitionException": return [3 /*break*/, 6];
511
- case "ResourceNotFoundException": return [3 /*break*/, 8];
512
- case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException": return [3 /*break*/, 8];
513
- case "ServiceUnavailableException": return [3 /*break*/, 10];
514
- case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException": return [3 /*break*/, 10];
515
- case "ThrottlingException": return [3 /*break*/, 12];
516
- case "com.amazonaws.iotjobsdataplane#ThrottlingException": return [3 /*break*/, 12];
505
+ case "CertificateValidationException": return [3, 2];
506
+ case "com.amazonaws.iotjobsdataplane#CertificateValidationException": return [3, 2];
507
+ case "InvalidRequestException": return [3, 4];
508
+ case "com.amazonaws.iotjobsdataplane#InvalidRequestException": return [3, 4];
509
+ case "InvalidStateTransitionException": return [3, 6];
510
+ case "com.amazonaws.iotjobsdataplane#InvalidStateTransitionException": return [3, 6];
511
+ case "ResourceNotFoundException": return [3, 8];
512
+ case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException": return [3, 8];
513
+ case "ServiceUnavailableException": return [3, 10];
514
+ case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException": return [3, 10];
515
+ case "ThrottlingException": return [3, 12];
516
+ case "com.amazonaws.iotjobsdataplane#ThrottlingException": return [3, 12];
517
517
  }
518
- return [3 /*break*/, 14];
518
+ return [3, 14];
519
519
  case 2:
520
520
  _c = [{}];
521
- return [4 /*yield*/, deserializeAws_restJson1CertificateValidationExceptionResponse(parsedOutput, context)];
521
+ return [4, deserializeAws_restJson1CertificateValidationExceptionResponse(parsedOutput, context)];
522
522
  case 3:
523
523
  response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
524
- return [3 /*break*/, 15];
524
+ return [3, 15];
525
525
  case 4:
526
526
  _d = [{}];
527
- return [4 /*yield*/, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
527
+ return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
528
528
  case 5:
529
529
  response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
530
- return [3 /*break*/, 15];
530
+ return [3, 15];
531
531
  case 6:
532
532
  _e = [{}];
533
- return [4 /*yield*/, deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context)];
533
+ return [4, deserializeAws_restJson1InvalidStateTransitionExceptionResponse(parsedOutput, context)];
534
534
  case 7:
535
535
  response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
536
- return [3 /*break*/, 15];
536
+ return [3, 15];
537
537
  case 8:
538
538
  _f = [{}];
539
- return [4 /*yield*/, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
539
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
540
540
  case 9:
541
541
  response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
542
- return [3 /*break*/, 15];
542
+ return [3, 15];
543
543
  case 10:
544
544
  _g = [{}];
545
- return [4 /*yield*/, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
545
+ return [4, deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)];
546
546
  case 11:
547
547
  response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
548
- return [3 /*break*/, 15];
548
+ return [3, 15];
549
549
  case 12:
550
550
  _h = [{}];
551
- return [4 /*yield*/, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
551
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
552
552
  case 13:
553
553
  response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
554
- return [3 /*break*/, 15];
554
+ return [3, 15];
555
555
  case 14:
556
556
  parsedBody = parsedOutput.body;
557
557
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
@@ -561,7 +561,7 @@ var deserializeAws_restJson1UpdateJobExecutionCommandError = function (output, c
561
561
  message = response.message || response.Message || errorCode;
562
562
  response.message = message;
563
563
  delete response.Message;
564
- return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))];
564
+ return [2, Promise.reject(Object.assign(new Error(message), response))];
565
565
  }
566
566
  });
567
567
  }); };
@@ -578,7 +578,7 @@ var deserializeAws_restJson1CertificateValidationExceptionResponse = function (p
578
578
  if (data.message !== undefined && data.message !== null) {
579
579
  contents.message = __expectString(data.message);
580
580
  }
581
- return [2 /*return*/, contents];
581
+ return [2, contents];
582
582
  });
583
583
  }); };
584
584
  var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -594,7 +594,7 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
594
594
  if (data.message !== undefined && data.message !== null) {
595
595
  contents.message = __expectString(data.message);
596
596
  }
597
- return [2 /*return*/, contents];
597
+ return [2, contents];
598
598
  });
599
599
  }); };
600
600
  var deserializeAws_restJson1InvalidStateTransitionExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -610,7 +610,7 @@ var deserializeAws_restJson1InvalidStateTransitionExceptionResponse = function (
610
610
  if (data.message !== undefined && data.message !== null) {
611
611
  contents.message = __expectString(data.message);
612
612
  }
613
- return [2 /*return*/, contents];
613
+ return [2, contents];
614
614
  });
615
615
  }); };
616
616
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -626,7 +626,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
626
626
  if (data.message !== undefined && data.message !== null) {
627
627
  contents.message = __expectString(data.message);
628
628
  }
629
- return [2 /*return*/, contents];
629
+ return [2, contents];
630
630
  });
631
631
  }); };
632
632
  var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -642,7 +642,7 @@ var deserializeAws_restJson1ServiceUnavailableExceptionResponse = function (pars
642
642
  if (data.message !== undefined && data.message !== null) {
643
643
  contents.message = __expectString(data.message);
644
644
  }
645
- return [2 /*return*/, contents];
645
+ return [2, contents];
646
646
  });
647
647
  }); };
648
648
  var deserializeAws_restJson1TerminalStateExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -658,7 +658,7 @@ var deserializeAws_restJson1TerminalStateExceptionResponse = function (parsedOut
658
658
  if (data.message !== undefined && data.message !== null) {
659
659
  contents.message = __expectString(data.message);
660
660
  }
661
- return [2 /*return*/, contents];
661
+ return [2, contents];
662
662
  });
663
663
  }); };
664
664
  var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -678,7 +678,7 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
678
678
  if (data.payload !== undefined && data.payload !== null) {
679
679
  contents.payload = context.base64Decoder(data.payload);
680
680
  }
681
- return [2 /*return*/, contents];
681
+ return [2, contents];
682
682
  });
683
683
  }); };
684
684
  var serializeAws_restJson1DetailsMap = function (input, context) {
@@ -756,7 +756,6 @@ var deserializeMetadata = function (output) {
756
756
  cfId: output.headers["x-amz-cf-id"],
757
757
  });
758
758
  };
759
- // Collect low-level response body stream to Uint8Array.
760
759
  var collectBody = function (streamBody, context) {
761
760
  if (streamBody === void 0) { streamBody = new Uint8Array(); }
762
761
  if (streamBody instanceof Uint8Array) {
@@ -764,7 +763,6 @@ var collectBody = function (streamBody, context) {
764
763
  }
765
764
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
766
765
  };
767
- // Encode Uint8Array data into string with utf-8.
768
766
  var collectBodyString = function (streamBody, context) {
769
767
  return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
770
768
  };
@@ -783,9 +781,6 @@ var parseBody = function (streamBody, context) {
783
781
  return {};
784
782
  });
785
783
  };
786
- /**
787
- * Load an error code for the aws.rest-json-1.1 protocol.
788
- */
789
784
  var loadRestJsonErrorCode = function (output, data) {
790
785
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
791
786
  var sanitizeErrorCode = function (rawValue) {
@@ -810,4 +805,3 @@ var loadRestJsonErrorCode = function (output, data) {
810
805
  }
811
806
  return "";
812
807
  };
813
- //# sourceMappingURL=Aws_restJson1.js.map