@aws-sdk/client-emr 3.927.0 → 3.928.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist-cjs/index.js +2335 -2621
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/EMRClient.js +2 -0
  4. package/dist-es/commands/AddInstanceFleetCommand.js +3 -9
  5. package/dist-es/commands/AddInstanceGroupsCommand.js +3 -9
  6. package/dist-es/commands/AddJobFlowStepsCommand.js +3 -9
  7. package/dist-es/commands/AddTagsCommand.js +3 -9
  8. package/dist-es/commands/CancelStepsCommand.js +3 -9
  9. package/dist-es/commands/CreatePersistentAppUICommand.js +3 -9
  10. package/dist-es/commands/CreateSecurityConfigurationCommand.js +3 -9
  11. package/dist-es/commands/CreateStudioCommand.js +3 -9
  12. package/dist-es/commands/CreateStudioSessionMappingCommand.js +3 -9
  13. package/dist-es/commands/DeleteSecurityConfigurationCommand.js +3 -9
  14. package/dist-es/commands/DeleteStudioCommand.js +3 -9
  15. package/dist-es/commands/DeleteStudioSessionMappingCommand.js +3 -9
  16. package/dist-es/commands/DescribeClusterCommand.js +3 -9
  17. package/dist-es/commands/DescribeJobFlowsCommand.js +3 -9
  18. package/dist-es/commands/DescribeNotebookExecutionCommand.js +3 -9
  19. package/dist-es/commands/DescribePersistentAppUICommand.js +3 -9
  20. package/dist-es/commands/DescribeReleaseLabelCommand.js +3 -9
  21. package/dist-es/commands/DescribeSecurityConfigurationCommand.js +3 -9
  22. package/dist-es/commands/DescribeStepCommand.js +3 -9
  23. package/dist-es/commands/DescribeStudioCommand.js +3 -9
  24. package/dist-es/commands/GetAutoTerminationPolicyCommand.js +3 -9
  25. package/dist-es/commands/GetBlockPublicAccessConfigurationCommand.js +3 -9
  26. package/dist-es/commands/GetClusterSessionCredentialsCommand.js +3 -10
  27. package/dist-es/commands/GetManagedScalingPolicyCommand.js +3 -9
  28. package/dist-es/commands/GetOnClusterAppUIPresignedURLCommand.js +3 -9
  29. package/dist-es/commands/GetPersistentAppUIPresignedURLCommand.js +3 -9
  30. package/dist-es/commands/GetStudioSessionMappingCommand.js +3 -9
  31. package/dist-es/commands/ListBootstrapActionsCommand.js +3 -9
  32. package/dist-es/commands/ListClustersCommand.js +3 -9
  33. package/dist-es/commands/ListInstanceFleetsCommand.js +3 -9
  34. package/dist-es/commands/ListInstanceGroupsCommand.js +3 -9
  35. package/dist-es/commands/ListInstancesCommand.js +3 -9
  36. package/dist-es/commands/ListNotebookExecutionsCommand.js +3 -9
  37. package/dist-es/commands/ListReleaseLabelsCommand.js +3 -9
  38. package/dist-es/commands/ListSecurityConfigurationsCommand.js +3 -9
  39. package/dist-es/commands/ListStepsCommand.js +3 -9
  40. package/dist-es/commands/ListStudioSessionMappingsCommand.js +3 -9
  41. package/dist-es/commands/ListStudiosCommand.js +3 -9
  42. package/dist-es/commands/ListSupportedInstanceTypesCommand.js +3 -9
  43. package/dist-es/commands/ModifyClusterCommand.js +3 -9
  44. package/dist-es/commands/ModifyInstanceFleetCommand.js +3 -9
  45. package/dist-es/commands/ModifyInstanceGroupsCommand.js +3 -9
  46. package/dist-es/commands/PutAutoScalingPolicyCommand.js +3 -9
  47. package/dist-es/commands/PutAutoTerminationPolicyCommand.js +3 -9
  48. package/dist-es/commands/PutBlockPublicAccessConfigurationCommand.js +3 -9
  49. package/dist-es/commands/PutManagedScalingPolicyCommand.js +3 -9
  50. package/dist-es/commands/RemoveAutoScalingPolicyCommand.js +3 -9
  51. package/dist-es/commands/RemoveAutoTerminationPolicyCommand.js +3 -9
  52. package/dist-es/commands/RemoveManagedScalingPolicyCommand.js +3 -9
  53. package/dist-es/commands/RemoveTagsCommand.js +3 -9
  54. package/dist-es/commands/RunJobFlowCommand.js +3 -9
  55. package/dist-es/commands/SetKeepJobFlowAliveWhenNoStepsCommand.js +3 -9
  56. package/dist-es/commands/SetTerminationProtectionCommand.js +3 -9
  57. package/dist-es/commands/SetUnhealthyNodeReplacementCommand.js +3 -9
  58. package/dist-es/commands/SetVisibleToAllUsersCommand.js +3 -9
  59. package/dist-es/commands/StartNotebookExecutionCommand.js +3 -9
  60. package/dist-es/commands/StopNotebookExecutionCommand.js +3 -9
  61. package/dist-es/commands/TerminateJobFlowsCommand.js +3 -9
  62. package/dist-es/commands/UpdateStudioCommand.js +3 -9
  63. package/dist-es/commands/UpdateStudioSessionMappingCommand.js +3 -9
  64. package/dist-es/models/models_0.js +0 -14
  65. package/dist-es/runtimeConfig.shared.js +7 -0
  66. package/dist-es/schemas/schemas_0.js +2223 -0
  67. package/dist-types/EMRClient.d.ts +10 -1
  68. package/dist-types/models/models_0.d.ts +0 -12
  69. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  70. package/dist-types/runtimeConfig.d.ts +1 -0
  71. package/dist-types/runtimeConfig.native.d.ts +1 -0
  72. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  73. package/dist-types/schemas/schemas_0.d.ts +335 -0
  74. package/dist-types/ts3.4/EMRClient.d.ts +4 -0
  75. package/dist-types/ts3.4/models/models_0.d.ts +0 -7
  76. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  77. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  78. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  79. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  80. package/dist-types/ts3.4/schemas/schemas_0.d.ts +340 -0
  81. package/package.json +5 -5
  82. package/dist-es/protocols/Aws_json1_1.js +0 -2180
  83. package/dist-types/protocols/Aws_json1_1.d.ts +0 -542
  84. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -725
