@aws-sdk/client-appstream 3.312.0 → 3.316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,395 +1,395 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
3
3
  import { AppStreamServiceException as __BaseException } from "../models/AppStreamServiceException";
4
4
  import { ConcurrentModificationException, EntitlementAlreadyExistsException, EntitlementNotFoundException, IncompatibleImageException, InvalidAccountStatusException, InvalidParameterCombinationException, InvalidRoleException, LimitExceededException, OperationNotPermittedException, RequestLimitExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotAvailableException, ResourceNotFoundException, } from "../models/models_0";
5
5
  export const se_AssociateApplicationFleetCommand = async (input, context) => {
6
6
  const headers = sharedHeaders("AssociateApplicationFleet");
7
7
  let body;
8
- body = JSON.stringify(se_AssociateApplicationFleetRequest(input, context));
8
+ body = JSON.stringify(_json(input));
9
9
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
10
10
  };
11
11
  export const se_AssociateApplicationToEntitlementCommand = async (input, context) => {
12
12
  const headers = sharedHeaders("AssociateApplicationToEntitlement");
13
13
  let body;
14
- body = JSON.stringify(se_AssociateApplicationToEntitlementRequest(input, context));
14
+ body = JSON.stringify(_json(input));
15
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
16
  };
17
17
  export const se_AssociateFleetCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("AssociateFleet");
19
19
  let body;
