@aws-sdk/client-device-farm 3.312.0 → 3.315.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.
@@ -1,137 +1,137 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { DeviceFarmServiceException as __BaseException } from "../models/DeviceFarmServiceException";
4
4
  import { ArgumentException, CannotDeleteException, IdempotencyException, InternalServiceException, InvalidOperationException, LimitExceededException, NotEligibleException, NotFoundException, ServiceAccountException, TagOperationException, TagPolicyException, TooManyTagsException, } from "../models/models_0";
5
5
  export const se_CreateDevicePoolCommand = async (input, context) => {
6
6
  const headers = sharedHeaders("CreateDevicePool");
7
7
  let body;
8
- body = JSON.stringify(se_CreateDevicePoolRequest(input, context));
8
+ body = JSON.stringify(_json(input));
9
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
10
10
  };
11
11
  export const se_CreateInstanceProfileCommand = async (input, context) => {
12
12
  const headers = sharedHeaders("CreateInstanceProfile");
13
13
  let body;
14
- body = JSON.stringify(se_CreateInstanceProfileRequest(input, context));
14
+ body = JSON.stringify(_json(input));
15
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
16
  };
17
17
  export const se_CreateNetworkProfileCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("CreateNetworkProfile");
19
19
  let body;
20
- body = JSON.stringify(se_CreateNetworkProfileRequest(input, context));
20
+ body = JSON.stringify(_json(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  export const se_CreateProjectCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("CreateProject");
25
25
  let body;
26
- body = JSON.stringify(se_CreateProjectRequest(input, context));
26
+ body = JSON.stringify(_json(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  export const se_CreateRemoteAccessSessionCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("CreateRemoteAccessSession");
31
31
  let body;
32
- body = JSON.stringify(se_CreateRemoteAccessSessionRequest(input, context));
32
+ body = JSON.stringify(_json(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  export const se_CreateTestGridProjectCommand = async (input, context) => {
36
36
  const headers = sharedHeaders("CreateTestGridProject");
37
37
  let body;
38
- body = JSON.stringify(se_CreateTestGridProjectRequest(input, context));
38
+ body = JSON.stringify(_json(input));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
41
  export const se_CreateTestGridUrlCommand = async (input, context) => {
42
42
  const headers = sharedHeaders("CreateTestGridUrl");
43
43
  let body;
44
- body = JSON.stringify(se_CreateTestGridUrlRequest(input, context));
44
+ body = JSON.stringify(_json(input));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
47
  export const se_CreateUploadCommand = async (input, context) => {
48
48
  const headers = sharedHeaders("CreateUpload");
49
49
  let body;
50
- body = JSON.stringify(se_CreateUploadRequest(input, context));
50
+ body = JSON.stringify(_json(input));
51
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
52
  };
53
53
  export const se_CreateVPCEConfigurationCommand = async (input, context) => {
54
54
  const headers = sharedHeaders("CreateVPCEConfiguration");
55
55
  let body;
56
- body = JSON.stringify(se_CreateVPCEConfigurationRequest(input, context));
56
+ body = JSON.stringify(_json(input));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
59
  export const se_DeleteDevicePoolCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("DeleteDevicePool");
61
61
  let body;
62
- body = JSON.stringify(se_DeleteDevicePoolRequest(input, context));
62
+ body = JSON.stringify(_json(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  export const se_DeleteInstanceProfileCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("DeleteInstanceProfile");
67
67
  let body;
68
- body = JSON.stringify(se_DeleteInstanceProfileRequest(input, context));
68
+ body = JSON.stringify(_json(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  export const se_DeleteNetworkProfileCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("DeleteNetworkProfile");
73
73
  let body;
74
- body = JSON.stringify(se_DeleteNetworkProfileRequest(input, context));
74
+ body = JSON.stringify(_json(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  export const se_DeleteProjectCommand = async (input, context) => {
78
78
  const headers = sharedHeaders("DeleteProject");
79
79
  let body;
80
- body = JSON.stringify(se_DeleteProjectRequest(input, context));
80
+ body = JSON.stringify(_json(input));
81
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
82
  };
83
83
  export const se_DeleteRemoteAccessSessionCommand = async (input, context) => {
84
84
  const headers = sharedHeaders("DeleteRemoteAccessSession");
85
85
  let body;
86
- body = JSON.stringify(se_DeleteRemoteAccessSessionRequest(input, context));
86
+ body = JSON.stringify(_json(input));
87
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
88
  };
89
89
  export const se_DeleteRunCommand = async (input, context) => {
90
90
  const headers = sharedHeaders("DeleteRun");
91
91
  let body;
92
- body = JSON.stringify(se_DeleteRunRequest(input, context));
92
+ body = JSON.stringify(_json(input));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
95
  export const se_DeleteTestGridProjectCommand = async (input, context) => {
96
96
  const headers = sharedHeaders("DeleteTestGridProject");
97
97
  let body;
98
- body = JSON.stringify(se_DeleteTestGridProjectRequest(input, context));
98
+ body = JSON.stringify(_json(input));
99
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
100
  };
101
101
  export const se_DeleteUploadCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("DeleteUpload");
103
103
  let body;
104
- body = JSON.stringify(se_DeleteUploadRequest(input, context));
104
+ body = JSON.stringify(_json(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  export const se_DeleteVPCEConfigurationCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("DeleteVPCEConfiguration");
109
109
  let body;
110
- body = JSON.stringify(se_DeleteVPCEConfigurationRequest(input, context));
110
+ body = JSON.stringify(_json(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  export const se_GetAccountSettingsCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("GetAccountSettings");
115
115
  let body;
116
- body = JSON.stringify(se_GetAccountSettingsRequest(input, context));
116
+ body = JSON.stringify(_json(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  export const se_GetDeviceCommand = async (input, context) => {
120
120
  const headers = sharedHeaders("GetDevice");
121
121
  let body;
122
- body = JSON.stringify(se_GetDeviceRequest(input, context));
122
+ body = JSON.stringify(_json(input));
123
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
124
124
  };
125
125
  export const se_GetDeviceInstanceCommand = async (input, context) => {
126
126
  const headers = sharedHeaders("GetDeviceInstance");
127
127
  let body;
128
- body = JSON.stringify(se_GetDeviceInstanceRequest(input, context));
128
+ body = JSON.stringify(_json(input));
129
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
130
  };
131
131
  export const se_GetDevicePoolCommand = async (input, context) => {
132
132
  const headers = sharedHeaders("GetDevicePool");
133
133
  let body;
134
- body = JSON.stringify(se_GetDevicePoolRequest(input, context));
134
+ body = JSON.stringify(_json(input));
135
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
136
  };
137
137
  export const se_GetDevicePoolCompatibilityCommand = async (input, context) => {
@@ -143,199 +143,199 @@ export const se_GetDevicePoolCompatibilityCommand = async (input, context) => {
143
143
  export const se_GetInstanceProfileCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("GetInstanceProfile");
145
145
  let body;
146
- body = JSON.stringify(se_GetInstanceProfileRequest(input, context));
146
+ body = JSON.stringify(_json(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  export const se_GetJobCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("GetJob");
151
151
  let body;
152
- body = JSON.stringify(se_GetJobRequest(input, context));
152
+ body = JSON.stringify(_json(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  export const se_GetNetworkProfileCommand = async (input, context) => {
156
156
  const headers = sharedHeaders("GetNetworkProfile");
157
157
  let body;
158
- body = JSON.stringify(se_GetNetworkProfileRequest(input, context));
158
+ body = JSON.stringify(_json(input));
159
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
160
160
  };
161
161
  export const se_GetOfferingStatusCommand = async (input, context) => {
162
162
  const headers = sharedHeaders("GetOfferingStatus");
163
163
  let body;
164
- body = JSON.stringify(se_GetOfferingStatusRequest(input, context));
164
+ body = JSON.stringify(_json(input));
165
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
166
  };
167
167
  export const se_GetProjectCommand = async (input, context) => {
168
168
  const headers = sharedHeaders("GetProject");
169
169
  let body;
170
- body = JSON.stringify(se_GetProjectRequest(input, context));
170
+ body = JSON.stringify(_json(input));
171
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
172
172
  };
173
173
  export const se_GetRemoteAccessSessionCommand = async (input, context) => {
174
174
  const headers = sharedHeaders("GetRemoteAccessSession");
175
175
  let body;
176
- body = JSON.stringify(se_GetRemoteAccessSessionRequest(input, context));
176
+ body = JSON.stringify(_json(input));
177
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
178
  };
179
179
  export const se_GetRunCommand = async (input, context) => {
180
180
  const headers = sharedHeaders("GetRun");
181
181
  let body;
182
- body = JSON.stringify(se_GetRunRequest(input, context));
182
+ body = JSON.stringify(_json(input));
183
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
184
  };
185
185
  export const se_GetSuiteCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("GetSuite");
187
187
  let body;
188
- body = JSON.stringify(se_GetSuiteRequest(input, context));
188
+ body = JSON.stringify(_json(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  export const se_GetTestCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("GetTest");
193
193
  let body;
194
- body = JSON.stringify(se_GetTestRequest(input, context));
194
+ body = JSON.stringify(_json(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  export const se_GetTestGridProjectCommand = async (input, context) => {
198
198
  const headers = sharedHeaders("GetTestGridProject");
199
199
  let body;
200
- body = JSON.stringify(se_GetTestGridProjectRequest(input, context));
200
+ body = JSON.stringify(_json(input));
201
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
202
  };
203
203
  export const se_GetTestGridSessionCommand = async (input, context) => {
204
204
  const headers = sharedHeaders("GetTestGridSession");
205
205
  let body;
206
- body = JSON.stringify(se_GetTestGridSessionRequest(input, context));
206
+ body = JSON.stringify(_json(input));
207
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
208
  };
209
209
  export const se_GetUploadCommand = async (input, context) => {
210
210
  const headers = sharedHeaders("GetUpload");
211
211
  let body;
212
- body = JSON.stringify(se_GetUploadRequest(input, context));
212
+ body = JSON.stringify(_json(input));
213
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
214
214
  };
215
215
  export const se_GetVPCEConfigurationCommand = async (input, context) => {
216
216
  const headers = sharedHeaders("GetVPCEConfiguration");
217
217
  let body;
218
- body = JSON.stringify(se_GetVPCEConfigurationRequest(input, context));
218
+ body = JSON.stringify(_json(input));
219
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
220
  };
221
221
  export const se_InstallToRemoteAccessSessionCommand = async (input, context) => {
222
222
  const headers = sharedHeaders("InstallToRemoteAccessSession");
223
223
  let body;
224
- body = JSON.stringify(se_InstallToRemoteAccessSessionRequest(input, context));
224
+ body = JSON.stringify(_json(input));
225
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
226
226
  };
227
227
  export const se_ListArtifactsCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("ListArtifacts");
229
229
  let body;
230
- body = JSON.stringify(se_ListArtifactsRequest(input, context));
230
+ body = JSON.stringify(_json(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  export const se_ListDeviceInstancesCommand = async (input, context) => {
234
234
  const headers = sharedHeaders("ListDeviceInstances");
235
235
  let body;
236
- body = JSON.stringify(se_ListDeviceInstancesRequest(input, context));
236
+ body = JSON.stringify(_json(input));
237
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
238
  };
239
239
  export const se_ListDevicePoolsCommand = async (input, context) => {
240
240
  const headers = sharedHeaders("ListDevicePools");
241
241
  let body;
242
- body = JSON.stringify(se_ListDevicePoolsRequest(input, context));
242
+ body = JSON.stringify(_json(input));
243
243
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
244
244
  };
245
245
  export const se_ListDevicesCommand = async (input, context) => {
246
246
  const headers = sharedHeaders("ListDevices");
247
247
  let body;
248
- body = JSON.stringify(se_ListDevicesRequest(input, context));
248
+ body = JSON.stringify(_json(input));
249
249
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
250
250
  };
251
251
  export const se_ListInstanceProfilesCommand = async (input, context) => {
252
252
  const headers = sharedHeaders("ListInstanceProfiles");
253
253
  let body;
254
- body = JSON.stringify(se_ListInstanceProfilesRequest(input, context));
254
+ body = JSON.stringify(_json(input));
255
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
256
  };
257
257
  export const se_ListJobsCommand = async (input, context) => {
258
258
  const headers = sharedHeaders("ListJobs");
259
259
  let body;
260
- body = JSON.stringify(se_ListJobsRequest(input, context));
260
+ body = JSON.stringify(_json(input));
261
261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
262
262
  };
263
263
  export const se_ListNetworkProfilesCommand = async (input, context) => {
264
264
  const headers = sharedHeaders("ListNetworkProfiles");
265
265
  let body;
266
- body = JSON.stringify(se_ListNetworkProfilesRequest(input, context));
266
+ body = JSON.stringify(_json(input));
267
267
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
268
  };
269
269
  export const se_ListOfferingPromotionsCommand = async (input, context) => {
270
270
  const headers = sharedHeaders("ListOfferingPromotions");
271
271
  let body;
272
- body = JSON.stringify(se_ListOfferingPromotionsRequest(input, context));
272
+ body = JSON.stringify(_json(input));
273
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
274
  };
275
275
  export const se_ListOfferingsCommand = async (input, context) => {
276
276
  const headers = sharedHeaders("ListOfferings");
277
277
  let body;
278
- body = JSON.stringify(se_ListOfferingsRequest(input, context));
278
+ body = JSON.stringify(_json(input));
279
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
280
  };
281
281
  export const se_ListOfferingTransactionsCommand = async (input, context) => {
282
282
  const headers = sharedHeaders("ListOfferingTransactions");
283
283
  let body;
284
- body = JSON.stringify(se_ListOfferingTransactionsRequest(input, context));
284
+ body = JSON.stringify(_json(input));
285
285
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
286
286
  };
287
287
  export const se_ListProjectsCommand = async (input, context) => {
288
288
  const headers = sharedHeaders("ListProjects");
289
289
  let body;
290
- body = JSON.stringify(se_ListProjectsRequest(input, context));
290
+ body = JSON.stringify(_json(input));
291
291
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
292
  };
293
293
  export const se_ListRemoteAccessSessionsCommand = async (input, context) => {
294
294
  const headers = sharedHeaders("ListRemoteAccessSessions");
295
295
  let body;
296
- body = JSON.stringify(se_ListRemoteAccessSessionsRequest(input, context));
296
+ body = JSON.stringify(_json(input));
297
297
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
298
298
  };
299
299
  export const se_ListRunsCommand = async (input, context) => {
300
300
  const headers = sharedHeaders("ListRuns");
301
301
  let body;
302
- body = JSON.stringify(se_ListRunsRequest(input, context));
302
+ body = JSON.stringify(_json(input));
303
303
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
304
304
  };
305
305
  export const se_ListSamplesCommand = async (input, context) => {
306
306
  const headers = sharedHeaders("ListSamples");
307
307
  let body;
308
- body = JSON.stringify(se_ListSamplesRequest(input, context));
308
+ body = JSON.stringify(_json(input));
309
309
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
310
  };
311
311
  export const se_ListSuitesCommand = async (input, context) => {
312
312
  const headers = sharedHeaders("ListSuites");
313
313
  let body;
314
- body = JSON.stringify(se_ListSuitesRequest(input, context));
314
+ body = JSON.stringify(_json(input));
315
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
316
  };
317
317
  export const se_ListTagsForResourceCommand = async (input, context) => {
318
318
  const headers = sharedHeaders("ListTagsForResource");
319
319
  let body;
320
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
320
+ body = JSON.stringify(_json(input));
321
321
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
322
322
  };
323
323
  export const se_ListTestGridProjectsCommand = async (input, context) => {
324
324
  const headers = sharedHeaders("ListTestGridProjects");
325
325
  let body;
326
- body = JSON.stringify(se_ListTestGridProjectsRequest(input, context));
326
+ body = JSON.stringify(_json(input));
327
327
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
328
  };
329
329
  export const se_ListTestGridSessionActionsCommand = async (input, context) => {
330
330
  const headers = sharedHeaders("ListTestGridSessionActions");
331
331
  let body;
332
- body = JSON.stringify(se_ListTestGridSessionActionsRequest(input, context));
332
+ body = JSON.stringify(_json(input));
333
333
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
334
334
  };
335
335
  export const se_ListTestGridSessionArtifactsCommand = async (input, context) => {
336
336
  const headers = sharedHeaders("ListTestGridSessionArtifacts");
337
337
  let body;
338
- body = JSON.stringify(se_ListTestGridSessionArtifactsRequest(input, context));
338
+ body = JSON.stringify(_json(input));
339
339
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
340
340
  };
341
341
  export const se_ListTestGridSessionsCommand = async (input, context) => {
@@ -347,37 +347,37 @@ export const se_ListTestGridSessionsCommand = async (input, context) => {
347
347
  export const se_ListTestsCommand = async (input, context) => {
348
348
  const headers = sharedHeaders("ListTests");
349
349
  let body;
350
- body = JSON.stringify(se_ListTestsRequest(input, context));
350
+ body = JSON.stringify(_json(input));
351
351
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
352
352
  };
353
353
  export const se_ListUniqueProblemsCommand = async (input, context) => {
354
354
  const headers = sharedHeaders("ListUniqueProblems");
355
355
  let body;
356
- body = JSON.stringify(se_ListUniqueProblemsRequest(input, context));
356
+ body = JSON.stringify(_json(input));
357
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
358
  };
359
359
  export const se_ListUploadsCommand = async (input, context) => {
360
360
  const headers = sharedHeaders("ListUploads");
361
361
  let body;
362
- body = JSON.stringify(se_ListUploadsRequest(input, context));
362
+ body = JSON.stringify(_json(input));
363
363
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
364
364
  };
365
365
  export const se_ListVPCEConfigurationsCommand = async (input, context) => {
366
366
  const headers = sharedHeaders("ListVPCEConfigurations");
367
367
  let body;
368
- body = JSON.stringify(se_ListVPCEConfigurationsRequest(input, context));
368
+ body = JSON.stringify(_json(input));
369
369
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
370
370
  };
371
371
  export const se_PurchaseOfferingCommand = async (input, context) => {
372
372
  const headers = sharedHeaders("PurchaseOffering");
373
373
  let body;
374
- body = JSON.stringify(se_PurchaseOfferingRequest(input, context));
374
+ body = JSON.stringify(_json(input));
375
375
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
376
376
  };
377
377
  export const se_RenewOfferingCommand = async (input, context) => {
378
378
  const headers = sharedHeaders("RenewOffering");
379
379
  let body;
380
- body = JSON.stringify(se_RenewOfferingRequest(input, context));
380
+ body = JSON.stringify(_json(input));
381
381
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
382
382
  };
383
383
  export const se_ScheduleRunCommand = async (input, context) => {
@@ -389,79 +389,79 @@ export const se_ScheduleRunCommand = async (input, context) => {
389
389
  export const se_StopJobCommand = async (input, context) => {
390
390
  const headers = sharedHeaders("StopJob");
391
391
  let body;
392
- body = JSON.stringify(se_StopJobRequest(input, context));
392
+ body = JSON.stringify(_json(input));
393
393
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
394
394
  };
395
395
  export const se_StopRemoteAccessSessionCommand = async (input, context) => {
396
396
  const headers = sharedHeaders("StopRemoteAccessSession");
397
397
  let body;
398
- body = JSON.stringify(se_StopRemoteAccessSessionRequest(input, context));
398
+ body = JSON.stringify(_json(input));
399
399
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
400
  };
401
401
  export const se_StopRunCommand = async (input, context) => {
402
402
  const headers = sharedHeaders("StopRun");
403
403
  let body;
404
- body = JSON.stringify(se_StopRunRequest(input, context));
404
+ body = JSON.stringify(_json(input));
405
405
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
406
406
  };
407
407
  export const se_TagResourceCommand = async (input, context) => {
408
408
  const headers = sharedHeaders("TagResource");
409
409
  let body;
410
- body = JSON.stringify(se_TagResourceRequest(input, context));
410
+ body = JSON.stringify(_json(input));
411
411
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
412
412
  };
413
413
  export const se_UntagResourceCommand = async (input, context) => {
414
414
  const headers = sharedHeaders("UntagResource");
415
415
  let body;
416
- body = JSON.stringify(se_UntagResourceRequest(input, context));
416
+ body = JSON.stringify(_json(input));
417
417
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
418
418
  };
419
419
  export const se_UpdateDeviceInstanceCommand = async (input, context) => {
420
420
  const headers = sharedHeaders("UpdateDeviceInstance");
421
421
  let body;
422
- body = JSON.stringify(se_UpdateDeviceInstanceRequest(input, context));
422
+ body = JSON.stringify(_json(input));
423
423
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
424
424
  };
425
425
  export const se_UpdateDevicePoolCommand = async (input, context) => {
426
426
  const headers = sharedHeaders("UpdateDevicePool");
427
427
  let body;
428
- body = JSON.stringify(se_UpdateDevicePoolRequest(input, context));
428
+ body = JSON.stringify(_json(input));
429
429
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
430
430
  };
431
431
  export const se_UpdateInstanceProfileCommand = async (input, context) => {
432
432
  const headers = sharedHeaders("UpdateInstanceProfile");
433
433
  let body;
434
- body = JSON.stringify(se_UpdateInstanceProfileRequest(input, context));
434
+ body = JSON.stringify(_json(input));
435
435
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
436
436
  };
437
437
  export const se_UpdateNetworkProfileCommand = async (input, context) => {
438
438
  const headers = sharedHeaders("UpdateNetworkProfile");
439
439
  let body;
440
- body = JSON.stringify(se_UpdateNetworkProfileRequest(input, context));
440
+ body = JSON.stringify(_json(input));
441
441
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
442
442
  };
443
443
  export const se_UpdateProjectCommand = async (input, context) => {
444
444
  const headers = sharedHeaders("UpdateProject");
445
445
  let body;
446
- body = JSON.stringify(se_UpdateProjectRequest(input, context));
446
+ body = JSON.stringify(_json(input));
447
447
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
448
448
  };
449
449
  export const se_UpdateTestGridProjectCommand = async (input, context) => {
450
450
  const headers = sharedHeaders("UpdateTestGridProject");
451
451
  let body;
452
- body = JSON.stringify(se_UpdateTestGridProjectRequest(input, context));
452
+ body = JSON.stringify(_json(input));
453
453
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
454
454
  };
455
455
  export const se_UpdateUploadCommand = async (input, context) => {
456
456
  const headers = sharedHeaders("UpdateUpload");
457
457
  let body;
458
- body = JSON.stringify(se_UpdateUploadRequest(input, context));
458
+ body = JSON.stringify(_json(input));
459
459
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
460
460
  };
461
461
  export const se_UpdateVPCEConfigurationCommand = async (input, context) => {
462
462
  const headers = sharedHeaders("UpdateVPCEConfiguration");
463
463
  let body;
464
- body = JSON.stringify(se_UpdateVPCEConfigurationRequest(input, context));
464
+ body = JSON.stringify(_json(input));
465
465
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
466
466
  };
467
467
  export const de_CreateDevicePoolCommand = async (output, context) => {
@@ -470,12 +470,12 @@ export const de_CreateDevicePoolCommand = async (output, context) => {
470
470
  }
471
471
  const data = await parseBody(output.body, context);
472
472
  let contents = {};
473
- contents = de_CreateDevicePoolResult(data, context);
473
+ contents = _json(data);
474
474
  const response = {
475
475
  $metadata: deserializeMetadata(output),
476
476
  ...contents,
477
477
  };
478
- return Promise.resolve(response);
478
+ return response;
479
479
  };
480
480
  const de_CreateDevicePoolCommandError = async (output, context) => {
481
481
  const parsedOutput = {
@@ -498,10 +498,9 @@ const de_CreateDevicePoolCommandError = async (output, context) => {
498
498
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
499
499
  default:
500
500
  const parsedBody = parsedOutput.body;
501
- throwDefaultError({
501
+ return throwDefaultError({
502
502
  output,
503
503
  parsedBody,
504
- exceptionCtor: __BaseException,
505
504
  errorCode,
506
505
  });
507
506
  }
@@ -512,12 +511,12 @@ export const de_CreateInstanceProfileCommand = async (output, context) => {
512
511
  }
513
512
  const data = await parseBody(output.body, context);
514
513
  let contents = {};
515
- contents = de_CreateInstanceProfileResult(data, context);
514
+ contents = _json(data);
516
515
  const response = {
517
516
  $metadata: deserializeMetadata(output),
518
517
  ...contents,
519
518
  };
520
- return Promise.resolve(response);
519
+ return response;
521
520
  };
522
521
  const de_CreateInstanceProfileCommandError = async (output, context) => {
523
522
  const parsedOutput = {
@@ -540,10 +539,9 @@ const de_CreateInstanceProfileCommandError = async (output, context) => {
540
539
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
541
540
  default:
542
541
  const parsedBody = parsedOutput.body;
543
- throwDefaultError({
542
+ return throwDefaultError({
544
543
  output,
545
544
  parsedBody,
546
- exceptionCtor: __BaseException,
547
545
  errorCode,
548
546
  });
549
547
  }
@@ -554,12 +552,12 @@ export const de_CreateNetworkProfileCommand = async (output, context) => {
554
552
  }
555
553
  const data = await parseBody(output.body, context);
556
554
  let contents = {};
557
- contents = de_CreateNetworkProfileResult(data, context);
555
+ contents = _json(data);
558
556
  const response = {
559
557
  $metadata: deserializeMetadata(output),
560
558
  ...contents,
561
559
  };
562
- return Promise.resolve(response);
560
+ return response;
563
561
  };
564
562
  const de_CreateNetworkProfileCommandError = async (output, context) => {
565
563
  const parsedOutput = {
@@ -582,10 +580,9 @@ const de_CreateNetworkProfileCommandError = async (output, context) => {
582
580
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
583
581
  default:
584
582
  const parsedBody = parsedOutput.body;
585
- throwDefaultError({
583
+ return throwDefaultError({
586
584
  output,
587
585
  parsedBody,
588
- exceptionCtor: __BaseException,
589
586
  errorCode,
590
587
  });
591
588
  }
@@ -601,7 +598,7 @@ export const de_CreateProjectCommand = async (output, context) => {
601
598
  $metadata: deserializeMetadata(output),
602
599
  ...contents,
603
600
  };
604
- return Promise.resolve(response);
601
+ return response;
605
602
  };
606
603
  const de_CreateProjectCommandError = async (output, context) => {
607
604
  const parsedOutput = {
@@ -627,10 +624,9 @@ const de_CreateProjectCommandError = async (output, context) => {
627
624
  throw await de_TagOperationExceptionRes(parsedOutput, context);
628
625
  default:
629
626
  const parsedBody = parsedOutput.body;
630
- throwDefaultError({
627
+ return throwDefaultError({
631
628
  output,
632
629
  parsedBody,
633
- exceptionCtor: __BaseException,
634
630
  errorCode,
635
631
  });
636
632
  }
@@ -646,7 +642,7 @@ export const de_CreateRemoteAccessSessionCommand = async (output, context) => {
646
642
  $metadata: deserializeMetadata(output),
647
643
  ...contents,
648
644
  };
649
- return Promise.resolve(response);
645
+ return response;
650
646
  };
651
647
  const de_CreateRemoteAccessSessionCommandError = async (output, context) => {
652
648
  const parsedOutput = {
@@ -669,10 +665,9 @@ const de_CreateRemoteAccessSessionCommandError = async (output, context) => {
669
665
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
670
666
  default:
671
667
  const parsedBody = parsedOutput.body;
672
- throwDefaultError({
668
+ return throwDefaultError({
673
669
  output,
674
670
  parsedBody,
675
- exceptionCtor: __BaseException,
676
671
  errorCode,
677
672
  });
678
673
  }
@@ -688,7 +683,7 @@ export const de_CreateTestGridProjectCommand = async (output, context) => {
688
683
  $metadata: deserializeMetadata(output),
689
684
  ...contents,
690
685
  };
691
- return Promise.resolve(response);
686
+ return response;
692
687
  };
693
688
  const de_CreateTestGridProjectCommandError = async (output, context) => {
694
689
  const parsedOutput = {
@@ -708,10 +703,9 @@ const de_CreateTestGridProjectCommandError = async (output, context) => {
708
703
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
709
704
  default:
710
705
  const parsedBody = parsedOutput.body;
711
- throwDefaultError({
706
+ return throwDefaultError({
712
707
  output,
713
708
  parsedBody,
714
- exceptionCtor: __BaseException,
715
709
  errorCode,
716
710
  });
717
711
  }
@@ -727,7 +721,7 @@ export const de_CreateTestGridUrlCommand = async (output, context) => {
727
721
  $metadata: deserializeMetadata(output),
728
722
  ...contents,
729
723
  };
730
- return Promise.resolve(response);
724
+ return response;
731
725
  };
732
726
  const de_CreateTestGridUrlCommandError = async (output, context) => {
733
727
  const parsedOutput = {
@@ -747,10 +741,9 @@ const de_CreateTestGridUrlCommandError = async (output, context) => {
747
741
  throw await de_NotFoundExceptionRes(parsedOutput, context);
748
742
  default:
749
743
  const parsedBody = parsedOutput.body;
750
- throwDefaultError({
744
+ return throwDefaultError({
751
745
  output,
752
746
  parsedBody,
753
- exceptionCtor: __BaseException,
754
747
  errorCode,
755
748
  });
756
749
  }
@@ -766,7 +759,7 @@ export const de_CreateUploadCommand = async (output, context) => {
766
759
  $metadata: deserializeMetadata(output),
767
760
  ...contents,
768
761
  };
769
- return Promise.resolve(response);
762
+ return response;
770
763
  };
771
764
  const de_CreateUploadCommandError = async (output, context) => {
772
765
  const parsedOutput = {
@@ -789,10 +782,9 @@ const de_CreateUploadCommandError = async (output, context) => {
789
782
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
790
783
  default:
791
784
  const parsedBody = parsedOutput.body;
792
- throwDefaultError({
785
+ return throwDefaultError({
793
786
  output,
794
787
  parsedBody,
795
- exceptionCtor: __BaseException,
796
788
  errorCode,
797
789
  });
798
790
  }
@@ -803,12 +795,12 @@ export const de_CreateVPCEConfigurationCommand = async (output, context) => {
803
795
  }
804
796
  const data = await parseBody(output.body, context);
805
797
  let contents = {};
806
- contents = de_CreateVPCEConfigurationResult(data, context);
798
+ contents = _json(data);
807
799
  const response = {
808
800
  $metadata: deserializeMetadata(output),
809
801
  ...contents,
810
802
  };
811
- return Promise.resolve(response);
803
+ return response;
812
804
  };
813
805
  const de_CreateVPCEConfigurationCommandError = async (output, context) => {
814
806
  const parsedOutput = {
@@ -828,10 +820,9 @@ const de_CreateVPCEConfigurationCommandError = async (output, context) => {
828
820
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
829
821
  default:
830
822
  const parsedBody = parsedOutput.body;
831
- throwDefaultError({
823
+ return throwDefaultError({
832
824
  output,
833
825
  parsedBody,
834
- exceptionCtor: __BaseException,
835
826
  errorCode,
836
827
  });
837
828
  }
@@ -842,12 +833,12 @@ export const de_DeleteDevicePoolCommand = async (output, context) => {
842
833
  }
843
834
  const data = await parseBody(output.body, context);
844
835
  let contents = {};
845
- contents = de_DeleteDevicePoolResult(data, context);
836
+ contents = _json(data);
846
837
  const response = {
847
838
  $metadata: deserializeMetadata(output),
848
839
  ...contents,
849
840
  };
850
- return Promise.resolve(response);
841
+ return response;
851
842
  };
852
843
  const de_DeleteDevicePoolCommandError = async (output, context) => {
853
844
  const parsedOutput = {
@@ -870,10 +861,9 @@ const de_DeleteDevicePoolCommandError = async (output, context) => {
870
861
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
871
862
  default:
872
863
  const parsedBody = parsedOutput.body;
873
- throwDefaultError({
864
+ return throwDefaultError({
874
865
  output,
875
866
  parsedBody,
876
- exceptionCtor: __BaseException,
877
867
  errorCode,
878
868
  });
879
869
  }
@@ -884,12 +874,12 @@ export const de_DeleteInstanceProfileCommand = async (output, context) => {
884
874
  }
885
875
  const data = await parseBody(output.body, context);
886
876
  let contents = {};
887
- contents = de_DeleteInstanceProfileResult(data, context);
877
+ contents = _json(data);
888
878
  const response = {
889
879
  $metadata: deserializeMetadata(output),
890
880
  ...contents,
891
881
  };
892
- return Promise.resolve(response);
882
+ return response;
893
883
  };
894
884
  const de_DeleteInstanceProfileCommandError = async (output, context) => {
895
885
  const parsedOutput = {
@@ -912,10 +902,9 @@ const de_DeleteInstanceProfileCommandError = async (output, context) => {
912
902
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
913
903
  default:
914
904
  const parsedBody = parsedOutput.body;
915
- throwDefaultError({
905
+ return throwDefaultError({
916
906
  output,
917
907
  parsedBody,
918
- exceptionCtor: __BaseException,
919
908
  errorCode,
920
909
  });
921
910
  }
@@ -926,12 +915,12 @@ export const de_DeleteNetworkProfileCommand = async (output, context) => {
926
915
  }
927
916
  const data = await parseBody(output.body, context);
928
917
  let contents = {};
929
- contents = de_DeleteNetworkProfileResult(data, context);
918
+ contents = _json(data);
930
919
  const response = {
931
920
  $metadata: deserializeMetadata(output),
932
921
  ...contents,
933
922
  };
934
- return Promise.resolve(response);
923
+ return response;
935
924
  };
936
925
  const de_DeleteNetworkProfileCommandError = async (output, context) => {
937
926
  const parsedOutput = {
@@ -954,10 +943,9 @@ const de_DeleteNetworkProfileCommandError = async (output, context) => {
954
943
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
955
944
  default:
956
945
  const parsedBody = parsedOutput.body;
957
- throwDefaultError({
946
+ return throwDefaultError({
958
947
  output,
959
948
  parsedBody,
960
- exceptionCtor: __BaseException,
961
949
  errorCode,
962
950
  });
963
951
  }
@@ -968,12 +956,12 @@ export const de_DeleteProjectCommand = async (output, context) => {
968
956
  }
969
957
  const data = await parseBody(output.body, context);
970
958
  let contents = {};
971
- contents = de_DeleteProjectResult(data, context);
959
+ contents = _json(data);
972
960
  const response = {
973
961
  $metadata: deserializeMetadata(output),
974
962
  ...contents,
975
963
  };
976
- return Promise.resolve(response);
964
+ return response;
977
965
  };
978
966
  const de_DeleteProjectCommandError = async (output, context) => {
979
967
  const parsedOutput = {
@@ -996,10 +984,9 @@ const de_DeleteProjectCommandError = async (output, context) => {
996
984
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
997
985
  default:
998
986
  const parsedBody = parsedOutput.body;
999
- throwDefaultError({
987
+ return throwDefaultError({
1000
988
  output,
1001
989
  parsedBody,
1002
- exceptionCtor: __BaseException,
1003
990
  errorCode,
1004
991
  });
1005
992
  }
@@ -1010,12 +997,12 @@ export const de_DeleteRemoteAccessSessionCommand = async (output, context) => {
1010
997
  }
1011
998
  const data = await parseBody(output.body, context);
1012
999
  let contents = {};
1013
- contents = de_DeleteRemoteAccessSessionResult(data, context);
1000
+ contents = _json(data);
1014
1001
  const response = {
1015
1002
  $metadata: deserializeMetadata(output),
1016
1003
  ...contents,
1017
1004
  };
1018
- return Promise.resolve(response);
1005
+ return response;
1019
1006
  };
1020
1007
  const de_DeleteRemoteAccessSessionCommandError = async (output, context) => {
1021
1008
  const parsedOutput = {
@@ -1038,10 +1025,9 @@ const de_DeleteRemoteAccessSessionCommandError = async (output, context) => {
1038
1025
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1039
1026
  default:
1040
1027
  const parsedBody = parsedOutput.body;
1041
- throwDefaultError({
1028
+ return throwDefaultError({
1042
1029
  output,
1043
1030
  parsedBody,
1044
- exceptionCtor: __BaseException,
1045
1031
  errorCode,
1046
1032
  });
1047
1033
  }
@@ -1052,12 +1038,12 @@ export const de_DeleteRunCommand = async (output, context) => {
1052
1038
  }
1053
1039
  const data = await parseBody(output.body, context);
1054
1040
  let contents = {};
1055
- contents = de_DeleteRunResult(data, context);
1041
+ contents = _json(data);
1056
1042
  const response = {
1057
1043
  $metadata: deserializeMetadata(output),
1058
1044
  ...contents,
1059
1045
  };
1060
- return Promise.resolve(response);
1046
+ return response;
1061
1047
  };
1062
1048
  const de_DeleteRunCommandError = async (output, context) => {
1063
1049
  const parsedOutput = {
@@ -1080,10 +1066,9 @@ const de_DeleteRunCommandError = async (output, context) => {
1080
1066
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1081
1067
  default:
1082
1068
  const parsedBody = parsedOutput.body;
1083
- throwDefaultError({
1069
+ return throwDefaultError({
1084
1070
  output,
1085
1071
  parsedBody,
1086
- exceptionCtor: __BaseException,
1087
1072
  errorCode,
1088
1073
  });
1089
1074
  }
@@ -1094,12 +1079,12 @@ export const de_DeleteTestGridProjectCommand = async (output, context) => {
1094
1079
  }
1095
1080
  const data = await parseBody(output.body, context);
1096
1081
  let contents = {};
1097
- contents = de_DeleteTestGridProjectResult(data, context);
1082
+ contents = _json(data);
1098
1083
  const response = {
1099
1084
  $metadata: deserializeMetadata(output),
1100
1085
  ...contents,
1101
1086
  };
1102
- return Promise.resolve(response);
1087
+ return response;
1103
1088
  };
1104
1089
  const de_DeleteTestGridProjectCommandError = async (output, context) => {
1105
1090
  const parsedOutput = {
@@ -1122,10 +1107,9 @@ const de_DeleteTestGridProjectCommandError = async (output, context) => {
1122
1107
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1123
1108
  default:
1124
1109
  const parsedBody = parsedOutput.body;
1125
- throwDefaultError({
1110
+ return throwDefaultError({
1126
1111
  output,
1127
1112
  parsedBody,
1128
- exceptionCtor: __BaseException,
1129
1113
  errorCode,
1130
1114
  });
1131
1115
  }
@@ -1136,12 +1120,12 @@ export const de_DeleteUploadCommand = async (output, context) => {
1136
1120
  }
1137
1121
  const data = await parseBody(output.body, context);
1138
1122
  let contents = {};
1139
- contents = de_DeleteUploadResult(data, context);
1123
+ contents = _json(data);
1140
1124
  const response = {
1141
1125
  $metadata: deserializeMetadata(output),
1142
1126
  ...contents,
1143
1127
  };
1144
- return Promise.resolve(response);
1128
+ return response;
1145
1129
  };
1146
1130
  const de_DeleteUploadCommandError = async (output, context) => {
1147
1131
  const parsedOutput = {
@@ -1164,10 +1148,9 @@ const de_DeleteUploadCommandError = async (output, context) => {
1164
1148
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1165
1149
  default:
1166
1150
  const parsedBody = parsedOutput.body;
1167
- throwDefaultError({
1151
+ return throwDefaultError({
1168
1152
  output,
1169
1153
  parsedBody,
1170
- exceptionCtor: __BaseException,
1171
1154
  errorCode,
1172
1155
  });
1173
1156
  }
@@ -1178,12 +1161,12 @@ export const de_DeleteVPCEConfigurationCommand = async (output, context) => {
1178
1161
  }
1179
1162
  const data = await parseBody(output.body, context);
1180
1163
  let contents = {};
1181
- contents = de_DeleteVPCEConfigurationResult(data, context);
1164
+ contents = _json(data);
1182
1165
  const response = {
1183
1166
  $metadata: deserializeMetadata(output),
1184
1167
  ...contents,
1185
1168
  };
1186
- return Promise.resolve(response);
1169
+ return response;
1187
1170
  };
1188
1171
  const de_DeleteVPCEConfigurationCommandError = async (output, context) => {
1189
1172
  const parsedOutput = {
@@ -1206,10 +1189,9 @@ const de_DeleteVPCEConfigurationCommandError = async (output, context) => {
1206
1189
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1207
1190
  default:
1208
1191
  const parsedBody = parsedOutput.body;
1209
- throwDefaultError({
1192
+ return throwDefaultError({
1210
1193
  output,
1211
1194
  parsedBody,
1212
- exceptionCtor: __BaseException,
1213
1195
  errorCode,
1214
1196
  });
1215
1197
  }
@@ -1225,7 +1207,7 @@ export const de_GetAccountSettingsCommand = async (output, context) => {
1225
1207
  $metadata: deserializeMetadata(output),
1226
1208
  ...contents,
1227
1209
  };
1228
- return Promise.resolve(response);
1210
+ return response;
1229
1211
  };
1230
1212
  const de_GetAccountSettingsCommandError = async (output, context) => {
1231
1213
  const parsedOutput = {
@@ -1248,10 +1230,9 @@ const de_GetAccountSettingsCommandError = async (output, context) => {
1248
1230
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1249
1231
  default:
1250
1232
  const parsedBody = parsedOutput.body;
1251
- throwDefaultError({
1233
+ return throwDefaultError({
1252
1234
  output,
1253
1235
  parsedBody,
1254
- exceptionCtor: __BaseException,
1255
1236
  errorCode,
1256
1237
  });
1257
1238
  }
@@ -1267,7 +1248,7 @@ export const de_GetDeviceCommand = async (output, context) => {
1267
1248
  $metadata: deserializeMetadata(output),
1268
1249
  ...contents,
1269
1250
  };
1270
- return Promise.resolve(response);
1251
+ return response;
1271
1252
  };
1272
1253
  const de_GetDeviceCommandError = async (output, context) => {
1273
1254
  const parsedOutput = {
@@ -1290,10 +1271,9 @@ const de_GetDeviceCommandError = async (output, context) => {
1290
1271
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1291
1272
  default:
1292
1273
  const parsedBody = parsedOutput.body;
1293
- throwDefaultError({
1274
+ return throwDefaultError({
1294
1275
  output,
1295
1276
  parsedBody,
1296
- exceptionCtor: __BaseException,
1297
1277
  errorCode,
1298
1278
  });
1299
1279
  }
@@ -1304,12 +1284,12 @@ export const de_GetDeviceInstanceCommand = async (output, context) => {
1304
1284
  }
1305
1285
  const data = await parseBody(output.body, context);
1306
1286
  let contents = {};
1307
- contents = de_GetDeviceInstanceResult(data, context);
1287
+ contents = _json(data);
1308
1288
  const response = {
1309
1289
  $metadata: deserializeMetadata(output),
1310
1290
  ...contents,
1311
1291
  };
1312
- return Promise.resolve(response);
1292
+ return response;
1313
1293
  };
1314
1294
  const de_GetDeviceInstanceCommandError = async (output, context) => {
1315
1295
  const parsedOutput = {
@@ -1332,10 +1312,9 @@ const de_GetDeviceInstanceCommandError = async (output, context) => {
1332
1312
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1333
1313
  default:
1334
1314
  const parsedBody = parsedOutput.body;
1335
- throwDefaultError({
1315
+ return throwDefaultError({
1336
1316
  output,
1337
1317
  parsedBody,
1338
- exceptionCtor: __BaseException,
1339
1318
  errorCode,
1340
1319
  });
1341
1320
  }
@@ -1346,12 +1325,12 @@ export const de_GetDevicePoolCommand = async (output, context) => {
1346
1325
  }
1347
1326
  const data = await parseBody(output.body, context);
1348
1327
  let contents = {};
1349
- contents = de_GetDevicePoolResult(data, context);
1328
+ contents = _json(data);
1350
1329
  const response = {
1351
1330
  $metadata: deserializeMetadata(output),
1352
1331
  ...contents,
1353
1332
  };
1354
- return Promise.resolve(response);
1333
+ return response;
1355
1334
  };
1356
1335
  const de_GetDevicePoolCommandError = async (output, context) => {
1357
1336
  const parsedOutput = {
@@ -1374,10 +1353,9 @@ const de_GetDevicePoolCommandError = async (output, context) => {
1374
1353
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1375
1354
  default:
1376
1355
  const parsedBody = parsedOutput.body;
1377
- throwDefaultError({
1356
+ return throwDefaultError({
1378
1357
  output,
1379
1358
  parsedBody,
1380
- exceptionCtor: __BaseException,
1381
1359
  errorCode,
1382
1360
  });
1383
1361
  }
@@ -1393,7 +1371,7 @@ export const de_GetDevicePoolCompatibilityCommand = async (output, context) => {
1393
1371
  $metadata: deserializeMetadata(output),
1394
1372
  ...contents,
1395
1373
  };
1396
- return Promise.resolve(response);
1374
+ return response;
1397
1375
  };
1398
1376
  const de_GetDevicePoolCompatibilityCommandError = async (output, context) => {
1399
1377
  const parsedOutput = {
@@ -1416,10 +1394,9 @@ const de_GetDevicePoolCompatibilityCommandError = async (output, context) => {
1416
1394
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1417
1395
  default:
1418
1396
  const parsedBody = parsedOutput.body;
1419
- throwDefaultError({
1397
+ return throwDefaultError({
1420
1398
  output,
1421
1399
  parsedBody,
1422
- exceptionCtor: __BaseException,
1423
1400
  errorCode,
1424
1401
  });
1425
1402
  }
@@ -1430,12 +1407,12 @@ export const de_GetInstanceProfileCommand = async (output, context) => {
1430
1407
  }
1431
1408
  const data = await parseBody(output.body, context);
1432
1409
  let contents = {};
1433
- contents = de_GetInstanceProfileResult(data, context);
1410
+ contents = _json(data);
1434
1411
  const response = {
1435
1412
  $metadata: deserializeMetadata(output),
1436
1413
  ...contents,
1437
1414
  };
1438
- return Promise.resolve(response);
1415
+ return response;
1439
1416
  };
1440
1417
  const de_GetInstanceProfileCommandError = async (output, context) => {
1441
1418
  const parsedOutput = {
@@ -1458,10 +1435,9 @@ const de_GetInstanceProfileCommandError = async (output, context) => {
1458
1435
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1459
1436
  default:
1460
1437
  const parsedBody = parsedOutput.body;
1461
- throwDefaultError({
1438
+ return throwDefaultError({
1462
1439
  output,
1463
1440
  parsedBody,
1464
- exceptionCtor: __BaseException,
1465
1441
  errorCode,
1466
1442
  });
1467
1443
  }
@@ -1477,7 +1453,7 @@ export const de_GetJobCommand = async (output, context) => {
1477
1453
  $metadata: deserializeMetadata(output),
1478
1454
  ...contents,
1479
1455
  };
1480
- return Promise.resolve(response);
1456
+ return response;
1481
1457
  };
1482
1458
  const de_GetJobCommandError = async (output, context) => {
1483
1459
  const parsedOutput = {
@@ -1500,10 +1476,9 @@ const de_GetJobCommandError = async (output, context) => {
1500
1476
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1501
1477
  default:
1502
1478
  const parsedBody = parsedOutput.body;
1503
- throwDefaultError({
1479
+ return throwDefaultError({
1504
1480
  output,
1505
1481
  parsedBody,
1506
- exceptionCtor: __BaseException,
1507
1482
  errorCode,
1508
1483
  });
1509
1484
  }
@@ -1514,12 +1489,12 @@ export const de_GetNetworkProfileCommand = async (output, context) => {
1514
1489
  }
1515
1490
  const data = await parseBody(output.body, context);
1516
1491
  let contents = {};
1517
- contents = de_GetNetworkProfileResult(data, context);
1492
+ contents = _json(data);
1518
1493
  const response = {
1519
1494
  $metadata: deserializeMetadata(output),
1520
1495
  ...contents,
1521
1496
  };
1522
- return Promise.resolve(response);
1497
+ return response;
1523
1498
  };
1524
1499
  const de_GetNetworkProfileCommandError = async (output, context) => {
1525
1500
  const parsedOutput = {
@@ -1542,10 +1517,9 @@ const de_GetNetworkProfileCommandError = async (output, context) => {
1542
1517
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1543
1518
  default:
1544
1519
  const parsedBody = parsedOutput.body;
1545
- throwDefaultError({
1520
+ return throwDefaultError({
1546
1521
  output,
1547
1522
  parsedBody,
1548
- exceptionCtor: __BaseException,
1549
1523
  errorCode,
1550
1524
  });
1551
1525
  }
@@ -1561,7 +1535,7 @@ export const de_GetOfferingStatusCommand = async (output, context) => {
1561
1535
  $metadata: deserializeMetadata(output),
1562
1536
  ...contents,
1563
1537
  };
1564
- return Promise.resolve(response);
1538
+ return response;
1565
1539
  };
1566
1540
  const de_GetOfferingStatusCommandError = async (output, context) => {
1567
1541
  const parsedOutput = {
@@ -1587,10 +1561,9 @@ const de_GetOfferingStatusCommandError = async (output, context) => {
1587
1561
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1588
1562
  default:
1589
1563
  const parsedBody = parsedOutput.body;
1590
- throwDefaultError({
1564
+ return throwDefaultError({
1591
1565
  output,
1592
1566
  parsedBody,
1593
- exceptionCtor: __BaseException,
1594
1567
  errorCode,
1595
1568
  });
1596
1569
  }
@@ -1606,7 +1579,7 @@ export const de_GetProjectCommand = async (output, context) => {
1606
1579
  $metadata: deserializeMetadata(output),
1607
1580
  ...contents,
1608
1581
  };
1609
- return Promise.resolve(response);
1582
+ return response;
1610
1583
  };
1611
1584
  const de_GetProjectCommandError = async (output, context) => {
1612
1585
  const parsedOutput = {
@@ -1629,10 +1602,9 @@ const de_GetProjectCommandError = async (output, context) => {
1629
1602
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1630
1603
  default:
1631
1604
  const parsedBody = parsedOutput.body;
1632
- throwDefaultError({
1605
+ return throwDefaultError({
1633
1606
  output,
1634
1607
  parsedBody,
1635
- exceptionCtor: __BaseException,
1636
1608
  errorCode,
1637
1609
  });
1638
1610
  }
@@ -1648,7 +1620,7 @@ export const de_GetRemoteAccessSessionCommand = async (output, context) => {
1648
1620
  $metadata: deserializeMetadata(output),
1649
1621
  ...contents,
1650
1622
  };
1651
- return Promise.resolve(response);
1623
+ return response;
1652
1624
  };
1653
1625
  const de_GetRemoteAccessSessionCommandError = async (output, context) => {
1654
1626
  const parsedOutput = {
@@ -1671,10 +1643,9 @@ const de_GetRemoteAccessSessionCommandError = async (output, context) => {
1671
1643
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1672
1644
  default:
1673
1645
  const parsedBody = parsedOutput.body;
1674
- throwDefaultError({
1646
+ return throwDefaultError({
1675
1647
  output,
1676
1648
  parsedBody,
1677
- exceptionCtor: __BaseException,
1678
1649
  errorCode,
1679
1650
  });
1680
1651
  }
@@ -1690,7 +1661,7 @@ export const de_GetRunCommand = async (output, context) => {
1690
1661
  $metadata: deserializeMetadata(output),
1691
1662
  ...contents,
1692
1663
  };
1693
- return Promise.resolve(response);
1664
+ return response;
1694
1665
  };
1695
1666
  const de_GetRunCommandError = async (output, context) => {
1696
1667
  const parsedOutput = {
@@ -1713,10 +1684,9 @@ const de_GetRunCommandError = async (output, context) => {
1713
1684
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1714
1685
  default:
1715
1686
  const parsedBody = parsedOutput.body;
1716
- throwDefaultError({
1687
+ return throwDefaultError({
1717
1688
  output,
1718
1689
  parsedBody,
1719
- exceptionCtor: __BaseException,
1720
1690
  errorCode,
1721
1691
  });
1722
1692
  }
@@ -1732,7 +1702,7 @@ export const de_GetSuiteCommand = async (output, context) => {
1732
1702
  $metadata: deserializeMetadata(output),
1733
1703
  ...contents,
1734
1704
  };
1735
- return Promise.resolve(response);
1705
+ return response;
1736
1706
  };
1737
1707
  const de_GetSuiteCommandError = async (output, context) => {
1738
1708
  const parsedOutput = {
@@ -1755,10 +1725,9 @@ const de_GetSuiteCommandError = async (output, context) => {
1755
1725
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1756
1726
  default:
1757
1727
  const parsedBody = parsedOutput.body;
1758
- throwDefaultError({
1728
+ return throwDefaultError({
1759
1729
  output,
1760
1730
  parsedBody,
1761
- exceptionCtor: __BaseException,
1762
1731
  errorCode,
1763
1732
  });
1764
1733
  }
@@ -1774,7 +1743,7 @@ export const de_GetTestCommand = async (output, context) => {
1774
1743
  $metadata: deserializeMetadata(output),
1775
1744
  ...contents,
1776
1745
  };
1777
- return Promise.resolve(response);
1746
+ return response;
1778
1747
  };
1779
1748
  const de_GetTestCommandError = async (output, context) => {
1780
1749
  const parsedOutput = {
@@ -1797,10 +1766,9 @@ const de_GetTestCommandError = async (output, context) => {
1797
1766
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1798
1767
  default:
1799
1768
  const parsedBody = parsedOutput.body;
1800
- throwDefaultError({
1769
+ return throwDefaultError({
1801
1770
  output,
1802
1771
  parsedBody,
1803
- exceptionCtor: __BaseException,
1804
1772
  errorCode,
1805
1773
  });
1806
1774
  }
@@ -1816,7 +1784,7 @@ export const de_GetTestGridProjectCommand = async (output, context) => {
1816
1784
  $metadata: deserializeMetadata(output),
1817
1785
  ...contents,
1818
1786
  };
1819
- return Promise.resolve(response);
1787
+ return response;
1820
1788
  };
1821
1789
  const de_GetTestGridProjectCommandError = async (output, context) => {
1822
1790
  const parsedOutput = {
@@ -1836,10 +1804,9 @@ const de_GetTestGridProjectCommandError = async (output, context) => {
1836
1804
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1837
1805
  default:
1838
1806
  const parsedBody = parsedOutput.body;
1839
- throwDefaultError({
1807
+ return throwDefaultError({
1840
1808
  output,
1841
1809
  parsedBody,
1842
- exceptionCtor: __BaseException,
1843
1810
  errorCode,
1844
1811
  });
1845
1812
  }
@@ -1855,7 +1822,7 @@ export const de_GetTestGridSessionCommand = async (output, context) => {
1855
1822
  $metadata: deserializeMetadata(output),
1856
1823
  ...contents,
1857
1824
  };
1858
- return Promise.resolve(response);
1825
+ return response;
1859
1826
  };
1860
1827
  const de_GetTestGridSessionCommandError = async (output, context) => {
1861
1828
  const parsedOutput = {
@@ -1875,10 +1842,9 @@ const de_GetTestGridSessionCommandError = async (output, context) => {
1875
1842
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1876
1843
  default:
1877
1844
  const parsedBody = parsedOutput.body;
1878
- throwDefaultError({
1845
+ return throwDefaultError({
1879
1846
  output,
1880
1847
  parsedBody,
1881
- exceptionCtor: __BaseException,
1882
1848
  errorCode,
1883
1849
  });
1884
1850
  }
@@ -1894,7 +1860,7 @@ export const de_GetUploadCommand = async (output, context) => {
1894
1860
  $metadata: deserializeMetadata(output),
1895
1861
  ...contents,
1896
1862
  };
1897
- return Promise.resolve(response);
1863
+ return response;
1898
1864
  };
1899
1865
  const de_GetUploadCommandError = async (output, context) => {
1900
1866
  const parsedOutput = {
@@ -1917,10 +1883,9 @@ const de_GetUploadCommandError = async (output, context) => {
1917
1883
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1918
1884
  default:
1919
1885
  const parsedBody = parsedOutput.body;
1920
- throwDefaultError({
1886
+ return throwDefaultError({
1921
1887
  output,
1922
1888
  parsedBody,
1923
- exceptionCtor: __BaseException,
1924
1889
  errorCode,
1925
1890
  });
1926
1891
  }
@@ -1931,12 +1896,12 @@ export const de_GetVPCEConfigurationCommand = async (output, context) => {
1931
1896
  }
1932
1897
  const data = await parseBody(output.body, context);
1933
1898
  let contents = {};
1934
- contents = de_GetVPCEConfigurationResult(data, context);
1899
+ contents = _json(data);
1935
1900
  const response = {
1936
1901
  $metadata: deserializeMetadata(output),
1937
1902
  ...contents,
1938
1903
  };
1939
- return Promise.resolve(response);
1904
+ return response;
1940
1905
  };
1941
1906
  const de_GetVPCEConfigurationCommandError = async (output, context) => {
1942
1907
  const parsedOutput = {
@@ -1956,10 +1921,9 @@ const de_GetVPCEConfigurationCommandError = async (output, context) => {
1956
1921
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1957
1922
  default:
1958
1923
  const parsedBody = parsedOutput.body;
1959
- throwDefaultError({
1924
+ return throwDefaultError({
1960
1925
  output,
1961
1926
  parsedBody,
1962
- exceptionCtor: __BaseException,
1963
1927
  errorCode,
1964
1928
  });
1965
1929
  }
@@ -1975,7 +1939,7 @@ export const de_InstallToRemoteAccessSessionCommand = async (output, context) =>
1975
1939
  $metadata: deserializeMetadata(output),
1976
1940
  ...contents,
1977
1941
  };
1978
- return Promise.resolve(response);
1942
+ return response;
1979
1943
  };
1980
1944
  const de_InstallToRemoteAccessSessionCommandError = async (output, context) => {
1981
1945
  const parsedOutput = {
@@ -1998,10 +1962,9 @@ const de_InstallToRemoteAccessSessionCommandError = async (output, context) => {
1998
1962
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1999
1963
  default:
2000
1964
  const parsedBody = parsedOutput.body;
2001
- throwDefaultError({
1965
+ return throwDefaultError({
2002
1966
  output,
2003
1967
  parsedBody,
2004
- exceptionCtor: __BaseException,
2005
1968
  errorCode,
2006
1969
  });
2007
1970
  }
@@ -2012,12 +1975,12 @@ export const de_ListArtifactsCommand = async (output, context) => {
2012
1975
  }
2013
1976
  const data = await parseBody(output.body, context);
2014
1977
  let contents = {};
2015
- contents = de_ListArtifactsResult(data, context);
1978
+ contents = _json(data);
2016
1979
  const response = {
2017
1980
  $metadata: deserializeMetadata(output),
2018
1981
  ...contents,
2019
1982
  };
2020
- return Promise.resolve(response);
1983
+ return response;
2021
1984
  };
2022
1985
  const de_ListArtifactsCommandError = async (output, context) => {
2023
1986
  const parsedOutput = {
@@ -2040,10 +2003,9 @@ const de_ListArtifactsCommandError = async (output, context) => {
2040
2003
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2041
2004
  default:
2042
2005
  const parsedBody = parsedOutput.body;
2043
- throwDefaultError({
2006
+ return throwDefaultError({
2044
2007
  output,
2045
2008
  parsedBody,
2046
- exceptionCtor: __BaseException,
2047
2009
  errorCode,
2048
2010
  });
2049
2011
  }
@@ -2054,12 +2016,12 @@ export const de_ListDeviceInstancesCommand = async (output, context) => {
2054
2016
  }
2055
2017
  const data = await parseBody(output.body, context);
2056
2018
  let contents = {};
2057
- contents = de_ListDeviceInstancesResult(data, context);
2019
+ contents = _json(data);
2058
2020
  const response = {
2059
2021
  $metadata: deserializeMetadata(output),
2060
2022
  ...contents,
2061
2023
  };
2062
- return Promise.resolve(response);
2024
+ return response;
2063
2025
  };
2064
2026
  const de_ListDeviceInstancesCommandError = async (output, context) => {
2065
2027
  const parsedOutput = {
@@ -2082,10 +2044,9 @@ const de_ListDeviceInstancesCommandError = async (output, context) => {
2082
2044
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2083
2045
  default:
2084
2046
  const parsedBody = parsedOutput.body;
2085
- throwDefaultError({
2047
+ return throwDefaultError({
2086
2048
  output,
2087
2049
  parsedBody,
2088
- exceptionCtor: __BaseException,
2089
2050
  errorCode,
2090
2051
  });
2091
2052
  }
@@ -2096,12 +2057,12 @@ export const de_ListDevicePoolsCommand = async (output, context) => {
2096
2057
  }
2097
2058
  const data = await parseBody(output.body, context);
2098
2059
  let contents = {};
2099
- contents = de_ListDevicePoolsResult(data, context);
2060
+ contents = _json(data);
2100
2061
  const response = {
2101
2062
  $metadata: deserializeMetadata(output),
2102
2063
  ...contents,
2103
2064
  };
2104
- return Promise.resolve(response);
2065
+ return response;
2105
2066
  };
2106
2067
  const de_ListDevicePoolsCommandError = async (output, context) => {
2107
2068
  const parsedOutput = {
@@ -2124,10 +2085,9 @@ const de_ListDevicePoolsCommandError = async (output, context) => {
2124
2085
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2125
2086
  default:
2126
2087
  const parsedBody = parsedOutput.body;
2127
- throwDefaultError({
2088
+ return throwDefaultError({
2128
2089
  output,
2129
2090
  parsedBody,
2130
- exceptionCtor: __BaseException,
2131
2091
  errorCode,
2132
2092
  });
2133
2093
  }
@@ -2143,7 +2103,7 @@ export const de_ListDevicesCommand = async (output, context) => {
2143
2103
  $metadata: deserializeMetadata(output),
2144
2104
  ...contents,
2145
2105
  };
2146
- return Promise.resolve(response);
2106
+ return response;
2147
2107
  };
2148
2108
  const de_ListDevicesCommandError = async (output, context) => {
2149
2109
  const parsedOutput = {
@@ -2166,10 +2126,9 @@ const de_ListDevicesCommandError = async (output, context) => {
2166
2126
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2167
2127
  default:
2168
2128
  const parsedBody = parsedOutput.body;
2169
- throwDefaultError({
2129
+ return throwDefaultError({
2170
2130
  output,
2171
2131
  parsedBody,
2172
- exceptionCtor: __BaseException,
2173
2132
  errorCode,
2174
2133
  });
2175
2134
  }
@@ -2180,12 +2139,12 @@ export const de_ListInstanceProfilesCommand = async (output, context) => {
2180
2139
  }
2181
2140
  const data = await parseBody(output.body, context);
2182
2141
  let contents = {};
2183
- contents = de_ListInstanceProfilesResult(data, context);
2142
+ contents = _json(data);
2184
2143
  const response = {
2185
2144
  $metadata: deserializeMetadata(output),
2186
2145
  ...contents,
2187
2146
  };
2188
- return Promise.resolve(response);
2147
+ return response;
2189
2148
  };
2190
2149
  const de_ListInstanceProfilesCommandError = async (output, context) => {
2191
2150
  const parsedOutput = {
@@ -2208,10 +2167,9 @@ const de_ListInstanceProfilesCommandError = async (output, context) => {
2208
2167
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2209
2168
  default:
2210
2169
  const parsedBody = parsedOutput.body;
2211
- throwDefaultError({
2170
+ return throwDefaultError({
2212
2171
  output,
2213
2172
  parsedBody,
2214
- exceptionCtor: __BaseException,
2215
2173
  errorCode,
2216
2174
  });
2217
2175
  }
@@ -2227,7 +2185,7 @@ export const de_ListJobsCommand = async (output, context) => {
2227
2185
  $metadata: deserializeMetadata(output),
2228
2186
  ...contents,
2229
2187
  };
2230
- return Promise.resolve(response);
2188
+ return response;
2231
2189
  };
2232
2190
  const de_ListJobsCommandError = async (output, context) => {
2233
2191
  const parsedOutput = {
@@ -2250,10 +2208,9 @@ const de_ListJobsCommandError = async (output, context) => {
2250
2208
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2251
2209
  default:
2252
2210
  const parsedBody = parsedOutput.body;
2253
- throwDefaultError({
2211
+ return throwDefaultError({
2254
2212
  output,
2255
2213
  parsedBody,
2256
- exceptionCtor: __BaseException,
2257
2214
  errorCode,
2258
2215
  });
2259
2216
  }
@@ -2264,12 +2221,12 @@ export const de_ListNetworkProfilesCommand = async (output, context) => {
2264
2221
  }
2265
2222
  const data = await parseBody(output.body, context);
2266
2223
  let contents = {};
2267
- contents = de_ListNetworkProfilesResult(data, context);
2224
+ contents = _json(data);
2268
2225
  const response = {
2269
2226
  $metadata: deserializeMetadata(output),
2270
2227
  ...contents,
2271
2228
  };
2272
- return Promise.resolve(response);
2229
+ return response;
2273
2230
  };
2274
2231
  const de_ListNetworkProfilesCommandError = async (output, context) => {
2275
2232
  const parsedOutput = {
@@ -2292,10 +2249,9 @@ const de_ListNetworkProfilesCommandError = async (output, context) => {
2292
2249
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2293
2250
  default:
2294
2251
  const parsedBody = parsedOutput.body;
2295
- throwDefaultError({
2252
+ return throwDefaultError({
2296
2253
  output,
2297
2254
  parsedBody,
2298
- exceptionCtor: __BaseException,
2299
2255
  errorCode,
2300
2256
  });
2301
2257
  }
@@ -2306,12 +2262,12 @@ export const de_ListOfferingPromotionsCommand = async (output, context) => {
2306
2262
  }
2307
2263
  const data = await parseBody(output.body, context);
2308
2264
  let contents = {};
2309
- contents = de_ListOfferingPromotionsResult(data, context);
2265
+ contents = _json(data);
2310
2266
  const response = {
2311
2267
  $metadata: deserializeMetadata(output),
2312
2268
  ...contents,
2313
2269
  };
2314
- return Promise.resolve(response);
2270
+ return response;
2315
2271
  };
2316
2272
  const de_ListOfferingPromotionsCommandError = async (output, context) => {
2317
2273
  const parsedOutput = {
@@ -2337,10 +2293,9 @@ const de_ListOfferingPromotionsCommandError = async (output, context) => {
2337
2293
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2338
2294
  default:
2339
2295
  const parsedBody = parsedOutput.body;
2340
- throwDefaultError({
2296
+ return throwDefaultError({
2341
2297
  output,
2342
2298
  parsedBody,
2343
- exceptionCtor: __BaseException,
2344
2299
  errorCode,
2345
2300
  });
2346
2301
  }
@@ -2356,7 +2311,7 @@ export const de_ListOfferingsCommand = async (output, context) => {
2356
2311
  $metadata: deserializeMetadata(output),
2357
2312
  ...contents,
2358
2313
  };
2359
- return Promise.resolve(response);
2314
+ return response;
2360
2315
  };
2361
2316
  const de_ListOfferingsCommandError = async (output, context) => {
2362
2317
  const parsedOutput = {
@@ -2382,10 +2337,9 @@ const de_ListOfferingsCommandError = async (output, context) => {
2382
2337
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2383
2338
  default:
2384
2339
  const parsedBody = parsedOutput.body;
2385
- throwDefaultError({
2340
+ return throwDefaultError({
2386
2341
  output,
2387
2342
  parsedBody,
2388
- exceptionCtor: __BaseException,
2389
2343
  errorCode,
2390
2344
  });
2391
2345
  }
@@ -2401,7 +2355,7 @@ export const de_ListOfferingTransactionsCommand = async (output, context) => {
2401
2355
  $metadata: deserializeMetadata(output),
2402
2356
  ...contents,
2403
2357
  };
2404
- return Promise.resolve(response);
2358
+ return response;
2405
2359
  };
2406
2360
  const de_ListOfferingTransactionsCommandError = async (output, context) => {
2407
2361
  const parsedOutput = {
@@ -2427,10 +2381,9 @@ const de_ListOfferingTransactionsCommandError = async (output, context) => {
2427
2381
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2428
2382
  default:
2429
2383
  const parsedBody = parsedOutput.body;
2430
- throwDefaultError({
2384
+ return throwDefaultError({
2431
2385
  output,
2432
2386
  parsedBody,
2433
- exceptionCtor: __BaseException,
2434
2387
  errorCode,
2435
2388
  });
2436
2389
  }
@@ -2446,7 +2399,7 @@ export const de_ListProjectsCommand = async (output, context) => {
2446
2399
  $metadata: deserializeMetadata(output),
2447
2400
  ...contents,
2448
2401
  };
2449
- return Promise.resolve(response);
2402
+ return response;
2450
2403
  };
2451
2404
  const de_ListProjectsCommandError = async (output, context) => {
2452
2405
  const parsedOutput = {
@@ -2469,10 +2422,9 @@ const de_ListProjectsCommandError = async (output, context) => {
2469
2422
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2470
2423
  default:
2471
2424
  const parsedBody = parsedOutput.body;
2472
- throwDefaultError({
2425
+ return throwDefaultError({
2473
2426
  output,
2474
2427
  parsedBody,
2475
- exceptionCtor: __BaseException,
2476
2428
  errorCode,
2477
2429
  });
2478
2430
  }
@@ -2488,7 +2440,7 @@ export const de_ListRemoteAccessSessionsCommand = async (output, context) => {
2488
2440
  $metadata: deserializeMetadata(output),
2489
2441
  ...contents,
2490
2442
  };
2491
- return Promise.resolve(response);
2443
+ return response;
2492
2444
  };
2493
2445
  const de_ListRemoteAccessSessionsCommandError = async (output, context) => {
2494
2446
  const parsedOutput = {
@@ -2511,10 +2463,9 @@ const de_ListRemoteAccessSessionsCommandError = async (output, context) => {
2511
2463
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2512
2464
  default:
2513
2465
  const parsedBody = parsedOutput.body;
2514
- throwDefaultError({
2466
+ return throwDefaultError({
2515
2467
  output,
2516
2468
  parsedBody,
2517
- exceptionCtor: __BaseException,
2518
2469
  errorCode,
2519
2470
  });
2520
2471
  }
@@ -2530,7 +2481,7 @@ export const de_ListRunsCommand = async (output, context) => {
2530
2481
  $metadata: deserializeMetadata(output),
2531
2482
  ...contents,
2532
2483
  };
2533
- return Promise.resolve(response);
2484
+ return response;
2534
2485
  };
2535
2486
  const de_ListRunsCommandError = async (output, context) => {
2536
2487
  const parsedOutput = {
@@ -2553,10 +2504,9 @@ const de_ListRunsCommandError = async (output, context) => {
2553
2504
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2554
2505
  default:
2555
2506
  const parsedBody = parsedOutput.body;
2556
- throwDefaultError({
2507
+ return throwDefaultError({
2557
2508
  output,
2558
2509
  parsedBody,
2559
- exceptionCtor: __BaseException,
2560
2510
  errorCode,
2561
2511
  });
2562
2512
  }
@@ -2567,12 +2517,12 @@ export const de_ListSamplesCommand = async (output, context) => {
2567
2517
  }
2568
2518
  const data = await parseBody(output.body, context);
2569
2519
  let contents = {};
2570
- contents = de_ListSamplesResult(data, context);
2520
+ contents = _json(data);
2571
2521
  const response = {
2572
2522
  $metadata: deserializeMetadata(output),
2573
2523
  ...contents,
2574
2524
  };
2575
- return Promise.resolve(response);
2525
+ return response;
2576
2526
  };
2577
2527
  const de_ListSamplesCommandError = async (output, context) => {
2578
2528
  const parsedOutput = {
@@ -2595,10 +2545,9 @@ const de_ListSamplesCommandError = async (output, context) => {
2595
2545
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2596
2546
  default:
2597
2547
  const parsedBody = parsedOutput.body;
2598
- throwDefaultError({
2548
+ return throwDefaultError({
2599
2549
  output,
2600
2550
  parsedBody,
2601
- exceptionCtor: __BaseException,
2602
2551
  errorCode,
2603
2552
  });
2604
2553
  }
@@ -2614,7 +2563,7 @@ export const de_ListSuitesCommand = async (output, context) => {
2614
2563
  $metadata: deserializeMetadata(output),
2615
2564
  ...contents,
2616
2565
  };
2617
- return Promise.resolve(response);
2566
+ return response;
2618
2567
  };
2619
2568
  const de_ListSuitesCommandError = async (output, context) => {
2620
2569
  const parsedOutput = {
@@ -2637,10 +2586,9 @@ const de_ListSuitesCommandError = async (output, context) => {
2637
2586
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2638
2587
  default:
2639
2588
  const parsedBody = parsedOutput.body;
2640
- throwDefaultError({
2589
+ return throwDefaultError({
2641
2590
  output,
2642
2591
  parsedBody,
2643
- exceptionCtor: __BaseException,
2644
2592
  errorCode,
2645
2593
  });
2646
2594
  }
@@ -2651,12 +2599,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
2651
2599
  }
2652
2600
  const data = await parseBody(output.body, context);
2653
2601
  let contents = {};
2654
- contents = de_ListTagsForResourceResponse(data, context);
2602
+ contents = _json(data);
2655
2603
  const response = {
2656
2604
  $metadata: deserializeMetadata(output),
2657
2605
  ...contents,
2658
2606
  };
2659
- return Promise.resolve(response);
2607
+ return response;
2660
2608
  };
2661
2609
  const de_ListTagsForResourceCommandError = async (output, context) => {
2662
2610
  const parsedOutput = {
@@ -2676,10 +2624,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2676
2624
  throw await de_TagOperationExceptionRes(parsedOutput, context);
2677
2625
  default:
2678
2626
  const parsedBody = parsedOutput.body;
2679
- throwDefaultError({
2627
+ return throwDefaultError({
2680
2628
  output,
2681
2629
  parsedBody,
2682
- exceptionCtor: __BaseException,
2683
2630
  errorCode,
2684
2631
  });
2685
2632
  }
@@ -2695,7 +2642,7 @@ export const de_ListTestGridProjectsCommand = async (output, context) => {
2695
2642
  $metadata: deserializeMetadata(output),
2696
2643
  ...contents,
2697
2644
  };
2698
- return Promise.resolve(response);
2645
+ return response;
2699
2646
  };
2700
2647
  const de_ListTestGridProjectsCommandError = async (output, context) => {
2701
2648
  const parsedOutput = {
@@ -2712,10 +2659,9 @@ const de_ListTestGridProjectsCommandError = async (output, context) => {
2712
2659
  throw await de_InternalServiceExceptionRes(parsedOutput, context);
2713
2660
  default:
2714
2661
  const parsedBody = parsedOutput.body;
2715
- throwDefaultError({
2662
+ return throwDefaultError({
2716
2663
  output,
2717
2664
  parsedBody,
2718
- exceptionCtor: __BaseException,
2719
2665
  errorCode,
2720
2666
  });
2721
2667
  }
@@ -2731,7 +2677,7 @@ export const de_ListTestGridSessionActionsCommand = async (output, context) => {
2731
2677
  $metadata: deserializeMetadata(output),
2732
2678
  ...contents,
2733
2679
  };
2734
- return Promise.resolve(response);
2680
+ return response;
2735
2681
  };
2736
2682
  const de_ListTestGridSessionActionsCommandError = async (output, context) => {
2737
2683
  const parsedOutput = {
@@ -2751,10 +2697,9 @@ const de_ListTestGridSessionActionsCommandError = async (output, context) => {
2751
2697
  throw await de_NotFoundExceptionRes(parsedOutput, context);
2752
2698
  default:
2753
2699
  const parsedBody = parsedOutput.body;
2754
- throwDefaultError({
2700
+ return throwDefaultError({
2755
2701
  output,
2756
2702
  parsedBody,
2757
- exceptionCtor: __BaseException,
2758
2703
  errorCode,
2759
2704
  });
2760
2705
  }
@@ -2765,12 +2710,12 @@ export const de_ListTestGridSessionArtifactsCommand = async (output, context) =>
2765
2710
  }
2766
2711
  const data = await parseBody(output.body, context);
2767
2712
  let contents = {};
2768
- contents = de_ListTestGridSessionArtifactsResult(data, context);
2713
+ contents = _json(data);
2769
2714
  const response = {
2770
2715
  $metadata: deserializeMetadata(output),
2771
2716
  ...contents,
2772
2717
  };
2773
- return Promise.resolve(response);
2718
+ return response;
2774
2719
  };
2775
2720
  const de_ListTestGridSessionArtifactsCommandError = async (output, context) => {
2776
2721
  const parsedOutput = {
@@ -2790,10 +2735,9 @@ const de_ListTestGridSessionArtifactsCommandError = async (output, context) => {
2790
2735
  throw await de_NotFoundExceptionRes(parsedOutput, context);
2791
2736
  default:
2792
2737
  const parsedBody = parsedOutput.body;
2793
- throwDefaultError({
2738
+ return throwDefaultError({
2794
2739
  output,
2795
2740
  parsedBody,
2796
- exceptionCtor: __BaseException,
2797
2741
  errorCode,
2798
2742
  });
2799
2743
  }
@@ -2809,7 +2753,7 @@ export const de_ListTestGridSessionsCommand = async (output, context) => {
2809
2753
  $metadata: deserializeMetadata(output),
2810
2754
  ...contents,
2811
2755
  };
2812
- return Promise.resolve(response);
2756
+ return response;
2813
2757
  };
2814
2758
  const de_ListTestGridSessionsCommandError = async (output, context) => {
2815
2759
  const parsedOutput = {
@@ -2829,10 +2773,9 @@ const de_ListTestGridSessionsCommandError = async (output, context) => {
2829
2773
  throw await de_NotFoundExceptionRes(parsedOutput, context);
2830
2774
  default:
2831
2775
  const parsedBody = parsedOutput.body;
2832
- throwDefaultError({
2776
+ return throwDefaultError({
2833
2777
  output,
2834
2778
  parsedBody,
2835
- exceptionCtor: __BaseException,
2836
2779
  errorCode,
2837
2780
  });
2838
2781
  }
@@ -2848,7 +2791,7 @@ export const de_ListTestsCommand = async (output, context) => {
2848
2791
  $metadata: deserializeMetadata(output),
2849
2792
  ...contents,
2850
2793
  };
2851
- return Promise.resolve(response);
2794
+ return response;
2852
2795
  };
2853
2796
  const de_ListTestsCommandError = async (output, context) => {
2854
2797
  const parsedOutput = {
@@ -2871,10 +2814,9 @@ const de_ListTestsCommandError = async (output, context) => {
2871
2814
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2872
2815
  default:
2873
2816
  const parsedBody = parsedOutput.body;
2874
- throwDefaultError({
2817
+ return throwDefaultError({
2875
2818
  output,
2876
2819
  parsedBody,
2877
- exceptionCtor: __BaseException,
2878
2820
  errorCode,
2879
2821
  });
2880
2822
  }
@@ -2890,7 +2832,7 @@ export const de_ListUniqueProblemsCommand = async (output, context) => {
2890
2832
  $metadata: deserializeMetadata(output),
2891
2833
  ...contents,
2892
2834
  };
2893
- return Promise.resolve(response);
2835
+ return response;
2894
2836
  };
2895
2837
  const de_ListUniqueProblemsCommandError = async (output, context) => {
2896
2838
  const parsedOutput = {
@@ -2913,10 +2855,9 @@ const de_ListUniqueProblemsCommandError = async (output, context) => {
2913
2855
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2914
2856
  default:
2915
2857
  const parsedBody = parsedOutput.body;
2916
- throwDefaultError({
2858
+ return throwDefaultError({
2917
2859
  output,
2918
2860
  parsedBody,
2919
- exceptionCtor: __BaseException,
2920
2861
  errorCode,
2921
2862
  });
2922
2863
  }
@@ -2932,7 +2873,7 @@ export const de_ListUploadsCommand = async (output, context) => {
2932
2873
  $metadata: deserializeMetadata(output),
2933
2874
  ...contents,
2934
2875
  };
2935
- return Promise.resolve(response);
2876
+ return response;
2936
2877
  };
2937
2878
  const de_ListUploadsCommandError = async (output, context) => {
2938
2879
  const parsedOutput = {
@@ -2955,10 +2896,9 @@ const de_ListUploadsCommandError = async (output, context) => {
2955
2896
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2956
2897
  default:
2957
2898
  const parsedBody = parsedOutput.body;
2958
- throwDefaultError({
2899
+ return throwDefaultError({
2959
2900
  output,
2960
2901
  parsedBody,
2961
- exceptionCtor: __BaseException,
2962
2902
  errorCode,
2963
2903
  });
2964
2904
  }
@@ -2969,12 +2909,12 @@ export const de_ListVPCEConfigurationsCommand = async (output, context) => {
2969
2909
  }
2970
2910
  const data = await parseBody(output.body, context);
2971
2911
  let contents = {};
2972
- contents = de_ListVPCEConfigurationsResult(data, context);
2912
+ contents = _json(data);
2973
2913
  const response = {
2974
2914
  $metadata: deserializeMetadata(output),
2975
2915
  ...contents,
2976
2916
  };
2977
- return Promise.resolve(response);
2917
+ return response;
2978
2918
  };
2979
2919
  const de_ListVPCEConfigurationsCommandError = async (output, context) => {
2980
2920
  const parsedOutput = {
@@ -2991,10 +2931,9 @@ const de_ListVPCEConfigurationsCommandError = async (output, context) => {
2991
2931
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
2992
2932
  default:
2993
2933
  const parsedBody = parsedOutput.body;
2994
- throwDefaultError({
2934
+ return throwDefaultError({
2995
2935
  output,
2996
2936
  parsedBody,
2997
- exceptionCtor: __BaseException,
2998
2937
  errorCode,
2999
2938
  });
3000
2939
  }
@@ -3010,7 +2949,7 @@ export const de_PurchaseOfferingCommand = async (output, context) => {
3010
2949
  $metadata: deserializeMetadata(output),
3011
2950
  ...contents,
3012
2951
  };
3013
- return Promise.resolve(response);
2952
+ return response;
3014
2953
  };
3015
2954
  const de_PurchaseOfferingCommandError = async (output, context) => {
3016
2955
  const parsedOutput = {
@@ -3036,10 +2975,9 @@ const de_PurchaseOfferingCommandError = async (output, context) => {
3036
2975
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3037
2976
  default:
3038
2977
  const parsedBody = parsedOutput.body;
3039
- throwDefaultError({
2978
+ return throwDefaultError({
3040
2979
  output,
3041
2980
  parsedBody,
3042
- exceptionCtor: __BaseException,
3043
2981
  errorCode,
3044
2982
  });
3045
2983
  }
@@ -3055,7 +2993,7 @@ export const de_RenewOfferingCommand = async (output, context) => {
3055
2993
  $metadata: deserializeMetadata(output),
3056
2994
  ...contents,
3057
2995
  };
3058
- return Promise.resolve(response);
2996
+ return response;
3059
2997
  };
3060
2998
  const de_RenewOfferingCommandError = async (output, context) => {
3061
2999
  const parsedOutput = {
@@ -3081,10 +3019,9 @@ const de_RenewOfferingCommandError = async (output, context) => {
3081
3019
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3082
3020
  default:
3083
3021
  const parsedBody = parsedOutput.body;
3084
- throwDefaultError({
3022
+ return throwDefaultError({
3085
3023
  output,
3086
3024
  parsedBody,
3087
- exceptionCtor: __BaseException,
3088
3025
  errorCode,
3089
3026
  });
3090
3027
  }
@@ -3100,7 +3037,7 @@ export const de_ScheduleRunCommand = async (output, context) => {
3100
3037
  $metadata: deserializeMetadata(output),
3101
3038
  ...contents,
3102
3039
  };
3103
- return Promise.resolve(response);
3040
+ return response;
3104
3041
  };
3105
3042
  const de_ScheduleRunCommandError = async (output, context) => {
3106
3043
  const parsedOutput = {
@@ -3126,10 +3063,9 @@ const de_ScheduleRunCommandError = async (output, context) => {
3126
3063
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3127
3064
  default:
3128
3065
  const parsedBody = parsedOutput.body;
3129
- throwDefaultError({
3066
+ return throwDefaultError({
3130
3067
  output,
3131
3068
  parsedBody,
3132
- exceptionCtor: __BaseException,
3133
3069
  errorCode,
3134
3070
  });
3135
3071
  }
@@ -3145,7 +3081,7 @@ export const de_StopJobCommand = async (output, context) => {
3145
3081
  $metadata: deserializeMetadata(output),
3146
3082
  ...contents,
3147
3083
  };
3148
- return Promise.resolve(response);
3084
+ return response;
3149
3085
  };
3150
3086
  const de_StopJobCommandError = async (output, context) => {
3151
3087
  const parsedOutput = {
@@ -3168,10 +3104,9 @@ const de_StopJobCommandError = async (output, context) => {
3168
3104
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3169
3105
  default:
3170
3106
  const parsedBody = parsedOutput.body;
3171
- throwDefaultError({
3107
+ return throwDefaultError({
3172
3108
  output,
3173
3109
  parsedBody,
3174
- exceptionCtor: __BaseException,
3175
3110
  errorCode,
3176
3111
  });
3177
3112
  }
@@ -3187,7 +3122,7 @@ export const de_StopRemoteAccessSessionCommand = async (output, context) => {
3187
3122
  $metadata: deserializeMetadata(output),
3188
3123
  ...contents,
3189
3124
  };
3190
- return Promise.resolve(response);
3125
+ return response;
3191
3126
  };
3192
3127
  const de_StopRemoteAccessSessionCommandError = async (output, context) => {
3193
3128
  const parsedOutput = {
@@ -3210,10 +3145,9 @@ const de_StopRemoteAccessSessionCommandError = async (output, context) => {
3210
3145
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3211
3146
  default:
3212
3147
  const parsedBody = parsedOutput.body;
3213
- throwDefaultError({
3148
+ return throwDefaultError({
3214
3149
  output,
3215
3150
  parsedBody,
3216
- exceptionCtor: __BaseException,
3217
3151
  errorCode,
3218
3152
  });
3219
3153
  }
@@ -3229,7 +3163,7 @@ export const de_StopRunCommand = async (output, context) => {
3229
3163
  $metadata: deserializeMetadata(output),
3230
3164
  ...contents,
3231
3165
  };
3232
- return Promise.resolve(response);
3166
+ return response;
3233
3167
  };
3234
3168
  const de_StopRunCommandError = async (output, context) => {
3235
3169
  const parsedOutput = {
@@ -3252,10 +3186,9 @@ const de_StopRunCommandError = async (output, context) => {
3252
3186
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3253
3187
  default:
3254
3188
  const parsedBody = parsedOutput.body;
3255
- throwDefaultError({
3189
+ return throwDefaultError({
3256
3190
  output,
3257
3191
  parsedBody,
3258
- exceptionCtor: __BaseException,
3259
3192
  errorCode,
3260
3193
  });
3261
3194
  }
@@ -3266,12 +3199,12 @@ export const de_TagResourceCommand = async (output, context) => {
3266
3199
  }
3267
3200
  const data = await parseBody(output.body, context);
3268
3201
  let contents = {};
3269
- contents = de_TagResourceResponse(data, context);
3202
+ contents = _json(data);
3270
3203
  const response = {
3271
3204
  $metadata: deserializeMetadata(output),
3272
3205
  ...contents,
3273
3206
  };
3274
- return Promise.resolve(response);
3207
+ return response;
3275
3208
  };
3276
3209
  const de_TagResourceCommandError = async (output, context) => {
3277
3210
  const parsedOutput = {
@@ -3297,10 +3230,9 @@ const de_TagResourceCommandError = async (output, context) => {
3297
3230
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
3298
3231
  default:
3299
3232
  const parsedBody = parsedOutput.body;
3300
- throwDefaultError({
3233
+ return throwDefaultError({
3301
3234
  output,
3302
3235
  parsedBody,
3303
- exceptionCtor: __BaseException,
3304
3236
  errorCode,
3305
3237
  });
3306
3238
  }
@@ -3311,12 +3243,12 @@ export const de_UntagResourceCommand = async (output, context) => {
3311
3243
  }
3312
3244
  const data = await parseBody(output.body, context);
3313
3245
  let contents = {};
3314
- contents = de_UntagResourceResponse(data, context);
3246
+ contents = _json(data);
3315
3247
  const response = {
3316
3248
  $metadata: deserializeMetadata(output),
3317
3249
  ...contents,
3318
3250
  };
3319
- return Promise.resolve(response);
3251
+ return response;
3320
3252
  };
3321
3253
  const de_UntagResourceCommandError = async (output, context) => {
3322
3254
  const parsedOutput = {
@@ -3336,10 +3268,9 @@ const de_UntagResourceCommandError = async (output, context) => {
3336
3268
  throw await de_TagOperationExceptionRes(parsedOutput, context);
3337
3269
  default:
3338
3270
  const parsedBody = parsedOutput.body;
3339
- throwDefaultError({
3271
+ return throwDefaultError({
3340
3272
  output,
3341
3273
  parsedBody,
3342
- exceptionCtor: __BaseException,
3343
3274
  errorCode,
3344
3275
  });
3345
3276
  }
@@ -3350,12 +3281,12 @@ export const de_UpdateDeviceInstanceCommand = async (output, context) => {
3350
3281
  }
3351
3282
  const data = await parseBody(output.body, context);
3352
3283
  let contents = {};
3353
- contents = de_UpdateDeviceInstanceResult(data, context);
3284
+ contents = _json(data);
3354
3285
  const response = {
3355
3286
  $metadata: deserializeMetadata(output),
3356
3287
  ...contents,
3357
3288
  };
3358
- return Promise.resolve(response);
3289
+ return response;
3359
3290
  };
3360
3291
  const de_UpdateDeviceInstanceCommandError = async (output, context) => {
3361
3292
  const parsedOutput = {
@@ -3378,10 +3309,9 @@ const de_UpdateDeviceInstanceCommandError = async (output, context) => {
3378
3309
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3379
3310
  default:
3380
3311
  const parsedBody = parsedOutput.body;
3381
- throwDefaultError({
3312
+ return throwDefaultError({
3382
3313
  output,
3383
3314
  parsedBody,
3384
- exceptionCtor: __BaseException,
3385
3315
  errorCode,
3386
3316
  });
3387
3317
  }
@@ -3392,12 +3322,12 @@ export const de_UpdateDevicePoolCommand = async (output, context) => {
3392
3322
  }
3393
3323
  const data = await parseBody(output.body, context);
3394
3324
  let contents = {};
3395
- contents = de_UpdateDevicePoolResult(data, context);
3325
+ contents = _json(data);
3396
3326
  const response = {
3397
3327
  $metadata: deserializeMetadata(output),
3398
3328
  ...contents,
3399
3329
  };
3400
- return Promise.resolve(response);
3330
+ return response;
3401
3331
  };
3402
3332
  const de_UpdateDevicePoolCommandError = async (output, context) => {
3403
3333
  const parsedOutput = {
@@ -3420,10 +3350,9 @@ const de_UpdateDevicePoolCommandError = async (output, context) => {
3420
3350
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3421
3351
  default:
3422
3352
  const parsedBody = parsedOutput.body;
3423
- throwDefaultError({
3353
+ return throwDefaultError({
3424
3354
  output,
3425
3355
  parsedBody,
3426
- exceptionCtor: __BaseException,
3427
3356
  errorCode,
3428
3357
  });
3429
3358
  }
@@ -3434,12 +3363,12 @@ export const de_UpdateInstanceProfileCommand = async (output, context) => {
3434
3363
  }
3435
3364
  const data = await parseBody(output.body, context);
3436
3365
  let contents = {};
3437
- contents = de_UpdateInstanceProfileResult(data, context);
3366
+ contents = _json(data);
3438
3367
  const response = {
3439
3368
  $metadata: deserializeMetadata(output),
3440
3369
  ...contents,
3441
3370
  };
3442
- return Promise.resolve(response);
3371
+ return response;
3443
3372
  };
3444
3373
  const de_UpdateInstanceProfileCommandError = async (output, context) => {
3445
3374
  const parsedOutput = {
@@ -3462,10 +3391,9 @@ const de_UpdateInstanceProfileCommandError = async (output, context) => {
3462
3391
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3463
3392
  default:
3464
3393
  const parsedBody = parsedOutput.body;
3465
- throwDefaultError({
3394
+ return throwDefaultError({
3466
3395
  output,
3467
3396
  parsedBody,
3468
- exceptionCtor: __BaseException,
3469
3397
  errorCode,
3470
3398
  });
3471
3399
  }
@@ -3476,12 +3404,12 @@ export const de_UpdateNetworkProfileCommand = async (output, context) => {
3476
3404
  }
3477
3405
  const data = await parseBody(output.body, context);
3478
3406
  let contents = {};
3479
- contents = de_UpdateNetworkProfileResult(data, context);
3407
+ contents = _json(data);
3480
3408
  const response = {
3481
3409
  $metadata: deserializeMetadata(output),
3482
3410
  ...contents,
3483
3411
  };
3484
- return Promise.resolve(response);
3412
+ return response;
3485
3413
  };
3486
3414
  const de_UpdateNetworkProfileCommandError = async (output, context) => {
3487
3415
  const parsedOutput = {
@@ -3504,10 +3432,9 @@ const de_UpdateNetworkProfileCommandError = async (output, context) => {
3504
3432
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3505
3433
  default:
3506
3434
  const parsedBody = parsedOutput.body;
3507
- throwDefaultError({
3435
+ return throwDefaultError({
3508
3436
  output,
3509
3437
  parsedBody,
3510
- exceptionCtor: __BaseException,
3511
3438
  errorCode,
3512
3439
  });
3513
3440
  }
@@ -3523,7 +3450,7 @@ export const de_UpdateProjectCommand = async (output, context) => {
3523
3450
  $metadata: deserializeMetadata(output),
3524
3451
  ...contents,
3525
3452
  };
3526
- return Promise.resolve(response);
3453
+ return response;
3527
3454
  };
3528
3455
  const de_UpdateProjectCommandError = async (output, context) => {
3529
3456
  const parsedOutput = {
@@ -3546,10 +3473,9 @@ const de_UpdateProjectCommandError = async (output, context) => {
3546
3473
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3547
3474
  default:
3548
3475
  const parsedBody = parsedOutput.body;
3549
- throwDefaultError({
3476
+ return throwDefaultError({
3550
3477
  output,
3551
3478
  parsedBody,
3552
- exceptionCtor: __BaseException,
3553
3479
  errorCode,
3554
3480
  });
3555
3481
  }
@@ -3565,7 +3491,7 @@ export const de_UpdateTestGridProjectCommand = async (output, context) => {
3565
3491
  $metadata: deserializeMetadata(output),
3566
3492
  ...contents,
3567
3493
  };
3568
- return Promise.resolve(response);
3494
+ return response;
3569
3495
  };
3570
3496
  const de_UpdateTestGridProjectCommandError = async (output, context) => {
3571
3497
  const parsedOutput = {
@@ -3588,10 +3514,9 @@ const de_UpdateTestGridProjectCommandError = async (output, context) => {
3588
3514
  throw await de_NotFoundExceptionRes(parsedOutput, context);
3589
3515
  default:
3590
3516
  const parsedBody = parsedOutput.body;
3591
- throwDefaultError({
3517
+ return throwDefaultError({
3592
3518
  output,
3593
3519
  parsedBody,
3594
- exceptionCtor: __BaseException,
3595
3520
  errorCode,
3596
3521
  });
3597
3522
  }
@@ -3607,7 +3532,7 @@ export const de_UpdateUploadCommand = async (output, context) => {
3607
3532
  $metadata: deserializeMetadata(output),
3608
3533
  ...contents,
3609
3534
  };
3610
- return Promise.resolve(response);
3535
+ return response;
3611
3536
  };
3612
3537
  const de_UpdateUploadCommandError = async (output, context) => {
3613
3538
  const parsedOutput = {
@@ -3630,10 +3555,9 @@ const de_UpdateUploadCommandError = async (output, context) => {
3630
3555
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3631
3556
  default:
3632
3557
  const parsedBody = parsedOutput.body;
3633
- throwDefaultError({
3558
+ return throwDefaultError({
3634
3559
  output,
3635
3560
  parsedBody,
3636
- exceptionCtor: __BaseException,
3637
3561
  errorCode,
3638
3562
  });
3639
3563
  }
@@ -3644,12 +3568,12 @@ export const de_UpdateVPCEConfigurationCommand = async (output, context) => {
3644
3568
  }
3645
3569
  const data = await parseBody(output.body, context);
3646
3570
  let contents = {};
3647
- contents = de_UpdateVPCEConfigurationResult(data, context);
3571
+ contents = _json(data);
3648
3572
  const response = {
3649
3573
  $metadata: deserializeMetadata(output),
3650
3574
  ...contents,
3651
3575
  };
3652
- return Promise.resolve(response);
3576
+ return response;
3653
3577
  };
3654
3578
  const de_UpdateVPCEConfigurationCommandError = async (output, context) => {
3655
3579
  const parsedOutput = {
@@ -3672,17 +3596,16 @@ const de_UpdateVPCEConfigurationCommandError = async (output, context) => {
3672
3596
  throw await de_ServiceAccountExceptionRes(parsedOutput, context);
3673
3597
  default:
3674
3598
  const parsedBody = parsedOutput.body;
3675
- throwDefaultError({
3599
+ return throwDefaultError({
3676
3600
  output,
3677
3601
  parsedBody,
3678
- exceptionCtor: __BaseException,
3679
3602
  errorCode,
3680
3603
  });
3681
3604
  }
3682
3605
  };
3683
3606
  const de_ArgumentExceptionRes = async (parsedOutput, context) => {
3684
3607
  const body = parsedOutput.body;
3685
- const deserialized = de_ArgumentException(body, context);
3608
+ const deserialized = _json(body);
3686
3609
  const exception = new ArgumentException({
3687
3610
  $metadata: deserializeMetadata(parsedOutput),
3688
3611
  ...deserialized,
@@ -3691,7 +3614,7 @@ const de_ArgumentExceptionRes = async (parsedOutput, context) => {
3691
3614
  };
3692
3615
  const de_CannotDeleteExceptionRes = async (parsedOutput, context) => {
3693
3616
  const body = parsedOutput.body;
3694
- const deserialized = de_CannotDeleteException(body, context);
3617
+ const deserialized = _json(body);
3695
3618
  const exception = new CannotDeleteException({
3696
3619
  $metadata: deserializeMetadata(parsedOutput),
3697
3620
  ...deserialized,
@@ -3700,7 +3623,7 @@ const de_CannotDeleteExceptionRes = async (parsedOutput, context) => {
3700
3623
  };
3701
3624
  const de_IdempotencyExceptionRes = async (parsedOutput, context) => {
3702
3625
  const body = parsedOutput.body;
3703
- const deserialized = de_IdempotencyException(body, context);
3626
+ const deserialized = _json(body);
3704
3627
  const exception = new IdempotencyException({
3705
3628
  $metadata: deserializeMetadata(parsedOutput),
3706
3629
  ...deserialized,
@@ -3709,7 +3632,7 @@ const de_IdempotencyExceptionRes = async (parsedOutput, context) => {
3709
3632
  };
3710
3633
  const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
3711
3634
  const body = parsedOutput.body;
3712
- const deserialized = de_InternalServiceException(body, context);
3635
+ const deserialized = _json(body);
3713
3636
  const exception = new InternalServiceException({
3714
3637
  $metadata: deserializeMetadata(parsedOutput),
3715
3638
  ...deserialized,
@@ -3718,7 +3641,7 @@ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
3718
3641
  };
3719
3642
  const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
3720
3643
  const body = parsedOutput.body;
3721
- const deserialized = de_InvalidOperationException(body, context);
3644
+ const deserialized = _json(body);
3722
3645
  const exception = new InvalidOperationException({
3723
3646
  $metadata: deserializeMetadata(parsedOutput),
3724
3647
  ...deserialized,
@@ -3727,7 +3650,7 @@ const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
3727
3650
  };
3728
3651
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3729
3652
  const body = parsedOutput.body;
3730
- const deserialized = de_LimitExceededException(body, context);
3653
+ const deserialized = _json(body);
3731
3654
  const exception = new LimitExceededException({
3732
3655
  $metadata: deserializeMetadata(parsedOutput),
3733
3656
  ...deserialized,
@@ -3736,7 +3659,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3736
3659
  };
3737
3660
  const de_NotEligibleExceptionRes = async (parsedOutput, context) => {
3738
3661
  const body = parsedOutput.body;
3739
- const deserialized = de_NotEligibleException(body, context);
3662
+ const deserialized = _json(body);
3740
3663
  const exception = new NotEligibleException({
3741
3664
  $metadata: deserializeMetadata(parsedOutput),
3742
3665
  ...deserialized,
@@ -3745,7 +3668,7 @@ const de_NotEligibleExceptionRes = async (parsedOutput, context) => {
3745
3668
  };
3746
3669
  const de_NotFoundExceptionRes = async (parsedOutput, context) => {
3747
3670
  const body = parsedOutput.body;
3748
- const deserialized = de_NotFoundException(body, context);
3671
+ const deserialized = _json(body);
3749
3672
  const exception = new NotFoundException({
3750
3673
  $metadata: deserializeMetadata(parsedOutput),
3751
3674
  ...deserialized,
@@ -3754,7 +3677,7 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
3754
3677
  };
3755
3678
  const de_ServiceAccountExceptionRes = async (parsedOutput, context) => {
3756
3679
  const body = parsedOutput.body;
3757
- const deserialized = de_ServiceAccountException(body, context);
3680
+ const deserialized = _json(body);
3758
3681
  const exception = new ServiceAccountException({
3759
3682
  $metadata: deserializeMetadata(parsedOutput),
3760
3683
  ...deserialized,
@@ -3763,7 +3686,7 @@ const de_ServiceAccountExceptionRes = async (parsedOutput, context) => {
3763
3686
  };
3764
3687
  const de_TagOperationExceptionRes = async (parsedOutput, context) => {
3765
3688
  const body = parsedOutput.body;
3766
- const deserialized = de_TagOperationException(body, context);
3689
+ const deserialized = _json(body);
3767
3690
  const exception = new TagOperationException({
3768
3691
  $metadata: deserializeMetadata(parsedOutput),
3769
3692
  ...deserialized,
@@ -3772,7 +3695,7 @@ const de_TagOperationExceptionRes = async (parsedOutput, context) => {
3772
3695
  };
3773
3696
  const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
3774
3697
  const body = parsedOutput.body;
3775
- const deserialized = de_TagPolicyException(body, context);
3698
+ const deserialized = _json(body);
3776
3699
  const exception = new TagPolicyException({
3777
3700
  $metadata: deserializeMetadata(parsedOutput),
3778
3701
  ...deserialized,
@@ -3781,1528 +3704,385 @@ const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
3781
3704
  };
3782
3705
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
3783
3706
  const body = parsedOutput.body;
3784
- const deserialized = de_TooManyTagsException(body, context);
3707
+ const deserialized = _json(body);
3785
3708
  const exception = new TooManyTagsException({
3786
3709
  $metadata: deserializeMetadata(parsedOutput),
3787
3710
  ...deserialized,
3788
3711
  });
3789
3712
  return __decorateServiceException(exception, body);
3790
3713
  };
3791
- const se_AmazonResourceNames = (input, context) => {
3792
- return input
3793
- .filter((e) => e != null)
3794
- .map((entry) => {
3795
- return entry;
3796
- });
3797
- };
3798
- const se_AndroidPaths = (input, context) => {
3799
- return input
3800
- .filter((e) => e != null)
3801
- .map((entry) => {
3802
- return entry;
3803
- });
3804
- };
3805
- const se_CreateDevicePoolRequest = (input, context) => {
3806
- return {
3807
- ...(input.description != null && { description: input.description }),
3808
- ...(input.maxDevices != null && { maxDevices: input.maxDevices }),
3809
- ...(input.name != null && { name: input.name }),
3810
- ...(input.projectArn != null && { projectArn: input.projectArn }),
3811
- ...(input.rules != null && { rules: se_Rules(input.rules, context) }),
3812
- };
3813
- };
3814
- const se_CreateInstanceProfileRequest = (input, context) => {
3815
- return {
3816
- ...(input.description != null && { description: input.description }),
3817
- ...(input.excludeAppPackagesFromCleanup != null && {
3818
- excludeAppPackagesFromCleanup: se_PackageIds(input.excludeAppPackagesFromCleanup, context),
3819
- }),
3820
- ...(input.name != null && { name: input.name }),
3821
- ...(input.packageCleanup != null && { packageCleanup: input.packageCleanup }),
3822
- ...(input.rebootAfterUse != null && { rebootAfterUse: input.rebootAfterUse }),
3823
- };
3824
- };
3825
- const se_CreateNetworkProfileRequest = (input, context) => {
3826
- return {
3827
- ...(input.description != null && { description: input.description }),
3828
- ...(input.downlinkBandwidthBits != null && { downlinkBandwidthBits: input.downlinkBandwidthBits }),
3829
- ...(input.downlinkDelayMs != null && { downlinkDelayMs: input.downlinkDelayMs }),
3830
- ...(input.downlinkJitterMs != null && { downlinkJitterMs: input.downlinkJitterMs }),
3831
- ...(input.downlinkLossPercent != null && { downlinkLossPercent: input.downlinkLossPercent }),
3832
- ...(input.name != null && { name: input.name }),
3833
- ...(input.projectArn != null && { projectArn: input.projectArn }),
3834
- ...(input.type != null && { type: input.type }),
3835
- ...(input.uplinkBandwidthBits != null && { uplinkBandwidthBits: input.uplinkBandwidthBits }),
3836
- ...(input.uplinkDelayMs != null && { uplinkDelayMs: input.uplinkDelayMs }),
3837
- ...(input.uplinkJitterMs != null && { uplinkJitterMs: input.uplinkJitterMs }),
3838
- ...(input.uplinkLossPercent != null && { uplinkLossPercent: input.uplinkLossPercent }),
3839
- };
3840
- };
3841
- const se_CreateProjectRequest = (input, context) => {
3842
- return {
3843
- ...(input.defaultJobTimeoutMinutes != null && { defaultJobTimeoutMinutes: input.defaultJobTimeoutMinutes }),
3844
- ...(input.name != null && { name: input.name }),
3845
- ...(input.vpcConfig != null && { vpcConfig: se_VpcConfig(input.vpcConfig, context) }),
3846
- };
3847
- };
3848
- const se_CreateRemoteAccessSessionConfiguration = (input, context) => {
3849
- return {
3850
- ...(input.billingMethod != null && { billingMethod: input.billingMethod }),
3851
- ...(input.vpceConfigurationArns != null && {
3852
- vpceConfigurationArns: se_AmazonResourceNames(input.vpceConfigurationArns, context),
3853
- }),
3854
- };
3855
- };
3856
- const se_CreateRemoteAccessSessionRequest = (input, context) => {
3857
- return {
3858
- ...(input.clientId != null && { clientId: input.clientId }),
3859
- ...(input.configuration != null && {
3860
- configuration: se_CreateRemoteAccessSessionConfiguration(input.configuration, context),
3861
- }),
3862
- ...(input.deviceArn != null && { deviceArn: input.deviceArn }),
3863
- ...(input.instanceArn != null && { instanceArn: input.instanceArn }),
3864
- ...(input.interactionMode != null && { interactionMode: input.interactionMode }),
3865
- ...(input.name != null && { name: input.name }),
3866
- ...(input.projectArn != null && { projectArn: input.projectArn }),
3867
- ...(input.remoteDebugEnabled != null && { remoteDebugEnabled: input.remoteDebugEnabled }),
3868
- ...(input.remoteRecordAppArn != null && { remoteRecordAppArn: input.remoteRecordAppArn }),
3869
- ...(input.remoteRecordEnabled != null && { remoteRecordEnabled: input.remoteRecordEnabled }),
3870
- ...(input.skipAppResign != null && { skipAppResign: input.skipAppResign }),
3871
- ...(input.sshPublicKey != null && { sshPublicKey: input.sshPublicKey }),
3872
- };
3873
- };
3874
- const se_CreateTestGridProjectRequest = (input, context) => {
3875
- return {
3876
- ...(input.description != null && { description: input.description }),
3877
- ...(input.name != null && { name: input.name }),
3878
- ...(input.vpcConfig != null && { vpcConfig: se_TestGridVpcConfig(input.vpcConfig, context) }),
3879
- };
3880
- };
3881
- const se_CreateTestGridUrlRequest = (input, context) => {
3882
- return {
3883
- ...(input.expiresInSeconds != null && { expiresInSeconds: input.expiresInSeconds }),
3884
- ...(input.projectArn != null && { projectArn: input.projectArn }),
3885
- };
3886
- };
3887
- const se_CreateUploadRequest = (input, context) => {
3888
- return {
3889
- ...(input.contentType != null && { contentType: input.contentType }),
3890
- ...(input.name != null && { name: input.name }),
3891
- ...(input.projectArn != null && { projectArn: input.projectArn }),
3892
- ...(input.type != null && { type: input.type }),
3893
- };
3894
- };
3895
- const se_CreateVPCEConfigurationRequest = (input, context) => {
3896
- return {
3897
- ...(input.serviceDnsName != null && { serviceDnsName: input.serviceDnsName }),
3898
- ...(input.vpceConfigurationDescription != null && {
3899
- vpceConfigurationDescription: input.vpceConfigurationDescription,
3900
- }),
3901
- ...(input.vpceConfigurationName != null && { vpceConfigurationName: input.vpceConfigurationName }),
3902
- ...(input.vpceServiceName != null && { vpceServiceName: input.vpceServiceName }),
3903
- };
3904
- };
3905
- const se_CustomerArtifactPaths = (input, context) => {
3906
- return {
3907
- ...(input.androidPaths != null && { androidPaths: se_AndroidPaths(input.androidPaths, context) }),
3908
- ...(input.deviceHostPaths != null && { deviceHostPaths: se_DeviceHostPaths(input.deviceHostPaths, context) }),
3909
- ...(input.iosPaths != null && { iosPaths: se_IosPaths(input.iosPaths, context) }),
3910
- };
3911
- };
3912
- const se_DeleteDevicePoolRequest = (input, context) => {
3913
- return {
3914
- ...(input.arn != null && { arn: input.arn }),
3915
- };
3916
- };
3917
- const se_DeleteInstanceProfileRequest = (input, context) => {
3918
- return {
3919
- ...(input.arn != null && { arn: input.arn }),
3920
- };
3921
- };
3922
- const se_DeleteNetworkProfileRequest = (input, context) => {
3923
- return {
3924
- ...(input.arn != null && { arn: input.arn }),
3925
- };
3926
- };
3927
- const se_DeleteProjectRequest = (input, context) => {
3928
- return {
3929
- ...(input.arn != null && { arn: input.arn }),
3930
- };
3931
- };
3932
- const se_DeleteRemoteAccessSessionRequest = (input, context) => {
3933
- return {
3934
- ...(input.arn != null && { arn: input.arn }),
3935
- };
3936
- };
3937
- const se_DeleteRunRequest = (input, context) => {
3938
- return {
3939
- ...(input.arn != null && { arn: input.arn }),
3940
- };
3941
- };
3942
- const se_DeleteTestGridProjectRequest = (input, context) => {
3943
- return {
3944
- ...(input.projectArn != null && { projectArn: input.projectArn }),
3945
- };
3946
- };
3947
- const se_DeleteUploadRequest = (input, context) => {
3948
- return {
3949
- ...(input.arn != null && { arn: input.arn }),
3950
- };
3951
- };
3952
- const se_DeleteVPCEConfigurationRequest = (input, context) => {
3953
- return {
3954
- ...(input.arn != null && { arn: input.arn }),
3955
- };
3956
- };
3957
- const se_DeviceFilter = (input, context) => {
3958
- return {
3959
- ...(input.attribute != null && { attribute: input.attribute }),
3960
- ...(input.operator != null && { operator: input.operator }),
3961
- ...(input.values != null && { values: se_DeviceFilterValues(input.values, context) }),
3962
- };
3963
- };
3964
- const se_DeviceFilters = (input, context) => {
3965
- return input
3966
- .filter((e) => e != null)
3967
- .map((entry) => {
3968
- return se_DeviceFilter(entry, context);
3969
- });
3970
- };
3971
- const se_DeviceFilterValues = (input, context) => {
3972
- return input
3973
- .filter((e) => e != null)
3974
- .map((entry) => {
3975
- return entry;
3976
- });
3977
- };
3978
- const se_DeviceHostPaths = (input, context) => {
3979
- return input
3980
- .filter((e) => e != null)
3981
- .map((entry) => {
3982
- return entry;
3983
- });
3984
- };
3985
- const se_DeviceSelectionConfiguration = (input, context) => {
3986
- return {
3987
- ...(input.filters != null && { filters: se_DeviceFilters(input.filters, context) }),
3988
- ...(input.maxDevices != null && { maxDevices: input.maxDevices }),
3989
- };
3990
- };
3991
- const se_ExecutionConfiguration = (input, context) => {
3992
- return {
3993
- ...(input.accountsCleanup != null && { accountsCleanup: input.accountsCleanup }),
3994
- ...(input.appPackagesCleanup != null && { appPackagesCleanup: input.appPackagesCleanup }),
3995
- ...(input.jobTimeoutMinutes != null && { jobTimeoutMinutes: input.jobTimeoutMinutes }),
3996
- ...(input.skipAppResign != null && { skipAppResign: input.skipAppResign }),
3997
- ...(input.videoCapture != null && { videoCapture: input.videoCapture }),
3998
- };
3999
- };
4000
- const se_GetAccountSettingsRequest = (input, context) => {
4001
- return {};
4002
- };
4003
- const se_GetDeviceInstanceRequest = (input, context) => {
4004
- return {
4005
- ...(input.arn != null && { arn: input.arn }),
4006
- };
4007
- };
4008
3714
  const se_GetDevicePoolCompatibilityRequest = (input, context) => {
4009
- return {
4010
- ...(input.appArn != null && { appArn: input.appArn }),
4011
- ...(input.configuration != null && { configuration: se_ScheduleRunConfiguration(input.configuration, context) }),
4012
- ...(input.devicePoolArn != null && { devicePoolArn: input.devicePoolArn }),
4013
- ...(input.test != null && { test: se_ScheduleRunTest(input.test, context) }),
4014
- ...(input.testType != null && { testType: input.testType }),
4015
- };
4016
- };
4017
- const se_GetDevicePoolRequest = (input, context) => {
4018
- return {
4019
- ...(input.arn != null && { arn: input.arn }),
4020
- };
4021
- };
4022
- const se_GetDeviceRequest = (input, context) => {
4023
- return {
4024
- ...(input.arn != null && { arn: input.arn }),
4025
- };
4026
- };
4027
- const se_GetInstanceProfileRequest = (input, context) => {
4028
- return {
4029
- ...(input.arn != null && { arn: input.arn }),
4030
- };
4031
- };
4032
- const se_GetJobRequest = (input, context) => {
4033
- return {
4034
- ...(input.arn != null && { arn: input.arn }),
4035
- };
4036
- };
4037
- const se_GetNetworkProfileRequest = (input, context) => {
4038
- return {
4039
- ...(input.arn != null && { arn: input.arn }),
4040
- };
4041
- };
4042
- const se_GetOfferingStatusRequest = (input, context) => {
4043
- return {
4044
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4045
- };
4046
- };
4047
- const se_GetProjectRequest = (input, context) => {
4048
- return {
4049
- ...(input.arn != null && { arn: input.arn }),
4050
- };
4051
- };
4052
- const se_GetRemoteAccessSessionRequest = (input, context) => {
4053
- return {
4054
- ...(input.arn != null && { arn: input.arn }),
4055
- };
4056
- };
4057
- const se_GetRunRequest = (input, context) => {
4058
- return {
4059
- ...(input.arn != null && { arn: input.arn }),
4060
- };
4061
- };
4062
- const se_GetSuiteRequest = (input, context) => {
4063
- return {
4064
- ...(input.arn != null && { arn: input.arn }),
4065
- };
4066
- };
4067
- const se_GetTestGridProjectRequest = (input, context) => {
4068
- return {
4069
- ...(input.projectArn != null && { projectArn: input.projectArn }),
4070
- };
4071
- };
4072
- const se_GetTestGridSessionRequest = (input, context) => {
4073
- return {
4074
- ...(input.projectArn != null && { projectArn: input.projectArn }),
4075
- ...(input.sessionArn != null && { sessionArn: input.sessionArn }),
4076
- ...(input.sessionId != null && { sessionId: input.sessionId }),
4077
- };
4078
- };
4079
- const se_GetTestRequest = (input, context) => {
4080
- return {
4081
- ...(input.arn != null && { arn: input.arn }),
4082
- };
4083
- };
4084
- const se_GetUploadRequest = (input, context) => {
4085
- return {
4086
- ...(input.arn != null && { arn: input.arn }),
4087
- };
4088
- };
4089
- const se_GetVPCEConfigurationRequest = (input, context) => {
4090
- return {
4091
- ...(input.arn != null && { arn: input.arn }),
4092
- };
4093
- };
4094
- const se_InstallToRemoteAccessSessionRequest = (input, context) => {
4095
- return {
4096
- ...(input.appArn != null && { appArn: input.appArn }),
4097
- ...(input.remoteAccessSessionArn != null && { remoteAccessSessionArn: input.remoteAccessSessionArn }),
4098
- };
4099
- };
4100
- const se_InstanceLabels = (input, context) => {
4101
- return input
4102
- .filter((e) => e != null)
4103
- .map((entry) => {
4104
- return entry;
4105
- });
4106
- };
4107
- const se_IosPaths = (input, context) => {
4108
- return input
4109
- .filter((e) => e != null)
4110
- .map((entry) => {
4111
- return entry;
3715
+ return take(input, {
3716
+ appArn: [],
3717
+ configuration: (_) => se_ScheduleRunConfiguration(_, context),
3718
+ devicePoolArn: [],
3719
+ test: _json,
3720
+ testType: [],
4112
3721
  });
4113
3722
  };
4114
- const se_ListArtifactsRequest = (input, context) => {
4115
- return {
4116
- ...(input.arn != null && { arn: input.arn }),
4117
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4118
- ...(input.type != null && { type: input.type }),
4119
- };
4120
- };
4121
- const se_ListDeviceInstancesRequest = (input, context) => {
4122
- return {
4123
- ...(input.maxResults != null && { maxResults: input.maxResults }),
4124
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4125
- };
4126
- };
4127
- const se_ListDevicePoolsRequest = (input, context) => {
4128
- return {
4129
- ...(input.arn != null && { arn: input.arn }),
4130
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4131
- ...(input.type != null && { type: input.type }),
4132
- };
4133
- };
4134
- const se_ListDevicesRequest = (input, context) => {
4135
- return {
4136
- ...(input.arn != null && { arn: input.arn }),
4137
- ...(input.filters != null && { filters: se_DeviceFilters(input.filters, context) }),
4138
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4139
- };
4140
- };
4141
- const se_ListInstanceProfilesRequest = (input, context) => {
4142
- return {
4143
- ...(input.maxResults != null && { maxResults: input.maxResults }),
4144
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4145
- };
4146
- };
4147
- const se_ListJobsRequest = (input, context) => {
4148
- return {
4149
- ...(input.arn != null && { arn: input.arn }),
4150
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4151
- };
4152
- };
4153
- const se_ListNetworkProfilesRequest = (input, context) => {
4154
- return {
4155
- ...(input.arn != null && { arn: input.arn }),
4156
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4157
- ...(input.type != null && { type: input.type }),
4158
- };
4159
- };
4160
- const se_ListOfferingPromotionsRequest = (input, context) => {
4161
- return {
4162
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4163
- };
4164
- };
4165
- const se_ListOfferingsRequest = (input, context) => {
4166
- return {
4167
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4168
- };
4169
- };
4170
- const se_ListOfferingTransactionsRequest = (input, context) => {
4171
- return {
4172
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4173
- };
4174
- };
4175
- const se_ListProjectsRequest = (input, context) => {
4176
- return {
4177
- ...(input.arn != null && { arn: input.arn }),
4178
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4179
- };
4180
- };
4181
- const se_ListRemoteAccessSessionsRequest = (input, context) => {
4182
- return {
4183
- ...(input.arn != null && { arn: input.arn }),
4184
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4185
- };
4186
- };
4187
- const se_ListRunsRequest = (input, context) => {
4188
- return {
4189
- ...(input.arn != null && { arn: input.arn }),
4190
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4191
- };
4192
- };
4193
- const se_ListSamplesRequest = (input, context) => {
4194
- return {
4195
- ...(input.arn != null && { arn: input.arn }),
4196
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4197
- };
4198
- };
4199
- const se_ListSuitesRequest = (input, context) => {
4200
- return {
4201
- ...(input.arn != null && { arn: input.arn }),
4202
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4203
- };
4204
- };
4205
- const se_ListTagsForResourceRequest = (input, context) => {
4206
- return {
4207
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
4208
- };
4209
- };
4210
- const se_ListTestGridProjectsRequest = (input, context) => {
4211
- return {
4212
- ...(input.maxResult != null && { maxResult: input.maxResult }),
4213
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4214
- };
4215
- };
4216
- const se_ListTestGridSessionActionsRequest = (input, context) => {
4217
- return {
4218
- ...(input.maxResult != null && { maxResult: input.maxResult }),
4219
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4220
- ...(input.sessionArn != null && { sessionArn: input.sessionArn }),
4221
- };
4222
- };
4223
- const se_ListTestGridSessionArtifactsRequest = (input, context) => {
4224
- return {
4225
- ...(input.maxResult != null && { maxResult: input.maxResult }),
4226
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4227
- ...(input.sessionArn != null && { sessionArn: input.sessionArn }),
4228
- ...(input.type != null && { type: input.type }),
4229
- };
4230
- };
4231
3723
  const se_ListTestGridSessionsRequest = (input, context) => {
4232
- return {
4233
- ...(input.creationTimeAfter != null && { creationTimeAfter: Math.round(input.creationTimeAfter.getTime() / 1000) }),
4234
- ...(input.creationTimeBefore != null && {
4235
- creationTimeBefore: Math.round(input.creationTimeBefore.getTime() / 1000),
4236
- }),
4237
- ...(input.endTimeAfter != null && { endTimeAfter: Math.round(input.endTimeAfter.getTime() / 1000) }),
4238
- ...(input.endTimeBefore != null && { endTimeBefore: Math.round(input.endTimeBefore.getTime() / 1000) }),
4239
- ...(input.maxResult != null && { maxResult: input.maxResult }),
4240
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4241
- ...(input.projectArn != null && { projectArn: input.projectArn }),
4242
- ...(input.status != null && { status: input.status }),
4243
- };
4244
- };
4245
- const se_ListTestsRequest = (input, context) => {
4246
- return {
4247
- ...(input.arn != null && { arn: input.arn }),
4248
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4249
- };
4250
- };
4251
- const se_ListUniqueProblemsRequest = (input, context) => {
4252
- return {
4253
- ...(input.arn != null && { arn: input.arn }),
4254
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4255
- };
4256
- };
4257
- const se_ListUploadsRequest = (input, context) => {
4258
- return {
4259
- ...(input.arn != null && { arn: input.arn }),
4260
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4261
- ...(input.type != null && { type: input.type }),
4262
- };
4263
- };
4264
- const se_ListVPCEConfigurationsRequest = (input, context) => {
4265
- return {
4266
- ...(input.maxResults != null && { maxResults: input.maxResults }),
4267
- ...(input.nextToken != null && { nextToken: input.nextToken }),
4268
- };
4269
- };
4270
- const se_Location = (input, context) => {
4271
- return {
4272
- ...(input.latitude != null && { latitude: __serializeFloat(input.latitude) }),
4273
- ...(input.longitude != null && { longitude: __serializeFloat(input.longitude) }),
4274
- };
4275
- };
4276
- const se_PackageIds = (input, context) => {
4277
- return input
4278
- .filter((e) => e != null)
4279
- .map((entry) => {
4280
- return entry;
3724
+ return take(input, {
3725
+ creationTimeAfter: (_) => Math.round(_.getTime() / 1000),
3726
+ creationTimeBefore: (_) => Math.round(_.getTime() / 1000),
3727
+ endTimeAfter: (_) => Math.round(_.getTime() / 1000),
3728
+ endTimeBefore: (_) => Math.round(_.getTime() / 1000),
3729
+ maxResult: [],
3730
+ nextToken: [],
3731
+ projectArn: [],
3732
+ status: [],
4281
3733
  });
4282
3734
  };
4283
- const se_PurchaseOfferingRequest = (input, context) => {
4284
- return {
4285
- ...(input.offeringId != null && { offeringId: input.offeringId }),
4286
- ...(input.offeringPromotionId != null && { offeringPromotionId: input.offeringPromotionId }),
4287
- ...(input.quantity != null && { quantity: input.quantity }),
4288
- };
4289
- };
4290
- const se_Radios = (input, context) => {
4291
- return {
4292
- ...(input.bluetooth != null && { bluetooth: input.bluetooth }),
4293
- ...(input.gps != null && { gps: input.gps }),
4294
- ...(input.nfc != null && { nfc: input.nfc }),
4295
- ...(input.wifi != null && { wifi: input.wifi }),
4296
- };
4297
- };
4298
- const se_RenewOfferingRequest = (input, context) => {
4299
- return {
4300
- ...(input.offeringId != null && { offeringId: input.offeringId }),
4301
- ...(input.quantity != null && { quantity: input.quantity }),
4302
- };
4303
- };
4304
- const se_Rule = (input, context) => {
4305
- return {
4306
- ...(input.attribute != null && { attribute: input.attribute }),
4307
- ...(input.operator != null && { operator: input.operator }),
4308
- ...(input.value != null && { value: input.value }),
4309
- };
4310
- };
4311
- const se_Rules = (input, context) => {
4312
- return input
4313
- .filter((e) => e != null)
4314
- .map((entry) => {
4315
- return se_Rule(entry, context);
3735
+ const se_Location = (input, context) => {
3736
+ return take(input, {
3737
+ latitude: __serializeFloat,
3738
+ longitude: __serializeFloat,
4316
3739
  });
4317
3740
  };
4318
3741
  const se_ScheduleRunConfiguration = (input, context) => {
4319
- return {
4320
- ...(input.auxiliaryApps != null && { auxiliaryApps: se_AmazonResourceNames(input.auxiliaryApps, context) }),
4321
- ...(input.billingMethod != null && { billingMethod: input.billingMethod }),
4322
- ...(input.customerArtifactPaths != null && {
4323
- customerArtifactPaths: se_CustomerArtifactPaths(input.customerArtifactPaths, context),
4324
- }),
4325
- ...(input.extraDataPackageArn != null && { extraDataPackageArn: input.extraDataPackageArn }),
4326
- ...(input.locale != null && { locale: input.locale }),
4327
- ...(input.location != null && { location: se_Location(input.location, context) }),
4328
- ...(input.networkProfileArn != null && { networkProfileArn: input.networkProfileArn }),
4329
- ...(input.radios != null && { radios: se_Radios(input.radios, context) }),
4330
- ...(input.vpceConfigurationArns != null && {
4331
- vpceConfigurationArns: se_AmazonResourceNames(input.vpceConfigurationArns, context),
4332
- }),
4333
- };
4334
- };
4335
- const se_ScheduleRunRequest = (input, context) => {
4336
- return {
4337
- ...(input.appArn != null && { appArn: input.appArn }),
4338
- ...(input.configuration != null && { configuration: se_ScheduleRunConfiguration(input.configuration, context) }),
4339
- ...(input.devicePoolArn != null && { devicePoolArn: input.devicePoolArn }),
4340
- ...(input.deviceSelectionConfiguration != null && {
4341
- deviceSelectionConfiguration: se_DeviceSelectionConfiguration(input.deviceSelectionConfiguration, context),
4342
- }),
4343
- ...(input.executionConfiguration != null && {
4344
- executionConfiguration: se_ExecutionConfiguration(input.executionConfiguration, context),
4345
- }),
4346
- ...(input.name != null && { name: input.name }),
4347
- ...(input.projectArn != null && { projectArn: input.projectArn }),
4348
- ...(input.test != null && { test: se_ScheduleRunTest(input.test, context) }),
4349
- };
4350
- };
4351
- const se_ScheduleRunTest = (input, context) => {
4352
- return {
4353
- ...(input.filter != null && { filter: input.filter }),
4354
- ...(input.parameters != null && { parameters: se_TestParameters(input.parameters, context) }),
4355
- ...(input.testPackageArn != null && { testPackageArn: input.testPackageArn }),
4356
- ...(input.testSpecArn != null && { testSpecArn: input.testSpecArn }),
4357
- ...(input.type != null && { type: input.type }),
4358
- };
4359
- };
4360
- const se_SecurityGroupIds = (input, context) => {
4361
- return input
4362
- .filter((e) => e != null)
4363
- .map((entry) => {
4364
- return entry;
4365
- });
4366
- };
4367
- const se_StopJobRequest = (input, context) => {
4368
- return {
4369
- ...(input.arn != null && { arn: input.arn }),
4370
- };
4371
- };
4372
- const se_StopRemoteAccessSessionRequest = (input, context) => {
4373
- return {
4374
- ...(input.arn != null && { arn: input.arn }),
4375
- };
4376
- };
4377
- const se_StopRunRequest = (input, context) => {
4378
- return {
4379
- ...(input.arn != null && { arn: input.arn }),
4380
- };
4381
- };
4382
- const se_SubnetIds = (input, context) => {
4383
- return input
4384
- .filter((e) => e != null)
4385
- .map((entry) => {
4386
- return entry;
4387
- });
4388
- };
4389
- const se_Tag = (input, context) => {
4390
- return {
4391
- ...(input.Key != null && { Key: input.Key }),
4392
- ...(input.Value != null && { Value: input.Value }),
4393
- };
4394
- };
4395
- const se_TagKeyList = (input, context) => {
4396
- return input
4397
- .filter((e) => e != null)
4398
- .map((entry) => {
4399
- return entry;
4400
- });
4401
- };
4402
- const se_TagList = (input, context) => {
4403
- return input
4404
- .filter((e) => e != null)
4405
- .map((entry) => {
4406
- return se_Tag(entry, context);
4407
- });
4408
- };
4409
- const se_TagResourceRequest = (input, context) => {
4410
- return {
4411
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
4412
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
4413
- };
4414
- };
4415
- const se_TestGridVpcConfig = (input, context) => {
4416
- return {
4417
- ...(input.securityGroupIds != null && { securityGroupIds: se_SecurityGroupIds(input.securityGroupIds, context) }),
4418
- ...(input.subnetIds != null && { subnetIds: se_SubnetIds(input.subnetIds, context) }),
4419
- ...(input.vpcId != null && { vpcId: input.vpcId }),
4420
- };
4421
- };
4422
- const se_TestParameters = (input, context) => {
4423
- return Object.entries(input).reduce((acc, [key, value]) => {
4424
- if (value === null) {
4425
- return acc;
4426
- }
4427
- acc[key] = value;
4428
- return acc;
4429
- }, {});
4430
- };
4431
- const se_UntagResourceRequest = (input, context) => {
4432
- return {
4433
- ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
4434
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
4435
- };
4436
- };
4437
- const se_UpdateDeviceInstanceRequest = (input, context) => {
4438
- return {
4439
- ...(input.arn != null && { arn: input.arn }),
4440
- ...(input.labels != null && { labels: se_InstanceLabels(input.labels, context) }),
4441
- ...(input.profileArn != null && { profileArn: input.profileArn }),
4442
- };
4443
- };
4444
- const se_UpdateDevicePoolRequest = (input, context) => {
4445
- return {
4446
- ...(input.arn != null && { arn: input.arn }),
4447
- ...(input.clearMaxDevices != null && { clearMaxDevices: input.clearMaxDevices }),
4448
- ...(input.description != null && { description: input.description }),
4449
- ...(input.maxDevices != null && { maxDevices: input.maxDevices }),
4450
- ...(input.name != null && { name: input.name }),
4451
- ...(input.rules != null && { rules: se_Rules(input.rules, context) }),
4452
- };
4453
- };
4454
- const se_UpdateInstanceProfileRequest = (input, context) => {
4455
- return {
4456
- ...(input.arn != null && { arn: input.arn }),
4457
- ...(input.description != null && { description: input.description }),
4458
- ...(input.excludeAppPackagesFromCleanup != null && {
4459
- excludeAppPackagesFromCleanup: se_PackageIds(input.excludeAppPackagesFromCleanup, context),
4460
- }),
4461
- ...(input.name != null && { name: input.name }),
4462
- ...(input.packageCleanup != null && { packageCleanup: input.packageCleanup }),
4463
- ...(input.rebootAfterUse != null && { rebootAfterUse: input.rebootAfterUse }),
4464
- };
4465
- };
4466
- const se_UpdateNetworkProfileRequest = (input, context) => {
4467
- return {
4468
- ...(input.arn != null && { arn: input.arn }),
4469
- ...(input.description != null && { description: input.description }),
4470
- ...(input.downlinkBandwidthBits != null && { downlinkBandwidthBits: input.downlinkBandwidthBits }),
4471
- ...(input.downlinkDelayMs != null && { downlinkDelayMs: input.downlinkDelayMs }),
4472
- ...(input.downlinkJitterMs != null && { downlinkJitterMs: input.downlinkJitterMs }),
4473
- ...(input.downlinkLossPercent != null && { downlinkLossPercent: input.downlinkLossPercent }),
4474
- ...(input.name != null && { name: input.name }),
4475
- ...(input.type != null && { type: input.type }),
4476
- ...(input.uplinkBandwidthBits != null && { uplinkBandwidthBits: input.uplinkBandwidthBits }),
4477
- ...(input.uplinkDelayMs != null && { uplinkDelayMs: input.uplinkDelayMs }),
4478
- ...(input.uplinkJitterMs != null && { uplinkJitterMs: input.uplinkJitterMs }),
4479
- ...(input.uplinkLossPercent != null && { uplinkLossPercent: input.uplinkLossPercent }),
4480
- };
4481
- };
4482
- const se_UpdateProjectRequest = (input, context) => {
4483
- return {
4484
- ...(input.arn != null && { arn: input.arn }),
4485
- ...(input.defaultJobTimeoutMinutes != null && { defaultJobTimeoutMinutes: input.defaultJobTimeoutMinutes }),
4486
- ...(input.name != null && { name: input.name }),
4487
- ...(input.vpcConfig != null && { vpcConfig: se_VpcConfig(input.vpcConfig, context) }),
4488
- };
4489
- };
4490
- const se_UpdateTestGridProjectRequest = (input, context) => {
4491
- return {
4492
- ...(input.description != null && { description: input.description }),
4493
- ...(input.name != null && { name: input.name }),
4494
- ...(input.projectArn != null && { projectArn: input.projectArn }),
4495
- ...(input.vpcConfig != null && { vpcConfig: se_TestGridVpcConfig(input.vpcConfig, context) }),
4496
- };
4497
- };
4498
- const se_UpdateUploadRequest = (input, context) => {
4499
- return {
4500
- ...(input.arn != null && { arn: input.arn }),
4501
- ...(input.contentType != null && { contentType: input.contentType }),
4502
- ...(input.editContent != null && { editContent: input.editContent }),
4503
- ...(input.name != null && { name: input.name }),
4504
- };
4505
- };
4506
- const se_UpdateVPCEConfigurationRequest = (input, context) => {
4507
- return {
4508
- ...(input.arn != null && { arn: input.arn }),
4509
- ...(input.serviceDnsName != null && { serviceDnsName: input.serviceDnsName }),
4510
- ...(input.vpceConfigurationDescription != null && {
4511
- vpceConfigurationDescription: input.vpceConfigurationDescription,
4512
- }),
4513
- ...(input.vpceConfigurationName != null && { vpceConfigurationName: input.vpceConfigurationName }),
4514
- ...(input.vpceServiceName != null && { vpceServiceName: input.vpceServiceName }),
4515
- };
4516
- };
4517
- const se_VpcConfig = (input, context) => {
4518
- return {
4519
- ...(input.securityGroupIds != null && {
4520
- securityGroupIds: se_VpcSecurityGroupIds(input.securityGroupIds, context),
4521
- }),
4522
- ...(input.subnetIds != null && { subnetIds: se_VpcSubnetIds(input.subnetIds, context) }),
4523
- ...(input.vpcId != null && { vpcId: input.vpcId }),
4524
- };
4525
- };
4526
- const se_VpcSecurityGroupIds = (input, context) => {
4527
- return input
4528
- .filter((e) => e != null)
4529
- .map((entry) => {
4530
- return entry;
4531
- });
4532
- };
4533
- const se_VpcSubnetIds = (input, context) => {
4534
- return input
4535
- .filter((e) => e != null)
4536
- .map((entry) => {
4537
- return entry;
4538
- });
4539
- };
4540
- const de_AccountSettings = (output, context) => {
4541
- return {
4542
- awsAccountNumber: __expectString(output.awsAccountNumber),
4543
- defaultJobTimeoutMinutes: __expectInt32(output.defaultJobTimeoutMinutes),
4544
- maxJobTimeoutMinutes: __expectInt32(output.maxJobTimeoutMinutes),
4545
- maxSlots: output.maxSlots != null ? de_MaxSlotMap(output.maxSlots, context) : undefined,
4546
- skipAppResign: __expectBoolean(output.skipAppResign),
4547
- trialMinutes: output.trialMinutes != null ? de_TrialMinutes(output.trialMinutes, context) : undefined,
4548
- unmeteredDevices: output.unmeteredDevices != null ? de_PurchasedDevicesMap(output.unmeteredDevices, context) : undefined,
4549
- unmeteredRemoteAccessDevices: output.unmeteredRemoteAccessDevices != null
4550
- ? de_PurchasedDevicesMap(output.unmeteredRemoteAccessDevices, context)
4551
- : undefined,
4552
- };
4553
- };
4554
- const de_AndroidPaths = (output, context) => {
4555
- const retVal = (output || [])
4556
- .filter((e) => e != null)
4557
- .map((entry) => {
4558
- if (entry === null) {
4559
- return null;
4560
- }
4561
- return __expectString(entry);
4562
- });
4563
- return retVal;
4564
- };
4565
- const de_ArgumentException = (output, context) => {
4566
- return {
4567
- message: __expectString(output.message),
4568
- };
4569
- };
4570
- const de_Artifact = (output, context) => {
4571
- return {
4572
- arn: __expectString(output.arn),
4573
- extension: __expectString(output.extension),
4574
- name: __expectString(output.name),
4575
- type: __expectString(output.type),
4576
- url: __expectString(output.url),
4577
- };
4578
- };
4579
- const de_Artifacts = (output, context) => {
4580
- const retVal = (output || [])
4581
- .filter((e) => e != null)
4582
- .map((entry) => {
4583
- if (entry === null) {
4584
- return null;
4585
- }
4586
- return de_Artifact(entry, context);
4587
- });
4588
- return retVal;
4589
- };
4590
- const de_CannotDeleteException = (output, context) => {
4591
- return {
4592
- message: __expectString(output.message),
4593
- };
4594
- };
4595
- const de_Counters = (output, context) => {
4596
- return {
4597
- errored: __expectInt32(output.errored),
4598
- failed: __expectInt32(output.failed),
4599
- passed: __expectInt32(output.passed),
4600
- skipped: __expectInt32(output.skipped),
4601
- stopped: __expectInt32(output.stopped),
4602
- total: __expectInt32(output.total),
4603
- warned: __expectInt32(output.warned),
4604
- };
4605
- };
4606
- const de_CPU = (output, context) => {
4607
- return {
4608
- architecture: __expectString(output.architecture),
4609
- clock: __limitedParseDouble(output.clock),
4610
- frequency: __expectString(output.frequency),
4611
- };
4612
- };
4613
- const de_CreateDevicePoolResult = (output, context) => {
4614
- return {
4615
- devicePool: output.devicePool != null ? de_DevicePool(output.devicePool, context) : undefined,
4616
- };
4617
- };
4618
- const de_CreateInstanceProfileResult = (output, context) => {
4619
- return {
4620
- instanceProfile: output.instanceProfile != null ? de_InstanceProfile(output.instanceProfile, context) : undefined,
4621
- };
4622
- };
4623
- const de_CreateNetworkProfileResult = (output, context) => {
4624
- return {
4625
- networkProfile: output.networkProfile != null ? de_NetworkProfile(output.networkProfile, context) : undefined,
4626
- };
4627
- };
4628
- const de_CreateProjectResult = (output, context) => {
4629
- return {
4630
- project: output.project != null ? de_Project(output.project, context) : undefined,
4631
- };
4632
- };
4633
- const de_CreateRemoteAccessSessionResult = (output, context) => {
4634
- return {
4635
- remoteAccessSession: output.remoteAccessSession != null ? de_RemoteAccessSession(output.remoteAccessSession, context) : undefined,
4636
- };
4637
- };
4638
- const de_CreateTestGridProjectResult = (output, context) => {
4639
- return {
4640
- testGridProject: output.testGridProject != null ? de_TestGridProject(output.testGridProject, context) : undefined,
4641
- };
4642
- };
4643
- const de_CreateTestGridUrlResult = (output, context) => {
4644
- return {
4645
- expires: output.expires != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expires))) : undefined,
4646
- url: __expectString(output.url),
4647
- };
4648
- };
4649
- const de_CreateUploadResult = (output, context) => {
4650
- return {
4651
- upload: output.upload != null ? de_Upload(output.upload, context) : undefined,
4652
- };
4653
- };
4654
- const de_CreateVPCEConfigurationResult = (output, context) => {
4655
- return {
4656
- vpceConfiguration: output.vpceConfiguration != null ? de_VPCEConfiguration(output.vpceConfiguration, context) : undefined,
4657
- };
4658
- };
4659
- const de_CustomerArtifactPaths = (output, context) => {
4660
- return {
4661
- androidPaths: output.androidPaths != null ? de_AndroidPaths(output.androidPaths, context) : undefined,
4662
- deviceHostPaths: output.deviceHostPaths != null ? de_DeviceHostPaths(output.deviceHostPaths, context) : undefined,
4663
- iosPaths: output.iosPaths != null ? de_IosPaths(output.iosPaths, context) : undefined,
4664
- };
4665
- };
4666
- const de_DeleteDevicePoolResult = (output, context) => {
4667
- return {};
4668
- };
4669
- const de_DeleteInstanceProfileResult = (output, context) => {
4670
- return {};
4671
- };
4672
- const de_DeleteNetworkProfileResult = (output, context) => {
4673
- return {};
4674
- };
4675
- const de_DeleteProjectResult = (output, context) => {
4676
- return {};
4677
- };
4678
- const de_DeleteRemoteAccessSessionResult = (output, context) => {
4679
- return {};
4680
- };
4681
- const de_DeleteRunResult = (output, context) => {
4682
- return {};
3742
+ return take(input, {
3743
+ auxiliaryApps: _json,
3744
+ billingMethod: [],
3745
+ customerArtifactPaths: _json,
3746
+ extraDataPackageArn: [],
3747
+ locale: [],
3748
+ location: (_) => se_Location(_, context),
3749
+ networkProfileArn: [],
3750
+ radios: _json,
3751
+ vpceConfigurationArns: _json,
3752
+ });
4683
3753
  };
4684
- const de_DeleteTestGridProjectResult = (output, context) => {
4685
- return {};
3754
+ const se_ScheduleRunRequest = (input, context) => {
3755
+ return take(input, {
3756
+ appArn: [],
3757
+ configuration: (_) => se_ScheduleRunConfiguration(_, context),
3758
+ devicePoolArn: [],
3759
+ deviceSelectionConfiguration: _json,
3760
+ executionConfiguration: _json,
3761
+ name: [],
3762
+ projectArn: [],
3763
+ test: _json,
3764
+ });
4686
3765
  };
4687
- const de_DeleteUploadResult = (output, context) => {
4688
- return {};
3766
+ const de_AccountSettings = (output, context) => {
3767
+ return take(output, {
3768
+ awsAccountNumber: __expectString,
3769
+ defaultJobTimeoutMinutes: __expectInt32,
3770
+ maxJobTimeoutMinutes: __expectInt32,
3771
+ maxSlots: _json,
3772
+ skipAppResign: __expectBoolean,
3773
+ trialMinutes: (_) => de_TrialMinutes(_, context),
3774
+ unmeteredDevices: _json,
3775
+ unmeteredRemoteAccessDevices: _json,
3776
+ });
4689
3777
  };
4690
- const de_DeleteVPCEConfigurationResult = (output, context) => {
4691
- return {};
3778
+ const de_CPU = (output, context) => {
3779
+ return take(output, {
3780
+ architecture: __expectString,
3781
+ clock: __limitedParseDouble,
3782
+ frequency: __expectString,
3783
+ });
4692
3784
  };
4693
- const de_Device = (output, context) => {
4694
- return {
4695
- arn: __expectString(output.arn),
4696
- availability: __expectString(output.availability),
4697
- carrier: __expectString(output.carrier),
4698
- cpu: output.cpu != null ? de_CPU(output.cpu, context) : undefined,
4699
- fleetName: __expectString(output.fleetName),
4700
- fleetType: __expectString(output.fleetType),
4701
- formFactor: __expectString(output.formFactor),
4702
- heapSize: __expectLong(output.heapSize),
4703
- image: __expectString(output.image),
4704
- instances: output.instances != null ? de_DeviceInstances(output.instances, context) : undefined,
4705
- manufacturer: __expectString(output.manufacturer),
4706
- memory: __expectLong(output.memory),
4707
- model: __expectString(output.model),
4708
- modelId: __expectString(output.modelId),
4709
- name: __expectString(output.name),
4710
- os: __expectString(output.os),
4711
- platform: __expectString(output.platform),
4712
- radio: __expectString(output.radio),
4713
- remoteAccessEnabled: __expectBoolean(output.remoteAccessEnabled),
4714
- remoteDebugEnabled: __expectBoolean(output.remoteDebugEnabled),
4715
- resolution: output.resolution != null ? de_Resolution(output.resolution, context) : undefined,
4716
- };
4717
- };
4718
- const de_DeviceFilter = (output, context) => {
4719
- return {
4720
- attribute: __expectString(output.attribute),
4721
- operator: __expectString(output.operator),
4722
- values: output.values != null ? de_DeviceFilterValues(output.values, context) : undefined,
4723
- };
3785
+ const de_CreateProjectResult = (output, context) => {
3786
+ return take(output, {
3787
+ project: (_) => de_Project(_, context),
3788
+ });
4724
3789
  };
4725
- const de_DeviceFilters = (output, context) => {
4726
- const retVal = (output || [])
4727
- .filter((e) => e != null)
4728
- .map((entry) => {
4729
- if (entry === null) {
4730
- return null;
4731
- }
4732
- return de_DeviceFilter(entry, context);
3790
+ const de_CreateRemoteAccessSessionResult = (output, context) => {
3791
+ return take(output, {
3792
+ remoteAccessSession: (_) => de_RemoteAccessSession(_, context),
4733
3793
  });
4734
- return retVal;
4735
3794
  };
4736
- const de_DeviceFilterValues = (output, context) => {
4737
- const retVal = (output || [])
4738
- .filter((e) => e != null)
4739
- .map((entry) => {
4740
- if (entry === null) {
4741
- return null;
4742
- }
4743
- return __expectString(entry);
3795
+ const de_CreateTestGridProjectResult = (output, context) => {
3796
+ return take(output, {
3797
+ testGridProject: (_) => de_TestGridProject(_, context),
4744
3798
  });
4745
- return retVal;
4746
3799
  };
4747
- const de_DeviceHostPaths = (output, context) => {
4748
- const retVal = (output || [])
4749
- .filter((e) => e != null)
4750
- .map((entry) => {
4751
- if (entry === null) {
4752
- return null;
4753
- }
4754
- return __expectString(entry);
3800
+ const de_CreateTestGridUrlResult = (output, context) => {
3801
+ return take(output, {
3802
+ expires: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3803
+ url: __expectString,
4755
3804
  });
4756
- return retVal;
4757
3805
  };
4758
- const de_DeviceInstance = (output, context) => {
4759
- return {
4760
- arn: __expectString(output.arn),
4761
- deviceArn: __expectString(output.deviceArn),
4762
- instanceProfile: output.instanceProfile != null ? de_InstanceProfile(output.instanceProfile, context) : undefined,
4763
- labels: output.labels != null ? de_InstanceLabels(output.labels, context) : undefined,
4764
- status: __expectString(output.status),
4765
- udid: __expectString(output.udid),
4766
- };
3806
+ const de_CreateUploadResult = (output, context) => {
3807
+ return take(output, {
3808
+ upload: (_) => de_Upload(_, context),
3809
+ });
4767
3810
  };
4768
- const de_DeviceInstances = (output, context) => {
4769
- const retVal = (output || [])
4770
- .filter((e) => e != null)
4771
- .map((entry) => {
4772
- if (entry === null) {
4773
- return null;
4774
- }
4775
- return de_DeviceInstance(entry, context);
3811
+ const de_Device = (output, context) => {
3812
+ return take(output, {
3813
+ arn: __expectString,
3814
+ availability: __expectString,
3815
+ carrier: __expectString,
3816
+ cpu: (_) => de_CPU(_, context),
3817
+ fleetName: __expectString,
3818
+ fleetType: __expectString,
3819
+ formFactor: __expectString,
3820
+ heapSize: __expectLong,
3821
+ image: __expectString,
3822
+ instances: _json,
3823
+ manufacturer: __expectString,
3824
+ memory: __expectLong,
3825
+ model: __expectString,
3826
+ modelId: __expectString,
3827
+ name: __expectString,
3828
+ os: __expectString,
3829
+ platform: __expectString,
3830
+ radio: __expectString,
3831
+ remoteAccessEnabled: __expectBoolean,
3832
+ remoteDebugEnabled: __expectBoolean,
3833
+ resolution: _json,
4776
3834
  });
4777
- return retVal;
4778
3835
  };
4779
3836
  const de_DeviceMinutes = (output, context) => {
4780
- return {
4781
- metered: __limitedParseDouble(output.metered),
4782
- total: __limitedParseDouble(output.total),
4783
- unmetered: __limitedParseDouble(output.unmetered),
4784
- };
4785
- };
4786
- const de_DevicePool = (output, context) => {
4787
- return {
4788
- arn: __expectString(output.arn),
4789
- description: __expectString(output.description),
4790
- maxDevices: __expectInt32(output.maxDevices),
4791
- name: __expectString(output.name),
4792
- rules: output.rules != null ? de_Rules(output.rules, context) : undefined,
4793
- type: __expectString(output.type),
4794
- };
3837
+ return take(output, {
3838
+ metered: __limitedParseDouble,
3839
+ total: __limitedParseDouble,
3840
+ unmetered: __limitedParseDouble,
3841
+ });
4795
3842
  };
4796
3843
  const de_DevicePoolCompatibilityResult = (output, context) => {
4797
- return {
4798
- compatible: __expectBoolean(output.compatible),
4799
- device: output.device != null ? de_Device(output.device, context) : undefined,
4800
- incompatibilityMessages: output.incompatibilityMessages != null
4801
- ? de_IncompatibilityMessages(output.incompatibilityMessages, context)
4802
- : undefined,
4803
- };
3844
+ return take(output, {
3845
+ compatible: __expectBoolean,
3846
+ device: (_) => de_Device(_, context),
3847
+ incompatibilityMessages: _json,
3848
+ });
4804
3849
  };
4805
3850
  const de_DevicePoolCompatibilityResults = (output, context) => {
4806
3851
  const retVal = (output || [])
4807
3852
  .filter((e) => e != null)
4808
3853
  .map((entry) => {
4809
- if (entry === null) {
4810
- return null;
4811
- }
4812
3854
  return de_DevicePoolCompatibilityResult(entry, context);
4813
3855
  });
4814
3856
  return retVal;
4815
3857
  };
4816
- const de_DevicePools = (output, context) => {
4817
- const retVal = (output || [])
4818
- .filter((e) => e != null)
4819
- .map((entry) => {
4820
- if (entry === null) {
4821
- return null;
4822
- }
4823
- return de_DevicePool(entry, context);
4824
- });
4825
- return retVal;
4826
- };
4827
3858
  const de_Devices = (output, context) => {
4828
3859
  const retVal = (output || [])
4829
3860
  .filter((e) => e != null)
4830
3861
  .map((entry) => {
4831
- if (entry === null) {
4832
- return null;
4833
- }
4834
3862
  return de_Device(entry, context);
4835
3863
  });
4836
3864
  return retVal;
4837
3865
  };
4838
- const de_DeviceSelectionResult = (output, context) => {
4839
- return {
4840
- filters: output.filters != null ? de_DeviceFilters(output.filters, context) : undefined,
4841
- matchedDevicesCount: __expectInt32(output.matchedDevicesCount),
4842
- maxDevices: __expectInt32(output.maxDevices),
4843
- };
4844
- };
4845
3866
  const de_GetAccountSettingsResult = (output, context) => {
4846
- return {
4847
- accountSettings: output.accountSettings != null ? de_AccountSettings(output.accountSettings, context) : undefined,
4848
- };
4849
- };
4850
- const de_GetDeviceInstanceResult = (output, context) => {
4851
- return {
4852
- deviceInstance: output.deviceInstance != null ? de_DeviceInstance(output.deviceInstance, context) : undefined,
4853
- };
3867
+ return take(output, {
3868
+ accountSettings: (_) => de_AccountSettings(_, context),
3869
+ });
4854
3870
  };
4855
3871
  const de_GetDevicePoolCompatibilityResult = (output, context) => {
4856
- return {
4857
- compatibleDevices: output.compatibleDevices != null
4858
- ? de_DevicePoolCompatibilityResults(output.compatibleDevices, context)
4859
- : undefined,
4860
- incompatibleDevices: output.incompatibleDevices != null
4861
- ? de_DevicePoolCompatibilityResults(output.incompatibleDevices, context)
4862
- : undefined,
4863
- };
4864
- };
4865
- const de_GetDevicePoolResult = (output, context) => {
4866
- return {
4867
- devicePool: output.devicePool != null ? de_DevicePool(output.devicePool, context) : undefined,
4868
- };
3872
+ return take(output, {
3873
+ compatibleDevices: (_) => de_DevicePoolCompatibilityResults(_, context),
3874
+ incompatibleDevices: (_) => de_DevicePoolCompatibilityResults(_, context),
3875
+ });
4869
3876
  };
4870
3877
  const de_GetDeviceResult = (output, context) => {
4871
- return {
4872
- device: output.device != null ? de_Device(output.device, context) : undefined,
4873
- };
4874
- };
4875
- const de_GetInstanceProfileResult = (output, context) => {
4876
- return {
4877
- instanceProfile: output.instanceProfile != null ? de_InstanceProfile(output.instanceProfile, context) : undefined,
4878
- };
3878
+ return take(output, {
3879
+ device: (_) => de_Device(_, context),
3880
+ });
4879
3881
  };
4880
3882
  const de_GetJobResult = (output, context) => {
4881
- return {
4882
- job: output.job != null ? de_Job(output.job, context) : undefined,
4883
- };
4884
- };
4885
- const de_GetNetworkProfileResult = (output, context) => {
4886
- return {
4887
- networkProfile: output.networkProfile != null ? de_NetworkProfile(output.networkProfile, context) : undefined,
4888
- };
3883
+ return take(output, {
3884
+ job: (_) => de_Job(_, context),
3885
+ });
4889
3886
  };
4890
3887
  const de_GetOfferingStatusResult = (output, context) => {
4891
- return {
4892
- current: output.current != null ? de_OfferingStatusMap(output.current, context) : undefined,
4893
- nextPeriod: output.nextPeriod != null ? de_OfferingStatusMap(output.nextPeriod, context) : undefined,
4894
- nextToken: __expectString(output.nextToken),
4895
- };
3888
+ return take(output, {
3889
+ current: (_) => de_OfferingStatusMap(_, context),
3890
+ nextPeriod: (_) => de_OfferingStatusMap(_, context),
3891
+ nextToken: __expectString,
3892
+ });
4896
3893
  };
4897
3894
  const de_GetProjectResult = (output, context) => {
4898
- return {
4899
- project: output.project != null ? de_Project(output.project, context) : undefined,
4900
- };
3895
+ return take(output, {
3896
+ project: (_) => de_Project(_, context),
3897
+ });
4901
3898
  };
4902
3899
  const de_GetRemoteAccessSessionResult = (output, context) => {
4903
- return {
4904
- remoteAccessSession: output.remoteAccessSession != null ? de_RemoteAccessSession(output.remoteAccessSession, context) : undefined,
4905
- };
3900
+ return take(output, {
3901
+ remoteAccessSession: (_) => de_RemoteAccessSession(_, context),
3902
+ });
4906
3903
  };
4907
3904
  const de_GetRunResult = (output, context) => {
4908
- return {
4909
- run: output.run != null ? de_Run(output.run, context) : undefined,
4910
- };
3905
+ return take(output, {
3906
+ run: (_) => de_Run(_, context),
3907
+ });
4911
3908
  };
4912
3909
  const de_GetSuiteResult = (output, context) => {
4913
- return {
4914
- suite: output.suite != null ? de_Suite(output.suite, context) : undefined,
4915
- };
3910
+ return take(output, {
3911
+ suite: (_) => de_Suite(_, context),
3912
+ });
4916
3913
  };
4917
3914
  const de_GetTestGridProjectResult = (output, context) => {
4918
- return {
4919
- testGridProject: output.testGridProject != null ? de_TestGridProject(output.testGridProject, context) : undefined,
4920
- };
3915
+ return take(output, {
3916
+ testGridProject: (_) => de_TestGridProject(_, context),
3917
+ });
4921
3918
  };
4922
3919
  const de_GetTestGridSessionResult = (output, context) => {
4923
- return {
4924
- testGridSession: output.testGridSession != null ? de_TestGridSession(output.testGridSession, context) : undefined,
4925
- };
3920
+ return take(output, {
3921
+ testGridSession: (_) => de_TestGridSession(_, context),
3922
+ });
4926
3923
  };
4927
3924
  const de_GetTestResult = (output, context) => {
4928
- return {
4929
- test: output.test != null ? de_Test(output.test, context) : undefined,
4930
- };
3925
+ return take(output, {
3926
+ test: (_) => de_Test(_, context),
3927
+ });
4931
3928
  };
4932
3929
  const de_GetUploadResult = (output, context) => {
4933
- return {
4934
- upload: output.upload != null ? de_Upload(output.upload, context) : undefined,
4935
- };
4936
- };
4937
- const de_GetVPCEConfigurationResult = (output, context) => {
4938
- return {
4939
- vpceConfiguration: output.vpceConfiguration != null ? de_VPCEConfiguration(output.vpceConfiguration, context) : undefined,
4940
- };
4941
- };
4942
- const de_IdempotencyException = (output, context) => {
4943
- return {
4944
- message: __expectString(output.message),
4945
- };
4946
- };
4947
- const de_IncompatibilityMessage = (output, context) => {
4948
- return {
4949
- message: __expectString(output.message),
4950
- type: __expectString(output.type),
4951
- };
4952
- };
4953
- const de_IncompatibilityMessages = (output, context) => {
4954
- const retVal = (output || [])
4955
- .filter((e) => e != null)
4956
- .map((entry) => {
4957
- if (entry === null) {
4958
- return null;
4959
- }
4960
- return de_IncompatibilityMessage(entry, context);
3930
+ return take(output, {
3931
+ upload: (_) => de_Upload(_, context),
4961
3932
  });
4962
- return retVal;
4963
3933
  };
4964
3934
  const de_InstallToRemoteAccessSessionResult = (output, context) => {
4965
- return {
4966
- appUpload: output.appUpload != null ? de_Upload(output.appUpload, context) : undefined,
4967
- };
4968
- };
4969
- const de_InstanceLabels = (output, context) => {
4970
- const retVal = (output || [])
4971
- .filter((e) => e != null)
4972
- .map((entry) => {
4973
- if (entry === null) {
4974
- return null;
4975
- }
4976
- return __expectString(entry);
4977
- });
4978
- return retVal;
4979
- };
4980
- const de_InstanceProfile = (output, context) => {
4981
- return {
4982
- arn: __expectString(output.arn),
4983
- description: __expectString(output.description),
4984
- excludeAppPackagesFromCleanup: output.excludeAppPackagesFromCleanup != null
4985
- ? de_PackageIds(output.excludeAppPackagesFromCleanup, context)
4986
- : undefined,
4987
- name: __expectString(output.name),
4988
- packageCleanup: __expectBoolean(output.packageCleanup),
4989
- rebootAfterUse: __expectBoolean(output.rebootAfterUse),
4990
- };
4991
- };
4992
- const de_InstanceProfiles = (output, context) => {
4993
- const retVal = (output || [])
4994
- .filter((e) => e != null)
4995
- .map((entry) => {
4996
- if (entry === null) {
4997
- return null;
4998
- }
4999
- return de_InstanceProfile(entry, context);
5000
- });
5001
- return retVal;
5002
- };
5003
- const de_InternalServiceException = (output, context) => {
5004
- return {
5005
- message: __expectString(output.message),
5006
- };
5007
- };
5008
- const de_InvalidOperationException = (output, context) => {
5009
- return {
5010
- message: __expectString(output.message),
5011
- };
5012
- };
5013
- const de_IosPaths = (output, context) => {
5014
- const retVal = (output || [])
5015
- .filter((e) => e != null)
5016
- .map((entry) => {
5017
- if (entry === null) {
5018
- return null;
5019
- }
5020
- return __expectString(entry);
3935
+ return take(output, {
3936
+ appUpload: (_) => de_Upload(_, context),
5021
3937
  });
5022
- return retVal;
5023
3938
  };
5024
3939
  const de_Job = (output, context) => {
5025
- return {
5026
- arn: __expectString(output.arn),
5027
- counters: output.counters != null ? de_Counters(output.counters, context) : undefined,
5028
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
5029
- device: output.device != null ? de_Device(output.device, context) : undefined,
5030
- deviceMinutes: output.deviceMinutes != null ? de_DeviceMinutes(output.deviceMinutes, context) : undefined,
5031
- instanceArn: __expectString(output.instanceArn),
5032
- message: __expectString(output.message),
5033
- name: __expectString(output.name),
5034
- result: __expectString(output.result),
5035
- started: output.started != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.started))) : undefined,
5036
- status: __expectString(output.status),
5037
- stopped: output.stopped != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopped))) : undefined,
5038
- type: __expectString(output.type),
5039
- videoCapture: __expectBoolean(output.videoCapture),
5040
- videoEndpoint: __expectString(output.videoEndpoint),
5041
- };
3940
+ return take(output, {
3941
+ arn: __expectString,
3942
+ counters: _json,
3943
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3944
+ device: (_) => de_Device(_, context),
3945
+ deviceMinutes: (_) => de_DeviceMinutes(_, context),
3946
+ instanceArn: __expectString,
3947
+ message: __expectString,
3948
+ name: __expectString,
3949
+ result: __expectString,
3950
+ started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3951
+ status: __expectString,
3952
+ stopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3953
+ type: __expectString,
3954
+ videoCapture: __expectBoolean,
3955
+ videoEndpoint: __expectString,
3956
+ });
5042
3957
  };
5043
3958
  const de_Jobs = (output, context) => {
5044
3959
  const retVal = (output || [])
5045
3960
  .filter((e) => e != null)
5046
3961
  .map((entry) => {
5047
- if (entry === null) {
5048
- return null;
5049
- }
5050
3962
  return de_Job(entry, context);
5051
3963
  });
5052
3964
  return retVal;
5053
3965
  };
5054
- const de_LimitExceededException = (output, context) => {
5055
- return {
5056
- message: __expectString(output.message),
5057
- };
5058
- };
5059
- const de_ListArtifactsResult = (output, context) => {
5060
- return {
5061
- artifacts: output.artifacts != null ? de_Artifacts(output.artifacts, context) : undefined,
5062
- nextToken: __expectString(output.nextToken),
5063
- };
5064
- };
5065
- const de_ListDeviceInstancesResult = (output, context) => {
5066
- return {
5067
- deviceInstances: output.deviceInstances != null ? de_DeviceInstances(output.deviceInstances, context) : undefined,
5068
- nextToken: __expectString(output.nextToken),
5069
- };
5070
- };
5071
- const de_ListDevicePoolsResult = (output, context) => {
5072
- return {
5073
- devicePools: output.devicePools != null ? de_DevicePools(output.devicePools, context) : undefined,
5074
- nextToken: __expectString(output.nextToken),
5075
- };
5076
- };
5077
3966
  const de_ListDevicesResult = (output, context) => {
5078
- return {
5079
- devices: output.devices != null ? de_Devices(output.devices, context) : undefined,
5080
- nextToken: __expectString(output.nextToken),
5081
- };
5082
- };
5083
- const de_ListInstanceProfilesResult = (output, context) => {
5084
- return {
5085
- instanceProfiles: output.instanceProfiles != null ? de_InstanceProfiles(output.instanceProfiles, context) : undefined,
5086
- nextToken: __expectString(output.nextToken),
5087
- };
3967
+ return take(output, {
3968
+ devices: (_) => de_Devices(_, context),
3969
+ nextToken: __expectString,
3970
+ });
5088
3971
  };
5089
3972
  const de_ListJobsResult = (output, context) => {
5090
- return {
5091
- jobs: output.jobs != null ? de_Jobs(output.jobs, context) : undefined,
5092
- nextToken: __expectString(output.nextToken),
5093
- };
5094
- };
5095
- const de_ListNetworkProfilesResult = (output, context) => {
5096
- return {
5097
- networkProfiles: output.networkProfiles != null ? de_NetworkProfiles(output.networkProfiles, context) : undefined,
5098
- nextToken: __expectString(output.nextToken),
5099
- };
5100
- };
5101
- const de_ListOfferingPromotionsResult = (output, context) => {
5102
- return {
5103
- nextToken: __expectString(output.nextToken),
5104
- offeringPromotions: output.offeringPromotions != null ? de_OfferingPromotions(output.offeringPromotions, context) : undefined,
5105
- };
3973
+ return take(output, {
3974
+ jobs: (_) => de_Jobs(_, context),
3975
+ nextToken: __expectString,
3976
+ });
5106
3977
  };
5107
3978
  const de_ListOfferingsResult = (output, context) => {
5108
- return {
5109
- nextToken: __expectString(output.nextToken),
5110
- offerings: output.offerings != null ? de_Offerings(output.offerings, context) : undefined,
5111
- };
3979
+ return take(output, {
3980
+ nextToken: __expectString,
3981
+ offerings: (_) => de_Offerings(_, context),
3982
+ });
5112
3983
  };
5113
3984
  const de_ListOfferingTransactionsResult = (output, context) => {
5114
- return {
5115
- nextToken: __expectString(output.nextToken),
5116
- offeringTransactions: output.offeringTransactions != null ? de_OfferingTransactions(output.offeringTransactions, context) : undefined,
5117
- };
3985
+ return take(output, {
3986
+ nextToken: __expectString,
3987
+ offeringTransactions: (_) => de_OfferingTransactions(_, context),
3988
+ });
5118
3989
  };
5119
3990
  const de_ListProjectsResult = (output, context) => {
5120
- return {
5121
- nextToken: __expectString(output.nextToken),
5122
- projects: output.projects != null ? de_Projects(output.projects, context) : undefined,
5123
- };
3991
+ return take(output, {
3992
+ nextToken: __expectString,
3993
+ projects: (_) => de_Projects(_, context),
3994
+ });
5124
3995
  };
5125
3996
  const de_ListRemoteAccessSessionsResult = (output, context) => {
5126
- return {
5127
- nextToken: __expectString(output.nextToken),
5128
- remoteAccessSessions: output.remoteAccessSessions != null ? de_RemoteAccessSessions(output.remoteAccessSessions, context) : undefined,
5129
- };
3997
+ return take(output, {
3998
+ nextToken: __expectString,
3999
+ remoteAccessSessions: (_) => de_RemoteAccessSessions(_, context),
4000
+ });
5130
4001
  };
5131
4002
  const de_ListRunsResult = (output, context) => {
5132
- return {
5133
- nextToken: __expectString(output.nextToken),
5134
- runs: output.runs != null ? de_Runs(output.runs, context) : undefined,
5135
- };
5136
- };
5137
- const de_ListSamplesResult = (output, context) => {
5138
- return {
5139
- nextToken: __expectString(output.nextToken),
5140
- samples: output.samples != null ? de_Samples(output.samples, context) : undefined,
5141
- };
4003
+ return take(output, {
4004
+ nextToken: __expectString,
4005
+ runs: (_) => de_Runs(_, context),
4006
+ });
5142
4007
  };
5143
4008
  const de_ListSuitesResult = (output, context) => {
5144
- return {
5145
- nextToken: __expectString(output.nextToken),
5146
- suites: output.suites != null ? de_Suites(output.suites, context) : undefined,
5147
- };
5148
- };
5149
- const de_ListTagsForResourceResponse = (output, context) => {
5150
- return {
5151
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
5152
- };
4009
+ return take(output, {
4010
+ nextToken: __expectString,
4011
+ suites: (_) => de_Suites(_, context),
4012
+ });
5153
4013
  };
5154
4014
  const de_ListTestGridProjectsResult = (output, context) => {
5155
- return {
5156
- nextToken: __expectString(output.nextToken),
5157
- testGridProjects: output.testGridProjects != null ? de_TestGridProjects(output.testGridProjects, context) : undefined,
5158
- };
5159
- };
5160
- const de_ListTestGridSessionActionsResult = (output, context) => {
5161
- return {
5162
- actions: output.actions != null ? de_TestGridSessionActions(output.actions, context) : undefined,
5163
- nextToken: __expectString(output.nextToken),
5164
- };
5165
- };
5166
- const de_ListTestGridSessionArtifactsResult = (output, context) => {
5167
- return {
5168
- artifacts: output.artifacts != null ? de_TestGridSessionArtifacts(output.artifacts, context) : undefined,
5169
- nextToken: __expectString(output.nextToken),
5170
- };
5171
- };
5172
- const de_ListTestGridSessionsResult = (output, context) => {
5173
- return {
5174
- nextToken: __expectString(output.nextToken),
5175
- testGridSessions: output.testGridSessions != null ? de_TestGridSessions(output.testGridSessions, context) : undefined,
5176
- };
5177
- };
5178
- const de_ListTestsResult = (output, context) => {
5179
- return {
5180
- nextToken: __expectString(output.nextToken),
5181
- tests: output.tests != null ? de_Tests(output.tests, context) : undefined,
5182
- };
5183
- };
5184
- const de_ListUniqueProblemsResult = (output, context) => {
5185
- return {
5186
- nextToken: __expectString(output.nextToken),
5187
- uniqueProblems: output.uniqueProblems != null ? de_UniqueProblemsByExecutionResultMap(output.uniqueProblems, context) : undefined,
5188
- };
5189
- };
5190
- const de_ListUploadsResult = (output, context) => {
5191
- return {
5192
- nextToken: __expectString(output.nextToken),
5193
- uploads: output.uploads != null ? de_Uploads(output.uploads, context) : undefined,
5194
- };
5195
- };
5196
- const de_ListVPCEConfigurationsResult = (output, context) => {
5197
- return {
5198
- nextToken: __expectString(output.nextToken),
5199
- vpceConfigurations: output.vpceConfigurations != null ? de_VPCEConfigurations(output.vpceConfigurations, context) : undefined,
5200
- };
5201
- };
5202
- const de_Location = (output, context) => {
5203
- return {
5204
- latitude: __limitedParseDouble(output.latitude),
5205
- longitude: __limitedParseDouble(output.longitude),
5206
- };
5207
- };
5208
- const de_MaxSlotMap = (output, context) => {
5209
- return Object.entries(output).reduce((acc, [key, value]) => {
5210
- if (value === null) {
5211
- return acc;
5212
- }
5213
- acc[key] = __expectInt32(value);
5214
- return acc;
5215
- }, {});
4015
+ return take(output, {
4016
+ nextToken: __expectString,
4017
+ testGridProjects: (_) => de_TestGridProjects(_, context),
4018
+ });
5216
4019
  };
5217
- const de_MonetaryAmount = (output, context) => {
5218
- return {
5219
- amount: __limitedParseDouble(output.amount),
5220
- currencyCode: __expectString(output.currencyCode),
5221
- };
4020
+ const de_ListTestGridSessionActionsResult = (output, context) => {
4021
+ return take(output, {
4022
+ actions: (_) => de_TestGridSessionActions(_, context),
4023
+ nextToken: __expectString,
4024
+ });
5222
4025
  };
5223
- const de_NetworkProfile = (output, context) => {
5224
- return {
5225
- arn: __expectString(output.arn),
5226
- description: __expectString(output.description),
5227
- downlinkBandwidthBits: __expectLong(output.downlinkBandwidthBits),
5228
- downlinkDelayMs: __expectLong(output.downlinkDelayMs),
5229
- downlinkJitterMs: __expectLong(output.downlinkJitterMs),
5230
- downlinkLossPercent: __expectInt32(output.downlinkLossPercent),
5231
- name: __expectString(output.name),
5232
- type: __expectString(output.type),
5233
- uplinkBandwidthBits: __expectLong(output.uplinkBandwidthBits),
5234
- uplinkDelayMs: __expectLong(output.uplinkDelayMs),
5235
- uplinkJitterMs: __expectLong(output.uplinkJitterMs),
5236
- uplinkLossPercent: __expectInt32(output.uplinkLossPercent),
5237
- };
5238
- };
5239
- const de_NetworkProfiles = (output, context) => {
5240
- const retVal = (output || [])
5241
- .filter((e) => e != null)
5242
- .map((entry) => {
5243
- if (entry === null) {
5244
- return null;
5245
- }
5246
- return de_NetworkProfile(entry, context);
4026
+ const de_ListTestGridSessionsResult = (output, context) => {
4027
+ return take(output, {
4028
+ nextToken: __expectString,
4029
+ testGridSessions: (_) => de_TestGridSessions(_, context),
5247
4030
  });
5248
- return retVal;
5249
4031
  };
5250
- const de_NotEligibleException = (output, context) => {
5251
- return {
5252
- message: __expectString(output.message),
5253
- };
4032
+ const de_ListTestsResult = (output, context) => {
4033
+ return take(output, {
4034
+ nextToken: __expectString,
4035
+ tests: (_) => de_Tests(_, context),
4036
+ });
5254
4037
  };
5255
- const de_NotFoundException = (output, context) => {
5256
- return {
5257
- message: __expectString(output.message),
5258
- };
4038
+ const de_ListUniqueProblemsResult = (output, context) => {
4039
+ return take(output, {
4040
+ nextToken: __expectString,
4041
+ uniqueProblems: (_) => de_UniqueProblemsByExecutionResultMap(_, context),
4042
+ });
5259
4043
  };
5260
- const de_Offering = (output, context) => {
5261
- return {
5262
- description: __expectString(output.description),
5263
- id: __expectString(output.id),
5264
- platform: __expectString(output.platform),
5265
- recurringCharges: output.recurringCharges != null ? de_RecurringCharges(output.recurringCharges, context) : undefined,
5266
- type: __expectString(output.type),
5267
- };
4044
+ const de_ListUploadsResult = (output, context) => {
4045
+ return take(output, {
4046
+ nextToken: __expectString,
4047
+ uploads: (_) => de_Uploads(_, context),
4048
+ });
5268
4049
  };
5269
- const de_OfferingPromotion = (output, context) => {
5270
- return {
5271
- description: __expectString(output.description),
5272
- id: __expectString(output.id),
5273
- };
4050
+ const de_Location = (output, context) => {
4051
+ return take(output, {
4052
+ latitude: __limitedParseDouble,
4053
+ longitude: __limitedParseDouble,
4054
+ });
5274
4055
  };
5275
- const de_OfferingPromotions = (output, context) => {
5276
- const retVal = (output || [])
5277
- .filter((e) => e != null)
5278
- .map((entry) => {
5279
- if (entry === null) {
5280
- return null;
5281
- }
5282
- return de_OfferingPromotion(entry, context);
4056
+ const de_MonetaryAmount = (output, context) => {
4057
+ return take(output, {
4058
+ amount: __limitedParseDouble,
4059
+ currencyCode: __expectString,
4060
+ });
4061
+ };
4062
+ const de_Offering = (output, context) => {
4063
+ return take(output, {
4064
+ description: __expectString,
4065
+ id: __expectString,
4066
+ platform: __expectString,
4067
+ recurringCharges: (_) => de_RecurringCharges(_, context),
4068
+ type: __expectString,
5283
4069
  });
5284
- return retVal;
5285
4070
  };
5286
4071
  const de_Offerings = (output, context) => {
5287
4072
  const retVal = (output || [])
5288
4073
  .filter((e) => e != null)
5289
4074
  .map((entry) => {
5290
- if (entry === null) {
5291
- return null;
5292
- }
5293
4075
  return de_Offering(entry, context);
5294
4076
  });
5295
4077
  return retVal;
5296
4078
  };
5297
4079
  const de_OfferingStatus = (output, context) => {
5298
- return {
5299
- effectiveOn: output.effectiveOn != null
5300
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.effectiveOn)))
5301
- : undefined,
5302
- offering: output.offering != null ? de_Offering(output.offering, context) : undefined,
5303
- quantity: __expectInt32(output.quantity),
5304
- type: __expectString(output.type),
5305
- };
4080
+ return take(output, {
4081
+ effectiveOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4082
+ offering: (_) => de_Offering(_, context),
4083
+ quantity: __expectInt32,
4084
+ type: __expectString,
4085
+ });
5306
4086
  };
5307
4087
  const de_OfferingStatusMap = (output, context) => {
5308
4088
  return Object.entries(output).reduce((acc, [key, value]) => {
@@ -5314,500 +4094,294 @@ const de_OfferingStatusMap = (output, context) => {
5314
4094
  }, {});
5315
4095
  };
5316
4096
  const de_OfferingTransaction = (output, context) => {
5317
- return {
5318
- cost: output.cost != null ? de_MonetaryAmount(output.cost, context) : undefined,
5319
- createdOn: output.createdOn != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdOn))) : undefined,
5320
- offeringPromotionId: __expectString(output.offeringPromotionId),
5321
- offeringStatus: output.offeringStatus != null ? de_OfferingStatus(output.offeringStatus, context) : undefined,
5322
- transactionId: __expectString(output.transactionId),
5323
- };
4097
+ return take(output, {
4098
+ cost: (_) => de_MonetaryAmount(_, context),
4099
+ createdOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4100
+ offeringPromotionId: __expectString,
4101
+ offeringStatus: (_) => de_OfferingStatus(_, context),
4102
+ transactionId: __expectString,
4103
+ });
5324
4104
  };
5325
4105
  const de_OfferingTransactions = (output, context) => {
5326
4106
  const retVal = (output || [])
5327
4107
  .filter((e) => e != null)
5328
4108
  .map((entry) => {
5329
- if (entry === null) {
5330
- return null;
5331
- }
5332
4109
  return de_OfferingTransaction(entry, context);
5333
4110
  });
5334
4111
  return retVal;
5335
4112
  };
5336
- const de_PackageIds = (output, context) => {
5337
- const retVal = (output || [])
5338
- .filter((e) => e != null)
5339
- .map((entry) => {
5340
- if (entry === null) {
5341
- return null;
5342
- }
5343
- return __expectString(entry);
5344
- });
5345
- return retVal;
5346
- };
5347
4113
  const de_Problem = (output, context) => {
5348
- return {
5349
- device: output.device != null ? de_Device(output.device, context) : undefined,
5350
- job: output.job != null ? de_ProblemDetail(output.job, context) : undefined,
5351
- message: __expectString(output.message),
5352
- result: __expectString(output.result),
5353
- run: output.run != null ? de_ProblemDetail(output.run, context) : undefined,
5354
- suite: output.suite != null ? de_ProblemDetail(output.suite, context) : undefined,
5355
- test: output.test != null ? de_ProblemDetail(output.test, context) : undefined,
5356
- };
5357
- };
5358
- const de_ProblemDetail = (output, context) => {
5359
- return {
5360
- arn: __expectString(output.arn),
5361
- name: __expectString(output.name),
5362
- };
4114
+ return take(output, {
4115
+ device: (_) => de_Device(_, context),
4116
+ job: _json,
4117
+ message: __expectString,
4118
+ result: __expectString,
4119
+ run: _json,
4120
+ suite: _json,
4121
+ test: _json,
4122
+ });
5363
4123
  };
5364
4124
  const de_Problems = (output, context) => {
5365
4125
  const retVal = (output || [])
5366
4126
  .filter((e) => e != null)
5367
4127
  .map((entry) => {
5368
- if (entry === null) {
5369
- return null;
5370
- }
5371
4128
  return de_Problem(entry, context);
5372
4129
  });
5373
4130
  return retVal;
5374
4131
  };
5375
4132
  const de_Project = (output, context) => {
5376
- return {
5377
- arn: __expectString(output.arn),
5378
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
5379
- defaultJobTimeoutMinutes: __expectInt32(output.defaultJobTimeoutMinutes),
5380
- name: __expectString(output.name),
5381
- vpcConfig: output.vpcConfig != null ? de_VpcConfig(output.vpcConfig, context) : undefined,
5382
- };
4133
+ return take(output, {
4134
+ arn: __expectString,
4135
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4136
+ defaultJobTimeoutMinutes: __expectInt32,
4137
+ name: __expectString,
4138
+ vpcConfig: _json,
4139
+ });
5383
4140
  };
5384
4141
  const de_Projects = (output, context) => {
5385
4142
  const retVal = (output || [])
5386
4143
  .filter((e) => e != null)
5387
4144
  .map((entry) => {
5388
- if (entry === null) {
5389
- return null;
5390
- }
5391
4145
  return de_Project(entry, context);
5392
4146
  });
5393
4147
  return retVal;
5394
4148
  };
5395
- const de_PurchasedDevicesMap = (output, context) => {
5396
- return Object.entries(output).reduce((acc, [key, value]) => {
5397
- if (value === null) {
5398
- return acc;
5399
- }
5400
- acc[key] = __expectInt32(value);
5401
- return acc;
5402
- }, {});
5403
- };
5404
4149
  const de_PurchaseOfferingResult = (output, context) => {
5405
- return {
5406
- offeringTransaction: output.offeringTransaction != null ? de_OfferingTransaction(output.offeringTransaction, context) : undefined,
5407
- };
5408
- };
5409
- const de_Radios = (output, context) => {
5410
- return {
5411
- bluetooth: __expectBoolean(output.bluetooth),
5412
- gps: __expectBoolean(output.gps),
5413
- nfc: __expectBoolean(output.nfc),
5414
- wifi: __expectBoolean(output.wifi),
5415
- };
4150
+ return take(output, {
4151
+ offeringTransaction: (_) => de_OfferingTransaction(_, context),
4152
+ });
5416
4153
  };
5417
4154
  const de_RecurringCharge = (output, context) => {
5418
- return {
5419
- cost: output.cost != null ? de_MonetaryAmount(output.cost, context) : undefined,
5420
- frequency: __expectString(output.frequency),
5421
- };
4155
+ return take(output, {
4156
+ cost: (_) => de_MonetaryAmount(_, context),
4157
+ frequency: __expectString,
4158
+ });
5422
4159
  };
5423
4160
  const de_RecurringCharges = (output, context) => {
5424
4161
  const retVal = (output || [])
5425
4162
  .filter((e) => e != null)
5426
4163
  .map((entry) => {
5427
- if (entry === null) {
5428
- return null;
5429
- }
5430
4164
  return de_RecurringCharge(entry, context);
5431
4165
  });
5432
4166
  return retVal;
5433
4167
  };
5434
4168
  const de_RemoteAccessSession = (output, context) => {
5435
- return {
5436
- arn: __expectString(output.arn),
5437
- billingMethod: __expectString(output.billingMethod),
5438
- clientId: __expectString(output.clientId),
5439
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
5440
- device: output.device != null ? de_Device(output.device, context) : undefined,
5441
- deviceMinutes: output.deviceMinutes != null ? de_DeviceMinutes(output.deviceMinutes, context) : undefined,
5442
- deviceUdid: __expectString(output.deviceUdid),
5443
- endpoint: __expectString(output.endpoint),
5444
- hostAddress: __expectString(output.hostAddress),
5445
- instanceArn: __expectString(output.instanceArn),
5446
- interactionMode: __expectString(output.interactionMode),
5447
- message: __expectString(output.message),
5448
- name: __expectString(output.name),
5449
- remoteDebugEnabled: __expectBoolean(output.remoteDebugEnabled),
5450
- remoteRecordAppArn: __expectString(output.remoteRecordAppArn),
5451
- remoteRecordEnabled: __expectBoolean(output.remoteRecordEnabled),
5452
- result: __expectString(output.result),
5453
- skipAppResign: __expectBoolean(output.skipAppResign),
5454
- started: output.started != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.started))) : undefined,
5455
- status: __expectString(output.status),
5456
- stopped: output.stopped != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopped))) : undefined,
5457
- vpcConfig: output.vpcConfig != null ? de_VpcConfig(output.vpcConfig, context) : undefined,
5458
- };
4169
+ return take(output, {
4170
+ arn: __expectString,
4171
+ billingMethod: __expectString,
4172
+ clientId: __expectString,
4173
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4174
+ device: (_) => de_Device(_, context),
4175
+ deviceMinutes: (_) => de_DeviceMinutes(_, context),
4176
+ deviceUdid: __expectString,
4177
+ endpoint: __expectString,
4178
+ hostAddress: __expectString,
4179
+ instanceArn: __expectString,
4180
+ interactionMode: __expectString,
4181
+ message: __expectString,
4182
+ name: __expectString,
4183
+ remoteDebugEnabled: __expectBoolean,
4184
+ remoteRecordAppArn: __expectString,
4185
+ remoteRecordEnabled: __expectBoolean,
4186
+ result: __expectString,
4187
+ skipAppResign: __expectBoolean,
4188
+ started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4189
+ status: __expectString,
4190
+ stopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4191
+ vpcConfig: _json,
4192
+ });
5459
4193
  };
5460
4194
  const de_RemoteAccessSessions = (output, context) => {
5461
4195
  const retVal = (output || [])
5462
4196
  .filter((e) => e != null)
5463
4197
  .map((entry) => {
5464
- if (entry === null) {
5465
- return null;
5466
- }
5467
4198
  return de_RemoteAccessSession(entry, context);
5468
4199
  });
5469
4200
  return retVal;
5470
4201
  };
5471
4202
  const de_RenewOfferingResult = (output, context) => {
5472
- return {
5473
- offeringTransaction: output.offeringTransaction != null ? de_OfferingTransaction(output.offeringTransaction, context) : undefined,
5474
- };
5475
- };
5476
- const de_Resolution = (output, context) => {
5477
- return {
5478
- height: __expectInt32(output.height),
5479
- width: __expectInt32(output.width),
5480
- };
5481
- };
5482
- const de_Rule = (output, context) => {
5483
- return {
5484
- attribute: __expectString(output.attribute),
5485
- operator: __expectString(output.operator),
5486
- value: __expectString(output.value),
5487
- };
5488
- };
5489
- const de_Rules = (output, context) => {
5490
- const retVal = (output || [])
5491
- .filter((e) => e != null)
5492
- .map((entry) => {
5493
- if (entry === null) {
5494
- return null;
5495
- }
5496
- return de_Rule(entry, context);
4203
+ return take(output, {
4204
+ offeringTransaction: (_) => de_OfferingTransaction(_, context),
5497
4205
  });
5498
- return retVal;
5499
4206
  };
5500
4207
  const de_Run = (output, context) => {
5501
- return {
5502
- appUpload: __expectString(output.appUpload),
5503
- arn: __expectString(output.arn),
5504
- billingMethod: __expectString(output.billingMethod),
5505
- completedJobs: __expectInt32(output.completedJobs),
5506
- counters: output.counters != null ? de_Counters(output.counters, context) : undefined,
5507
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
5508
- customerArtifactPaths: output.customerArtifactPaths != null
5509
- ? de_CustomerArtifactPaths(output.customerArtifactPaths, context)
5510
- : undefined,
5511
- deviceMinutes: output.deviceMinutes != null ? de_DeviceMinutes(output.deviceMinutes, context) : undefined,
5512
- devicePoolArn: __expectString(output.devicePoolArn),
5513
- deviceSelectionResult: output.deviceSelectionResult != null
5514
- ? de_DeviceSelectionResult(output.deviceSelectionResult, context)
5515
- : undefined,
5516
- eventCount: __expectInt32(output.eventCount),
5517
- jobTimeoutMinutes: __expectInt32(output.jobTimeoutMinutes),
5518
- locale: __expectString(output.locale),
5519
- location: output.location != null ? de_Location(output.location, context) : undefined,
5520
- message: __expectString(output.message),
5521
- name: __expectString(output.name),
5522
- networkProfile: output.networkProfile != null ? de_NetworkProfile(output.networkProfile, context) : undefined,
5523
- parsingResultUrl: __expectString(output.parsingResultUrl),
5524
- platform: __expectString(output.platform),
5525
- radios: output.radios != null ? de_Radios(output.radios, context) : undefined,
5526
- result: __expectString(output.result),
5527
- resultCode: __expectString(output.resultCode),
5528
- seed: __expectInt32(output.seed),
5529
- skipAppResign: __expectBoolean(output.skipAppResign),
5530
- started: output.started != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.started))) : undefined,
5531
- status: __expectString(output.status),
5532
- stopped: output.stopped != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopped))) : undefined,
5533
- testSpecArn: __expectString(output.testSpecArn),
5534
- totalJobs: __expectInt32(output.totalJobs),
5535
- type: __expectString(output.type),
5536
- vpcConfig: output.vpcConfig != null ? de_VpcConfig(output.vpcConfig, context) : undefined,
5537
- webUrl: __expectString(output.webUrl),
5538
- };
4208
+ return take(output, {
4209
+ appUpload: __expectString,
4210
+ arn: __expectString,
4211
+ billingMethod: __expectString,
4212
+ completedJobs: __expectInt32,
4213
+ counters: _json,
4214
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4215
+ customerArtifactPaths: _json,
4216
+ deviceMinutes: (_) => de_DeviceMinutes(_, context),
4217
+ devicePoolArn: __expectString,
4218
+ deviceSelectionResult: _json,
4219
+ eventCount: __expectInt32,
4220
+ jobTimeoutMinutes: __expectInt32,
4221
+ locale: __expectString,
4222
+ location: (_) => de_Location(_, context),
4223
+ message: __expectString,
4224
+ name: __expectString,
4225
+ networkProfile: _json,
4226
+ parsingResultUrl: __expectString,
4227
+ platform: __expectString,
4228
+ radios: _json,
4229
+ result: __expectString,
4230
+ resultCode: __expectString,
4231
+ seed: __expectInt32,
4232
+ skipAppResign: __expectBoolean,
4233
+ started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4234
+ status: __expectString,
4235
+ stopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4236
+ testSpecArn: __expectString,
4237
+ totalJobs: __expectInt32,
4238
+ type: __expectString,
4239
+ vpcConfig: _json,
4240
+ webUrl: __expectString,
4241
+ });
5539
4242
  };
5540
4243
  const de_Runs = (output, context) => {
5541
4244
  const retVal = (output || [])
5542
4245
  .filter((e) => e != null)
5543
4246
  .map((entry) => {
5544
- if (entry === null) {
5545
- return null;
5546
- }
5547
4247
  return de_Run(entry, context);
5548
4248
  });
5549
4249
  return retVal;
5550
4250
  };
5551
- const de_Sample = (output, context) => {
5552
- return {
5553
- arn: __expectString(output.arn),
5554
- type: __expectString(output.type),
5555
- url: __expectString(output.url),
5556
- };
5557
- };
5558
- const de_Samples = (output, context) => {
5559
- const retVal = (output || [])
5560
- .filter((e) => e != null)
5561
- .map((entry) => {
5562
- if (entry === null) {
5563
- return null;
5564
- }
5565
- return de_Sample(entry, context);
5566
- });
5567
- return retVal;
5568
- };
5569
4251
  const de_ScheduleRunResult = (output, context) => {
5570
- return {
5571
- run: output.run != null ? de_Run(output.run, context) : undefined,
5572
- };
5573
- };
5574
- const de_SecurityGroupIds = (output, context) => {
5575
- const retVal = (output || [])
5576
- .filter((e) => e != null)
5577
- .map((entry) => {
5578
- if (entry === null) {
5579
- return null;
5580
- }
5581
- return __expectString(entry);
4252
+ return take(output, {
4253
+ run: (_) => de_Run(_, context),
5582
4254
  });
5583
- return retVal;
5584
- };
5585
- const de_ServiceAccountException = (output, context) => {
5586
- return {
5587
- message: __expectString(output.message),
5588
- };
5589
4255
  };
5590
4256
  const de_StopJobResult = (output, context) => {
5591
- return {
5592
- job: output.job != null ? de_Job(output.job, context) : undefined,
5593
- };
4257
+ return take(output, {
4258
+ job: (_) => de_Job(_, context),
4259
+ });
5594
4260
  };
5595
4261
  const de_StopRemoteAccessSessionResult = (output, context) => {
5596
- return {
5597
- remoteAccessSession: output.remoteAccessSession != null ? de_RemoteAccessSession(output.remoteAccessSession, context) : undefined,
5598
- };
4262
+ return take(output, {
4263
+ remoteAccessSession: (_) => de_RemoteAccessSession(_, context),
4264
+ });
5599
4265
  };
5600
4266
  const de_StopRunResult = (output, context) => {
5601
- return {
5602
- run: output.run != null ? de_Run(output.run, context) : undefined,
5603
- };
5604
- };
5605
- const de_SubnetIds = (output, context) => {
5606
- const retVal = (output || [])
5607
- .filter((e) => e != null)
5608
- .map((entry) => {
5609
- if (entry === null) {
5610
- return null;
5611
- }
5612
- return __expectString(entry);
4267
+ return take(output, {
4268
+ run: (_) => de_Run(_, context),
5613
4269
  });
5614
- return retVal;
5615
4270
  };
5616
4271
  const de_Suite = (output, context) => {
5617
- return {
5618
- arn: __expectString(output.arn),
5619
- counters: output.counters != null ? de_Counters(output.counters, context) : undefined,
5620
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
5621
- deviceMinutes: output.deviceMinutes != null ? de_DeviceMinutes(output.deviceMinutes, context) : undefined,
5622
- message: __expectString(output.message),
5623
- name: __expectString(output.name),
5624
- result: __expectString(output.result),
5625
- started: output.started != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.started))) : undefined,
5626
- status: __expectString(output.status),
5627
- stopped: output.stopped != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopped))) : undefined,
5628
- type: __expectString(output.type),
5629
- };
4272
+ return take(output, {
4273
+ arn: __expectString,
4274
+ counters: _json,
4275
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4276
+ deviceMinutes: (_) => de_DeviceMinutes(_, context),
4277
+ message: __expectString,
4278
+ name: __expectString,
4279
+ result: __expectString,
4280
+ started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4281
+ status: __expectString,
4282
+ stopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4283
+ type: __expectString,
4284
+ });
5630
4285
  };
5631
4286
  const de_Suites = (output, context) => {
5632
4287
  const retVal = (output || [])
5633
4288
  .filter((e) => e != null)
5634
4289
  .map((entry) => {
5635
- if (entry === null) {
5636
- return null;
5637
- }
5638
4290
  return de_Suite(entry, context);
5639
4291
  });
5640
4292
  return retVal;
5641
4293
  };
5642
- const de_Tag = (output, context) => {
5643
- return {
5644
- Key: __expectString(output.Key),
5645
- Value: __expectString(output.Value),
5646
- };
5647
- };
5648
- const de_TagList = (output, context) => {
5649
- const retVal = (output || [])
5650
- .filter((e) => e != null)
5651
- .map((entry) => {
5652
- if (entry === null) {
5653
- return null;
5654
- }
5655
- return de_Tag(entry, context);
5656
- });
5657
- return retVal;
5658
- };
5659
- const de_TagOperationException = (output, context) => {
5660
- return {
5661
- message: __expectString(output.message),
5662
- resourceName: __expectString(output.resourceName),
5663
- };
5664
- };
5665
- const de_TagPolicyException = (output, context) => {
5666
- return {
5667
- message: __expectString(output.message),
5668
- resourceName: __expectString(output.resourceName),
5669
- };
5670
- };
5671
- const de_TagResourceResponse = (output, context) => {
5672
- return {};
5673
- };
5674
4294
  const de_Test = (output, context) => {
5675
- return {
5676
- arn: __expectString(output.arn),
5677
- counters: output.counters != null ? de_Counters(output.counters, context) : undefined,
5678
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
5679
- deviceMinutes: output.deviceMinutes != null ? de_DeviceMinutes(output.deviceMinutes, context) : undefined,
5680
- message: __expectString(output.message),
5681
- name: __expectString(output.name),
5682
- result: __expectString(output.result),
5683
- started: output.started != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.started))) : undefined,
5684
- status: __expectString(output.status),
5685
- stopped: output.stopped != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stopped))) : undefined,
5686
- type: __expectString(output.type),
5687
- };
4295
+ return take(output, {
4296
+ arn: __expectString,
4297
+ counters: _json,
4298
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4299
+ deviceMinutes: (_) => de_DeviceMinutes(_, context),
4300
+ message: __expectString,
4301
+ name: __expectString,
4302
+ result: __expectString,
4303
+ started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4304
+ status: __expectString,
4305
+ stopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4306
+ type: __expectString,
4307
+ });
5688
4308
  };
5689
4309
  const de_TestGridProject = (output, context) => {
5690
- return {
5691
- arn: __expectString(output.arn),
5692
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
5693
- description: __expectString(output.description),
5694
- name: __expectString(output.name),
5695
- vpcConfig: output.vpcConfig != null ? de_TestGridVpcConfig(output.vpcConfig, context) : undefined,
5696
- };
4310
+ return take(output, {
4311
+ arn: __expectString,
4312
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4313
+ description: __expectString,
4314
+ name: __expectString,
4315
+ vpcConfig: _json,
4316
+ });
5697
4317
  };
5698
4318
  const de_TestGridProjects = (output, context) => {
5699
4319
  const retVal = (output || [])
5700
4320
  .filter((e) => e != null)
5701
4321
  .map((entry) => {
5702
- if (entry === null) {
5703
- return null;
5704
- }
5705
4322
  return de_TestGridProject(entry, context);
5706
4323
  });
5707
4324
  return retVal;
5708
4325
  };
5709
4326
  const de_TestGridSession = (output, context) => {
5710
- return {
5711
- arn: __expectString(output.arn),
5712
- billingMinutes: __limitedParseDouble(output.billingMinutes),
5713
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
5714
- ended: output.ended != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ended))) : undefined,
5715
- seleniumProperties: __expectString(output.seleniumProperties),
5716
- status: __expectString(output.status),
5717
- };
4327
+ return take(output, {
4328
+ arn: __expectString,
4329
+ billingMinutes: __limitedParseDouble,
4330
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4331
+ ended: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4332
+ seleniumProperties: __expectString,
4333
+ status: __expectString,
4334
+ });
5718
4335
  };
5719
4336
  const de_TestGridSessionAction = (output, context) => {
5720
- return {
5721
- action: __expectString(output.action),
5722
- duration: __expectLong(output.duration),
5723
- requestMethod: __expectString(output.requestMethod),
5724
- started: output.started != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.started))) : undefined,
5725
- statusCode: __expectString(output.statusCode),
5726
- };
4337
+ return take(output, {
4338
+ action: __expectString,
4339
+ duration: __expectLong,
4340
+ requestMethod: __expectString,
4341
+ started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4342
+ statusCode: __expectString,
4343
+ });
5727
4344
  };
5728
4345
  const de_TestGridSessionActions = (output, context) => {
5729
4346
  const retVal = (output || [])
5730
4347
  .filter((e) => e != null)
5731
4348
  .map((entry) => {
5732
- if (entry === null) {
5733
- return null;
5734
- }
5735
4349
  return de_TestGridSessionAction(entry, context);
5736
4350
  });
5737
4351
  return retVal;
5738
4352
  };
5739
- const de_TestGridSessionArtifact = (output, context) => {
5740
- return {
5741
- filename: __expectString(output.filename),
5742
- type: __expectString(output.type),
5743
- url: __expectString(output.url),
5744
- };
5745
- };
5746
- const de_TestGridSessionArtifacts = (output, context) => {
5747
- const retVal = (output || [])
5748
- .filter((e) => e != null)
5749
- .map((entry) => {
5750
- if (entry === null) {
5751
- return null;
5752
- }
5753
- return de_TestGridSessionArtifact(entry, context);
5754
- });
5755
- return retVal;
5756
- };
5757
4353
  const de_TestGridSessions = (output, context) => {
5758
4354
  const retVal = (output || [])
5759
4355
  .filter((e) => e != null)
5760
4356
  .map((entry) => {
5761
- if (entry === null) {
5762
- return null;
5763
- }
5764
4357
  return de_TestGridSession(entry, context);
5765
4358
  });
5766
4359
  return retVal;
5767
4360
  };
5768
- const de_TestGridVpcConfig = (output, context) => {
5769
- return {
5770
- securityGroupIds: output.securityGroupIds != null ? de_SecurityGroupIds(output.securityGroupIds, context) : undefined,
5771
- subnetIds: output.subnetIds != null ? de_SubnetIds(output.subnetIds, context) : undefined,
5772
- vpcId: __expectString(output.vpcId),
5773
- };
5774
- };
5775
4361
  const de_Tests = (output, context) => {
5776
4362
  const retVal = (output || [])
5777
4363
  .filter((e) => e != null)
5778
4364
  .map((entry) => {
5779
- if (entry === null) {
5780
- return null;
5781
- }
5782
4365
  return de_Test(entry, context);
5783
4366
  });
5784
4367
  return retVal;
5785
4368
  };
5786
- const de_TooManyTagsException = (output, context) => {
5787
- return {
5788
- message: __expectString(output.message),
5789
- resourceName: __expectString(output.resourceName),
5790
- };
5791
- };
5792
4369
  const de_TrialMinutes = (output, context) => {
5793
- return {
5794
- remaining: __limitedParseDouble(output.remaining),
5795
- total: __limitedParseDouble(output.total),
5796
- };
4370
+ return take(output, {
4371
+ remaining: __limitedParseDouble,
4372
+ total: __limitedParseDouble,
4373
+ });
5797
4374
  };
5798
4375
  const de_UniqueProblem = (output, context) => {
5799
- return {
5800
- message: __expectString(output.message),
5801
- problems: output.problems != null ? de_Problems(output.problems, context) : undefined,
5802
- };
4376
+ return take(output, {
4377
+ message: __expectString,
4378
+ problems: (_) => de_Problems(_, context),
4379
+ });
5803
4380
  };
5804
4381
  const de_UniqueProblems = (output, context) => {
5805
4382
  const retVal = (output || [])
5806
4383
  .filter((e) => e != null)
5807
4384
  .map((entry) => {
5808
- if (entry === null) {
5809
- return null;
5810
- }
5811
4385
  return de_UniqueProblem(entry, context);
5812
4386
  });
5813
4387
  return retVal;
@@ -5821,123 +4395,43 @@ const de_UniqueProblemsByExecutionResultMap = (output, context) => {
5821
4395
  return acc;
5822
4396
  }, {});
5823
4397
  };
5824
- const de_UntagResourceResponse = (output, context) => {
5825
- return {};
5826
- };
5827
- const de_UpdateDeviceInstanceResult = (output, context) => {
5828
- return {
5829
- deviceInstance: output.deviceInstance != null ? de_DeviceInstance(output.deviceInstance, context) : undefined,
5830
- };
5831
- };
5832
- const de_UpdateDevicePoolResult = (output, context) => {
5833
- return {
5834
- devicePool: output.devicePool != null ? de_DevicePool(output.devicePool, context) : undefined,
5835
- };
5836
- };
5837
- const de_UpdateInstanceProfileResult = (output, context) => {
5838
- return {
5839
- instanceProfile: output.instanceProfile != null ? de_InstanceProfile(output.instanceProfile, context) : undefined,
5840
- };
5841
- };
5842
- const de_UpdateNetworkProfileResult = (output, context) => {
5843
- return {
5844
- networkProfile: output.networkProfile != null ? de_NetworkProfile(output.networkProfile, context) : undefined,
5845
- };
5846
- };
5847
4398
  const de_UpdateProjectResult = (output, context) => {
5848
- return {
5849
- project: output.project != null ? de_Project(output.project, context) : undefined,
5850
- };
4399
+ return take(output, {
4400
+ project: (_) => de_Project(_, context),
4401
+ });
5851
4402
  };
5852
4403
  const de_UpdateTestGridProjectResult = (output, context) => {
5853
- return {
5854
- testGridProject: output.testGridProject != null ? de_TestGridProject(output.testGridProject, context) : undefined,
5855
- };
4404
+ return take(output, {
4405
+ testGridProject: (_) => de_TestGridProject(_, context),
4406
+ });
5856
4407
  };
5857
4408
  const de_UpdateUploadResult = (output, context) => {
5858
- return {
5859
- upload: output.upload != null ? de_Upload(output.upload, context) : undefined,
5860
- };
5861
- };
5862
- const de_UpdateVPCEConfigurationResult = (output, context) => {
5863
- return {
5864
- vpceConfiguration: output.vpceConfiguration != null ? de_VPCEConfiguration(output.vpceConfiguration, context) : undefined,
5865
- };
4409
+ return take(output, {
4410
+ upload: (_) => de_Upload(_, context),
4411
+ });
5866
4412
  };
5867
4413
  const de_Upload = (output, context) => {
5868
- return {
5869
- arn: __expectString(output.arn),
5870
- category: __expectString(output.category),
5871
- contentType: __expectString(output.contentType),
5872
- created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
5873
- message: __expectString(output.message),
5874
- metadata: __expectString(output.metadata),
5875
- name: __expectString(output.name),
5876
- status: __expectString(output.status),
5877
- type: __expectString(output.type),
5878
- url: __expectString(output.url),
5879
- };
4414
+ return take(output, {
4415
+ arn: __expectString,
4416
+ category: __expectString,
4417
+ contentType: __expectString,
4418
+ created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4419
+ message: __expectString,
4420
+ metadata: __expectString,
4421
+ name: __expectString,
4422
+ status: __expectString,
4423
+ type: __expectString,
4424
+ url: __expectString,
4425
+ });
5880
4426
  };
5881
4427
  const de_Uploads = (output, context) => {
5882
4428
  const retVal = (output || [])
5883
4429
  .filter((e) => e != null)
5884
4430
  .map((entry) => {
5885
- if (entry === null) {
5886
- return null;
5887
- }
5888
4431
  return de_Upload(entry, context);
5889
4432
  });
5890
4433
  return retVal;
5891
4434
  };
5892
- const de_VpcConfig = (output, context) => {
5893
- return {
5894
- securityGroupIds: output.securityGroupIds != null ? de_VpcSecurityGroupIds(output.securityGroupIds, context) : undefined,
5895
- subnetIds: output.subnetIds != null ? de_VpcSubnetIds(output.subnetIds, context) : undefined,
5896
- vpcId: __expectString(output.vpcId),
5897
- };
5898
- };
5899
- const de_VPCEConfiguration = (output, context) => {
5900
- return {
5901
- arn: __expectString(output.arn),
5902
- serviceDnsName: __expectString(output.serviceDnsName),
5903
- vpceConfigurationDescription: __expectString(output.vpceConfigurationDescription),
5904
- vpceConfigurationName: __expectString(output.vpceConfigurationName),
5905
- vpceServiceName: __expectString(output.vpceServiceName),
5906
- };
5907
- };
5908
- const de_VPCEConfigurations = (output, context) => {
5909
- const retVal = (output || [])
5910
- .filter((e) => e != null)
5911
- .map((entry) => {
5912
- if (entry === null) {
5913
- return null;
5914
- }
5915
- return de_VPCEConfiguration(entry, context);
5916
- });
5917
- return retVal;
5918
- };
5919
- const de_VpcSecurityGroupIds = (output, context) => {
5920
- const retVal = (output || [])
5921
- .filter((e) => e != null)
5922
- .map((entry) => {
5923
- if (entry === null) {
5924
- return null;
5925
- }
5926
- return __expectString(entry);
5927
- });
5928
- return retVal;
5929
- };
5930
- const de_VpcSubnetIds = (output, context) => {
5931
- const retVal = (output || [])
5932
- .filter((e) => e != null)
5933
- .map((entry) => {
5934
- if (entry === null) {
5935
- return null;
5936
- }
5937
- return __expectString(entry);
5938
- });
5939
- return retVal;
5940
- };
5941
4435
  const deserializeMetadata = (output) => ({
5942
4436
  httpStatusCode: output.statusCode,
5943
4437
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -5951,6 +4445,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5951
4445
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5952
4446
  };
5953
4447
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
4448
+ const throwDefaultError = withBaseException(__BaseException);
5954
4449
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5955
4450
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5956
4451
  const contents = {