@@ -1,2180 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
- import { EMRServiceException as __BaseException } from "../models/EMRServiceException";
5
- import { InternalServerError, InternalServerException, InvalidRequestException, } from "../models/models_0";
6
- export const se_AddInstanceFleetCommand = async (input, context) => {
7
- const headers = sharedHeaders("AddInstanceFleet");
8
- let body;
9
- body = JSON.stringify(se_AddInstanceFleetInput(input, context));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_AddInstanceGroupsCommand = async (input, context) => {
13
- const headers = sharedHeaders("AddInstanceGroups");
14
- let body;
15
- body = JSON.stringify(se_AddInstanceGroupsInput(input, context));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_AddJobFlowStepsCommand = async (input, context) => {
19
- const headers = sharedHeaders("AddJobFlowSteps");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_AddTagsCommand = async (input, context) => {
25
- const headers = sharedHeaders("AddTags");
26
- let body;
27
- body = JSON.stringify(_json(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_CancelStepsCommand = async (input, context) => {
31
- const headers = sharedHeaders("CancelSteps");
32
- let body;
33
- body = JSON.stringify(_json(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_CreatePersistentAppUICommand = async (input, context) => {
37
- const headers = sharedHeaders("CreatePersistentAppUI");
38
- let body;
39
- body = JSON.stringify(_json(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- export const se_CreateSecurityConfigurationCommand = async (input, context) => {
43
- const headers = sharedHeaders("CreateSecurityConfiguration");
44
- let body;
45
- body = JSON.stringify(_json(input));
46
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
- };
48
- export const se_CreateStudioCommand = async (input, context) => {
49
- const headers = sharedHeaders("CreateStudio");
50
- let body;
51
- body = JSON.stringify(_json(input));
52
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
- };
54
- export const se_CreateStudioSessionMappingCommand = async (input, context) => {
55
- const headers = sharedHeaders("CreateStudioSessionMapping");
56
- let body;
57
- body = JSON.stringify(_json(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- export const se_DeleteSecurityConfigurationCommand = async (input, context) => {
61
- const headers = sharedHeaders("DeleteSecurityConfiguration");
62
- let body;
63
- body = JSON.stringify(_json(input));
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_DeleteStudioCommand = async (input, context) => {
67
- const headers = sharedHeaders("DeleteStudio");
68
- let body;
69
- body = JSON.stringify(_json(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- export const se_DeleteStudioSessionMappingCommand = async (input, context) => {
73
- const headers = sharedHeaders("DeleteStudioSessionMapping");
74
- let body;
75
- body = JSON.stringify(_json(input));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- export const se_DescribeClusterCommand = async (input, context) => {
79
- const headers = sharedHeaders("DescribeCluster");
80
- let body;
81
- body = JSON.stringify(_json(input));
82
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
- };
84
- export const se_DescribeJobFlowsCommand = async (input, context) => {
85
- const headers = sharedHeaders("DescribeJobFlows");
86
- let body;
87
- body = JSON.stringify(se_DescribeJobFlowsInput(input, context));
88
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
- };
90
- export const se_DescribeNotebookExecutionCommand = async (input, context) => {
91
- const headers = sharedHeaders("DescribeNotebookExecution");
92
- let body;
93
- body = JSON.stringify(_json(input));
94
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
- };
96
- export const se_DescribePersistentAppUICommand = async (input, context) => {
97
- const headers = sharedHeaders("DescribePersistentAppUI");
98
- let body;
99
- body = JSON.stringify(_json(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- export const se_DescribeReleaseLabelCommand = async (input, context) => {
103
- const headers = sharedHeaders("DescribeReleaseLabel");
104
- let body;
105
- body = JSON.stringify(_json(input));
106
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
- };
108
- export const se_DescribeSecurityConfigurationCommand = async (input, context) => {
109
- const headers = sharedHeaders("DescribeSecurityConfiguration");
110
- let body;
111
- body = JSON.stringify(_json(input));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- export const se_DescribeStepCommand = async (input, context) => {
115
- const headers = sharedHeaders("DescribeStep");
116
- let body;
117
- body = JSON.stringify(_json(input));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- export const se_DescribeStudioCommand = async (input, context) => {
121
- const headers = sharedHeaders("DescribeStudio");
122
- let body;
123
- body = JSON.stringify(_json(input));
124
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
- };
126
- export const se_GetAutoTerminationPolicyCommand = async (input, context) => {
127
- const headers = sharedHeaders("GetAutoTerminationPolicy");
128
- let body;
129
- body = JSON.stringify(_json(input));
130
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
- };
132
- export const se_GetBlockPublicAccessConfigurationCommand = async (input, context) => {
133
- const headers = sharedHeaders("GetBlockPublicAccessConfiguration");
134
- let body;
135
- body = JSON.stringify(_json(input));
136
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
- };
138
- export const se_GetClusterSessionCredentialsCommand = async (input, context) => {
139
- const headers = sharedHeaders("GetClusterSessionCredentials");
140
- let body;
141
- body = JSON.stringify(_json(input));
142
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
- };
144
- export const se_GetManagedScalingPolicyCommand = async (input, context) => {
145
- const headers = sharedHeaders("GetManagedScalingPolicy");
146
- let body;
147
- body = JSON.stringify(_json(input));
148
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
- };
150
- export const se_GetOnClusterAppUIPresignedURLCommand = async (input, context) => {
151
- const headers = sharedHeaders("GetOnClusterAppUIPresignedURL");
152
- let body;
153
- body = JSON.stringify(_json(input));
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- export const se_GetPersistentAppUIPresignedURLCommand = async (input, context) => {
157
- const headers = sharedHeaders("GetPersistentAppUIPresignedURL");
158
- let body;
159
- body = JSON.stringify(_json(input));
160
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
- };
162
- export const se_GetStudioSessionMappingCommand = async (input, context) => {
163
- const headers = sharedHeaders("GetStudioSessionMapping");
164
- let body;
165
- body = JSON.stringify(_json(input));
166
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
- };
168
- export const se_ListBootstrapActionsCommand = async (input, context) => {
169
- const headers = sharedHeaders("ListBootstrapActions");
170
- let body;
171
- body = JSON.stringify(_json(input));
172
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
- };
174
- export const se_ListClustersCommand = async (input, context) => {
175
- const headers = sharedHeaders("ListClusters");
176
- let body;
177
- body = JSON.stringify(se_ListClustersInput(input, context));
178
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
- };
180
- export const se_ListInstanceFleetsCommand = async (input, context) => {
181
- const headers = sharedHeaders("ListInstanceFleets");
182
- let body;
183
- body = JSON.stringify(_json(input));
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- export const se_ListInstanceGroupsCommand = async (input, context) => {
187
- const headers = sharedHeaders("ListInstanceGroups");
188
- let body;
189
- body = JSON.stringify(_json(input));
190
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
- };
192
- export const se_ListInstancesCommand = async (input, context) => {
193
- const headers = sharedHeaders("ListInstances");
194
- let body;
195
- body = JSON.stringify(_json(input));
196
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
- };
198
- export const se_ListNotebookExecutionsCommand = async (input, context) => {
199
- const headers = sharedHeaders("ListNotebookExecutions");
200
- let body;
201
- body = JSON.stringify(se_ListNotebookExecutionsInput(input, context));
202
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
- };
204
- export const se_ListReleaseLabelsCommand = async (input, context) => {
205
- const headers = sharedHeaders("ListReleaseLabels");
206
- let body;
207
- body = JSON.stringify(_json(input));
208
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
- };
210
- export const se_ListSecurityConfigurationsCommand = async (input, context) => {
211
- const headers = sharedHeaders("ListSecurityConfigurations");
212
- let body;
213
- body = JSON.stringify(_json(input));
214
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
- };
216
- export const se_ListStepsCommand = async (input, context) => {
217
- const headers = sharedHeaders("ListSteps");
218
- let body;
219
- body = JSON.stringify(_json(input));
220
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
- };
222
- export const se_ListStudiosCommand = async (input, context) => {
223
- const headers = sharedHeaders("ListStudios");
224
- let body;
225
- body = JSON.stringify(_json(input));
226
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
- };
228
- export const se_ListStudioSessionMappingsCommand = async (input, context) => {
229
- const headers = sharedHeaders("ListStudioSessionMappings");
230
- let body;
231
- body = JSON.stringify(_json(input));
232
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
- };
234
- export const se_ListSupportedInstanceTypesCommand = async (input, context) => {
235
- const headers = sharedHeaders("ListSupportedInstanceTypes");
236
- let body;
237
- body = JSON.stringify(_json(input));
238
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
- };
240
- export const se_ModifyClusterCommand = async (input, context) => {
241
- const headers = sharedHeaders("ModifyCluster");
242
- let body;
243
- body = JSON.stringify(_json(input));
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- export const se_ModifyInstanceFleetCommand = async (input, context) => {
247
- const headers = sharedHeaders("ModifyInstanceFleet");
248
- let body;
249
- body = JSON.stringify(se_ModifyInstanceFleetInput(input, context));
250
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
- };
252
- export const se_ModifyInstanceGroupsCommand = async (input, context) => {
253
- const headers = sharedHeaders("ModifyInstanceGroups");
254
- let body;
255
- body = JSON.stringify(se_ModifyInstanceGroupsInput(input, context));
256
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
- };
258
- export const se_PutAutoScalingPolicyCommand = async (input, context) => {
259
- const headers = sharedHeaders("PutAutoScalingPolicy");
260
- let body;
261
- body = JSON.stringify(se_PutAutoScalingPolicyInput(input, context));
262
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
- };
264
- export const se_PutAutoTerminationPolicyCommand = async (input, context) => {
265
- const headers = sharedHeaders("PutAutoTerminationPolicy");
266
- let body;
267
- body = JSON.stringify(_json(input));
268
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
- };
270
- export const se_PutBlockPublicAccessConfigurationCommand = async (input, context) => {
271
- const headers = sharedHeaders("PutBlockPublicAccessConfiguration");
272
- let body;
273
- body = JSON.stringify(se_PutBlockPublicAccessConfigurationInput(input, context));
274
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
- };
276
- export const se_PutManagedScalingPolicyCommand = async (input, context) => {
277
- const headers = sharedHeaders("PutManagedScalingPolicy");
278
- let body;
279
- body = JSON.stringify(_json(input));
280
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
- };
282
- export const se_RemoveAutoScalingPolicyCommand = async (input, context) => {
283
- const headers = sharedHeaders("RemoveAutoScalingPolicy");
284
- let body;
285
- body = JSON.stringify(_json(input));
286
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
- };
288
- export const se_RemoveAutoTerminationPolicyCommand = async (input, context) => {
289
- const headers = sharedHeaders("RemoveAutoTerminationPolicy");
290
- let body;
291
- body = JSON.stringify(_json(input));
292
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
- };
294
- export const se_RemoveManagedScalingPolicyCommand = async (input, context) => {
295
- const headers = sharedHeaders("RemoveManagedScalingPolicy");
296
- let body;
297
- body = JSON.stringify(_json(input));
298
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
- };
300
- export const se_RemoveTagsCommand = async (input, context) => {
301
- const headers = sharedHeaders("RemoveTags");
302
- let body;
303
- body = JSON.stringify(_json(input));
304
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
- };
306
- export const se_RunJobFlowCommand = async (input, context) => {
307
- const headers = sharedHeaders("RunJobFlow");
308
- let body;
309
- body = JSON.stringify(se_RunJobFlowInput(input, context));
310
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
- };
312
- export const se_SetKeepJobFlowAliveWhenNoStepsCommand = async (input, context) => {
313
- const headers = sharedHeaders("SetKeepJobFlowAliveWhenNoSteps");
314
- let body;
315
- body = JSON.stringify(_json(input));
316
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
- };
318
- export const se_SetTerminationProtectionCommand = async (input, context) => {
319
- const headers = sharedHeaders("SetTerminationProtection");
320
- let body;
321
- body = JSON.stringify(_json(input));
322
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
- };
324
- export const se_SetUnhealthyNodeReplacementCommand = async (input, context) => {
325
- const headers = sharedHeaders("SetUnhealthyNodeReplacement");
326
- let body;
327
- body = JSON.stringify(_json(input));
328
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
- };
330
- export const se_SetVisibleToAllUsersCommand = async (input, context) => {
331
- const headers = sharedHeaders("SetVisibleToAllUsers");
332
- let body;
333
- body = JSON.stringify(_json(input));
334
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
- };
336
- export const se_StartNotebookExecutionCommand = async (input, context) => {
337
- const headers = sharedHeaders("StartNotebookExecution");
338
- let body;
339
- body = JSON.stringify(_json(input));
340
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
- };
342
- export const se_StopNotebookExecutionCommand = async (input, context) => {
343
- const headers = sharedHeaders("StopNotebookExecution");
344
- let body;
345
- body = JSON.stringify(_json(input));
346
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
- };
348
- export const se_TerminateJobFlowsCommand = async (input, context) => {
349
- const headers = sharedHeaders("TerminateJobFlows");
350
- let body;
351
- body = JSON.stringify(_json(input));
352
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
- };
354
- export const se_UpdateStudioCommand = async (input, context) => {
355
- const headers = sharedHeaders("UpdateStudio");
356
- let body;
357
- body = JSON.stringify(_json(input));
358
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
- };
360
- export const se_UpdateStudioSessionMappingCommand = async (input, context) => {
361
- const headers = sharedHeaders("UpdateStudioSessionMapping");
362
- let body;
363
- body = JSON.stringify(_json(input));
364
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
- };
366
- export const de_AddInstanceFleetCommand = async (output, context) => {
367
- if (output.statusCode >= 300) {
368
- return de_CommandError(output, context);
369
- }
370
- const data = await parseBody(output.body, context);
371
- let contents = {};
372
- contents = _json(data);
373
- const response = {
374
- $metadata: deserializeMetadata(output),
375
- ...contents,
376
- };
377
- return response;
378
- };
379
- export const de_AddInstanceGroupsCommand = async (output, context) => {
380
- if (output.statusCode >= 300) {
381
- return de_CommandError(output, context);
382
- }
383
- const data = await parseBody(output.body, context);
384
- let contents = {};
385
- contents = _json(data);
386
- const response = {
387
- $metadata: deserializeMetadata(output),
388
- ...contents,
389
- };
390
- return response;
391
- };
392
- export const de_AddJobFlowStepsCommand = async (output, context) => {
393
- if (output.statusCode >= 300) {
394
- return de_CommandError(output, context);
395
- }
396
- const data = await parseBody(output.body, context);
397
- let contents = {};
398
- contents = _json(data);
399
- const response = {
400
- $metadata: deserializeMetadata(output),
401
- ...contents,
402
- };
403
- return response;
404
- };
405
- export const de_AddTagsCommand = async (output, context) => {
406
- if (output.statusCode >= 300) {
407
- return de_CommandError(output, context);
408
- }
409
- const data = await parseBody(output.body, context);
410
- let contents = {};
411
- contents = _json(data);
412
- const response = {
413
- $metadata: deserializeMetadata(output),
414
- ...contents,
415
- };
416
- return response;
417
- };
418
- export const de_CancelStepsCommand = async (output, context) => {
419
- if (output.statusCode >= 300) {
420
- return de_CommandError(output, context);
421
- }
422
- const data = await parseBody(output.body, context);
423
- let contents = {};
424
- contents = _json(data);
425
- const response = {
426
- $metadata: deserializeMetadata(output),
427
- ...contents,
428
- };
429
- return response;
430
- };
431
- export const de_CreatePersistentAppUICommand = async (output, context) => {
432
- if (output.statusCode >= 300) {
433
- return de_CommandError(output, context);
434
- }
435
- const data = await parseBody(output.body, context);
436
- let contents = {};
437
- contents = _json(data);
438
- const response = {
439
- $metadata: deserializeMetadata(output),
440
- ...contents,
441
- };
442
- return response;
443
- };
444
- export const de_CreateSecurityConfigurationCommand = async (output, context) => {
445
- if (output.statusCode >= 300) {
446
- return de_CommandError(output, context);
447
- }
448
- const data = await parseBody(output.body, context);
449
- let contents = {};
450
- contents = de_CreateSecurityConfigurationOutput(data, context);
451
- const response = {
452
- $metadata: deserializeMetadata(output),
453
- ...contents,
454
- };
455
- return response;
456
- };
457
- export const de_CreateStudioCommand = async (output, context) => {
458
- if (output.statusCode >= 300) {
459
- return de_CommandError(output, context);
460
- }
461
- const data = await parseBody(output.body, context);
462
- let contents = {};
463
- contents = _json(data);
464
- const response = {
465
- $metadata: deserializeMetadata(output),
466
- ...contents,
467
- };
468
- return response;
469
- };
470
- export const de_CreateStudioSessionMappingCommand = async (output, context) => {
471
- if (output.statusCode >= 300) {
472
- return de_CommandError(output, context);
473
- }
474
- await collectBody(output.body, context);
475
- const response = {
476
- $metadata: deserializeMetadata(output),
477
- };
478
- return response;
479
- };
480
- export const de_DeleteSecurityConfigurationCommand = async (output, context) => {
481
- if (output.statusCode >= 300) {
482
- return de_CommandError(output, context);
483
- }
484
- const data = await parseBody(output.body, context);
485
- let contents = {};
486
- contents = _json(data);
487
- const response = {
488
- $metadata: deserializeMetadata(output),
489
- ...contents,
490
- };
491
- return response;
492
- };
493
- export const de_DeleteStudioCommand = async (output, context) => {
494
- if (output.statusCode >= 300) {
495
- return de_CommandError(output, context);
496
- }
497
- await collectBody(output.body, context);
498
- const response = {
499
- $metadata: deserializeMetadata(output),
500
- };
501
- return response;
502
- };
503
- export const de_DeleteStudioSessionMappingCommand = async (output, context) => {
504
- if (output.statusCode >= 300) {
505
- return de_CommandError(output, context);
506
- }
507
- await collectBody(output.body, context);
508
- const response = {
509
- $metadata: deserializeMetadata(output),
510
- };
511
- return response;
512
- };
513
- export const de_DescribeClusterCommand = async (output, context) => {
514
- if (output.statusCode >= 300) {
515
- return de_CommandError(output, context);
516
- }
517
- const data = await parseBody(output.body, context);
518
- let contents = {};
519
- contents = de_DescribeClusterOutput(data, context);
520
- const response = {
521
- $metadata: deserializeMetadata(output),
522
- ...contents,
523
- };
524
- return response;
525
- };
526
- export const de_DescribeJobFlowsCommand = async (output, context) => {
527
- if (output.statusCode >= 300) {
528
- return de_CommandError(output, context);
529
- }
530
- const data = await parseBody(output.body, context);
531
- let contents = {};
532
- contents = de_DescribeJobFlowsOutput(data, context);
533
- const response = {
534
- $metadata: deserializeMetadata(output),
535
- ...contents,
536
- };
537
- return response;
538
- };
539
- export const de_DescribeNotebookExecutionCommand = async (output, context) => {
540
- if (output.statusCode >= 300) {
541
- return de_CommandError(output, context);
542
- }
543
- const data = await parseBody(output.body, context);
544
- let contents = {};
545
- contents = de_DescribeNotebookExecutionOutput(data, context);
546
- const response = {
547
- $metadata: deserializeMetadata(output),
548
- ...contents,
549
- };
550
- return response;
551
- };
552
- export const de_DescribePersistentAppUICommand = async (output, context) => {
553
- if (output.statusCode >= 300) {
554
- return de_CommandError(output, context);
555
- }
556
- const data = await parseBody(output.body, context);
557
- let contents = {};
558
- contents = de_DescribePersistentAppUIOutput(data, context);
559
- const response = {
560
- $metadata: deserializeMetadata(output),
561
- ...contents,
562
- };
563
- return response;
564
- };
565
- export const de_DescribeReleaseLabelCommand = async (output, context) => {
566
- if (output.statusCode >= 300) {
567
- return de_CommandError(output, context);
568
- }
569
- const data = await parseBody(output.body, context);
570
- let contents = {};
571
- contents = _json(data);
572
- const response = {
573
- $metadata: deserializeMetadata(output),
574
- ...contents,
575
- };
576
- return response;
577
- };
578
- export const de_DescribeSecurityConfigurationCommand = async (output, context) => {
579
- if (output.statusCode >= 300) {
580
- return de_CommandError(output, context);
581
- }
582
- const data = await parseBody(output.body, context);
583
- let contents = {};
584
- contents = de_DescribeSecurityConfigurationOutput(data, context);
585
- const response = {
586
- $metadata: deserializeMetadata(output),
587
- ...contents,
588
- };
589
- return response;
590
- };
591
- export const de_DescribeStepCommand = async (output, context) => {
592
- if (output.statusCode >= 300) {
593
- return de_CommandError(output, context);
594
- }
595
- const data = await parseBody(output.body, context);
596
- let contents = {};
597
- contents = de_DescribeStepOutput(data, context);
598
- const response = {
599
- $metadata: deserializeMetadata(output),
600
- ...contents,
601
- };
602
- return response;
603
- };
604
- export const de_DescribeStudioCommand = async (output, context) => {
605
- if (output.statusCode >= 300) {
606
- return de_CommandError(output, context);
607
- }
608
- const data = await parseBody(output.body, context);
609
- let contents = {};
610
- contents = de_DescribeStudioOutput(data, context);
611
- const response = {
612
- $metadata: deserializeMetadata(output),
613
- ...contents,
614
- };
615
- return response;
616
- };
617
- export const de_GetAutoTerminationPolicyCommand = async (output, context) => {
618
- if (output.statusCode >= 300) {
619
- return de_CommandError(output, context);
620
- }
621
- const data = await parseBody(output.body, context);
622
- let contents = {};
623
- contents = _json(data);
624
- const response = {
625
- $metadata: deserializeMetadata(output),
626
- ...contents,
627
- };
628
- return response;
629
- };
630
- export const de_GetBlockPublicAccessConfigurationCommand = async (output, context) => {
631
- if (output.statusCode >= 300) {
632
- return de_CommandError(output, context);
633
- }
634
- const data = await parseBody(output.body, context);
635
- let contents = {};
636
- contents = de_GetBlockPublicAccessConfigurationOutput(data, context);
637
- const response = {
638
- $metadata: deserializeMetadata(output),
639
- ...contents,
640
- };
641
- return response;
642
- };
643
- export const de_GetClusterSessionCredentialsCommand = async (output, context) => {
644
- if (output.statusCode >= 300) {
645
- return de_CommandError(output, context);
646
- }
647
- const data = await parseBody(output.body, context);
648
- let contents = {};
649
- contents = de_GetClusterSessionCredentialsOutput(data, context);
650
- const response = {
651
- $metadata: deserializeMetadata(output),
652
- ...contents,
653
- };
654
- return response;
655
- };
656
- export const de_GetManagedScalingPolicyCommand = async (output, context) => {
657
- if (output.statusCode >= 300) {
658
- return de_CommandError(output, context);
659
- }
660
- const data = await parseBody(output.body, context);
661
- let contents = {};
662
- contents = _json(data);
663
- const response = {
664
- $metadata: deserializeMetadata(output),
665
- ...contents,
666
- };
667
- return response;
668
- };
669
- export const de_GetOnClusterAppUIPresignedURLCommand = async (output, context) => {
670
- if (output.statusCode >= 300) {
671
- return de_CommandError(output, context);
672
- }
673
- const data = await parseBody(output.body, context);
674
- let contents = {};
675
- contents = _json(data);
676
- const response = {
677
- $metadata: deserializeMetadata(output),
678
- ...contents,
679
- };
680
- return response;
681
- };
682
- export const de_GetPersistentAppUIPresignedURLCommand = async (output, context) => {
683
- if (output.statusCode >= 300) {
684
- return de_CommandError(output, context);
685
- }
686
- const data = await parseBody(output.body, context);
687
- let contents = {};
688
- contents = _json(data);
689
- const response = {
690
- $metadata: deserializeMetadata(output),
691
- ...contents,
692
- };
693
- return response;
694
- };
695
- export const de_GetStudioSessionMappingCommand = async (output, context) => {
696
- if (output.statusCode >= 300) {
697
- return de_CommandError(output, context);
698
- }
699
- const data = await parseBody(output.body, context);
700
- let contents = {};
701
- contents = de_GetStudioSessionMappingOutput(data, context);
702
- const response = {
703
- $metadata: deserializeMetadata(output),
704
- ...contents,
705
- };
706
- return response;
707
- };
708
- export const de_ListBootstrapActionsCommand = async (output, context) => {
709
- if (output.statusCode >= 300) {
710
- return de_CommandError(output, context);
711
- }
712
- const data = await parseBody(output.body, context);
713
- let contents = {};
714
- contents = _json(data);
715
- const response = {
716
- $metadata: deserializeMetadata(output),
717
- ...contents,
718
- };
719
- return response;
720
- };
721
- export const de_ListClustersCommand = async (output, context) => {
722
- if (output.statusCode >= 300) {
723
- return de_CommandError(output, context);
724
- }
725
- const data = await parseBody(output.body, context);
726
- let contents = {};
727
- contents = de_ListClustersOutput(data, context);
728
- const response = {
729
- $metadata: deserializeMetadata(output),
730
- ...contents,
731
- };
732
- return response;
733
- };
734
- export const de_ListInstanceFleetsCommand = async (output, context) => {
735
- if (output.statusCode >= 300) {
736
- return de_CommandError(output, context);
737
- }
738
- const data = await parseBody(output.body, context);
739
- let contents = {};
740
- contents = de_ListInstanceFleetsOutput(data, context);
741
- const response = {
742
- $metadata: deserializeMetadata(output),
743
- ...contents,
744
- };
745
- return response;
746
- };
747
- export const de_ListInstanceGroupsCommand = async (output, context) => {
748
- if (output.statusCode >= 300) {
749
- return de_CommandError(output, context);
750
- }
751
- const data = await parseBody(output.body, context);
752
- let contents = {};
753
- contents = de_ListInstanceGroupsOutput(data, context);
754
- const response = {
755
- $metadata: deserializeMetadata(output),
756
- ...contents,
757
- };
758
- return response;
759
- };
760
- export const de_ListInstancesCommand = async (output, context) => {
761
- if (output.statusCode >= 300) {
762
- return de_CommandError(output, context);
763
- }
764
- const data = await parseBody(output.body, context);
765
- let contents = {};
766
- contents = de_ListInstancesOutput(data, context);
767
- const response = {
768
- $metadata: deserializeMetadata(output),
769
- ...contents,
770
- };
771
- return response;
772
- };
773
- export const de_ListNotebookExecutionsCommand = async (output, context) => {
774
- if (output.statusCode >= 300) {
775
- return de_CommandError(output, context);
776
- }
777
- const data = await parseBody(output.body, context);
778
- let contents = {};
779
- contents = de_ListNotebookExecutionsOutput(data, context);
780
- const response = {
781
- $metadata: deserializeMetadata(output),
782
- ...contents,
783
- };
784
- return response;
785
- };
786
- export const de_ListReleaseLabelsCommand = async (output, context) => {
787
- if (output.statusCode >= 300) {
788
- return de_CommandError(output, context);
789
- }
790
- const data = await parseBody(output.body, context);
791
- let contents = {};
792
- contents = _json(data);
793
- const response = {
794
- $metadata: deserializeMetadata(output),
795
- ...contents,
796
- };
797
- return response;
798
- };
799
- export const de_ListSecurityConfigurationsCommand = async (output, context) => {
800
- if (output.statusCode >= 300) {
801
- return de_CommandError(output, context);
802
- }
803
- const data = await parseBody(output.body, context);
804
- let contents = {};
805
- contents = de_ListSecurityConfigurationsOutput(data, context);
806
- const response = {
807
- $metadata: deserializeMetadata(output),
808
- ...contents,
809
- };
810
- return response;
811
- };
812
- export const de_ListStepsCommand = async (output, context) => {
813
- if (output.statusCode >= 300) {
814
- return de_CommandError(output, context);
815
- }
816
- const data = await parseBody(output.body, context);
817
- let contents = {};
818
- contents = de_ListStepsOutput(data, context);
819
- const response = {
820
- $metadata: deserializeMetadata(output),
821
- ...contents,
822
- };
823
- return response;
824
- };
825
- export const de_ListStudiosCommand = async (output, context) => {
826
- if (output.statusCode >= 300) {
827
- return de_CommandError(output, context);
828
- }
829
- const data = await parseBody(output.body, context);
830
- let contents = {};
831
- contents = de_ListStudiosOutput(data, context);
832
- const response = {
833
- $metadata: deserializeMetadata(output),
834
- ...contents,
835
- };
836
- return response;
837
- };
838
- export const de_ListStudioSessionMappingsCommand = async (output, context) => {
839
- if (output.statusCode >= 300) {
840
- return de_CommandError(output, context);
841
- }
842
- const data = await parseBody(output.body, context);
843
- let contents = {};
844
- contents = de_ListStudioSessionMappingsOutput(data, context);
845
- const response = {
846
- $metadata: deserializeMetadata(output),
847
- ...contents,
848
- };
849
- return response;
850
- };
851
- export const de_ListSupportedInstanceTypesCommand = async (output, context) => {
852
- if (output.statusCode >= 300) {
853
- return de_CommandError(output, context);
854
- }
855
- const data = await parseBody(output.body, context);
856
- let contents = {};
857
- contents = de_ListSupportedInstanceTypesOutput(data, context);
858
- const response = {
859
- $metadata: deserializeMetadata(output),
860
- ...contents,
861
- };
862
- return response;
863
- };
864
- export const de_ModifyClusterCommand = async (output, context) => {
865
- if (output.statusCode >= 300) {
866
- return de_CommandError(output, context);
867
- }
868
- const data = await parseBody(output.body, context);
869
- let contents = {};
870
- contents = _json(data);
871
- const response = {
872
- $metadata: deserializeMetadata(output),
873
- ...contents,
874
- };
875
- return response;
876
- };
877
- export const de_ModifyInstanceFleetCommand = async (output, context) => {
878
- if (output.statusCode >= 300) {
879
- return de_CommandError(output, context);
880
- }
881
- await collectBody(output.body, context);
882
- const response = {
883
- $metadata: deserializeMetadata(output),
884
- };
885
- return response;
886
- };
887
- export const de_ModifyInstanceGroupsCommand = async (output, context) => {
888
- if (output.statusCode >= 300) {
889
- return de_CommandError(output, context);
890
- }
891
- await collectBody(output.body, context);
892
- const response = {
893
- $metadata: deserializeMetadata(output),
894
- };
895
- return response;
896
- };
897
- export const de_PutAutoScalingPolicyCommand = async (output, context) => {
898
- if (output.statusCode >= 300) {
899
- return de_CommandError(output, context);
900
- }
901
- const data = await parseBody(output.body, context);
902
- let contents = {};
903
- contents = de_PutAutoScalingPolicyOutput(data, context);
904
- const response = {
905
- $metadata: deserializeMetadata(output),
906
- ...contents,
907
- };
908
- return response;
909
- };
910
- export const de_PutAutoTerminationPolicyCommand = async (output, context) => {
911
- if (output.statusCode >= 300) {
912
- return de_CommandError(output, context);
913
- }
914
- const data = await parseBody(output.body, context);
915
- let contents = {};
916
- contents = _json(data);
917
- const response = {
918
- $metadata: deserializeMetadata(output),
919
- ...contents,
920
- };
921
- return response;
922
- };
923
- export const de_PutBlockPublicAccessConfigurationCommand = async (output, context) => {
924
- if (output.statusCode >= 300) {
925
- return de_CommandError(output, context);
926
- }
927
- const data = await parseBody(output.body, context);
928
- let contents = {};
929
- contents = _json(data);
930
- const response = {
931
- $metadata: deserializeMetadata(output),
932
- ...contents,
933
- };
934
- return response;
935
- };
936
- export const de_PutManagedScalingPolicyCommand = async (output, context) => {
937
- if (output.statusCode >= 300) {
938
- return de_CommandError(output, context);
939
- }
940
- const data = await parseBody(output.body, context);
941
- let contents = {};
942
- contents = _json(data);
943
- const response = {
944
- $metadata: deserializeMetadata(output),
945
- ...contents,
946
- };
947
- return response;
948
- };
949
- export const de_RemoveAutoScalingPolicyCommand = async (output, context) => {
950
- if (output.statusCode >= 300) {
951
- return de_CommandError(output, context);
952
- }
953
- const data = await parseBody(output.body, context);
954
- let contents = {};
955
- contents = _json(data);
956
- const response = {
957
- $metadata: deserializeMetadata(output),
958
- ...contents,
959
- };
960
- return response;
961
- };
962
- export const de_RemoveAutoTerminationPolicyCommand = async (output, context) => {
963
- if (output.statusCode >= 300) {
964
- return de_CommandError(output, context);
965
- }
966
- const data = await parseBody(output.body, context);
967
- let contents = {};
968
- contents = _json(data);
969
- const response = {
970
- $metadata: deserializeMetadata(output),
971
- ...contents,
972
- };
973
- return response;
974
- };
975
- export const de_RemoveManagedScalingPolicyCommand = async (output, context) => {
976
- if (output.statusCode >= 300) {
977
- return de_CommandError(output, context);
978
- }
979
- const data = await parseBody(output.body, context);
980
- let contents = {};
981
- contents = _json(data);
982
- const response = {
983
- $metadata: deserializeMetadata(output),
984
- ...contents,
985
- };
986
- return response;
987
- };
988
- export const de_RemoveTagsCommand = async (output, context) => {
989
- if (output.statusCode >= 300) {
990
- return de_CommandError(output, context);
991
- }
992
- const data = await parseBody(output.body, context);
993
- let contents = {};
994
- contents = _json(data);
995
- const response = {
996
- $metadata: deserializeMetadata(output),
997
- ...contents,
998
- };
999
- return response;
1000
- };
1001
- export const de_RunJobFlowCommand = async (output, context) => {
1002
- if (output.statusCode >= 300) {
1003
- return de_CommandError(output, context);
1004
- }
1005
- const data = await parseBody(output.body, context);
1006
- let contents = {};
1007
- contents = _json(data);
1008
- const response = {
1009
- $metadata: deserializeMetadata(output),
1010
- ...contents,
1011
- };
1012
- return response;
1013
- };
1014
- export const de_SetKeepJobFlowAliveWhenNoStepsCommand = async (output, context) => {
1015
- if (output.statusCode >= 300) {
1016
- return de_CommandError(output, context);
1017
- }
1018
- await collectBody(output.body, context);
1019
- const response = {
1020
- $metadata: deserializeMetadata(output),
1021
- };
1022
- return response;
1023
- };
1024
- export const de_SetTerminationProtectionCommand = async (output, context) => {
1025
- if (output.statusCode >= 300) {
1026
- return de_CommandError(output, context);
1027
- }
1028
- await collectBody(output.body, context);
1029
- const response = {
1030
- $metadata: deserializeMetadata(output),
1031
- };
1032
- return response;
1033
- };
1034
- export const de_SetUnhealthyNodeReplacementCommand = async (output, context) => {
1035
- if (output.statusCode >= 300) {
1036
- return de_CommandError(output, context);
1037
- }
1038
- await collectBody(output.body, context);
1039
- const response = {
1040
- $metadata: deserializeMetadata(output),
1041
- };
1042
- return response;
1043
- };
1044
- export const de_SetVisibleToAllUsersCommand = async (output, context) => {
1045
- if (output.statusCode >= 300) {
1046
- return de_CommandError(output, context);
1047
- }
1048
- await collectBody(output.body, context);
1049
- const response = {
1050
- $metadata: deserializeMetadata(output),
1051
- };
1052
- return response;
1053
- };
1054
- export const de_StartNotebookExecutionCommand = async (output, context) => {
1055
- if (output.statusCode >= 300) {
1056
- return de_CommandError(output, context);
1057
- }
1058
- const data = await parseBody(output.body, context);
1059
- let contents = {};
1060
- contents = _json(data);
1061
- const response = {
1062
- $metadata: deserializeMetadata(output),
1063
- ...contents,
1064
- };
1065
- return response;
1066
- };
1067
- export const de_StopNotebookExecutionCommand = async (output, context) => {
1068
- if (output.statusCode >= 300) {
1069
- return de_CommandError(output, context);
1070
- }
1071
- await collectBody(output.body, context);
1072
- const response = {
1073
- $metadata: deserializeMetadata(output),
1074
- };
1075
- return response;
1076
- };
1077
- export const de_TerminateJobFlowsCommand = async (output, context) => {
1078
- if (output.statusCode >= 300) {
1079
- return de_CommandError(output, context);
1080
- }
1081
- await collectBody(output.body, context);
1082
- const response = {
1083
- $metadata: deserializeMetadata(output),
1084
- };
1085
- return response;
1086
- };
1087
- export const de_UpdateStudioCommand = async (output, context) => {
1088
- if (output.statusCode >= 300) {
1089
- return de_CommandError(output, context);
1090
- }
1091
- await collectBody(output.body, context);
1092
- const response = {
1093
- $metadata: deserializeMetadata(output),
1094
- };
1095
- return response;
1096
- };
1097
- export const de_UpdateStudioSessionMappingCommand = async (output, context) => {
1098
- if (output.statusCode >= 300) {
1099
- return de_CommandError(output, context);
1100
- }
1101
- await collectBody(output.body, context);
1102
- const response = {
1103
- $metadata: deserializeMetadata(output),
1104
- };
1105
- return response;
1106
- };
1107
- const de_CommandError = async (output, context) => {
1108
- const parsedOutput = {
1109
- ...output,
1110
- body: await parseErrorBody(output.body, context),
1111
- };
1112
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1113
- switch (errorCode) {
1114
- case "InternalServerException":
1115
- case "com.amazonaws.emr#InternalServerException":
1116
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1117
- case "InvalidRequestException":
1118
- case "com.amazonaws.emr#InvalidRequestException":
1119
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1120
- case "InternalServerError":
1121
- case "com.amazonaws.emr#InternalServerError":
1122
- throw await de_InternalServerErrorRes(parsedOutput, context);
1123
- default:
1124
- const parsedBody = parsedOutput.body;
1125
- return throwDefaultError({
1126
- output,
1127
- parsedBody,
1128
- errorCode,
1129
- });
1130
- }
1131
- };
1132
- const de_InternalServerErrorRes = async (parsedOutput, context) => {
1133
- const body = parsedOutput.body;
1134
- const deserialized = _json(body);
1135
- const exception = new InternalServerError({
1136
- $metadata: deserializeMetadata(parsedOutput),
1137
- ...deserialized,
1138
- });
1139
- return __decorateServiceException(exception, body);
1140
- };
1141
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1142
- const body = parsedOutput.body;
1143
- const deserialized = _json(body);
1144
- const exception = new InternalServerException({
1145
- $metadata: deserializeMetadata(parsedOutput),
1146
- ...deserialized,
1147
- });
1148
- return __decorateServiceException(exception, body);
1149
- };
1150
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1151
- const body = parsedOutput.body;
1152
- const deserialized = _json(body);
1153
- const exception = new InvalidRequestException({
1154
- $metadata: deserializeMetadata(parsedOutput),
1155
- ...deserialized,
1156
- });
1157
- return __decorateServiceException(exception, body);
1158
- };
1159
- const se_AddInstanceFleetInput = (input, context) => {
1160
- return take(input, {
1161
- ClusterId: [],
1162
- InstanceFleet: (_) => se_InstanceFleetConfig(_, context),
1163
- });
1164
- };
1165
- const se_AddInstanceGroupsInput = (input, context) => {
1166
- return take(input, {
1167
- InstanceGroups: (_) => se_InstanceGroupConfigList(_, context),
1168
- JobFlowId: [],
1169
- });
1170
- };
1171
- const se_AutoScalingPolicy = (input, context) => {
1172
- return take(input, {
1173
- Constraints: _json,
1174
- Rules: (_) => se_ScalingRuleList(_, context),
1175
- });
1176
- };
1177
- const se_BlockPublicAccessConfiguration = (input, context) => {
1178
- return take(input, {
1179
- BlockPublicSecurityGroupRules: [],
1180
- Classification: [],
1181
- Configurations: (_) => se_ConfigurationList(_, context),
1182
- PermittedPublicSecurityGroupRuleRanges: _json,
1183
- Properties: _json,
1184
- });
1185
- };
1186
- const se_CloudWatchAlarmDefinition = (input, context) => {
1187
- return take(input, {
1188
- ComparisonOperator: [],
1189
- Dimensions: _json,
1190
- EvaluationPeriods: [],
1191
- MetricName: [],
1192
- Namespace: [],
1193
- Period: [],
1194
- Statistic: [],
1195
- Threshold: __serializeFloat,
1196
- Unit: [],
1197
- });
1198
- };
1199
- const se_Configuration = (input, context) => {
1200
- return take(input, {
1201
- Classification: [],
1202
- Configurations: (_) => se_ConfigurationList(_, context),
1203
- Properties: _json,
1204
- });
1205
- };
1206
- const se_ConfigurationList = (input, context) => {
1207
- return input
1208
- .filter((e) => e != null)
1209
- .map((entry) => {
1210
- return se_Configuration(entry, context);
1211
- });
1212
- };
1213
- const se_DescribeJobFlowsInput = (input, context) => {
1214
- return take(input, {
1215
- CreatedAfter: (_) => _.getTime() / 1_000,
1216
- CreatedBefore: (_) => _.getTime() / 1_000,
1217
- JobFlowIds: _json,
1218
- JobFlowStates: _json,
1219
- });
1220
- };
1221
- const se_InstanceFleetConfig = (input, context) => {
1222
- return take(input, {
1223
- Context: [],
1224
- InstanceFleetType: [],
1225
- InstanceTypeConfigs: (_) => se_InstanceTypeConfigList(_, context),
1226
- LaunchSpecifications: _json,
1227
- Name: [],
1228
- ResizeSpecifications: _json,
1229
- TargetOnDemandCapacity: [],
1230
- TargetSpotCapacity: [],
1231
- });
1232
- };
1233
- const se_InstanceFleetConfigList = (input, context) => {
1234
- return input
1235
- .filter((e) => e != null)
1236
- .map((entry) => {
1237
- return se_InstanceFleetConfig(entry, context);
1238
- });
1239
- };
1240
- const se_InstanceFleetModifyConfig = (input, context) => {
1241
- return take(input, {
1242
- Context: [],
1243
- InstanceFleetId: [],
1244
- InstanceTypeConfigs: (_) => se_InstanceTypeConfigList(_, context),
1245
- ResizeSpecifications: _json,
1246
- TargetOnDemandCapacity: [],
1247
- TargetSpotCapacity: [],
1248
- });
1249
- };
1250
- const se_InstanceGroupConfig = (input, context) => {
1251
- return take(input, {
1252
- AutoScalingPolicy: (_) => se_AutoScalingPolicy(_, context),
1253
- BidPrice: [],
1254
- Configurations: (_) => se_ConfigurationList(_, context),
1255
- CustomAmiId: [],
1256
- EbsConfiguration: _json,
1257
- InstanceCount: [],
1258
- InstanceRole: [],
1259
- InstanceType: [],
1260
- Market: [],
1261
- Name: [],
1262
- });
1263
- };
1264
- const se_InstanceGroupConfigList = (input, context) => {
1265
- return input
1266
- .filter((e) => e != null)
1267
- .map((entry) => {
1268
- return se_InstanceGroupConfig(entry, context);
1269
- });
1270
- };
1271
- const se_InstanceGroupModifyConfig = (input, context) => {
1272
- return take(input, {
1273
- Configurations: (_) => se_ConfigurationList(_, context),
1274
- EC2InstanceIdsToTerminate: _json,
1275
- InstanceCount: [],
1276
- InstanceGroupId: [],
1277
- ReconfigurationType: [],
1278
- ShrinkPolicy: _json,
1279
- });
1280
- };
1281
- const se_InstanceGroupModifyConfigList = (input, context) => {
1282
- return input
1283
- .filter((e) => e != null)
1284
- .map((entry) => {
1285
- return se_InstanceGroupModifyConfig(entry, context);
1286
- });
1287
- };
1288
- const se_InstanceTypeConfig = (input, context) => {
1289
- return take(input, {
1290
- BidPrice: [],
1291
- BidPriceAsPercentageOfOnDemandPrice: __serializeFloat,
1292
- Configurations: (_) => se_ConfigurationList(_, context),
1293
- CustomAmiId: [],
1294
- EbsConfiguration: _json,
1295
- InstanceType: [],
1296
- Priority: __serializeFloat,
1297
- WeightedCapacity: [],
1298
- });
1299
- };
1300
- const se_InstanceTypeConfigList = (input, context) => {
1301
- return input
1302
- .filter((e) => e != null)
1303
- .map((entry) => {
1304
- return se_InstanceTypeConfig(entry, context);
1305
- });
1306
- };
1307
- const se_JobFlowInstancesConfig = (input, context) => {
1308
- return take(input, {
1309
- AdditionalMasterSecurityGroups: _json,
1310
- AdditionalSlaveSecurityGroups: _json,
1311
- Ec2KeyName: [],
1312
- Ec2SubnetId: [],
1313
- Ec2SubnetIds: _json,
1314
- EmrManagedMasterSecurityGroup: [],
1315
- EmrManagedSlaveSecurityGroup: [],
1316
- HadoopVersion: [],
1317
- InstanceCount: [],
1318
- InstanceFleets: (_) => se_InstanceFleetConfigList(_, context),
1319
- InstanceGroups: (_) => se_InstanceGroupConfigList(_, context),
1320
- KeepJobFlowAliveWhenNoSteps: [],
1321
- MasterInstanceType: [],
1322
- Placement: _json,
1323
- ServiceAccessSecurityGroup: [],
1324
- SlaveInstanceType: [],
1325
- TerminationProtected: [],
1326
- UnhealthyNodeReplacement: [],
1327
- });
1328
- };
1329
- const se_ListClustersInput = (input, context) => {
1330
- return take(input, {
1331
- ClusterStates: _json,
1332
- CreatedAfter: (_) => _.getTime() / 1_000,
1333
- CreatedBefore: (_) => _.getTime() / 1_000,
1334
- Marker: [],
1335
- });
1336
- };
1337
- const se_ListNotebookExecutionsInput = (input, context) => {
1338
- return take(input, {
1339
- EditorId: [],
1340
- ExecutionEngineId: [],
1341
- From: (_) => _.getTime() / 1_000,
1342
- Marker: [],
1343
- Status: [],
1344
- To: (_) => _.getTime() / 1_000,
1345
- });
1346
- };
1347
- const se_ModifyInstanceFleetInput = (input, context) => {
1348
- return take(input, {
1349
- ClusterId: [],
1350
- InstanceFleet: (_) => se_InstanceFleetModifyConfig(_, context),
1351
- });
1352
- };
1353
- const se_ModifyInstanceGroupsInput = (input, context) => {
1354
- return take(input, {
1355
- ClusterId: [],
1356
- InstanceGroups: (_) => se_InstanceGroupModifyConfigList(_, context),
1357
- });
1358
- };
1359
- const se_PutAutoScalingPolicyInput = (input, context) => {
1360
- return take(input, {
1361
- AutoScalingPolicy: (_) => se_AutoScalingPolicy(_, context),
1362
- ClusterId: [],
1363
- InstanceGroupId: [],
1364
- });
1365
- };
1366
- const se_PutBlockPublicAccessConfigurationInput = (input, context) => {
1367
- return take(input, {
1368
- BlockPublicAccessConfiguration: (_) => se_BlockPublicAccessConfiguration(_, context),
1369
- });
1370
- };
1371
- const se_RunJobFlowInput = (input, context) => {
1372
- return take(input, {
1373
- AdditionalInfo: [],
1374
- AmiVersion: [],
1375
- Applications: _json,
1376
- AutoScalingRole: [],
1377
- AutoTerminationPolicy: _json,
1378
- BootstrapActions: _json,
1379
- Configurations: (_) => se_ConfigurationList(_, context),
1380
- CustomAmiId: [],
1381
- EbsRootVolumeIops: [],
1382
- EbsRootVolumeSize: [],
1383
- EbsRootVolumeThroughput: [],
1384
- ExtendedSupport: [],
1385
- Instances: (_) => se_JobFlowInstancesConfig(_, context),
1386
- JobFlowRole: [],
1387
- KerberosAttributes: _json,
1388
- LogEncryptionKmsKeyId: [],
1389
- LogUri: [],
1390
- ManagedScalingPolicy: _json,
1391
- Name: [],
1392
- NewSupportedProducts: _json,
1393
- OSReleaseLabel: [],
1394
- PlacementGroupConfigs: _json,
1395
- ReleaseLabel: [],
1396
- RepoUpgradeOnBoot: [],
1397
- ScaleDownBehavior: [],
1398
- SecurityConfiguration: [],
1399
- ServiceRole: [],
1400
- StepConcurrencyLevel: [],
1401
- Steps: _json,
1402
- SupportedProducts: _json,
1403
- Tags: _json,
1404
- VisibleToAllUsers: [],
1405
- });
1406
- };
1407
- const se_ScalingRule = (input, context) => {
1408
- return take(input, {
1409
- Action: _json,
1410
- Description: [],
1411
- Name: [],
1412
- Trigger: (_) => se_ScalingTrigger(_, context),
1413
- });
1414
- };
1415
- const se_ScalingRuleList = (input, context) => {
1416
- return input
1417
- .filter((e) => e != null)
1418
- .map((entry) => {
1419
- return se_ScalingRule(entry, context);
1420
- });
1421
- };
1422
- const se_ScalingTrigger = (input, context) => {
1423
- return take(input, {
1424
- CloudWatchAlarmDefinition: (_) => se_CloudWatchAlarmDefinition(_, context),
1425
- });
1426
- };
1427
- const de_AutoScalingPolicyDescription = (output, context) => {
1428
- return take(output, {
1429
- Constraints: _json,
1430
- Rules: (_) => de_ScalingRuleList(_, context),
1431
- Status: _json,
1432
- });
1433
- };
1434
- const de_BlockPublicAccessConfiguration = (output, context) => {
1435
- return take(output, {
1436
- BlockPublicSecurityGroupRules: __expectBoolean,
1437
- Classification: __expectString,
1438
- Configurations: (_) => de_ConfigurationList(_, context),
1439
- PermittedPublicSecurityGroupRuleRanges: _json,
1440
- Properties: _json,
1441
- });
1442
- };
1443
- const de_BlockPublicAccessConfigurationMetadata = (output, context) => {
1444
- return take(output, {
1445
- CreatedByArn: __expectString,
1446
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1447
- });
1448
- };
1449
- const de_CloudWatchAlarmDefinition = (output, context) => {
1450
- return take(output, {
1451
- ComparisonOperator: __expectString,
1452
- Dimensions: _json,
1453
- EvaluationPeriods: __expectInt32,
1454
- MetricName: __expectString,
1455
- Namespace: __expectString,
1456
- Period: __expectInt32,
1457
- Statistic: __expectString,
1458
- Threshold: __limitedParseDouble,
1459
- Unit: __expectString,
1460
- });
1461
- };
1462
- const de_Cluster = (output, context) => {
1463
- return take(output, {
1464
- Applications: _json,
1465
- AutoScalingRole: __expectString,
1466
- AutoTerminate: __expectBoolean,
1467
- ClusterArn: __expectString,
1468
- Configurations: (_) => de_ConfigurationList(_, context),
1469
- CustomAmiId: __expectString,
1470
- EbsRootVolumeIops: __expectInt32,
1471
- EbsRootVolumeSize: __expectInt32,
1472
- EbsRootVolumeThroughput: __expectInt32,
1473
- Ec2InstanceAttributes: _json,
1474
- ExtendedSupport: __expectBoolean,
1475
- Id: __expectString,
1476
- InstanceCollectionType: __expectString,
1477
- KerberosAttributes: _json,
1478
- LogEncryptionKmsKeyId: __expectString,
1479
- LogUri: __expectString,
1480
- MasterPublicDnsName: __expectString,
1481
- Name: __expectString,
1482
- NormalizedInstanceHours: __expectInt32,
1483
- OSReleaseLabel: __expectString,
1484
- OutpostArn: __expectString,
1485
- PlacementGroups: _json,
1486
- ReleaseLabel: __expectString,
1487
- RepoUpgradeOnBoot: __expectString,
1488
- RequestedAmiVersion: __expectString,
1489
- RunningAmiVersion: __expectString,
1490
- ScaleDownBehavior: __expectString,
1491
- SecurityConfiguration: __expectString,
1492
- ServiceRole: __expectString,
1493
- Status: (_) => de_ClusterStatus(_, context),
1494
- StepConcurrencyLevel: __expectInt32,
1495
- Tags: _json,
1496
- TerminationProtected: __expectBoolean,
1497
- UnhealthyNodeReplacement: __expectBoolean,
1498
- VisibleToAllUsers: __expectBoolean,
1499
- });
1500
- };
1501
- const de_ClusterStatus = (output, context) => {
1502
- return take(output, {
1503
- ErrorDetails: _json,
1504
- State: __expectString,
1505
- StateChangeReason: _json,
1506
- Timeline: (_) => de_ClusterTimeline(_, context),
1507
- });
1508
- };
1509
- const de_ClusterSummary = (output, context) => {
1510
- return take(output, {
1511
- ClusterArn: __expectString,
1512
- Id: __expectString,
1513
- Name: __expectString,
1514
- NormalizedInstanceHours: __expectInt32,
1515
- OutpostArn: __expectString,
1516
- Status: (_) => de_ClusterStatus(_, context),
1517
- });
1518
- };
1519
- const de_ClusterSummaryList = (output, context) => {
1520
- const retVal = (output || [])
1521
- .filter((e) => e != null)
1522
- .map((entry) => {
1523
- return de_ClusterSummary(entry, context);
1524
- });
1525
- return retVal;
1526
- };
1527
- const de_ClusterTimeline = (output, context) => {
1528
- return take(output, {
1529
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1530
- EndDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1531
- ReadyDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1532
- });
1533
- };
1534
- const de_Configuration = (output, context) => {
1535
- return take(output, {
1536
- Classification: __expectString,
1537
- Configurations: (_) => de_ConfigurationList(_, context),
1538
- Properties: _json,
1539
- });
1540
- };
1541
- const de_ConfigurationList = (output, context) => {
1542
- const retVal = (output || [])
1543
- .filter((e) => e != null)
1544
- .map((entry) => {
1545
- return de_Configuration(entry, context);
1546
- });
1547
- return retVal;
1548
- };
1549
- const de_CreateSecurityConfigurationOutput = (output, context) => {
1550
- return take(output, {
1551
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1552
- Name: __expectString,
1553
- });
1554
- };
1555
- const de_DescribeClusterOutput = (output, context) => {
1556
- return take(output, {
1557
- Cluster: (_) => de_Cluster(_, context),
1558
- });
1559
- };
1560
- const de_DescribeJobFlowsOutput = (output, context) => {
1561
- return take(output, {
1562
- JobFlows: (_) => de_JobFlowDetailList(_, context),
1563
- });
1564
- };
1565
- const de_DescribeNotebookExecutionOutput = (output, context) => {
1566
- return take(output, {
1567
- NotebookExecution: (_) => de_NotebookExecution(_, context),
1568
- });
1569
- };
1570
- const de_DescribePersistentAppUIOutput = (output, context) => {
1571
- return take(output, {
1572
- PersistentAppUI: (_) => de_PersistentAppUI(_, context),
1573
- });
1574
- };
1575
- const de_DescribeSecurityConfigurationOutput = (output, context) => {
1576
- return take(output, {
1577
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1578
- Name: __expectString,
1579
- SecurityConfiguration: __expectString,
1580
- });
1581
- };
1582
- const de_DescribeStepOutput = (output, context) => {
1583
- return take(output, {
1584
- Step: (_) => de_Step(_, context),
1585
- });
1586
- };
1587
- const de_DescribeStudioOutput = (output, context) => {
1588
- return take(output, {
1589
- Studio: (_) => de_Studio(_, context),
1590
- });
1591
- };
1592
- const de_GetBlockPublicAccessConfigurationOutput = (output, context) => {
1593
- return take(output, {
1594
- BlockPublicAccessConfiguration: (_) => de_BlockPublicAccessConfiguration(_, context),
1595
- BlockPublicAccessConfigurationMetadata: (_) => de_BlockPublicAccessConfigurationMetadata(_, context),
1596
- });
1597
- };
1598
- const de_GetClusterSessionCredentialsOutput = (output, context) => {
1599
- return take(output, {
1600
- Credentials: (_) => _json(__expectUnion(_)),
1601
- ExpiresAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1602
- });
1603
- };
1604
- const de_GetStudioSessionMappingOutput = (output, context) => {
1605
- return take(output, {
1606
- SessionMapping: (_) => de_SessionMappingDetail(_, context),
1607
- });
1608
- };
1609
- const de_Instance = (output, context) => {
1610
- return take(output, {
1611
- EbsVolumes: _json,
1612
- Ec2InstanceId: __expectString,
1613
- Id: __expectString,
1614
- InstanceFleetId: __expectString,
1615
- InstanceGroupId: __expectString,
1616
- InstanceType: __expectString,
1617
- Market: __expectString,
1618
- PrivateDnsName: __expectString,
1619
- PrivateIpAddress: __expectString,
1620
- PublicDnsName: __expectString,
1621
- PublicIpAddress: __expectString,
1622
- Status: (_) => de_InstanceStatus(_, context),
1623
- });
1624
- };
1625
- const de_InstanceFleet = (output, context) => {
1626
- return take(output, {
1627
- Context: __expectString,
1628
- Id: __expectString,
1629
- InstanceFleetType: __expectString,
1630
- InstanceTypeSpecifications: (_) => de_InstanceTypeSpecificationList(_, context),
1631
- LaunchSpecifications: _json,
1632
- Name: __expectString,
1633
- ProvisionedOnDemandCapacity: __expectInt32,
1634
- ProvisionedSpotCapacity: __expectInt32,
1635
- ResizeSpecifications: _json,
1636
- Status: (_) => de_InstanceFleetStatus(_, context),
1637
- TargetOnDemandCapacity: __expectInt32,
1638
- TargetSpotCapacity: __expectInt32,
1639
- });
1640
- };
1641
- const de_InstanceFleetList = (output, context) => {
1642
- const retVal = (output || [])
1643
- .filter((e) => e != null)
1644
- .map((entry) => {
1645
- return de_InstanceFleet(entry, context);
1646
- });
1647
- return retVal;
1648
- };
1649
- const de_InstanceFleetStatus = (output, context) => {
1650
- return take(output, {
1651
- State: __expectString,
1652
- StateChangeReason: _json,
1653
- Timeline: (_) => de_InstanceFleetTimeline(_, context),
1654
- });
1655
- };
1656
- const de_InstanceFleetTimeline = (output, context) => {
1657
- return take(output, {
1658
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1659
- EndDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1660
- ReadyDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1661
- });
1662
- };
1663
- const de_InstanceGroup = (output, context) => {
1664
- return take(output, {
1665
- AutoScalingPolicy: (_) => de_AutoScalingPolicyDescription(_, context),
1666
- BidPrice: __expectString,
1667
- Configurations: (_) => de_ConfigurationList(_, context),
1668
- ConfigurationsVersion: __expectLong,
1669
- CustomAmiId: __expectString,
1670
- EbsBlockDevices: _json,
1671
- EbsOptimized: __expectBoolean,
1672
- Id: __expectString,
1673
- InstanceGroupType: __expectString,
1674
- InstanceType: __expectString,
1675
- LastSuccessfullyAppliedConfigurations: (_) => de_ConfigurationList(_, context),
1676
- LastSuccessfullyAppliedConfigurationsVersion: __expectLong,
1677
- Market: __expectString,
1678
- Name: __expectString,
1679
- RequestedInstanceCount: __expectInt32,
1680
- RunningInstanceCount: __expectInt32,
1681
- ShrinkPolicy: _json,
1682
- Status: (_) => de_InstanceGroupStatus(_, context),
1683
- });
1684
- };
1685
- const de_InstanceGroupDetail = (output, context) => {
1686
- return take(output, {
1687
- BidPrice: __expectString,
1688
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1689
- CustomAmiId: __expectString,
1690
- EndDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1691
- InstanceGroupId: __expectString,
1692
- InstanceRequestCount: __expectInt32,
1693
- InstanceRole: __expectString,
1694
- InstanceRunningCount: __expectInt32,
1695
- InstanceType: __expectString,
1696
- LastStateChangeReason: __expectString,
1697
- Market: __expectString,
1698
- Name: __expectString,
1699
- ReadyDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1700
- StartDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1701
- State: __expectString,
1702
- });
1703
- };
1704
- const de_InstanceGroupDetailList = (output, context) => {
1705
- const retVal = (output || [])
1706
- .filter((e) => e != null)
1707
- .map((entry) => {
1708
- return de_InstanceGroupDetail(entry, context);
1709
- });
1710
- return retVal;
1711
- };
1712
- const de_InstanceGroupList = (output, context) => {
1713
- const retVal = (output || [])
1714
- .filter((e) => e != null)
1715
- .map((entry) => {
1716
- return de_InstanceGroup(entry, context);
1717
- });
1718
- return retVal;
1719
- };
1720
- const de_InstanceGroupStatus = (output, context) => {
1721
- return take(output, {
1722
- State: __expectString,
1723
- StateChangeReason: _json,
1724
- Timeline: (_) => de_InstanceGroupTimeline(_, context),
1725
- });
1726
- };
1727
- const de_InstanceGroupTimeline = (output, context) => {
1728
- return take(output, {
1729
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1730
- EndDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1731
- ReadyDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1732
- });
1733
- };
1734
- const de_InstanceList = (output, context) => {
1735
- const retVal = (output || [])
1736
- .filter((e) => e != null)
1737
- .map((entry) => {
1738
- return de_Instance(entry, context);
1739
- });
1740
- return retVal;
1741
- };
1742
- const de_InstanceStatus = (output, context) => {
1743
- return take(output, {
1744
- State: __expectString,
1745
- StateChangeReason: _json,
1746
- Timeline: (_) => de_InstanceTimeline(_, context),
1747
- });
1748
- };
1749
- const de_InstanceTimeline = (output, context) => {
1750
- return take(output, {
1751
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1752
- EndDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1753
- ReadyDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1754
- });
1755
- };
1756
- const de_InstanceTypeSpecification = (output, context) => {
1757
- return take(output, {
1758
- BidPrice: __expectString,
1759
- BidPriceAsPercentageOfOnDemandPrice: __limitedParseDouble,
1760
- Configurations: (_) => de_ConfigurationList(_, context),
1761
- CustomAmiId: __expectString,
1762
- EbsBlockDevices: _json,
1763
- EbsOptimized: __expectBoolean,
1764
- InstanceType: __expectString,
1765
- Priority: __limitedParseDouble,
1766
- WeightedCapacity: __expectInt32,
1767
- });
1768
- };
1769
- const de_InstanceTypeSpecificationList = (output, context) => {
1770
- const retVal = (output || [])
1771
- .filter((e) => e != null)
1772
- .map((entry) => {
1773
- return de_InstanceTypeSpecification(entry, context);
1774
- });
1775
- return retVal;
1776
- };
1777
- const de_JobFlowDetail = (output, context) => {
1778
- return take(output, {
1779
- AmiVersion: __expectString,
1780
- AutoScalingRole: __expectString,
1781
- BootstrapActions: _json,
1782
- ExecutionStatusDetail: (_) => de_JobFlowExecutionStatusDetail(_, context),
1783
- Instances: (_) => de_JobFlowInstancesDetail(_, context),
1784
- JobFlowId: __expectString,
1785
- JobFlowRole: __expectString,
1786
- LogEncryptionKmsKeyId: __expectString,
1787
- LogUri: __expectString,
1788
- Name: __expectString,
1789
- ScaleDownBehavior: __expectString,
1790
- ServiceRole: __expectString,
1791
- Steps: (_) => de_StepDetailList(_, context),
1792
- SupportedProducts: _json,
1793
- VisibleToAllUsers: __expectBoolean,
1794
- });
1795
- };
1796
- const de_JobFlowDetailList = (output, context) => {
1797
- const retVal = (output || [])
1798
- .filter((e) => e != null)
1799
- .map((entry) => {
1800
- return de_JobFlowDetail(entry, context);
1801
- });
1802
- return retVal;
1803
- };
1804
- const de_JobFlowExecutionStatusDetail = (output, context) => {
1805
- return take(output, {
1806
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1807
- EndDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1808
- LastStateChangeReason: __expectString,
1809
- ReadyDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1810
- StartDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1811
- State: __expectString,
1812
- });
1813
- };
1814
- const de_JobFlowInstancesDetail = (output, context) => {
1815
- return take(output, {
1816
- Ec2KeyName: __expectString,
1817
- Ec2SubnetId: __expectString,
1818
- HadoopVersion: __expectString,
1819
- InstanceCount: __expectInt32,
1820
- InstanceGroups: (_) => de_InstanceGroupDetailList(_, context),
1821
- KeepJobFlowAliveWhenNoSteps: __expectBoolean,
1822
- MasterInstanceId: __expectString,
1823
- MasterInstanceType: __expectString,
1824
- MasterPublicDnsName: __expectString,
1825
- NormalizedInstanceHours: __expectInt32,
1826
- Placement: _json,
1827
- SlaveInstanceType: __expectString,
1828
- TerminationProtected: __expectBoolean,
1829
- UnhealthyNodeReplacement: __expectBoolean,
1830
- });
1831
- };
1832
- const de_ListClustersOutput = (output, context) => {
1833
- return take(output, {
1834
- Clusters: (_) => de_ClusterSummaryList(_, context),
1835
- Marker: __expectString,
1836
- });
1837
- };
1838
- const de_ListInstanceFleetsOutput = (output, context) => {
1839
- return take(output, {
1840
- InstanceFleets: (_) => de_InstanceFleetList(_, context),
1841
- Marker: __expectString,
1842
- });
1843
- };
1844
- const de_ListInstanceGroupsOutput = (output, context) => {
1845
- return take(output, {
1846
- InstanceGroups: (_) => de_InstanceGroupList(_, context),
1847
- Marker: __expectString,
1848
- });
1849
- };
1850
- const de_ListInstancesOutput = (output, context) => {
1851
- return take(output, {
1852
- Instances: (_) => de_InstanceList(_, context),
1853
- Marker: __expectString,
1854
- });
1855
- };
1856
- const de_ListNotebookExecutionsOutput = (output, context) => {
1857
- return take(output, {
1858
- Marker: __expectString,
1859
- NotebookExecutions: (_) => de_NotebookExecutionSummaryList(_, context),
1860
- });
1861
- };
1862
- const de_ListSecurityConfigurationsOutput = (output, context) => {
1863
- return take(output, {
1864
- Marker: __expectString,
1865
- SecurityConfigurations: (_) => de_SecurityConfigurationList(_, context),
1866
- });
1867
- };
1868
- const de_ListStepsOutput = (output, context) => {
1869
- return take(output, {
1870
- Marker: __expectString,
1871
- Steps: (_) => de_StepSummaryList(_, context),
1872
- });
1873
- };
1874
- const de_ListStudioSessionMappingsOutput = (output, context) => {
1875
- return take(output, {
1876
- Marker: __expectString,
1877
- SessionMappings: (_) => de_SessionMappingSummaryList(_, context),
1878
- });
1879
- };
1880
- const de_ListStudiosOutput = (output, context) => {
1881
- return take(output, {
1882
- Marker: __expectString,
1883
- Studios: (_) => de_StudioSummaryList(_, context),
1884
- });
1885
- };
1886
- const de_ListSupportedInstanceTypesOutput = (output, context) => {
1887
- return take(output, {
1888
- Marker: __expectString,
1889
- SupportedInstanceTypes: (_) => de_SupportedInstanceTypesList(_, context),
1890
- });
1891
- };
1892
- const de_NotebookExecution = (output, context) => {
1893
- return take(output, {
1894
- Arn: __expectString,
1895
- EditorId: __expectString,
1896
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1897
- EnvironmentVariables: _json,
1898
- ExecutionEngine: _json,
1899
- LastStateChangeReason: __expectString,
1900
- NotebookExecutionId: __expectString,
1901
- NotebookExecutionName: __expectString,
1902
- NotebookInstanceSecurityGroupId: __expectString,
1903
- NotebookParams: __expectString,
1904
- NotebookS3Location: _json,
1905
- OutputNotebookFormat: __expectString,
1906
- OutputNotebookS3Location: _json,
1907
- OutputNotebookURI: __expectString,
1908
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1909
- Status: __expectString,
1910
- Tags: _json,
1911
- });
1912
- };
1913
- const de_NotebookExecutionSummary = (output, context) => {
1914
- return take(output, {
1915
- EditorId: __expectString,
1916
- EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1917
- ExecutionEngineId: __expectString,
1918
- NotebookExecutionId: __expectString,
1919
- NotebookExecutionName: __expectString,
1920
- NotebookS3Location: _json,
1921
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1922
- Status: __expectString,
1923
- });
1924
- };
1925
- const de_NotebookExecutionSummaryList = (output, context) => {
1926
- const retVal = (output || [])
1927
- .filter((e) => e != null)
1928
- .map((entry) => {
1929
- return de_NotebookExecutionSummary(entry, context);
1930
- });
1931
- return retVal;
1932
- };
1933
- const de_PersistentAppUI = (output, context) => {
1934
- return take(output, {
1935
- AuthorId: __expectString,
1936
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1937
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1938
- LastStateChangeReason: __expectString,
1939
- PersistentAppUIId: __expectString,
1940
- PersistentAppUIStatus: __expectString,
1941
- PersistentAppUITypeList: _json,
1942
- Tags: _json,
1943
- });
1944
- };
1945
- const de_PutAutoScalingPolicyOutput = (output, context) => {
1946
- return take(output, {
1947
- AutoScalingPolicy: (_) => de_AutoScalingPolicyDescription(_, context),
1948
- ClusterArn: __expectString,
1949
- ClusterId: __expectString,
1950
- InstanceGroupId: __expectString,
1951
- });
1952
- };
1953
- const de_ScalingRule = (output, context) => {
1954
- return take(output, {
1955
- Action: _json,
1956
- Description: __expectString,
1957
- Name: __expectString,
1958
- Trigger: (_) => de_ScalingTrigger(_, context),
1959
- });
1960
- };
1961
- const de_ScalingRuleList = (output, context) => {
1962
- const retVal = (output || [])
1963
- .filter((e) => e != null)
1964
- .map((entry) => {
1965
- return de_ScalingRule(entry, context);
1966
- });
1967
- return retVal;
1968
- };
1969
- const de_ScalingTrigger = (output, context) => {
1970
- return take(output, {
1971
- CloudWatchAlarmDefinition: (_) => de_CloudWatchAlarmDefinition(_, context),
1972
- });
1973
- };
1974
- const de_SecurityConfigurationList = (output, context) => {
1975
- const retVal = (output || [])
1976
- .filter((e) => e != null)
1977
- .map((entry) => {
1978
- return de_SecurityConfigurationSummary(entry, context);
1979
- });
1980
- return retVal;
1981
- };
1982
- const de_SecurityConfigurationSummary = (output, context) => {
1983
- return take(output, {
1984
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1985
- Name: __expectString,
1986
- });
1987
- };
1988
- const de_SessionMappingDetail = (output, context) => {
1989
- return take(output, {
1990
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1991
- IdentityId: __expectString,
1992
- IdentityName: __expectString,
1993
- IdentityType: __expectString,
1994
- LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1995
- SessionPolicyArn: __expectString,
1996
- StudioId: __expectString,
1997
- });
1998
- };
1999
- const de_SessionMappingSummary = (output, context) => {
2000
- return take(output, {
2001
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2002
- IdentityId: __expectString,
2003
- IdentityName: __expectString,
2004
- IdentityType: __expectString,
2005
- SessionPolicyArn: __expectString,
2006
- StudioId: __expectString,
2007
- });
2008
- };
2009
- const de_SessionMappingSummaryList = (output, context) => {
2010
- const retVal = (output || [])
2011
- .filter((e) => e != null)
2012
- .map((entry) => {
2013
- return de_SessionMappingSummary(entry, context);
2014
- });
2015
- return retVal;
2016
- };
2017
- const de_Step = (output, context) => {
2018
- return take(output, {
2019
- ActionOnFailure: __expectString,
2020
- Config: _json,
2021
- ExecutionRoleArn: __expectString,
2022
- Id: __expectString,
2023
- Name: __expectString,
2024
- Status: (_) => de_StepStatus(_, context),
2025
- });
2026
- };
2027
- const de_StepDetail = (output, context) => {
2028
- return take(output, {
2029
- ExecutionStatusDetail: (_) => de_StepExecutionStatusDetail(_, context),
2030
- StepConfig: _json,
2031
- });
2032
- };
2033
- const de_StepDetailList = (output, context) => {
2034
- const retVal = (output || [])
2035
- .filter((e) => e != null)
2036
- .map((entry) => {
2037
- return de_StepDetail(entry, context);
2038
- });
2039
- return retVal;
2040
- };
2041
- const de_StepExecutionStatusDetail = (output, context) => {
2042
- return take(output, {
2043
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2044
- EndDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2045
- LastStateChangeReason: __expectString,
2046
- StartDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2047
- State: __expectString,
2048
- });
2049
- };
2050
- const de_StepStatus = (output, context) => {
2051
- return take(output, {
2052
- FailureDetails: _json,
2053
- State: __expectString,
2054
- StateChangeReason: _json,
2055
- Timeline: (_) => de_StepTimeline(_, context),
2056
- });
2057
- };
2058
- const de_StepSummary = (output, context) => {
2059
- return take(output, {
2060
- ActionOnFailure: __expectString,
2061
- Config: _json,
2062
- Id: __expectString,
2063
- Name: __expectString,
2064
- Status: (_) => de_StepStatus(_, context),
2065
- });
2066
- };
2067
- const de_StepSummaryList = (output, context) => {
2068
- const retVal = (output || [])
2069
- .filter((e) => e != null)
2070
- .map((entry) => {
2071
- return de_StepSummary(entry, context);
2072
- });
2073
- return retVal;
2074
- };
2075
- const de_StepTimeline = (output, context) => {
2076
- return take(output, {
2077
- CreationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2078
- EndDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2079
- StartDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2080
- });
2081
- };
2082
- const de_Studio = (output, context) => {
2083
- return take(output, {
2084
- AuthMode: __expectString,
2085
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2086
- DefaultS3Location: __expectString,
2087
- Description: __expectString,
2088
- EncryptionKeyArn: __expectString,
2089
- EngineSecurityGroupId: __expectString,
2090
- IdcInstanceArn: __expectString,
2091
- IdcUserAssignment: __expectString,
2092
- IdpAuthUrl: __expectString,
2093
- IdpRelayStateParameterName: __expectString,
2094
- Name: __expectString,
2095
- ServiceRole: __expectString,
2096
- StudioArn: __expectString,
2097
- StudioId: __expectString,
2098
- SubnetIds: _json,
2099
- Tags: _json,
2100
- TrustedIdentityPropagationEnabled: __expectBoolean,
2101
- Url: __expectString,
2102
- UserRole: __expectString,
2103
- VpcId: __expectString,
2104
- WorkspaceSecurityGroupId: __expectString,
2105
- });
2106
- };
2107
- const de_StudioSummary = (output, context) => {
2108
- return take(output, {
2109
- AuthMode: __expectString,
2110
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2111
- Description: __expectString,
2112
- Name: __expectString,
2113
- StudioId: __expectString,
2114
- Url: __expectString,
2115
- VpcId: __expectString,
2116
- });
2117
- };
2118
- const de_StudioSummaryList = (output, context) => {
2119
- const retVal = (output || [])
2120
- .filter((e) => e != null)
2121
- .map((entry) => {
2122
- return de_StudioSummary(entry, context);
2123
- });
2124
- return retVal;
2125
- };
2126
- const de_SupportedInstanceType = (output, context) => {
2127
- return take(output, {
2128
- Architecture: __expectString,
2129
- EbsOptimizedAvailable: __expectBoolean,
2130
- EbsOptimizedByDefault: __expectBoolean,
2131
- EbsStorageOnly: __expectBoolean,
2132
- InstanceFamilyId: __expectString,
2133
- Is64BitsOnly: __expectBoolean,
2134
- MemoryGB: __limitedParseFloat32,
2135
- NumberOfDisks: __expectInt32,
2136
- StorageGB: __expectInt32,
2137
- Type: __expectString,
2138
- VCPU: __expectInt32,
2139
- });
2140
- };
2141
- const de_SupportedInstanceTypesList = (output, context) => {
2142
- const retVal = (output || [])
2143
- .filter((e) => e != null)
2144
- .map((entry) => {
2145
- return de_SupportedInstanceType(entry, context);
2146
- });
2147
- return retVal;
2148
- };
2149
- const deserializeMetadata = (output) => ({
2150
- httpStatusCode: output.statusCode,
2151
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2152
- extendedRequestId: output.headers["x-amz-id-2"],
2153
- cfId: output.headers["x-amz-cf-id"],
2154
- });
2155
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2156
- const throwDefaultError = withBaseException(__BaseException);
2157
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2158
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2159
- const contents = {
2160
- protocol,
2161
- hostname,
2162
- port,
2163
- method: "POST",
2164
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2165
- headers,
2166
- };
2167
- if (resolvedHostname !== undefined) {
2168
- contents.hostname = resolvedHostname;
2169
- }
2170
- if (body !== undefined) {
2171
- contents.body = body;
2172
- }
2173
- return new __HttpRequest(contents);
2174
- };
2175
- function sharedHeaders(operation) {
2176
- return {
2177
- "content-type": "application/x-amz-json-1.1",
2178
- "x-amz-target": `ElasticMapReduce.${operation}`,
2179
- };
2180
- }