20
- body = JSON.stringify(se_AssociateFleetRequest(input, context));
20
+ body = JSON.stringify(_json(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  export const se_BatchAssociateUserStackCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("BatchAssociateUserStack");
25
25
  let body;
26
- body = JSON.stringify(se_BatchAssociateUserStackRequest(input, context));
26
+ body = JSON.stringify(_json(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  export const se_BatchDisassociateUserStackCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("BatchDisassociateUserStack");
31
31
  let body;
32
- body = JSON.stringify(se_BatchDisassociateUserStackRequest(input, context));
32
+ body = JSON.stringify(_json(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  export const se_CopyImageCommand = async (input, context) => {
36
36
  const headers = sharedHeaders("CopyImage");
37
37
  let body;
38
- body = JSON.stringify(se_CopyImageRequest(input, context));
38
+ body = JSON.stringify(_json(input));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
41
  export const se_CreateAppBlockCommand = async (input, context) => {
42
42
  const headers = sharedHeaders("CreateAppBlock");
43
43
  let body;
44
- body = JSON.stringify(se_CreateAppBlockRequest(input, context));
44
+ body = JSON.stringify(_json(input));
45
45
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
46
46
  };
47
47
  export const se_CreateApplicationCommand = async (input, context) => {
48
48
  const headers = sharedHeaders("CreateApplication");
49
49
  let body;
50
- body = JSON.stringify(se_CreateApplicationRequest(input, context));
50
+ body = JSON.stringify(_json(input));
51
51
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
52
52
  };
53
53
  export const se_CreateDirectoryConfigCommand = async (input, context) => {
54
54
  const headers = sharedHeaders("CreateDirectoryConfig");
55
55
  let body;
56
- body = JSON.stringify(se_CreateDirectoryConfigRequest(input, context));
56
+ body = JSON.stringify(_json(input));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
59
  export const se_CreateEntitlementCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("CreateEntitlement");
61
61
  let body;
62
- body = JSON.stringify(se_CreateEntitlementRequest(input, context));
62
+ body = JSON.stringify(_json(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  export const se_CreateFleetCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("CreateFleet");
67
67
  let body;
68
- body = JSON.stringify(se_CreateFleetRequest(input, context));
68
+ body = JSON.stringify(_json(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  export const se_CreateImageBuilderCommand = async (input, context) => {
72
72
  const headers = sharedHeaders("CreateImageBuilder");
73
73
  let body;
74
- body = JSON.stringify(se_CreateImageBuilderRequest(input, context));
74
+ body = JSON.stringify(_json(input));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
77
  export const se_CreateImageBuilderStreamingURLCommand = async (input, context) => {
78
78
  const headers = sharedHeaders("CreateImageBuilderStreamingURL");
79
79
  let body;
80
- body = JSON.stringify(se_CreateImageBuilderStreamingURLRequest(input, context));
80
+ body = JSON.stringify(_json(input));
81
81
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
82
82
  };
83
83
  export const se_CreateStackCommand = async (input, context) => {
84
84
  const headers = sharedHeaders("CreateStack");
85
85
  let body;
86
- body = JSON.stringify(se_CreateStackRequest(input, context));
86
+ body = JSON.stringify(_json(input));
87
87
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
88
88
  };
89
89
  export const se_CreateStreamingURLCommand = async (input, context) => {
90
90
  const headers = sharedHeaders("CreateStreamingURL");
91
91
  let body;
92
- body = JSON.stringify(se_CreateStreamingURLRequest(input, context));
92
+ body = JSON.stringify(_json(input));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
95
  export const se_CreateUpdatedImageCommand = async (input, context) => {
96
96
  const headers = sharedHeaders("CreateUpdatedImage");
97
97
  let body;
98
- body = JSON.stringify(se_CreateUpdatedImageRequest(input, context));
98
+ body = JSON.stringify(_json(input));
99
99
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
100
100
  };
101
101
  export const se_CreateUsageReportSubscriptionCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("CreateUsageReportSubscription");
103
103
  let body;
104
- body = JSON.stringify(se_CreateUsageReportSubscriptionRequest(input, context));
104
+ body = JSON.stringify(_json(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  export const se_CreateUserCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("CreateUser");
109
109
  let body;
110
- body = JSON.stringify(se_CreateUserRequest(input, context));
110
+ body = JSON.stringify(_json(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  export const se_DeleteAppBlockCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("DeleteAppBlock");
115
115
  let body;
116
- body = JSON.stringify(se_DeleteAppBlockRequest(input, context));
116
+ body = JSON.stringify(_json(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  export const se_DeleteApplicationCommand = async (input, context) => {
120
120
  const headers = sharedHeaders("DeleteApplication");
121
121
  let body;
122
- body = JSON.stringify(se_DeleteApplicationRequest(input, context));
122
+ body = JSON.stringify(_json(input));
123
123
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
124
124
  };
125
125
  export const se_DeleteDirectoryConfigCommand = async (input, context) => {
126
126
  const headers = sharedHeaders("DeleteDirectoryConfig");
127
127
  let body;
128
- body = JSON.stringify(se_DeleteDirectoryConfigRequest(input, context));
128
+ body = JSON.stringify(_json(input));
129
129
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
130
130
  };
131
131
  export const se_DeleteEntitlementCommand = async (input, context) => {
132
132
  const headers = sharedHeaders("DeleteEntitlement");
133
133
  let body;
134
- body = JSON.stringify(se_DeleteEntitlementRequest(input, context));
134
+ body = JSON.stringify(_json(input));
135
135
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
136
136
  };
137
137
  export const se_DeleteFleetCommand = async (input, context) => {
138
138
  const headers = sharedHeaders("DeleteFleet");
139
139
  let body;
140
- body = JSON.stringify(se_DeleteFleetRequest(input, context));
140
+ body = JSON.stringify(_json(input));
141
141
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
142
142
  };
143
143
  export const se_DeleteImageCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("DeleteImage");
145
145
  let body;
146
- body = JSON.stringify(se_DeleteImageRequest(input, context));
146
+ body = JSON.stringify(_json(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  export const se_DeleteImageBuilderCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("DeleteImageBuilder");
151
151
  let body;
152
- body = JSON.stringify(se_DeleteImageBuilderRequest(input, context));
152
+ body = JSON.stringify(_json(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  export const se_DeleteImagePermissionsCommand = async (input, context) => {
156
156
  const headers = sharedHeaders("DeleteImagePermissions");
157
157
  let body;
158
- body = JSON.stringify(se_DeleteImagePermissionsRequest(input, context));
158
+ body = JSON.stringify(_json(input));
159
159
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
160
160
  };
161
161
  export const se_DeleteStackCommand = async (input, context) => {
162
162
  const headers = sharedHeaders("DeleteStack");
163
163
  let body;
164
- body = JSON.stringify(se_DeleteStackRequest(input, context));
164
+ body = JSON.stringify(_json(input));
165
165
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
166
166
  };
167
167
  export const se_DeleteUsageReportSubscriptionCommand = async (input, context) => {
168
168
  const headers = sharedHeaders("DeleteUsageReportSubscription");
169
169
  let body;
170
- body = JSON.stringify(se_DeleteUsageReportSubscriptionRequest(input, context));
170
+ body = JSON.stringify(_json(input));
171
171
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
172
172
  };
173
173
  export const se_DeleteUserCommand = async (input, context) => {
174
174
  const headers = sharedHeaders("DeleteUser");
175
175
  let body;
176
- body = JSON.stringify(se_DeleteUserRequest(input, context));
176
+ body = JSON.stringify(_json(input));
177
177
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
178
178
  };
179
179
  export const se_DescribeAppBlocksCommand = async (input, context) => {
180
180
  const headers = sharedHeaders("DescribeAppBlocks");
181
181
  let body;
182
- body = JSON.stringify(se_DescribeAppBlocksRequest(input, context));
182
+ body = JSON.stringify(_json(input));
183
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
184
  };
185
185
  export const se_DescribeApplicationFleetAssociationsCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("DescribeApplicationFleetAssociations");
187
187
  let body;
188
- body = JSON.stringify(se_DescribeApplicationFleetAssociationsRequest(input, context));
188
+ body = JSON.stringify(_json(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  export const se_DescribeApplicationsCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("DescribeApplications");
193
193
  let body;
194
- body = JSON.stringify(se_DescribeApplicationsRequest(input, context));
194
+ body = JSON.stringify(_json(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  export const se_DescribeDirectoryConfigsCommand = async (input, context) => {
198
198
  const headers = sharedHeaders("DescribeDirectoryConfigs");
199
199
  let body;
200
- body = JSON.stringify(se_DescribeDirectoryConfigsRequest(input, context));
200
+ body = JSON.stringify(_json(input));
201
201
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
202
  };
203
203
  export const se_DescribeEntitlementsCommand = async (input, context) => {
204
204
  const headers = sharedHeaders("DescribeEntitlements");
205
205
  let body;
206
- body = JSON.stringify(se_DescribeEntitlementsRequest(input, context));
206
+ body = JSON.stringify(_json(input));
207
207
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
208
208
  };
209
209
  export const se_DescribeFleetsCommand = async (input, context) => {
210
210
  const headers = sharedHeaders("DescribeFleets");
211
211
  let body;
212
- body = JSON.stringify(se_DescribeFleetsRequest(input, context));
212
+ body = JSON.stringify(_json(input));
213
213
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
214
214
  };
215
215
  export const se_DescribeImageBuildersCommand = async (input, context) => {
216
216
  const headers = sharedHeaders("DescribeImageBuilders");
217
217
  let body;
218
- body = JSON.stringify(se_DescribeImageBuildersRequest(input, context));
218
+ body = JSON.stringify(_json(input));
219
219
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
220
220
  };
221
221
  export const se_DescribeImagePermissionsCommand = async (input, context) => {
222
222
  const headers = sharedHeaders("DescribeImagePermissions");
223
223
  let body;
224
- body = JSON.stringify(se_DescribeImagePermissionsRequest(input, context));
224
+ body = JSON.stringify(_json(input));
225
225
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
226
226
  };
227
227
  export const se_DescribeImagesCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("DescribeImages");
229
229
  let body;
230
- body = JSON.stringify(se_DescribeImagesRequest(input, context));
230
+ body = JSON.stringify(_json(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  export const se_DescribeSessionsCommand = async (input, context) => {
234
234
  const headers = sharedHeaders("DescribeSessions");
235
235
  let body;
236
- body = JSON.stringify(se_DescribeSessionsRequest(input, context));
236
+ body = JSON.stringify(_json(input));
237
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
238
  };
239
239
  export const se_DescribeStacksCommand = async (input, context) => {
240
240
  const headers = sharedHeaders("DescribeStacks");
241
241
  let body;
242
- body = JSON.stringify(se_DescribeStacksRequest(input, context));
242
+ body = JSON.stringify(_json(input));
243
243
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
244
244
  };
245
245
  export const se_DescribeUsageReportSubscriptionsCommand = async (input, context) => {
246
246
  const headers = sharedHeaders("DescribeUsageReportSubscriptions");
247
247
  let body;
248
- body = JSON.stringify(se_DescribeUsageReportSubscriptionsRequest(input, context));
248
+ body = JSON.stringify(_json(input));
249
249
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
250
250
  };
251
251
  export const se_DescribeUsersCommand = async (input, context) => {
252
252
  const headers = sharedHeaders("DescribeUsers");
253
253
  let body;
254
- body = JSON.stringify(se_DescribeUsersRequest(input, context));
254
+ body = JSON.stringify(_json(input));
255
255
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
256
  };
257
257
  export const se_DescribeUserStackAssociationsCommand = async (input, context) => {
258
258
  const headers = sharedHeaders("DescribeUserStackAssociations");
259
259
  let body;
260
- body = JSON.stringify(se_DescribeUserStackAssociationsRequest(input, context));
260
+ body = JSON.stringify(_json(input));
261
261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
262
262
  };
263
263
  export const se_DisableUserCommand = async (input, context) => {
264
264
  const headers = sharedHeaders("DisableUser");
265
265
  let body;
266
- body = JSON.stringify(se_DisableUserRequest(input, context));
266
+ body = JSON.stringify(_json(input));
267
267
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
268
  };
269
269
  export const se_DisassociateApplicationFleetCommand = async (input, context) => {
270
270
  const headers = sharedHeaders("DisassociateApplicationFleet");
271
271
  let body;
272
- body = JSON.stringify(se_DisassociateApplicationFleetRequest(input, context));
272
+ body = JSON.stringify(_json(input));
273
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
274
  };
275
275
  export const se_DisassociateApplicationFromEntitlementCommand = async (input, context) => {
276
276
  const headers = sharedHeaders("DisassociateApplicationFromEntitlement");
277
277
  let body;
278
- body = JSON.stringify(se_DisassociateApplicationFromEntitlementRequest(input, context));
278
+ body = JSON.stringify(_json(input));
279
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
280
  };
281
281
  export const se_DisassociateFleetCommand = async (input, context) => {
282
282
  const headers = sharedHeaders("DisassociateFleet");
283
283
  let body;
284
- body = JSON.stringify(se_DisassociateFleetRequest(input, context));
284
+ body = JSON.stringify(_json(input));
285
285
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
286
286
  };
287
287
  export const se_EnableUserCommand = async (input, context) => {
288
288
  const headers = sharedHeaders("EnableUser");
289
289
  let body;
290
- body = JSON.stringify(se_EnableUserRequest(input, context));
290
+ body = JSON.stringify(_json(input));
291
291
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
292
  };
293
293
  export const se_ExpireSessionCommand = async (input, context) => {
294
294
  const headers = sharedHeaders("ExpireSession");
295
295
  let body;
296
- body = JSON.stringify(se_ExpireSessionRequest(input, context));
296
+ body = JSON.stringify(_json(input));
297
297
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
298
298
  };
299
299
  export const se_ListAssociatedFleetsCommand = async (input, context) => {
300
300
  const headers = sharedHeaders("ListAssociatedFleets");
301
301
  let body;
302
- body = JSON.stringify(se_ListAssociatedFleetsRequest(input, context));
302
+ body = JSON.stringify(_json(input));
303
303
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
304
304
  };
305
305
  export const se_ListAssociatedStacksCommand = async (input, context) => {
306
306
  const headers = sharedHeaders("ListAssociatedStacks");
307
307
  let body;
308
- body = JSON.stringify(se_ListAssociatedStacksRequest(input, context));
308
+ body = JSON.stringify(_json(input));
309
309
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
310
  };
311
311
  export const se_ListEntitledApplicationsCommand = async (input, context) => {
312
312
  const headers = sharedHeaders("ListEntitledApplications");
313
313
  let body;
314
- body = JSON.stringify(se_ListEntitledApplicationsRequest(input, context));
314
+ body = JSON.stringify(_json(input));
315
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
316
  };
317
317
  export const se_ListTagsForResourceCommand = async (input, context) => {
318
318
  const headers = sharedHeaders("ListTagsForResource");
319
319
  let body;
320
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
320
+ body = JSON.stringify(_json(input));
321
321
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
322
322
  };
323
323
  export const se_StartFleetCommand = async (input, context) => {
324
324
  const headers = sharedHeaders("StartFleet");
325
325
  let body;
326
- body = JSON.stringify(se_StartFleetRequest(input, context));
326
+ body = JSON.stringify(_json(input));
327
327
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
328
  };
329
329
  export const se_StartImageBuilderCommand = async (input, context) => {
330
330
  const headers = sharedHeaders("StartImageBuilder");
331
331
  let body;
332
- body = JSON.stringify(se_StartImageBuilderRequest(input, context));
332
+ body = JSON.stringify(_json(input));
333
333
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
334
334
  };
335
335
  export const se_StopFleetCommand = async (input, context) => {
336
336
  const headers = sharedHeaders("StopFleet");
337
337
  let body;
338
- body = JSON.stringify(se_StopFleetRequest(input, context));
338
+ body = JSON.stringify(_json(input));
339
339
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
340
340
  };
341
341
  export const se_StopImageBuilderCommand = async (input, context) => {
342
342
  const headers = sharedHeaders("StopImageBuilder");
343
343
  let body;
344
- body = JSON.stringify(se_StopImageBuilderRequest(input, context));
344
+ body = JSON.stringify(_json(input));
345
345
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
346
346
  };
347
347
  export const se_TagResourceCommand = async (input, context) => {
348
348
  const headers = sharedHeaders("TagResource");
349
349
  let body;
350
- body = JSON.stringify(se_TagResourceRequest(input, context));
350
+ body = JSON.stringify(_json(input));
351
351
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
352
352
  };
353
353
  export const se_UntagResourceCommand = async (input, context) => {
354
354
  const headers = sharedHeaders("UntagResource");
355
355
  let body;
356
- body = JSON.stringify(se_UntagResourceRequest(input, context));
356
+ body = JSON.stringify(_json(input));
357
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
358
  };
359
359
  export const se_UpdateApplicationCommand = async (input, context) => {
360
360
  const headers = sharedHeaders("UpdateApplication");
361
361
  let body;
362
- body = JSON.stringify(se_UpdateApplicationRequest(input, context));
362
+ body = JSON.stringify(_json(input));
363
363
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
364
364
  };
365
365
  export const se_UpdateDirectoryConfigCommand = async (input, context) => {
366
366
  const headers = sharedHeaders("UpdateDirectoryConfig");
367
367
  let body;
368
- body = JSON.stringify(se_UpdateDirectoryConfigRequest(input, context));
368
+ body = JSON.stringify(_json(input));
369
369
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
370
370
  };
371
371
  export const se_UpdateEntitlementCommand = async (input, context) => {
372
372
  const headers = sharedHeaders("UpdateEntitlement");
373
373
  let body;
374
- body = JSON.stringify(se_UpdateEntitlementRequest(input, context));
374
+ body = JSON.stringify(_json(input));
375
375
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
376
376
  };
377
377
  export const se_UpdateFleetCommand = async (input, context) => {
378
378
  const headers = sharedHeaders("UpdateFleet");
379
379
  let body;
380
- body = JSON.stringify(se_UpdateFleetRequest(input, context));
380
+ body = JSON.stringify(_json(input));
381
381
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
382
382
  };
383
383
  export const se_UpdateImagePermissionsCommand = async (input, context) => {
384
384
  const headers = sharedHeaders("UpdateImagePermissions");
385
385
  let body;
386
- body = JSON.stringify(se_UpdateImagePermissionsRequest(input, context));
386
+ body = JSON.stringify(_json(input));
387
387
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
388
388
  };
389
389
  export const se_UpdateStackCommand = async (input, context) => {
390
390
  const headers = sharedHeaders("UpdateStack");
391
391
  let body;
392
- body = JSON.stringify(se_UpdateStackRequest(input, context));
392
+ body = JSON.stringify(_json(input));
393
393
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
394
394
  };
395
395
  export const de_AssociateApplicationFleetCommand = async (output, context) => {
@@ -398,12 +398,12 @@ export const de_AssociateApplicationFleetCommand = async (output, context) => {
398
398
  }
399
399
  const data = await parseBody(output.body, context);
400
400
  let contents = {};
401
- contents = de_AssociateApplicationFleetResult(data, context);
401
+ contents = _json(data);
402
402
  const response = {
403
403
  $metadata: deserializeMetadata(output),
404
404
  ...contents,
405
405
  };
406
- return Promise.resolve(response);
406
+ return response;
407
407
  };
408
408
  const de_AssociateApplicationFleetCommandError = async (output, context) => {
409
409
  const parsedOutput = {
@@ -429,10 +429,9 @@ const de_AssociateApplicationFleetCommandError = async (output, context) => {
429
429
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
430
430
  default:
431
431
  const parsedBody = parsedOutput.body;
432
- throwDefaultError({
432
+ return throwDefaultError({
433
433
  output,
434
434
  parsedBody,
435
- exceptionCtor: __BaseException,
436
435
  errorCode,
437
436
  });
438
437
  }
@@ -443,12 +442,12 @@ export const de_AssociateApplicationToEntitlementCommand = async (output, contex
443
442
  }
444
443
  const data = await parseBody(output.body, context);
445
444
  let contents = {};
446
- contents = de_AssociateApplicationToEntitlementResult(data, context);
445
+ contents = _json(data);
447
446
  const response = {
448
447
  $metadata: deserializeMetadata(output),
449
448
  ...contents,
450
449
  };
451
- return Promise.resolve(response);
450
+ return response;
452
451
  };
453
452
  const de_AssociateApplicationToEntitlementCommandError = async (output, context) => {
454
453
  const parsedOutput = {
@@ -471,10 +470,9 @@ const de_AssociateApplicationToEntitlementCommandError = async (output, context)
471
470
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
472
471
  default:
473
472
  const parsedBody = parsedOutput.body;
474
- throwDefaultError({
473
+ return throwDefaultError({
475
474
  output,
476
475
  parsedBody,
477
- exceptionCtor: __BaseException,
478
476
  errorCode,
479
477
  });
480
478
  }
@@ -485,12 +483,12 @@ export const de_AssociateFleetCommand = async (output, context) => {
485
483
  }
486
484
  const data = await parseBody(output.body, context);
487
485
  let contents = {};
488
- contents = de_AssociateFleetResult(data, context);
486
+ contents = _json(data);
489
487
  const response = {
490
488
  $metadata: deserializeMetadata(output),
491
489
  ...contents,
492
490
  };
493
- return Promise.resolve(response);
491
+ return response;
494
492
  };
495
493
  const de_AssociateFleetCommandError = async (output, context) => {
496
494
  const parsedOutput = {
@@ -519,10 +517,9 @@ const de_AssociateFleetCommandError = async (output, context) => {
519
517
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
520
518
  default:
521
519
  const parsedBody = parsedOutput.body;
522
- throwDefaultError({
520
+ return throwDefaultError({
523
521
  output,
524
522
  parsedBody,
525
- exceptionCtor: __BaseException,
526
523
  errorCode,
527
524
  });
528
525
  }
@@ -533,12 +530,12 @@ export const de_BatchAssociateUserStackCommand = async (output, context) => {
533
530
  }
534
531
  const data = await parseBody(output.body, context);
535
532
  let contents = {};
536
- contents = de_BatchAssociateUserStackResult(data, context);
533
+ contents = _json(data);
537
534
  const response = {
538
535
  $metadata: deserializeMetadata(output),
539
536
  ...contents,
540
537
  };
541
- return Promise.resolve(response);
538
+ return response;
542
539
  };
543
540
  const de_BatchAssociateUserStackCommandError = async (output, context) => {
544
541
  const parsedOutput = {
@@ -555,10 +552,9 @@ const de_BatchAssociateUserStackCommandError = async (output, context) => {
555
552
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
556
553
  default:
557
554
  const parsedBody = parsedOutput.body;
558
- throwDefaultError({
555
+ return throwDefaultError({
559
556
  output,
560
557
  parsedBody,
561
- exceptionCtor: __BaseException,
562
558
  errorCode,
563
559
  });
564
560
  }
@@ -569,12 +565,12 @@ export const de_BatchDisassociateUserStackCommand = async (output, context) => {
569
565
  }
570
566
  const data = await parseBody(output.body, context);
571
567
  let contents = {};
572
- contents = de_BatchDisassociateUserStackResult(data, context);
568
+ contents = _json(data);
573
569
  const response = {
574
570
  $metadata: deserializeMetadata(output),
575
571
  ...contents,
576
572
  };
577
- return Promise.resolve(response);
573
+ return response;
578
574
  };
579
575
  const de_BatchDisassociateUserStackCommandError = async (output, context) => {
580
576
  const parsedOutput = {
@@ -591,10 +587,9 @@ const de_BatchDisassociateUserStackCommandError = async (output, context) => {
591
587
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
592
588
  default:
593
589
  const parsedBody = parsedOutput.body;
594
- throwDefaultError({
590
+ return throwDefaultError({
595
591
  output,
596
592
  parsedBody,
597
- exceptionCtor: __BaseException,
598
593
  errorCode,
599
594
  });
600
595
  }
@@ -605,12 +600,12 @@ export const de_CopyImageCommand = async (output, context) => {
605
600
  }
606
601
  const data = await parseBody(output.body, context);
607
602
  let contents = {};
608
- contents = de_CopyImageResponse(data, context);
603
+ contents = _json(data);
609
604
  const response = {
610
605
  $metadata: deserializeMetadata(output),
611
606
  ...contents,
612
607
  };
613
- return Promise.resolve(response);
608
+ return response;
614
609
  };
615
610
  const de_CopyImageCommandError = async (output, context) => {
616
611
  const parsedOutput = {
@@ -639,10 +634,9 @@ const de_CopyImageCommandError = async (output, context) => {
639
634
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
640
635
  default:
641
636
  const parsedBody = parsedOutput.body;
642
- throwDefaultError({
637
+ return throwDefaultError({
643
638
  output,
644
639
  parsedBody,
645
- exceptionCtor: __BaseException,
646
640
  errorCode,
647
641
  });
648
642
  }
@@ -658,7 +652,7 @@ export const de_CreateAppBlockCommand = async (output, context) => {
658
652
  $metadata: deserializeMetadata(output),
659
653
  ...contents,
660
654
  };
661
- return Promise.resolve(response);
655
+ return response;
662
656
  };
663
657
  const de_CreateAppBlockCommandError = async (output, context) => {
664
658
  const parsedOutput = {
@@ -681,10 +675,9 @@ const de_CreateAppBlockCommandError = async (output, context) => {
681
675
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
682
676
  default:
683
677
  const parsedBody = parsedOutput.body;
684
- throwDefaultError({
678
+ return throwDefaultError({
685
679
  output,
686
680
  parsedBody,
687
- exceptionCtor: __BaseException,
688
681
  errorCode,
689
682
  });
690
683
  }
@@ -700,7 +693,7 @@ export const de_CreateApplicationCommand = async (output, context) => {
700
693
  $metadata: deserializeMetadata(output),
701
694
  ...contents,
702
695
  };
703
- return Promise.resolve(response);
696
+ return response;
704
697
  };
705
698
  const de_CreateApplicationCommandError = async (output, context) => {
706
699
  const parsedOutput = {
@@ -726,10 +719,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
726
719
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
727
720
  default:
728
721
  const parsedBody = parsedOutput.body;
729
- throwDefaultError({
722
+ return throwDefaultError({
730
723
  output,
731
724
  parsedBody,
732
- exceptionCtor: __BaseException,
733
725
  errorCode,
734
726
  });
735
727
  }
@@ -745,7 +737,7 @@ export const de_CreateDirectoryConfigCommand = async (output, context) => {
745
737
  $metadata: deserializeMetadata(output),
746
738
  ...contents,
747
739
  };
748
- return Promise.resolve(response);
740
+ return response;
749
741
  };
750
742
  const de_CreateDirectoryConfigCommandError = async (output, context) => {
751
743
  const parsedOutput = {
@@ -774,10 +766,9 @@ const de_CreateDirectoryConfigCommandError = async (output, context) => {
774
766
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
775
767
  default:
776
768
  const parsedBody = parsedOutput.body;
777
- throwDefaultError({
769
+ return throwDefaultError({
778
770
  output,
779
771
  parsedBody,
780
- exceptionCtor: __BaseException,
781
772
  errorCode,
782
773
  });
783
774
  }
@@ -793,7 +784,7 @@ export const de_CreateEntitlementCommand = async (output, context) => {
793
784
  $metadata: deserializeMetadata(output),
794
785
  ...contents,
795
786
  };
796
- return Promise.resolve(response);
787
+ return response;
797
788
  };
798
789
  const de_CreateEntitlementCommandError = async (output, context) => {
799
790
  const parsedOutput = {
@@ -816,10 +807,9 @@ const de_CreateEntitlementCommandError = async (output, context) => {
816
807
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
817
808
  default:
818
809
  const parsedBody = parsedOutput.body;
819
- throwDefaultError({
810
+ return throwDefaultError({
820
811
  output,
821
812
  parsedBody,
822
- exceptionCtor: __BaseException,
823
813
  errorCode,
824
814
  });
825
815
  }
@@ -835,7 +825,7 @@ export const de_CreateFleetCommand = async (output, context) => {
835
825
  $metadata: deserializeMetadata(output),
836
826
  ...contents,
837
827
  };
838
- return Promise.resolve(response);
828
+ return response;
839
829
  };
840
830
  const de_CreateFleetCommandError = async (output, context) => {
841
831
  const parsedOutput = {
@@ -879,10 +869,9 @@ const de_CreateFleetCommandError = async (output, context) => {
879
869
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
880
870
  default:
881
871
  const parsedBody = parsedOutput.body;
882
- throwDefaultError({
872
+ return throwDefaultError({
883
873
  output,
884
874
  parsedBody,
885
- exceptionCtor: __BaseException,
886
875
  errorCode,
887
876
  });
888
877
  }
@@ -898,7 +887,7 @@ export const de_CreateImageBuilderCommand = async (output, context) => {
898
887
  $metadata: deserializeMetadata(output),
899
888
  ...contents,
900
889
  };
901
- return Promise.resolve(response);
890
+ return response;
902
891
  };
903
892
  const de_CreateImageBuilderCommandError = async (output, context) => {
904
893
  const parsedOutput = {
@@ -942,10 +931,9 @@ const de_CreateImageBuilderCommandError = async (output, context) => {
942
931
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
943
932
  default:
944
933
  const parsedBody = parsedOutput.body;
945
- throwDefaultError({
934
+ return throwDefaultError({
946
935
  output,
947
936
  parsedBody,
948
- exceptionCtor: __BaseException,
949
937
  errorCode,
950
938
  });
951
939
  }
@@ -961,7 +949,7 @@ export const de_CreateImageBuilderStreamingURLCommand = async (output, context)
961
949
  $metadata: deserializeMetadata(output),
962
950
  ...contents,
963
951
  };
964
- return Promise.resolve(response);
952
+ return response;
965
953
  };
966
954
  const de_CreateImageBuilderStreamingURLCommandError = async (output, context) => {
967
955
  const parsedOutput = {
@@ -978,10 +966,9 @@ const de_CreateImageBuilderStreamingURLCommandError = async (output, context) =>
978
966
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
979
967
  default:
980
968
  const parsedBody = parsedOutput.body;
981
- throwDefaultError({
969
+ return throwDefaultError({
982
970
  output,
983
971
  parsedBody,
984
- exceptionCtor: __BaseException,
985
972
  errorCode,
986
973
  });
987
974
  }
@@ -997,7 +984,7 @@ export const de_CreateStackCommand = async (output, context) => {
997
984
  $metadata: deserializeMetadata(output),
998
985
  ...contents,
999
986
  };
1000
- return Promise.resolve(response);
987
+ return response;
1001
988
  };
1002
989
  const de_CreateStackCommandError = async (output, context) => {
1003
990
  const parsedOutput = {
@@ -1029,10 +1016,9 @@ const de_CreateStackCommandError = async (output, context) => {
1029
1016
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1030
1017
  default:
1031
1018
  const parsedBody = parsedOutput.body;
1032
- throwDefaultError({
1019
+ return throwDefaultError({
1033
1020
  output,
1034
1021
  parsedBody,
1035
- exceptionCtor: __BaseException,
1036
1022
  errorCode,
1037
1023
  });
1038
1024
  }
@@ -1048,7 +1034,7 @@ export const de_CreateStreamingURLCommand = async (output, context) => {
1048
1034
  $metadata: deserializeMetadata(output),
1049
1035
  ...contents,
1050
1036
  };
1051
- return Promise.resolve(response);
1037
+ return response;
1052
1038
  };
1053
1039
  const de_CreateStreamingURLCommandError = async (output, context) => {
1054
1040
  const parsedOutput = {
@@ -1071,10 +1057,9 @@ const de_CreateStreamingURLCommandError = async (output, context) => {
1071
1057
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1072
1058
  default:
1073
1059
  const parsedBody = parsedOutput.body;
1074
- throwDefaultError({
1060
+ return throwDefaultError({
1075
1061
  output,
1076
1062
  parsedBody,
1077
- exceptionCtor: __BaseException,
1078
1063
  errorCode,
1079
1064
  });
1080
1065
  }
@@ -1090,7 +1075,7 @@ export const de_CreateUpdatedImageCommand = async (output, context) => {
1090
1075
  $metadata: deserializeMetadata(output),
1091
1076
  ...contents,
1092
1077
  };
1093
- return Promise.resolve(response);
1078
+ return response;
1094
1079
  };
1095
1080
  const de_CreateUpdatedImageCommandError = async (output, context) => {
1096
1081
  const parsedOutput = {
@@ -1122,10 +1107,9 @@ const de_CreateUpdatedImageCommandError = async (output, context) => {
1122
1107
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1123
1108
  default:
1124
1109
  const parsedBody = parsedOutput.body;
1125
- throwDefaultError({
1110
+ return throwDefaultError({
1126
1111
  output,
1127
1112
  parsedBody,
1128
- exceptionCtor: __BaseException,
1129
1113
  errorCode,
1130
1114
  });
1131
1115
  }
@@ -1136,12 +1120,12 @@ export const de_CreateUsageReportSubscriptionCommand = async (output, context) =
1136
1120
  }
1137
1121
  const data = await parseBody(output.body, context);
1138
1122
  let contents = {};
1139
- contents = de_CreateUsageReportSubscriptionResult(data, context);
1123
+ contents = _json(data);
1140
1124
  const response = {
1141
1125
  $metadata: deserializeMetadata(output),
1142
1126
  ...contents,
1143
1127
  };
1144
- return Promise.resolve(response);
1128
+ return response;
1145
1129
  };
1146
1130
  const de_CreateUsageReportSubscriptionCommandError = async (output, context) => {
1147
1131
  const parsedOutput = {
@@ -1161,10 +1145,9 @@ const de_CreateUsageReportSubscriptionCommandError = async (output, context) =>
1161
1145
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1162
1146
  default:
1163
1147
  const parsedBody = parsedOutput.body;
1164
- throwDefaultError({
1148
+ return throwDefaultError({
1165
1149
  output,
1166
1150
  parsedBody,
1167
- exceptionCtor: __BaseException,
1168
1151
  errorCode,
1169
1152
  });
1170
1153
  }
@@ -1175,12 +1158,12 @@ export const de_CreateUserCommand = async (output, context) => {
1175
1158
  }
1176
1159
  const data = await parseBody(output.body, context);
1177
1160
  let contents = {};
1178
- contents = de_CreateUserResult(data, context);
1161
+ contents = _json(data);
1179
1162
  const response = {
1180
1163
  $metadata: deserializeMetadata(output),
1181
1164
  ...contents,
1182
1165
  };
1183
- return Promise.resolve(response);
1166
+ return response;
1184
1167
  };
1185
1168
  const de_CreateUserCommandError = async (output, context) => {
1186
1169
  const parsedOutput = {
@@ -1206,10 +1189,9 @@ const de_CreateUserCommandError = async (output, context) => {
1206
1189
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1207
1190
  default:
1208
1191
  const parsedBody = parsedOutput.body;
1209
- throwDefaultError({
1192
+ return throwDefaultError({
1210
1193
  output,
1211
1194
  parsedBody,
1212
- exceptionCtor: __BaseException,
1213
1195
  errorCode,
1214
1196
  });
1215
1197
  }
@@ -1220,12 +1202,12 @@ export const de_DeleteAppBlockCommand = async (output, context) => {
1220
1202
  }
1221
1203
  const data = await parseBody(output.body, context);
1222
1204
  let contents = {};
1223
- contents = de_DeleteAppBlockResult(data, context);
1205
+ contents = _json(data);
1224
1206
  const response = {
1225
1207
  $metadata: deserializeMetadata(output),
1226
1208
  ...contents,
1227
1209
  };
1228
- return Promise.resolve(response);
1210
+ return response;
1229
1211
  };
1230
1212
  const de_DeleteAppBlockCommandError = async (output, context) => {
1231
1213
  const parsedOutput = {
@@ -1245,10 +1227,9 @@ const de_DeleteAppBlockCommandError = async (output, context) => {
1245
1227
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1246
1228
  default:
1247
1229
  const parsedBody = parsedOutput.body;
1248
- throwDefaultError({
1230
+ return throwDefaultError({
1249
1231
  output,
1250
1232
  parsedBody,
1251
- exceptionCtor: __BaseException,
1252
1233
  errorCode,
1253
1234
  });
1254
1235
  }
@@ -1259,12 +1240,12 @@ export const de_DeleteApplicationCommand = async (output, context) => {
1259
1240
  }
1260
1241
  const data = await parseBody(output.body, context);
1261
1242
  let contents = {};
1262
- contents = de_DeleteApplicationResult(data, context);
1243
+ contents = _json(data);
1263
1244
  const response = {
1264
1245
  $metadata: deserializeMetadata(output),
1265
1246
  ...contents,
1266
1247
  };
1267
- return Promise.resolve(response);
1248
+ return response;
1268
1249
  };
1269
1250
  const de_DeleteApplicationCommandError = async (output, context) => {
1270
1251
  const parsedOutput = {
@@ -1287,10 +1268,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
1287
1268
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1288
1269
  default:
1289
1270
  const parsedBody = parsedOutput.body;
1290
- throwDefaultError({
1271
+ return throwDefaultError({
1291
1272
  output,
1292
1273
  parsedBody,
1293
- exceptionCtor: __BaseException,
1294
1274
  errorCode,
1295
1275
  });
1296
1276
  }
@@ -1301,12 +1281,12 @@ export const de_DeleteDirectoryConfigCommand = async (output, context) => {
1301
1281
  }
1302
1282
  const data = await parseBody(output.body, context);
1303
1283
  let contents = {};
1304
- contents = de_DeleteDirectoryConfigResult(data, context);
1284
+ contents = _json(data);
1305
1285
  const response = {
1306
1286
  $metadata: deserializeMetadata(output),
1307
1287
  ...contents,
1308
1288
  };
1309
- return Promise.resolve(response);
1289
+ return response;
1310
1290
  };
1311
1291
  const de_DeleteDirectoryConfigCommandError = async (output, context) => {
1312
1292
  const parsedOutput = {
@@ -1323,10 +1303,9 @@ const de_DeleteDirectoryConfigCommandError = async (output, context) => {
1323
1303
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1324
1304
  default:
1325
1305
  const parsedBody = parsedOutput.body;
1326
- throwDefaultError({
1306
+ return throwDefaultError({
1327
1307
  output,
1328
1308
  parsedBody,
1329
- exceptionCtor: __BaseException,
1330
1309
  errorCode,
1331
1310
  });
1332
1311
  }
@@ -1337,12 +1316,12 @@ export const de_DeleteEntitlementCommand = async (output, context) => {
1337
1316
  }
1338
1317
  const data = await parseBody(output.body, context);
1339
1318
  let contents = {};
1340
- contents = de_DeleteEntitlementResult(data, context);
1319
+ contents = _json(data);
1341
1320
  const response = {
1342
1321
  $metadata: deserializeMetadata(output),
1343
1322
  ...contents,
1344
1323
  };
1345
- return Promise.resolve(response);
1324
+ return response;
1346
1325
  };
1347
1326
  const de_DeleteEntitlementCommandError = async (output, context) => {
1348
1327
  const parsedOutput = {
@@ -1365,10 +1344,9 @@ const de_DeleteEntitlementCommandError = async (output, context) => {
1365
1344
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1366
1345
  default:
1367
1346
  const parsedBody = parsedOutput.body;
1368
- throwDefaultError({
1347
+ return throwDefaultError({
1369
1348
  output,
1370
1349
  parsedBody,
1371
- exceptionCtor: __BaseException,
1372
1350
  errorCode,
1373
1351
  });
1374
1352
  }
@@ -1379,12 +1357,12 @@ export const de_DeleteFleetCommand = async (output, context) => {
1379
1357
  }
1380
1358
  const data = await parseBody(output.body, context);
1381
1359
  let contents = {};
1382
- contents = de_DeleteFleetResult(data, context);
1360
+ contents = _json(data);
1383
1361
  const response = {
1384
1362
  $metadata: deserializeMetadata(output),
1385
1363
  ...contents,
1386
1364
  };
1387
- return Promise.resolve(response);
1365
+ return response;
1388
1366
  };
1389
1367
  const de_DeleteFleetCommandError = async (output, context) => {
1390
1368
  const parsedOutput = {
@@ -1404,10 +1382,9 @@ const de_DeleteFleetCommandError = async (output, context) => {
1404
1382
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1405
1383
  default:
1406
1384
  const parsedBody = parsedOutput.body;
1407
- throwDefaultError({
1385
+ return throwDefaultError({
1408
1386
  output,
1409
1387
  parsedBody,
1410
- exceptionCtor: __BaseException,
1411
1388
  errorCode,
1412
1389
  });
1413
1390
  }
@@ -1423,7 +1400,7 @@ export const de_DeleteImageCommand = async (output, context) => {
1423
1400
  $metadata: deserializeMetadata(output),
1424
1401
  ...contents,
1425
1402
  };
1426
- return Promise.resolve(response);
1403
+ return response;
1427
1404
  };
1428
1405
  const de_DeleteImageCommandError = async (output, context) => {
1429
1406
  const parsedOutput = {
@@ -1446,10 +1423,9 @@ const de_DeleteImageCommandError = async (output, context) => {
1446
1423
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1447
1424
  default:
1448
1425
  const parsedBody = parsedOutput.body;
1449
- throwDefaultError({
1426
+ return throwDefaultError({
1450
1427
  output,
1451
1428
  parsedBody,
1452
- exceptionCtor: __BaseException,
1453
1429
  errorCode,
1454
1430
  });
1455
1431
  }
@@ -1465,7 +1441,7 @@ export const de_DeleteImageBuilderCommand = async (output, context) => {
1465
1441
  $metadata: deserializeMetadata(output),
1466
1442
  ...contents,
1467
1443
  };
1468
- return Promise.resolve(response);
1444
+ return response;
1469
1445
  };
1470
1446
  const de_DeleteImageBuilderCommandError = async (output, context) => {
1471
1447
  const parsedOutput = {
@@ -1485,10 +1461,9 @@ const de_DeleteImageBuilderCommandError = async (output, context) => {
1485
1461
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1486
1462
  default:
1487
1463
  const parsedBody = parsedOutput.body;
1488
- throwDefaultError({
1464
+ return throwDefaultError({
1489
1465
  output,
1490
1466
  parsedBody,
1491
- exceptionCtor: __BaseException,
1492
1467
  errorCode,
1493
1468
  });
1494
1469
  }
@@ -1499,12 +1474,12 @@ export const de_DeleteImagePermissionsCommand = async (output, context) => {
1499
1474
  }
1500
1475
  const data = await parseBody(output.body, context);
1501
1476
  let contents = {};
1502
- contents = de_DeleteImagePermissionsResult(data, context);
1477
+ contents = _json(data);
1503
1478
  const response = {
1504
1479
  $metadata: deserializeMetadata(output),
1505
1480
  ...contents,
1506
1481
  };
1507
- return Promise.resolve(response);
1482
+ return response;
1508
1483
  };
1509
1484
  const de_DeleteImagePermissionsCommandError = async (output, context) => {
1510
1485
  const parsedOutput = {
@@ -1521,10 +1496,9 @@ const de_DeleteImagePermissionsCommandError = async (output, context) => {
1521
1496
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1522
1497
  default:
1523
1498
  const parsedBody = parsedOutput.body;
1524
- throwDefaultError({
1499
+ return throwDefaultError({
1525
1500
  output,
1526
1501
  parsedBody,
1527
- exceptionCtor: __BaseException,
1528
1502
  errorCode,
1529
1503
  });
1530
1504
  }
@@ -1535,12 +1509,12 @@ export const de_DeleteStackCommand = async (output, context) => {
1535
1509
  }
1536
1510
  const data = await parseBody(output.body, context);
1537
1511
  let contents = {};
1538
- contents = de_DeleteStackResult(data, context);
1512
+ contents = _json(data);
1539
1513
  const response = {
1540
1514
  $metadata: deserializeMetadata(output),
1541
1515
  ...contents,
1542
1516
  };
1543
- return Promise.resolve(response);
1517
+ return response;
1544
1518
  };
1545
1519
  const de_DeleteStackCommandError = async (output, context) => {
1546
1520
  const parsedOutput = {
@@ -1563,10 +1537,9 @@ const de_DeleteStackCommandError = async (output, context) => {
1563
1537
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1564
1538
  default:
1565
1539
  const parsedBody = parsedOutput.body;
1566
- throwDefaultError({
1540
+ return throwDefaultError({
1567
1541
  output,
1568
1542
  parsedBody,
1569
- exceptionCtor: __BaseException,
1570
1543
  errorCode,
1571
1544
  });
1572
1545
  }
@@ -1577,12 +1550,12 @@ export const de_DeleteUsageReportSubscriptionCommand = async (output, context) =
1577
1550
  }
1578
1551
  const data = await parseBody(output.body, context);
1579
1552
  let contents = {};
1580
- contents = de_DeleteUsageReportSubscriptionResult(data, context);
1553
+ contents = _json(data);
1581
1554
  const response = {
1582
1555
  $metadata: deserializeMetadata(output),
1583
1556
  ...contents,
1584
1557
  };
1585
- return Promise.resolve(response);
1558
+ return response;
1586
1559
  };
1587
1560
  const de_DeleteUsageReportSubscriptionCommandError = async (output, context) => {
1588
1561
  const parsedOutput = {
@@ -1599,10 +1572,9 @@ const de_DeleteUsageReportSubscriptionCommandError = async (output, context) =>
1599
1572
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1600
1573
  default:
1601
1574
  const parsedBody = parsedOutput.body;
1602
- throwDefaultError({
1575
+ return throwDefaultError({
1603
1576
  output,
1604
1577
  parsedBody,
1605
- exceptionCtor: __BaseException,
1606
1578
  errorCode,
1607
1579
  });
1608
1580
  }
@@ -1613,12 +1585,12 @@ export const de_DeleteUserCommand = async (output, context) => {
1613
1585
  }
1614
1586
  const data = await parseBody(output.body, context);
1615
1587
  let contents = {};
1616
- contents = de_DeleteUserResult(data, context);
1588
+ contents = _json(data);
1617
1589
  const response = {
1618
1590
  $metadata: deserializeMetadata(output),
1619
1591
  ...contents,
1620
1592
  };
1621
- return Promise.resolve(response);
1593
+ return response;
1622
1594
  };
1623
1595
  const de_DeleteUserCommandError = async (output, context) => {
1624
1596
  const parsedOutput = {
@@ -1632,10 +1604,9 @@ const de_DeleteUserCommandError = async (output, context) => {
1632
1604
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1633
1605
  default:
1634
1606
  const parsedBody = parsedOutput.body;
1635
- throwDefaultError({
1607
+ return throwDefaultError({
1636
1608
  output,
1637
1609
  parsedBody,
1638
- exceptionCtor: __BaseException,
1639
1610
  errorCode,
1640
1611
  });
1641
1612
  }
@@ -1651,7 +1622,7 @@ export const de_DescribeAppBlocksCommand = async (output, context) => {
1651
1622
  $metadata: deserializeMetadata(output),
1652
1623
  ...contents,
1653
1624
  };
1654
- return Promise.resolve(response);
1625
+ return response;
1655
1626
  };
1656
1627
  const de_DescribeAppBlocksCommandError = async (output, context) => {
1657
1628
  const parsedOutput = {
@@ -1668,10 +1639,9 @@ const de_DescribeAppBlocksCommandError = async (output, context) => {
1668
1639
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1669
1640
  default:
1670
1641
  const parsedBody = parsedOutput.body;
1671
- throwDefaultError({
1642
+ return throwDefaultError({
1672
1643
  output,
1673
1644
  parsedBody,
1674
- exceptionCtor: __BaseException,
1675
1645
  errorCode,
1676
1646
  });
1677
1647
  }
@@ -1682,12 +1652,12 @@ export const de_DescribeApplicationFleetAssociationsCommand = async (output, con
1682
1652
  }
1683
1653
  const data = await parseBody(output.body, context);
1684
1654
  let contents = {};
1685
- contents = de_DescribeApplicationFleetAssociationsResult(data, context);
1655
+ contents = _json(data);
1686
1656
  const response = {
1687
1657
  $metadata: deserializeMetadata(output),
1688
1658
  ...contents,
1689
1659
  };
1690
- return Promise.resolve(response);
1660
+ return response;
1691
1661
  };
1692
1662
  const de_DescribeApplicationFleetAssociationsCommandError = async (output, context) => {
1693
1663
  const parsedOutput = {
@@ -1704,10 +1674,9 @@ const de_DescribeApplicationFleetAssociationsCommandError = async (output, conte
1704
1674
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1705
1675
  default:
1706
1676
  const parsedBody = parsedOutput.body;
1707
- throwDefaultError({
1677
+ return throwDefaultError({
1708
1678
  output,
1709
1679
  parsedBody,
1710
- exceptionCtor: __BaseException,
1711
1680
  errorCode,
1712
1681
  });
1713
1682
  }
@@ -1723,7 +1692,7 @@ export const de_DescribeApplicationsCommand = async (output, context) => {
1723
1692
  $metadata: deserializeMetadata(output),
1724
1693
  ...contents,
1725
1694
  };
1726
- return Promise.resolve(response);
1695
+ return response;
1727
1696
  };
1728
1697
  const de_DescribeApplicationsCommandError = async (output, context) => {
1729
1698
  const parsedOutput = {
@@ -1740,10 +1709,9 @@ const de_DescribeApplicationsCommandError = async (output, context) => {
1740
1709
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1741
1710
  default:
1742
1711
  const parsedBody = parsedOutput.body;
1743
- throwDefaultError({
1712
+ return throwDefaultError({
1744
1713
  output,
1745
1714
  parsedBody,
1746
- exceptionCtor: __BaseException,
1747
1715
  errorCode,
1748
1716
  });
1749
1717
  }
@@ -1759,7 +1727,7 @@ export const de_DescribeDirectoryConfigsCommand = async (output, context) => {
1759
1727
  $metadata: deserializeMetadata(output),
1760
1728
  ...contents,
1761
1729
  };
1762
- return Promise.resolve(response);
1730
+ return response;
1763
1731
  };
1764
1732
  const de_DescribeDirectoryConfigsCommandError = async (output, context) => {
1765
1733
  const parsedOutput = {
@@ -1773,10 +1741,9 @@ const de_DescribeDirectoryConfigsCommandError = async (output, context) => {
1773
1741
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1774
1742
  default:
1775
1743
  const parsedBody = parsedOutput.body;
1776
- throwDefaultError({
1744
+ return throwDefaultError({
1777
1745
  output,
1778
1746
  parsedBody,
1779
- exceptionCtor: __BaseException,
1780
1747
  errorCode,
1781
1748
  });
1782
1749
  }
@@ -1792,7 +1759,7 @@ export const de_DescribeEntitlementsCommand = async (output, context) => {
1792
1759
  $metadata: deserializeMetadata(output),
1793
1760
  ...contents,
1794
1761
  };
1795
- return Promise.resolve(response);
1762
+ return response;
1796
1763
  };
1797
1764
  const de_DescribeEntitlementsCommandError = async (output, context) => {
1798
1765
  const parsedOutput = {
@@ -1812,10 +1779,9 @@ const de_DescribeEntitlementsCommandError = async (output, context) => {
1812
1779
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1813
1780
  default:
1814
1781
  const parsedBody = parsedOutput.body;
1815
- throwDefaultError({
1782
+ return throwDefaultError({
1816
1783
  output,
1817
1784
  parsedBody,
1818
- exceptionCtor: __BaseException,
1819
1785
  errorCode,
1820
1786
  });
1821
1787
  }
@@ -1831,7 +1797,7 @@ export const de_DescribeFleetsCommand = async (output, context) => {
1831
1797
  $metadata: deserializeMetadata(output),
1832
1798
  ...contents,
1833
1799
  };
1834
- return Promise.resolve(response);
1800
+ return response;
1835
1801
  };
1836
1802
  const de_DescribeFleetsCommandError = async (output, context) => {
1837
1803
  const parsedOutput = {
@@ -1845,10 +1811,9 @@ const de_DescribeFleetsCommandError = async (output, context) => {
1845
1811
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1846
1812
  default:
1847
1813
  const parsedBody = parsedOutput.body;
1848
- throwDefaultError({
1814
+ return throwDefaultError({
1849
1815
  output,
1850
1816
  parsedBody,
1851
- exceptionCtor: __BaseException,
1852
1817
  errorCode,
1853
1818
  });
1854
1819
  }
@@ -1864,7 +1829,7 @@ export const de_DescribeImageBuildersCommand = async (output, context) => {
1864
1829
  $metadata: deserializeMetadata(output),
1865
1830
  ...contents,
1866
1831
  };
1867
- return Promise.resolve(response);
1832
+ return response;
1868
1833
  };
1869
1834
  const de_DescribeImageBuildersCommandError = async (output, context) => {
1870
1835
  const parsedOutput = {
@@ -1878,10 +1843,9 @@ const de_DescribeImageBuildersCommandError = async (output, context) => {
1878
1843
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1879
1844
  default:
1880
1845
  const parsedBody = parsedOutput.body;
1881
- throwDefaultError({
1846
+ return throwDefaultError({
1882
1847
  output,
1883
1848
  parsedBody,
1884
- exceptionCtor: __BaseException,
1885
1849
  errorCode,
1886
1850
  });
1887
1851
  }
@@ -1892,12 +1856,12 @@ export const de_DescribeImagePermissionsCommand = async (output, context) => {
1892
1856
  }
1893
1857
  const data = await parseBody(output.body, context);
1894
1858
  let contents = {};
1895
- contents = de_DescribeImagePermissionsResult(data, context);
1859
+ contents = _json(data);
1896
1860
  const response = {
1897
1861
  $metadata: deserializeMetadata(output),
1898
1862
  ...contents,
1899
1863
  };
1900
- return Promise.resolve(response);
1864
+ return response;
1901
1865
  };
1902
1866
  const de_DescribeImagePermissionsCommandError = async (output, context) => {
1903
1867
  const parsedOutput = {
@@ -1911,10 +1875,9 @@ const de_DescribeImagePermissionsCommandError = async (output, context) => {
1911
1875
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1912
1876
  default:
1913
1877
  const parsedBody = parsedOutput.body;
1914
- throwDefaultError({
1878
+ return throwDefaultError({
1915
1879
  output,
1916
1880
  parsedBody,
1917
- exceptionCtor: __BaseException,
1918
1881
  errorCode,
1919
1882
  });
1920
1883
  }
@@ -1930,7 +1893,7 @@ export const de_DescribeImagesCommand = async (output, context) => {
1930
1893
  $metadata: deserializeMetadata(output),
1931
1894
  ...contents,
1932
1895
  };
1933
- return Promise.resolve(response);
1896
+ return response;
1934
1897
  };
1935
1898
  const de_DescribeImagesCommandError = async (output, context) => {
1936
1899
  const parsedOutput = {
@@ -1947,10 +1910,9 @@ const de_DescribeImagesCommandError = async (output, context) => {
1947
1910
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1948
1911
  default:
1949
1912
  const parsedBody = parsedOutput.body;
1950
- throwDefaultError({
1913
+ return throwDefaultError({
1951
1914
  output,
1952
1915
  parsedBody,
1953
- exceptionCtor: __BaseException,
1954
1916
  errorCode,
1955
1917
  });
1956
1918
  }
@@ -1966,7 +1928,7 @@ export const de_DescribeSessionsCommand = async (output, context) => {
1966
1928
  $metadata: deserializeMetadata(output),
1967
1929
  ...contents,
1968
1930
  };
1969
- return Promise.resolve(response);
1931
+ return response;
1970
1932
  };
1971
1933
  const de_DescribeSessionsCommandError = async (output, context) => {
1972
1934
  const parsedOutput = {
@@ -1980,10 +1942,9 @@ const de_DescribeSessionsCommandError = async (output, context) => {
1980
1942
  throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1981
1943
  default:
1982
1944
  const parsedBody = parsedOutput.body;
1983
- throwDefaultError({
1945
+ return throwDefaultError({
1984
1946
  output,
1985
1947
  parsedBody,
1986
- exceptionCtor: __BaseException,
1987
1948
  errorCode,
1988
1949
  });
1989
1950
  }
@@ -1999,7 +1960,7 @@ export const de_DescribeStacksCommand = async (output, context) => {
1999
1960
  $metadata: deserializeMetadata(output),
2000
1961
  ...contents,
2001
1962
  };
2002
- return Promise.resolve(response);
1963
+ return response;
2003
1964
  };
2004
1965
  const de_DescribeStacksCommandError = async (output, context) => {
2005
1966
  const parsedOutput = {
@@ -2013,10 +1974,9 @@ const de_DescribeStacksCommandError = async (output, context) => {
2013
1974
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2014
1975
  default:
2015
1976
  const parsedBody = parsedOutput.body;
2016
- throwDefaultError({
1977
+ return throwDefaultError({
2017
1978
  output,
2018
1979
  parsedBody,
2019
- exceptionCtor: __BaseException,
2020
1980
  errorCode,
2021
1981
  });
2022
1982
  }
@@ -2032,7 +1992,7 @@ export const de_DescribeUsageReportSubscriptionsCommand = async (output, context
2032
1992
  $metadata: deserializeMetadata(output),
2033
1993
  ...contents,
2034
1994
  };
2035
- return Promise.resolve(response);
1995
+ return response;
2036
1996
  };
2037
1997
  const de_DescribeUsageReportSubscriptionsCommandError = async (output, context) => {
2038
1998
  const parsedOutput = {
@@ -2049,10 +2009,9 @@ const de_DescribeUsageReportSubscriptionsCommandError = async (output, context)
2049
2009
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2050
2010
  default:
2051
2011
  const parsedBody = parsedOutput.body;
2052
- throwDefaultError({
2012
+ return throwDefaultError({
2053
2013
  output,
2054
2014
  parsedBody,
2055
- exceptionCtor: __BaseException,
2056
2015
  errorCode,
2057
2016
  });
2058
2017
  }
@@ -2068,7 +2027,7 @@ export const de_DescribeUsersCommand = async (output, context) => {
2068
2027
  $metadata: deserializeMetadata(output),
2069
2028
  ...contents,
2070
2029
  };
2071
- return Promise.resolve(response);
2030
+ return response;
2072
2031
  };
2073
2032
  const de_DescribeUsersCommandError = async (output, context) => {
2074
2033
  const parsedOutput = {
@@ -2088,10 +2047,9 @@ const de_DescribeUsersCommandError = async (output, context) => {
2088
2047
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2089
2048
  default:
2090
2049
  const parsedBody = parsedOutput.body;
2091
- throwDefaultError({
2050
+ return throwDefaultError({
2092
2051
  output,
2093
2052
  parsedBody,
2094
- exceptionCtor: __BaseException,
2095
2053
  errorCode,
2096
2054
  });
2097
2055
  }
@@ -2102,12 +2060,12 @@ export const de_DescribeUserStackAssociationsCommand = async (output, context) =
2102
2060
  }
2103
2061
  const data = await parseBody(output.body, context);
2104
2062
  let contents = {};
2105
- contents = de_DescribeUserStackAssociationsResult(data, context);
2063
+ contents = _json(data);
2106
2064
  const response = {
2107
2065
  $metadata: deserializeMetadata(output),
2108
2066
  ...contents,
2109
2067
  };
2110
- return Promise.resolve(response);
2068
+ return response;
2111
2069
  };
2112
2070
  const de_DescribeUserStackAssociationsCommandError = async (output, context) => {
2113
2071
  const parsedOutput = {
@@ -2124,10 +2082,9 @@ const de_DescribeUserStackAssociationsCommandError = async (output, context) =>
2124
2082
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2125
2083
  default:
2126
2084
  const parsedBody = parsedOutput.body;
2127
- throwDefaultError({
2085
+ return throwDefaultError({
2128
2086
  output,
2129
2087
  parsedBody,
2130
- exceptionCtor: __BaseException,
2131
2088
  errorCode,
2132
2089
  });
2133
2090
  }
@@ -2138,12 +2095,12 @@ export const de_DisableUserCommand = async (output, context) => {
2138
2095
  }
2139
2096
  const data = await parseBody(output.body, context);
2140
2097
  let contents = {};
2141
- contents = de_DisableUserResult(data, context);
2098
+ contents = _json(data);
2142
2099
  const response = {
2143
2100
  $metadata: deserializeMetadata(output),
2144
2101
  ...contents,
2145
2102
  };
2146
- return Promise.resolve(response);
2103
+ return response;
2147
2104
  };
2148
2105
  const de_DisableUserCommandError = async (output, context) => {
2149
2106
  const parsedOutput = {
@@ -2157,10 +2114,9 @@ const de_DisableUserCommandError = async (output, context) => {
2157
2114
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2158
2115
  default:
2159
2116
  const parsedBody = parsedOutput.body;
2160
- throwDefaultError({
2117
+ return throwDefaultError({
2161
2118
  output,
2162
2119
  parsedBody,
2163
- exceptionCtor: __BaseException,
2164
2120
  errorCode,
2165
2121
  });
2166
2122
  }
@@ -2171,12 +2127,12 @@ export const de_DisassociateApplicationFleetCommand = async (output, context) =>
2171
2127
  }
2172
2128
  const data = await parseBody(output.body, context);
2173
2129
  let contents = {};
2174
- contents = de_DisassociateApplicationFleetResult(data, context);
2130
+ contents = _json(data);
2175
2131
  const response = {
2176
2132
  $metadata: deserializeMetadata(output),
2177
2133
  ...contents,
2178
2134
  };
2179
- return Promise.resolve(response);
2135
+ return response;
2180
2136
  };
2181
2137
  const de_DisassociateApplicationFleetCommandError = async (output, context) => {
2182
2138
  const parsedOutput = {
@@ -2196,10 +2152,9 @@ const de_DisassociateApplicationFleetCommandError = async (output, context) => {
2196
2152
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2197
2153
  default:
2198
2154
  const parsedBody = parsedOutput.body;
2199
- throwDefaultError({
2155
+ return throwDefaultError({
2200
2156
  output,
2201
2157
  parsedBody,
2202
- exceptionCtor: __BaseException,
2203
2158
  errorCode,
2204
2159
  });
2205
2160
  }
@@ -2210,12 +2165,12 @@ export const de_DisassociateApplicationFromEntitlementCommand = async (output, c
2210
2165
  }
2211
2166
  const data = await parseBody(output.body, context);
2212
2167
  let contents = {};
2213
- contents = de_DisassociateApplicationFromEntitlementResult(data, context);
2168
+ contents = _json(data);
2214
2169
  const response = {
2215
2170
  $metadata: deserializeMetadata(output),
2216
2171
  ...contents,
2217
2172
  };
2218
- return Promise.resolve(response);
2173
+ return response;
2219
2174
  };
2220
2175
  const de_DisassociateApplicationFromEntitlementCommandError = async (output, context) => {
2221
2176
  const parsedOutput = {
@@ -2235,10 +2190,9 @@ const de_DisassociateApplicationFromEntitlementCommandError = async (output, con
2235
2190
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2236
2191
  default:
2237
2192
  const parsedBody = parsedOutput.body;
2238
- throwDefaultError({
2193
+ return throwDefaultError({
2239
2194
  output,
2240
2195
  parsedBody,
2241
- exceptionCtor: __BaseException,
2242
2196
  errorCode,
2243
2197
  });
2244
2198
  }
@@ -2249,12 +2203,12 @@ export const de_DisassociateFleetCommand = async (output, context) => {
2249
2203
  }
2250
2204
  const data = await parseBody(output.body, context);
2251
2205
  let contents = {};
2252
- contents = de_DisassociateFleetResult(data, context);
2206
+ contents = _json(data);
2253
2207
  const response = {
2254
2208
  $metadata: deserializeMetadata(output),
2255
2209
  ...contents,
2256
2210
  };
2257
- return Promise.resolve(response);
2211
+ return response;
2258
2212
  };
2259
2213
  const de_DisassociateFleetCommandError = async (output, context) => {
2260
2214
  const parsedOutput = {
@@ -2277,10 +2231,9 @@ const de_DisassociateFleetCommandError = async (output, context) => {
2277
2231
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2278
2232
  default:
2279
2233
  const parsedBody = parsedOutput.body;
2280
- throwDefaultError({
2234
+ return throwDefaultError({
2281
2235
  output,
2282
2236
  parsedBody,
2283
- exceptionCtor: __BaseException,
2284
2237
  errorCode,
2285
2238
  });
2286
2239
  }
@@ -2291,12 +2244,12 @@ export const de_EnableUserCommand = async (output, context) => {
2291
2244
  }
2292
2245
  const data = await parseBody(output.body, context);
2293
2246
  let contents = {};
2294
- contents = de_EnableUserResult(data, context);
2247
+ contents = _json(data);
2295
2248
  const response = {
2296
2249
  $metadata: deserializeMetadata(output),
2297
2250
  ...contents,
2298
2251
  };
2299
- return Promise.resolve(response);
2252
+ return response;
2300
2253
  };
2301
2254
  const de_EnableUserCommandError = async (output, context) => {
2302
2255
  const parsedOutput = {
@@ -2313,10 +2266,9 @@ const de_EnableUserCommandError = async (output, context) => {
2313
2266
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2314
2267
  default:
2315
2268
  const parsedBody = parsedOutput.body;
2316
- throwDefaultError({
2269
+ return throwDefaultError({
2317
2270
  output,
2318
2271
  parsedBody,
2319
- exceptionCtor: __BaseException,
2320
2272
  errorCode,
2321
2273
  });
2322
2274
  }
@@ -2327,12 +2279,12 @@ export const de_ExpireSessionCommand = async (output, context) => {
2327
2279
  }
2328
2280
  const data = await parseBody(output.body, context);
2329
2281
  let contents = {};
2330
- contents = de_ExpireSessionResult(data, context);
2282
+ contents = _json(data);
2331
2283
  const response = {
2332
2284
  $metadata: deserializeMetadata(output),
2333
2285
  ...contents,
2334
2286
  };
2335
- return Promise.resolve(response);
2287
+ return response;
2336
2288
  };
2337
2289
  const de_ExpireSessionCommandError = async (output, context) => {
2338
2290
  const parsedOutput = {
@@ -2341,10 +2293,9 @@ const de_ExpireSessionCommandError = async (output, context) => {
2341
2293
  };
2342
2294
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2343
2295
  const parsedBody = parsedOutput.body;
2344
- throwDefaultError({
2296
+ return throwDefaultError({
2345
2297
  output,
2346
2298
  parsedBody,
2347
- exceptionCtor: __BaseException,
2348
2299
  errorCode,
2349
2300
  });
2350
2301
  };
@@ -2354,12 +2305,12 @@ export const de_ListAssociatedFleetsCommand = async (output, context) => {
2354
2305
  }
2355
2306
  const data = await parseBody(output.body, context);
2356
2307
  let contents = {};
2357
- contents = de_ListAssociatedFleetsResult(data, context);
2308
+ contents = _json(data);
2358
2309
  const response = {
2359
2310
  $metadata: deserializeMetadata(output),
2360
2311
  ...contents,
2361
2312
  };
2362
- return Promise.resolve(response);
2313
+ return response;
2363
2314
  };
2364
2315
  const de_ListAssociatedFleetsCommandError = async (output, context) => {
2365
2316
  const parsedOutput = {
@@ -2368,10 +2319,9 @@ const de_ListAssociatedFleetsCommandError = async (output, context) => {
2368
2319
  };
2369
2320
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2370
2321
  const parsedBody = parsedOutput.body;
2371
- throwDefaultError({
2322
+ return throwDefaultError({
2372
2323
  output,
2373
2324
  parsedBody,
2374
- exceptionCtor: __BaseException,
2375
2325
  errorCode,
2376
2326
  });
2377
2327
  };
@@ -2381,12 +2331,12 @@ export const de_ListAssociatedStacksCommand = async (output, context) => {
2381
2331
  }
2382
2332
  const data = await parseBody(output.body, context);
2383
2333
  let contents = {};
2384
- contents = de_ListAssociatedStacksResult(data, context);
2334
+ contents = _json(data);
2385
2335
  const response = {
2386
2336
  $metadata: deserializeMetadata(output),
2387
2337
  ...contents,
2388
2338
  };
2389
- return Promise.resolve(response);
2339
+ return response;
2390
2340
  };
2391
2341
  const de_ListAssociatedStacksCommandError = async (output, context) => {
2392
2342
  const parsedOutput = {
@@ -2395,10 +2345,9 @@ const de_ListAssociatedStacksCommandError = async (output, context) => {
2395
2345
  };
2396
2346
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2397
2347
  const parsedBody = parsedOutput.body;
2398
- throwDefaultError({
2348
+ return throwDefaultError({
2399
2349
  output,
2400
2350
  parsedBody,
2401
- exceptionCtor: __BaseException,
2402
2351
  errorCode,
2403
2352
  });
2404
2353
  };
@@ -2408,12 +2357,12 @@ export const de_ListEntitledApplicationsCommand = async (output, context) => {
2408
2357
  }
2409
2358
  const data = await parseBody(output.body, context);
2410
2359
  let contents = {};
2411
- contents = de_ListEntitledApplicationsResult(data, context);
2360
+ contents = _json(data);
2412
2361
  const response = {
2413
2362
  $metadata: deserializeMetadata(output),
2414
2363
  ...contents,
2415
2364
  };
2416
- return Promise.resolve(response);
2365
+ return response;
2417
2366
  };
2418
2367
  const de_ListEntitledApplicationsCommandError = async (output, context) => {
2419
2368
  const parsedOutput = {
@@ -2433,10 +2382,9 @@ const de_ListEntitledApplicationsCommandError = async (output, context) => {
2433
2382
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2434
2383
  default:
2435
2384
  const parsedBody = parsedOutput.body;
2436
- throwDefaultError({
2385
+ return throwDefaultError({
2437
2386
  output,
2438
2387
  parsedBody,
2439
- exceptionCtor: __BaseException,
2440
2388
  errorCode,
2441
2389
  });
2442
2390
  }
@@ -2447,12 +2395,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
2447
2395
  }
2448
2396
  const data = await parseBody(output.body, context);
2449
2397
  let contents = {};
2450
- contents = de_ListTagsForResourceResponse(data, context);
2398
+ contents = _json(data);
2451
2399
  const response = {
2452
2400
  $metadata: deserializeMetadata(output),
2453
2401
  ...contents,
2454
2402
  };
2455
- return Promise.resolve(response);
2403
+ return response;
2456
2404
  };
2457
2405
  const de_ListTagsForResourceCommandError = async (output, context) => {
2458
2406
  const parsedOutput = {
@@ -2466,10 +2414,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2466
2414
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2467
2415
  default:
2468
2416
  const parsedBody = parsedOutput.body;
2469
- throwDefaultError({
2417
+ return throwDefaultError({
2470
2418
  output,
2471
2419
  parsedBody,
2472
- exceptionCtor: __BaseException,
2473
2420
  errorCode,
2474
2421
  });
2475
2422
  }
@@ -2480,12 +2427,12 @@ export const de_StartFleetCommand = async (output, context) => {
2480
2427
  }
2481
2428
  const data = await parseBody(output.body, context);
2482
2429
  let contents = {};
2483
- contents = de_StartFleetResult(data, context);
2430
+ contents = _json(data);
2484
2431
  const response = {
2485
2432
  $metadata: deserializeMetadata(output),
2486
2433
  ...contents,
2487
2434
  };
2488
- return Promise.resolve(response);
2435
+ return response;
2489
2436
  };
2490
2437
  const de_StartFleetCommandError = async (output, context) => {
2491
2438
  const parsedOutput = {
@@ -2520,10 +2467,9 @@ const de_StartFleetCommandError = async (output, context) => {
2520
2467
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2521
2468
  default:
2522
2469
  const parsedBody = parsedOutput.body;
2523
- throwDefaultError({
2470
+ return throwDefaultError({
2524
2471
  output,
2525
2472
  parsedBody,
2526
- exceptionCtor: __BaseException,
2527
2473
  errorCode,
2528
2474
  });
2529
2475
  }
@@ -2539,7 +2485,7 @@ export const de_StartImageBuilderCommand = async (output, context) => {
2539
2485
  $metadata: deserializeMetadata(output),
2540
2486
  ...contents,
2541
2487
  };
2542
- return Promise.resolve(response);
2488
+ return response;
2543
2489
  };
2544
2490
  const de_StartImageBuilderCommandError = async (output, context) => {
2545
2491
  const parsedOutput = {
@@ -2565,10 +2511,9 @@ const de_StartImageBuilderCommandError = async (output, context) => {
2565
2511
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2566
2512
  default:
2567
2513
  const parsedBody = parsedOutput.body;
2568
- throwDefaultError({
2514
+ return throwDefaultError({
2569
2515
  output,
2570
2516
  parsedBody,
2571
- exceptionCtor: __BaseException,
2572
2517
  errorCode,
2573
2518
  });
2574
2519
  }
@@ -2579,12 +2524,12 @@ export const de_StopFleetCommand = async (output, context) => {
2579
2524
  }
2580
2525
  const data = await parseBody(output.body, context);
2581
2526
  let contents = {};
2582
- contents = de_StopFleetResult(data, context);
2527
+ contents = _json(data);
2583
2528
  const response = {
2584
2529
  $metadata: deserializeMetadata(output),
2585
2530
  ...contents,
2586
2531
  };
2587
- return Promise.resolve(response);
2532
+ return response;
2588
2533
  };
2589
2534
  const de_StopFleetCommandError = async (output, context) => {
2590
2535
  const parsedOutput = {
@@ -2601,10 +2546,9 @@ const de_StopFleetCommandError = async (output, context) => {
2601
2546
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2602
2547
  default:
2603
2548
  const parsedBody = parsedOutput.body;
2604
- throwDefaultError({
2549
+ return throwDefaultError({
2605
2550
  output,
2606
2551
  parsedBody,
2607
- exceptionCtor: __BaseException,
2608
2552
  errorCode,
2609
2553
  });
2610
2554
  }
@@ -2620,7 +2564,7 @@ export const de_StopImageBuilderCommand = async (output, context) => {
2620
2564
  $metadata: deserializeMetadata(output),
2621
2565
  ...contents,
2622
2566
  };
2623
- return Promise.resolve(response);
2567
+ return response;
2624
2568
  };
2625
2569
  const de_StopImageBuilderCommandError = async (output, context) => {
2626
2570
  const parsedOutput = {
@@ -2640,10 +2584,9 @@ const de_StopImageBuilderCommandError = async (output, context) => {
2640
2584
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2641
2585
  default:
2642
2586
  const parsedBody = parsedOutput.body;
2643
- throwDefaultError({
2587
+ return throwDefaultError({
2644
2588
  output,
2645
2589
  parsedBody,
2646
- exceptionCtor: __BaseException,
2647
2590
  errorCode,
2648
2591
  });
2649
2592
  }
@@ -2654,12 +2597,12 @@ export const de_TagResourceCommand = async (output, context) => {
2654
2597
  }
2655
2598
  const data = await parseBody(output.body, context);
2656
2599
  let contents = {};
2657
- contents = de_TagResourceResponse(data, context);
2600
+ contents = _json(data);
2658
2601
  const response = {
2659
2602
  $metadata: deserializeMetadata(output),
2660
2603
  ...contents,
2661
2604
  };
2662
- return Promise.resolve(response);
2605
+ return response;
2663
2606
  };
2664
2607
  const de_TagResourceCommandError = async (output, context) => {
2665
2608
  const parsedOutput = {
@@ -2679,10 +2622,9 @@ const de_TagResourceCommandError = async (output, context) => {
2679
2622
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2680
2623
  default:
2681
2624
  const parsedBody = parsedOutput.body;
2682
- throwDefaultError({
2625
+ return throwDefaultError({
2683
2626
  output,
2684
2627
  parsedBody,
2685
- exceptionCtor: __BaseException,
2686
2628
  errorCode,
2687
2629
  });
2688
2630
  }
@@ -2693,12 +2635,12 @@ export const de_UntagResourceCommand = async (output, context) => {
2693
2635
  }
2694
2636
  const data = await parseBody(output.body, context);
2695
2637
  let contents = {};
2696
- contents = de_UntagResourceResponse(data, context);
2638
+ contents = _json(data);
2697
2639
  const response = {
2698
2640
  $metadata: deserializeMetadata(output),
2699
2641
  ...contents,
2700
2642
  };
2701
- return Promise.resolve(response);
2643
+ return response;
2702
2644
  };
2703
2645
  const de_UntagResourceCommandError = async (output, context) => {
2704
2646
  const parsedOutput = {
@@ -2712,10 +2654,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2712
2654
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2713
2655
  default:
2714
2656
  const parsedBody = parsedOutput.body;
2715
- throwDefaultError({
2657
+ return throwDefaultError({
2716
2658
  output,
2717
2659
  parsedBody,
2718
- exceptionCtor: __BaseException,
2719
2660
  errorCode,
2720
2661
  });
2721
2662
  }
@@ -2731,7 +2672,7 @@ export const de_UpdateApplicationCommand = async (output, context) => {
2731
2672
  $metadata: deserializeMetadata(output),
2732
2673
  ...contents,
2733
2674
  };
2734
- return Promise.resolve(response);
2675
+ return response;
2735
2676
  };
2736
2677
  const de_UpdateApplicationCommandError = async (output, context) => {
2737
2678
  const parsedOutput = {
@@ -2751,10 +2692,9 @@ const de_UpdateApplicationCommandError = async (output, context) => {
2751
2692
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2752
2693
  default:
2753
2694
  const parsedBody = parsedOutput.body;
2754
- throwDefaultError({
2695
+ return throwDefaultError({
2755
2696
  output,
2756
2697
  parsedBody,
2757
- exceptionCtor: __BaseException,
2758
2698
  errorCode,
2759
2699
  });
2760
2700
  }
@@ -2770,7 +2710,7 @@ export const de_UpdateDirectoryConfigCommand = async (output, context) => {
2770
2710
  $metadata: deserializeMetadata(output),
2771
2711
  ...contents,
2772
2712
  };
2773
- return Promise.resolve(response);
2713
+ return response;
2774
2714
  };
2775
2715
  const de_UpdateDirectoryConfigCommandError = async (output, context) => {
2776
2716
  const parsedOutput = {
@@ -2796,10 +2736,9 @@ const de_UpdateDirectoryConfigCommandError = async (output, context) => {
2796
2736
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2797
2737
  default:
2798
2738
  const parsedBody = parsedOutput.body;
2799
- throwDefaultError({
2739
+ return throwDefaultError({
2800
2740
  output,
2801
2741
  parsedBody,
2802
- exceptionCtor: __BaseException,
2803
2742
  errorCode,
2804
2743
  });
2805
2744
  }
@@ -2815,7 +2754,7 @@ export const de_UpdateEntitlementCommand = async (output, context) => {
2815
2754
  $metadata: deserializeMetadata(output),
2816
2755
  ...contents,
2817
2756
  };
2818
- return Promise.resolve(response);
2757
+ return response;
2819
2758
  };
2820
2759
  const de_UpdateEntitlementCommandError = async (output, context) => {
2821
2760
  const parsedOutput = {
@@ -2838,10 +2777,9 @@ const de_UpdateEntitlementCommandError = async (output, context) => {
2838
2777
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2839
2778
  default:
2840
2779
  const parsedBody = parsedOutput.body;
2841
- throwDefaultError({
2780
+ return throwDefaultError({
2842
2781
  output,
2843
2782
  parsedBody,
2844
- exceptionCtor: __BaseException,
2845
2783
  errorCode,
2846
2784
  });
2847
2785
  }
@@ -2857,7 +2795,7 @@ export const de_UpdateFleetCommand = async (output, context) => {
2857
2795
  $metadata: deserializeMetadata(output),
2858
2796
  ...contents,
2859
2797
  };
2860
- return Promise.resolve(response);
2798
+ return response;
2861
2799
  };
2862
2800
  const de_UpdateFleetCommandError = async (output, context) => {
2863
2801
  const parsedOutput = {
@@ -2901,10 +2839,9 @@ const de_UpdateFleetCommandError = async (output, context) => {
2901
2839
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2902
2840
  default:
2903
2841
  const parsedBody = parsedOutput.body;
2904
- throwDefaultError({
2842
+ return throwDefaultError({
2905
2843
  output,
2906
2844
  parsedBody,
2907
- exceptionCtor: __BaseException,
2908
2845
  errorCode,
2909
2846
  });
2910
2847
  }
@@ -2915,12 +2852,12 @@ export const de_UpdateImagePermissionsCommand = async (output, context) => {
2915
2852
  }
2916
2853
  const data = await parseBody(output.body, context);
2917
2854
  let contents = {};
2918
- contents = de_UpdateImagePermissionsResult(data, context);
2855
+ contents = _json(data);
2919
2856
  const response = {
2920
2857
  $metadata: deserializeMetadata(output),
2921
2858
  ...contents,
2922
2859
  };
2923
- return Promise.resolve(response);
2860
+ return response;
2924
2861
  };
2925
2862
  const de_UpdateImagePermissionsCommandError = async (output, context) => {
2926
2863
  const parsedOutput = {
@@ -2940,10 +2877,9 @@ const de_UpdateImagePermissionsCommandError = async (output, context) => {
2940
2877
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2941
2878
  default:
2942
2879
  const parsedBody = parsedOutput.body;
2943
- throwDefaultError({
2880
+ return throwDefaultError({
2944
2881
  output,
2945
2882
  parsedBody,
2946
- exceptionCtor: __BaseException,
2947
2883
  errorCode,
2948
2884
  });
2949
2885
  }
@@ -2959,7 +2895,7 @@ export const de_UpdateStackCommand = async (output, context) => {
2959
2895
  $metadata: deserializeMetadata(output),
2960
2896
  ...contents,
2961
2897
  };
2962
- return Promise.resolve(response);
2898
+ return response;
2963
2899
  };
2964
2900
  const de_UpdateStackCommandError = async (output, context) => {
2965
2901
  const parsedOutput = {
@@ -2997,17 +2933,16 @@ const de_UpdateStackCommandError = async (output, context) => {
2997
2933
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2998
2934
  default:
2999
2935
  const parsedBody = parsedOutput.body;
3000
- throwDefaultError({
2936
+ return throwDefaultError({
3001
2937
  output,
3002
2938
  parsedBody,
3003
- exceptionCtor: __BaseException,
3004
2939
  errorCode,
3005
2940
  });
3006
2941
  }
3007
2942
  };
3008
2943
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
3009
2944
  const body = parsedOutput.body;
3010
- const deserialized = de_ConcurrentModificationException(body, context);
2945
+ const deserialized = _json(body);
3011
2946
  const exception = new ConcurrentModificationException({
3012
2947
  $metadata: deserializeMetadata(parsedOutput),
3013
2948
  ...deserialized,
@@ -3016,7 +2951,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
3016
2951
  };
3017
2952
  const de_EntitlementAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3018
2953
  const body = parsedOutput.body;
3019
- const deserialized = de_EntitlementAlreadyExistsException(body, context);
2954
+ const deserialized = _json(body);
3020
2955
  const exception = new EntitlementAlreadyExistsException({
3021
2956
  $metadata: deserializeMetadata(parsedOutput),
3022
2957
  ...deserialized,
@@ -3025,7 +2960,7 @@ const de_EntitlementAlreadyExistsExceptionRes = async (parsedOutput, context) =>
3025
2960
  };
3026
2961
  const de_EntitlementNotFoundExceptionRes = async (parsedOutput, context) => {
3027
2962
  const body = parsedOutput.body;
3028
- const deserialized = de_EntitlementNotFoundException(body, context);
2963
+ const deserialized = _json(body);
3029
2964
  const exception = new EntitlementNotFoundException({
3030
2965
  $metadata: deserializeMetadata(parsedOutput),
3031
2966
  ...deserialized,
@@ -3034,7 +2969,7 @@ const de_EntitlementNotFoundExceptionRes = async (parsedOutput, context) => {
3034
2969
  };
3035
2970
  const de_IncompatibleImageExceptionRes = async (parsedOutput, context) => {
3036
2971
  const body = parsedOutput.body;
3037
- const deserialized = de_IncompatibleImageException(body, context);
2972
+ const deserialized = _json(body);
3038
2973
  const exception = new IncompatibleImageException({
3039
2974
  $metadata: deserializeMetadata(parsedOutput),
3040
2975
  ...deserialized,
@@ -3043,7 +2978,7 @@ const de_IncompatibleImageExceptionRes = async (parsedOutput, context) => {
3043
2978
  };
3044
2979
  const de_InvalidAccountStatusExceptionRes = async (parsedOutput, context) => {
3045
2980
  const body = parsedOutput.body;
3046
- const deserialized = de_InvalidAccountStatusException(body, context);
2981
+ const deserialized = _json(body);
3047
2982
  const exception = new InvalidAccountStatusException({
3048
2983
  $metadata: deserializeMetadata(parsedOutput),
3049
2984
  ...deserialized,
@@ -3052,7 +2987,7 @@ const de_InvalidAccountStatusExceptionRes = async (parsedOutput, context) => {
3052
2987
  };
3053
2988
  const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
3054
2989
  const body = parsedOutput.body;
3055
- const deserialized = de_InvalidParameterCombinationException(body, context);
2990
+ const deserialized = _json(body);
3056
2991
  const exception = new InvalidParameterCombinationException({
3057
2992
  $metadata: deserializeMetadata(parsedOutput),
3058
2993
  ...deserialized,
@@ -3061,7 +2996,7 @@ const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context)
3061
2996
  };
3062
2997
  const de_InvalidRoleExceptionRes = async (parsedOutput, context) => {
3063
2998
  const body = parsedOutput.body;
3064
- const deserialized = de_InvalidRoleException(body, context);
2999
+ const deserialized = _json(body);
3065
3000
  const exception = new InvalidRoleException({
3066
3001
  $metadata: deserializeMetadata(parsedOutput),
3067
3002
  ...deserialized,
@@ -3070,7 +3005,7 @@ const de_InvalidRoleExceptionRes = async (parsedOutput, context) => {
3070
3005
  };
3071
3006
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3072
3007
  const body = parsedOutput.body;
3073
- const deserialized = de_LimitExceededException(body, context);
3008
+ const deserialized = _json(body);
3074
3009
  const exception = new LimitExceededException({
3075
3010
  $metadata: deserializeMetadata(parsedOutput),
3076
3011
  ...deserialized,
@@ -3079,7 +3014,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3079
3014
  };
3080
3015
  const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
3081
3016
  const body = parsedOutput.body;
3082
- const deserialized = de_OperationNotPermittedException(body, context);
3017
+ const deserialized = _json(body);
3083
3018
  const exception = new OperationNotPermittedException({
3084
3019
  $metadata: deserializeMetadata(parsedOutput),
3085
3020
  ...deserialized,
@@ -3088,7 +3023,7 @@ const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
3088
3023
  };
3089
3024
  const de_RequestLimitExceededExceptionRes = async (parsedOutput, context) => {
3090
3025
  const body = parsedOutput.body;
3091
- const deserialized = de_RequestLimitExceededException(body, context);
3026
+ const deserialized = _json(body);
3092
3027
  const exception = new RequestLimitExceededException({
3093
3028
  $metadata: deserializeMetadata(parsedOutput),
3094
3029
  ...deserialized,
@@ -3097,7 +3032,7 @@ const de_RequestLimitExceededExceptionRes = async (parsedOutput, context) => {
3097
3032
  };
3098
3033
  const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3099
3034
  const body = parsedOutput.body;
3100
- const deserialized = de_ResourceAlreadyExistsException(body, context);
3035
+ const deserialized = _json(body);
3101
3036
  const exception = new ResourceAlreadyExistsException({
3102
3037
  $metadata: deserializeMetadata(parsedOutput),
3103
3038
  ...deserialized,
@@ -3106,7 +3041,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3106
3041
  };
3107
3042
  const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
3108
3043
  const body = parsedOutput.body;
3109
- const deserialized = de_ResourceInUseException(body, context);
3044
+ const deserialized = _json(body);
3110
3045
  const exception = new ResourceInUseException({
3111
3046
  $metadata: deserializeMetadata(parsedOutput),
3112
3047
  ...deserialized,
@@ -3115,7 +3050,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
3115
3050
  };
3116
3051
  const de_ResourceNotAvailableExceptionRes = async (parsedOutput, context) => {
3117
3052
  const body = parsedOutput.body;
3118
- const deserialized = de_ResourceNotAvailableException(body, context);
3053
+ const deserialized = _json(body);
3119
3054
  const exception = new ResourceNotAvailableException({
3120
3055
  $metadata: deserializeMetadata(parsedOutput),
3121
3056
  ...deserialized,
@@ -3124,1966 +3059,453 @@ const de_ResourceNotAvailableExceptionRes = async (parsedOutput, context) => {
3124
3059
  };
3125
3060
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3126
3061
  const body = parsedOutput.body;
3127
- const deserialized = de_ResourceNotFoundException(body, context);
3062
+ const deserialized = _json(body);
3128
3063
  const exception = new ResourceNotFoundException({
3129
3064
  $metadata: deserializeMetadata(parsedOutput),
3130
3065
  ...deserialized,
3131
3066
  });
3132
3067
  return __decorateServiceException(exception, body);
3133
3068
  };
3134
- const se_AccessEndpoint = (input, context) => {
3135
- return {
3136
- ...(input.EndpointType != null && { EndpointType: input.EndpointType }),
3137
- ...(input.VpceId != null && { VpceId: input.VpceId }),
3138
- };
3139
- };
3140
- const se_AccessEndpointList = (input, context) => {
3141
- return input
3142
- .filter((e) => e != null)
3143
- .map((entry) => {
3144
- return se_AccessEndpoint(entry, context);
3145
- });
3146
- };
3147
- const se_ApplicationAttributes = (input, context) => {
3148
- return input
3149
- .filter((e) => e != null)
3150
- .map((entry) => {
3151
- return entry;
3152
- });
3153
- };
3154
- const se_ApplicationSettings = (input, context) => {
3155
- return {
3156
- ...(input.Enabled != null && { Enabled: input.Enabled }),
3157
- ...(input.SettingsGroup != null && { SettingsGroup: input.SettingsGroup }),
3158
- };
3159
- };
3160
- const se_ArnList = (input, context) => {
3161
- return input
3162
- .filter((e) => e != null)
3163
- .map((entry) => {
3164
- return entry;
3165
- });
3166
- };
3167
- const se_AssociateApplicationFleetRequest = (input, context) => {
3168
- return {
3169
- ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
3170
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3171
- };
3172
- };
3173
- const se_AssociateApplicationToEntitlementRequest = (input, context) => {
3174
- return {
3175
- ...(input.ApplicationIdentifier != null && { ApplicationIdentifier: input.ApplicationIdentifier }),
3176
- ...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
3177
- ...(input.StackName != null && { StackName: input.StackName }),
3178
- };
3179
- };
3180
- const se_AssociateFleetRequest = (input, context) => {
3181
- return {
3182
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3183
- ...(input.StackName != null && { StackName: input.StackName }),
3184
- };
3185
- };
3186
- const se_AwsAccountIdList = (input, context) => {
3187
- return input
3188
- .filter((e) => e != null)
3189
- .map((entry) => {
3190
- return entry;
3191
- });
3192
- };
3193
- const se_BatchAssociateUserStackRequest = (input, context) => {
3194
- return {
3195
- ...(input.UserStackAssociations != null && {
3196
- UserStackAssociations: se_UserStackAssociationList(input.UserStackAssociations, context),
3197
- }),
3198
- };
3199
- };
3200
- const se_BatchDisassociateUserStackRequest = (input, context) => {
3201
- return {
3202
- ...(input.UserStackAssociations != null && {
3203
- UserStackAssociations: se_UserStackAssociationList(input.UserStackAssociations, context),
3204
- }),
3205
- };
3206
- };
3207
- const se_CertificateBasedAuthProperties = (input, context) => {
3208
- return {
3209
- ...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
3210
- ...(input.Status != null && { Status: input.Status }),
3211
- };
3212
- };
3213
- const se_ComputeCapacity = (input, context) => {
3214
- return {
3215
- ...(input.DesiredInstances != null && { DesiredInstances: input.DesiredInstances }),
3216
- };
3217
- };
3218
- const se_CopyImageRequest = (input, context) => {
3219
- return {
3220
- ...(input.DestinationImageDescription != null && {
3221
- DestinationImageDescription: input.DestinationImageDescription,
3222
- }),
3223
- ...(input.DestinationImageName != null && { DestinationImageName: input.DestinationImageName }),
3224
- ...(input.DestinationRegion != null && { DestinationRegion: input.DestinationRegion }),
3225
- ...(input.SourceImageName != null && { SourceImageName: input.SourceImageName }),
3226
- };
3227
- };
3228
- const se_CreateAppBlockRequest = (input, context) => {
3229
- return {
3230
- ...(input.Description != null && { Description: input.Description }),
3231
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3232
- ...(input.Name != null && { Name: input.Name }),
3233
- ...(input.SetupScriptDetails != null && {
3234
- SetupScriptDetails: se_ScriptDetails(input.SetupScriptDetails, context),
3235
- }),
3236
- ...(input.SourceS3Location != null && { SourceS3Location: se_S3Location(input.SourceS3Location, context) }),
3237
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3238
- };
3239
- };
3240
- const se_CreateApplicationRequest = (input, context) => {
3241
- return {
3242
- ...(input.AppBlockArn != null && { AppBlockArn: input.AppBlockArn }),
3243
- ...(input.Description != null && { Description: input.Description }),
3244
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3245
- ...(input.IconS3Location != null && { IconS3Location: se_S3Location(input.IconS3Location, context) }),
3246
- ...(input.InstanceFamilies != null && { InstanceFamilies: se_StringList(input.InstanceFamilies, context) }),
3247
- ...(input.LaunchParameters != null && { LaunchParameters: input.LaunchParameters }),
3248
- ...(input.LaunchPath != null && { LaunchPath: input.LaunchPath }),
3249
- ...(input.Name != null && { Name: input.Name }),
3250
- ...(input.Platforms != null && { Platforms: se_Platforms(input.Platforms, context) }),
3251
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3252
- ...(input.WorkingDirectory != null && { WorkingDirectory: input.WorkingDirectory }),
3253
- };
3254
- };
3255
- const se_CreateDirectoryConfigRequest = (input, context) => {
3256
- return {
3257
- ...(input.CertificateBasedAuthProperties != null && {
3258
- CertificateBasedAuthProperties: se_CertificateBasedAuthProperties(input.CertificateBasedAuthProperties, context),
3259
- }),
3260
- ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
3261
- ...(input.OrganizationalUnitDistinguishedNames != null && {
3262
- OrganizationalUnitDistinguishedNames: se_OrganizationalUnitDistinguishedNamesList(input.OrganizationalUnitDistinguishedNames, context),
3263
- }),
3264
- ...(input.ServiceAccountCredentials != null && {
3265
- ServiceAccountCredentials: se_ServiceAccountCredentials(input.ServiceAccountCredentials, context),
3266
- }),
3267
- };
3268
- };
3269
- const se_CreateEntitlementRequest = (input, context) => {
3270
- return {
3271
- ...(input.AppVisibility != null && { AppVisibility: input.AppVisibility }),
3272
- ...(input.Attributes != null && { Attributes: se_EntitlementAttributeList(input.Attributes, context) }),
3273
- ...(input.Description != null && { Description: input.Description }),
3274
- ...(input.Name != null && { Name: input.Name }),
3275
- ...(input.StackName != null && { StackName: input.StackName }),
3276
- };
3277
- };
3278
- const se_CreateFleetRequest = (input, context) => {
3279
- return {
3280
- ...(input.ComputeCapacity != null && { ComputeCapacity: se_ComputeCapacity(input.ComputeCapacity, context) }),
3281
- ...(input.Description != null && { Description: input.Description }),
3282
- ...(input.DisconnectTimeoutInSeconds != null && { DisconnectTimeoutInSeconds: input.DisconnectTimeoutInSeconds }),
3283
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3284
- ...(input.DomainJoinInfo != null && { DomainJoinInfo: se_DomainJoinInfo(input.DomainJoinInfo, context) }),
3285
- ...(input.EnableDefaultInternetAccess != null && {
3286
- EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
3287
- }),
3288
- ...(input.FleetType != null && { FleetType: input.FleetType }),
3289
- ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
3290
- ...(input.IdleDisconnectTimeoutInSeconds != null && {
3291
- IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
3292
- }),
3293
- ...(input.ImageArn != null && { ImageArn: input.ImageArn }),
3294
- ...(input.ImageName != null && { ImageName: input.ImageName }),
3295
- ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
3296
- ...(input.MaxConcurrentSessions != null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
3297
- ...(input.MaxUserDurationInSeconds != null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
3298
- ...(input.Name != null && { Name: input.Name }),
3299
- ...(input.Platform != null && { Platform: input.Platform }),
3300
- ...(input.SessionScriptS3Location != null && {
3301
- SessionScriptS3Location: se_S3Location(input.SessionScriptS3Location, context),
3302
- }),
3303
- ...(input.StreamView != null && { StreamView: input.StreamView }),
3304
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3305
- ...(input.UsbDeviceFilterStrings != null && {
3306
- UsbDeviceFilterStrings: se_UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
3307
- }),
3308
- ...(input.VpcConfig != null && { VpcConfig: se_VpcConfig(input.VpcConfig, context) }),
3309
- };
3310
- };
3311
- const se_CreateImageBuilderRequest = (input, context) => {
3312
- return {
3313
- ...(input.AccessEndpoints != null && { AccessEndpoints: se_AccessEndpointList(input.AccessEndpoints, context) }),
3314
- ...(input.AppstreamAgentVersion != null && { AppstreamAgentVersion: input.AppstreamAgentVersion }),
3315
- ...(input.Description != null && { Description: input.Description }),
3316
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3317
- ...(input.DomainJoinInfo != null && { DomainJoinInfo: se_DomainJoinInfo(input.DomainJoinInfo, context) }),
3318
- ...(input.EnableDefaultInternetAccess != null && {
3319
- EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
3320
- }),
3321
- ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
3322
- ...(input.ImageArn != null && { ImageArn: input.ImageArn }),
3323
- ...(input.ImageName != null && { ImageName: input.ImageName }),
3324
- ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
3325
- ...(input.Name != null && { Name: input.Name }),
3326
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3327
- ...(input.VpcConfig != null && { VpcConfig: se_VpcConfig(input.VpcConfig, context) }),
3328
- };
3329
- };
3330
- const se_CreateImageBuilderStreamingURLRequest = (input, context) => {
3331
- return {
3332
- ...(input.Name != null && { Name: input.Name }),
3333
- ...(input.Validity != null && { Validity: input.Validity }),
3334
- };
3335
- };
3336
- const se_CreateStackRequest = (input, context) => {
3337
- return {
3338
- ...(input.AccessEndpoints != null && { AccessEndpoints: se_AccessEndpointList(input.AccessEndpoints, context) }),
3339
- ...(input.ApplicationSettings != null && {
3340
- ApplicationSettings: se_ApplicationSettings(input.ApplicationSettings, context),
3341
- }),
3342
- ...(input.Description != null && { Description: input.Description }),
3343
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3344
- ...(input.EmbedHostDomains != null && { EmbedHostDomains: se_EmbedHostDomains(input.EmbedHostDomains, context) }),
3345
- ...(input.FeedbackURL != null && { FeedbackURL: input.FeedbackURL }),
3346
- ...(input.Name != null && { Name: input.Name }),
3347
- ...(input.RedirectURL != null && { RedirectURL: input.RedirectURL }),
3348
- ...(input.StorageConnectors != null && {
3349
- StorageConnectors: se_StorageConnectorList(input.StorageConnectors, context),
3350
- }),
3351
- ...(input.StreamingExperienceSettings != null && {
3352
- StreamingExperienceSettings: se_StreamingExperienceSettings(input.StreamingExperienceSettings, context),
3353
- }),
3354
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3355
- ...(input.UserSettings != null && { UserSettings: se_UserSettingList(input.UserSettings, context) }),
3356
- };
3357
- };
3358
- const se_CreateStreamingURLRequest = (input, context) => {
3359
- return {
3360
- ...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
3361
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3362
- ...(input.SessionContext != null && { SessionContext: input.SessionContext }),
3363
- ...(input.StackName != null && { StackName: input.StackName }),
3364
- ...(input.UserId != null && { UserId: input.UserId }),
3365
- ...(input.Validity != null && { Validity: input.Validity }),
3366
- };
3367
- };
3368
- const se_CreateUpdatedImageRequest = (input, context) => {
3369
- return {
3370
- ...(input.dryRun != null && { dryRun: input.dryRun }),
3371
- ...(input.existingImageName != null && { existingImageName: input.existingImageName }),
3372
- ...(input.newImageDescription != null && { newImageDescription: input.newImageDescription }),
3373
- ...(input.newImageDisplayName != null && { newImageDisplayName: input.newImageDisplayName }),
3374
- ...(input.newImageName != null && { newImageName: input.newImageName }),
3375
- ...(input.newImageTags != null && { newImageTags: se_Tags(input.newImageTags, context) }),
3376
- };
3377
- };
3378
- const se_CreateUsageReportSubscriptionRequest = (input, context) => {
3379
- return {};
3380
- };
3381
- const se_CreateUserRequest = (input, context) => {
3382
- return {
3383
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3384
- ...(input.FirstName != null && { FirstName: input.FirstName }),
3385
- ...(input.LastName != null && { LastName: input.LastName }),
3386
- ...(input.MessageAction != null && { MessageAction: input.MessageAction }),
3387
- ...(input.UserName != null && { UserName: input.UserName }),
3388
- };
3389
- };
3390
- const se_DeleteAppBlockRequest = (input, context) => {
3391
- return {
3392
- ...(input.Name != null && { Name: input.Name }),
3393
- };
3394
- };
3395
- const se_DeleteApplicationRequest = (input, context) => {
3396
- return {
3397
- ...(input.Name != null && { Name: input.Name }),
3398
- };
3399
- };
3400
- const se_DeleteDirectoryConfigRequest = (input, context) => {
3401
- return {
3402
- ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
3403
- };
3404
- };
3405
- const se_DeleteEntitlementRequest = (input, context) => {
3406
- return {
3407
- ...(input.Name != null && { Name: input.Name }),
3408
- ...(input.StackName != null && { StackName: input.StackName }),
3409
- };
3410
- };
3411
- const se_DeleteFleetRequest = (input, context) => {
3412
- return {
3413
- ...(input.Name != null && { Name: input.Name }),
3414
- };
3415
- };
3416
- const se_DeleteImageBuilderRequest = (input, context) => {
3417
- return {
3418
- ...(input.Name != null && { Name: input.Name }),
3419
- };
3420
- };
3421
- const se_DeleteImagePermissionsRequest = (input, context) => {
3422
- return {
3423
- ...(input.Name != null && { Name: input.Name }),
3424
- ...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
3425
- };
3426
- };
3427
- const se_DeleteImageRequest = (input, context) => {
3428
- return {
3429
- ...(input.Name != null && { Name: input.Name }),
3430
- };
3431
- };
3432
- const se_DeleteStackRequest = (input, context) => {
3433
- return {
3434
- ...(input.Name != null && { Name: input.Name }),
3435
- };
3436
- };
3437
- const se_DeleteUsageReportSubscriptionRequest = (input, context) => {
3438
- return {};
3439
- };
3440
- const se_DeleteUserRequest = (input, context) => {
3441
- return {
3442
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3443
- ...(input.UserName != null && { UserName: input.UserName }),
3444
- };
3445
- };
3446
- const se_DescribeAppBlocksRequest = (input, context) => {
3447
- return {
3448
- ...(input.Arns != null && { Arns: se_ArnList(input.Arns, context) }),
3449
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3450
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3451
- };
3452
- };
3453
- const se_DescribeApplicationFleetAssociationsRequest = (input, context) => {
3454
- return {
3455
- ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
3456
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3457
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3458
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3459
- };
3460
- };
3461
- const se_DescribeApplicationsRequest = (input, context) => {
3462
- return {
3463
- ...(input.Arns != null && { Arns: se_ArnList(input.Arns, context) }),
3464
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3465
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3466
- };
3467
- };
3468
- const se_DescribeDirectoryConfigsRequest = (input, context) => {
3469
- return {
3470
- ...(input.DirectoryNames != null && { DirectoryNames: se_DirectoryNameList(input.DirectoryNames, context) }),
3471
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3472
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3473
- };
3474
- };
3475
- const se_DescribeEntitlementsRequest = (input, context) => {
3476
- return {
3477
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3478
- ...(input.Name != null && { Name: input.Name }),
3479
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3480
- ...(input.StackName != null && { StackName: input.StackName }),
3481
- };
3482
- };
3483
- const se_DescribeFleetsRequest = (input, context) => {
3484
- return {
3485
- ...(input.Names != null && { Names: se_StringList(input.Names, context) }),
3486
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3487
- };
3488
- };
3489
- const se_DescribeImageBuildersRequest = (input, context) => {
3490
- return {
3491
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3492
- ...(input.Names != null && { Names: se_StringList(input.Names, context) }),
3493
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3494
- };
3495
- };
3496
- const se_DescribeImagePermissionsRequest = (input, context) => {
3497
- return {
3498
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3499
- ...(input.Name != null && { Name: input.Name }),
3500
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3501
- ...(input.SharedAwsAccountIds != null && {
3502
- SharedAwsAccountIds: se_AwsAccountIdList(input.SharedAwsAccountIds, context),
3503
- }),
3504
- };
3505
- };
3506
- const se_DescribeImagesRequest = (input, context) => {
3507
- return {
3508
- ...(input.Arns != null && { Arns: se_ArnList(input.Arns, context) }),
3509
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3510
- ...(input.Names != null && { Names: se_StringList(input.Names, context) }),
3511
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3512
- ...(input.Type != null && { Type: input.Type }),
3513
- };
3514
- };
3515
- const se_DescribeSessionsRequest = (input, context) => {
3516
- return {
3517
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3518
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3519
- ...(input.Limit != null && { Limit: input.Limit }),
3520
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3521
- ...(input.StackName != null && { StackName: input.StackName }),
3522
- ...(input.UserId != null && { UserId: input.UserId }),
3523
- };
3524
- };
3525
- const se_DescribeStacksRequest = (input, context) => {
3526
- return {
3527
- ...(input.Names != null && { Names: se_StringList(input.Names, context) }),
3528
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3529
- };
3530
- };
3531
- const se_DescribeUsageReportSubscriptionsRequest = (input, context) => {
3532
- return {
3533
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3534
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3535
- };
3536
- };
3537
- const se_DescribeUsersRequest = (input, context) => {
3538
- return {
3539
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3540
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3541
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3542
- };
3543
- };
3544
- const se_DescribeUserStackAssociationsRequest = (input, context) => {
3545
- return {
3546
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3547
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3548
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3549
- ...(input.StackName != null && { StackName: input.StackName }),
3550
- ...(input.UserName != null && { UserName: input.UserName }),
3551
- };
3552
- };
3553
- const se_DirectoryNameList = (input, context) => {
3554
- return input
3555
- .filter((e) => e != null)
3556
- .map((entry) => {
3557
- return entry;
3558
- });
3559
- };
3560
- const se_DisableUserRequest = (input, context) => {
3561
- return {
3562
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3563
- ...(input.UserName != null && { UserName: input.UserName }),
3564
- };
3565
- };
3566
- const se_DisassociateApplicationFleetRequest = (input, context) => {
3567
- return {
3568
- ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
3569
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3570
- };
3571
- };
3572
- const se_DisassociateApplicationFromEntitlementRequest = (input, context) => {
3573
- return {
3574
- ...(input.ApplicationIdentifier != null && { ApplicationIdentifier: input.ApplicationIdentifier }),
3575
- ...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
3576
- ...(input.StackName != null && { StackName: input.StackName }),
3577
- };
3578
- };
3579
- const se_DisassociateFleetRequest = (input, context) => {
3580
- return {
3581
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3582
- ...(input.StackName != null && { StackName: input.StackName }),
3583
- };
3584
- };
3585
- const se_DomainJoinInfo = (input, context) => {
3586
- return {
3587
- ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
3588
- ...(input.OrganizationalUnitDistinguishedName != null && {
3589
- OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
3590
- }),
3591
- };
3592
- };
3593
- const se_DomainList = (input, context) => {
3594
- return input
3595
- .filter((e) => e != null)
3596
- .map((entry) => {
3597
- return entry;
3598
- });
3599
- };
3600
- const se_EmbedHostDomains = (input, context) => {
3601
- return input
3602
- .filter((e) => e != null)
3603
- .map((entry) => {
3604
- return entry;
3605
- });
3606
- };
3607
- const se_EnableUserRequest = (input, context) => {
3608
- return {
3609
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3610
- ...(input.UserName != null && { UserName: input.UserName }),
3611
- };
3612
- };
3613
- const se_EntitlementAttribute = (input, context) => {
3614
- return {
3615
- ...(input.Name != null && { Name: input.Name }),
3616
- ...(input.Value != null && { Value: input.Value }),
3617
- };
3618
- };
3619
- const se_EntitlementAttributeList = (input, context) => {
3620
- return input
3621
- .filter((e) => e != null)
3622
- .map((entry) => {
3623
- return se_EntitlementAttribute(entry, context);
3624
- });
3625
- };
3626
- const se_ExpireSessionRequest = (input, context) => {
3627
- return {
3628
- ...(input.SessionId != null && { SessionId: input.SessionId }),
3629
- };
3630
- };
3631
- const se_FleetAttributes = (input, context) => {
3632
- return input
3633
- .filter((e) => e != null)
3634
- .map((entry) => {
3635
- return entry;
3636
- });
3637
- };
3638
- const se_ImagePermissions = (input, context) => {
3639
- return {
3640
- ...(input.allowFleet != null && { allowFleet: input.allowFleet }),
3641
- ...(input.allowImageBuilder != null && { allowImageBuilder: input.allowImageBuilder }),
3642
- };
3643
- };
3644
- const se_ListAssociatedFleetsRequest = (input, context) => {
3645
- return {
3646
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3647
- ...(input.StackName != null && { StackName: input.StackName }),
3648
- };
3649
- };
3650
- const se_ListAssociatedStacksRequest = (input, context) => {
3651
- return {
3652
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3653
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3654
- };
3655
- };
3656
- const se_ListEntitledApplicationsRequest = (input, context) => {
3657
- return {
3658
- ...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
3659
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3660
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3661
- ...(input.StackName != null && { StackName: input.StackName }),
3662
- };
3663
- };
3664
- const se_ListTagsForResourceRequest = (input, context) => {
3665
- return {
3666
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3667
- };
3668
- };
3669
- const se_OrganizationalUnitDistinguishedNamesList = (input, context) => {
3670
- return input
3671
- .filter((e) => e != null)
3672
- .map((entry) => {
3673
- return entry;
3674
- });
3675
- };
3676
- const se_Platforms = (input, context) => {
3677
- return input
3678
- .filter((e) => e != null)
3679
- .map((entry) => {
3680
- return entry;
3681
- });
3682
- };
3683
- const se_S3Location = (input, context) => {
3684
- return {
3685
- ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
3686
- ...(input.S3Key != null && { S3Key: input.S3Key }),
3687
- };
3688
- };
3689
- const se_ScriptDetails = (input, context) => {
3690
- return {
3691
- ...(input.ExecutableParameters != null && { ExecutableParameters: input.ExecutableParameters }),
3692
- ...(input.ExecutablePath != null && { ExecutablePath: input.ExecutablePath }),
3693
- ...(input.ScriptS3Location != null && { ScriptS3Location: se_S3Location(input.ScriptS3Location, context) }),
3694
- ...(input.TimeoutInSeconds != null && { TimeoutInSeconds: input.TimeoutInSeconds }),
3695
- };
3696
- };
3697
- const se_SecurityGroupIdList = (input, context) => {
3698
- return input
3699
- .filter((e) => e != null)
3700
- .map((entry) => {
3701
- return entry;
3702
- });
3703
- };
3704
- const se_ServiceAccountCredentials = (input, context) => {
3705
- return {
3706
- ...(input.AccountName != null && { AccountName: input.AccountName }),
3707
- ...(input.AccountPassword != null && { AccountPassword: input.AccountPassword }),
3708
- };
3709
- };
3710
- const se_StackAttributes = (input, context) => {
3711
- return input
3712
- .filter((e) => e != null)
3713
- .map((entry) => {
3714
- return entry;
3715
- });
3716
- };
3717
- const se_StartFleetRequest = (input, context) => {
3718
- return {
3719
- ...(input.Name != null && { Name: input.Name }),
3720
- };
3721
- };
3722
- const se_StartImageBuilderRequest = (input, context) => {
3723
- return {
3724
- ...(input.AppstreamAgentVersion != null && { AppstreamAgentVersion: input.AppstreamAgentVersion }),
3725
- ...(input.Name != null && { Name: input.Name }),
3726
- };
3727
- };
3728
- const se_StopFleetRequest = (input, context) => {
3729
- return {
3730
- ...(input.Name != null && { Name: input.Name }),
3731
- };
3732
- };
3733
- const se_StopImageBuilderRequest = (input, context) => {
3734
- return {
3735
- ...(input.Name != null && { Name: input.Name }),
3736
- };
3737
- };
3738
- const se_StorageConnector = (input, context) => {
3739
- return {
3740
- ...(input.ConnectorType != null && { ConnectorType: input.ConnectorType }),
3741
- ...(input.Domains != null && { Domains: se_DomainList(input.Domains, context) }),
3742
- ...(input.ResourceIdentifier != null && { ResourceIdentifier: input.ResourceIdentifier }),
3743
- };
3744
- };
3745
- const se_StorageConnectorList = (input, context) => {
3746
- return input
3747
- .filter((e) => e != null)
3748
- .map((entry) => {
3749
- return se_StorageConnector(entry, context);
3750
- });
3751
- };
3752
- const se_StreamingExperienceSettings = (input, context) => {
3753
- return {
3754
- ...(input.PreferredProtocol != null && { PreferredProtocol: input.PreferredProtocol }),
3755
- };
3756
- };
3757
- const se_StringList = (input, context) => {
3758
- return input
3759
- .filter((e) => e != null)
3760
- .map((entry) => {
3761
- return entry;
3762
- });
3763
- };
3764
- const se_SubnetIdList = (input, context) => {
3765
- return input
3766
- .filter((e) => e != null)
3767
- .map((entry) => {
3768
- return entry;
3769
- });
3770
- };
3771
- const se_TagKeyList = (input, context) => {
3772
- return input
3773
- .filter((e) => e != null)
3774
- .map((entry) => {
3775
- return entry;
3776
- });
3777
- };
3778
- const se_TagResourceRequest = (input, context) => {
3779
- return {
3780
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3781
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3782
- };
3783
- };
3784
- const se_Tags = (input, context) => {
3785
- return Object.entries(input).reduce((acc, [key, value]) => {
3786
- if (value === null) {
3787
- return acc;
3788
- }
3789
- acc[key] = value;
3790
- return acc;
3791
- }, {});
3792
- };
3793
- const se_UntagResourceRequest = (input, context) => {
3794
- return {
3795
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3796
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
3797
- };
3798
- };
3799
- const se_UpdateApplicationRequest = (input, context) => {
3800
- return {
3801
- ...(input.AppBlockArn != null && { AppBlockArn: input.AppBlockArn }),
3802
- ...(input.AttributesToDelete != null && {
3803
- AttributesToDelete: se_ApplicationAttributes(input.AttributesToDelete, context),
3804
- }),
3805
- ...(input.Description != null && { Description: input.Description }),
3806
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3807
- ...(input.IconS3Location != null && { IconS3Location: se_S3Location(input.IconS3Location, context) }),
3808
- ...(input.LaunchParameters != null && { LaunchParameters: input.LaunchParameters }),
3809
- ...(input.LaunchPath != null && { LaunchPath: input.LaunchPath }),
3810
- ...(input.Name != null && { Name: input.Name }),
3811
- ...(input.WorkingDirectory != null && { WorkingDirectory: input.WorkingDirectory }),
3812
- };
3813
- };
3814
- const se_UpdateDirectoryConfigRequest = (input, context) => {
3815
- return {
3816
- ...(input.CertificateBasedAuthProperties != null && {
3817
- CertificateBasedAuthProperties: se_CertificateBasedAuthProperties(input.CertificateBasedAuthProperties, context),
3818
- }),
3819
- ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
3820
- ...(input.OrganizationalUnitDistinguishedNames != null && {
3821
- OrganizationalUnitDistinguishedNames: se_OrganizationalUnitDistinguishedNamesList(input.OrganizationalUnitDistinguishedNames, context),
3822
- }),
3823
- ...(input.ServiceAccountCredentials != null && {
3824
- ServiceAccountCredentials: se_ServiceAccountCredentials(input.ServiceAccountCredentials, context),
3825
- }),
3826
- };
3827
- };
3828
- const se_UpdateEntitlementRequest = (input, context) => {
3829
- return {
3830
- ...(input.AppVisibility != null && { AppVisibility: input.AppVisibility }),
3831
- ...(input.Attributes != null && { Attributes: se_EntitlementAttributeList(input.Attributes, context) }),
3832
- ...(input.Description != null && { Description: input.Description }),
3833
- ...(input.Name != null && { Name: input.Name }),
3834
- ...(input.StackName != null && { StackName: input.StackName }),
3835
- };
3836
- };
3837
- const se_UpdateFleetRequest = (input, context) => {
3838
- return {
3839
- ...(input.AttributesToDelete != null && {
3840
- AttributesToDelete: se_FleetAttributes(input.AttributesToDelete, context),
3841
- }),
3842
- ...(input.ComputeCapacity != null && { ComputeCapacity: se_ComputeCapacity(input.ComputeCapacity, context) }),
3843
- ...(input.DeleteVpcConfig != null && { DeleteVpcConfig: input.DeleteVpcConfig }),
3844
- ...(input.Description != null && { Description: input.Description }),
3845
- ...(input.DisconnectTimeoutInSeconds != null && { DisconnectTimeoutInSeconds: input.DisconnectTimeoutInSeconds }),
3846
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3847
- ...(input.DomainJoinInfo != null && { DomainJoinInfo: se_DomainJoinInfo(input.DomainJoinInfo, context) }),
3848
- ...(input.EnableDefaultInternetAccess != null && {
3849
- EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
3850
- }),
3851
- ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
3852
- ...(input.IdleDisconnectTimeoutInSeconds != null && {
3853
- IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
3854
- }),
3855
- ...(input.ImageArn != null && { ImageArn: input.ImageArn }),
3856
- ...(input.ImageName != null && { ImageName: input.ImageName }),
3857
- ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
3858
- ...(input.MaxConcurrentSessions != null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
3859
- ...(input.MaxUserDurationInSeconds != null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
3860
- ...(input.Name != null && { Name: input.Name }),
3861
- ...(input.Platform != null && { Platform: input.Platform }),
3862
- ...(input.SessionScriptS3Location != null && {
3863
- SessionScriptS3Location: se_S3Location(input.SessionScriptS3Location, context),
3864
- }),
3865
- ...(input.StreamView != null && { StreamView: input.StreamView }),
3866
- ...(input.UsbDeviceFilterStrings != null && {
3867
- UsbDeviceFilterStrings: se_UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
3868
- }),
3869
- ...(input.VpcConfig != null && { VpcConfig: se_VpcConfig(input.VpcConfig, context) }),
3870
- };
3871
- };
3872
- const se_UpdateImagePermissionsRequest = (input, context) => {
3873
- return {
3874
- ...(input.ImagePermissions != null && { ImagePermissions: se_ImagePermissions(input.ImagePermissions, context) }),
3875
- ...(input.Name != null && { Name: input.Name }),
3876
- ...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
3877
- };
3878
- };
3879
- const se_UpdateStackRequest = (input, context) => {
3880
- return {
3881
- ...(input.AccessEndpoints != null && { AccessEndpoints: se_AccessEndpointList(input.AccessEndpoints, context) }),
3882
- ...(input.ApplicationSettings != null && {
3883
- ApplicationSettings: se_ApplicationSettings(input.ApplicationSettings, context),
3884
- }),
3885
- ...(input.AttributesToDelete != null && {
3886
- AttributesToDelete: se_StackAttributes(input.AttributesToDelete, context),
3887
- }),
3888
- ...(input.DeleteStorageConnectors != null && { DeleteStorageConnectors: input.DeleteStorageConnectors }),
3889
- ...(input.Description != null && { Description: input.Description }),
3890
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3891
- ...(input.EmbedHostDomains != null && { EmbedHostDomains: se_EmbedHostDomains(input.EmbedHostDomains, context) }),
3892
- ...(input.FeedbackURL != null && { FeedbackURL: input.FeedbackURL }),
3893
- ...(input.Name != null && { Name: input.Name }),
3894
- ...(input.RedirectURL != null && { RedirectURL: input.RedirectURL }),
3895
- ...(input.StorageConnectors != null && {
3896
- StorageConnectors: se_StorageConnectorList(input.StorageConnectors, context),
3897
- }),
3898
- ...(input.StreamingExperienceSettings != null && {
3899
- StreamingExperienceSettings: se_StreamingExperienceSettings(input.StreamingExperienceSettings, context),
3900
- }),
3901
- ...(input.UserSettings != null && { UserSettings: se_UserSettingList(input.UserSettings, context) }),
3902
- };
3903
- };
3904
- const se_UsbDeviceFilterStrings = (input, context) => {
3905
- return input
3906
- .filter((e) => e != null)
3907
- .map((entry) => {
3908
- return entry;
3909
- });
3910
- };
3911
- const se_UserSetting = (input, context) => {
3912
- return {
3913
- ...(input.Action != null && { Action: input.Action }),
3914
- ...(input.Permission != null && { Permission: input.Permission }),
3915
- };
3916
- };
3917
- const se_UserSettingList = (input, context) => {
3918
- return input
3919
- .filter((e) => e != null)
3920
- .map((entry) => {
3921
- return se_UserSetting(entry, context);
3922
- });
3923
- };
3924
- const se_UserStackAssociation = (input, context) => {
3925
- return {
3926
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3927
- ...(input.SendEmailNotification != null && { SendEmailNotification: input.SendEmailNotification }),
3928
- ...(input.StackName != null && { StackName: input.StackName }),
3929
- ...(input.UserName != null && { UserName: input.UserName }),
3930
- };
3931
- };
3932
- const se_UserStackAssociationList = (input, context) => {
3933
- return input
3934
- .filter((e) => e != null)
3935
- .map((entry) => {
3936
- return se_UserStackAssociation(entry, context);
3937
- });
3938
- };
3939
- const se_VpcConfig = (input, context) => {
3940
- return {
3941
- ...(input.SecurityGroupIds != null && {
3942
- SecurityGroupIds: se_SecurityGroupIdList(input.SecurityGroupIds, context),
3943
- }),
3944
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIdList(input.SubnetIds, context) }),
3945
- };
3946
- };
3947
- const de_AccessEndpoint = (output, context) => {
3948
- return {
3949
- EndpointType: __expectString(output.EndpointType),
3950
- VpceId: __expectString(output.VpceId),
3951
- };
3952
- };
3953
- const de_AccessEndpointList = (output, context) => {
3954
- const retVal = (output || [])
3955
- .filter((e) => e != null)
3956
- .map((entry) => {
3957
- if (entry === null) {
3958
- return null;
3959
- }
3960
- return de_AccessEndpoint(entry, context);
3961
- });
3962
- return retVal;
3963
- };
3964
- const de_AppBlock = (output, context) => {
3965
- return {
3966
- Arn: __expectString(output.Arn),
3967
- CreatedTime: output.CreatedTime != null
3968
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
3969
- : undefined,
3970
- Description: __expectString(output.Description),
3971
- DisplayName: __expectString(output.DisplayName),
3972
- Name: __expectString(output.Name),
3973
- SetupScriptDetails: output.SetupScriptDetails != null ? de_ScriptDetails(output.SetupScriptDetails, context) : undefined,
3974
- SourceS3Location: output.SourceS3Location != null ? de_S3Location(output.SourceS3Location, context) : undefined,
3975
- };
3976
- };
3977
- const de_AppBlocks = (output, context) => {
3978
- const retVal = (output || [])
3979
- .filter((e) => e != null)
3980
- .map((entry) => {
3981
- if (entry === null) {
3982
- return null;
3983
- }
3984
- return de_AppBlock(entry, context);
3985
- });
3986
- return retVal;
3987
- };
3988
- const de_Application = (output, context) => {
3989
- return {
3990
- AppBlockArn: __expectString(output.AppBlockArn),
3991
- Arn: __expectString(output.Arn),
3992
- CreatedTime: output.CreatedTime != null
3993
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
3994
- : undefined,
3995
- Description: __expectString(output.Description),
3996
- DisplayName: __expectString(output.DisplayName),
3997
- Enabled: __expectBoolean(output.Enabled),
3998
- IconS3Location: output.IconS3Location != null ? de_S3Location(output.IconS3Location, context) : undefined,
3999
- IconURL: __expectString(output.IconURL),
4000
- InstanceFamilies: output.InstanceFamilies != null ? de_StringList(output.InstanceFamilies, context) : undefined,
4001
- LaunchParameters: __expectString(output.LaunchParameters),
4002
- LaunchPath: __expectString(output.LaunchPath),
4003
- Metadata: output.Metadata != null ? de_Metadata(output.Metadata, context) : undefined,
4004
- Name: __expectString(output.Name),
4005
- Platforms: output.Platforms != null ? de_Platforms(output.Platforms, context) : undefined,
4006
- WorkingDirectory: __expectString(output.WorkingDirectory),
4007
- };
4008
- };
4009
- const de_ApplicationFleetAssociation = (output, context) => {
4010
- return {
4011
- ApplicationArn: __expectString(output.ApplicationArn),
4012
- FleetName: __expectString(output.FleetName),
4013
- };
4014
- };
4015
- const de_ApplicationFleetAssociationList = (output, context) => {
4016
- const retVal = (output || [])
4017
- .filter((e) => e != null)
4018
- .map((entry) => {
4019
- if (entry === null) {
4020
- return null;
4021
- }
4022
- return de_ApplicationFleetAssociation(entry, context);
4023
- });
4024
- return retVal;
4025
- };
4026
- const de_Applications = (output, context) => {
4027
- const retVal = (output || [])
4028
- .filter((e) => e != null)
4029
- .map((entry) => {
4030
- if (entry === null) {
4031
- return null;
4032
- }
4033
- return de_Application(entry, context);
4034
- });
4035
- return retVal;
4036
- };
4037
- const de_ApplicationSettingsResponse = (output, context) => {
4038
- return {
4039
- Enabled: __expectBoolean(output.Enabled),
4040
- S3BucketName: __expectString(output.S3BucketName),
4041
- SettingsGroup: __expectString(output.SettingsGroup),
4042
- };
4043
- };
4044
- const de_AssociateApplicationFleetResult = (output, context) => {
4045
- return {
4046
- ApplicationFleetAssociation: output.ApplicationFleetAssociation != null
4047
- ? de_ApplicationFleetAssociation(output.ApplicationFleetAssociation, context)
4048
- : undefined,
4049
- };
4050
- };
4051
- const de_AssociateApplicationToEntitlementResult = (output, context) => {
4052
- return {};
4053
- };
4054
- const de_AssociateFleetResult = (output, context) => {
4055
- return {};
4056
- };
4057
- const de_BatchAssociateUserStackResult = (output, context) => {
4058
- return {
4059
- errors: output.errors != null ? de_UserStackAssociationErrorList(output.errors, context) : undefined,
4060
- };
4061
- };
4062
- const de_BatchDisassociateUserStackResult = (output, context) => {
4063
- return {
4064
- errors: output.errors != null ? de_UserStackAssociationErrorList(output.errors, context) : undefined,
4065
- };
4066
- };
4067
- const de_CertificateBasedAuthProperties = (output, context) => {
4068
- return {
4069
- CertificateAuthorityArn: __expectString(output.CertificateAuthorityArn),
4070
- Status: __expectString(output.Status),
4071
- };
4072
- };
4073
- const de_ComputeCapacityStatus = (output, context) => {
4074
- return {
4075
- Available: __expectInt32(output.Available),
4076
- Desired: __expectInt32(output.Desired),
4077
- InUse: __expectInt32(output.InUse),
4078
- Running: __expectInt32(output.Running),
4079
- };
4080
- };
4081
- const de_ConcurrentModificationException = (output, context) => {
4082
- return {
4083
- Message: __expectString(output.Message),
4084
- };
4085
- };
4086
- const de_CopyImageResponse = (output, context) => {
4087
- return {
4088
- DestinationImageName: __expectString(output.DestinationImageName),
4089
- };
4090
- };
4091
- const de_CreateAppBlockResult = (output, context) => {
4092
- return {
4093
- AppBlock: output.AppBlock != null ? de_AppBlock(output.AppBlock, context) : undefined,
4094
- };
4095
- };
4096
- const de_CreateApplicationResult = (output, context) => {
4097
- return {
4098
- Application: output.Application != null ? de_Application(output.Application, context) : undefined,
4099
- };
4100
- };
4101
- const de_CreateDirectoryConfigResult = (output, context) => {
4102
- return {
4103
- DirectoryConfig: output.DirectoryConfig != null ? de_DirectoryConfig(output.DirectoryConfig, context) : undefined,
4104
- };
4105
- };
4106
- const de_CreateEntitlementResult = (output, context) => {
4107
- return {
4108
- Entitlement: output.Entitlement != null ? de_Entitlement(output.Entitlement, context) : undefined,
4109
- };
4110
- };
4111
- const de_CreateFleetResult = (output, context) => {
4112
- return {
4113
- Fleet: output.Fleet != null ? de_Fleet(output.Fleet, context) : undefined,
4114
- };
4115
- };
4116
- const de_CreateImageBuilderResult = (output, context) => {
4117
- return {
4118
- ImageBuilder: output.ImageBuilder != null ? de_ImageBuilder(output.ImageBuilder, context) : undefined,
4119
- };
4120
- };
4121
- const de_CreateImageBuilderStreamingURLResult = (output, context) => {
4122
- return {
4123
- Expires: output.Expires != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Expires))) : undefined,
4124
- StreamingURL: __expectString(output.StreamingURL),
4125
- };
4126
- };
4127
- const de_CreateStackResult = (output, context) => {
4128
- return {
4129
- Stack: output.Stack != null ? de_Stack(output.Stack, context) : undefined,
4130
- };
4131
- };
4132
- const de_CreateStreamingURLResult = (output, context) => {
4133
- return {
4134
- Expires: output.Expires != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Expires))) : undefined,
4135
- StreamingURL: __expectString(output.StreamingURL),
4136
- };
4137
- };
4138
- const de_CreateUpdatedImageResult = (output, context) => {
4139
- return {
4140
- canUpdateImage: __expectBoolean(output.canUpdateImage),
4141
- image: output.image != null ? de_Image(output.image, context) : undefined,
4142
- };
4143
- };
4144
- const de_CreateUsageReportSubscriptionResult = (output, context) => {
4145
- return {
4146
- S3BucketName: __expectString(output.S3BucketName),
4147
- Schedule: __expectString(output.Schedule),
4148
- };
4149
- };
4150
- const de_CreateUserResult = (output, context) => {
4151
- return {};
4152
- };
4153
- const de_DeleteAppBlockResult = (output, context) => {
4154
- return {};
4155
- };
4156
- const de_DeleteApplicationResult = (output, context) => {
4157
- return {};
4158
- };
4159
- const de_DeleteDirectoryConfigResult = (output, context) => {
4160
- return {};
4161
- };
4162
- const de_DeleteEntitlementResult = (output, context) => {
4163
- return {};
4164
- };
4165
- const de_DeleteFleetResult = (output, context) => {
4166
- return {};
4167
- };
4168
- const de_DeleteImageBuilderResult = (output, context) => {
4169
- return {
4170
- ImageBuilder: output.ImageBuilder != null ? de_ImageBuilder(output.ImageBuilder, context) : undefined,
4171
- };
4172
- };
4173
- const de_DeleteImagePermissionsResult = (output, context) => {
4174
- return {};
4175
- };
4176
- const de_DeleteImageResult = (output, context) => {
4177
- return {
4178
- Image: output.Image != null ? de_Image(output.Image, context) : undefined,
4179
- };
4180
- };
4181
- const de_DeleteStackResult = (output, context) => {
4182
- return {};
4183
- };
4184
- const de_DeleteUsageReportSubscriptionResult = (output, context) => {
4185
- return {};
4186
- };
4187
- const de_DeleteUserResult = (output, context) => {
4188
- return {};
4189
- };
4190
- const de_DescribeAppBlocksResult = (output, context) => {
4191
- return {
4192
- AppBlocks: output.AppBlocks != null ? de_AppBlocks(output.AppBlocks, context) : undefined,
4193
- NextToken: __expectString(output.NextToken),
4194
- };
4195
- };
4196
- const de_DescribeApplicationFleetAssociationsResult = (output, context) => {
4197
- return {
4198
- ApplicationFleetAssociations: output.ApplicationFleetAssociations != null
4199
- ? de_ApplicationFleetAssociationList(output.ApplicationFleetAssociations, context)
4200
- : undefined,
4201
- NextToken: __expectString(output.NextToken),
4202
- };
4203
- };
4204
- const de_DescribeApplicationsResult = (output, context) => {
4205
- return {
4206
- Applications: output.Applications != null ? de_Applications(output.Applications, context) : undefined,
4207
- NextToken: __expectString(output.NextToken),
4208
- };
4209
- };
4210
- const de_DescribeDirectoryConfigsResult = (output, context) => {
4211
- return {
4212
- DirectoryConfigs: output.DirectoryConfigs != null ? de_DirectoryConfigList(output.DirectoryConfigs, context) : undefined,
4213
- NextToken: __expectString(output.NextToken),
4214
- };
4215
- };
4216
- const de_DescribeEntitlementsResult = (output, context) => {
4217
- return {
4218
- Entitlements: output.Entitlements != null ? de_EntitlementList(output.Entitlements, context) : undefined,
4219
- NextToken: __expectString(output.NextToken),
4220
- };
4221
- };
4222
- const de_DescribeFleetsResult = (output, context) => {
4223
- return {
4224
- Fleets: output.Fleets != null ? de_FleetList(output.Fleets, context) : undefined,
4225
- NextToken: __expectString(output.NextToken),
4226
- };
4227
- };
4228
- const de_DescribeImageBuildersResult = (output, context) => {
4229
- return {
4230
- ImageBuilders: output.ImageBuilders != null ? de_ImageBuilderList(output.ImageBuilders, context) : undefined,
4231
- NextToken: __expectString(output.NextToken),
4232
- };
4233
- };
4234
- const de_DescribeImagePermissionsResult = (output, context) => {
4235
- return {
4236
- Name: __expectString(output.Name),
4237
- NextToken: __expectString(output.NextToken),
4238
- SharedImagePermissionsList: output.SharedImagePermissionsList != null
4239
- ? de_SharedImagePermissionsList(output.SharedImagePermissionsList, context)
4240
- : undefined,
4241
- };
4242
- };
4243
- const de_DescribeImagesResult = (output, context) => {
4244
- return {
4245
- Images: output.Images != null ? de_ImageList(output.Images, context) : undefined,
4246
- NextToken: __expectString(output.NextToken),
4247
- };
4248
- };
4249
- const de_DescribeSessionsResult = (output, context) => {
4250
- return {
4251
- NextToken: __expectString(output.NextToken),
4252
- Sessions: output.Sessions != null ? de_SessionList(output.Sessions, context) : undefined,
4253
- };
4254
- };
4255
- const de_DescribeStacksResult = (output, context) => {
4256
- return {
4257
- NextToken: __expectString(output.NextToken),
4258
- Stacks: output.Stacks != null ? de_StackList(output.Stacks, context) : undefined,
4259
- };
4260
- };
4261
- const de_DescribeUsageReportSubscriptionsResult = (output, context) => {
4262
- return {
4263
- NextToken: __expectString(output.NextToken),
4264
- UsageReportSubscriptions: output.UsageReportSubscriptions != null
4265
- ? de_UsageReportSubscriptionList(output.UsageReportSubscriptions, context)
4266
- : undefined,
4267
- };
4268
- };
4269
- const de_DescribeUsersResult = (output, context) => {
4270
- return {
4271
- NextToken: __expectString(output.NextToken),
4272
- Users: output.Users != null ? de_UserList(output.Users, context) : undefined,
4273
- };
4274
- };
4275
- const de_DescribeUserStackAssociationsResult = (output, context) => {
4276
- return {
4277
- NextToken: __expectString(output.NextToken),
4278
- UserStackAssociations: output.UserStackAssociations != null
4279
- ? de_UserStackAssociationList(output.UserStackAssociations, context)
4280
- : undefined,
4281
- };
4282
- };
4283
- const de_DirectoryConfig = (output, context) => {
4284
- return {
4285
- CertificateBasedAuthProperties: output.CertificateBasedAuthProperties != null
4286
- ? de_CertificateBasedAuthProperties(output.CertificateBasedAuthProperties, context)
4287
- : undefined,
4288
- CreatedTime: output.CreatedTime != null
4289
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
4290
- : undefined,
4291
- DirectoryName: __expectString(output.DirectoryName),
4292
- OrganizationalUnitDistinguishedNames: output.OrganizationalUnitDistinguishedNames != null
4293
- ? de_OrganizationalUnitDistinguishedNamesList(output.OrganizationalUnitDistinguishedNames, context)
4294
- : undefined,
4295
- ServiceAccountCredentials: output.ServiceAccountCredentials != null
4296
- ? de_ServiceAccountCredentials(output.ServiceAccountCredentials, context)
4297
- : undefined,
4298
- };
4299
- };
4300
- const de_DirectoryConfigList = (output, context) => {
4301
- const retVal = (output || [])
4302
- .filter((e) => e != null)
4303
- .map((entry) => {
4304
- if (entry === null) {
4305
- return null;
4306
- }
4307
- return de_DirectoryConfig(entry, context);
4308
- });
4309
- return retVal;
4310
- };
4311
- const de_DisableUserResult = (output, context) => {
4312
- return {};
4313
- };
4314
- const de_DisassociateApplicationFleetResult = (output, context) => {
4315
- return {};
4316
- };
4317
- const de_DisassociateApplicationFromEntitlementResult = (output, context) => {
4318
- return {};
4319
- };
4320
- const de_DisassociateFleetResult = (output, context) => {
4321
- return {};
4322
- };
4323
- const de_DomainJoinInfo = (output, context) => {
4324
- return {
4325
- DirectoryName: __expectString(output.DirectoryName),
4326
- OrganizationalUnitDistinguishedName: __expectString(output.OrganizationalUnitDistinguishedName),
4327
- };
4328
- };
4329
- const de_DomainList = (output, context) => {
4330
- const retVal = (output || [])
4331
- .filter((e) => e != null)
4332
- .map((entry) => {
4333
- if (entry === null) {
4334
- return null;
4335
- }
4336
- return __expectString(entry);
4337
- });
4338
- return retVal;
4339
- };
4340
- const de_EmbedHostDomains = (output, context) => {
4341
- const retVal = (output || [])
4342
- .filter((e) => e != null)
4343
- .map((entry) => {
4344
- if (entry === null) {
4345
- return null;
4346
- }
4347
- return __expectString(entry);
4348
- });
4349
- return retVal;
4350
- };
4351
- const de_EnableUserResult = (output, context) => {
4352
- return {};
4353
- };
4354
- const de_EntitledApplication = (output, context) => {
4355
- return {
4356
- ApplicationIdentifier: __expectString(output.ApplicationIdentifier),
4357
- };
4358
- };
4359
- const de_EntitledApplicationList = (output, context) => {
4360
- const retVal = (output || [])
4361
- .filter((e) => e != null)
4362
- .map((entry) => {
4363
- if (entry === null) {
4364
- return null;
4365
- }
4366
- return de_EntitledApplication(entry, context);
4367
- });
4368
- return retVal;
4369
- };
4370
- const de_Entitlement = (output, context) => {
4371
- return {
4372
- AppVisibility: __expectString(output.AppVisibility),
4373
- Attributes: output.Attributes != null ? de_EntitlementAttributeList(output.Attributes, context) : undefined,
4374
- CreatedTime: output.CreatedTime != null
4375
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
4376
- : undefined,
4377
- Description: __expectString(output.Description),
4378
- LastModifiedTime: output.LastModifiedTime != null
4379
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
4380
- : undefined,
4381
- Name: __expectString(output.Name),
4382
- StackName: __expectString(output.StackName),
4383
- };
4384
- };
4385
- const de_EntitlementAlreadyExistsException = (output, context) => {
4386
- return {
4387
- Message: __expectString(output.Message),
4388
- };
4389
- };
4390
- const de_EntitlementAttribute = (output, context) => {
4391
- return {
4392
- Name: __expectString(output.Name),
4393
- Value: __expectString(output.Value),
4394
- };
4395
- };
4396
- const de_EntitlementAttributeList = (output, context) => {
4397
- const retVal = (output || [])
4398
- .filter((e) => e != null)
4399
- .map((entry) => {
4400
- if (entry === null) {
4401
- return null;
4402
- }
4403
- return de_EntitlementAttribute(entry, context);
4404
- });
4405
- return retVal;
4406
- };
4407
- const de_EntitlementList = (output, context) => {
4408
- const retVal = (output || [])
4409
- .filter((e) => e != null)
4410
- .map((entry) => {
4411
- if (entry === null) {
4412
- return null;
4413
- }
4414
- return de_Entitlement(entry, context);
4415
- });
4416
- return retVal;
4417
- };
4418
- const de_EntitlementNotFoundException = (output, context) => {
4419
- return {
4420
- Message: __expectString(output.Message),
4421
- };
4422
- };
4423
- const de_ExpireSessionResult = (output, context) => {
4424
- return {};
4425
- };
4426
- const de_Fleet = (output, context) => {
4427
- return {
4428
- Arn: __expectString(output.Arn),
4429
- ComputeCapacityStatus: output.ComputeCapacityStatus != null
4430
- ? de_ComputeCapacityStatus(output.ComputeCapacityStatus, context)
4431
- : undefined,
4432
- CreatedTime: output.CreatedTime != null
4433
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
4434
- : undefined,
4435
- Description: __expectString(output.Description),
4436
- DisconnectTimeoutInSeconds: __expectInt32(output.DisconnectTimeoutInSeconds),
4437
- DisplayName: __expectString(output.DisplayName),
4438
- DomainJoinInfo: output.DomainJoinInfo != null ? de_DomainJoinInfo(output.DomainJoinInfo, context) : undefined,
4439
- EnableDefaultInternetAccess: __expectBoolean(output.EnableDefaultInternetAccess),
4440
- FleetErrors: output.FleetErrors != null ? de_FleetErrors(output.FleetErrors, context) : undefined,
4441
- FleetType: __expectString(output.FleetType),
4442
- IamRoleArn: __expectString(output.IamRoleArn),
4443
- IdleDisconnectTimeoutInSeconds: __expectInt32(output.IdleDisconnectTimeoutInSeconds),
4444
- ImageArn: __expectString(output.ImageArn),
4445
- ImageName: __expectString(output.ImageName),
4446
- InstanceType: __expectString(output.InstanceType),
4447
- MaxConcurrentSessions: __expectInt32(output.MaxConcurrentSessions),
4448
- MaxUserDurationInSeconds: __expectInt32(output.MaxUserDurationInSeconds),
4449
- Name: __expectString(output.Name),
4450
- Platform: __expectString(output.Platform),
4451
- SessionScriptS3Location: output.SessionScriptS3Location != null ? de_S3Location(output.SessionScriptS3Location, context) : undefined,
4452
- State: __expectString(output.State),
4453
- StreamView: __expectString(output.StreamView),
4454
- UsbDeviceFilterStrings: output.UsbDeviceFilterStrings != null
4455
- ? de_UsbDeviceFilterStrings(output.UsbDeviceFilterStrings, context)
4456
- : undefined,
4457
- VpcConfig: output.VpcConfig != null ? de_VpcConfig(output.VpcConfig, context) : undefined,
4458
- };
4459
- };
4460
- const de_FleetError = (output, context) => {
4461
- return {
4462
- ErrorCode: __expectString(output.ErrorCode),
4463
- ErrorMessage: __expectString(output.ErrorMessage),
4464
- };
4465
- };
4466
- const de_FleetErrors = (output, context) => {
4467
- const retVal = (output || [])
4468
- .filter((e) => e != null)
4469
- .map((entry) => {
4470
- if (entry === null) {
4471
- return null;
4472
- }
4473
- return de_FleetError(entry, context);
4474
- });
4475
- return retVal;
4476
- };
4477
- const de_FleetList = (output, context) => {
4478
- const retVal = (output || [])
4479
- .filter((e) => e != null)
4480
- .map((entry) => {
4481
- if (entry === null) {
4482
- return null;
4483
- }
4484
- return de_Fleet(entry, context);
4485
- });
4486
- return retVal;
4487
- };
4488
- const de_Image = (output, context) => {
4489
- return {
4490
- Applications: output.Applications != null ? de_Applications(output.Applications, context) : undefined,
4491
- AppstreamAgentVersion: __expectString(output.AppstreamAgentVersion),
4492
- Arn: __expectString(output.Arn),
4493
- BaseImageArn: __expectString(output.BaseImageArn),
4494
- CreatedTime: output.CreatedTime != null
4495
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
4496
- : undefined,
4497
- Description: __expectString(output.Description),
4498
- DisplayName: __expectString(output.DisplayName),
4499
- ImageBuilderName: __expectString(output.ImageBuilderName),
4500
- ImageBuilderSupported: __expectBoolean(output.ImageBuilderSupported),
4501
- ImageErrors: output.ImageErrors != null ? de_ResourceErrors(output.ImageErrors, context) : undefined,
4502
- ImagePermissions: output.ImagePermissions != null ? de_ImagePermissions(output.ImagePermissions, context) : undefined,
4503
- Name: __expectString(output.Name),
4504
- Platform: __expectString(output.Platform),
4505
- PublicBaseImageReleasedDate: output.PublicBaseImageReleasedDate != null
4506
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.PublicBaseImageReleasedDate)))
4507
- : undefined,
4508
- State: __expectString(output.State),
4509
- StateChangeReason: output.StateChangeReason != null ? de_ImageStateChangeReason(output.StateChangeReason, context) : undefined,
4510
- Visibility: __expectString(output.Visibility),
4511
- };
4512
- };
4513
- const de_ImageBuilder = (output, context) => {
4514
- return {
4515
- AccessEndpoints: output.AccessEndpoints != null ? de_AccessEndpointList(output.AccessEndpoints, context) : undefined,
4516
- AppstreamAgentVersion: __expectString(output.AppstreamAgentVersion),
4517
- Arn: __expectString(output.Arn),
4518
- CreatedTime: output.CreatedTime != null
4519
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
4520
- : undefined,
4521
- Description: __expectString(output.Description),
4522
- DisplayName: __expectString(output.DisplayName),
4523
- DomainJoinInfo: output.DomainJoinInfo != null ? de_DomainJoinInfo(output.DomainJoinInfo, context) : undefined,
4524
- EnableDefaultInternetAccess: __expectBoolean(output.EnableDefaultInternetAccess),
4525
- IamRoleArn: __expectString(output.IamRoleArn),
4526
- ImageArn: __expectString(output.ImageArn),
4527
- ImageBuilderErrors: output.ImageBuilderErrors != null ? de_ResourceErrors(output.ImageBuilderErrors, context) : undefined,
4528
- InstanceType: __expectString(output.InstanceType),
4529
- Name: __expectString(output.Name),
4530
- NetworkAccessConfiguration: output.NetworkAccessConfiguration != null
4531
- ? de_NetworkAccessConfiguration(output.NetworkAccessConfiguration, context)
4532
- : undefined,
4533
- Platform: __expectString(output.Platform),
4534
- State: __expectString(output.State),
4535
- StateChangeReason: output.StateChangeReason != null
4536
- ? de_ImageBuilderStateChangeReason(output.StateChangeReason, context)
4537
- : undefined,
4538
- VpcConfig: output.VpcConfig != null ? de_VpcConfig(output.VpcConfig, context) : undefined,
4539
- };
4540
- };
4541
- const de_ImageBuilderList = (output, context) => {
4542
- const retVal = (output || [])
4543
- .filter((e) => e != null)
4544
- .map((entry) => {
4545
- if (entry === null) {
4546
- return null;
4547
- }
4548
- return de_ImageBuilder(entry, context);
3069
+ const de_AppBlock = (output, context) => {
3070
+ return take(output, {
3071
+ Arn: __expectString,
3072
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3073
+ Description: __expectString,
3074
+ DisplayName: __expectString,
3075
+ Name: __expectString,
3076
+ SetupScriptDetails: _json,
3077
+ SourceS3Location: _json,
4549
3078
  });
4550
- return retVal;
4551
- };
4552
- const de_ImageBuilderStateChangeReason = (output, context) => {
4553
- return {
4554
- Code: __expectString(output.Code),
4555
- Message: __expectString(output.Message),
4556
- };
4557
3079
  };
4558
- const de_ImageList = (output, context) => {
3080
+ const de_AppBlocks = (output, context) => {
4559
3081
  const retVal = (output || [])
4560
- .filter((e) => e != null)
4561
- .map((entry) => {
4562
- if (entry === null) {
4563
- return null;
4564
- }
4565
- return de_Image(entry, context);
4566
- });
4567
- return retVal;
4568
- };
4569
- const de_ImagePermissions = (output, context) => {
4570
- return {
4571
- allowFleet: __expectBoolean(output.allowFleet),
4572
- allowImageBuilder: __expectBoolean(output.allowImageBuilder),
4573
- };
4574
- };
4575
- const de_ImageStateChangeReason = (output, context) => {
4576
- return {
4577
- Code: __expectString(output.Code),
4578
- Message: __expectString(output.Message),
4579
- };
4580
- };
4581
- const de_IncompatibleImageException = (output, context) => {
4582
- return {
4583
- Message: __expectString(output.Message),
4584
- };
4585
- };
4586
- const de_InvalidAccountStatusException = (output, context) => {
4587
- return {
4588
- Message: __expectString(output.Message),
4589
- };
4590
- };
4591
- const de_InvalidParameterCombinationException = (output, context) => {
4592
- return {
4593
- Message: __expectString(output.Message),
4594
- };
4595
- };
4596
- const de_InvalidRoleException = (output, context) => {
4597
- return {
4598
- Message: __expectString(output.Message),
4599
- };
3082
+ .filter((e) => e != null)
3083
+ .map((entry) => {
3084
+ return de_AppBlock(entry, context);
3085
+ });
3086
+ return retVal;
4600
3087
  };
4601
- const de_LastReportGenerationExecutionError = (output, context) => {
4602
- return {
4603
- ErrorCode: __expectString(output.ErrorCode),
4604
- ErrorMessage: __expectString(output.ErrorMessage),
4605
- };
3088
+ const de_Application = (output, context) => {
3089
+ return take(output, {
3090
+ AppBlockArn: __expectString,
3091
+ Arn: __expectString,
3092
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3093
+ Description: __expectString,
3094
+ DisplayName: __expectString,
3095
+ Enabled: __expectBoolean,
3096
+ IconS3Location: _json,
3097
+ IconURL: __expectString,
3098
+ InstanceFamilies: _json,
3099
+ LaunchParameters: __expectString,
3100
+ LaunchPath: __expectString,
3101
+ Metadata: _json,
3102
+ Name: __expectString,
3103
+ Platforms: _json,
3104
+ WorkingDirectory: __expectString,
3105
+ });
4606
3106
  };
4607
- const de_LastReportGenerationExecutionErrors = (output, context) => {
3107
+ const de_Applications = (output, context) => {
4608
3108
  const retVal = (output || [])
4609
3109
  .filter((e) => e != null)
4610
3110
  .map((entry) => {
4611
- if (entry === null) {
4612
- return null;
4613
- }
4614
- return de_LastReportGenerationExecutionError(entry, context);
3111
+ return de_Application(entry, context);
4615
3112
  });
4616
3113
  return retVal;
4617
3114
  };
4618
- const de_LimitExceededException = (output, context) => {
4619
- return {
4620
- Message: __expectString(output.Message),
4621
- };
3115
+ const de_CreateAppBlockResult = (output, context) => {
3116
+ return take(output, {
3117
+ AppBlock: (_) => de_AppBlock(_, context),
3118
+ });
4622
3119
  };
4623
- const de_ListAssociatedFleetsResult = (output, context) => {
4624
- return {
4625
- Names: output.Names != null ? de_StringList(output.Names, context) : undefined,
4626
- NextToken: __expectString(output.NextToken),
4627
- };
3120
+ const de_CreateApplicationResult = (output, context) => {
3121
+ return take(output, {
3122
+ Application: (_) => de_Application(_, context),
3123
+ });
4628
3124
  };
4629
- const de_ListAssociatedStacksResult = (output, context) => {
4630
- return {
4631
- Names: output.Names != null ? de_StringList(output.Names, context) : undefined,
4632
- NextToken: __expectString(output.NextToken),
4633
- };
3125
+ const de_CreateDirectoryConfigResult = (output, context) => {
3126
+ return take(output, {
3127
+ DirectoryConfig: (_) => de_DirectoryConfig(_, context),
3128
+ });
4634
3129
  };
4635
- const de_ListEntitledApplicationsResult = (output, context) => {
4636
- return {
4637
- EntitledApplications: output.EntitledApplications != null
4638
- ? de_EntitledApplicationList(output.EntitledApplications, context)
4639
- : undefined,
4640
- NextToken: __expectString(output.NextToken),
4641
- };
3130
+ const de_CreateEntitlementResult = (output, context) => {
3131
+ return take(output, {
3132
+ Entitlement: (_) => de_Entitlement(_, context),
3133
+ });
4642
3134
  };
4643
- const de_ListTagsForResourceResponse = (output, context) => {
4644
- return {
4645
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4646
- };
3135
+ const de_CreateFleetResult = (output, context) => {
3136
+ return take(output, {
3137
+ Fleet: (_) => de_Fleet(_, context),
3138
+ });
4647
3139
  };
4648
- const de_Metadata = (output, context) => {
4649
- return Object.entries(output).reduce((acc, [key, value]) => {
4650
- if (value === null) {
4651
- return acc;
4652
- }
4653
- acc[key] = __expectString(value);
4654
- return acc;
4655
- }, {});
3140
+ const de_CreateImageBuilderResult = (output, context) => {
3141
+ return take(output, {
3142
+ ImageBuilder: (_) => de_ImageBuilder(_, context),
3143
+ });
4656
3144
  };
4657
- const de_NetworkAccessConfiguration = (output, context) => {
4658
- return {
4659
- EniId: __expectString(output.EniId),
4660
- EniPrivateIpAddress: __expectString(output.EniPrivateIpAddress),
4661
- };
3145
+ const de_CreateImageBuilderStreamingURLResult = (output, context) => {
3146
+ return take(output, {
3147
+ Expires: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3148
+ StreamingURL: __expectString,
3149
+ });
4662
3150
  };
4663
- const de_OperationNotPermittedException = (output, context) => {
4664
- return {
4665
- Message: __expectString(output.Message),
4666
- };
3151
+ const de_CreateStackResult = (output, context) => {
3152
+ return take(output, {
3153
+ Stack: (_) => de_Stack(_, context),
3154
+ });
4667
3155
  };
4668
- const de_OrganizationalUnitDistinguishedNamesList = (output, context) => {
4669
- const retVal = (output || [])
4670
- .filter((e) => e != null)
4671
- .map((entry) => {
4672
- if (entry === null) {
4673
- return null;
4674
- }
4675
- return __expectString(entry);
3156
+ const de_CreateStreamingURLResult = (output, context) => {
3157
+ return take(output, {
3158
+ Expires: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3159
+ StreamingURL: __expectString,
4676
3160
  });
4677
- return retVal;
4678
3161
  };
4679
- const de_Platforms = (output, context) => {
4680
- const retVal = (output || [])
4681
- .filter((e) => e != null)
4682
- .map((entry) => {
4683
- if (entry === null) {
4684
- return null;
4685
- }
4686
- return __expectString(entry);
3162
+ const de_CreateUpdatedImageResult = (output, context) => {
3163
+ return take(output, {
3164
+ canUpdateImage: __expectBoolean,
3165
+ image: (_) => de_Image(_, context),
4687
3166
  });
4688
- return retVal;
4689
3167
  };
4690
- const de_RequestLimitExceededException = (output, context) => {
4691
- return {
4692
- Message: __expectString(output.Message),
4693
- };
3168
+ const de_DeleteImageBuilderResult = (output, context) => {
3169
+ return take(output, {
3170
+ ImageBuilder: (_) => de_ImageBuilder(_, context),
3171
+ });
4694
3172
  };
4695
- const de_ResourceAlreadyExistsException = (output, context) => {
4696
- return {
4697
- Message: __expectString(output.Message),
4698
- };
3173
+ const de_DeleteImageResult = (output, context) => {
3174
+ return take(output, {
3175
+ Image: (_) => de_Image(_, context),
3176
+ });
4699
3177
  };
4700
- const de_ResourceError = (output, context) => {
4701
- return {
4702
- ErrorCode: __expectString(output.ErrorCode),
4703
- ErrorMessage: __expectString(output.ErrorMessage),
4704
- ErrorTimestamp: output.ErrorTimestamp != null
4705
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ErrorTimestamp)))
4706
- : undefined,
4707
- };
3178
+ const de_DescribeAppBlocksResult = (output, context) => {
3179
+ return take(output, {
3180
+ AppBlocks: (_) => de_AppBlocks(_, context),
3181
+ NextToken: __expectString,
3182
+ });
4708
3183
  };
4709
- const de_ResourceErrors = (output, context) => {
4710
- const retVal = (output || [])
4711
- .filter((e) => e != null)
4712
- .map((entry) => {
4713
- if (entry === null) {
4714
- return null;
4715
- }
4716
- return de_ResourceError(entry, context);
3184
+ const de_DescribeApplicationsResult = (output, context) => {
3185
+ return take(output, {
3186
+ Applications: (_) => de_Applications(_, context),
3187
+ NextToken: __expectString,
4717
3188
  });
4718
- return retVal;
4719
3189
  };
4720
- const de_ResourceInUseException = (output, context) => {
4721
- return {
4722
- Message: __expectString(output.Message),
4723
- };
3190
+ const de_DescribeDirectoryConfigsResult = (output, context) => {
3191
+ return take(output, {
3192
+ DirectoryConfigs: (_) => de_DirectoryConfigList(_, context),
3193
+ NextToken: __expectString,
3194
+ });
4724
3195
  };
4725
- const de_ResourceNotAvailableException = (output, context) => {
4726
- return {
4727
- Message: __expectString(output.Message),
4728
- };
3196
+ const de_DescribeEntitlementsResult = (output, context) => {
3197
+ return take(output, {
3198
+ Entitlements: (_) => de_EntitlementList(_, context),
3199
+ NextToken: __expectString,
3200
+ });
4729
3201
  };
4730
- const de_ResourceNotFoundException = (output, context) => {
4731
- return {
4732
- Message: __expectString(output.Message),
4733
- };
3202
+ const de_DescribeFleetsResult = (output, context) => {
3203
+ return take(output, {
3204
+ Fleets: (_) => de_FleetList(_, context),
3205
+ NextToken: __expectString,
3206
+ });
4734
3207
  };
4735
- const de_S3Location = (output, context) => {
4736
- return {
4737
- S3Bucket: __expectString(output.S3Bucket),
4738
- S3Key: __expectString(output.S3Key),
4739
- };
3208
+ const de_DescribeImageBuildersResult = (output, context) => {
3209
+ return take(output, {
3210
+ ImageBuilders: (_) => de_ImageBuilderList(_, context),
3211
+ NextToken: __expectString,
3212
+ });
4740
3213
  };
4741
- const de_ScriptDetails = (output, context) => {
4742
- return {
4743
- ExecutableParameters: __expectString(output.ExecutableParameters),
4744
- ExecutablePath: __expectString(output.ExecutablePath),
4745
- ScriptS3Location: output.ScriptS3Location != null ? de_S3Location(output.ScriptS3Location, context) : undefined,
4746
- TimeoutInSeconds: __expectInt32(output.TimeoutInSeconds),
4747
- };
3214
+ const de_DescribeImagesResult = (output, context) => {
3215
+ return take(output, {
3216
+ Images: (_) => de_ImageList(_, context),
3217
+ NextToken: __expectString,
3218
+ });
4748
3219
  };
4749
- const de_SecurityGroupIdList = (output, context) => {
3220
+ const de_DescribeSessionsResult = (output, context) => {
3221
+ return take(output, {
3222
+ NextToken: __expectString,
3223
+ Sessions: (_) => de_SessionList(_, context),
3224
+ });
3225
+ };
3226
+ const de_DescribeStacksResult = (output, context) => {
3227
+ return take(output, {
3228
+ NextToken: __expectString,
3229
+ Stacks: (_) => de_StackList(_, context),
3230
+ });
3231
+ };
3232
+ const de_DescribeUsageReportSubscriptionsResult = (output, context) => {
3233
+ return take(output, {
3234
+ NextToken: __expectString,
3235
+ UsageReportSubscriptions: (_) => de_UsageReportSubscriptionList(_, context),
3236
+ });
3237
+ };
3238
+ const de_DescribeUsersResult = (output, context) => {
3239
+ return take(output, {
3240
+ NextToken: __expectString,
3241
+ Users: (_) => de_UserList(_, context),
3242
+ });
3243
+ };
3244
+ const de_DirectoryConfig = (output, context) => {
3245
+ return take(output, {
3246
+ CertificateBasedAuthProperties: _json,
3247
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3248
+ DirectoryName: __expectString,
3249
+ OrganizationalUnitDistinguishedNames: _json,
3250
+ ServiceAccountCredentials: _json,
3251
+ });
3252
+ };
3253
+ const de_DirectoryConfigList = (output, context) => {
4750
3254
  const retVal = (output || [])
4751
3255
  .filter((e) => e != null)
4752
3256
  .map((entry) => {
4753
- if (entry === null) {
4754
- return null;
4755
- }
4756
- return __expectString(entry);
3257
+ return de_DirectoryConfig(entry, context);
4757
3258
  });
4758
3259
  return retVal;
4759
3260
  };
4760
- const de_ServiceAccountCredentials = (output, context) => {
4761
- return {
4762
- AccountName: __expectString(output.AccountName),
4763
- AccountPassword: __expectString(output.AccountPassword),
4764
- };
4765
- };
4766
- const de_Session = (output, context) => {
4767
- return {
4768
- AuthenticationType: __expectString(output.AuthenticationType),
4769
- ConnectionState: __expectString(output.ConnectionState),
4770
- FleetName: __expectString(output.FleetName),
4771
- Id: __expectString(output.Id),
4772
- MaxExpirationTime: output.MaxExpirationTime != null
4773
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.MaxExpirationTime)))
4774
- : undefined,
4775
- NetworkAccessConfiguration: output.NetworkAccessConfiguration != null
4776
- ? de_NetworkAccessConfiguration(output.NetworkAccessConfiguration, context)
4777
- : undefined,
4778
- StackName: __expectString(output.StackName),
4779
- StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
4780
- State: __expectString(output.State),
4781
- UserId: __expectString(output.UserId),
4782
- };
3261
+ const de_Entitlement = (output, context) => {
3262
+ return take(output, {
3263
+ AppVisibility: __expectString,
3264
+ Attributes: _json,
3265
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3266
+ Description: __expectString,
3267
+ LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3268
+ Name: __expectString,
3269
+ StackName: __expectString,
3270
+ });
4783
3271
  };
4784
- const de_SessionList = (output, context) => {
3272
+ const de_EntitlementList = (output, context) => {
4785
3273
  const retVal = (output || [])
4786
3274
  .filter((e) => e != null)
4787
3275
  .map((entry) => {
4788
- if (entry === null) {
4789
- return null;
4790
- }
4791
- return de_Session(entry, context);
3276
+ return de_Entitlement(entry, context);
4792
3277
  });
4793
3278
  return retVal;
4794
3279
  };
4795
- const de_SharedImagePermissions = (output, context) => {
4796
- return {
4797
- imagePermissions: output.imagePermissions != null ? de_ImagePermissions(output.imagePermissions, context) : undefined,
4798
- sharedAccountId: __expectString(output.sharedAccountId),
4799
- };
3280
+ const de_Fleet = (output, context) => {
3281
+ return take(output, {
3282
+ Arn: __expectString,
3283
+ ComputeCapacityStatus: _json,
3284
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3285
+ Description: __expectString,
3286
+ DisconnectTimeoutInSeconds: __expectInt32,
3287
+ DisplayName: __expectString,
3288
+ DomainJoinInfo: _json,
3289
+ EnableDefaultInternetAccess: __expectBoolean,
3290
+ FleetErrors: _json,
3291
+ FleetType: __expectString,
3292
+ IamRoleArn: __expectString,
3293
+ IdleDisconnectTimeoutInSeconds: __expectInt32,
3294
+ ImageArn: __expectString,
3295
+ ImageName: __expectString,
3296
+ InstanceType: __expectString,
3297
+ MaxConcurrentSessions: __expectInt32,
3298
+ MaxUserDurationInSeconds: __expectInt32,
3299
+ Name: __expectString,
3300
+ Platform: __expectString,
3301
+ SessionScriptS3Location: _json,
3302
+ State: __expectString,
3303
+ StreamView: __expectString,
3304
+ UsbDeviceFilterStrings: _json,
3305
+ VpcConfig: _json,
3306
+ });
4800
3307
  };
4801
- const de_SharedImagePermissionsList = (output, context) => {
3308
+ const de_FleetList = (output, context) => {
4802
3309
  const retVal = (output || [])
4803
3310
  .filter((e) => e != null)
4804
3311
  .map((entry) => {
4805
- if (entry === null) {
4806
- return null;
4807
- }
4808
- return de_SharedImagePermissions(entry, context);
3312
+ return de_Fleet(entry, context);
4809
3313
  });
4810
3314
  return retVal;
4811
3315
  };
4812
- const de_Stack = (output, context) => {
4813
- return {
4814
- AccessEndpoints: output.AccessEndpoints != null ? de_AccessEndpointList(output.AccessEndpoints, context) : undefined,
4815
- ApplicationSettings: output.ApplicationSettings != null
4816
- ? de_ApplicationSettingsResponse(output.ApplicationSettings, context)
4817
- : undefined,
4818
- Arn: __expectString(output.Arn),
4819
- CreatedTime: output.CreatedTime != null
4820
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
4821
- : undefined,
4822
- Description: __expectString(output.Description),
4823
- DisplayName: __expectString(output.DisplayName),
4824
- EmbedHostDomains: output.EmbedHostDomains != null ? de_EmbedHostDomains(output.EmbedHostDomains, context) : undefined,
4825
- FeedbackURL: __expectString(output.FeedbackURL),
4826
- Name: __expectString(output.Name),
4827
- RedirectURL: __expectString(output.RedirectURL),
4828
- StackErrors: output.StackErrors != null ? de_StackErrors(output.StackErrors, context) : undefined,
4829
- StorageConnectors: output.StorageConnectors != null ? de_StorageConnectorList(output.StorageConnectors, context) : undefined,
4830
- StreamingExperienceSettings: output.StreamingExperienceSettings != null
4831
- ? de_StreamingExperienceSettings(output.StreamingExperienceSettings, context)
4832
- : undefined,
4833
- UserSettings: output.UserSettings != null ? de_UserSettingList(output.UserSettings, context) : undefined,
4834
- };
4835
- };
4836
- const de_StackError = (output, context) => {
4837
- return {
4838
- ErrorCode: __expectString(output.ErrorCode),
4839
- ErrorMessage: __expectString(output.ErrorMessage),
4840
- };
3316
+ const de_Image = (output, context) => {
3317
+ return take(output, {
3318
+ Applications: (_) => de_Applications(_, context),
3319
+ AppstreamAgentVersion: __expectString,
3320
+ Arn: __expectString,
3321
+ BaseImageArn: __expectString,
3322
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3323
+ Description: __expectString,
3324
+ DisplayName: __expectString,
3325
+ ImageBuilderName: __expectString,
3326
+ ImageBuilderSupported: __expectBoolean,
3327
+ ImageErrors: (_) => de_ResourceErrors(_, context),
3328
+ ImagePermissions: _json,
3329
+ Name: __expectString,
3330
+ Platform: __expectString,
3331
+ PublicBaseImageReleasedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3332
+ State: __expectString,
3333
+ StateChangeReason: _json,
3334
+ Visibility: __expectString,
3335
+ });
4841
3336
  };
4842
- const de_StackErrors = (output, context) => {
3337
+ const de_ImageBuilder = (output, context) => {
3338
+ return take(output, {
3339
+ AccessEndpoints: _json,
3340
+ AppstreamAgentVersion: __expectString,
3341
+ Arn: __expectString,
3342
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3343
+ Description: __expectString,
3344
+ DisplayName: __expectString,
3345
+ DomainJoinInfo: _json,
3346
+ EnableDefaultInternetAccess: __expectBoolean,
3347
+ IamRoleArn: __expectString,
3348
+ ImageArn: __expectString,
3349
+ ImageBuilderErrors: (_) => de_ResourceErrors(_, context),
3350
+ InstanceType: __expectString,
3351
+ Name: __expectString,
3352
+ NetworkAccessConfiguration: _json,
3353
+ Platform: __expectString,
3354
+ State: __expectString,
3355
+ StateChangeReason: _json,
3356
+ VpcConfig: _json,
3357
+ });
3358
+ };
3359
+ const de_ImageBuilderList = (output, context) => {
4843
3360
  const retVal = (output || [])
4844
3361
  .filter((e) => e != null)
4845
3362
  .map((entry) => {
4846
- if (entry === null) {
4847
- return null;
4848
- }
4849
- return de_StackError(entry, context);
3363
+ return de_ImageBuilder(entry, context);
4850
3364
  });
4851
3365
  return retVal;
4852
3366
  };
4853
- const de_StackList = (output, context) => {
3367
+ const de_ImageList = (output, context) => {
4854
3368
  const retVal = (output || [])
4855
3369
  .filter((e) => e != null)
4856
3370
  .map((entry) => {
4857
- if (entry === null) {
4858
- return null;
4859
- }
4860
- return de_Stack(entry, context);
3371
+ return de_Image(entry, context);
4861
3372
  });
4862
3373
  return retVal;
4863
3374
  };
4864
- const de_StartFleetResult = (output, context) => {
4865
- return {};
4866
- };
4867
- const de_StartImageBuilderResult = (output, context) => {
4868
- return {
4869
- ImageBuilder: output.ImageBuilder != null ? de_ImageBuilder(output.ImageBuilder, context) : undefined,
4870
- };
4871
- };
4872
- const de_StopFleetResult = (output, context) => {
4873
- return {};
4874
- };
4875
- const de_StopImageBuilderResult = (output, context) => {
4876
- return {
4877
- ImageBuilder: output.ImageBuilder != null ? de_ImageBuilder(output.ImageBuilder, context) : undefined,
4878
- };
4879
- };
4880
- const de_StorageConnector = (output, context) => {
4881
- return {
4882
- ConnectorType: __expectString(output.ConnectorType),
4883
- Domains: output.Domains != null ? de_DomainList(output.Domains, context) : undefined,
4884
- ResourceIdentifier: __expectString(output.ResourceIdentifier),
4885
- };
3375
+ const de_ResourceError = (output, context) => {
3376
+ return take(output, {
3377
+ ErrorCode: __expectString,
3378
+ ErrorMessage: __expectString,
3379
+ ErrorTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3380
+ });
4886
3381
  };
4887
- const de_StorageConnectorList = (output, context) => {
3382
+ const de_ResourceErrors = (output, context) => {
4888
3383
  const retVal = (output || [])
4889
3384
  .filter((e) => e != null)
4890
3385
  .map((entry) => {
4891
- if (entry === null) {
4892
- return null;
4893
- }
4894
- return de_StorageConnector(entry, context);
3386
+ return de_ResourceError(entry, context);
4895
3387
  });
4896
3388
  return retVal;
4897
3389
  };
4898
- const de_StreamingExperienceSettings = (output, context) => {
4899
- return {
4900
- PreferredProtocol: __expectString(output.PreferredProtocol),
4901
- };
3390
+ const de_Session = (output, context) => {
3391
+ return take(output, {
3392
+ AuthenticationType: __expectString,
3393
+ ConnectionState: __expectString,
3394
+ FleetName: __expectString,
3395
+ Id: __expectString,
3396
+ MaxExpirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3397
+ NetworkAccessConfiguration: _json,
3398
+ StackName: __expectString,
3399
+ StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3400
+ State: __expectString,
3401
+ UserId: __expectString,
3402
+ });
4902
3403
  };
4903
- const de_StringList = (output, context) => {
3404
+ const de_SessionList = (output, context) => {
4904
3405
  const retVal = (output || [])
4905
3406
  .filter((e) => e != null)
4906
3407
  .map((entry) => {
4907
- if (entry === null) {
4908
- return null;
4909
- }
4910
- return __expectString(entry);
3408
+ return de_Session(entry, context);
4911
3409
  });
4912
3410
  return retVal;
4913
3411
  };
4914
- const de_SubnetIdList = (output, context) => {
3412
+ const de_Stack = (output, context) => {
3413
+ return take(output, {
3414
+ AccessEndpoints: _json,
3415
+ ApplicationSettings: _json,
3416
+ Arn: __expectString,
3417
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3418
+ Description: __expectString,
3419
+ DisplayName: __expectString,
3420
+ EmbedHostDomains: _json,
3421
+ FeedbackURL: __expectString,
3422
+ Name: __expectString,
3423
+ RedirectURL: __expectString,
3424
+ StackErrors: _json,
3425
+ StorageConnectors: _json,
3426
+ StreamingExperienceSettings: _json,
3427
+ UserSettings: _json,
3428
+ });
3429
+ };
3430
+ const de_StackList = (output, context) => {
4915
3431
  const retVal = (output || [])
4916
3432
  .filter((e) => e != null)
4917
3433
  .map((entry) => {
4918
- if (entry === null) {
4919
- return null;
4920
- }
4921
- return __expectString(entry);
3434
+ return de_Stack(entry, context);
4922
3435
  });
4923
3436
  return retVal;
4924
3437
  };
4925
- const de_TagResourceResponse = (output, context) => {
4926
- return {};
4927
- };
4928
- const de_Tags = (output, context) => {
4929
- return Object.entries(output).reduce((acc, [key, value]) => {
4930
- if (value === null) {
4931
- return acc;
4932
- }
4933
- acc[key] = __expectString(value);
4934
- return acc;
4935
- }, {});
3438
+ const de_StartImageBuilderResult = (output, context) => {
3439
+ return take(output, {
3440
+ ImageBuilder: (_) => de_ImageBuilder(_, context),
3441
+ });
4936
3442
  };
4937
- const de_UntagResourceResponse = (output, context) => {
4938
- return {};
3443
+ const de_StopImageBuilderResult = (output, context) => {
3444
+ return take(output, {
3445
+ ImageBuilder: (_) => de_ImageBuilder(_, context),
3446
+ });
4939
3447
  };
4940
3448
  const de_UpdateApplicationResult = (output, context) => {
4941
- return {
4942
- Application: output.Application != null ? de_Application(output.Application, context) : undefined,
4943
- };
3449
+ return take(output, {
3450
+ Application: (_) => de_Application(_, context),
3451
+ });
4944
3452
  };
4945
3453
  const de_UpdateDirectoryConfigResult = (output, context) => {
4946
- return {
4947
- DirectoryConfig: output.DirectoryConfig != null ? de_DirectoryConfig(output.DirectoryConfig, context) : undefined,
4948
- };
3454
+ return take(output, {
3455
+ DirectoryConfig: (_) => de_DirectoryConfig(_, context),
3456
+ });
4949
3457
  };
4950
3458
  const de_UpdateEntitlementResult = (output, context) => {
4951
- return {
4952
- Entitlement: output.Entitlement != null ? de_Entitlement(output.Entitlement, context) : undefined,
4953
- };
3459
+ return take(output, {
3460
+ Entitlement: (_) => de_Entitlement(_, context),
3461
+ });
4954
3462
  };
4955
3463
  const de_UpdateFleetResult = (output, context) => {
4956
- return {
4957
- Fleet: output.Fleet != null ? de_Fleet(output.Fleet, context) : undefined,
4958
- };
4959
- };
4960
- const de_UpdateImagePermissionsResult = (output, context) => {
4961
- return {};
3464
+ return take(output, {
3465
+ Fleet: (_) => de_Fleet(_, context),
3466
+ });
4962
3467
  };
4963
3468
  const de_UpdateStackResult = (output, context) => {
4964
- return {
4965
- Stack: output.Stack != null ? de_Stack(output.Stack, context) : undefined,
4966
- };
3469
+ return take(output, {
3470
+ Stack: (_) => de_Stack(_, context),
3471
+ });
4967
3472
  };
4968
3473
  const de_UsageReportSubscription = (output, context) => {
4969
- return {
4970
- LastGeneratedReportDate: output.LastGeneratedReportDate != null
4971
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastGeneratedReportDate)))
4972
- : undefined,
4973
- S3BucketName: __expectString(output.S3BucketName),
4974
- Schedule: __expectString(output.Schedule),
4975
- SubscriptionErrors: output.SubscriptionErrors != null
4976
- ? de_LastReportGenerationExecutionErrors(output.SubscriptionErrors, context)
4977
- : undefined,
4978
- };
3474
+ return take(output, {
3475
+ LastGeneratedReportDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3476
+ S3BucketName: __expectString,
3477
+ Schedule: __expectString,
3478
+ SubscriptionErrors: _json,
3479
+ });
4979
3480
  };
4980
3481
  const de_UsageReportSubscriptionList = (output, context) => {
4981
3482
  const retVal = (output || [])
4982
3483
  .filter((e) => e != null)
4983
3484
  .map((entry) => {
4984
- if (entry === null) {
4985
- return null;
4986
- }
4987
3485
  return de_UsageReportSubscription(entry, context);
4988
3486
  });
4989
3487
  return retVal;
4990
3488
  };
4991
- const de_UsbDeviceFilterStrings = (output, context) => {
4992
- const retVal = (output || [])
4993
- .filter((e) => e != null)
4994
- .map((entry) => {
4995
- if (entry === null) {
4996
- return null;
4997
- }
4998
- return __expectString(entry);
4999
- });
5000
- return retVal;
5001
- };
5002
3489
  const de_User = (output, context) => {
5003
- return {
5004
- Arn: __expectString(output.Arn),
5005
- AuthenticationType: __expectString(output.AuthenticationType),
5006
- CreatedTime: output.CreatedTime != null
5007
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))
5008
- : undefined,
5009
- Enabled: __expectBoolean(output.Enabled),
5010
- FirstName: __expectString(output.FirstName),
5011
- LastName: __expectString(output.LastName),
5012
- Status: __expectString(output.Status),
5013
- UserName: __expectString(output.UserName),
5014
- };
3490
+ return take(output, {
3491
+ Arn: __expectString,
3492
+ AuthenticationType: __expectString,
3493
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3494
+ Enabled: __expectBoolean,
3495
+ FirstName: __expectString,
3496
+ LastName: __expectString,
3497
+ Status: __expectString,
3498
+ UserName: __expectString,
3499
+ });
5015
3500
  };
5016
3501
  const de_UserList = (output, context) => {
5017
3502
  const retVal = (output || [])
5018
3503
  .filter((e) => e != null)
5019
3504
  .map((entry) => {
5020
- if (entry === null) {
5021
- return null;
5022
- }
5023
3505
  return de_User(entry, context);
5024
3506
  });
5025
3507
  return retVal;
5026
3508
  };
5027
- const de_UserSetting = (output, context) => {
5028
- return {
5029
- Action: __expectString(output.Action),
5030
- Permission: __expectString(output.Permission),
5031
- };
5032
- };
5033
- const de_UserSettingList = (output, context) => {
5034
- const retVal = (output || [])
5035
- .filter((e) => e != null)
5036
- .map((entry) => {
5037
- if (entry === null) {
5038
- return null;
5039
- }
5040
- return de_UserSetting(entry, context);
5041
- });
5042
- return retVal;
5043
- };
5044
- const de_UserStackAssociation = (output, context) => {
5045
- return {
5046
- AuthenticationType: __expectString(output.AuthenticationType),
5047
- SendEmailNotification: __expectBoolean(output.SendEmailNotification),
5048
- StackName: __expectString(output.StackName),
5049
- UserName: __expectString(output.UserName),
5050
- };
5051
- };
5052
- const de_UserStackAssociationError = (output, context) => {
5053
- return {
5054
- ErrorCode: __expectString(output.ErrorCode),
5055
- ErrorMessage: __expectString(output.ErrorMessage),
5056
- UserStackAssociation: output.UserStackAssociation != null ? de_UserStackAssociation(output.UserStackAssociation, context) : undefined,
5057
- };
5058
- };
5059
- const de_UserStackAssociationErrorList = (output, context) => {
5060
- const retVal = (output || [])
5061
- .filter((e) => e != null)
5062
- .map((entry) => {
5063
- if (entry === null) {
5064
- return null;
5065
- }
5066
- return de_UserStackAssociationError(entry, context);
5067
- });
5068
- return retVal;
5069
- };
5070
- const de_UserStackAssociationList = (output, context) => {
5071
- const retVal = (output || [])
5072
- .filter((e) => e != null)
5073
- .map((entry) => {
5074
- if (entry === null) {
5075
- return null;
5076
- }
5077
- return de_UserStackAssociation(entry, context);
5078
- });
5079
- return retVal;
5080
- };
5081
- const de_VpcConfig = (output, context) => {
5082
- return {
5083
- SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupIdList(output.SecurityGroupIds, context) : undefined,
5084
- SubnetIds: output.SubnetIds != null ? de_SubnetIdList(output.SubnetIds, context) : undefined,
5085
- };
5086
- };
5087
3509
  const deserializeMetadata = (output) => ({
5088
3510
  httpStatusCode: output.statusCode,
5089
3511
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -5097,6 +3519,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5097
3519
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5098
3520
  };
5099
3521
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3522
+ const throwDefaultError = withBaseException(__BaseException);
5100
3523
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5101
3524
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5102
3525
  const contents = {