@aws-sdk/client-emr 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.
@@ -24,70 +24,70 @@ exports.se_AddInstanceGroupsCommand = se_AddInstanceGroupsCommand;
24
24
  const se_AddJobFlowStepsCommand = async (input, context) => {
25
25
  const headers = sharedHeaders("AddJobFlowSteps");
26
26
  let body;
27
- body = JSON.stringify(se_AddJobFlowStepsInput(input, context));
27
+ body = JSON.stringify((0, smithy_client_1._json)(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
30
  exports.se_AddJobFlowStepsCommand = se_AddJobFlowStepsCommand;
31
31
  const se_AddTagsCommand = async (input, context) => {
32
32
  const headers = sharedHeaders("AddTags");
33
33
  let body;
34
- body = JSON.stringify(se_AddTagsInput(input, context));
34
+ body = JSON.stringify((0, smithy_client_1._json)(input));
35
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
36
  };
37
37
  exports.se_AddTagsCommand = se_AddTagsCommand;
38
38
  const se_CancelStepsCommand = async (input, context) => {
39
39
  const headers = sharedHeaders("CancelSteps");
40
40
  let body;
41
- body = JSON.stringify(se_CancelStepsInput(input, context));
41
+ body = JSON.stringify((0, smithy_client_1._json)(input));
42
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
43
  };
44
44
  exports.se_CancelStepsCommand = se_CancelStepsCommand;
45
45
  const se_CreateSecurityConfigurationCommand = async (input, context) => {
46
46
  const headers = sharedHeaders("CreateSecurityConfiguration");
47
47
  let body;
48
- body = JSON.stringify(se_CreateSecurityConfigurationInput(input, context));
48
+ body = JSON.stringify((0, smithy_client_1._json)(input));
49
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
50
  };
51
51
  exports.se_CreateSecurityConfigurationCommand = se_CreateSecurityConfigurationCommand;
52
52
  const se_CreateStudioCommand = async (input, context) => {
53
53
  const headers = sharedHeaders("CreateStudio");
54
54
  let body;
55
- body = JSON.stringify(se_CreateStudioInput(input, context));
55
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
57
  };
58
58
  exports.se_CreateStudioCommand = se_CreateStudioCommand;
59
59
  const se_CreateStudioSessionMappingCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("CreateStudioSessionMapping");
61
61
  let body;
62
- body = JSON.stringify(se_CreateStudioSessionMappingInput(input, context));
62
+ body = JSON.stringify((0, smithy_client_1._json)(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  exports.se_CreateStudioSessionMappingCommand = se_CreateStudioSessionMappingCommand;
66
66
  const se_DeleteSecurityConfigurationCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("DeleteSecurityConfiguration");
68
68
  let body;
69
- body = JSON.stringify(se_DeleteSecurityConfigurationInput(input, context));
69
+ body = JSON.stringify((0, smithy_client_1._json)(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  exports.se_DeleteSecurityConfigurationCommand = se_DeleteSecurityConfigurationCommand;
73
73
  const se_DeleteStudioCommand = async (input, context) => {
74
74
  const headers = sharedHeaders("DeleteStudio");
75
75
  let body;
76
- body = JSON.stringify(se_DeleteStudioInput(input, context));
76
+ body = JSON.stringify((0, smithy_client_1._json)(input));
77
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
78
  };
79
79
  exports.se_DeleteStudioCommand = se_DeleteStudioCommand;
80
80
  const se_DeleteStudioSessionMappingCommand = async (input, context) => {
81
81
  const headers = sharedHeaders("DeleteStudioSessionMapping");
82
82
  let body;
83
- body = JSON.stringify(se_DeleteStudioSessionMappingInput(input, context));
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
84
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
85
  };
86
86
  exports.se_DeleteStudioSessionMappingCommand = se_DeleteStudioSessionMappingCommand;
87
87
  const se_DescribeClusterCommand = async (input, context) => {
88
88
  const headers = sharedHeaders("DescribeCluster");
89
89
  let body;
90
- body = JSON.stringify(se_DescribeClusterInput(input, context));
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
91
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
92
92
  };
93
93
  exports.se_DescribeClusterCommand = se_DescribeClusterCommand;
@@ -101,77 +101,77 @@ exports.se_DescribeJobFlowsCommand = se_DescribeJobFlowsCommand;
101
101
  const se_DescribeNotebookExecutionCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("DescribeNotebookExecution");
103
103
  let body;
104
- body = JSON.stringify(se_DescribeNotebookExecutionInput(input, context));
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  exports.se_DescribeNotebookExecutionCommand = se_DescribeNotebookExecutionCommand;
108
108
  const se_DescribeReleaseLabelCommand = async (input, context) => {
109
109
  const headers = sharedHeaders("DescribeReleaseLabel");
110
110
  let body;
111
- body = JSON.stringify(se_DescribeReleaseLabelInput(input, context));
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
114
  exports.se_DescribeReleaseLabelCommand = se_DescribeReleaseLabelCommand;
115
115
  const se_DescribeSecurityConfigurationCommand = async (input, context) => {
116
116
  const headers = sharedHeaders("DescribeSecurityConfiguration");
117
117
  let body;
118
- body = JSON.stringify(se_DescribeSecurityConfigurationInput(input, context));
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
119
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
120
  };
121
121
  exports.se_DescribeSecurityConfigurationCommand = se_DescribeSecurityConfigurationCommand;
122
122
  const se_DescribeStepCommand = async (input, context) => {
123
123
  const headers = sharedHeaders("DescribeStep");
124
124
  let body;
125
- body = JSON.stringify(se_DescribeStepInput(input, context));
125
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
127
  };
128
128
  exports.se_DescribeStepCommand = se_DescribeStepCommand;
129
129
  const se_DescribeStudioCommand = async (input, context) => {
130
130
  const headers = sharedHeaders("DescribeStudio");
131
131
  let body;
132
- body = JSON.stringify(se_DescribeStudioInput(input, context));
132
+ body = JSON.stringify((0, smithy_client_1._json)(input));
133
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
134
  };
135
135
  exports.se_DescribeStudioCommand = se_DescribeStudioCommand;
136
136
  const se_GetAutoTerminationPolicyCommand = async (input, context) => {
137
137
  const headers = sharedHeaders("GetAutoTerminationPolicy");
138
138
  let body;
139
- body = JSON.stringify(se_GetAutoTerminationPolicyInput(input, context));
139
+ body = JSON.stringify((0, smithy_client_1._json)(input));
140
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
141
141
  };
142
142
  exports.se_GetAutoTerminationPolicyCommand = se_GetAutoTerminationPolicyCommand;
143
143
  const se_GetBlockPublicAccessConfigurationCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("GetBlockPublicAccessConfiguration");
145
145
  let body;
146
- body = JSON.stringify(se_GetBlockPublicAccessConfigurationInput(input, context));
146
+ body = JSON.stringify((0, smithy_client_1._json)(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  exports.se_GetBlockPublicAccessConfigurationCommand = se_GetBlockPublicAccessConfigurationCommand;
150
150
  const se_GetClusterSessionCredentialsCommand = async (input, context) => {
151
151
  const headers = sharedHeaders("GetClusterSessionCredentials");
152
152
  let body;
153
- body = JSON.stringify(se_GetClusterSessionCredentialsInput(input, context));
153
+ body = JSON.stringify((0, smithy_client_1._json)(input));
154
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
155
  };
156
156
  exports.se_GetClusterSessionCredentialsCommand = se_GetClusterSessionCredentialsCommand;
157
157
  const se_GetManagedScalingPolicyCommand = async (input, context) => {
158
158
  const headers = sharedHeaders("GetManagedScalingPolicy");
159
159
  let body;
160
- body = JSON.stringify(se_GetManagedScalingPolicyInput(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
161
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
162
  };
163
163
  exports.se_GetManagedScalingPolicyCommand = se_GetManagedScalingPolicyCommand;
164
164
  const se_GetStudioSessionMappingCommand = async (input, context) => {
165
165
  const headers = sharedHeaders("GetStudioSessionMapping");
166
166
  let body;
167
- body = JSON.stringify(se_GetStudioSessionMappingInput(input, context));
167
+ body = JSON.stringify((0, smithy_client_1._json)(input));
168
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
169
  };
170
170
  exports.se_GetStudioSessionMappingCommand = se_GetStudioSessionMappingCommand;
171
171
  const se_ListBootstrapActionsCommand = async (input, context) => {
172
172
  const headers = sharedHeaders("ListBootstrapActions");
173
173
  let body;
174
- body = JSON.stringify(se_ListBootstrapActionsInput(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
175
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
176
  };
177
177
  exports.se_ListBootstrapActionsCommand = se_ListBootstrapActionsCommand;
@@ -185,21 +185,21 @@ exports.se_ListClustersCommand = se_ListClustersCommand;
185
185
  const se_ListInstanceFleetsCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("ListInstanceFleets");
187
187
  let body;
188
- body = JSON.stringify(se_ListInstanceFleetsInput(input, context));
188
+ body = JSON.stringify((0, smithy_client_1._json)(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  exports.se_ListInstanceFleetsCommand = se_ListInstanceFleetsCommand;
192
192
  const se_ListInstanceGroupsCommand = async (input, context) => {
193
193
  const headers = sharedHeaders("ListInstanceGroups");
194
194
  let body;
195
- body = JSON.stringify(se_ListInstanceGroupsInput(input, context));
195
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
197
  };
198
198
  exports.se_ListInstanceGroupsCommand = se_ListInstanceGroupsCommand;
199
199
  const se_ListInstancesCommand = async (input, context) => {
200
200
  const headers = sharedHeaders("ListInstances");
201
201
  let body;
202
- body = JSON.stringify(se_ListInstancesInput(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
203
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
204
  };
205
205
  exports.se_ListInstancesCommand = se_ListInstancesCommand;
@@ -213,49 +213,49 @@ exports.se_ListNotebookExecutionsCommand = se_ListNotebookExecutionsCommand;
213
213
  const se_ListReleaseLabelsCommand = async (input, context) => {
214
214
  const headers = sharedHeaders("ListReleaseLabels");
215
215
  let body;
216
- body = JSON.stringify(se_ListReleaseLabelsInput(input, context));
216
+ body = JSON.stringify((0, smithy_client_1._json)(input));
217
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
218
  };
219
219
  exports.se_ListReleaseLabelsCommand = se_ListReleaseLabelsCommand;
220
220
  const se_ListSecurityConfigurationsCommand = async (input, context) => {
221
221
  const headers = sharedHeaders("ListSecurityConfigurations");
222
222
  let body;
223
- body = JSON.stringify(se_ListSecurityConfigurationsInput(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
224
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
225
  };
226
226
  exports.se_ListSecurityConfigurationsCommand = se_ListSecurityConfigurationsCommand;
227
227
  const se_ListStepsCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("ListSteps");
229
229
  let body;
230
- body = JSON.stringify(se_ListStepsInput(input, context));
230
+ body = JSON.stringify((0, smithy_client_1._json)(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  exports.se_ListStepsCommand = se_ListStepsCommand;
234
234
  const se_ListStudiosCommand = async (input, context) => {
235
235
  const headers = sharedHeaders("ListStudios");
236
236
  let body;
237
- body = JSON.stringify(se_ListStudiosInput(input, context));
237
+ body = JSON.stringify((0, smithy_client_1._json)(input));
238
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
239
  };
240
240
  exports.se_ListStudiosCommand = se_ListStudiosCommand;
241
241
  const se_ListStudioSessionMappingsCommand = async (input, context) => {
242
242
  const headers = sharedHeaders("ListStudioSessionMappings");
243
243
  let body;
244
- body = JSON.stringify(se_ListStudioSessionMappingsInput(input, context));
244
+ body = JSON.stringify((0, smithy_client_1._json)(input));
245
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
246
  };
247
247
  exports.se_ListStudioSessionMappingsCommand = se_ListStudioSessionMappingsCommand;
248
248
  const se_ModifyClusterCommand = async (input, context) => {
249
249
  const headers = sharedHeaders("ModifyCluster");
250
250
  let body;
251
- body = JSON.stringify(se_ModifyClusterInput(input, context));
251
+ body = JSON.stringify((0, smithy_client_1._json)(input));
252
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
253
  };
254
254
  exports.se_ModifyClusterCommand = se_ModifyClusterCommand;
255
255
  const se_ModifyInstanceFleetCommand = async (input, context) => {
256
256
  const headers = sharedHeaders("ModifyInstanceFleet");
257
257
  let body;
258
- body = JSON.stringify(se_ModifyInstanceFleetInput(input, context));
258
+ body = JSON.stringify((0, smithy_client_1._json)(input));
259
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
260
  };
261
261
  exports.se_ModifyInstanceFleetCommand = se_ModifyInstanceFleetCommand;
@@ -276,7 +276,7 @@ exports.se_PutAutoScalingPolicyCommand = se_PutAutoScalingPolicyCommand;
276
276
  const se_PutAutoTerminationPolicyCommand = async (input, context) => {
277
277
  const headers = sharedHeaders("PutAutoTerminationPolicy");
278
278
  let body;
279
- body = JSON.stringify(se_PutAutoTerminationPolicyInput(input, context));
279
+ body = JSON.stringify((0, smithy_client_1._json)(input));
280
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
281
  };
282
282
  exports.se_PutAutoTerminationPolicyCommand = se_PutAutoTerminationPolicyCommand;
@@ -290,35 +290,35 @@ exports.se_PutBlockPublicAccessConfigurationCommand = se_PutBlockPublicAccessCon
290
290
  const se_PutManagedScalingPolicyCommand = async (input, context) => {
291
291
  const headers = sharedHeaders("PutManagedScalingPolicy");
292
292
  let body;
293
- body = JSON.stringify(se_PutManagedScalingPolicyInput(input, context));
293
+ body = JSON.stringify((0, smithy_client_1._json)(input));
294
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
295
  };
296
296
  exports.se_PutManagedScalingPolicyCommand = se_PutManagedScalingPolicyCommand;
297
297
  const se_RemoveAutoScalingPolicyCommand = async (input, context) => {
298
298
  const headers = sharedHeaders("RemoveAutoScalingPolicy");
299
299
  let body;
300
- body = JSON.stringify(se_RemoveAutoScalingPolicyInput(input, context));
300
+ body = JSON.stringify((0, smithy_client_1._json)(input));
301
301
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
302
302
  };
303
303
  exports.se_RemoveAutoScalingPolicyCommand = se_RemoveAutoScalingPolicyCommand;
304
304
  const se_RemoveAutoTerminationPolicyCommand = async (input, context) => {
305
305
  const headers = sharedHeaders("RemoveAutoTerminationPolicy");
306
306
  let body;
307
- body = JSON.stringify(se_RemoveAutoTerminationPolicyInput(input, context));
307
+ body = JSON.stringify((0, smithy_client_1._json)(input));
308
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
309
  };
310
310
  exports.se_RemoveAutoTerminationPolicyCommand = se_RemoveAutoTerminationPolicyCommand;
311
311
  const se_RemoveManagedScalingPolicyCommand = async (input, context) => {
312
312
  const headers = sharedHeaders("RemoveManagedScalingPolicy");
313
313
  let body;
314
- body = JSON.stringify(se_RemoveManagedScalingPolicyInput(input, context));
314
+ body = JSON.stringify((0, smithy_client_1._json)(input));
315
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
316
  };
317
317
  exports.se_RemoveManagedScalingPolicyCommand = se_RemoveManagedScalingPolicyCommand;
318
318
  const se_RemoveTagsCommand = async (input, context) => {
319
319
  const headers = sharedHeaders("RemoveTags");
320
320
  let body;
321
- body = JSON.stringify(se_RemoveTagsInput(input, context));
321
+ body = JSON.stringify((0, smithy_client_1._json)(input));
322
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
323
  };
324
324
  exports.se_RemoveTagsCommand = se_RemoveTagsCommand;
@@ -332,49 +332,49 @@ exports.se_RunJobFlowCommand = se_RunJobFlowCommand;
332
332
  const se_SetTerminationProtectionCommand = async (input, context) => {
333
333
  const headers = sharedHeaders("SetTerminationProtection");
334
334
  let body;
335
- body = JSON.stringify(se_SetTerminationProtectionInput(input, context));
335
+ body = JSON.stringify((0, smithy_client_1._json)(input));
336
336
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
337
  };
338
338
  exports.se_SetTerminationProtectionCommand = se_SetTerminationProtectionCommand;
339
339
  const se_SetVisibleToAllUsersCommand = async (input, context) => {
340
340
  const headers = sharedHeaders("SetVisibleToAllUsers");
341
341
  let body;
342
- body = JSON.stringify(se_SetVisibleToAllUsersInput(input, context));
342
+ body = JSON.stringify((0, smithy_client_1._json)(input));
343
343
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
344
344
  };
345
345
  exports.se_SetVisibleToAllUsersCommand = se_SetVisibleToAllUsersCommand;
346
346
  const se_StartNotebookExecutionCommand = async (input, context) => {
347
347
  const headers = sharedHeaders("StartNotebookExecution");
348
348
  let body;
349
- body = JSON.stringify(se_StartNotebookExecutionInput(input, context));
349
+ body = JSON.stringify((0, smithy_client_1._json)(input));
350
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
351
  };
352
352
  exports.se_StartNotebookExecutionCommand = se_StartNotebookExecutionCommand;
353
353
  const se_StopNotebookExecutionCommand = async (input, context) => {
354
354
  const headers = sharedHeaders("StopNotebookExecution");
355
355
  let body;
356
- body = JSON.stringify(se_StopNotebookExecutionInput(input, context));
356
+ body = JSON.stringify((0, smithy_client_1._json)(input));
357
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
358
  };
359
359
  exports.se_StopNotebookExecutionCommand = se_StopNotebookExecutionCommand;
360
360
  const se_TerminateJobFlowsCommand = async (input, context) => {
361
361
  const headers = sharedHeaders("TerminateJobFlows");
362
362
  let body;
363
- body = JSON.stringify(se_TerminateJobFlowsInput(input, context));
363
+ body = JSON.stringify((0, smithy_client_1._json)(input));
364
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
365
  };
366
366
  exports.se_TerminateJobFlowsCommand = se_TerminateJobFlowsCommand;
367
367
  const se_UpdateStudioCommand = async (input, context) => {
368
368
  const headers = sharedHeaders("UpdateStudio");
369
369
  let body;
370
- body = JSON.stringify(se_UpdateStudioInput(input, context));
370
+ body = JSON.stringify((0, smithy_client_1._json)(input));
371
371
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
372
  };
373
373
  exports.se_UpdateStudioCommand = se_UpdateStudioCommand;
374
374
  const se_UpdateStudioSessionMappingCommand = async (input, context) => {
375
375
  const headers = sharedHeaders("UpdateStudioSessionMapping");
376
376
  let body;
377
- body = JSON.stringify(se_UpdateStudioSessionMappingInput(input, context));
377
+ body = JSON.stringify((0, smithy_client_1._json)(input));
378
378
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
379
  };
380
380
  exports.se_UpdateStudioSessionMappingCommand = se_UpdateStudioSessionMappingCommand;
@@ -384,12 +384,12 @@ const de_AddInstanceFleetCommand = async (output, context) => {
384
384
  }
385
385
  const data = await parseBody(output.body, context);
386
386
  let contents = {};
387
- contents = de_AddInstanceFleetOutput(data, context);
387
+ contents = (0, smithy_client_1._json)(data);
388
388
  const response = {
389
389
  $metadata: deserializeMetadata(output),
390
390
  ...contents,
391
391
  };
392
- return Promise.resolve(response);
392
+ return response;
393
393
  };
394
394
  exports.de_AddInstanceFleetCommand = de_AddInstanceFleetCommand;
395
395
  const de_AddInstanceFleetCommandError = async (output, context) => {
@@ -407,10 +407,9 @@ const de_AddInstanceFleetCommandError = async (output, context) => {
407
407
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
408
408
  default:
409
409
  const parsedBody = parsedOutput.body;
410
- (0, smithy_client_1.throwDefaultError)({
410
+ return throwDefaultError({
411
411
  output,
412
412
  parsedBody,
413
- exceptionCtor: EMRServiceException_1.EMRServiceException,
414
413
  errorCode,
415
414
  });
416
415
  }
@@ -421,12 +420,12 @@ const de_AddInstanceGroupsCommand = async (output, context) => {
421
420
  }
422
421
  const data = await parseBody(output.body, context);
423
422
  let contents = {};
424
- contents = de_AddInstanceGroupsOutput(data, context);
423
+ contents = (0, smithy_client_1._json)(data);
425
424
  const response = {
426
425
  $metadata: deserializeMetadata(output),
427
426
  ...contents,
428
427
  };
429
- return Promise.resolve(response);
428
+ return response;
430
429
  };
431
430
  exports.de_AddInstanceGroupsCommand = de_AddInstanceGroupsCommand;
432
431
  const de_AddInstanceGroupsCommandError = async (output, context) => {
@@ -441,10 +440,9 @@ const de_AddInstanceGroupsCommandError = async (output, context) => {
441
440
  throw await de_InternalServerErrorRes(parsedOutput, context);
442
441
  default:
443
442
  const parsedBody = parsedOutput.body;
444
- (0, smithy_client_1.throwDefaultError)({
443
+ return throwDefaultError({
445
444
  output,
446
445
  parsedBody,
447
- exceptionCtor: EMRServiceException_1.EMRServiceException,
448
446
  errorCode,
449
447
  });
450
448
  }
@@ -455,12 +453,12 @@ const de_AddJobFlowStepsCommand = async (output, context) => {
455
453
  }
456
454
  const data = await parseBody(output.body, context);
457
455
  let contents = {};
458
- contents = de_AddJobFlowStepsOutput(data, context);
456
+ contents = (0, smithy_client_1._json)(data);
459
457
  const response = {
460
458
  $metadata: deserializeMetadata(output),
461
459
  ...contents,
462
460
  };
463
- return Promise.resolve(response);
461
+ return response;
464
462
  };
465
463
  exports.de_AddJobFlowStepsCommand = de_AddJobFlowStepsCommand;
466
464
  const de_AddJobFlowStepsCommandError = async (output, context) => {
@@ -475,10 +473,9 @@ const de_AddJobFlowStepsCommandError = async (output, context) => {
475
473
  throw await de_InternalServerErrorRes(parsedOutput, context);
476
474
  default:
477
475
  const parsedBody = parsedOutput.body;
478
- (0, smithy_client_1.throwDefaultError)({
476
+ return throwDefaultError({
479
477
  output,
480
478
  parsedBody,
481
- exceptionCtor: EMRServiceException_1.EMRServiceException,
482
479
  errorCode,
483
480
  });
484
481
  }
@@ -489,12 +486,12 @@ const de_AddTagsCommand = async (output, context) => {
489
486
  }
490
487
  const data = await parseBody(output.body, context);
491
488
  let contents = {};
492
- contents = de_AddTagsOutput(data, context);
489
+ contents = (0, smithy_client_1._json)(data);
493
490
  const response = {
494
491
  $metadata: deserializeMetadata(output),
495
492
  ...contents,
496
493
  };
497
- return Promise.resolve(response);
494
+ return response;
498
495
  };
499
496
  exports.de_AddTagsCommand = de_AddTagsCommand;
500
497
  const de_AddTagsCommandError = async (output, context) => {
@@ -512,10 +509,9 @@ const de_AddTagsCommandError = async (output, context) => {
512
509
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
513
510
  default:
514
511
  const parsedBody = parsedOutput.body;
515
- (0, smithy_client_1.throwDefaultError)({
512
+ return throwDefaultError({
516
513
  output,
517
514
  parsedBody,
518
- exceptionCtor: EMRServiceException_1.EMRServiceException,
519
515
  errorCode,
520
516
  });
521
517
  }
@@ -526,12 +522,12 @@ const de_CancelStepsCommand = async (output, context) => {
526
522
  }
527
523
  const data = await parseBody(output.body, context);
528
524
  let contents = {};
529
- contents = de_CancelStepsOutput(data, context);
525
+ contents = (0, smithy_client_1._json)(data);
530
526
  const response = {
531
527
  $metadata: deserializeMetadata(output),
532
528
  ...contents,
533
529
  };
534
- return Promise.resolve(response);
530
+ return response;
535
531
  };
536
532
  exports.de_CancelStepsCommand = de_CancelStepsCommand;
537
533
  const de_CancelStepsCommandError = async (output, context) => {
@@ -549,10 +545,9 @@ const de_CancelStepsCommandError = async (output, context) => {
549
545
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
550
546
  default:
551
547
  const parsedBody = parsedOutput.body;
552
- (0, smithy_client_1.throwDefaultError)({
548
+ return throwDefaultError({
553
549
  output,
554
550
  parsedBody,
555
- exceptionCtor: EMRServiceException_1.EMRServiceException,
556
551
  errorCode,
557
552
  });
558
553
  }
@@ -568,7 +563,7 @@ const de_CreateSecurityConfigurationCommand = async (output, context) => {
568
563
  $metadata: deserializeMetadata(output),
569
564
  ...contents,
570
565
  };
571
- return Promise.resolve(response);
566
+ return response;
572
567
  };
573
568
  exports.de_CreateSecurityConfigurationCommand = de_CreateSecurityConfigurationCommand;
574
569
  const de_CreateSecurityConfigurationCommandError = async (output, context) => {
@@ -586,10 +581,9 @@ const de_CreateSecurityConfigurationCommandError = async (output, context) => {
586
581
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
587
582
  default:
588
583
  const parsedBody = parsedOutput.body;
589
- (0, smithy_client_1.throwDefaultError)({
584
+ return throwDefaultError({
590
585
  output,
591
586
  parsedBody,
592
- exceptionCtor: EMRServiceException_1.EMRServiceException,
593
587
  errorCode,
594
588
  });
595
589
  }
@@ -600,12 +594,12 @@ const de_CreateStudioCommand = async (output, context) => {
600
594
  }
601
595
  const data = await parseBody(output.body, context);
602
596
  let contents = {};
603
- contents = de_CreateStudioOutput(data, context);
597
+ contents = (0, smithy_client_1._json)(data);
604
598
  const response = {
605
599
  $metadata: deserializeMetadata(output),
606
600
  ...contents,
607
601
  };
608
- return Promise.resolve(response);
602
+ return response;
609
603
  };
610
604
  exports.de_CreateStudioCommand = de_CreateStudioCommand;
611
605
  const de_CreateStudioCommandError = async (output, context) => {
@@ -623,10 +617,9 @@ const de_CreateStudioCommandError = async (output, context) => {
623
617
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
624
618
  default:
625
619
  const parsedBody = parsedOutput.body;
626
- (0, smithy_client_1.throwDefaultError)({
620
+ return throwDefaultError({
627
621
  output,
628
622
  parsedBody,
629
- exceptionCtor: EMRServiceException_1.EMRServiceException,
630
623
  errorCode,
631
624
  });
632
625
  }
@@ -639,7 +632,7 @@ const de_CreateStudioSessionMappingCommand = async (output, context) => {
639
632
  const response = {
640
633
  $metadata: deserializeMetadata(output),
641
634
  };
642
- return Promise.resolve(response);
635
+ return response;
643
636
  };
644
637
  exports.de_CreateStudioSessionMappingCommand = de_CreateStudioSessionMappingCommand;
645
638
  const de_CreateStudioSessionMappingCommandError = async (output, context) => {
@@ -657,10 +650,9 @@ const de_CreateStudioSessionMappingCommandError = async (output, context) => {
657
650
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
658
651
  default:
659
652
  const parsedBody = parsedOutput.body;
660
- (0, smithy_client_1.throwDefaultError)({
653
+ return throwDefaultError({
661
654
  output,
662
655
  parsedBody,
663
- exceptionCtor: EMRServiceException_1.EMRServiceException,
664
656
  errorCode,
665
657
  });
666
658
  }
@@ -671,12 +663,12 @@ const de_DeleteSecurityConfigurationCommand = async (output, context) => {
671
663
  }
672
664
  const data = await parseBody(output.body, context);
673
665
  let contents = {};
674
- contents = de_DeleteSecurityConfigurationOutput(data, context);
666
+ contents = (0, smithy_client_1._json)(data);
675
667
  const response = {
676
668
  $metadata: deserializeMetadata(output),
677
669
  ...contents,
678
670
  };
679
- return Promise.resolve(response);
671
+ return response;
680
672
  };
681
673
  exports.de_DeleteSecurityConfigurationCommand = de_DeleteSecurityConfigurationCommand;
682
674
  const de_DeleteSecurityConfigurationCommandError = async (output, context) => {
@@ -694,10 +686,9 @@ const de_DeleteSecurityConfigurationCommandError = async (output, context) => {
694
686
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
695
687
  default:
696
688
  const parsedBody = parsedOutput.body;
697
- (0, smithy_client_1.throwDefaultError)({
689
+ return throwDefaultError({
698
690
  output,
699
691
  parsedBody,
700
- exceptionCtor: EMRServiceException_1.EMRServiceException,
701
692
  errorCode,
702
693
  });
703
694
  }
@@ -710,7 +701,7 @@ const de_DeleteStudioCommand = async (output, context) => {
710
701
  const response = {
711
702
  $metadata: deserializeMetadata(output),
712
703
  };
713
- return Promise.resolve(response);
704
+ return response;
714
705
  };
715
706
  exports.de_DeleteStudioCommand = de_DeleteStudioCommand;
716
707
  const de_DeleteStudioCommandError = async (output, context) => {
@@ -728,10 +719,9 @@ const de_DeleteStudioCommandError = async (output, context) => {
728
719
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
729
720
  default:
730
721
  const parsedBody = parsedOutput.body;
731
- (0, smithy_client_1.throwDefaultError)({
722
+ return throwDefaultError({
732
723
  output,
733
724
  parsedBody,
734
- exceptionCtor: EMRServiceException_1.EMRServiceException,
735
725
  errorCode,
736
726
  });
737
727
  }
@@ -744,7 +734,7 @@ const de_DeleteStudioSessionMappingCommand = async (output, context) => {
744
734
  const response = {
745
735
  $metadata: deserializeMetadata(output),
746
736
  };
747
- return Promise.resolve(response);
737
+ return response;
748
738
  };
749
739
  exports.de_DeleteStudioSessionMappingCommand = de_DeleteStudioSessionMappingCommand;
750
740
  const de_DeleteStudioSessionMappingCommandError = async (output, context) => {
@@ -762,10 +752,9 @@ const de_DeleteStudioSessionMappingCommandError = async (output, context) => {
762
752
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
763
753
  default:
764
754
  const parsedBody = parsedOutput.body;
765
- (0, smithy_client_1.throwDefaultError)({
755
+ return throwDefaultError({
766
756
  output,
767
757
  parsedBody,
768
- exceptionCtor: EMRServiceException_1.EMRServiceException,
769
758
  errorCode,
770
759
  });
771
760
  }
@@ -781,7 +770,7 @@ const de_DescribeClusterCommand = async (output, context) => {
781
770
  $metadata: deserializeMetadata(output),
782
771
  ...contents,
783
772
  };
784
- return Promise.resolve(response);
773
+ return response;
785
774
  };
786
775
  exports.de_DescribeClusterCommand = de_DescribeClusterCommand;
787
776
  const de_DescribeClusterCommandError = async (output, context) => {
@@ -799,10 +788,9 @@ const de_DescribeClusterCommandError = async (output, context) => {
799
788
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
800
789
  default:
801
790
  const parsedBody = parsedOutput.body;
802
- (0, smithy_client_1.throwDefaultError)({
791
+ return throwDefaultError({
803
792
  output,
804
793
  parsedBody,
805
- exceptionCtor: EMRServiceException_1.EMRServiceException,
806
794
  errorCode,
807
795
  });
808
796
  }
@@ -818,7 +806,7 @@ const de_DescribeJobFlowsCommand = async (output, context) => {
818
806
  $metadata: deserializeMetadata(output),
819
807
  ...contents,
820
808
  };
821
- return Promise.resolve(response);
809
+ return response;
822
810
  };
823
811
  exports.de_DescribeJobFlowsCommand = de_DescribeJobFlowsCommand;
824
812
  const de_DescribeJobFlowsCommandError = async (output, context) => {
@@ -833,10 +821,9 @@ const de_DescribeJobFlowsCommandError = async (output, context) => {
833
821
  throw await de_InternalServerErrorRes(parsedOutput, context);
834
822
  default:
835
823
  const parsedBody = parsedOutput.body;
836
- (0, smithy_client_1.throwDefaultError)({
824
+ return throwDefaultError({
837
825
  output,
838
826
  parsedBody,
839
- exceptionCtor: EMRServiceException_1.EMRServiceException,
840
827
  errorCode,
841
828
  });
842
829
  }
@@ -852,7 +839,7 @@ const de_DescribeNotebookExecutionCommand = async (output, context) => {
852
839
  $metadata: deserializeMetadata(output),
853
840
  ...contents,
854
841
  };
855
- return Promise.resolve(response);
842
+ return response;
856
843
  };
857
844
  exports.de_DescribeNotebookExecutionCommand = de_DescribeNotebookExecutionCommand;
858
845
  const de_DescribeNotebookExecutionCommandError = async (output, context) => {
@@ -870,10 +857,9 @@ const de_DescribeNotebookExecutionCommandError = async (output, context) => {
870
857
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
871
858
  default:
872
859
  const parsedBody = parsedOutput.body;
873
- (0, smithy_client_1.throwDefaultError)({
860
+ return throwDefaultError({
874
861
  output,
875
862
  parsedBody,
876
- exceptionCtor: EMRServiceException_1.EMRServiceException,
877
863
  errorCode,
878
864
  });
879
865
  }
@@ -884,12 +870,12 @@ const de_DescribeReleaseLabelCommand = async (output, context) => {
884
870
  }
885
871
  const data = await parseBody(output.body, context);
886
872
  let contents = {};
887
- contents = de_DescribeReleaseLabelOutput(data, context);
873
+ contents = (0, smithy_client_1._json)(data);
888
874
  const response = {
889
875
  $metadata: deserializeMetadata(output),
890
876
  ...contents,
891
877
  };
892
- return Promise.resolve(response);
878
+ return response;
893
879
  };
894
880
  exports.de_DescribeReleaseLabelCommand = de_DescribeReleaseLabelCommand;
895
881
  const de_DescribeReleaseLabelCommandError = async (output, context) => {
@@ -907,10 +893,9 @@ const de_DescribeReleaseLabelCommandError = async (output, context) => {
907
893
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
908
894
  default:
909
895
  const parsedBody = parsedOutput.body;
910
- (0, smithy_client_1.throwDefaultError)({
896
+ return throwDefaultError({
911
897
  output,
912
898
  parsedBody,
913
- exceptionCtor: EMRServiceException_1.EMRServiceException,
914
899
  errorCode,
915
900
  });
916
901
  }
@@ -926,7 +911,7 @@ const de_DescribeSecurityConfigurationCommand = async (output, context) => {
926
911
  $metadata: deserializeMetadata(output),
927
912
  ...contents,
928
913
  };
929
- return Promise.resolve(response);
914
+ return response;
930
915
  };
931
916
  exports.de_DescribeSecurityConfigurationCommand = de_DescribeSecurityConfigurationCommand;
932
917
  const de_DescribeSecurityConfigurationCommandError = async (output, context) => {
@@ -944,10 +929,9 @@ const de_DescribeSecurityConfigurationCommandError = async (output, context) =>
944
929
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
945
930
  default:
946
931
  const parsedBody = parsedOutput.body;
947
- (0, smithy_client_1.throwDefaultError)({
932
+ return throwDefaultError({
948
933
  output,
949
934
  parsedBody,
950
- exceptionCtor: EMRServiceException_1.EMRServiceException,
951
935
  errorCode,
952
936
  });
953
937
  }
@@ -963,7 +947,7 @@ const de_DescribeStepCommand = async (output, context) => {
963
947
  $metadata: deserializeMetadata(output),
964
948
  ...contents,
965
949
  };
966
- return Promise.resolve(response);
950
+ return response;
967
951
  };
968
952
  exports.de_DescribeStepCommand = de_DescribeStepCommand;
969
953
  const de_DescribeStepCommandError = async (output, context) => {
@@ -981,10 +965,9 @@ const de_DescribeStepCommandError = async (output, context) => {
981
965
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
982
966
  default:
983
967
  const parsedBody = parsedOutput.body;
984
- (0, smithy_client_1.throwDefaultError)({
968
+ return throwDefaultError({
985
969
  output,
986
970
  parsedBody,
987
- exceptionCtor: EMRServiceException_1.EMRServiceException,
988
971
  errorCode,
989
972
  });
990
973
  }
@@ -1000,7 +983,7 @@ const de_DescribeStudioCommand = async (output, context) => {
1000
983
  $metadata: deserializeMetadata(output),
1001
984
  ...contents,
1002
985
  };
1003
- return Promise.resolve(response);
986
+ return response;
1004
987
  };
1005
988
  exports.de_DescribeStudioCommand = de_DescribeStudioCommand;
1006
989
  const de_DescribeStudioCommandError = async (output, context) => {
@@ -1018,10 +1001,9 @@ const de_DescribeStudioCommandError = async (output, context) => {
1018
1001
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1019
1002
  default:
1020
1003
  const parsedBody = parsedOutput.body;
1021
- (0, smithy_client_1.throwDefaultError)({
1004
+ return throwDefaultError({
1022
1005
  output,
1023
1006
  parsedBody,
1024
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1025
1007
  errorCode,
1026
1008
  });
1027
1009
  }
@@ -1032,12 +1014,12 @@ const de_GetAutoTerminationPolicyCommand = async (output, context) => {
1032
1014
  }
1033
1015
  const data = await parseBody(output.body, context);
1034
1016
  let contents = {};
1035
- contents = de_GetAutoTerminationPolicyOutput(data, context);
1017
+ contents = (0, smithy_client_1._json)(data);
1036
1018
  const response = {
1037
1019
  $metadata: deserializeMetadata(output),
1038
1020
  ...contents,
1039
1021
  };
1040
- return Promise.resolve(response);
1022
+ return response;
1041
1023
  };
1042
1024
  exports.de_GetAutoTerminationPolicyCommand = de_GetAutoTerminationPolicyCommand;
1043
1025
  const de_GetAutoTerminationPolicyCommandError = async (output, context) => {
@@ -1047,10 +1029,9 @@ const de_GetAutoTerminationPolicyCommandError = async (output, context) => {
1047
1029
  };
1048
1030
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1049
1031
  const parsedBody = parsedOutput.body;
1050
- (0, smithy_client_1.throwDefaultError)({
1032
+ return throwDefaultError({
1051
1033
  output,
1052
1034
  parsedBody,
1053
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1054
1035
  errorCode,
1055
1036
  });
1056
1037
  };
@@ -1065,7 +1046,7 @@ const de_GetBlockPublicAccessConfigurationCommand = async (output, context) => {
1065
1046
  $metadata: deserializeMetadata(output),
1066
1047
  ...contents,
1067
1048
  };
1068
- return Promise.resolve(response);
1049
+ return response;
1069
1050
  };
1070
1051
  exports.de_GetBlockPublicAccessConfigurationCommand = de_GetBlockPublicAccessConfigurationCommand;
1071
1052
  const de_GetBlockPublicAccessConfigurationCommandError = async (output, context) => {
@@ -1083,10 +1064,9 @@ const de_GetBlockPublicAccessConfigurationCommandError = async (output, context)
1083
1064
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1084
1065
  default:
1085
1066
  const parsedBody = parsedOutput.body;
1086
- (0, smithy_client_1.throwDefaultError)({
1067
+ return throwDefaultError({
1087
1068
  output,
1088
1069
  parsedBody,
1089
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1090
1070
  errorCode,
1091
1071
  });
1092
1072
  }
@@ -1102,7 +1082,7 @@ const de_GetClusterSessionCredentialsCommand = async (output, context) => {
1102
1082
  $metadata: deserializeMetadata(output),
1103
1083
  ...contents,
1104
1084
  };
1105
- return Promise.resolve(response);
1085
+ return response;
1106
1086
  };
1107
1087
  exports.de_GetClusterSessionCredentialsCommand = de_GetClusterSessionCredentialsCommand;
1108
1088
  const de_GetClusterSessionCredentialsCommandError = async (output, context) => {
@@ -1120,10 +1100,9 @@ const de_GetClusterSessionCredentialsCommandError = async (output, context) => {
1120
1100
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1121
1101
  default:
1122
1102
  const parsedBody = parsedOutput.body;
1123
- (0, smithy_client_1.throwDefaultError)({
1103
+ return throwDefaultError({
1124
1104
  output,
1125
1105
  parsedBody,
1126
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1127
1106
  errorCode,
1128
1107
  });
1129
1108
  }
@@ -1134,12 +1113,12 @@ const de_GetManagedScalingPolicyCommand = async (output, context) => {
1134
1113
  }
1135
1114
  const data = await parseBody(output.body, context);
1136
1115
  let contents = {};
1137
- contents = de_GetManagedScalingPolicyOutput(data, context);
1116
+ contents = (0, smithy_client_1._json)(data);
1138
1117
  const response = {
1139
1118
  $metadata: deserializeMetadata(output),
1140
1119
  ...contents,
1141
1120
  };
1142
- return Promise.resolve(response);
1121
+ return response;
1143
1122
  };
1144
1123
  exports.de_GetManagedScalingPolicyCommand = de_GetManagedScalingPolicyCommand;
1145
1124
  const de_GetManagedScalingPolicyCommandError = async (output, context) => {
@@ -1149,10 +1128,9 @@ const de_GetManagedScalingPolicyCommandError = async (output, context) => {
1149
1128
  };
1150
1129
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1151
1130
  const parsedBody = parsedOutput.body;
1152
- (0, smithy_client_1.throwDefaultError)({
1131
+ return throwDefaultError({
1153
1132
  output,
1154
1133
  parsedBody,
1155
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1156
1134
  errorCode,
1157
1135
  });
1158
1136
  };
@@ -1167,7 +1145,7 @@ const de_GetStudioSessionMappingCommand = async (output, context) => {
1167
1145
  $metadata: deserializeMetadata(output),
1168
1146
  ...contents,
1169
1147
  };
1170
- return Promise.resolve(response);
1148
+ return response;
1171
1149
  };
1172
1150
  exports.de_GetStudioSessionMappingCommand = de_GetStudioSessionMappingCommand;
1173
1151
  const de_GetStudioSessionMappingCommandError = async (output, context) => {
@@ -1185,10 +1163,9 @@ const de_GetStudioSessionMappingCommandError = async (output, context) => {
1185
1163
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1186
1164
  default:
1187
1165
  const parsedBody = parsedOutput.body;
1188
- (0, smithy_client_1.throwDefaultError)({
1166
+ return throwDefaultError({
1189
1167
  output,
1190
1168
  parsedBody,
1191
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1192
1169
  errorCode,
1193
1170
  });
1194
1171
  }
@@ -1199,12 +1176,12 @@ const de_ListBootstrapActionsCommand = async (output, context) => {
1199
1176
  }
1200
1177
  const data = await parseBody(output.body, context);
1201
1178
  let contents = {};
1202
- contents = de_ListBootstrapActionsOutput(data, context);
1179
+ contents = (0, smithy_client_1._json)(data);
1203
1180
  const response = {
1204
1181
  $metadata: deserializeMetadata(output),
1205
1182
  ...contents,
1206
1183
  };
1207
- return Promise.resolve(response);
1184
+ return response;
1208
1185
  };
1209
1186
  exports.de_ListBootstrapActionsCommand = de_ListBootstrapActionsCommand;
1210
1187
  const de_ListBootstrapActionsCommandError = async (output, context) => {
@@ -1222,10 +1199,9 @@ const de_ListBootstrapActionsCommandError = async (output, context) => {
1222
1199
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1223
1200
  default:
1224
1201
  const parsedBody = parsedOutput.body;
1225
- (0, smithy_client_1.throwDefaultError)({
1202
+ return throwDefaultError({
1226
1203
  output,
1227
1204
  parsedBody,
1228
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1229
1205
  errorCode,
1230
1206
  });
1231
1207
  }
@@ -1241,7 +1217,7 @@ const de_ListClustersCommand = async (output, context) => {
1241
1217
  $metadata: deserializeMetadata(output),
1242
1218
  ...contents,
1243
1219
  };
1244
- return Promise.resolve(response);
1220
+ return response;
1245
1221
  };
1246
1222
  exports.de_ListClustersCommand = de_ListClustersCommand;
1247
1223
  const de_ListClustersCommandError = async (output, context) => {
@@ -1259,10 +1235,9 @@ const de_ListClustersCommandError = async (output, context) => {
1259
1235
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1260
1236
  default:
1261
1237
  const parsedBody = parsedOutput.body;
1262
- (0, smithy_client_1.throwDefaultError)({
1238
+ return throwDefaultError({
1263
1239
  output,
1264
1240
  parsedBody,
1265
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1266
1241
  errorCode,
1267
1242
  });
1268
1243
  }
@@ -1278,7 +1253,7 @@ const de_ListInstanceFleetsCommand = async (output, context) => {
1278
1253
  $metadata: deserializeMetadata(output),
1279
1254
  ...contents,
1280
1255
  };
1281
- return Promise.resolve(response);
1256
+ return response;
1282
1257
  };
1283
1258
  exports.de_ListInstanceFleetsCommand = de_ListInstanceFleetsCommand;
1284
1259
  const de_ListInstanceFleetsCommandError = async (output, context) => {
@@ -1296,10 +1271,9 @@ const de_ListInstanceFleetsCommandError = async (output, context) => {
1296
1271
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1297
1272
  default:
1298
1273
  const parsedBody = parsedOutput.body;
1299
- (0, smithy_client_1.throwDefaultError)({
1274
+ return throwDefaultError({
1300
1275
  output,
1301
1276
  parsedBody,
1302
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1303
1277
  errorCode,
1304
1278
  });
1305
1279
  }
@@ -1315,7 +1289,7 @@ const de_ListInstanceGroupsCommand = async (output, context) => {
1315
1289
  $metadata: deserializeMetadata(output),
1316
1290
  ...contents,
1317
1291
  };
1318
- return Promise.resolve(response);
1292
+ return response;
1319
1293
  };
1320
1294
  exports.de_ListInstanceGroupsCommand = de_ListInstanceGroupsCommand;
1321
1295
  const de_ListInstanceGroupsCommandError = async (output, context) => {
@@ -1333,10 +1307,9 @@ const de_ListInstanceGroupsCommandError = async (output, context) => {
1333
1307
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1334
1308
  default:
1335
1309
  const parsedBody = parsedOutput.body;
1336
- (0, smithy_client_1.throwDefaultError)({
1310
+ return throwDefaultError({
1337
1311
  output,
1338
1312
  parsedBody,
1339
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1340
1313
  errorCode,
1341
1314
  });
1342
1315
  }
@@ -1352,7 +1325,7 @@ const de_ListInstancesCommand = async (output, context) => {
1352
1325
  $metadata: deserializeMetadata(output),
1353
1326
  ...contents,
1354
1327
  };
1355
- return Promise.resolve(response);
1328
+ return response;
1356
1329
  };
1357
1330
  exports.de_ListInstancesCommand = de_ListInstancesCommand;
1358
1331
  const de_ListInstancesCommandError = async (output, context) => {
@@ -1370,10 +1343,9 @@ const de_ListInstancesCommandError = async (output, context) => {
1370
1343
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1371
1344
  default:
1372
1345
  const parsedBody = parsedOutput.body;
1373
- (0, smithy_client_1.throwDefaultError)({
1346
+ return throwDefaultError({
1374
1347
  output,
1375
1348
  parsedBody,
1376
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1377
1349
  errorCode,
1378
1350
  });
1379
1351
  }
@@ -1389,7 +1361,7 @@ const de_ListNotebookExecutionsCommand = async (output, context) => {
1389
1361
  $metadata: deserializeMetadata(output),
1390
1362
  ...contents,
1391
1363
  };
1392
- return Promise.resolve(response);
1364
+ return response;
1393
1365
  };
1394
1366
  exports.de_ListNotebookExecutionsCommand = de_ListNotebookExecutionsCommand;
1395
1367
  const de_ListNotebookExecutionsCommandError = async (output, context) => {
@@ -1407,10 +1379,9 @@ const de_ListNotebookExecutionsCommandError = async (output, context) => {
1407
1379
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1408
1380
  default:
1409
1381
  const parsedBody = parsedOutput.body;
1410
- (0, smithy_client_1.throwDefaultError)({
1382
+ return throwDefaultError({
1411
1383
  output,
1412
1384
  parsedBody,
1413
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1414
1385
  errorCode,
1415
1386
  });
1416
1387
  }
@@ -1421,12 +1392,12 @@ const de_ListReleaseLabelsCommand = async (output, context) => {
1421
1392
  }
1422
1393
  const data = await parseBody(output.body, context);
1423
1394
  let contents = {};
1424
- contents = de_ListReleaseLabelsOutput(data, context);
1395
+ contents = (0, smithy_client_1._json)(data);
1425
1396
  const response = {
1426
1397
  $metadata: deserializeMetadata(output),
1427
1398
  ...contents,
1428
1399
  };
1429
- return Promise.resolve(response);
1400
+ return response;
1430
1401
  };
1431
1402
  exports.de_ListReleaseLabelsCommand = de_ListReleaseLabelsCommand;
1432
1403
  const de_ListReleaseLabelsCommandError = async (output, context) => {
@@ -1444,10 +1415,9 @@ const de_ListReleaseLabelsCommandError = async (output, context) => {
1444
1415
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1445
1416
  default:
1446
1417
  const parsedBody = parsedOutput.body;
1447
- (0, smithy_client_1.throwDefaultError)({
1418
+ return throwDefaultError({
1448
1419
  output,
1449
1420
  parsedBody,
1450
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1451
1421
  errorCode,
1452
1422
  });
1453
1423
  }
@@ -1463,7 +1433,7 @@ const de_ListSecurityConfigurationsCommand = async (output, context) => {
1463
1433
  $metadata: deserializeMetadata(output),
1464
1434
  ...contents,
1465
1435
  };
1466
- return Promise.resolve(response);
1436
+ return response;
1467
1437
  };
1468
1438
  exports.de_ListSecurityConfigurationsCommand = de_ListSecurityConfigurationsCommand;
1469
1439
  const de_ListSecurityConfigurationsCommandError = async (output, context) => {
@@ -1481,10 +1451,9 @@ const de_ListSecurityConfigurationsCommandError = async (output, context) => {
1481
1451
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1482
1452
  default:
1483
1453
  const parsedBody = parsedOutput.body;
1484
- (0, smithy_client_1.throwDefaultError)({
1454
+ return throwDefaultError({
1485
1455
  output,
1486
1456
  parsedBody,
1487
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1488
1457
  errorCode,
1489
1458
  });
1490
1459
  }
@@ -1500,7 +1469,7 @@ const de_ListStepsCommand = async (output, context) => {
1500
1469
  $metadata: deserializeMetadata(output),
1501
1470
  ...contents,
1502
1471
  };
1503
- return Promise.resolve(response);
1472
+ return response;
1504
1473
  };
1505
1474
  exports.de_ListStepsCommand = de_ListStepsCommand;
1506
1475
  const de_ListStepsCommandError = async (output, context) => {
@@ -1518,10 +1487,9 @@ const de_ListStepsCommandError = async (output, context) => {
1518
1487
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1519
1488
  default:
1520
1489
  const parsedBody = parsedOutput.body;
1521
- (0, smithy_client_1.throwDefaultError)({
1490
+ return throwDefaultError({
1522
1491
  output,
1523
1492
  parsedBody,
1524
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1525
1493
  errorCode,
1526
1494
  });
1527
1495
  }
@@ -1537,7 +1505,7 @@ const de_ListStudiosCommand = async (output, context) => {
1537
1505
  $metadata: deserializeMetadata(output),
1538
1506
  ...contents,
1539
1507
  };
1540
- return Promise.resolve(response);
1508
+ return response;
1541
1509
  };
1542
1510
  exports.de_ListStudiosCommand = de_ListStudiosCommand;
1543
1511
  const de_ListStudiosCommandError = async (output, context) => {
@@ -1555,10 +1523,9 @@ const de_ListStudiosCommandError = async (output, context) => {
1555
1523
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1556
1524
  default:
1557
1525
  const parsedBody = parsedOutput.body;
1558
- (0, smithy_client_1.throwDefaultError)({
1526
+ return throwDefaultError({
1559
1527
  output,
1560
1528
  parsedBody,
1561
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1562
1529
  errorCode,
1563
1530
  });
1564
1531
  }
@@ -1574,7 +1541,7 @@ const de_ListStudioSessionMappingsCommand = async (output, context) => {
1574
1541
  $metadata: deserializeMetadata(output),
1575
1542
  ...contents,
1576
1543
  };
1577
- return Promise.resolve(response);
1544
+ return response;
1578
1545
  };
1579
1546
  exports.de_ListStudioSessionMappingsCommand = de_ListStudioSessionMappingsCommand;
1580
1547
  const de_ListStudioSessionMappingsCommandError = async (output, context) => {
@@ -1592,10 +1559,9 @@ const de_ListStudioSessionMappingsCommandError = async (output, context) => {
1592
1559
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1593
1560
  default:
1594
1561
  const parsedBody = parsedOutput.body;
1595
- (0, smithy_client_1.throwDefaultError)({
1562
+ return throwDefaultError({
1596
1563
  output,
1597
1564
  parsedBody,
1598
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1599
1565
  errorCode,
1600
1566
  });
1601
1567
  }
@@ -1606,12 +1572,12 @@ const de_ModifyClusterCommand = async (output, context) => {
1606
1572
  }
1607
1573
  const data = await parseBody(output.body, context);
1608
1574
  let contents = {};
1609
- contents = de_ModifyClusterOutput(data, context);
1575
+ contents = (0, smithy_client_1._json)(data);
1610
1576
  const response = {
1611
1577
  $metadata: deserializeMetadata(output),
1612
1578
  ...contents,
1613
1579
  };
1614
- return Promise.resolve(response);
1580
+ return response;
1615
1581
  };
1616
1582
  exports.de_ModifyClusterCommand = de_ModifyClusterCommand;
1617
1583
  const de_ModifyClusterCommandError = async (output, context) => {
@@ -1629,10 +1595,9 @@ const de_ModifyClusterCommandError = async (output, context) => {
1629
1595
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1630
1596
  default:
1631
1597
  const parsedBody = parsedOutput.body;
1632
- (0, smithy_client_1.throwDefaultError)({
1598
+ return throwDefaultError({
1633
1599
  output,
1634
1600
  parsedBody,
1635
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1636
1601
  errorCode,
1637
1602
  });
1638
1603
  }
@@ -1645,7 +1610,7 @@ const de_ModifyInstanceFleetCommand = async (output, context) => {
1645
1610
  const response = {
1646
1611
  $metadata: deserializeMetadata(output),
1647
1612
  };
1648
- return Promise.resolve(response);
1613
+ return response;
1649
1614
  };
1650
1615
  exports.de_ModifyInstanceFleetCommand = de_ModifyInstanceFleetCommand;
1651
1616
  const de_ModifyInstanceFleetCommandError = async (output, context) => {
@@ -1663,10 +1628,9 @@ const de_ModifyInstanceFleetCommandError = async (output, context) => {
1663
1628
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1664
1629
  default:
1665
1630
  const parsedBody = parsedOutput.body;
1666
- (0, smithy_client_1.throwDefaultError)({
1631
+ return throwDefaultError({
1667
1632
  output,
1668
1633
  parsedBody,
1669
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1670
1634
  errorCode,
1671
1635
  });
1672
1636
  }
@@ -1679,7 +1643,7 @@ const de_ModifyInstanceGroupsCommand = async (output, context) => {
1679
1643
  const response = {
1680
1644
  $metadata: deserializeMetadata(output),
1681
1645
  };
1682
- return Promise.resolve(response);
1646
+ return response;
1683
1647
  };
1684
1648
  exports.de_ModifyInstanceGroupsCommand = de_ModifyInstanceGroupsCommand;
1685
1649
  const de_ModifyInstanceGroupsCommandError = async (output, context) => {
@@ -1694,10 +1658,9 @@ const de_ModifyInstanceGroupsCommandError = async (output, context) => {
1694
1658
  throw await de_InternalServerErrorRes(parsedOutput, context);
1695
1659
  default:
1696
1660
  const parsedBody = parsedOutput.body;
1697
- (0, smithy_client_1.throwDefaultError)({
1661
+ return throwDefaultError({
1698
1662
  output,
1699
1663
  parsedBody,
1700
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1701
1664
  errorCode,
1702
1665
  });
1703
1666
  }
@@ -1713,7 +1676,7 @@ const de_PutAutoScalingPolicyCommand = async (output, context) => {
1713
1676
  $metadata: deserializeMetadata(output),
1714
1677
  ...contents,
1715
1678
  };
1716
- return Promise.resolve(response);
1679
+ return response;
1717
1680
  };
1718
1681
  exports.de_PutAutoScalingPolicyCommand = de_PutAutoScalingPolicyCommand;
1719
1682
  const de_PutAutoScalingPolicyCommandError = async (output, context) => {
@@ -1723,10 +1686,9 @@ const de_PutAutoScalingPolicyCommandError = async (output, context) => {
1723
1686
  };
1724
1687
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1725
1688
  const parsedBody = parsedOutput.body;
1726
- (0, smithy_client_1.throwDefaultError)({
1689
+ return throwDefaultError({
1727
1690
  output,
1728
1691
  parsedBody,
1729
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1730
1692
  errorCode,
1731
1693
  });
1732
1694
  };
@@ -1736,12 +1698,12 @@ const de_PutAutoTerminationPolicyCommand = async (output, context) => {
1736
1698
  }
1737
1699
  const data = await parseBody(output.body, context);
1738
1700
  let contents = {};
1739
- contents = de_PutAutoTerminationPolicyOutput(data, context);
1701
+ contents = (0, smithy_client_1._json)(data);
1740
1702
  const response = {
1741
1703
  $metadata: deserializeMetadata(output),
1742
1704
  ...contents,
1743
1705
  };
1744
- return Promise.resolve(response);
1706
+ return response;
1745
1707
  };
1746
1708
  exports.de_PutAutoTerminationPolicyCommand = de_PutAutoTerminationPolicyCommand;
1747
1709
  const de_PutAutoTerminationPolicyCommandError = async (output, context) => {
@@ -1751,10 +1713,9 @@ const de_PutAutoTerminationPolicyCommandError = async (output, context) => {
1751
1713
  };
1752
1714
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1753
1715
  const parsedBody = parsedOutput.body;
1754
- (0, smithy_client_1.throwDefaultError)({
1716
+ return throwDefaultError({
1755
1717
  output,
1756
1718
  parsedBody,
1757
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1758
1719
  errorCode,
1759
1720
  });
1760
1721
  };
@@ -1764,12 +1725,12 @@ const de_PutBlockPublicAccessConfigurationCommand = async (output, context) => {
1764
1725
  }
1765
1726
  const data = await parseBody(output.body, context);
1766
1727
  let contents = {};
1767
- contents = de_PutBlockPublicAccessConfigurationOutput(data, context);
1728
+ contents = (0, smithy_client_1._json)(data);
1768
1729
  const response = {
1769
1730
  $metadata: deserializeMetadata(output),
1770
1731
  ...contents,
1771
1732
  };
1772
- return Promise.resolve(response);
1733
+ return response;
1773
1734
  };
1774
1735
  exports.de_PutBlockPublicAccessConfigurationCommand = de_PutBlockPublicAccessConfigurationCommand;
1775
1736
  const de_PutBlockPublicAccessConfigurationCommandError = async (output, context) => {
@@ -1787,10 +1748,9 @@ const de_PutBlockPublicAccessConfigurationCommandError = async (output, context)
1787
1748
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1788
1749
  default:
1789
1750
  const parsedBody = parsedOutput.body;
1790
- (0, smithy_client_1.throwDefaultError)({
1751
+ return throwDefaultError({
1791
1752
  output,
1792
1753
  parsedBody,
1793
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1794
1754
  errorCode,
1795
1755
  });
1796
1756
  }
@@ -1801,12 +1761,12 @@ const de_PutManagedScalingPolicyCommand = async (output, context) => {
1801
1761
  }
1802
1762
  const data = await parseBody(output.body, context);
1803
1763
  let contents = {};
1804
- contents = de_PutManagedScalingPolicyOutput(data, context);
1764
+ contents = (0, smithy_client_1._json)(data);
1805
1765
  const response = {
1806
1766
  $metadata: deserializeMetadata(output),
1807
1767
  ...contents,
1808
1768
  };
1809
- return Promise.resolve(response);
1769
+ return response;
1810
1770
  };
1811
1771
  exports.de_PutManagedScalingPolicyCommand = de_PutManagedScalingPolicyCommand;
1812
1772
  const de_PutManagedScalingPolicyCommandError = async (output, context) => {
@@ -1816,10 +1776,9 @@ const de_PutManagedScalingPolicyCommandError = async (output, context) => {
1816
1776
  };
1817
1777
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1818
1778
  const parsedBody = parsedOutput.body;
1819
- (0, smithy_client_1.throwDefaultError)({
1779
+ return throwDefaultError({
1820
1780
  output,
1821
1781
  parsedBody,
1822
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1823
1782
  errorCode,
1824
1783
  });
1825
1784
  };
@@ -1829,12 +1788,12 @@ const de_RemoveAutoScalingPolicyCommand = async (output, context) => {
1829
1788
  }
1830
1789
  const data = await parseBody(output.body, context);
1831
1790
  let contents = {};
1832
- contents = de_RemoveAutoScalingPolicyOutput(data, context);
1791
+ contents = (0, smithy_client_1._json)(data);
1833
1792
  const response = {
1834
1793
  $metadata: deserializeMetadata(output),
1835
1794
  ...contents,
1836
1795
  };
1837
- return Promise.resolve(response);
1796
+ return response;
1838
1797
  };
1839
1798
  exports.de_RemoveAutoScalingPolicyCommand = de_RemoveAutoScalingPolicyCommand;
1840
1799
  const de_RemoveAutoScalingPolicyCommandError = async (output, context) => {
@@ -1844,10 +1803,9 @@ const de_RemoveAutoScalingPolicyCommandError = async (output, context) => {
1844
1803
  };
1845
1804
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1846
1805
  const parsedBody = parsedOutput.body;
1847
- (0, smithy_client_1.throwDefaultError)({
1806
+ return throwDefaultError({
1848
1807
  output,
1849
1808
  parsedBody,
1850
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1851
1809
  errorCode,
1852
1810
  });
1853
1811
  };
@@ -1857,12 +1815,12 @@ const de_RemoveAutoTerminationPolicyCommand = async (output, context) => {
1857
1815
  }
1858
1816
  const data = await parseBody(output.body, context);
1859
1817
  let contents = {};
1860
- contents = de_RemoveAutoTerminationPolicyOutput(data, context);
1818
+ contents = (0, smithy_client_1._json)(data);
1861
1819
  const response = {
1862
1820
  $metadata: deserializeMetadata(output),
1863
1821
  ...contents,
1864
1822
  };
1865
- return Promise.resolve(response);
1823
+ return response;
1866
1824
  };
1867
1825
  exports.de_RemoveAutoTerminationPolicyCommand = de_RemoveAutoTerminationPolicyCommand;
1868
1826
  const de_RemoveAutoTerminationPolicyCommandError = async (output, context) => {
@@ -1872,10 +1830,9 @@ const de_RemoveAutoTerminationPolicyCommandError = async (output, context) => {
1872
1830
  };
1873
1831
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1874
1832
  const parsedBody = parsedOutput.body;
1875
- (0, smithy_client_1.throwDefaultError)({
1833
+ return throwDefaultError({
1876
1834
  output,
1877
1835
  parsedBody,
1878
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1879
1836
  errorCode,
1880
1837
  });
1881
1838
  };
@@ -1885,12 +1842,12 @@ const de_RemoveManagedScalingPolicyCommand = async (output, context) => {
1885
1842
  }
1886
1843
  const data = await parseBody(output.body, context);
1887
1844
  let contents = {};
1888
- contents = de_RemoveManagedScalingPolicyOutput(data, context);
1845
+ contents = (0, smithy_client_1._json)(data);
1889
1846
  const response = {
1890
1847
  $metadata: deserializeMetadata(output),
1891
1848
  ...contents,
1892
1849
  };
1893
- return Promise.resolve(response);
1850
+ return response;
1894
1851
  };
1895
1852
  exports.de_RemoveManagedScalingPolicyCommand = de_RemoveManagedScalingPolicyCommand;
1896
1853
  const de_RemoveManagedScalingPolicyCommandError = async (output, context) => {
@@ -1900,10 +1857,9 @@ const de_RemoveManagedScalingPolicyCommandError = async (output, context) => {
1900
1857
  };
1901
1858
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1902
1859
  const parsedBody = parsedOutput.body;
1903
- (0, smithy_client_1.throwDefaultError)({
1860
+ return throwDefaultError({
1904
1861
  output,
1905
1862
  parsedBody,
1906
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1907
1863
  errorCode,
1908
1864
  });
1909
1865
  };
@@ -1913,12 +1869,12 @@ const de_RemoveTagsCommand = async (output, context) => {
1913
1869
  }
1914
1870
  const data = await parseBody(output.body, context);
1915
1871
  let contents = {};
1916
- contents = de_RemoveTagsOutput(data, context);
1872
+ contents = (0, smithy_client_1._json)(data);
1917
1873
  const response = {
1918
1874
  $metadata: deserializeMetadata(output),
1919
1875
  ...contents,
1920
1876
  };
1921
- return Promise.resolve(response);
1877
+ return response;
1922
1878
  };
1923
1879
  exports.de_RemoveTagsCommand = de_RemoveTagsCommand;
1924
1880
  const de_RemoveTagsCommandError = async (output, context) => {
@@ -1936,10 +1892,9 @@ const de_RemoveTagsCommandError = async (output, context) => {
1936
1892
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1937
1893
  default:
1938
1894
  const parsedBody = parsedOutput.body;
1939
- (0, smithy_client_1.throwDefaultError)({
1895
+ return throwDefaultError({
1940
1896
  output,
1941
1897
  parsedBody,
1942
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1943
1898
  errorCode,
1944
1899
  });
1945
1900
  }
@@ -1950,12 +1905,12 @@ const de_RunJobFlowCommand = async (output, context) => {
1950
1905
  }
1951
1906
  const data = await parseBody(output.body, context);
1952
1907
  let contents = {};
1953
- contents = de_RunJobFlowOutput(data, context);
1908
+ contents = (0, smithy_client_1._json)(data);
1954
1909
  const response = {
1955
1910
  $metadata: deserializeMetadata(output),
1956
1911
  ...contents,
1957
1912
  };
1958
- return Promise.resolve(response);
1913
+ return response;
1959
1914
  };
1960
1915
  exports.de_RunJobFlowCommand = de_RunJobFlowCommand;
1961
1916
  const de_RunJobFlowCommandError = async (output, context) => {
@@ -1970,10 +1925,9 @@ const de_RunJobFlowCommandError = async (output, context) => {
1970
1925
  throw await de_InternalServerErrorRes(parsedOutput, context);
1971
1926
  default:
1972
1927
  const parsedBody = parsedOutput.body;
1973
- (0, smithy_client_1.throwDefaultError)({
1928
+ return throwDefaultError({
1974
1929
  output,
1975
1930
  parsedBody,
1976
- exceptionCtor: EMRServiceException_1.EMRServiceException,
1977
1931
  errorCode,
1978
1932
  });
1979
1933
  }
@@ -1986,7 +1940,7 @@ const de_SetTerminationProtectionCommand = async (output, context) => {
1986
1940
  const response = {
1987
1941
  $metadata: deserializeMetadata(output),
1988
1942
  };
1989
- return Promise.resolve(response);
1943
+ return response;
1990
1944
  };
1991
1945
  exports.de_SetTerminationProtectionCommand = de_SetTerminationProtectionCommand;
1992
1946
  const de_SetTerminationProtectionCommandError = async (output, context) => {
@@ -2001,10 +1955,9 @@ const de_SetTerminationProtectionCommandError = async (output, context) => {
2001
1955
  throw await de_InternalServerErrorRes(parsedOutput, context);
2002
1956
  default:
2003
1957
  const parsedBody = parsedOutput.body;
2004
- (0, smithy_client_1.throwDefaultError)({
1958
+ return throwDefaultError({
2005
1959
  output,
2006
1960
  parsedBody,
2007
- exceptionCtor: EMRServiceException_1.EMRServiceException,
2008
1961
  errorCode,
2009
1962
  });
2010
1963
  }
@@ -2017,7 +1970,7 @@ const de_SetVisibleToAllUsersCommand = async (output, context) => {
2017
1970
  const response = {
2018
1971
  $metadata: deserializeMetadata(output),
2019
1972
  };
2020
- return Promise.resolve(response);
1973
+ return response;
2021
1974
  };
2022
1975
  exports.de_SetVisibleToAllUsersCommand = de_SetVisibleToAllUsersCommand;
2023
1976
  const de_SetVisibleToAllUsersCommandError = async (output, context) => {
@@ -2032,10 +1985,9 @@ const de_SetVisibleToAllUsersCommandError = async (output, context) => {
2032
1985
  throw await de_InternalServerErrorRes(parsedOutput, context);
2033
1986
  default:
2034
1987
  const parsedBody = parsedOutput.body;
2035
- (0, smithy_client_1.throwDefaultError)({
1988
+ return throwDefaultError({
2036
1989
  output,
2037
1990
  parsedBody,
2038
- exceptionCtor: EMRServiceException_1.EMRServiceException,
2039
1991
  errorCode,
2040
1992
  });
2041
1993
  }
@@ -2046,12 +1998,12 @@ const de_StartNotebookExecutionCommand = async (output, context) => {
2046
1998
  }
2047
1999
  const data = await parseBody(output.body, context);
2048
2000
  let contents = {};
2049
- contents = de_StartNotebookExecutionOutput(data, context);
2001
+ contents = (0, smithy_client_1._json)(data);
2050
2002
  const response = {
2051
2003
  $metadata: deserializeMetadata(output),
2052
2004
  ...contents,
2053
2005
  };
2054
- return Promise.resolve(response);
2006
+ return response;
2055
2007
  };
2056
2008
  exports.de_StartNotebookExecutionCommand = de_StartNotebookExecutionCommand;
2057
2009
  const de_StartNotebookExecutionCommandError = async (output, context) => {
@@ -2069,10 +2021,9 @@ const de_StartNotebookExecutionCommandError = async (output, context) => {
2069
2021
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2070
2022
  default:
2071
2023
  const parsedBody = parsedOutput.body;
2072
- (0, smithy_client_1.throwDefaultError)({
2024
+ return throwDefaultError({
2073
2025
  output,
2074
2026
  parsedBody,
2075
- exceptionCtor: EMRServiceException_1.EMRServiceException,
2076
2027
  errorCode,
2077
2028
  });
2078
2029
  }
@@ -2085,7 +2036,7 @@ const de_StopNotebookExecutionCommand = async (output, context) => {
2085
2036
  const response = {
2086
2037
  $metadata: deserializeMetadata(output),
2087
2038
  };
2088
- return Promise.resolve(response);
2039
+ return response;
2089
2040
  };
2090
2041
  exports.de_StopNotebookExecutionCommand = de_StopNotebookExecutionCommand;
2091
2042
  const de_StopNotebookExecutionCommandError = async (output, context) => {
@@ -2103,10 +2054,9 @@ const de_StopNotebookExecutionCommandError = async (output, context) => {
2103
2054
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2104
2055
  default:
2105
2056
  const parsedBody = parsedOutput.body;
2106
- (0, smithy_client_1.throwDefaultError)({
2057
+ return throwDefaultError({
2107
2058
  output,
2108
2059
  parsedBody,
2109
- exceptionCtor: EMRServiceException_1.EMRServiceException,
2110
2060
  errorCode,
2111
2061
  });
2112
2062
  }
@@ -2119,7 +2069,7 @@ const de_TerminateJobFlowsCommand = async (output, context) => {
2119
2069
  const response = {
2120
2070
  $metadata: deserializeMetadata(output),
2121
2071
  };
2122
- return Promise.resolve(response);
2072
+ return response;
2123
2073
  };
2124
2074
  exports.de_TerminateJobFlowsCommand = de_TerminateJobFlowsCommand;
2125
2075
  const de_TerminateJobFlowsCommandError = async (output, context) => {
@@ -2134,10 +2084,9 @@ const de_TerminateJobFlowsCommandError = async (output, context) => {
2134
2084
  throw await de_InternalServerErrorRes(parsedOutput, context);
2135
2085
  default:
2136
2086
  const parsedBody = parsedOutput.body;
2137
- (0, smithy_client_1.throwDefaultError)({
2087
+ return throwDefaultError({
2138
2088
  output,
2139
2089
  parsedBody,
2140
- exceptionCtor: EMRServiceException_1.EMRServiceException,
2141
2090
  errorCode,
2142
2091
  });
2143
2092
  }
@@ -2150,7 +2099,7 @@ const de_UpdateStudioCommand = async (output, context) => {
2150
2099
  const response = {
2151
2100
  $metadata: deserializeMetadata(output),
2152
2101
  };
2153
- return Promise.resolve(response);
2102
+ return response;
2154
2103
  };
2155
2104
  exports.de_UpdateStudioCommand = de_UpdateStudioCommand;
2156
2105
  const de_UpdateStudioCommandError = async (output, context) => {
@@ -2168,10 +2117,9 @@ const de_UpdateStudioCommandError = async (output, context) => {
2168
2117
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2169
2118
  default:
2170
2119
  const parsedBody = parsedOutput.body;
2171
- (0, smithy_client_1.throwDefaultError)({
2120
+ return throwDefaultError({
2172
2121
  output,
2173
2122
  parsedBody,
2174
- exceptionCtor: EMRServiceException_1.EMRServiceException,
2175
2123
  errorCode,
2176
2124
  });
2177
2125
  }
@@ -2184,7 +2132,7 @@ const de_UpdateStudioSessionMappingCommand = async (output, context) => {
2184
2132
  const response = {
2185
2133
  $metadata: deserializeMetadata(output),
2186
2134
  };
2187
- return Promise.resolve(response);
2135
+ return response;
2188
2136
  };
2189
2137
  exports.de_UpdateStudioSessionMappingCommand = de_UpdateStudioSessionMappingCommand;
2190
2138
  const de_UpdateStudioSessionMappingCommandError = async (output, context) => {
@@ -2202,17 +2150,16 @@ const de_UpdateStudioSessionMappingCommandError = async (output, context) => {
2202
2150
  throw await de_InvalidRequestExceptionRes(parsedOutput, context);
2203
2151
  default:
2204
2152
  const parsedBody = parsedOutput.body;
2205
- (0, smithy_client_1.throwDefaultError)({
2153
+ return throwDefaultError({
2206
2154
  output,
2207
2155
  parsedBody,
2208
- exceptionCtor: EMRServiceException_1.EMRServiceException,
2209
2156
  errorCode,
2210
2157
  });
2211
2158
  }
2212
2159
  };
2213
2160
  const de_InternalServerErrorRes = async (parsedOutput, context) => {
2214
2161
  const body = parsedOutput.body;
2215
- const deserialized = de_InternalServerError(body, context);
2162
+ const deserialized = (0, smithy_client_1._json)(body);
2216
2163
  const exception = new models_0_1.InternalServerError({
2217
2164
  $metadata: deserializeMetadata(parsedOutput),
2218
2165
  ...deserialized,
@@ -2221,7 +2168,7 @@ const de_InternalServerErrorRes = async (parsedOutput, context) => {
2221
2168
  };
2222
2169
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2223
2170
  const body = parsedOutput.body;
2224
- const deserialized = de_InternalServerException(body, context);
2171
+ const deserialized = (0, smithy_client_1._json)(body);
2225
2172
  const exception = new models_0_1.InternalServerException({
2226
2173
  $metadata: deserializeMetadata(parsedOutput),
2227
2174
  ...deserialized,
@@ -2230,7 +2177,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
2230
2177
  };
2231
2178
  const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
2232
2179
  const body = parsedOutput.body;
2233
- const deserialized = de_InvalidRequestException(body, context);
2180
+ const deserialized = (0, smithy_client_1._json)(body);
2234
2181
  const exception = new models_0_1.InvalidRequestException({
2235
2182
  $metadata: deserializeMetadata(parsedOutput),
2236
2183
  ...deserialized,
@@ -2238,128 +2185,51 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
2238
2185
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2239
2186
  };
2240
2187
  const se_AddInstanceFleetInput = (input, context) => {
2241
- return {
2242
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2243
- ...(input.InstanceFleet != null && { InstanceFleet: se_InstanceFleetConfig(input.InstanceFleet, context) }),
2244
- };
2188
+ return (0, smithy_client_1.take)(input, {
2189
+ ClusterId: [],
2190
+ InstanceFleet: (_) => se_InstanceFleetConfig(_, context),
2191
+ });
2245
2192
  };
2246
2193
  const se_AddInstanceGroupsInput = (input, context) => {
2247
- return {
2248
- ...(input.InstanceGroups != null && { InstanceGroups: se_InstanceGroupConfigList(input.InstanceGroups, context) }),
2249
- ...(input.JobFlowId != null && { JobFlowId: input.JobFlowId }),
2250
- };
2251
- };
2252
- const se_AddJobFlowStepsInput = (input, context) => {
2253
- return {
2254
- ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
2255
- ...(input.JobFlowId != null && { JobFlowId: input.JobFlowId }),
2256
- ...(input.Steps != null && { Steps: se_StepConfigList(input.Steps, context) }),
2257
- };
2258
- };
2259
- const se_AddTagsInput = (input, context) => {
2260
- return {
2261
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
2262
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2263
- };
2264
- };
2265
- const se_Application = (input, context) => {
2266
- return {
2267
- ...(input.AdditionalInfo != null && { AdditionalInfo: se_StringMap(input.AdditionalInfo, context) }),
2268
- ...(input.Args != null && { Args: se_StringList(input.Args, context) }),
2269
- ...(input.Name != null && { Name: input.Name }),
2270
- ...(input.Version != null && { Version: input.Version }),
2271
- };
2272
- };
2273
- const se_ApplicationList = (input, context) => {
2274
- return input
2275
- .filter((e) => e != null)
2276
- .map((entry) => {
2277
- return se_Application(entry, context);
2194
+ return (0, smithy_client_1.take)(input, {
2195
+ InstanceGroups: (_) => se_InstanceGroupConfigList(_, context),
2196
+ JobFlowId: [],
2278
2197
  });
2279
2198
  };
2280
2199
  const se_AutoScalingPolicy = (input, context) => {
2281
- return {
2282
- ...(input.Constraints != null && { Constraints: se_ScalingConstraints(input.Constraints, context) }),
2283
- ...(input.Rules != null && { Rules: se_ScalingRuleList(input.Rules, context) }),
2284
- };
2285
- };
2286
- const se_AutoTerminationPolicy = (input, context) => {
2287
- return {
2288
- ...(input.IdleTimeout != null && { IdleTimeout: input.IdleTimeout }),
2289
- };
2200
+ return (0, smithy_client_1.take)(input, {
2201
+ Constraints: smithy_client_1._json,
2202
+ Rules: (_) => se_ScalingRuleList(_, context),
2203
+ });
2290
2204
  };
2291
2205
  const se_BlockPublicAccessConfiguration = (input, context) => {
2292
- return {
2293
- ...(input.BlockPublicSecurityGroupRules != null && {
2294
- BlockPublicSecurityGroupRules: input.BlockPublicSecurityGroupRules,
2295
- }),
2296
- ...(input.Classification != null && { Classification: input.Classification }),
2297
- ...(input.Configurations != null && { Configurations: se_ConfigurationList(input.Configurations, context) }),
2298
- ...(input.PermittedPublicSecurityGroupRuleRanges != null && {
2299
- PermittedPublicSecurityGroupRuleRanges: se_PortRanges(input.PermittedPublicSecurityGroupRuleRanges, context),
2300
- }),
2301
- ...(input.Properties != null && { Properties: se_StringMap(input.Properties, context) }),
2302
- };
2303
- };
2304
- const se_BootstrapActionConfig = (input, context) => {
2305
- return {
2306
- ...(input.Name != null && { Name: input.Name }),
2307
- ...(input.ScriptBootstrapAction != null && {
2308
- ScriptBootstrapAction: se_ScriptBootstrapActionConfig(input.ScriptBootstrapAction, context),
2309
- }),
2310
- };
2311
- };
2312
- const se_BootstrapActionConfigList = (input, context) => {
2313
- return input
2314
- .filter((e) => e != null)
2315
- .map((entry) => {
2316
- return se_BootstrapActionConfig(entry, context);
2206
+ return (0, smithy_client_1.take)(input, {
2207
+ BlockPublicSecurityGroupRules: [],
2208
+ Classification: [],
2209
+ Configurations: (_) => se_ConfigurationList(_, context),
2210
+ PermittedPublicSecurityGroupRuleRanges: smithy_client_1._json,
2211
+ Properties: smithy_client_1._json,
2317
2212
  });
2318
2213
  };
2319
- const se_CancelStepsInput = (input, context) => {
2320
- return {
2321
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2322
- ...(input.StepCancellationOption != null && { StepCancellationOption: input.StepCancellationOption }),
2323
- ...(input.StepIds != null && { StepIds: se_StepIdsList(input.StepIds, context) }),
2324
- };
2325
- };
2326
2214
  const se_CloudWatchAlarmDefinition = (input, context) => {
2327
- return {
2328
- ...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
2329
- ...(input.Dimensions != null && { Dimensions: se_MetricDimensionList(input.Dimensions, context) }),
2330
- ...(input.EvaluationPeriods != null && { EvaluationPeriods: input.EvaluationPeriods }),
2331
- ...(input.MetricName != null && { MetricName: input.MetricName }),
2332
- ...(input.Namespace != null && { Namespace: input.Namespace }),
2333
- ...(input.Period != null && { Period: input.Period }),
2334
- ...(input.Statistic != null && { Statistic: input.Statistic }),
2335
- ...(input.Threshold != null && { Threshold: (0, smithy_client_1.serializeFloat)(input.Threshold) }),
2336
- ...(input.Unit != null && { Unit: input.Unit }),
2337
- };
2338
- };
2339
- const se_ClusterStateList = (input, context) => {
2340
- return input
2341
- .filter((e) => e != null)
2342
- .map((entry) => {
2343
- return entry;
2215
+ return (0, smithy_client_1.take)(input, {
2216
+ ComparisonOperator: [],
2217
+ Dimensions: smithy_client_1._json,
2218
+ EvaluationPeriods: [],
2219
+ MetricName: [],
2220
+ Namespace: [],
2221
+ Period: [],
2222
+ Statistic: [],
2223
+ Threshold: smithy_client_1.serializeFloat,
2224
+ Unit: [],
2344
2225
  });
2345
2226
  };
2346
- const se_ComputeLimits = (input, context) => {
2347
- return {
2348
- ...(input.MaximumCapacityUnits != null && { MaximumCapacityUnits: input.MaximumCapacityUnits }),
2349
- ...(input.MaximumCoreCapacityUnits != null && { MaximumCoreCapacityUnits: input.MaximumCoreCapacityUnits }),
2350
- ...(input.MaximumOnDemandCapacityUnits != null && {
2351
- MaximumOnDemandCapacityUnits: input.MaximumOnDemandCapacityUnits,
2352
- }),
2353
- ...(input.MinimumCapacityUnits != null && { MinimumCapacityUnits: input.MinimumCapacityUnits }),
2354
- ...(input.UnitType != null && { UnitType: input.UnitType }),
2355
- };
2356
- };
2357
2227
  const se_Configuration = (input, context) => {
2358
- return {
2359
- ...(input.Classification != null && { Classification: input.Classification }),
2360
- ...(input.Configurations != null && { Configurations: se_ConfigurationList(input.Configurations, context) }),
2361
- ...(input.Properties != null && { Properties: se_StringMap(input.Properties, context) }),
2362
- };
2228
+ return (0, smithy_client_1.take)(input, {
2229
+ Classification: [],
2230
+ Configurations: (_) => se_ConfigurationList(_, context),
2231
+ Properties: smithy_client_1._json,
2232
+ });
2363
2233
  };
2364
2234
  const se_ConfigurationList = (input, context) => {
2365
2235
  return input
@@ -2368,2436 +2238,856 @@ const se_ConfigurationList = (input, context) => {
2368
2238
  return se_Configuration(entry, context);
2369
2239
  });
2370
2240
  };
2371
- const se_CreateSecurityConfigurationInput = (input, context) => {
2372
- return {
2373
- ...(input.Name != null && { Name: input.Name }),
2374
- ...(input.SecurityConfiguration != null && { SecurityConfiguration: input.SecurityConfiguration }),
2375
- };
2376
- };
2377
- const se_CreateStudioInput = (input, context) => {
2378
- return {
2379
- ...(input.AuthMode != null && { AuthMode: input.AuthMode }),
2380
- ...(input.DefaultS3Location != null && { DefaultS3Location: input.DefaultS3Location }),
2381
- ...(input.Description != null && { Description: input.Description }),
2382
- ...(input.EngineSecurityGroupId != null && { EngineSecurityGroupId: input.EngineSecurityGroupId }),
2383
- ...(input.IdpAuthUrl != null && { IdpAuthUrl: input.IdpAuthUrl }),
2384
- ...(input.IdpRelayStateParameterName != null && { IdpRelayStateParameterName: input.IdpRelayStateParameterName }),
2385
- ...(input.Name != null && { Name: input.Name }),
2386
- ...(input.ServiceRole != null && { ServiceRole: input.ServiceRole }),
2387
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIdList(input.SubnetIds, context) }),
2388
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
2389
- ...(input.UserRole != null && { UserRole: input.UserRole }),
2390
- ...(input.VpcId != null && { VpcId: input.VpcId }),
2391
- ...(input.WorkspaceSecurityGroupId != null && { WorkspaceSecurityGroupId: input.WorkspaceSecurityGroupId }),
2392
- };
2393
- };
2394
- const se_CreateStudioSessionMappingInput = (input, context) => {
2395
- return {
2396
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
2397
- ...(input.IdentityName != null && { IdentityName: input.IdentityName }),
2398
- ...(input.IdentityType != null && { IdentityType: input.IdentityType }),
2399
- ...(input.SessionPolicyArn != null && { SessionPolicyArn: input.SessionPolicyArn }),
2400
- ...(input.StudioId != null && { StudioId: input.StudioId }),
2401
- };
2402
- };
2403
- const se_DeleteSecurityConfigurationInput = (input, context) => {
2404
- return {
2405
- ...(input.Name != null && { Name: input.Name }),
2406
- };
2407
- };
2408
- const se_DeleteStudioInput = (input, context) => {
2409
- return {
2410
- ...(input.StudioId != null && { StudioId: input.StudioId }),
2411
- };
2412
- };
2413
- const se_DeleteStudioSessionMappingInput = (input, context) => {
2414
- return {
2415
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
2416
- ...(input.IdentityName != null && { IdentityName: input.IdentityName }),
2417
- ...(input.IdentityType != null && { IdentityType: input.IdentityType }),
2418
- ...(input.StudioId != null && { StudioId: input.StudioId }),
2419
- };
2420
- };
2421
- const se_DescribeClusterInput = (input, context) => {
2422
- return {
2423
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2424
- };
2425
- };
2426
2241
  const se_DescribeJobFlowsInput = (input, context) => {
2427
- return {
2428
- ...(input.CreatedAfter != null && { CreatedAfter: Math.round(input.CreatedAfter.getTime() / 1000) }),
2429
- ...(input.CreatedBefore != null && { CreatedBefore: Math.round(input.CreatedBefore.getTime() / 1000) }),
2430
- ...(input.JobFlowIds != null && { JobFlowIds: se_XmlStringList(input.JobFlowIds, context) }),
2431
- ...(input.JobFlowStates != null && { JobFlowStates: se_JobFlowExecutionStateList(input.JobFlowStates, context) }),
2432
- };
2433
- };
2434
- const se_DescribeNotebookExecutionInput = (input, context) => {
2435
- return {
2436
- ...(input.NotebookExecutionId != null && { NotebookExecutionId: input.NotebookExecutionId }),
2437
- };
2438
- };
2439
- const se_DescribeReleaseLabelInput = (input, context) => {
2440
- return {
2441
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2442
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2443
- ...(input.ReleaseLabel != null && { ReleaseLabel: input.ReleaseLabel }),
2444
- };
2445
- };
2446
- const se_DescribeSecurityConfigurationInput = (input, context) => {
2447
- return {
2448
- ...(input.Name != null && { Name: input.Name }),
2449
- };
2242
+ return (0, smithy_client_1.take)(input, {
2243
+ CreatedAfter: (_) => Math.round(_.getTime() / 1000),
2244
+ CreatedBefore: (_) => Math.round(_.getTime() / 1000),
2245
+ JobFlowIds: smithy_client_1._json,
2246
+ JobFlowStates: smithy_client_1._json,
2247
+ });
2450
2248
  };
2451
- const se_DescribeStepInput = (input, context) => {
2452
- return {
2453
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2454
- ...(input.StepId != null && { StepId: input.StepId }),
2455
- };
2249
+ const se_InstanceFleetConfig = (input, context) => {
2250
+ return (0, smithy_client_1.take)(input, {
2251
+ InstanceFleetType: [],
2252
+ InstanceTypeConfigs: (_) => se_InstanceTypeConfigList(_, context),
2253
+ LaunchSpecifications: smithy_client_1._json,
2254
+ Name: [],
2255
+ ResizeSpecifications: smithy_client_1._json,
2256
+ TargetOnDemandCapacity: [],
2257
+ TargetSpotCapacity: [],
2258
+ });
2456
2259
  };
2457
- const se_DescribeStudioInput = (input, context) => {
2458
- return {
2459
- ...(input.StudioId != null && { StudioId: input.StudioId }),
2460
- };
2260
+ const se_InstanceFleetConfigList = (input, context) => {
2261
+ return input
2262
+ .filter((e) => e != null)
2263
+ .map((entry) => {
2264
+ return se_InstanceFleetConfig(entry, context);
2265
+ });
2461
2266
  };
2462
- const se_EbsBlockDeviceConfig = (input, context) => {
2463
- return {
2464
- ...(input.VolumeSpecification != null && {
2465
- VolumeSpecification: se_VolumeSpecification(input.VolumeSpecification, context),
2466
- }),
2467
- ...(input.VolumesPerInstance != null && { VolumesPerInstance: input.VolumesPerInstance }),
2468
- };
2267
+ const se_InstanceGroupConfig = (input, context) => {
2268
+ return (0, smithy_client_1.take)(input, {
2269
+ AutoScalingPolicy: (_) => se_AutoScalingPolicy(_, context),
2270
+ BidPrice: [],
2271
+ Configurations: (_) => se_ConfigurationList(_, context),
2272
+ CustomAmiId: [],
2273
+ EbsConfiguration: smithy_client_1._json,
2274
+ InstanceCount: [],
2275
+ InstanceRole: [],
2276
+ InstanceType: [],
2277
+ Market: [],
2278
+ Name: [],
2279
+ });
2469
2280
  };
2470
- const se_EbsBlockDeviceConfigList = (input, context) => {
2281
+ const se_InstanceGroupConfigList = (input, context) => {
2471
2282
  return input
2472
2283
  .filter((e) => e != null)
2473
2284
  .map((entry) => {
2474
- return se_EbsBlockDeviceConfig(entry, context);
2285
+ return se_InstanceGroupConfig(entry, context);
2475
2286
  });
2476
2287
  };
2477
- const se_EbsConfiguration = (input, context) => {
2478
- return {
2479
- ...(input.EbsBlockDeviceConfigs != null && {
2480
- EbsBlockDeviceConfigs: se_EbsBlockDeviceConfigList(input.EbsBlockDeviceConfigs, context),
2481
- }),
2482
- ...(input.EbsOptimized != null && { EbsOptimized: input.EbsOptimized }),
2483
- };
2288
+ const se_InstanceGroupModifyConfig = (input, context) => {
2289
+ return (0, smithy_client_1.take)(input, {
2290
+ Configurations: (_) => se_ConfigurationList(_, context),
2291
+ EC2InstanceIdsToTerminate: smithy_client_1._json,
2292
+ InstanceCount: [],
2293
+ InstanceGroupId: [],
2294
+ ReconfigurationType: [],
2295
+ ShrinkPolicy: smithy_client_1._json,
2296
+ });
2484
2297
  };
2485
- const se_EC2InstanceIdsList = (input, context) => {
2298
+ const se_InstanceGroupModifyConfigList = (input, context) => {
2486
2299
  return input
2487
2300
  .filter((e) => e != null)
2488
2301
  .map((entry) => {
2489
- return entry;
2302
+ return se_InstanceGroupModifyConfig(entry, context);
2303
+ });
2304
+ };
2305
+ const se_InstanceTypeConfig = (input, context) => {
2306
+ return (0, smithy_client_1.take)(input, {
2307
+ BidPrice: [],
2308
+ BidPriceAsPercentageOfOnDemandPrice: smithy_client_1.serializeFloat,
2309
+ Configurations: (_) => se_ConfigurationList(_, context),
2310
+ CustomAmiId: [],
2311
+ EbsConfiguration: smithy_client_1._json,
2312
+ InstanceType: [],
2313
+ WeightedCapacity: [],
2490
2314
  });
2491
2315
  };
2492
- const se_EC2InstanceIdsToTerminateList = (input, context) => {
2316
+ const se_InstanceTypeConfigList = (input, context) => {
2493
2317
  return input
2494
2318
  .filter((e) => e != null)
2495
2319
  .map((entry) => {
2496
- return entry;
2320
+ return se_InstanceTypeConfig(entry, context);
2497
2321
  });
2498
2322
  };
2499
- const se_ExecutionEngineConfig = (input, context) => {
2500
- return {
2501
- ...(input.Id != null && { Id: input.Id }),
2502
- ...(input.MasterInstanceSecurityGroupId != null && {
2503
- MasterInstanceSecurityGroupId: input.MasterInstanceSecurityGroupId,
2504
- }),
2505
- ...(input.Type != null && { Type: input.Type }),
2506
- };
2323
+ const se_JobFlowInstancesConfig = (input, context) => {
2324
+ return (0, smithy_client_1.take)(input, {
2325
+ AdditionalMasterSecurityGroups: smithy_client_1._json,
2326
+ AdditionalSlaveSecurityGroups: smithy_client_1._json,
2327
+ Ec2KeyName: [],
2328
+ Ec2SubnetId: [],
2329
+ Ec2SubnetIds: smithy_client_1._json,
2330
+ EmrManagedMasterSecurityGroup: [],
2331
+ EmrManagedSlaveSecurityGroup: [],
2332
+ HadoopVersion: [],
2333
+ InstanceCount: [],
2334
+ InstanceFleets: (_) => se_InstanceFleetConfigList(_, context),
2335
+ InstanceGroups: (_) => se_InstanceGroupConfigList(_, context),
2336
+ KeepJobFlowAliveWhenNoSteps: [],
2337
+ MasterInstanceType: [],
2338
+ Placement: smithy_client_1._json,
2339
+ ServiceAccessSecurityGroup: [],
2340
+ SlaveInstanceType: [],
2341
+ TerminationProtected: [],
2342
+ });
2507
2343
  };
2508
- const se_GetAutoTerminationPolicyInput = (input, context) => {
2509
- return {
2510
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2511
- };
2344
+ const se_ListClustersInput = (input, context) => {
2345
+ return (0, smithy_client_1.take)(input, {
2346
+ ClusterStates: smithy_client_1._json,
2347
+ CreatedAfter: (_) => Math.round(_.getTime() / 1000),
2348
+ CreatedBefore: (_) => Math.round(_.getTime() / 1000),
2349
+ Marker: [],
2350
+ });
2512
2351
  };
2513
- const se_GetBlockPublicAccessConfigurationInput = (input, context) => {
2514
- return {};
2352
+ const se_ListNotebookExecutionsInput = (input, context) => {
2353
+ return (0, smithy_client_1.take)(input, {
2354
+ EditorId: [],
2355
+ From: (_) => Math.round(_.getTime() / 1000),
2356
+ Marker: [],
2357
+ Status: [],
2358
+ To: (_) => Math.round(_.getTime() / 1000),
2359
+ });
2515
2360
  };
2516
- const se_GetClusterSessionCredentialsInput = (input, context) => {
2517
- return {
2518
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2519
- ...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
2520
- };
2361
+ const se_ModifyInstanceGroupsInput = (input, context) => {
2362
+ return (0, smithy_client_1.take)(input, {
2363
+ ClusterId: [],
2364
+ InstanceGroups: (_) => se_InstanceGroupModifyConfigList(_, context),
2365
+ });
2521
2366
  };
2522
- const se_GetManagedScalingPolicyInput = (input, context) => {
2523
- return {
2524
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2525
- };
2367
+ const se_PutAutoScalingPolicyInput = (input, context) => {
2368
+ return (0, smithy_client_1.take)(input, {
2369
+ AutoScalingPolicy: (_) => se_AutoScalingPolicy(_, context),
2370
+ ClusterId: [],
2371
+ InstanceGroupId: [],
2372
+ });
2526
2373
  };
2527
- const se_GetStudioSessionMappingInput = (input, context) => {
2528
- return {
2529
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
2530
- ...(input.IdentityName != null && { IdentityName: input.IdentityName }),
2531
- ...(input.IdentityType != null && { IdentityType: input.IdentityType }),
2532
- ...(input.StudioId != null && { StudioId: input.StudioId }),
2533
- };
2374
+ const se_PutBlockPublicAccessConfigurationInput = (input, context) => {
2375
+ return (0, smithy_client_1.take)(input, {
2376
+ BlockPublicAccessConfiguration: (_) => se_BlockPublicAccessConfiguration(_, context),
2377
+ });
2534
2378
  };
2535
- const se_HadoopJarStepConfig = (input, context) => {
2536
- return {
2537
- ...(input.Args != null && { Args: se_XmlStringList(input.Args, context) }),
2538
- ...(input.Jar != null && { Jar: input.Jar }),
2539
- ...(input.MainClass != null && { MainClass: input.MainClass }),
2540
- ...(input.Properties != null && { Properties: se_KeyValueList(input.Properties, context) }),
2541
- };
2379
+ const se_RunJobFlowInput = (input, context) => {
2380
+ return (0, smithy_client_1.take)(input, {
2381
+ AdditionalInfo: [],
2382
+ AmiVersion: [],
2383
+ Applications: smithy_client_1._json,
2384
+ AutoScalingRole: [],
2385
+ AutoTerminationPolicy: smithy_client_1._json,
2386
+ BootstrapActions: smithy_client_1._json,
2387
+ Configurations: (_) => se_ConfigurationList(_, context),
2388
+ CustomAmiId: [],
2389
+ EbsRootVolumeSize: [],
2390
+ Instances: (_) => se_JobFlowInstancesConfig(_, context),
2391
+ JobFlowRole: [],
2392
+ KerberosAttributes: smithy_client_1._json,
2393
+ LogEncryptionKmsKeyId: [],
2394
+ LogUri: [],
2395
+ ManagedScalingPolicy: smithy_client_1._json,
2396
+ Name: [],
2397
+ NewSupportedProducts: smithy_client_1._json,
2398
+ OSReleaseLabel: [],
2399
+ PlacementGroupConfigs: smithy_client_1._json,
2400
+ ReleaseLabel: [],
2401
+ RepoUpgradeOnBoot: [],
2402
+ ScaleDownBehavior: [],
2403
+ SecurityConfiguration: [],
2404
+ ServiceRole: [],
2405
+ StepConcurrencyLevel: [],
2406
+ Steps: smithy_client_1._json,
2407
+ SupportedProducts: smithy_client_1._json,
2408
+ Tags: smithy_client_1._json,
2409
+ VisibleToAllUsers: [],
2410
+ });
2542
2411
  };
2543
- const se_InstanceFleetConfig = (input, context) => {
2544
- return {
2545
- ...(input.InstanceFleetType != null && { InstanceFleetType: input.InstanceFleetType }),
2546
- ...(input.InstanceTypeConfigs != null && {
2547
- InstanceTypeConfigs: se_InstanceTypeConfigList(input.InstanceTypeConfigs, context),
2548
- }),
2549
- ...(input.LaunchSpecifications != null && {
2550
- LaunchSpecifications: se_InstanceFleetProvisioningSpecifications(input.LaunchSpecifications, context),
2551
- }),
2552
- ...(input.Name != null && { Name: input.Name }),
2553
- ...(input.ResizeSpecifications != null && {
2554
- ResizeSpecifications: se_InstanceFleetResizingSpecifications(input.ResizeSpecifications, context),
2555
- }),
2556
- ...(input.TargetOnDemandCapacity != null && { TargetOnDemandCapacity: input.TargetOnDemandCapacity }),
2557
- ...(input.TargetSpotCapacity != null && { TargetSpotCapacity: input.TargetSpotCapacity }),
2558
- };
2412
+ const se_ScalingRule = (input, context) => {
2413
+ return (0, smithy_client_1.take)(input, {
2414
+ Action: smithy_client_1._json,
2415
+ Description: [],
2416
+ Name: [],
2417
+ Trigger: (_) => se_ScalingTrigger(_, context),
2418
+ });
2559
2419
  };
2560
- const se_InstanceFleetConfigList = (input, context) => {
2420
+ const se_ScalingRuleList = (input, context) => {
2561
2421
  return input
2562
2422
  .filter((e) => e != null)
2563
2423
  .map((entry) => {
2564
- return se_InstanceFleetConfig(entry, context);
2424
+ return se_ScalingRule(entry, context);
2565
2425
  });
2566
2426
  };
2567
- const se_InstanceFleetModifyConfig = (input, context) => {
2568
- return {
2569
- ...(input.InstanceFleetId != null && { InstanceFleetId: input.InstanceFleetId }),
2570
- ...(input.ResizeSpecifications != null && {
2571
- ResizeSpecifications: se_InstanceFleetResizingSpecifications(input.ResizeSpecifications, context),
2572
- }),
2573
- ...(input.TargetOnDemandCapacity != null && { TargetOnDemandCapacity: input.TargetOnDemandCapacity }),
2574
- ...(input.TargetSpotCapacity != null && { TargetSpotCapacity: input.TargetSpotCapacity }),
2575
- };
2576
- };
2577
- const se_InstanceFleetProvisioningSpecifications = (input, context) => {
2578
- return {
2579
- ...(input.OnDemandSpecification != null && {
2580
- OnDemandSpecification: se_OnDemandProvisioningSpecification(input.OnDemandSpecification, context),
2581
- }),
2582
- ...(input.SpotSpecification != null && {
2583
- SpotSpecification: se_SpotProvisioningSpecification(input.SpotSpecification, context),
2584
- }),
2585
- };
2427
+ const se_ScalingTrigger = (input, context) => {
2428
+ return (0, smithy_client_1.take)(input, {
2429
+ CloudWatchAlarmDefinition: (_) => se_CloudWatchAlarmDefinition(_, context),
2430
+ });
2586
2431
  };
2587
- const se_InstanceFleetResizingSpecifications = (input, context) => {
2588
- return {
2589
- ...(input.OnDemandResizeSpecification != null && {
2590
- OnDemandResizeSpecification: se_OnDemandResizingSpecification(input.OnDemandResizeSpecification, context),
2591
- }),
2592
- ...(input.SpotResizeSpecification != null && {
2593
- SpotResizeSpecification: se_SpotResizingSpecification(input.SpotResizeSpecification, context),
2594
- }),
2595
- };
2432
+ const de_AutoScalingPolicyDescription = (output, context) => {
2433
+ return (0, smithy_client_1.take)(output, {
2434
+ Constraints: smithy_client_1._json,
2435
+ Rules: (_) => de_ScalingRuleList(_, context),
2436
+ Status: smithy_client_1._json,
2437
+ });
2596
2438
  };
2597
- const se_InstanceGroupConfig = (input, context) => {
2598
- return {
2599
- ...(input.AutoScalingPolicy != null && {
2600
- AutoScalingPolicy: se_AutoScalingPolicy(input.AutoScalingPolicy, context),
2601
- }),
2602
- ...(input.BidPrice != null && { BidPrice: input.BidPrice }),
2603
- ...(input.Configurations != null && { Configurations: se_ConfigurationList(input.Configurations, context) }),
2604
- ...(input.CustomAmiId != null && { CustomAmiId: input.CustomAmiId }),
2605
- ...(input.EbsConfiguration != null && { EbsConfiguration: se_EbsConfiguration(input.EbsConfiguration, context) }),
2606
- ...(input.InstanceCount != null && { InstanceCount: input.InstanceCount }),
2607
- ...(input.InstanceRole != null && { InstanceRole: input.InstanceRole }),
2608
- ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
2609
- ...(input.Market != null && { Market: input.Market }),
2610
- ...(input.Name != null && { Name: input.Name }),
2611
- };
2439
+ const de_BlockPublicAccessConfiguration = (output, context) => {
2440
+ return (0, smithy_client_1.take)(output, {
2441
+ BlockPublicSecurityGroupRules: smithy_client_1.expectBoolean,
2442
+ Classification: smithy_client_1.expectString,
2443
+ Configurations: (_) => de_ConfigurationList(_, context),
2444
+ PermittedPublicSecurityGroupRuleRanges: smithy_client_1._json,
2445
+ Properties: smithy_client_1._json,
2446
+ });
2612
2447
  };
2613
- const se_InstanceGroupConfigList = (input, context) => {
2614
- return input
2615
- .filter((e) => e != null)
2616
- .map((entry) => {
2617
- return se_InstanceGroupConfig(entry, context);
2448
+ const de_BlockPublicAccessConfigurationMetadata = (output, context) => {
2449
+ return (0, smithy_client_1.take)(output, {
2450
+ CreatedByArn: smithy_client_1.expectString,
2451
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2618
2452
  });
2619
2453
  };
2620
- const se_InstanceGroupModifyConfig = (input, context) => {
2621
- return {
2622
- ...(input.Configurations != null && { Configurations: se_ConfigurationList(input.Configurations, context) }),
2623
- ...(input.EC2InstanceIdsToTerminate != null && {
2624
- EC2InstanceIdsToTerminate: se_EC2InstanceIdsToTerminateList(input.EC2InstanceIdsToTerminate, context),
2625
- }),
2626
- ...(input.InstanceCount != null && { InstanceCount: input.InstanceCount }),
2627
- ...(input.InstanceGroupId != null && { InstanceGroupId: input.InstanceGroupId }),
2628
- ...(input.ReconfigurationType != null && { ReconfigurationType: input.ReconfigurationType }),
2629
- ...(input.ShrinkPolicy != null && { ShrinkPolicy: se_ShrinkPolicy(input.ShrinkPolicy, context) }),
2630
- };
2454
+ const de_CloudWatchAlarmDefinition = (output, context) => {
2455
+ return (0, smithy_client_1.take)(output, {
2456
+ ComparisonOperator: smithy_client_1.expectString,
2457
+ Dimensions: smithy_client_1._json,
2458
+ EvaluationPeriods: smithy_client_1.expectInt32,
2459
+ MetricName: smithy_client_1.expectString,
2460
+ Namespace: smithy_client_1.expectString,
2461
+ Period: smithy_client_1.expectInt32,
2462
+ Statistic: smithy_client_1.expectString,
2463
+ Threshold: smithy_client_1.limitedParseDouble,
2464
+ Unit: smithy_client_1.expectString,
2465
+ });
2631
2466
  };
2632
- const se_InstanceGroupModifyConfigList = (input, context) => {
2633
- return input
2634
- .filter((e) => e != null)
2635
- .map((entry) => {
2636
- return se_InstanceGroupModifyConfig(entry, context);
2467
+ const de_Cluster = (output, context) => {
2468
+ return (0, smithy_client_1.take)(output, {
2469
+ Applications: smithy_client_1._json,
2470
+ AutoScalingRole: smithy_client_1.expectString,
2471
+ AutoTerminate: smithy_client_1.expectBoolean,
2472
+ ClusterArn: smithy_client_1.expectString,
2473
+ Configurations: (_) => de_ConfigurationList(_, context),
2474
+ CustomAmiId: smithy_client_1.expectString,
2475
+ EbsRootVolumeSize: smithy_client_1.expectInt32,
2476
+ Ec2InstanceAttributes: smithy_client_1._json,
2477
+ Id: smithy_client_1.expectString,
2478
+ InstanceCollectionType: smithy_client_1.expectString,
2479
+ KerberosAttributes: smithy_client_1._json,
2480
+ LogEncryptionKmsKeyId: smithy_client_1.expectString,
2481
+ LogUri: smithy_client_1.expectString,
2482
+ MasterPublicDnsName: smithy_client_1.expectString,
2483
+ Name: smithy_client_1.expectString,
2484
+ NormalizedInstanceHours: smithy_client_1.expectInt32,
2485
+ OSReleaseLabel: smithy_client_1.expectString,
2486
+ OutpostArn: smithy_client_1.expectString,
2487
+ PlacementGroups: smithy_client_1._json,
2488
+ ReleaseLabel: smithy_client_1.expectString,
2489
+ RepoUpgradeOnBoot: smithy_client_1.expectString,
2490
+ RequestedAmiVersion: smithy_client_1.expectString,
2491
+ RunningAmiVersion: smithy_client_1.expectString,
2492
+ ScaleDownBehavior: smithy_client_1.expectString,
2493
+ SecurityConfiguration: smithy_client_1.expectString,
2494
+ ServiceRole: smithy_client_1.expectString,
2495
+ Status: (_) => de_ClusterStatus(_, context),
2496
+ StepConcurrencyLevel: smithy_client_1.expectInt32,
2497
+ Tags: smithy_client_1._json,
2498
+ TerminationProtected: smithy_client_1.expectBoolean,
2499
+ VisibleToAllUsers: smithy_client_1.expectBoolean,
2637
2500
  });
2638
2501
  };
2639
- const se_InstanceGroupTypeList = (input, context) => {
2640
- return input
2641
- .filter((e) => e != null)
2642
- .map((entry) => {
2643
- return entry;
2502
+ const de_ClusterStatus = (output, context) => {
2503
+ return (0, smithy_client_1.take)(output, {
2504
+ ErrorDetails: smithy_client_1._json,
2505
+ State: smithy_client_1.expectString,
2506
+ StateChangeReason: smithy_client_1._json,
2507
+ Timeline: (_) => de_ClusterTimeline(_, context),
2644
2508
  });
2645
2509
  };
2646
- const se_InstanceResizePolicy = (input, context) => {
2647
- return {
2648
- ...(input.InstanceTerminationTimeout != null && { InstanceTerminationTimeout: input.InstanceTerminationTimeout }),
2649
- ...(input.InstancesToProtect != null && {
2650
- InstancesToProtect: se_EC2InstanceIdsList(input.InstancesToProtect, context),
2651
- }),
2652
- ...(input.InstancesToTerminate != null && {
2653
- InstancesToTerminate: se_EC2InstanceIdsList(input.InstancesToTerminate, context),
2654
- }),
2655
- };
2510
+ const de_ClusterSummary = (output, context) => {
2511
+ return (0, smithy_client_1.take)(output, {
2512
+ ClusterArn: smithy_client_1.expectString,
2513
+ Id: smithy_client_1.expectString,
2514
+ Name: smithy_client_1.expectString,
2515
+ NormalizedInstanceHours: smithy_client_1.expectInt32,
2516
+ OutpostArn: smithy_client_1.expectString,
2517
+ Status: (_) => de_ClusterStatus(_, context),
2518
+ });
2656
2519
  };
2657
- const se_InstanceStateList = (input, context) => {
2658
- return input
2520
+ const de_ClusterSummaryList = (output, context) => {
2521
+ const retVal = (output || [])
2659
2522
  .filter((e) => e != null)
2660
2523
  .map((entry) => {
2661
- return entry;
2524
+ return de_ClusterSummary(entry, context);
2662
2525
  });
2526
+ return retVal;
2663
2527
  };
2664
- const se_InstanceTypeConfig = (input, context) => {
2665
- return {
2666
- ...(input.BidPrice != null && { BidPrice: input.BidPrice }),
2667
- ...(input.BidPriceAsPercentageOfOnDemandPrice != null && {
2668
- BidPriceAsPercentageOfOnDemandPrice: (0, smithy_client_1.serializeFloat)(input.BidPriceAsPercentageOfOnDemandPrice),
2669
- }),
2670
- ...(input.Configurations != null && { Configurations: se_ConfigurationList(input.Configurations, context) }),
2671
- ...(input.CustomAmiId != null && { CustomAmiId: input.CustomAmiId }),
2672
- ...(input.EbsConfiguration != null && { EbsConfiguration: se_EbsConfiguration(input.EbsConfiguration, context) }),
2673
- ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
2674
- ...(input.WeightedCapacity != null && { WeightedCapacity: input.WeightedCapacity }),
2675
- };
2528
+ const de_ClusterTimeline = (output, context) => {
2529
+ return (0, smithy_client_1.take)(output, {
2530
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2531
+ EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2532
+ ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2533
+ });
2676
2534
  };
2677
- const se_InstanceTypeConfigList = (input, context) => {
2678
- return input
2679
- .filter((e) => e != null)
2680
- .map((entry) => {
2681
- return se_InstanceTypeConfig(entry, context);
2535
+ const de_Configuration = (output, context) => {
2536
+ return (0, smithy_client_1.take)(output, {
2537
+ Classification: smithy_client_1.expectString,
2538
+ Configurations: (_) => de_ConfigurationList(_, context),
2539
+ Properties: smithy_client_1._json,
2682
2540
  });
2683
2541
  };
2684
- const se_JobFlowExecutionStateList = (input, context) => {
2685
- return input
2542
+ const de_ConfigurationList = (output, context) => {
2543
+ const retVal = (output || [])
2686
2544
  .filter((e) => e != null)
2687
2545
  .map((entry) => {
2688
- return entry;
2546
+ return de_Configuration(entry, context);
2689
2547
  });
2548
+ return retVal;
2690
2549
  };
2691
- const se_JobFlowInstancesConfig = (input, context) => {
2692
- return {
2693
- ...(input.AdditionalMasterSecurityGroups != null && {
2694
- AdditionalMasterSecurityGroups: se_SecurityGroupsList(input.AdditionalMasterSecurityGroups, context),
2695
- }),
2696
- ...(input.AdditionalSlaveSecurityGroups != null && {
2697
- AdditionalSlaveSecurityGroups: se_SecurityGroupsList(input.AdditionalSlaveSecurityGroups, context),
2698
- }),
2699
- ...(input.Ec2KeyName != null && { Ec2KeyName: input.Ec2KeyName }),
2700
- ...(input.Ec2SubnetId != null && { Ec2SubnetId: input.Ec2SubnetId }),
2701
- ...(input.Ec2SubnetIds != null && { Ec2SubnetIds: se_XmlStringMaxLen256List(input.Ec2SubnetIds, context) }),
2702
- ...(input.EmrManagedMasterSecurityGroup != null && {
2703
- EmrManagedMasterSecurityGroup: input.EmrManagedMasterSecurityGroup,
2704
- }),
2705
- ...(input.EmrManagedSlaveSecurityGroup != null && {
2706
- EmrManagedSlaveSecurityGroup: input.EmrManagedSlaveSecurityGroup,
2707
- }),
2708
- ...(input.HadoopVersion != null && { HadoopVersion: input.HadoopVersion }),
2709
- ...(input.InstanceCount != null && { InstanceCount: input.InstanceCount }),
2710
- ...(input.InstanceFleets != null && { InstanceFleets: se_InstanceFleetConfigList(input.InstanceFleets, context) }),
2711
- ...(input.InstanceGroups != null && { InstanceGroups: se_InstanceGroupConfigList(input.InstanceGroups, context) }),
2712
- ...(input.KeepJobFlowAliveWhenNoSteps != null && {
2713
- KeepJobFlowAliveWhenNoSteps: input.KeepJobFlowAliveWhenNoSteps,
2714
- }),
2715
- ...(input.MasterInstanceType != null && { MasterInstanceType: input.MasterInstanceType }),
2716
- ...(input.Placement != null && { Placement: se_PlacementType(input.Placement, context) }),
2717
- ...(input.ServiceAccessSecurityGroup != null && { ServiceAccessSecurityGroup: input.ServiceAccessSecurityGroup }),
2718
- ...(input.SlaveInstanceType != null && { SlaveInstanceType: input.SlaveInstanceType }),
2719
- ...(input.TerminationProtected != null && { TerminationProtected: input.TerminationProtected }),
2720
- };
2550
+ const de_CreateSecurityConfigurationOutput = (output, context) => {
2551
+ return (0, smithy_client_1.take)(output, {
2552
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2553
+ Name: smithy_client_1.expectString,
2554
+ });
2721
2555
  };
2722
- const se_KerberosAttributes = (input, context) => {
2723
- return {
2724
- ...(input.ADDomainJoinPassword != null && { ADDomainJoinPassword: input.ADDomainJoinPassword }),
2725
- ...(input.ADDomainJoinUser != null && { ADDomainJoinUser: input.ADDomainJoinUser }),
2726
- ...(input.CrossRealmTrustPrincipalPassword != null && {
2727
- CrossRealmTrustPrincipalPassword: input.CrossRealmTrustPrincipalPassword,
2728
- }),
2729
- ...(input.KdcAdminPassword != null && { KdcAdminPassword: input.KdcAdminPassword }),
2730
- ...(input.Realm != null && { Realm: input.Realm }),
2731
- };
2556
+ const de_DescribeClusterOutput = (output, context) => {
2557
+ return (0, smithy_client_1.take)(output, {
2558
+ Cluster: (_) => de_Cluster(_, context),
2559
+ });
2732
2560
  };
2733
- const se_KeyValue = (input, context) => {
2734
- return {
2735
- ...(input.Key != null && { Key: input.Key }),
2736
- ...(input.Value != null && { Value: input.Value }),
2737
- };
2561
+ const de_DescribeJobFlowsOutput = (output, context) => {
2562
+ return (0, smithy_client_1.take)(output, {
2563
+ JobFlows: (_) => de_JobFlowDetailList(_, context),
2564
+ });
2738
2565
  };
2739
- const se_KeyValueList = (input, context) => {
2740
- return input
2741
- .filter((e) => e != null)
2742
- .map((entry) => {
2743
- return se_KeyValue(entry, context);
2566
+ const de_DescribeNotebookExecutionOutput = (output, context) => {
2567
+ return (0, smithy_client_1.take)(output, {
2568
+ NotebookExecution: (_) => de_NotebookExecution(_, context),
2744
2569
  });
2745
2570
  };
2746
- const se_ListBootstrapActionsInput = (input, context) => {
2747
- return {
2748
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2749
- ...(input.Marker != null && { Marker: input.Marker }),
2750
- };
2571
+ const de_DescribeSecurityConfigurationOutput = (output, context) => {
2572
+ return (0, smithy_client_1.take)(output, {
2573
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2574
+ Name: smithy_client_1.expectString,
2575
+ SecurityConfiguration: smithy_client_1.expectString,
2576
+ });
2751
2577
  };
2752
- const se_ListClustersInput = (input, context) => {
2753
- return {
2754
- ...(input.ClusterStates != null && { ClusterStates: se_ClusterStateList(input.ClusterStates, context) }),
2755
- ...(input.CreatedAfter != null && { CreatedAfter: Math.round(input.CreatedAfter.getTime() / 1000) }),
2756
- ...(input.CreatedBefore != null && { CreatedBefore: Math.round(input.CreatedBefore.getTime() / 1000) }),
2757
- ...(input.Marker != null && { Marker: input.Marker }),
2758
- };
2578
+ const de_DescribeStepOutput = (output, context) => {
2579
+ return (0, smithy_client_1.take)(output, {
2580
+ Step: (_) => de_Step(_, context),
2581
+ });
2759
2582
  };
2760
- const se_ListInstanceFleetsInput = (input, context) => {
2761
- return {
2762
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2763
- ...(input.Marker != null && { Marker: input.Marker }),
2764
- };
2583
+ const de_DescribeStudioOutput = (output, context) => {
2584
+ return (0, smithy_client_1.take)(output, {
2585
+ Studio: (_) => de_Studio(_, context),
2586
+ });
2765
2587
  };
2766
- const se_ListInstanceGroupsInput = (input, context) => {
2767
- return {
2768
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2769
- ...(input.Marker != null && { Marker: input.Marker }),
2770
- };
2588
+ const de_GetBlockPublicAccessConfigurationOutput = (output, context) => {
2589
+ return (0, smithy_client_1.take)(output, {
2590
+ BlockPublicAccessConfiguration: (_) => de_BlockPublicAccessConfiguration(_, context),
2591
+ BlockPublicAccessConfigurationMetadata: (_) => de_BlockPublicAccessConfigurationMetadata(_, context),
2592
+ });
2771
2593
  };
2772
- const se_ListInstancesInput = (input, context) => {
2773
- return {
2774
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2775
- ...(input.InstanceFleetId != null && { InstanceFleetId: input.InstanceFleetId }),
2776
- ...(input.InstanceFleetType != null && { InstanceFleetType: input.InstanceFleetType }),
2777
- ...(input.InstanceGroupId != null && { InstanceGroupId: input.InstanceGroupId }),
2778
- ...(input.InstanceGroupTypes != null && {
2779
- InstanceGroupTypes: se_InstanceGroupTypeList(input.InstanceGroupTypes, context),
2780
- }),
2781
- ...(input.InstanceStates != null && { InstanceStates: se_InstanceStateList(input.InstanceStates, context) }),
2782
- ...(input.Marker != null && { Marker: input.Marker }),
2783
- };
2594
+ const de_GetClusterSessionCredentialsOutput = (output, context) => {
2595
+ return (0, smithy_client_1.take)(output, {
2596
+ Credentials: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
2597
+ ExpiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2598
+ });
2784
2599
  };
2785
- const se_ListNotebookExecutionsInput = (input, context) => {
2786
- return {
2787
- ...(input.EditorId != null && { EditorId: input.EditorId }),
2788
- ...(input.From != null && { From: Math.round(input.From.getTime() / 1000) }),
2789
- ...(input.Marker != null && { Marker: input.Marker }),
2790
- ...(input.Status != null && { Status: input.Status }),
2791
- ...(input.To != null && { To: Math.round(input.To.getTime() / 1000) }),
2792
- };
2600
+ const de_GetStudioSessionMappingOutput = (output, context) => {
2601
+ return (0, smithy_client_1.take)(output, {
2602
+ SessionMapping: (_) => de_SessionMappingDetail(_, context),
2603
+ });
2793
2604
  };
2794
- const se_ListReleaseLabelsInput = (input, context) => {
2795
- return {
2796
- ...(input.Filters != null && { Filters: se_ReleaseLabelFilter(input.Filters, context) }),
2797
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2798
- ...(input.NextToken != null && { NextToken: input.NextToken }),
2799
- };
2800
- };
2801
- const se_ListSecurityConfigurationsInput = (input, context) => {
2802
- return {
2803
- ...(input.Marker != null && { Marker: input.Marker }),
2804
- };
2805
- };
2806
- const se_ListStepsInput = (input, context) => {
2807
- return {
2808
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2809
- ...(input.Marker != null && { Marker: input.Marker }),
2810
- ...(input.StepIds != null && { StepIds: se_XmlStringList(input.StepIds, context) }),
2811
- ...(input.StepStates != null && { StepStates: se_StepStateList(input.StepStates, context) }),
2812
- };
2813
- };
2814
- const se_ListStudioSessionMappingsInput = (input, context) => {
2815
- return {
2816
- ...(input.IdentityType != null && { IdentityType: input.IdentityType }),
2817
- ...(input.Marker != null && { Marker: input.Marker }),
2818
- ...(input.StudioId != null && { StudioId: input.StudioId }),
2819
- };
2820
- };
2821
- const se_ListStudiosInput = (input, context) => {
2822
- return {
2823
- ...(input.Marker != null && { Marker: input.Marker }),
2824
- };
2825
- };
2826
- const se_ManagedScalingPolicy = (input, context) => {
2827
- return {
2828
- ...(input.ComputeLimits != null && { ComputeLimits: se_ComputeLimits(input.ComputeLimits, context) }),
2829
- };
2830
- };
2831
- const se_MetricDimension = (input, context) => {
2832
- return {
2833
- ...(input.Key != null && { Key: input.Key }),
2834
- ...(input.Value != null && { Value: input.Value }),
2835
- };
2836
- };
2837
- const se_MetricDimensionList = (input, context) => {
2838
- return input
2839
- .filter((e) => e != null)
2840
- .map((entry) => {
2841
- return se_MetricDimension(entry, context);
2842
- });
2843
- };
2844
- const se_ModifyClusterInput = (input, context) => {
2845
- return {
2846
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2847
- ...(input.StepConcurrencyLevel != null && { StepConcurrencyLevel: input.StepConcurrencyLevel }),
2848
- };
2849
- };
2850
- const se_ModifyInstanceFleetInput = (input, context) => {
2851
- return {
2852
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2853
- ...(input.InstanceFleet != null && { InstanceFleet: se_InstanceFleetModifyConfig(input.InstanceFleet, context) }),
2854
- };
2855
- };
2856
- const se_ModifyInstanceGroupsInput = (input, context) => {
2857
- return {
2858
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2859
- ...(input.InstanceGroups != null && {
2860
- InstanceGroups: se_InstanceGroupModifyConfigList(input.InstanceGroups, context),
2861
- }),
2862
- };
2863
- };
2864
- const se_NewSupportedProductsList = (input, context) => {
2865
- return input
2866
- .filter((e) => e != null)
2867
- .map((entry) => {
2868
- return se_SupportedProductConfig(entry, context);
2869
- });
2870
- };
2871
- const se_OnDemandCapacityReservationOptions = (input, context) => {
2872
- return {
2873
- ...(input.CapacityReservationPreference != null && {
2874
- CapacityReservationPreference: input.CapacityReservationPreference,
2875
- }),
2876
- ...(input.CapacityReservationResourceGroupArn != null && {
2877
- CapacityReservationResourceGroupArn: input.CapacityReservationResourceGroupArn,
2878
- }),
2879
- ...(input.UsageStrategy != null && { UsageStrategy: input.UsageStrategy }),
2880
- };
2881
- };
2882
- const se_OnDemandProvisioningSpecification = (input, context) => {
2883
- return {
2884
- ...(input.AllocationStrategy != null && { AllocationStrategy: input.AllocationStrategy }),
2885
- ...(input.CapacityReservationOptions != null && {
2886
- CapacityReservationOptions: se_OnDemandCapacityReservationOptions(input.CapacityReservationOptions, context),
2887
- }),
2888
- };
2889
- };
2890
- const se_OnDemandResizingSpecification = (input, context) => {
2891
- return {
2892
- ...(input.TimeoutDurationMinutes != null && { TimeoutDurationMinutes: input.TimeoutDurationMinutes }),
2893
- };
2894
- };
2895
- const se_PlacementGroupConfig = (input, context) => {
2896
- return {
2897
- ...(input.InstanceRole != null && { InstanceRole: input.InstanceRole }),
2898
- ...(input.PlacementStrategy != null && { PlacementStrategy: input.PlacementStrategy }),
2899
- };
2900
- };
2901
- const se_PlacementGroupConfigList = (input, context) => {
2902
- return input
2903
- .filter((e) => e != null)
2904
- .map((entry) => {
2905
- return se_PlacementGroupConfig(entry, context);
2906
- });
2907
- };
2908
- const se_PlacementType = (input, context) => {
2909
- return {
2910
- ...(input.AvailabilityZone != null && { AvailabilityZone: input.AvailabilityZone }),
2911
- ...(input.AvailabilityZones != null && {
2912
- AvailabilityZones: se_XmlStringMaxLen256List(input.AvailabilityZones, context),
2913
- }),
2914
- };
2915
- };
2916
- const se_PortRange = (input, context) => {
2917
- return {
2918
- ...(input.MaxRange != null && { MaxRange: input.MaxRange }),
2919
- ...(input.MinRange != null && { MinRange: input.MinRange }),
2920
- };
2921
- };
2922
- const se_PortRanges = (input, context) => {
2923
- return input
2924
- .filter((e) => e != null)
2925
- .map((entry) => {
2926
- return se_PortRange(entry, context);
2927
- });
2928
- };
2929
- const se_PutAutoScalingPolicyInput = (input, context) => {
2930
- return {
2931
- ...(input.AutoScalingPolicy != null && {
2932
- AutoScalingPolicy: se_AutoScalingPolicy(input.AutoScalingPolicy, context),
2933
- }),
2934
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2935
- ...(input.InstanceGroupId != null && { InstanceGroupId: input.InstanceGroupId }),
2936
- };
2937
- };
2938
- const se_PutAutoTerminationPolicyInput = (input, context) => {
2939
- return {
2940
- ...(input.AutoTerminationPolicy != null && {
2941
- AutoTerminationPolicy: se_AutoTerminationPolicy(input.AutoTerminationPolicy, context),
2942
- }),
2943
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2944
- };
2945
- };
2946
- const se_PutBlockPublicAccessConfigurationInput = (input, context) => {
2947
- return {
2948
- ...(input.BlockPublicAccessConfiguration != null && {
2949
- BlockPublicAccessConfiguration: se_BlockPublicAccessConfiguration(input.BlockPublicAccessConfiguration, context),
2950
- }),
2951
- };
2952
- };
2953
- const se_PutManagedScalingPolicyInput = (input, context) => {
2954
- return {
2955
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2956
- ...(input.ManagedScalingPolicy != null && {
2957
- ManagedScalingPolicy: se_ManagedScalingPolicy(input.ManagedScalingPolicy, context),
2958
- }),
2959
- };
2960
- };
2961
- const se_ReleaseLabelFilter = (input, context) => {
2962
- return {
2963
- ...(input.Application != null && { Application: input.Application }),
2964
- ...(input.Prefix != null && { Prefix: input.Prefix }),
2965
- };
2966
- };
2967
- const se_RemoveAutoScalingPolicyInput = (input, context) => {
2968
- return {
2969
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2970
- ...(input.InstanceGroupId != null && { InstanceGroupId: input.InstanceGroupId }),
2971
- };
2972
- };
2973
- const se_RemoveAutoTerminationPolicyInput = (input, context) => {
2974
- return {
2975
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2976
- };
2977
- };
2978
- const se_RemoveManagedScalingPolicyInput = (input, context) => {
2979
- return {
2980
- ...(input.ClusterId != null && { ClusterId: input.ClusterId }),
2981
- };
2982
- };
2983
- const se_RemoveTagsInput = (input, context) => {
2984
- return {
2985
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
2986
- ...(input.TagKeys != null && { TagKeys: se_StringList(input.TagKeys, context) }),
2987
- };
2988
- };
2989
- const se_RunJobFlowInput = (input, context) => {
2990
- return {
2991
- ...(input.AdditionalInfo != null && { AdditionalInfo: input.AdditionalInfo }),
2992
- ...(input.AmiVersion != null && { AmiVersion: input.AmiVersion }),
2993
- ...(input.Applications != null && { Applications: se_ApplicationList(input.Applications, context) }),
2994
- ...(input.AutoScalingRole != null && { AutoScalingRole: input.AutoScalingRole }),
2995
- ...(input.AutoTerminationPolicy != null && {
2996
- AutoTerminationPolicy: se_AutoTerminationPolicy(input.AutoTerminationPolicy, context),
2997
- }),
2998
- ...(input.BootstrapActions != null && {
2999
- BootstrapActions: se_BootstrapActionConfigList(input.BootstrapActions, context),
3000
- }),
3001
- ...(input.Configurations != null && { Configurations: se_ConfigurationList(input.Configurations, context) }),
3002
- ...(input.CustomAmiId != null && { CustomAmiId: input.CustomAmiId }),
3003
- ...(input.EbsRootVolumeSize != null && { EbsRootVolumeSize: input.EbsRootVolumeSize }),
3004
- ...(input.Instances != null && { Instances: se_JobFlowInstancesConfig(input.Instances, context) }),
3005
- ...(input.JobFlowRole != null && { JobFlowRole: input.JobFlowRole }),
3006
- ...(input.KerberosAttributes != null && {
3007
- KerberosAttributes: se_KerberosAttributes(input.KerberosAttributes, context),
3008
- }),
3009
- ...(input.LogEncryptionKmsKeyId != null && { LogEncryptionKmsKeyId: input.LogEncryptionKmsKeyId }),
3010
- ...(input.LogUri != null && { LogUri: input.LogUri }),
3011
- ...(input.ManagedScalingPolicy != null && {
3012
- ManagedScalingPolicy: se_ManagedScalingPolicy(input.ManagedScalingPolicy, context),
3013
- }),
3014
- ...(input.Name != null && { Name: input.Name }),
3015
- ...(input.NewSupportedProducts != null && {
3016
- NewSupportedProducts: se_NewSupportedProductsList(input.NewSupportedProducts, context),
3017
- }),
3018
- ...(input.OSReleaseLabel != null && { OSReleaseLabel: input.OSReleaseLabel }),
3019
- ...(input.PlacementGroupConfigs != null && {
3020
- PlacementGroupConfigs: se_PlacementGroupConfigList(input.PlacementGroupConfigs, context),
3021
- }),
3022
- ...(input.ReleaseLabel != null && { ReleaseLabel: input.ReleaseLabel }),
3023
- ...(input.RepoUpgradeOnBoot != null && { RepoUpgradeOnBoot: input.RepoUpgradeOnBoot }),
3024
- ...(input.ScaleDownBehavior != null && { ScaleDownBehavior: input.ScaleDownBehavior }),
3025
- ...(input.SecurityConfiguration != null && { SecurityConfiguration: input.SecurityConfiguration }),
3026
- ...(input.ServiceRole != null && { ServiceRole: input.ServiceRole }),
3027
- ...(input.StepConcurrencyLevel != null && { StepConcurrencyLevel: input.StepConcurrencyLevel }),
3028
- ...(input.Steps != null && { Steps: se_StepConfigList(input.Steps, context) }),
3029
- ...(input.SupportedProducts != null && {
3030
- SupportedProducts: se_SupportedProductsList(input.SupportedProducts, context),
3031
- }),
3032
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3033
- ...(input.VisibleToAllUsers != null && { VisibleToAllUsers: input.VisibleToAllUsers }),
3034
- };
3035
- };
3036
- const se_ScalingAction = (input, context) => {
3037
- return {
3038
- ...(input.Market != null && { Market: input.Market }),
3039
- ...(input.SimpleScalingPolicyConfiguration != null && {
3040
- SimpleScalingPolicyConfiguration: se_SimpleScalingPolicyConfiguration(input.SimpleScalingPolicyConfiguration, context),
3041
- }),
3042
- };
3043
- };
3044
- const se_ScalingConstraints = (input, context) => {
3045
- return {
3046
- ...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
3047
- ...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
3048
- };
3049
- };
3050
- const se_ScalingRule = (input, context) => {
3051
- return {
3052
- ...(input.Action != null && { Action: se_ScalingAction(input.Action, context) }),
3053
- ...(input.Description != null && { Description: input.Description }),
3054
- ...(input.Name != null && { Name: input.Name }),
3055
- ...(input.Trigger != null && { Trigger: se_ScalingTrigger(input.Trigger, context) }),
3056
- };
3057
- };
3058
- const se_ScalingRuleList = (input, context) => {
3059
- return input
3060
- .filter((e) => e != null)
3061
- .map((entry) => {
3062
- return se_ScalingRule(entry, context);
3063
- });
3064
- };
3065
- const se_ScalingTrigger = (input, context) => {
3066
- return {
3067
- ...(input.CloudWatchAlarmDefinition != null && {
3068
- CloudWatchAlarmDefinition: se_CloudWatchAlarmDefinition(input.CloudWatchAlarmDefinition, context),
3069
- }),
3070
- };
3071
- };
3072
- const se_ScriptBootstrapActionConfig = (input, context) => {
3073
- return {
3074
- ...(input.Args != null && { Args: se_XmlStringList(input.Args, context) }),
3075
- ...(input.Path != null && { Path: input.Path }),
3076
- };
3077
- };
3078
- const se_SecurityGroupsList = (input, context) => {
3079
- return input
3080
- .filter((e) => e != null)
3081
- .map((entry) => {
3082
- return entry;
3083
- });
3084
- };
3085
- const se_SetTerminationProtectionInput = (input, context) => {
3086
- return {
3087
- ...(input.JobFlowIds != null && { JobFlowIds: se_XmlStringList(input.JobFlowIds, context) }),
3088
- ...(input.TerminationProtected != null && { TerminationProtected: input.TerminationProtected }),
3089
- };
3090
- };
3091
- const se_SetVisibleToAllUsersInput = (input, context) => {
3092
- return {
3093
- ...(input.JobFlowIds != null && { JobFlowIds: se_XmlStringList(input.JobFlowIds, context) }),
3094
- ...(input.VisibleToAllUsers != null && { VisibleToAllUsers: input.VisibleToAllUsers }),
3095
- };
3096
- };
3097
- const se_ShrinkPolicy = (input, context) => {
3098
- return {
3099
- ...(input.DecommissionTimeout != null && { DecommissionTimeout: input.DecommissionTimeout }),
3100
- ...(input.InstanceResizePolicy != null && {
3101
- InstanceResizePolicy: se_InstanceResizePolicy(input.InstanceResizePolicy, context),
3102
- }),
3103
- };
3104
- };
3105
- const se_SimpleScalingPolicyConfiguration = (input, context) => {
3106
- return {
3107
- ...(input.AdjustmentType != null && { AdjustmentType: input.AdjustmentType }),
3108
- ...(input.CoolDown != null && { CoolDown: input.CoolDown }),
3109
- ...(input.ScalingAdjustment != null && { ScalingAdjustment: input.ScalingAdjustment }),
3110
- };
3111
- };
3112
- const se_SpotProvisioningSpecification = (input, context) => {
3113
- return {
3114
- ...(input.AllocationStrategy != null && { AllocationStrategy: input.AllocationStrategy }),
3115
- ...(input.BlockDurationMinutes != null && { BlockDurationMinutes: input.BlockDurationMinutes }),
3116
- ...(input.TimeoutAction != null && { TimeoutAction: input.TimeoutAction }),
3117
- ...(input.TimeoutDurationMinutes != null && { TimeoutDurationMinutes: input.TimeoutDurationMinutes }),
3118
- };
3119
- };
3120
- const se_SpotResizingSpecification = (input, context) => {
3121
- return {
3122
- ...(input.TimeoutDurationMinutes != null && { TimeoutDurationMinutes: input.TimeoutDurationMinutes }),
3123
- };
3124
- };
3125
- const se_StartNotebookExecutionInput = (input, context) => {
3126
- return {
3127
- ...(input.EditorId != null && { EditorId: input.EditorId }),
3128
- ...(input.ExecutionEngine != null && { ExecutionEngine: se_ExecutionEngineConfig(input.ExecutionEngine, context) }),
3129
- ...(input.NotebookExecutionName != null && { NotebookExecutionName: input.NotebookExecutionName }),
3130
- ...(input.NotebookInstanceSecurityGroupId != null && {
3131
- NotebookInstanceSecurityGroupId: input.NotebookInstanceSecurityGroupId,
3132
- }),
3133
- ...(input.NotebookParams != null && { NotebookParams: input.NotebookParams }),
3134
- ...(input.RelativePath != null && { RelativePath: input.RelativePath }),
3135
- ...(input.ServiceRole != null && { ServiceRole: input.ServiceRole }),
3136
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3137
- };
3138
- };
3139
- const se_StepConfig = (input, context) => {
3140
- return {
3141
- ...(input.ActionOnFailure != null && { ActionOnFailure: input.ActionOnFailure }),
3142
- ...(input.HadoopJarStep != null && { HadoopJarStep: se_HadoopJarStepConfig(input.HadoopJarStep, context) }),
3143
- ...(input.Name != null && { Name: input.Name }),
3144
- };
3145
- };
3146
- const se_StepConfigList = (input, context) => {
3147
- return input
3148
- .filter((e) => e != null)
3149
- .map((entry) => {
3150
- return se_StepConfig(entry, context);
3151
- });
3152
- };
3153
- const se_StepIdsList = (input, context) => {
3154
- return input
3155
- .filter((e) => e != null)
3156
- .map((entry) => {
3157
- return entry;
3158
- });
3159
- };
3160
- const se_StepStateList = (input, context) => {
3161
- return input
3162
- .filter((e) => e != null)
3163
- .map((entry) => {
3164
- return entry;
3165
- });
3166
- };
3167
- const se_StopNotebookExecutionInput = (input, context) => {
3168
- return {
3169
- ...(input.NotebookExecutionId != null && { NotebookExecutionId: input.NotebookExecutionId }),
3170
- };
3171
- };
3172
- const se_StringList = (input, context) => {
3173
- return input
3174
- .filter((e) => e != null)
3175
- .map((entry) => {
3176
- return entry;
3177
- });
3178
- };
3179
- const se_StringMap = (input, context) => {
3180
- return Object.entries(input).reduce((acc, [key, value]) => {
3181
- if (value === null) {
3182
- return acc;
3183
- }
3184
- acc[key] = value;
3185
- return acc;
3186
- }, {});
3187
- };
3188
- const se_SubnetIdList = (input, context) => {
3189
- return input
3190
- .filter((e) => e != null)
3191
- .map((entry) => {
3192
- return entry;
3193
- });
3194
- };
3195
- const se_SupportedProductConfig = (input, context) => {
3196
- return {
3197
- ...(input.Args != null && { Args: se_XmlStringList(input.Args, context) }),
3198
- ...(input.Name != null && { Name: input.Name }),
3199
- };
3200
- };
3201
- const se_SupportedProductsList = (input, context) => {
3202
- return input
3203
- .filter((e) => e != null)
3204
- .map((entry) => {
3205
- return entry;
3206
- });
3207
- };
3208
- const se_Tag = (input, context) => {
3209
- return {
3210
- ...(input.Key != null && { Key: input.Key }),
3211
- ...(input.Value != null && { Value: input.Value }),
3212
- };
3213
- };
3214
- const se_TagList = (input, context) => {
3215
- return input
3216
- .filter((e) => e != null)
3217
- .map((entry) => {
3218
- return se_Tag(entry, context);
3219
- });
3220
- };
3221
- const se_TerminateJobFlowsInput = (input, context) => {
3222
- return {
3223
- ...(input.JobFlowIds != null && { JobFlowIds: se_XmlStringList(input.JobFlowIds, context) }),
3224
- };
3225
- };
3226
- const se_UpdateStudioInput = (input, context) => {
3227
- return {
3228
- ...(input.DefaultS3Location != null && { DefaultS3Location: input.DefaultS3Location }),
3229
- ...(input.Description != null && { Description: input.Description }),
3230
- ...(input.Name != null && { Name: input.Name }),
3231
- ...(input.StudioId != null && { StudioId: input.StudioId }),
3232
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIdList(input.SubnetIds, context) }),
3233
- };
3234
- };
3235
- const se_UpdateStudioSessionMappingInput = (input, context) => {
3236
- return {
3237
- ...(input.IdentityId != null && { IdentityId: input.IdentityId }),
3238
- ...(input.IdentityName != null && { IdentityName: input.IdentityName }),
3239
- ...(input.IdentityType != null && { IdentityType: input.IdentityType }),
3240
- ...(input.SessionPolicyArn != null && { SessionPolicyArn: input.SessionPolicyArn }),
3241
- ...(input.StudioId != null && { StudioId: input.StudioId }),
3242
- };
3243
- };
3244
- const se_VolumeSpecification = (input, context) => {
3245
- return {
3246
- ...(input.Iops != null && { Iops: input.Iops }),
3247
- ...(input.SizeInGB != null && { SizeInGB: input.SizeInGB }),
3248
- ...(input.Throughput != null && { Throughput: input.Throughput }),
3249
- ...(input.VolumeType != null && { VolumeType: input.VolumeType }),
3250
- };
3251
- };
3252
- const se_XmlStringList = (input, context) => {
3253
- return input
3254
- .filter((e) => e != null)
3255
- .map((entry) => {
3256
- return entry;
3257
- });
3258
- };
3259
- const se_XmlStringMaxLen256List = (input, context) => {
3260
- return input
3261
- .filter((e) => e != null)
3262
- .map((entry) => {
3263
- return entry;
3264
- });
3265
- };
3266
- const de_AddInstanceFleetOutput = (output, context) => {
3267
- return {
3268
- ClusterArn: (0, smithy_client_1.expectString)(output.ClusterArn),
3269
- ClusterId: (0, smithy_client_1.expectString)(output.ClusterId),
3270
- InstanceFleetId: (0, smithy_client_1.expectString)(output.InstanceFleetId),
3271
- };
3272
- };
3273
- const de_AddInstanceGroupsOutput = (output, context) => {
3274
- return {
3275
- ClusterArn: (0, smithy_client_1.expectString)(output.ClusterArn),
3276
- InstanceGroupIds: output.InstanceGroupIds != null ? de_InstanceGroupIdsList(output.InstanceGroupIds, context) : undefined,
3277
- JobFlowId: (0, smithy_client_1.expectString)(output.JobFlowId),
3278
- };
3279
- };
3280
- const de_AddJobFlowStepsOutput = (output, context) => {
3281
- return {
3282
- StepIds: output.StepIds != null ? de_StepIdsList(output.StepIds, context) : undefined,
3283
- };
3284
- };
3285
- const de_AddTagsOutput = (output, context) => {
3286
- return {};
3287
- };
3288
- const de_Application = (output, context) => {
3289
- return {
3290
- AdditionalInfo: output.AdditionalInfo != null ? de_StringMap(output.AdditionalInfo, context) : undefined,
3291
- Args: output.Args != null ? de_StringList(output.Args, context) : undefined,
3292
- Name: (0, smithy_client_1.expectString)(output.Name),
3293
- Version: (0, smithy_client_1.expectString)(output.Version),
3294
- };
3295
- };
3296
- const de_ApplicationList = (output, context) => {
3297
- const retVal = (output || [])
3298
- .filter((e) => e != null)
3299
- .map((entry) => {
3300
- if (entry === null) {
3301
- return null;
3302
- }
3303
- return de_Application(entry, context);
3304
- });
3305
- return retVal;
3306
- };
3307
- const de_AutoScalingPolicyDescription = (output, context) => {
3308
- return {
3309
- Constraints: output.Constraints != null ? de_ScalingConstraints(output.Constraints, context) : undefined,
3310
- Rules: output.Rules != null ? de_ScalingRuleList(output.Rules, context) : undefined,
3311
- Status: output.Status != null ? de_AutoScalingPolicyStatus(output.Status, context) : undefined,
3312
- };
3313
- };
3314
- const de_AutoScalingPolicyStateChangeReason = (output, context) => {
3315
- return {
3316
- Code: (0, smithy_client_1.expectString)(output.Code),
3317
- Message: (0, smithy_client_1.expectString)(output.Message),
3318
- };
3319
- };
3320
- const de_AutoScalingPolicyStatus = (output, context) => {
3321
- return {
3322
- State: (0, smithy_client_1.expectString)(output.State),
3323
- StateChangeReason: output.StateChangeReason != null
3324
- ? de_AutoScalingPolicyStateChangeReason(output.StateChangeReason, context)
3325
- : undefined,
3326
- };
3327
- };
3328
- const de_AutoTerminationPolicy = (output, context) => {
3329
- return {
3330
- IdleTimeout: (0, smithy_client_1.expectLong)(output.IdleTimeout),
3331
- };
3332
- };
3333
- const de_BlockPublicAccessConfiguration = (output, context) => {
3334
- return {
3335
- BlockPublicSecurityGroupRules: (0, smithy_client_1.expectBoolean)(output.BlockPublicSecurityGroupRules),
3336
- Classification: (0, smithy_client_1.expectString)(output.Classification),
3337
- Configurations: output.Configurations != null ? de_ConfigurationList(output.Configurations, context) : undefined,
3338
- PermittedPublicSecurityGroupRuleRanges: output.PermittedPublicSecurityGroupRuleRanges != null
3339
- ? de_PortRanges(output.PermittedPublicSecurityGroupRuleRanges, context)
3340
- : undefined,
3341
- Properties: output.Properties != null ? de_StringMap(output.Properties, context) : undefined,
3342
- };
3343
- };
3344
- const de_BlockPublicAccessConfigurationMetadata = (output, context) => {
3345
- return {
3346
- CreatedByArn: (0, smithy_client_1.expectString)(output.CreatedByArn),
3347
- CreationDateTime: output.CreationDateTime != null
3348
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
3349
- : undefined,
3350
- };
3351
- };
3352
- const de_BootstrapActionConfig = (output, context) => {
3353
- return {
3354
- Name: (0, smithy_client_1.expectString)(output.Name),
3355
- ScriptBootstrapAction: output.ScriptBootstrapAction != null
3356
- ? de_ScriptBootstrapActionConfig(output.ScriptBootstrapAction, context)
3357
- : undefined,
3358
- };
3359
- };
3360
- const de_BootstrapActionDetail = (output, context) => {
3361
- return {
3362
- BootstrapActionConfig: output.BootstrapActionConfig != null
3363
- ? de_BootstrapActionConfig(output.BootstrapActionConfig, context)
3364
- : undefined,
3365
- };
3366
- };
3367
- const de_BootstrapActionDetailList = (output, context) => {
3368
- const retVal = (output || [])
3369
- .filter((e) => e != null)
3370
- .map((entry) => {
3371
- if (entry === null) {
3372
- return null;
3373
- }
3374
- return de_BootstrapActionDetail(entry, context);
3375
- });
3376
- return retVal;
3377
- };
3378
- const de_CancelStepsInfo = (output, context) => {
3379
- return {
3380
- Reason: (0, smithy_client_1.expectString)(output.Reason),
3381
- Status: (0, smithy_client_1.expectString)(output.Status),
3382
- StepId: (0, smithy_client_1.expectString)(output.StepId),
3383
- };
3384
- };
3385
- const de_CancelStepsInfoList = (output, context) => {
3386
- const retVal = (output || [])
3387
- .filter((e) => e != null)
3388
- .map((entry) => {
3389
- if (entry === null) {
3390
- return null;
3391
- }
3392
- return de_CancelStepsInfo(entry, context);
3393
- });
3394
- return retVal;
3395
- };
3396
- const de_CancelStepsOutput = (output, context) => {
3397
- return {
3398
- CancelStepsInfoList: output.CancelStepsInfoList != null ? de_CancelStepsInfoList(output.CancelStepsInfoList, context) : undefined,
3399
- };
3400
- };
3401
- const de_CloudWatchAlarmDefinition = (output, context) => {
3402
- return {
3403
- ComparisonOperator: (0, smithy_client_1.expectString)(output.ComparisonOperator),
3404
- Dimensions: output.Dimensions != null ? de_MetricDimensionList(output.Dimensions, context) : undefined,
3405
- EvaluationPeriods: (0, smithy_client_1.expectInt32)(output.EvaluationPeriods),
3406
- MetricName: (0, smithy_client_1.expectString)(output.MetricName),
3407
- Namespace: (0, smithy_client_1.expectString)(output.Namespace),
3408
- Period: (0, smithy_client_1.expectInt32)(output.Period),
3409
- Statistic: (0, smithy_client_1.expectString)(output.Statistic),
3410
- Threshold: (0, smithy_client_1.limitedParseDouble)(output.Threshold),
3411
- Unit: (0, smithy_client_1.expectString)(output.Unit),
3412
- };
3413
- };
3414
- const de_Cluster = (output, context) => {
3415
- return {
3416
- Applications: output.Applications != null ? de_ApplicationList(output.Applications, context) : undefined,
3417
- AutoScalingRole: (0, smithy_client_1.expectString)(output.AutoScalingRole),
3418
- AutoTerminate: (0, smithy_client_1.expectBoolean)(output.AutoTerminate),
3419
- ClusterArn: (0, smithy_client_1.expectString)(output.ClusterArn),
3420
- Configurations: output.Configurations != null ? de_ConfigurationList(output.Configurations, context) : undefined,
3421
- CustomAmiId: (0, smithy_client_1.expectString)(output.CustomAmiId),
3422
- EbsRootVolumeSize: (0, smithy_client_1.expectInt32)(output.EbsRootVolumeSize),
3423
- Ec2InstanceAttributes: output.Ec2InstanceAttributes != null
3424
- ? de_Ec2InstanceAttributes(output.Ec2InstanceAttributes, context)
3425
- : undefined,
3426
- Id: (0, smithy_client_1.expectString)(output.Id),
3427
- InstanceCollectionType: (0, smithy_client_1.expectString)(output.InstanceCollectionType),
3428
- KerberosAttributes: output.KerberosAttributes != null ? de_KerberosAttributes(output.KerberosAttributes, context) : undefined,
3429
- LogEncryptionKmsKeyId: (0, smithy_client_1.expectString)(output.LogEncryptionKmsKeyId),
3430
- LogUri: (0, smithy_client_1.expectString)(output.LogUri),
3431
- MasterPublicDnsName: (0, smithy_client_1.expectString)(output.MasterPublicDnsName),
3432
- Name: (0, smithy_client_1.expectString)(output.Name),
3433
- NormalizedInstanceHours: (0, smithy_client_1.expectInt32)(output.NormalizedInstanceHours),
3434
- OSReleaseLabel: (0, smithy_client_1.expectString)(output.OSReleaseLabel),
3435
- OutpostArn: (0, smithy_client_1.expectString)(output.OutpostArn),
3436
- PlacementGroups: output.PlacementGroups != null ? de_PlacementGroupConfigList(output.PlacementGroups, context) : undefined,
3437
- ReleaseLabel: (0, smithy_client_1.expectString)(output.ReleaseLabel),
3438
- RepoUpgradeOnBoot: (0, smithy_client_1.expectString)(output.RepoUpgradeOnBoot),
3439
- RequestedAmiVersion: (0, smithy_client_1.expectString)(output.RequestedAmiVersion),
3440
- RunningAmiVersion: (0, smithy_client_1.expectString)(output.RunningAmiVersion),
3441
- ScaleDownBehavior: (0, smithy_client_1.expectString)(output.ScaleDownBehavior),
3442
- SecurityConfiguration: (0, smithy_client_1.expectString)(output.SecurityConfiguration),
3443
- ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole),
3444
- Status: output.Status != null ? de_ClusterStatus(output.Status, context) : undefined,
3445
- StepConcurrencyLevel: (0, smithy_client_1.expectInt32)(output.StepConcurrencyLevel),
3446
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
3447
- TerminationProtected: (0, smithy_client_1.expectBoolean)(output.TerminationProtected),
3448
- VisibleToAllUsers: (0, smithy_client_1.expectBoolean)(output.VisibleToAllUsers),
3449
- };
3450
- };
3451
- const de_ClusterStateChangeReason = (output, context) => {
3452
- return {
3453
- Code: (0, smithy_client_1.expectString)(output.Code),
3454
- Message: (0, smithy_client_1.expectString)(output.Message),
3455
- };
3456
- };
3457
- const de_ClusterStatus = (output, context) => {
3458
- return {
3459
- ErrorDetails: output.ErrorDetails != null ? de_ErrorDetailList(output.ErrorDetails, context) : undefined,
3460
- State: (0, smithy_client_1.expectString)(output.State),
3461
- StateChangeReason: output.StateChangeReason != null ? de_ClusterStateChangeReason(output.StateChangeReason, context) : undefined,
3462
- Timeline: output.Timeline != null ? de_ClusterTimeline(output.Timeline, context) : undefined,
3463
- };
3464
- };
3465
- const de_ClusterSummary = (output, context) => {
3466
- return {
3467
- ClusterArn: (0, smithy_client_1.expectString)(output.ClusterArn),
3468
- Id: (0, smithy_client_1.expectString)(output.Id),
3469
- Name: (0, smithy_client_1.expectString)(output.Name),
3470
- NormalizedInstanceHours: (0, smithy_client_1.expectInt32)(output.NormalizedInstanceHours),
3471
- OutpostArn: (0, smithy_client_1.expectString)(output.OutpostArn),
3472
- Status: output.Status != null ? de_ClusterStatus(output.Status, context) : undefined,
3473
- };
3474
- };
3475
- const de_ClusterSummaryList = (output, context) => {
3476
- const retVal = (output || [])
3477
- .filter((e) => e != null)
3478
- .map((entry) => {
3479
- if (entry === null) {
3480
- return null;
3481
- }
3482
- return de_ClusterSummary(entry, context);
3483
- });
3484
- return retVal;
3485
- };
3486
- const de_ClusterTimeline = (output, context) => {
3487
- return {
3488
- CreationDateTime: output.CreationDateTime != null
3489
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
3490
- : undefined,
3491
- EndDateTime: output.EndDateTime != null
3492
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
3493
- : undefined,
3494
- ReadyDateTime: output.ReadyDateTime != null
3495
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadyDateTime)))
3496
- : undefined,
3497
- };
3498
- };
3499
- const de_Command = (output, context) => {
3500
- return {
3501
- Args: output.Args != null ? de_StringList(output.Args, context) : undefined,
3502
- Name: (0, smithy_client_1.expectString)(output.Name),
3503
- ScriptPath: (0, smithy_client_1.expectString)(output.ScriptPath),
3504
- };
3505
- };
3506
- const de_CommandList = (output, context) => {
3507
- const retVal = (output || [])
3508
- .filter((e) => e != null)
3509
- .map((entry) => {
3510
- if (entry === null) {
3511
- return null;
3512
- }
3513
- return de_Command(entry, context);
3514
- });
3515
- return retVal;
3516
- };
3517
- const de_ComputeLimits = (output, context) => {
3518
- return {
3519
- MaximumCapacityUnits: (0, smithy_client_1.expectInt32)(output.MaximumCapacityUnits),
3520
- MaximumCoreCapacityUnits: (0, smithy_client_1.expectInt32)(output.MaximumCoreCapacityUnits),
3521
- MaximumOnDemandCapacityUnits: (0, smithy_client_1.expectInt32)(output.MaximumOnDemandCapacityUnits),
3522
- MinimumCapacityUnits: (0, smithy_client_1.expectInt32)(output.MinimumCapacityUnits),
3523
- UnitType: (0, smithy_client_1.expectString)(output.UnitType),
3524
- };
3525
- };
3526
- const de_Configuration = (output, context) => {
3527
- return {
3528
- Classification: (0, smithy_client_1.expectString)(output.Classification),
3529
- Configurations: output.Configurations != null ? de_ConfigurationList(output.Configurations, context) : undefined,
3530
- Properties: output.Properties != null ? de_StringMap(output.Properties, context) : undefined,
3531
- };
3532
- };
3533
- const de_ConfigurationList = (output, context) => {
3534
- const retVal = (output || [])
3535
- .filter((e) => e != null)
3536
- .map((entry) => {
3537
- if (entry === null) {
3538
- return null;
3539
- }
3540
- return de_Configuration(entry, context);
3541
- });
3542
- return retVal;
3543
- };
3544
- const de_CreateSecurityConfigurationOutput = (output, context) => {
3545
- return {
3546
- CreationDateTime: output.CreationDateTime != null
3547
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
3548
- : undefined,
3549
- Name: (0, smithy_client_1.expectString)(output.Name),
3550
- };
3551
- };
3552
- const de_CreateStudioOutput = (output, context) => {
3553
- return {
3554
- StudioId: (0, smithy_client_1.expectString)(output.StudioId),
3555
- Url: (0, smithy_client_1.expectString)(output.Url),
3556
- };
3557
- };
3558
- const de_Credentials = (output, context) => {
3559
- if (output.UsernamePassword != null) {
3560
- return {
3561
- UsernamePassword: de_UsernamePassword(output.UsernamePassword, context),
3562
- };
3563
- }
3564
- return { $unknown: Object.entries(output)[0] };
3565
- };
3566
- const de_DeleteSecurityConfigurationOutput = (output, context) => {
3567
- return {};
3568
- };
3569
- const de_DescribeClusterOutput = (output, context) => {
3570
- return {
3571
- Cluster: output.Cluster != null ? de_Cluster(output.Cluster, context) : undefined,
3572
- };
3573
- };
3574
- const de_DescribeJobFlowsOutput = (output, context) => {
3575
- return {
3576
- JobFlows: output.JobFlows != null ? de_JobFlowDetailList(output.JobFlows, context) : undefined,
3577
- };
3578
- };
3579
- const de_DescribeNotebookExecutionOutput = (output, context) => {
3580
- return {
3581
- NotebookExecution: output.NotebookExecution != null ? de_NotebookExecution(output.NotebookExecution, context) : undefined,
3582
- };
3583
- };
3584
- const de_DescribeReleaseLabelOutput = (output, context) => {
3585
- return {
3586
- Applications: output.Applications != null ? de_SimplifiedApplicationList(output.Applications, context) : undefined,
3587
- AvailableOSReleases: output.AvailableOSReleases != null ? de_OSReleaseList(output.AvailableOSReleases, context) : undefined,
3588
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
3589
- ReleaseLabel: (0, smithy_client_1.expectString)(output.ReleaseLabel),
3590
- };
3591
- };
3592
- const de_DescribeSecurityConfigurationOutput = (output, context) => {
3593
- return {
3594
- CreationDateTime: output.CreationDateTime != null
3595
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
3596
- : undefined,
3597
- Name: (0, smithy_client_1.expectString)(output.Name),
3598
- SecurityConfiguration: (0, smithy_client_1.expectString)(output.SecurityConfiguration),
3599
- };
3600
- };
3601
- const de_DescribeStepOutput = (output, context) => {
3602
- return {
3603
- Step: output.Step != null ? de_Step(output.Step, context) : undefined,
3604
- };
3605
- };
3606
- const de_DescribeStudioOutput = (output, context) => {
3607
- return {
3608
- Studio: output.Studio != null ? de_Studio(output.Studio, context) : undefined,
3609
- };
3610
- };
3611
- const de_EbsBlockDevice = (output, context) => {
3612
- return {
3613
- Device: (0, smithy_client_1.expectString)(output.Device),
3614
- VolumeSpecification: output.VolumeSpecification != null ? de_VolumeSpecification(output.VolumeSpecification, context) : undefined,
3615
- };
3616
- };
3617
- const de_EbsBlockDeviceList = (output, context) => {
3618
- const retVal = (output || [])
3619
- .filter((e) => e != null)
3620
- .map((entry) => {
3621
- if (entry === null) {
3622
- return null;
3623
- }
3624
- return de_EbsBlockDevice(entry, context);
3625
- });
3626
- return retVal;
3627
- };
3628
- const de_EbsVolume = (output, context) => {
3629
- return {
3630
- Device: (0, smithy_client_1.expectString)(output.Device),
3631
- VolumeId: (0, smithy_client_1.expectString)(output.VolumeId),
3632
- };
3633
- };
3634
- const de_EbsVolumeList = (output, context) => {
3635
- const retVal = (output || [])
3636
- .filter((e) => e != null)
3637
- .map((entry) => {
3638
- if (entry === null) {
3639
- return null;
3640
- }
3641
- return de_EbsVolume(entry, context);
3642
- });
3643
- return retVal;
3644
- };
3645
- const de_Ec2InstanceAttributes = (output, context) => {
3646
- return {
3647
- AdditionalMasterSecurityGroups: output.AdditionalMasterSecurityGroups != null
3648
- ? de_StringList(output.AdditionalMasterSecurityGroups, context)
3649
- : undefined,
3650
- AdditionalSlaveSecurityGroups: output.AdditionalSlaveSecurityGroups != null
3651
- ? de_StringList(output.AdditionalSlaveSecurityGroups, context)
3652
- : undefined,
3653
- Ec2AvailabilityZone: (0, smithy_client_1.expectString)(output.Ec2AvailabilityZone),
3654
- Ec2KeyName: (0, smithy_client_1.expectString)(output.Ec2KeyName),
3655
- Ec2SubnetId: (0, smithy_client_1.expectString)(output.Ec2SubnetId),
3656
- EmrManagedMasterSecurityGroup: (0, smithy_client_1.expectString)(output.EmrManagedMasterSecurityGroup),
3657
- EmrManagedSlaveSecurityGroup: (0, smithy_client_1.expectString)(output.EmrManagedSlaveSecurityGroup),
3658
- IamInstanceProfile: (0, smithy_client_1.expectString)(output.IamInstanceProfile),
3659
- RequestedEc2AvailabilityZones: output.RequestedEc2AvailabilityZones != null
3660
- ? de_XmlStringMaxLen256List(output.RequestedEc2AvailabilityZones, context)
3661
- : undefined,
3662
- RequestedEc2SubnetIds: output.RequestedEc2SubnetIds != null
3663
- ? de_XmlStringMaxLen256List(output.RequestedEc2SubnetIds, context)
3664
- : undefined,
3665
- ServiceAccessSecurityGroup: (0, smithy_client_1.expectString)(output.ServiceAccessSecurityGroup),
3666
- };
3667
- };
3668
- const de_EC2InstanceIdsList = (output, context) => {
3669
- const retVal = (output || [])
3670
- .filter((e) => e != null)
3671
- .map((entry) => {
3672
- if (entry === null) {
3673
- return null;
3674
- }
3675
- return (0, smithy_client_1.expectString)(entry);
3676
- });
3677
- return retVal;
3678
- };
3679
- const de_ErrorData = (output, context) => {
3680
- const retVal = (output || [])
3681
- .filter((e) => e != null)
3682
- .map((entry) => {
3683
- if (entry === null) {
3684
- return null;
3685
- }
3686
- return de_StringMap(entry, context);
3687
- });
3688
- return retVal;
3689
- };
3690
- const de_ErrorDetail = (output, context) => {
3691
- return {
3692
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
3693
- ErrorData: output.ErrorData != null ? de_ErrorData(output.ErrorData, context) : undefined,
3694
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
3695
- };
3696
- };
3697
- const de_ErrorDetailList = (output, context) => {
3698
- const retVal = (output || [])
3699
- .filter((e) => e != null)
3700
- .map((entry) => {
3701
- if (entry === null) {
3702
- return null;
3703
- }
3704
- return de_ErrorDetail(entry, context);
3705
- });
3706
- return retVal;
3707
- };
3708
- const de_ExecutionEngineConfig = (output, context) => {
3709
- return {
3710
- Id: (0, smithy_client_1.expectString)(output.Id),
3711
- MasterInstanceSecurityGroupId: (0, smithy_client_1.expectString)(output.MasterInstanceSecurityGroupId),
3712
- Type: (0, smithy_client_1.expectString)(output.Type),
3713
- };
3714
- };
3715
- const de_FailureDetails = (output, context) => {
3716
- return {
3717
- LogFile: (0, smithy_client_1.expectString)(output.LogFile),
3718
- Message: (0, smithy_client_1.expectString)(output.Message),
3719
- Reason: (0, smithy_client_1.expectString)(output.Reason),
3720
- };
3721
- };
3722
- const de_GetAutoTerminationPolicyOutput = (output, context) => {
3723
- return {
3724
- AutoTerminationPolicy: output.AutoTerminationPolicy != null
3725
- ? de_AutoTerminationPolicy(output.AutoTerminationPolicy, context)
3726
- : undefined,
3727
- };
3728
- };
3729
- const de_GetBlockPublicAccessConfigurationOutput = (output, context) => {
3730
- return {
3731
- BlockPublicAccessConfiguration: output.BlockPublicAccessConfiguration != null
3732
- ? de_BlockPublicAccessConfiguration(output.BlockPublicAccessConfiguration, context)
3733
- : undefined,
3734
- BlockPublicAccessConfigurationMetadata: output.BlockPublicAccessConfigurationMetadata != null
3735
- ? de_BlockPublicAccessConfigurationMetadata(output.BlockPublicAccessConfigurationMetadata, context)
3736
- : undefined,
3737
- };
3738
- };
3739
- const de_GetClusterSessionCredentialsOutput = (output, context) => {
3740
- return {
3741
- Credentials: output.Credentials != null ? de_Credentials((0, smithy_client_1.expectUnion)(output.Credentials), context) : undefined,
3742
- ExpiresAt: output.ExpiresAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ExpiresAt))) : undefined,
3743
- };
3744
- };
3745
- const de_GetManagedScalingPolicyOutput = (output, context) => {
3746
- return {
3747
- ManagedScalingPolicy: output.ManagedScalingPolicy != null ? de_ManagedScalingPolicy(output.ManagedScalingPolicy, context) : undefined,
3748
- };
3749
- };
3750
- const de_GetStudioSessionMappingOutput = (output, context) => {
3751
- return {
3752
- SessionMapping: output.SessionMapping != null ? de_SessionMappingDetail(output.SessionMapping, context) : undefined,
3753
- };
3754
- };
3755
- const de_HadoopJarStepConfig = (output, context) => {
3756
- return {
3757
- Args: output.Args != null ? de_XmlStringList(output.Args, context) : undefined,
3758
- Jar: (0, smithy_client_1.expectString)(output.Jar),
3759
- MainClass: (0, smithy_client_1.expectString)(output.MainClass),
3760
- Properties: output.Properties != null ? de_KeyValueList(output.Properties, context) : undefined,
3761
- };
3762
- };
3763
- const de_HadoopStepConfig = (output, context) => {
3764
- return {
3765
- Args: output.Args != null ? de_StringList(output.Args, context) : undefined,
3766
- Jar: (0, smithy_client_1.expectString)(output.Jar),
3767
- MainClass: (0, smithy_client_1.expectString)(output.MainClass),
3768
- Properties: output.Properties != null ? de_StringMap(output.Properties, context) : undefined,
3769
- };
3770
- };
3771
- const de_Instance = (output, context) => {
3772
- return {
3773
- EbsVolumes: output.EbsVolumes != null ? de_EbsVolumeList(output.EbsVolumes, context) : undefined,
3774
- Ec2InstanceId: (0, smithy_client_1.expectString)(output.Ec2InstanceId),
3775
- Id: (0, smithy_client_1.expectString)(output.Id),
3776
- InstanceFleetId: (0, smithy_client_1.expectString)(output.InstanceFleetId),
3777
- InstanceGroupId: (0, smithy_client_1.expectString)(output.InstanceGroupId),
3778
- InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
3779
- Market: (0, smithy_client_1.expectString)(output.Market),
3780
- PrivateDnsName: (0, smithy_client_1.expectString)(output.PrivateDnsName),
3781
- PrivateIpAddress: (0, smithy_client_1.expectString)(output.PrivateIpAddress),
3782
- PublicDnsName: (0, smithy_client_1.expectString)(output.PublicDnsName),
3783
- PublicIpAddress: (0, smithy_client_1.expectString)(output.PublicIpAddress),
3784
- Status: output.Status != null ? de_InstanceStatus(output.Status, context) : undefined,
3785
- };
2605
+ const de_Instance = (output, context) => {
2606
+ return (0, smithy_client_1.take)(output, {
2607
+ EbsVolumes: smithy_client_1._json,
2608
+ Ec2InstanceId: smithy_client_1.expectString,
2609
+ Id: smithy_client_1.expectString,
2610
+ InstanceFleetId: smithy_client_1.expectString,
2611
+ InstanceGroupId: smithy_client_1.expectString,
2612
+ InstanceType: smithy_client_1.expectString,
2613
+ Market: smithy_client_1.expectString,
2614
+ PrivateDnsName: smithy_client_1.expectString,
2615
+ PrivateIpAddress: smithy_client_1.expectString,
2616
+ PublicDnsName: smithy_client_1.expectString,
2617
+ PublicIpAddress: smithy_client_1.expectString,
2618
+ Status: (_) => de_InstanceStatus(_, context),
2619
+ });
3786
2620
  };
3787
2621
  const de_InstanceFleet = (output, context) => {
3788
- return {
3789
- Id: (0, smithy_client_1.expectString)(output.Id),
3790
- InstanceFleetType: (0, smithy_client_1.expectString)(output.InstanceFleetType),
3791
- InstanceTypeSpecifications: output.InstanceTypeSpecifications != null
3792
- ? de_InstanceTypeSpecificationList(output.InstanceTypeSpecifications, context)
3793
- : undefined,
3794
- LaunchSpecifications: output.LaunchSpecifications != null
3795
- ? de_InstanceFleetProvisioningSpecifications(output.LaunchSpecifications, context)
3796
- : undefined,
3797
- Name: (0, smithy_client_1.expectString)(output.Name),
3798
- ProvisionedOnDemandCapacity: (0, smithy_client_1.expectInt32)(output.ProvisionedOnDemandCapacity),
3799
- ProvisionedSpotCapacity: (0, smithy_client_1.expectInt32)(output.ProvisionedSpotCapacity),
3800
- ResizeSpecifications: output.ResizeSpecifications != null
3801
- ? de_InstanceFleetResizingSpecifications(output.ResizeSpecifications, context)
3802
- : undefined,
3803
- Status: output.Status != null ? de_InstanceFleetStatus(output.Status, context) : undefined,
3804
- TargetOnDemandCapacity: (0, smithy_client_1.expectInt32)(output.TargetOnDemandCapacity),
3805
- TargetSpotCapacity: (0, smithy_client_1.expectInt32)(output.TargetSpotCapacity),
3806
- };
2622
+ return (0, smithy_client_1.take)(output, {
2623
+ Id: smithy_client_1.expectString,
2624
+ InstanceFleetType: smithy_client_1.expectString,
2625
+ InstanceTypeSpecifications: (_) => de_InstanceTypeSpecificationList(_, context),
2626
+ LaunchSpecifications: smithy_client_1._json,
2627
+ Name: smithy_client_1.expectString,
2628
+ ProvisionedOnDemandCapacity: smithy_client_1.expectInt32,
2629
+ ProvisionedSpotCapacity: smithy_client_1.expectInt32,
2630
+ ResizeSpecifications: smithy_client_1._json,
2631
+ Status: (_) => de_InstanceFleetStatus(_, context),
2632
+ TargetOnDemandCapacity: smithy_client_1.expectInt32,
2633
+ TargetSpotCapacity: smithy_client_1.expectInt32,
2634
+ });
3807
2635
  };
3808
2636
  const de_InstanceFleetList = (output, context) => {
3809
2637
  const retVal = (output || [])
3810
2638
  .filter((e) => e != null)
3811
2639
  .map((entry) => {
3812
- if (entry === null) {
3813
- return null;
3814
- }
3815
2640
  return de_InstanceFleet(entry, context);
3816
2641
  });
3817
2642
  return retVal;
3818
2643
  };
3819
- const de_InstanceFleetProvisioningSpecifications = (output, context) => {
3820
- return {
3821
- OnDemandSpecification: output.OnDemandSpecification != null
3822
- ? de_OnDemandProvisioningSpecification(output.OnDemandSpecification, context)
3823
- : undefined,
3824
- SpotSpecification: output.SpotSpecification != null
3825
- ? de_SpotProvisioningSpecification(output.SpotSpecification, context)
3826
- : undefined,
3827
- };
3828
- };
3829
- const de_InstanceFleetResizingSpecifications = (output, context) => {
3830
- return {
3831
- OnDemandResizeSpecification: output.OnDemandResizeSpecification != null
3832
- ? de_OnDemandResizingSpecification(output.OnDemandResizeSpecification, context)
3833
- : undefined,
3834
- SpotResizeSpecification: output.SpotResizeSpecification != null
3835
- ? de_SpotResizingSpecification(output.SpotResizeSpecification, context)
3836
- : undefined,
3837
- };
3838
- };
3839
- const de_InstanceFleetStateChangeReason = (output, context) => {
3840
- return {
3841
- Code: (0, smithy_client_1.expectString)(output.Code),
3842
- Message: (0, smithy_client_1.expectString)(output.Message),
3843
- };
3844
- };
3845
2644
  const de_InstanceFleetStatus = (output, context) => {
3846
- return {
3847
- State: (0, smithy_client_1.expectString)(output.State),
3848
- StateChangeReason: output.StateChangeReason != null
3849
- ? de_InstanceFleetStateChangeReason(output.StateChangeReason, context)
3850
- : undefined,
3851
- Timeline: output.Timeline != null ? de_InstanceFleetTimeline(output.Timeline, context) : undefined,
3852
- };
3853
- };
3854
- const de_InstanceFleetTimeline = (output, context) => {
3855
- return {
3856
- CreationDateTime: output.CreationDateTime != null
3857
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
3858
- : undefined,
3859
- EndDateTime: output.EndDateTime != null
3860
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
3861
- : undefined,
3862
- ReadyDateTime: output.ReadyDateTime != null
3863
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadyDateTime)))
3864
- : undefined,
3865
- };
3866
- };
3867
- const de_InstanceGroup = (output, context) => {
3868
- return {
3869
- AutoScalingPolicy: output.AutoScalingPolicy != null ? de_AutoScalingPolicyDescription(output.AutoScalingPolicy, context) : undefined,
3870
- BidPrice: (0, smithy_client_1.expectString)(output.BidPrice),
3871
- Configurations: output.Configurations != null ? de_ConfigurationList(output.Configurations, context) : undefined,
3872
- ConfigurationsVersion: (0, smithy_client_1.expectLong)(output.ConfigurationsVersion),
3873
- CustomAmiId: (0, smithy_client_1.expectString)(output.CustomAmiId),
3874
- EbsBlockDevices: output.EbsBlockDevices != null ? de_EbsBlockDeviceList(output.EbsBlockDevices, context) : undefined,
3875
- EbsOptimized: (0, smithy_client_1.expectBoolean)(output.EbsOptimized),
3876
- Id: (0, smithy_client_1.expectString)(output.Id),
3877
- InstanceGroupType: (0, smithy_client_1.expectString)(output.InstanceGroupType),
3878
- InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
3879
- LastSuccessfullyAppliedConfigurations: output.LastSuccessfullyAppliedConfigurations != null
3880
- ? de_ConfigurationList(output.LastSuccessfullyAppliedConfigurations, context)
3881
- : undefined,
3882
- LastSuccessfullyAppliedConfigurationsVersion: (0, smithy_client_1.expectLong)(output.LastSuccessfullyAppliedConfigurationsVersion),
3883
- Market: (0, smithy_client_1.expectString)(output.Market),
3884
- Name: (0, smithy_client_1.expectString)(output.Name),
3885
- RequestedInstanceCount: (0, smithy_client_1.expectInt32)(output.RequestedInstanceCount),
3886
- RunningInstanceCount: (0, smithy_client_1.expectInt32)(output.RunningInstanceCount),
3887
- ShrinkPolicy: output.ShrinkPolicy != null ? de_ShrinkPolicy(output.ShrinkPolicy, context) : undefined,
3888
- Status: output.Status != null ? de_InstanceGroupStatus(output.Status, context) : undefined,
3889
- };
3890
- };
3891
- const de_InstanceGroupDetail = (output, context) => {
3892
- return {
3893
- BidPrice: (0, smithy_client_1.expectString)(output.BidPrice),
3894
- CreationDateTime: output.CreationDateTime != null
3895
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
3896
- : undefined,
3897
- CustomAmiId: (0, smithy_client_1.expectString)(output.CustomAmiId),
3898
- EndDateTime: output.EndDateTime != null
3899
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
3900
- : undefined,
3901
- InstanceGroupId: (0, smithy_client_1.expectString)(output.InstanceGroupId),
3902
- InstanceRequestCount: (0, smithy_client_1.expectInt32)(output.InstanceRequestCount),
3903
- InstanceRole: (0, smithy_client_1.expectString)(output.InstanceRole),
3904
- InstanceRunningCount: (0, smithy_client_1.expectInt32)(output.InstanceRunningCount),
3905
- InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
3906
- LastStateChangeReason: (0, smithy_client_1.expectString)(output.LastStateChangeReason),
3907
- Market: (0, smithy_client_1.expectString)(output.Market),
3908
- Name: (0, smithy_client_1.expectString)(output.Name),
3909
- ReadyDateTime: output.ReadyDateTime != null
3910
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadyDateTime)))
3911
- : undefined,
3912
- StartDateTime: output.StartDateTime != null
3913
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDateTime)))
3914
- : undefined,
3915
- State: (0, smithy_client_1.expectString)(output.State),
3916
- };
3917
- };
3918
- const de_InstanceGroupDetailList = (output, context) => {
3919
- const retVal = (output || [])
3920
- .filter((e) => e != null)
3921
- .map((entry) => {
3922
- if (entry === null) {
3923
- return null;
3924
- }
3925
- return de_InstanceGroupDetail(entry, context);
3926
- });
3927
- return retVal;
3928
- };
3929
- const de_InstanceGroupIdsList = (output, context) => {
3930
- const retVal = (output || [])
3931
- .filter((e) => e != null)
3932
- .map((entry) => {
3933
- if (entry === null) {
3934
- return null;
3935
- }
3936
- return (0, smithy_client_1.expectString)(entry);
3937
- });
3938
- return retVal;
3939
- };
3940
- const de_InstanceGroupList = (output, context) => {
3941
- const retVal = (output || [])
3942
- .filter((e) => e != null)
3943
- .map((entry) => {
3944
- if (entry === null) {
3945
- return null;
3946
- }
3947
- return de_InstanceGroup(entry, context);
3948
- });
3949
- return retVal;
3950
- };
3951
- const de_InstanceGroupStateChangeReason = (output, context) => {
3952
- return {
3953
- Code: (0, smithy_client_1.expectString)(output.Code),
3954
- Message: (0, smithy_client_1.expectString)(output.Message),
3955
- };
3956
- };
3957
- const de_InstanceGroupStatus = (output, context) => {
3958
- return {
3959
- State: (0, smithy_client_1.expectString)(output.State),
3960
- StateChangeReason: output.StateChangeReason != null
3961
- ? de_InstanceGroupStateChangeReason(output.StateChangeReason, context)
3962
- : undefined,
3963
- Timeline: output.Timeline != null ? de_InstanceGroupTimeline(output.Timeline, context) : undefined,
3964
- };
3965
- };
3966
- const de_InstanceGroupTimeline = (output, context) => {
3967
- return {
3968
- CreationDateTime: output.CreationDateTime != null
3969
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
3970
- : undefined,
3971
- EndDateTime: output.EndDateTime != null
3972
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
3973
- : undefined,
3974
- ReadyDateTime: output.ReadyDateTime != null
3975
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadyDateTime)))
3976
- : undefined,
3977
- };
3978
- };
3979
- const de_InstanceList = (output, context) => {
3980
- const retVal = (output || [])
3981
- .filter((e) => e != null)
3982
- .map((entry) => {
3983
- if (entry === null) {
3984
- return null;
3985
- }
3986
- return de_Instance(entry, context);
3987
- });
3988
- return retVal;
3989
- };
3990
- const de_InstanceResizePolicy = (output, context) => {
3991
- return {
3992
- InstanceTerminationTimeout: (0, smithy_client_1.expectInt32)(output.InstanceTerminationTimeout),
3993
- InstancesToProtect: output.InstancesToProtect != null ? de_EC2InstanceIdsList(output.InstancesToProtect, context) : undefined,
3994
- InstancesToTerminate: output.InstancesToTerminate != null ? de_EC2InstanceIdsList(output.InstancesToTerminate, context) : undefined,
3995
- };
3996
- };
3997
- const de_InstanceStateChangeReason = (output, context) => {
3998
- return {
3999
- Code: (0, smithy_client_1.expectString)(output.Code),
4000
- Message: (0, smithy_client_1.expectString)(output.Message),
4001
- };
4002
- };
4003
- const de_InstanceStatus = (output, context) => {
4004
- return {
4005
- State: (0, smithy_client_1.expectString)(output.State),
4006
- StateChangeReason: output.StateChangeReason != null ? de_InstanceStateChangeReason(output.StateChangeReason, context) : undefined,
4007
- Timeline: output.Timeline != null ? de_InstanceTimeline(output.Timeline, context) : undefined,
4008
- };
4009
- };
4010
- const de_InstanceTimeline = (output, context) => {
4011
- return {
4012
- CreationDateTime: output.CreationDateTime != null
4013
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
4014
- : undefined,
4015
- EndDateTime: output.EndDateTime != null
4016
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
4017
- : undefined,
4018
- ReadyDateTime: output.ReadyDateTime != null
4019
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadyDateTime)))
4020
- : undefined,
4021
- };
4022
- };
4023
- const de_InstanceTypeSpecification = (output, context) => {
4024
- return {
4025
- BidPrice: (0, smithy_client_1.expectString)(output.BidPrice),
4026
- BidPriceAsPercentageOfOnDemandPrice: (0, smithy_client_1.limitedParseDouble)(output.BidPriceAsPercentageOfOnDemandPrice),
4027
- Configurations: output.Configurations != null ? de_ConfigurationList(output.Configurations, context) : undefined,
4028
- CustomAmiId: (0, smithy_client_1.expectString)(output.CustomAmiId),
4029
- EbsBlockDevices: output.EbsBlockDevices != null ? de_EbsBlockDeviceList(output.EbsBlockDevices, context) : undefined,
4030
- EbsOptimized: (0, smithy_client_1.expectBoolean)(output.EbsOptimized),
4031
- InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
4032
- WeightedCapacity: (0, smithy_client_1.expectInt32)(output.WeightedCapacity),
4033
- };
4034
- };
4035
- const de_InstanceTypeSpecificationList = (output, context) => {
4036
- const retVal = (output || [])
4037
- .filter((e) => e != null)
4038
- .map((entry) => {
4039
- if (entry === null) {
4040
- return null;
4041
- }
4042
- return de_InstanceTypeSpecification(entry, context);
4043
- });
4044
- return retVal;
4045
- };
4046
- const de_InternalServerError = (output, context) => {
4047
- return {};
4048
- };
4049
- const de_InternalServerException = (output, context) => {
4050
- return {
4051
- Message: (0, smithy_client_1.expectString)(output.Message),
4052
- };
4053
- };
4054
- const de_InvalidRequestException = (output, context) => {
4055
- return {
4056
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4057
- Message: (0, smithy_client_1.expectString)(output.Message),
4058
- };
4059
- };
4060
- const de_JobFlowDetail = (output, context) => {
4061
- return {
4062
- AmiVersion: (0, smithy_client_1.expectString)(output.AmiVersion),
4063
- AutoScalingRole: (0, smithy_client_1.expectString)(output.AutoScalingRole),
4064
- BootstrapActions: output.BootstrapActions != null ? de_BootstrapActionDetailList(output.BootstrapActions, context) : undefined,
4065
- ExecutionStatusDetail: output.ExecutionStatusDetail != null
4066
- ? de_JobFlowExecutionStatusDetail(output.ExecutionStatusDetail, context)
4067
- : undefined,
4068
- Instances: output.Instances != null ? de_JobFlowInstancesDetail(output.Instances, context) : undefined,
4069
- JobFlowId: (0, smithy_client_1.expectString)(output.JobFlowId),
4070
- JobFlowRole: (0, smithy_client_1.expectString)(output.JobFlowRole),
4071
- LogEncryptionKmsKeyId: (0, smithy_client_1.expectString)(output.LogEncryptionKmsKeyId),
4072
- LogUri: (0, smithy_client_1.expectString)(output.LogUri),
4073
- Name: (0, smithy_client_1.expectString)(output.Name),
4074
- ScaleDownBehavior: (0, smithy_client_1.expectString)(output.ScaleDownBehavior),
4075
- ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole),
4076
- Steps: output.Steps != null ? de_StepDetailList(output.Steps, context) : undefined,
4077
- SupportedProducts: output.SupportedProducts != null ? de_SupportedProductsList(output.SupportedProducts, context) : undefined,
4078
- VisibleToAllUsers: (0, smithy_client_1.expectBoolean)(output.VisibleToAllUsers),
4079
- };
4080
- };
4081
- const de_JobFlowDetailList = (output, context) => {
4082
- const retVal = (output || [])
4083
- .filter((e) => e != null)
4084
- .map((entry) => {
4085
- if (entry === null) {
4086
- return null;
4087
- }
4088
- return de_JobFlowDetail(entry, context);
2645
+ return (0, smithy_client_1.take)(output, {
2646
+ State: smithy_client_1.expectString,
2647
+ StateChangeReason: smithy_client_1._json,
2648
+ Timeline: (_) => de_InstanceFleetTimeline(_, context),
4089
2649
  });
4090
- return retVal;
4091
- };
4092
- const de_JobFlowExecutionStatusDetail = (output, context) => {
4093
- return {
4094
- CreationDateTime: output.CreationDateTime != null
4095
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
4096
- : undefined,
4097
- EndDateTime: output.EndDateTime != null
4098
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
4099
- : undefined,
4100
- LastStateChangeReason: (0, smithy_client_1.expectString)(output.LastStateChangeReason),
4101
- ReadyDateTime: output.ReadyDateTime != null
4102
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadyDateTime)))
4103
- : undefined,
4104
- StartDateTime: output.StartDateTime != null
4105
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDateTime)))
4106
- : undefined,
4107
- State: (0, smithy_client_1.expectString)(output.State),
4108
- };
4109
- };
4110
- const de_JobFlowInstancesDetail = (output, context) => {
4111
- return {
4112
- Ec2KeyName: (0, smithy_client_1.expectString)(output.Ec2KeyName),
4113
- Ec2SubnetId: (0, smithy_client_1.expectString)(output.Ec2SubnetId),
4114
- HadoopVersion: (0, smithy_client_1.expectString)(output.HadoopVersion),
4115
- InstanceCount: (0, smithy_client_1.expectInt32)(output.InstanceCount),
4116
- InstanceGroups: output.InstanceGroups != null ? de_InstanceGroupDetailList(output.InstanceGroups, context) : undefined,
4117
- KeepJobFlowAliveWhenNoSteps: (0, smithy_client_1.expectBoolean)(output.KeepJobFlowAliveWhenNoSteps),
4118
- MasterInstanceId: (0, smithy_client_1.expectString)(output.MasterInstanceId),
4119
- MasterInstanceType: (0, smithy_client_1.expectString)(output.MasterInstanceType),
4120
- MasterPublicDnsName: (0, smithy_client_1.expectString)(output.MasterPublicDnsName),
4121
- NormalizedInstanceHours: (0, smithy_client_1.expectInt32)(output.NormalizedInstanceHours),
4122
- Placement: output.Placement != null ? de_PlacementType(output.Placement, context) : undefined,
4123
- SlaveInstanceType: (0, smithy_client_1.expectString)(output.SlaveInstanceType),
4124
- TerminationProtected: (0, smithy_client_1.expectBoolean)(output.TerminationProtected),
4125
- };
4126
- };
4127
- const de_KerberosAttributes = (output, context) => {
4128
- return {
4129
- ADDomainJoinPassword: (0, smithy_client_1.expectString)(output.ADDomainJoinPassword),
4130
- ADDomainJoinUser: (0, smithy_client_1.expectString)(output.ADDomainJoinUser),
4131
- CrossRealmTrustPrincipalPassword: (0, smithy_client_1.expectString)(output.CrossRealmTrustPrincipalPassword),
4132
- KdcAdminPassword: (0, smithy_client_1.expectString)(output.KdcAdminPassword),
4133
- Realm: (0, smithy_client_1.expectString)(output.Realm),
4134
- };
4135
- };
4136
- const de_KeyValue = (output, context) => {
4137
- return {
4138
- Key: (0, smithy_client_1.expectString)(output.Key),
4139
- Value: (0, smithy_client_1.expectString)(output.Value),
4140
- };
4141
- };
4142
- const de_KeyValueList = (output, context) => {
4143
- const retVal = (output || [])
4144
- .filter((e) => e != null)
4145
- .map((entry) => {
4146
- if (entry === null) {
4147
- return null;
4148
- }
4149
- return de_KeyValue(entry, context);
4150
- });
4151
- return retVal;
4152
- };
4153
- const de_ListBootstrapActionsOutput = (output, context) => {
4154
- return {
4155
- BootstrapActions: output.BootstrapActions != null ? de_CommandList(output.BootstrapActions, context) : undefined,
4156
- Marker: (0, smithy_client_1.expectString)(output.Marker),
4157
- };
4158
- };
4159
- const de_ListClustersOutput = (output, context) => {
4160
- return {
4161
- Clusters: output.Clusters != null ? de_ClusterSummaryList(output.Clusters, context) : undefined,
4162
- Marker: (0, smithy_client_1.expectString)(output.Marker),
4163
- };
4164
- };
4165
- const de_ListInstanceFleetsOutput = (output, context) => {
4166
- return {
4167
- InstanceFleets: output.InstanceFleets != null ? de_InstanceFleetList(output.InstanceFleets, context) : undefined,
4168
- Marker: (0, smithy_client_1.expectString)(output.Marker),
4169
- };
4170
- };
4171
- const de_ListInstanceGroupsOutput = (output, context) => {
4172
- return {
4173
- InstanceGroups: output.InstanceGroups != null ? de_InstanceGroupList(output.InstanceGroups, context) : undefined,
4174
- Marker: (0, smithy_client_1.expectString)(output.Marker),
4175
- };
4176
- };
4177
- const de_ListInstancesOutput = (output, context) => {
4178
- return {
4179
- Instances: output.Instances != null ? de_InstanceList(output.Instances, context) : undefined,
4180
- Marker: (0, smithy_client_1.expectString)(output.Marker),
4181
- };
4182
- };
4183
- const de_ListNotebookExecutionsOutput = (output, context) => {
4184
- return {
4185
- Marker: (0, smithy_client_1.expectString)(output.Marker),
4186
- NotebookExecutions: output.NotebookExecutions != null
4187
- ? de_NotebookExecutionSummaryList(output.NotebookExecutions, context)
4188
- : undefined,
4189
- };
4190
- };
4191
- const de_ListReleaseLabelsOutput = (output, context) => {
4192
- return {
4193
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4194
- ReleaseLabels: output.ReleaseLabels != null ? de_StringList(output.ReleaseLabels, context) : undefined,
4195
- };
4196
2650
  };
4197
- const de_ListSecurityConfigurationsOutput = (output, context) => {
4198
- return {
4199
- Marker: (0, smithy_client_1.expectString)(output.Marker),
4200
- SecurityConfigurations: output.SecurityConfigurations != null
4201
- ? de_SecurityConfigurationList(output.SecurityConfigurations, context)
4202
- : undefined,
4203
- };
4204
- };
4205
- const de_ListStepsOutput = (output, context) => {
4206
- return {
4207
- Marker: (0, smithy_client_1.expectString)(output.Marker),
4208
- Steps: output.Steps != null ? de_StepSummaryList(output.Steps, context) : undefined,
4209
- };
4210
- };
4211
- const de_ListStudioSessionMappingsOutput = (output, context) => {
4212
- return {
4213
- Marker: (0, smithy_client_1.expectString)(output.Marker),
4214
- SessionMappings: output.SessionMappings != null ? de_SessionMappingSummaryList(output.SessionMappings, context) : undefined,
4215
- };
4216
- };
4217
- const de_ListStudiosOutput = (output, context) => {
4218
- return {
4219
- Marker: (0, smithy_client_1.expectString)(output.Marker),
4220
- Studios: output.Studios != null ? de_StudioSummaryList(output.Studios, context) : undefined,
4221
- };
2651
+ const de_InstanceFleetTimeline = (output, context) => {
2652
+ return (0, smithy_client_1.take)(output, {
2653
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2654
+ EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2655
+ ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2656
+ });
4222
2657
  };
4223
- const de_ManagedScalingPolicy = (output, context) => {
4224
- return {
4225
- ComputeLimits: output.ComputeLimits != null ? de_ComputeLimits(output.ComputeLimits, context) : undefined,
4226
- };
2658
+ const de_InstanceGroup = (output, context) => {
2659
+ return (0, smithy_client_1.take)(output, {
2660
+ AutoScalingPolicy: (_) => de_AutoScalingPolicyDescription(_, context),
2661
+ BidPrice: smithy_client_1.expectString,
2662
+ Configurations: (_) => de_ConfigurationList(_, context),
2663
+ ConfigurationsVersion: smithy_client_1.expectLong,
2664
+ CustomAmiId: smithy_client_1.expectString,
2665
+ EbsBlockDevices: smithy_client_1._json,
2666
+ EbsOptimized: smithy_client_1.expectBoolean,
2667
+ Id: smithy_client_1.expectString,
2668
+ InstanceGroupType: smithy_client_1.expectString,
2669
+ InstanceType: smithy_client_1.expectString,
2670
+ LastSuccessfullyAppliedConfigurations: (_) => de_ConfigurationList(_, context),
2671
+ LastSuccessfullyAppliedConfigurationsVersion: smithy_client_1.expectLong,
2672
+ Market: smithy_client_1.expectString,
2673
+ Name: smithy_client_1.expectString,
2674
+ RequestedInstanceCount: smithy_client_1.expectInt32,
2675
+ RunningInstanceCount: smithy_client_1.expectInt32,
2676
+ ShrinkPolicy: smithy_client_1._json,
2677
+ Status: (_) => de_InstanceGroupStatus(_, context),
2678
+ });
4227
2679
  };
4228
- const de_MetricDimension = (output, context) => {
4229
- return {
4230
- Key: (0, smithy_client_1.expectString)(output.Key),
4231
- Value: (0, smithy_client_1.expectString)(output.Value),
4232
- };
2680
+ const de_InstanceGroupDetail = (output, context) => {
2681
+ return (0, smithy_client_1.take)(output, {
2682
+ BidPrice: smithy_client_1.expectString,
2683
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2684
+ CustomAmiId: smithy_client_1.expectString,
2685
+ EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2686
+ InstanceGroupId: smithy_client_1.expectString,
2687
+ InstanceRequestCount: smithy_client_1.expectInt32,
2688
+ InstanceRole: smithy_client_1.expectString,
2689
+ InstanceRunningCount: smithy_client_1.expectInt32,
2690
+ InstanceType: smithy_client_1.expectString,
2691
+ LastStateChangeReason: smithy_client_1.expectString,
2692
+ Market: smithy_client_1.expectString,
2693
+ Name: smithy_client_1.expectString,
2694
+ ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2695
+ StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2696
+ State: smithy_client_1.expectString,
2697
+ });
4233
2698
  };
4234
- const de_MetricDimensionList = (output, context) => {
2699
+ const de_InstanceGroupDetailList = (output, context) => {
4235
2700
  const retVal = (output || [])
4236
2701
  .filter((e) => e != null)
4237
2702
  .map((entry) => {
4238
- if (entry === null) {
4239
- return null;
4240
- }
4241
- return de_MetricDimension(entry, context);
2703
+ return de_InstanceGroupDetail(entry, context);
4242
2704
  });
4243
2705
  return retVal;
4244
2706
  };
4245
- const de_ModifyClusterOutput = (output, context) => {
4246
- return {
4247
- StepConcurrencyLevel: (0, smithy_client_1.expectInt32)(output.StepConcurrencyLevel),
4248
- };
2707
+ const de_InstanceGroupList = (output, context) => {
2708
+ const retVal = (output || [])
2709
+ .filter((e) => e != null)
2710
+ .map((entry) => {
2711
+ return de_InstanceGroup(entry, context);
2712
+ });
2713
+ return retVal;
4249
2714
  };
4250
- const de_NotebookExecution = (output, context) => {
4251
- return {
4252
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4253
- EditorId: (0, smithy_client_1.expectString)(output.EditorId),
4254
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
4255
- ExecutionEngine: output.ExecutionEngine != null ? de_ExecutionEngineConfig(output.ExecutionEngine, context) : undefined,
4256
- LastStateChangeReason: (0, smithy_client_1.expectString)(output.LastStateChangeReason),
4257
- NotebookExecutionId: (0, smithy_client_1.expectString)(output.NotebookExecutionId),
4258
- NotebookExecutionName: (0, smithy_client_1.expectString)(output.NotebookExecutionName),
4259
- NotebookInstanceSecurityGroupId: (0, smithy_client_1.expectString)(output.NotebookInstanceSecurityGroupId),
4260
- NotebookParams: (0, smithy_client_1.expectString)(output.NotebookParams),
4261
- OutputNotebookURI: (0, smithy_client_1.expectString)(output.OutputNotebookURI),
4262
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
4263
- Status: (0, smithy_client_1.expectString)(output.Status),
4264
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4265
- };
2715
+ const de_InstanceGroupStatus = (output, context) => {
2716
+ return (0, smithy_client_1.take)(output, {
2717
+ State: smithy_client_1.expectString,
2718
+ StateChangeReason: smithy_client_1._json,
2719
+ Timeline: (_) => de_InstanceGroupTimeline(_, context),
2720
+ });
4266
2721
  };
4267
- const de_NotebookExecutionSummary = (output, context) => {
4268
- return {
4269
- EditorId: (0, smithy_client_1.expectString)(output.EditorId),
4270
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
4271
- NotebookExecutionId: (0, smithy_client_1.expectString)(output.NotebookExecutionId),
4272
- NotebookExecutionName: (0, smithy_client_1.expectString)(output.NotebookExecutionName),
4273
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
4274
- Status: (0, smithy_client_1.expectString)(output.Status),
4275
- };
2722
+ const de_InstanceGroupTimeline = (output, context) => {
2723
+ return (0, smithy_client_1.take)(output, {
2724
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2725
+ EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2726
+ ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2727
+ });
4276
2728
  };
4277
- const de_NotebookExecutionSummaryList = (output, context) => {
2729
+ const de_InstanceList = (output, context) => {
4278
2730
  const retVal = (output || [])
4279
2731
  .filter((e) => e != null)
4280
2732
  .map((entry) => {
4281
- if (entry === null) {
4282
- return null;
4283
- }
4284
- return de_NotebookExecutionSummary(entry, context);
2733
+ return de_Instance(entry, context);
4285
2734
  });
4286
2735
  return retVal;
4287
2736
  };
4288
- const de_OnDemandCapacityReservationOptions = (output, context) => {
4289
- return {
4290
- CapacityReservationPreference: (0, smithy_client_1.expectString)(output.CapacityReservationPreference),
4291
- CapacityReservationResourceGroupArn: (0, smithy_client_1.expectString)(output.CapacityReservationResourceGroupArn),
4292
- UsageStrategy: (0, smithy_client_1.expectString)(output.UsageStrategy),
4293
- };
4294
- };
4295
- const de_OnDemandProvisioningSpecification = (output, context) => {
4296
- return {
4297
- AllocationStrategy: (0, smithy_client_1.expectString)(output.AllocationStrategy),
4298
- CapacityReservationOptions: output.CapacityReservationOptions != null
4299
- ? de_OnDemandCapacityReservationOptions(output.CapacityReservationOptions, context)
4300
- : undefined,
4301
- };
2737
+ const de_InstanceStatus = (output, context) => {
2738
+ return (0, smithy_client_1.take)(output, {
2739
+ State: smithy_client_1.expectString,
2740
+ StateChangeReason: smithy_client_1._json,
2741
+ Timeline: (_) => de_InstanceTimeline(_, context),
2742
+ });
4302
2743
  };
4303
- const de_OnDemandResizingSpecification = (output, context) => {
4304
- return {
4305
- TimeoutDurationMinutes: (0, smithy_client_1.expectInt32)(output.TimeoutDurationMinutes),
4306
- };
2744
+ const de_InstanceTimeline = (output, context) => {
2745
+ return (0, smithy_client_1.take)(output, {
2746
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2747
+ EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2748
+ ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2749
+ });
4307
2750
  };
4308
- const de_OSRelease = (output, context) => {
4309
- return {
4310
- Label: (0, smithy_client_1.expectString)(output.Label),
4311
- };
2751
+ const de_InstanceTypeSpecification = (output, context) => {
2752
+ return (0, smithy_client_1.take)(output, {
2753
+ BidPrice: smithy_client_1.expectString,
2754
+ BidPriceAsPercentageOfOnDemandPrice: smithy_client_1.limitedParseDouble,
2755
+ Configurations: (_) => de_ConfigurationList(_, context),
2756
+ CustomAmiId: smithy_client_1.expectString,
2757
+ EbsBlockDevices: smithy_client_1._json,
2758
+ EbsOptimized: smithy_client_1.expectBoolean,
2759
+ InstanceType: smithy_client_1.expectString,
2760
+ WeightedCapacity: smithy_client_1.expectInt32,
2761
+ });
4312
2762
  };
4313
- const de_OSReleaseList = (output, context) => {
2763
+ const de_InstanceTypeSpecificationList = (output, context) => {
4314
2764
  const retVal = (output || [])
4315
2765
  .filter((e) => e != null)
4316
2766
  .map((entry) => {
4317
- if (entry === null) {
4318
- return null;
4319
- }
4320
- return de_OSRelease(entry, context);
2767
+ return de_InstanceTypeSpecification(entry, context);
4321
2768
  });
4322
2769
  return retVal;
4323
2770
  };
4324
- const de_PlacementGroupConfig = (output, context) => {
4325
- return {
4326
- InstanceRole: (0, smithy_client_1.expectString)(output.InstanceRole),
4327
- PlacementStrategy: (0, smithy_client_1.expectString)(output.PlacementStrategy),
4328
- };
2771
+ const de_JobFlowDetail = (output, context) => {
2772
+ return (0, smithy_client_1.take)(output, {
2773
+ AmiVersion: smithy_client_1.expectString,
2774
+ AutoScalingRole: smithy_client_1.expectString,
2775
+ BootstrapActions: smithy_client_1._json,
2776
+ ExecutionStatusDetail: (_) => de_JobFlowExecutionStatusDetail(_, context),
2777
+ Instances: (_) => de_JobFlowInstancesDetail(_, context),
2778
+ JobFlowId: smithy_client_1.expectString,
2779
+ JobFlowRole: smithy_client_1.expectString,
2780
+ LogEncryptionKmsKeyId: smithy_client_1.expectString,
2781
+ LogUri: smithy_client_1.expectString,
2782
+ Name: smithy_client_1.expectString,
2783
+ ScaleDownBehavior: smithy_client_1.expectString,
2784
+ ServiceRole: smithy_client_1.expectString,
2785
+ Steps: (_) => de_StepDetailList(_, context),
2786
+ SupportedProducts: smithy_client_1._json,
2787
+ VisibleToAllUsers: smithy_client_1.expectBoolean,
2788
+ });
4329
2789
  };
4330
- const de_PlacementGroupConfigList = (output, context) => {
2790
+ const de_JobFlowDetailList = (output, context) => {
4331
2791
  const retVal = (output || [])
4332
2792
  .filter((e) => e != null)
4333
2793
  .map((entry) => {
4334
- if (entry === null) {
4335
- return null;
4336
- }
4337
- return de_PlacementGroupConfig(entry, context);
2794
+ return de_JobFlowDetail(entry, context);
4338
2795
  });
4339
2796
  return retVal;
4340
2797
  };
4341
- const de_PlacementType = (output, context) => {
4342
- return {
4343
- AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
4344
- AvailabilityZones: output.AvailabilityZones != null ? de_XmlStringMaxLen256List(output.AvailabilityZones, context) : undefined,
4345
- };
2798
+ const de_JobFlowExecutionStatusDetail = (output, context) => {
2799
+ return (0, smithy_client_1.take)(output, {
2800
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2801
+ EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2802
+ LastStateChangeReason: smithy_client_1.expectString,
2803
+ ReadyDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2804
+ StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2805
+ State: smithy_client_1.expectString,
2806
+ });
4346
2807
  };
4347
- const de_PortRange = (output, context) => {
4348
- return {
4349
- MaxRange: (0, smithy_client_1.expectInt32)(output.MaxRange),
4350
- MinRange: (0, smithy_client_1.expectInt32)(output.MinRange),
4351
- };
2808
+ const de_JobFlowInstancesDetail = (output, context) => {
2809
+ return (0, smithy_client_1.take)(output, {
2810
+ Ec2KeyName: smithy_client_1.expectString,
2811
+ Ec2SubnetId: smithy_client_1.expectString,
2812
+ HadoopVersion: smithy_client_1.expectString,
2813
+ InstanceCount: smithy_client_1.expectInt32,
2814
+ InstanceGroups: (_) => de_InstanceGroupDetailList(_, context),
2815
+ KeepJobFlowAliveWhenNoSteps: smithy_client_1.expectBoolean,
2816
+ MasterInstanceId: smithy_client_1.expectString,
2817
+ MasterInstanceType: smithy_client_1.expectString,
2818
+ MasterPublicDnsName: smithy_client_1.expectString,
2819
+ NormalizedInstanceHours: smithy_client_1.expectInt32,
2820
+ Placement: smithy_client_1._json,
2821
+ SlaveInstanceType: smithy_client_1.expectString,
2822
+ TerminationProtected: smithy_client_1.expectBoolean,
2823
+ });
4352
2824
  };
4353
- const de_PortRanges = (output, context) => {
4354
- const retVal = (output || [])
4355
- .filter((e) => e != null)
4356
- .map((entry) => {
4357
- if (entry === null) {
4358
- return null;
4359
- }
4360
- return de_PortRange(entry, context);
2825
+ const de_ListClustersOutput = (output, context) => {
2826
+ return (0, smithy_client_1.take)(output, {
2827
+ Clusters: (_) => de_ClusterSummaryList(_, context),
2828
+ Marker: smithy_client_1.expectString,
4361
2829
  });
4362
- return retVal;
4363
2830
  };
4364
- const de_PutAutoScalingPolicyOutput = (output, context) => {
4365
- return {
4366
- AutoScalingPolicy: output.AutoScalingPolicy != null ? de_AutoScalingPolicyDescription(output.AutoScalingPolicy, context) : undefined,
4367
- ClusterArn: (0, smithy_client_1.expectString)(output.ClusterArn),
4368
- ClusterId: (0, smithy_client_1.expectString)(output.ClusterId),
4369
- InstanceGroupId: (0, smithy_client_1.expectString)(output.InstanceGroupId),
4370
- };
2831
+ const de_ListInstanceFleetsOutput = (output, context) => {
2832
+ return (0, smithy_client_1.take)(output, {
2833
+ InstanceFleets: (_) => de_InstanceFleetList(_, context),
2834
+ Marker: smithy_client_1.expectString,
2835
+ });
4371
2836
  };
4372
- const de_PutAutoTerminationPolicyOutput = (output, context) => {
4373
- return {};
2837
+ const de_ListInstanceGroupsOutput = (output, context) => {
2838
+ return (0, smithy_client_1.take)(output, {
2839
+ InstanceGroups: (_) => de_InstanceGroupList(_, context),
2840
+ Marker: smithy_client_1.expectString,
2841
+ });
4374
2842
  };
4375
- const de_PutBlockPublicAccessConfigurationOutput = (output, context) => {
4376
- return {};
2843
+ const de_ListInstancesOutput = (output, context) => {
2844
+ return (0, smithy_client_1.take)(output, {
2845
+ Instances: (_) => de_InstanceList(_, context),
2846
+ Marker: smithy_client_1.expectString,
2847
+ });
4377
2848
  };
4378
- const de_PutManagedScalingPolicyOutput = (output, context) => {
4379
- return {};
2849
+ const de_ListNotebookExecutionsOutput = (output, context) => {
2850
+ return (0, smithy_client_1.take)(output, {
2851
+ Marker: smithy_client_1.expectString,
2852
+ NotebookExecutions: (_) => de_NotebookExecutionSummaryList(_, context),
2853
+ });
4380
2854
  };
4381
- const de_RemoveAutoScalingPolicyOutput = (output, context) => {
4382
- return {};
2855
+ const de_ListSecurityConfigurationsOutput = (output, context) => {
2856
+ return (0, smithy_client_1.take)(output, {
2857
+ Marker: smithy_client_1.expectString,
2858
+ SecurityConfigurations: (_) => de_SecurityConfigurationList(_, context),
2859
+ });
4383
2860
  };
4384
- const de_RemoveAutoTerminationPolicyOutput = (output, context) => {
4385
- return {};
2861
+ const de_ListStepsOutput = (output, context) => {
2862
+ return (0, smithy_client_1.take)(output, {
2863
+ Marker: smithy_client_1.expectString,
2864
+ Steps: (_) => de_StepSummaryList(_, context),
2865
+ });
4386
2866
  };
4387
- const de_RemoveManagedScalingPolicyOutput = (output, context) => {
4388
- return {};
2867
+ const de_ListStudioSessionMappingsOutput = (output, context) => {
2868
+ return (0, smithy_client_1.take)(output, {
2869
+ Marker: smithy_client_1.expectString,
2870
+ SessionMappings: (_) => de_SessionMappingSummaryList(_, context),
2871
+ });
4389
2872
  };
4390
- const de_RemoveTagsOutput = (output, context) => {
4391
- return {};
2873
+ const de_ListStudiosOutput = (output, context) => {
2874
+ return (0, smithy_client_1.take)(output, {
2875
+ Marker: smithy_client_1.expectString,
2876
+ Studios: (_) => de_StudioSummaryList(_, context),
2877
+ });
4392
2878
  };
4393
- const de_RunJobFlowOutput = (output, context) => {
4394
- return {
4395
- ClusterArn: (0, smithy_client_1.expectString)(output.ClusterArn),
4396
- JobFlowId: (0, smithy_client_1.expectString)(output.JobFlowId),
4397
- };
2879
+ const de_NotebookExecution = (output, context) => {
2880
+ return (0, smithy_client_1.take)(output, {
2881
+ Arn: smithy_client_1.expectString,
2882
+ EditorId: smithy_client_1.expectString,
2883
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2884
+ ExecutionEngine: smithy_client_1._json,
2885
+ LastStateChangeReason: smithy_client_1.expectString,
2886
+ NotebookExecutionId: smithy_client_1.expectString,
2887
+ NotebookExecutionName: smithy_client_1.expectString,
2888
+ NotebookInstanceSecurityGroupId: smithy_client_1.expectString,
2889
+ NotebookParams: smithy_client_1.expectString,
2890
+ OutputNotebookURI: smithy_client_1.expectString,
2891
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2892
+ Status: smithy_client_1.expectString,
2893
+ Tags: smithy_client_1._json,
2894
+ });
4398
2895
  };
4399
- const de_ScalingAction = (output, context) => {
4400
- return {
4401
- Market: (0, smithy_client_1.expectString)(output.Market),
4402
- SimpleScalingPolicyConfiguration: output.SimpleScalingPolicyConfiguration != null
4403
- ? de_SimpleScalingPolicyConfiguration(output.SimpleScalingPolicyConfiguration, context)
4404
- : undefined,
4405
- };
2896
+ const de_NotebookExecutionSummary = (output, context) => {
2897
+ return (0, smithy_client_1.take)(output, {
2898
+ EditorId: smithy_client_1.expectString,
2899
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2900
+ NotebookExecutionId: smithy_client_1.expectString,
2901
+ NotebookExecutionName: smithy_client_1.expectString,
2902
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2903
+ Status: smithy_client_1.expectString,
2904
+ });
4406
2905
  };
4407
- const de_ScalingConstraints = (output, context) => {
4408
- return {
4409
- MaxCapacity: (0, smithy_client_1.expectInt32)(output.MaxCapacity),
4410
- MinCapacity: (0, smithy_client_1.expectInt32)(output.MinCapacity),
4411
- };
2906
+ const de_NotebookExecutionSummaryList = (output, context) => {
2907
+ const retVal = (output || [])
2908
+ .filter((e) => e != null)
2909
+ .map((entry) => {
2910
+ return de_NotebookExecutionSummary(entry, context);
2911
+ });
2912
+ return retVal;
2913
+ };
2914
+ const de_PutAutoScalingPolicyOutput = (output, context) => {
2915
+ return (0, smithy_client_1.take)(output, {
2916
+ AutoScalingPolicy: (_) => de_AutoScalingPolicyDescription(_, context),
2917
+ ClusterArn: smithy_client_1.expectString,
2918
+ ClusterId: smithy_client_1.expectString,
2919
+ InstanceGroupId: smithy_client_1.expectString,
2920
+ });
4412
2921
  };
4413
2922
  const de_ScalingRule = (output, context) => {
4414
- return {
4415
- Action: output.Action != null ? de_ScalingAction(output.Action, context) : undefined,
4416
- Description: (0, smithy_client_1.expectString)(output.Description),
4417
- Name: (0, smithy_client_1.expectString)(output.Name),
4418
- Trigger: output.Trigger != null ? de_ScalingTrigger(output.Trigger, context) : undefined,
4419
- };
2923
+ return (0, smithy_client_1.take)(output, {
2924
+ Action: smithy_client_1._json,
2925
+ Description: smithy_client_1.expectString,
2926
+ Name: smithy_client_1.expectString,
2927
+ Trigger: (_) => de_ScalingTrigger(_, context),
2928
+ });
4420
2929
  };
4421
2930
  const de_ScalingRuleList = (output, context) => {
4422
2931
  const retVal = (output || [])
4423
2932
  .filter((e) => e != null)
4424
2933
  .map((entry) => {
4425
- if (entry === null) {
4426
- return null;
4427
- }
4428
2934
  return de_ScalingRule(entry, context);
4429
2935
  });
4430
2936
  return retVal;
4431
2937
  };
4432
2938
  const de_ScalingTrigger = (output, context) => {
4433
- return {
4434
- CloudWatchAlarmDefinition: output.CloudWatchAlarmDefinition != null
4435
- ? de_CloudWatchAlarmDefinition(output.CloudWatchAlarmDefinition, context)
4436
- : undefined,
4437
- };
4438
- };
4439
- const de_ScriptBootstrapActionConfig = (output, context) => {
4440
- return {
4441
- Args: output.Args != null ? de_XmlStringList(output.Args, context) : undefined,
4442
- Path: (0, smithy_client_1.expectString)(output.Path),
4443
- };
2939
+ return (0, smithy_client_1.take)(output, {
2940
+ CloudWatchAlarmDefinition: (_) => de_CloudWatchAlarmDefinition(_, context),
2941
+ });
4444
2942
  };
4445
2943
  const de_SecurityConfigurationList = (output, context) => {
4446
2944
  const retVal = (output || [])
4447
2945
  .filter((e) => e != null)
4448
2946
  .map((entry) => {
4449
- if (entry === null) {
4450
- return null;
4451
- }
4452
2947
  return de_SecurityConfigurationSummary(entry, context);
4453
2948
  });
4454
2949
  return retVal;
4455
2950
  };
4456
2951
  const de_SecurityConfigurationSummary = (output, context) => {
4457
- return {
4458
- CreationDateTime: output.CreationDateTime != null
4459
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
4460
- : undefined,
4461
- Name: (0, smithy_client_1.expectString)(output.Name),
4462
- };
2952
+ return (0, smithy_client_1.take)(output, {
2953
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2954
+ Name: smithy_client_1.expectString,
2955
+ });
4463
2956
  };
4464
2957
  const de_SessionMappingDetail = (output, context) => {
4465
- return {
4466
- CreationTime: output.CreationTime != null
4467
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4468
- : undefined,
4469
- IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
4470
- IdentityName: (0, smithy_client_1.expectString)(output.IdentityName),
4471
- IdentityType: (0, smithy_client_1.expectString)(output.IdentityType),
4472
- LastModifiedTime: output.LastModifiedTime != null
4473
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4474
- : undefined,
4475
- SessionPolicyArn: (0, smithy_client_1.expectString)(output.SessionPolicyArn),
4476
- StudioId: (0, smithy_client_1.expectString)(output.StudioId),
4477
- };
2958
+ return (0, smithy_client_1.take)(output, {
2959
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2960
+ IdentityId: smithy_client_1.expectString,
2961
+ IdentityName: smithy_client_1.expectString,
2962
+ IdentityType: smithy_client_1.expectString,
2963
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2964
+ SessionPolicyArn: smithy_client_1.expectString,
2965
+ StudioId: smithy_client_1.expectString,
2966
+ });
4478
2967
  };
4479
2968
  const de_SessionMappingSummary = (output, context) => {
4480
- return {
4481
- CreationTime: output.CreationTime != null
4482
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4483
- : undefined,
4484
- IdentityId: (0, smithy_client_1.expectString)(output.IdentityId),
4485
- IdentityName: (0, smithy_client_1.expectString)(output.IdentityName),
4486
- IdentityType: (0, smithy_client_1.expectString)(output.IdentityType),
4487
- SessionPolicyArn: (0, smithy_client_1.expectString)(output.SessionPolicyArn),
4488
- StudioId: (0, smithy_client_1.expectString)(output.StudioId),
4489
- };
2969
+ return (0, smithy_client_1.take)(output, {
2970
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2971
+ IdentityId: smithy_client_1.expectString,
2972
+ IdentityName: smithy_client_1.expectString,
2973
+ IdentityType: smithy_client_1.expectString,
2974
+ SessionPolicyArn: smithy_client_1.expectString,
2975
+ StudioId: smithy_client_1.expectString,
2976
+ });
4490
2977
  };
4491
2978
  const de_SessionMappingSummaryList = (output, context) => {
4492
2979
  const retVal = (output || [])
4493
2980
  .filter((e) => e != null)
4494
2981
  .map((entry) => {
4495
- if (entry === null) {
4496
- return null;
4497
- }
4498
2982
  return de_SessionMappingSummary(entry, context);
4499
2983
  });
4500
2984
  return retVal;
4501
2985
  };
4502
- const de_ShrinkPolicy = (output, context) => {
4503
- return {
4504
- DecommissionTimeout: (0, smithy_client_1.expectInt32)(output.DecommissionTimeout),
4505
- InstanceResizePolicy: output.InstanceResizePolicy != null ? de_InstanceResizePolicy(output.InstanceResizePolicy, context) : undefined,
4506
- };
4507
- };
4508
- const de_SimpleScalingPolicyConfiguration = (output, context) => {
4509
- return {
4510
- AdjustmentType: (0, smithy_client_1.expectString)(output.AdjustmentType),
4511
- CoolDown: (0, smithy_client_1.expectInt32)(output.CoolDown),
4512
- ScalingAdjustment: (0, smithy_client_1.expectInt32)(output.ScalingAdjustment),
4513
- };
4514
- };
4515
- const de_SimplifiedApplication = (output, context) => {
4516
- return {
4517
- Name: (0, smithy_client_1.expectString)(output.Name),
4518
- Version: (0, smithy_client_1.expectString)(output.Version),
4519
- };
4520
- };
4521
- const de_SimplifiedApplicationList = (output, context) => {
4522
- const retVal = (output || [])
4523
- .filter((e) => e != null)
4524
- .map((entry) => {
4525
- if (entry === null) {
4526
- return null;
4527
- }
4528
- return de_SimplifiedApplication(entry, context);
4529
- });
4530
- return retVal;
4531
- };
4532
- const de_SpotProvisioningSpecification = (output, context) => {
4533
- return {
4534
- AllocationStrategy: (0, smithy_client_1.expectString)(output.AllocationStrategy),
4535
- BlockDurationMinutes: (0, smithy_client_1.expectInt32)(output.BlockDurationMinutes),
4536
- TimeoutAction: (0, smithy_client_1.expectString)(output.TimeoutAction),
4537
- TimeoutDurationMinutes: (0, smithy_client_1.expectInt32)(output.TimeoutDurationMinutes),
4538
- };
4539
- };
4540
- const de_SpotResizingSpecification = (output, context) => {
4541
- return {
4542
- TimeoutDurationMinutes: (0, smithy_client_1.expectInt32)(output.TimeoutDurationMinutes),
4543
- };
4544
- };
4545
- const de_StartNotebookExecutionOutput = (output, context) => {
4546
- return {
4547
- NotebookExecutionId: (0, smithy_client_1.expectString)(output.NotebookExecutionId),
4548
- };
4549
- };
4550
2986
  const de_Step = (output, context) => {
4551
- return {
4552
- ActionOnFailure: (0, smithy_client_1.expectString)(output.ActionOnFailure),
4553
- Config: output.Config != null ? de_HadoopStepConfig(output.Config, context) : undefined,
4554
- ExecutionRoleArn: (0, smithy_client_1.expectString)(output.ExecutionRoleArn),
4555
- Id: (0, smithy_client_1.expectString)(output.Id),
4556
- Name: (0, smithy_client_1.expectString)(output.Name),
4557
- Status: output.Status != null ? de_StepStatus(output.Status, context) : undefined,
4558
- };
4559
- };
4560
- const de_StepConfig = (output, context) => {
4561
- return {
4562
- ActionOnFailure: (0, smithy_client_1.expectString)(output.ActionOnFailure),
4563
- HadoopJarStep: output.HadoopJarStep != null ? de_HadoopJarStepConfig(output.HadoopJarStep, context) : undefined,
4564
- Name: (0, smithy_client_1.expectString)(output.Name),
4565
- };
2987
+ return (0, smithy_client_1.take)(output, {
2988
+ ActionOnFailure: smithy_client_1.expectString,
2989
+ Config: smithy_client_1._json,
2990
+ ExecutionRoleArn: smithy_client_1.expectString,
2991
+ Id: smithy_client_1.expectString,
2992
+ Name: smithy_client_1.expectString,
2993
+ Status: (_) => de_StepStatus(_, context),
2994
+ });
4566
2995
  };
4567
2996
  const de_StepDetail = (output, context) => {
4568
- return {
4569
- ExecutionStatusDetail: output.ExecutionStatusDetail != null
4570
- ? de_StepExecutionStatusDetail(output.ExecutionStatusDetail, context)
4571
- : undefined,
4572
- StepConfig: output.StepConfig != null ? de_StepConfig(output.StepConfig, context) : undefined,
4573
- };
2997
+ return (0, smithy_client_1.take)(output, {
2998
+ ExecutionStatusDetail: (_) => de_StepExecutionStatusDetail(_, context),
2999
+ StepConfig: smithy_client_1._json,
3000
+ });
4574
3001
  };
4575
3002
  const de_StepDetailList = (output, context) => {
4576
3003
  const retVal = (output || [])
4577
3004
  .filter((e) => e != null)
4578
3005
  .map((entry) => {
4579
- if (entry === null) {
4580
- return null;
4581
- }
4582
3006
  return de_StepDetail(entry, context);
4583
3007
  });
4584
3008
  return retVal;
4585
3009
  };
4586
3010
  const de_StepExecutionStatusDetail = (output, context) => {
4587
- return {
4588
- CreationDateTime: output.CreationDateTime != null
4589
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
4590
- : undefined,
4591
- EndDateTime: output.EndDateTime != null
4592
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
4593
- : undefined,
4594
- LastStateChangeReason: (0, smithy_client_1.expectString)(output.LastStateChangeReason),
4595
- StartDateTime: output.StartDateTime != null
4596
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDateTime)))
4597
- : undefined,
4598
- State: (0, smithy_client_1.expectString)(output.State),
4599
- };
4600
- };
4601
- const de_StepIdsList = (output, context) => {
4602
- const retVal = (output || [])
4603
- .filter((e) => e != null)
4604
- .map((entry) => {
4605
- if (entry === null) {
4606
- return null;
4607
- }
4608
- return (0, smithy_client_1.expectString)(entry);
3011
+ return (0, smithy_client_1.take)(output, {
3012
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3013
+ EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3014
+ LastStateChangeReason: smithy_client_1.expectString,
3015
+ StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3016
+ State: smithy_client_1.expectString,
4609
3017
  });
4610
- return retVal;
4611
- };
4612
- const de_StepStateChangeReason = (output, context) => {
4613
- return {
4614
- Code: (0, smithy_client_1.expectString)(output.Code),
4615
- Message: (0, smithy_client_1.expectString)(output.Message),
4616
- };
4617
3018
  };
4618
3019
  const de_StepStatus = (output, context) => {
4619
- return {
4620
- FailureDetails: output.FailureDetails != null ? de_FailureDetails(output.FailureDetails, context) : undefined,
4621
- State: (0, smithy_client_1.expectString)(output.State),
4622
- StateChangeReason: output.StateChangeReason != null ? de_StepStateChangeReason(output.StateChangeReason, context) : undefined,
4623
- Timeline: output.Timeline != null ? de_StepTimeline(output.Timeline, context) : undefined,
4624
- };
3020
+ return (0, smithy_client_1.take)(output, {
3021
+ FailureDetails: smithy_client_1._json,
3022
+ State: smithy_client_1.expectString,
3023
+ StateChangeReason: smithy_client_1._json,
3024
+ Timeline: (_) => de_StepTimeline(_, context),
3025
+ });
4625
3026
  };
4626
3027
  const de_StepSummary = (output, context) => {
4627
- return {
4628
- ActionOnFailure: (0, smithy_client_1.expectString)(output.ActionOnFailure),
4629
- Config: output.Config != null ? de_HadoopStepConfig(output.Config, context) : undefined,
4630
- Id: (0, smithy_client_1.expectString)(output.Id),
4631
- Name: (0, smithy_client_1.expectString)(output.Name),
4632
- Status: output.Status != null ? de_StepStatus(output.Status, context) : undefined,
4633
- };
3028
+ return (0, smithy_client_1.take)(output, {
3029
+ ActionOnFailure: smithy_client_1.expectString,
3030
+ Config: smithy_client_1._json,
3031
+ Id: smithy_client_1.expectString,
3032
+ Name: smithy_client_1.expectString,
3033
+ Status: (_) => de_StepStatus(_, context),
3034
+ });
4634
3035
  };
4635
3036
  const de_StepSummaryList = (output, context) => {
4636
3037
  const retVal = (output || [])
4637
3038
  .filter((e) => e != null)
4638
3039
  .map((entry) => {
4639
- if (entry === null) {
4640
- return null;
4641
- }
4642
3040
  return de_StepSummary(entry, context);
4643
3041
  });
4644
3042
  return retVal;
4645
3043
  };
4646
3044
  const de_StepTimeline = (output, context) => {
4647
- return {
4648
- CreationDateTime: output.CreationDateTime != null
4649
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDateTime)))
4650
- : undefined,
4651
- EndDateTime: output.EndDateTime != null
4652
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndDateTime)))
4653
- : undefined,
4654
- StartDateTime: output.StartDateTime != null
4655
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDateTime)))
4656
- : undefined,
4657
- };
4658
- };
4659
- const de_StringList = (output, context) => {
4660
- const retVal = (output || [])
4661
- .filter((e) => e != null)
4662
- .map((entry) => {
4663
- if (entry === null) {
4664
- return null;
4665
- }
4666
- return (0, smithy_client_1.expectString)(entry);
3045
+ return (0, smithy_client_1.take)(output, {
3046
+ CreationDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3047
+ EndDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3048
+ StartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4667
3049
  });
4668
- return retVal;
4669
- };
4670
- const de_StringMap = (output, context) => {
4671
- return Object.entries(output).reduce((acc, [key, value]) => {
4672
- if (value === null) {
4673
- return acc;
4674
- }
4675
- acc[key] = (0, smithy_client_1.expectString)(value);
4676
- return acc;
4677
- }, {});
4678
3050
  };
4679
3051
  const de_Studio = (output, context) => {
4680
- return {
4681
- AuthMode: (0, smithy_client_1.expectString)(output.AuthMode),
4682
- CreationTime: output.CreationTime != null
4683
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4684
- : undefined,
4685
- DefaultS3Location: (0, smithy_client_1.expectString)(output.DefaultS3Location),
4686
- Description: (0, smithy_client_1.expectString)(output.Description),
4687
- EngineSecurityGroupId: (0, smithy_client_1.expectString)(output.EngineSecurityGroupId),
4688
- IdpAuthUrl: (0, smithy_client_1.expectString)(output.IdpAuthUrl),
4689
- IdpRelayStateParameterName: (0, smithy_client_1.expectString)(output.IdpRelayStateParameterName),
4690
- Name: (0, smithy_client_1.expectString)(output.Name),
4691
- ServiceRole: (0, smithy_client_1.expectString)(output.ServiceRole),
4692
- StudioArn: (0, smithy_client_1.expectString)(output.StudioArn),
4693
- StudioId: (0, smithy_client_1.expectString)(output.StudioId),
4694
- SubnetIds: output.SubnetIds != null ? de_SubnetIdList(output.SubnetIds, context) : undefined,
4695
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4696
- Url: (0, smithy_client_1.expectString)(output.Url),
4697
- UserRole: (0, smithy_client_1.expectString)(output.UserRole),
4698
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
4699
- WorkspaceSecurityGroupId: (0, smithy_client_1.expectString)(output.WorkspaceSecurityGroupId),
4700
- };
3052
+ return (0, smithy_client_1.take)(output, {
3053
+ AuthMode: smithy_client_1.expectString,
3054
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3055
+ DefaultS3Location: smithy_client_1.expectString,
3056
+ Description: smithy_client_1.expectString,
3057
+ EngineSecurityGroupId: smithy_client_1.expectString,
3058
+ IdpAuthUrl: smithy_client_1.expectString,
3059
+ IdpRelayStateParameterName: smithy_client_1.expectString,
3060
+ Name: smithy_client_1.expectString,
3061
+ ServiceRole: smithy_client_1.expectString,
3062
+ StudioArn: smithy_client_1.expectString,
3063
+ StudioId: smithy_client_1.expectString,
3064
+ SubnetIds: smithy_client_1._json,
3065
+ Tags: smithy_client_1._json,
3066
+ Url: smithy_client_1.expectString,
3067
+ UserRole: smithy_client_1.expectString,
3068
+ VpcId: smithy_client_1.expectString,
3069
+ WorkspaceSecurityGroupId: smithy_client_1.expectString,
3070
+ });
4701
3071
  };
4702
3072
  const de_StudioSummary = (output, context) => {
4703
- return {
4704
- AuthMode: (0, smithy_client_1.expectString)(output.AuthMode),
4705
- CreationTime: output.CreationTime != null
4706
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
4707
- : undefined,
4708
- Description: (0, smithy_client_1.expectString)(output.Description),
4709
- Name: (0, smithy_client_1.expectString)(output.Name),
4710
- StudioId: (0, smithy_client_1.expectString)(output.StudioId),
4711
- Url: (0, smithy_client_1.expectString)(output.Url),
4712
- VpcId: (0, smithy_client_1.expectString)(output.VpcId),
4713
- };
3073
+ return (0, smithy_client_1.take)(output, {
3074
+ AuthMode: smithy_client_1.expectString,
3075
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3076
+ Description: smithy_client_1.expectString,
3077
+ Name: smithy_client_1.expectString,
3078
+ StudioId: smithy_client_1.expectString,
3079
+ Url: smithy_client_1.expectString,
3080
+ VpcId: smithy_client_1.expectString,
3081
+ });
4714
3082
  };
4715
3083
  const de_StudioSummaryList = (output, context) => {
4716
3084
  const retVal = (output || [])
4717
3085
  .filter((e) => e != null)
4718
3086
  .map((entry) => {
4719
- if (entry === null) {
4720
- return null;
4721
- }
4722
3087
  return de_StudioSummary(entry, context);
4723
3088
  });
4724
3089
  return retVal;
4725
3090
  };
4726
- const de_SubnetIdList = (output, context) => {
4727
- const retVal = (output || [])
4728
- .filter((e) => e != null)
4729
- .map((entry) => {
4730
- if (entry === null) {
4731
- return null;
4732
- }
4733
- return (0, smithy_client_1.expectString)(entry);
4734
- });
4735
- return retVal;
4736
- };
4737
- const de_SupportedProductsList = (output, context) => {
4738
- const retVal = (output || [])
4739
- .filter((e) => e != null)
4740
- .map((entry) => {
4741
- if (entry === null) {
4742
- return null;
4743
- }
4744
- return (0, smithy_client_1.expectString)(entry);
4745
- });
4746
- return retVal;
4747
- };
4748
- const de_Tag = (output, context) => {
4749
- return {
4750
- Key: (0, smithy_client_1.expectString)(output.Key),
4751
- Value: (0, smithy_client_1.expectString)(output.Value),
4752
- };
4753
- };
4754
- const de_TagList = (output, context) => {
4755
- const retVal = (output || [])
4756
- .filter((e) => e != null)
4757
- .map((entry) => {
4758
- if (entry === null) {
4759
- return null;
4760
- }
4761
- return de_Tag(entry, context);
4762
- });
4763
- return retVal;
4764
- };
4765
- const de_UsernamePassword = (output, context) => {
4766
- return {
4767
- Password: (0, smithy_client_1.expectString)(output.Password),
4768
- Username: (0, smithy_client_1.expectString)(output.Username),
4769
- };
4770
- };
4771
- const de_VolumeSpecification = (output, context) => {
4772
- return {
4773
- Iops: (0, smithy_client_1.expectInt32)(output.Iops),
4774
- SizeInGB: (0, smithy_client_1.expectInt32)(output.SizeInGB),
4775
- Throughput: (0, smithy_client_1.expectInt32)(output.Throughput),
4776
- VolumeType: (0, smithy_client_1.expectString)(output.VolumeType),
4777
- };
4778
- };
4779
- const de_XmlStringList = (output, context) => {
4780
- const retVal = (output || [])
4781
- .filter((e) => e != null)
4782
- .map((entry) => {
4783
- if (entry === null) {
4784
- return null;
4785
- }
4786
- return (0, smithy_client_1.expectString)(entry);
4787
- });
4788
- return retVal;
4789
- };
4790
- const de_XmlStringMaxLen256List = (output, context) => {
4791
- const retVal = (output || [])
4792
- .filter((e) => e != null)
4793
- .map((entry) => {
4794
- if (entry === null) {
4795
- return null;
4796
- }
4797
- return (0, smithy_client_1.expectString)(entry);
4798
- });
4799
- return retVal;
4800
- };
4801
3091
  const deserializeMetadata = (output) => ({
4802
3092
  httpStatusCode: output.statusCode,
4803
3093
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -4811,6 +3101,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
4811
3101
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4812
3102
  };
4813
3103
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3104
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(EMRServiceException_1.EMRServiceException);
4814
3105
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4815
3106
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4816
3107
  const contents = {