@aws-sdk/client-appstream 3.312.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,455 +10,455 @@ const models_0_1 = require("../models/models_0");
10
10
  const se_AssociateApplicationFleetCommand = async (input, context) => {
11
11
  const headers = sharedHeaders("AssociateApplicationFleet");
12
12
  let body;
13
- body = JSON.stringify(se_AssociateApplicationFleetRequest(input, context));
13
+ body = JSON.stringify((0, smithy_client_1._json)(input));
14
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
15
  };
16
16
  exports.se_AssociateApplicationFleetCommand = se_AssociateApplicationFleetCommand;
17
17
  const se_AssociateApplicationToEntitlementCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("AssociateApplicationToEntitlement");
19
19
  let body;
20
- body = JSON.stringify(se_AssociateApplicationToEntitlementRequest(input, context));
20
+ body = JSON.stringify((0, smithy_client_1._json)(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  exports.se_AssociateApplicationToEntitlementCommand = se_AssociateApplicationToEntitlementCommand;
24
24
  const se_AssociateFleetCommand = async (input, context) => {
25
25
  const headers = sharedHeaders("AssociateFleet");
26
26
  let body;
27
- body = JSON.stringify(se_AssociateFleetRequest(input, context));
27
+ body = JSON.stringify((0, smithy_client_1._json)(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
30
  exports.se_AssociateFleetCommand = se_AssociateFleetCommand;
31
31
  const se_BatchAssociateUserStackCommand = async (input, context) => {
32
32
  const headers = sharedHeaders("BatchAssociateUserStack");
33
33
  let body;
34
- body = JSON.stringify(se_BatchAssociateUserStackRequest(input, context));
34
+ body = JSON.stringify((0, smithy_client_1._json)(input));
35
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
36
  };
37
37
  exports.se_BatchAssociateUserStackCommand = se_BatchAssociateUserStackCommand;
38
38
  const se_BatchDisassociateUserStackCommand = async (input, context) => {
39
39
  const headers = sharedHeaders("BatchDisassociateUserStack");
40
40
  let body;
41
- body = JSON.stringify(se_BatchDisassociateUserStackRequest(input, context));
41
+ body = JSON.stringify((0, smithy_client_1._json)(input));
42
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
43
  };
44
44
  exports.se_BatchDisassociateUserStackCommand = se_BatchDisassociateUserStackCommand;
45
45
  const se_CopyImageCommand = async (input, context) => {
46
46
  const headers = sharedHeaders("CopyImage");
47
47
  let body;
48
- body = JSON.stringify(se_CopyImageRequest(input, context));
48
+ body = JSON.stringify((0, smithy_client_1._json)(input));
49
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
50
  };
51
51
  exports.se_CopyImageCommand = se_CopyImageCommand;
52
52
  const se_CreateAppBlockCommand = async (input, context) => {
53
53
  const headers = sharedHeaders("CreateAppBlock");
54
54
  let body;
55
- body = JSON.stringify(se_CreateAppBlockRequest(input, context));
55
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
57
  };
58
58
  exports.se_CreateAppBlockCommand = se_CreateAppBlockCommand;
59
59
  const se_CreateApplicationCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("CreateApplication");
61
61
  let body;
62
- body = JSON.stringify(se_CreateApplicationRequest(input, context));
62
+ body = JSON.stringify((0, smithy_client_1._json)(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
66
66
  const se_CreateDirectoryConfigCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("CreateDirectoryConfig");
68
68
  let body;
69
- body = JSON.stringify(se_CreateDirectoryConfigRequest(input, context));
69
+ body = JSON.stringify((0, smithy_client_1._json)(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  exports.se_CreateDirectoryConfigCommand = se_CreateDirectoryConfigCommand;
73
73
  const se_CreateEntitlementCommand = async (input, context) => {
74
74
  const headers = sharedHeaders("CreateEntitlement");
75
75
  let body;
76
- body = JSON.stringify(se_CreateEntitlementRequest(input, context));
76
+ body = JSON.stringify((0, smithy_client_1._json)(input));
77
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
78
  };
79
79
  exports.se_CreateEntitlementCommand = se_CreateEntitlementCommand;
80
80
  const se_CreateFleetCommand = async (input, context) => {
81
81
  const headers = sharedHeaders("CreateFleet");
82
82
  let body;
83
- body = JSON.stringify(se_CreateFleetRequest(input, context));
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
84
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
85
  };
86
86
  exports.se_CreateFleetCommand = se_CreateFleetCommand;
87
87
  const se_CreateImageBuilderCommand = async (input, context) => {
88
88
  const headers = sharedHeaders("CreateImageBuilder");
89
89
  let body;
90
- body = JSON.stringify(se_CreateImageBuilderRequest(input, context));
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
91
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
92
92
  };
93
93
  exports.se_CreateImageBuilderCommand = se_CreateImageBuilderCommand;
94
94
  const se_CreateImageBuilderStreamingURLCommand = async (input, context) => {
95
95
  const headers = sharedHeaders("CreateImageBuilderStreamingURL");
96
96
  let body;
97
- body = JSON.stringify(se_CreateImageBuilderStreamingURLRequest(input, context));
97
+ body = JSON.stringify((0, smithy_client_1._json)(input));
98
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
99
99
  };
100
100
  exports.se_CreateImageBuilderStreamingURLCommand = se_CreateImageBuilderStreamingURLCommand;
101
101
  const se_CreateStackCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("CreateStack");
103
103
  let body;
104
- body = JSON.stringify(se_CreateStackRequest(input, context));
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  exports.se_CreateStackCommand = se_CreateStackCommand;
108
108
  const se_CreateStreamingURLCommand = async (input, context) => {
109
109
  const headers = sharedHeaders("CreateStreamingURL");
110
110
  let body;
111
- body = JSON.stringify(se_CreateStreamingURLRequest(input, context));
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
114
  exports.se_CreateStreamingURLCommand = se_CreateStreamingURLCommand;
115
115
  const se_CreateUpdatedImageCommand = async (input, context) => {
116
116
  const headers = sharedHeaders("CreateUpdatedImage");
117
117
  let body;
118
- body = JSON.stringify(se_CreateUpdatedImageRequest(input, context));
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
119
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
120
  };
121
121
  exports.se_CreateUpdatedImageCommand = se_CreateUpdatedImageCommand;
122
122
  const se_CreateUsageReportSubscriptionCommand = async (input, context) => {
123
123
  const headers = sharedHeaders("CreateUsageReportSubscription");
124
124
  let body;
125
- body = JSON.stringify(se_CreateUsageReportSubscriptionRequest(input, context));
125
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
127
  };
128
128
  exports.se_CreateUsageReportSubscriptionCommand = se_CreateUsageReportSubscriptionCommand;
129
129
  const se_CreateUserCommand = async (input, context) => {
130
130
  const headers = sharedHeaders("CreateUser");
131
131
  let body;
132
- body = JSON.stringify(se_CreateUserRequest(input, context));
132
+ body = JSON.stringify((0, smithy_client_1._json)(input));
133
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
134
  };
135
135
  exports.se_CreateUserCommand = se_CreateUserCommand;
136
136
  const se_DeleteAppBlockCommand = async (input, context) => {
137
137
  const headers = sharedHeaders("DeleteAppBlock");
138
138
  let body;
139
- body = JSON.stringify(se_DeleteAppBlockRequest(input, context));
139
+ body = JSON.stringify((0, smithy_client_1._json)(input));
140
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
141
141
  };
142
142
  exports.se_DeleteAppBlockCommand = se_DeleteAppBlockCommand;
143
143
  const se_DeleteApplicationCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("DeleteApplication");
145
145
  let body;
146
- body = JSON.stringify(se_DeleteApplicationRequest(input, context));
146
+ body = JSON.stringify((0, smithy_client_1._json)(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
150
150
  const se_DeleteDirectoryConfigCommand = async (input, context) => {
151
151
  const headers = sharedHeaders("DeleteDirectoryConfig");
152
152
  let body;
153
- body = JSON.stringify(se_DeleteDirectoryConfigRequest(input, context));
153
+ body = JSON.stringify((0, smithy_client_1._json)(input));
154
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
155
  };
156
156
  exports.se_DeleteDirectoryConfigCommand = se_DeleteDirectoryConfigCommand;
157
157
  const se_DeleteEntitlementCommand = async (input, context) => {
158
158
  const headers = sharedHeaders("DeleteEntitlement");
159
159
  let body;
160
- body = JSON.stringify(se_DeleteEntitlementRequest(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
161
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
162
  };
163
163
  exports.se_DeleteEntitlementCommand = se_DeleteEntitlementCommand;
164
164
  const se_DeleteFleetCommand = async (input, context) => {
165
165
  const headers = sharedHeaders("DeleteFleet");
166
166
  let body;
167
- body = JSON.stringify(se_DeleteFleetRequest(input, context));
167
+ body = JSON.stringify((0, smithy_client_1._json)(input));
168
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
169
  };
170
170
  exports.se_DeleteFleetCommand = se_DeleteFleetCommand;
171
171
  const se_DeleteImageCommand = async (input, context) => {
172
172
  const headers = sharedHeaders("DeleteImage");
173
173
  let body;
174
- body = JSON.stringify(se_DeleteImageRequest(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
175
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
176
  };
177
177
  exports.se_DeleteImageCommand = se_DeleteImageCommand;
178
178
  const se_DeleteImageBuilderCommand = async (input, context) => {
179
179
  const headers = sharedHeaders("DeleteImageBuilder");
180
180
  let body;
181
- body = JSON.stringify(se_DeleteImageBuilderRequest(input, context));
181
+ body = JSON.stringify((0, smithy_client_1._json)(input));
182
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
183
183
  };
184
184
  exports.se_DeleteImageBuilderCommand = se_DeleteImageBuilderCommand;
185
185
  const se_DeleteImagePermissionsCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("DeleteImagePermissions");
187
187
  let body;
188
- body = JSON.stringify(se_DeleteImagePermissionsRequest(input, context));
188
+ body = JSON.stringify((0, smithy_client_1._json)(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  exports.se_DeleteImagePermissionsCommand = se_DeleteImagePermissionsCommand;
192
192
  const se_DeleteStackCommand = async (input, context) => {
193
193
  const headers = sharedHeaders("DeleteStack");
194
194
  let body;
195
- body = JSON.stringify(se_DeleteStackRequest(input, context));
195
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
197
  };
198
198
  exports.se_DeleteStackCommand = se_DeleteStackCommand;
199
199
  const se_DeleteUsageReportSubscriptionCommand = async (input, context) => {
200
200
  const headers = sharedHeaders("DeleteUsageReportSubscription");
201
201
  let body;
202
- body = JSON.stringify(se_DeleteUsageReportSubscriptionRequest(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
203
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
204
  };
205
205
  exports.se_DeleteUsageReportSubscriptionCommand = se_DeleteUsageReportSubscriptionCommand;
206
206
  const se_DeleteUserCommand = async (input, context) => {
207
207
  const headers = sharedHeaders("DeleteUser");
208
208
  let body;
209
- body = JSON.stringify(se_DeleteUserRequest(input, context));
209
+ body = JSON.stringify((0, smithy_client_1._json)(input));
210
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
211
  };
212
212
  exports.se_DeleteUserCommand = se_DeleteUserCommand;
213
213
  const se_DescribeAppBlocksCommand = async (input, context) => {
214
214
  const headers = sharedHeaders("DescribeAppBlocks");
215
215
  let body;
216
- body = JSON.stringify(se_DescribeAppBlocksRequest(input, context));
216
+ body = JSON.stringify((0, smithy_client_1._json)(input));
217
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
218
  };
219
219
  exports.se_DescribeAppBlocksCommand = se_DescribeAppBlocksCommand;
220
220
  const se_DescribeApplicationFleetAssociationsCommand = async (input, context) => {
221
221
  const headers = sharedHeaders("DescribeApplicationFleetAssociations");
222
222
  let body;
223
- body = JSON.stringify(se_DescribeApplicationFleetAssociationsRequest(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
224
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
225
  };
226
226
  exports.se_DescribeApplicationFleetAssociationsCommand = se_DescribeApplicationFleetAssociationsCommand;
227
227
  const se_DescribeApplicationsCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("DescribeApplications");
229
229
  let body;
230
- body = JSON.stringify(se_DescribeApplicationsRequest(input, context));
230
+ body = JSON.stringify((0, smithy_client_1._json)(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  exports.se_DescribeApplicationsCommand = se_DescribeApplicationsCommand;
234
234
  const se_DescribeDirectoryConfigsCommand = async (input, context) => {
235
235
  const headers = sharedHeaders("DescribeDirectoryConfigs");
236
236
  let body;
237
- body = JSON.stringify(se_DescribeDirectoryConfigsRequest(input, context));
237
+ body = JSON.stringify((0, smithy_client_1._json)(input));
238
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
239
  };
240
240
  exports.se_DescribeDirectoryConfigsCommand = se_DescribeDirectoryConfigsCommand;
241
241
  const se_DescribeEntitlementsCommand = async (input, context) => {
242
242
  const headers = sharedHeaders("DescribeEntitlements");
243
243
  let body;
244
- body = JSON.stringify(se_DescribeEntitlementsRequest(input, context));
244
+ body = JSON.stringify((0, smithy_client_1._json)(input));
245
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
246
  };
247
247
  exports.se_DescribeEntitlementsCommand = se_DescribeEntitlementsCommand;
248
248
  const se_DescribeFleetsCommand = async (input, context) => {
249
249
  const headers = sharedHeaders("DescribeFleets");
250
250
  let body;
251
- body = JSON.stringify(se_DescribeFleetsRequest(input, context));
251
+ body = JSON.stringify((0, smithy_client_1._json)(input));
252
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
253
  };
254
254
  exports.se_DescribeFleetsCommand = se_DescribeFleetsCommand;
255
255
  const se_DescribeImageBuildersCommand = async (input, context) => {
256
256
  const headers = sharedHeaders("DescribeImageBuilders");
257
257
  let body;
258
- body = JSON.stringify(se_DescribeImageBuildersRequest(input, context));
258
+ body = JSON.stringify((0, smithy_client_1._json)(input));
259
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
260
  };
261
261
  exports.se_DescribeImageBuildersCommand = se_DescribeImageBuildersCommand;
262
262
  const se_DescribeImagePermissionsCommand = async (input, context) => {
263
263
  const headers = sharedHeaders("DescribeImagePermissions");
264
264
  let body;
265
- body = JSON.stringify(se_DescribeImagePermissionsRequest(input, context));
265
+ body = JSON.stringify((0, smithy_client_1._json)(input));
266
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
267
  };
268
268
  exports.se_DescribeImagePermissionsCommand = se_DescribeImagePermissionsCommand;
269
269
  const se_DescribeImagesCommand = async (input, context) => {
270
270
  const headers = sharedHeaders("DescribeImages");
271
271
  let body;
272
- body = JSON.stringify(se_DescribeImagesRequest(input, context));
272
+ body = JSON.stringify((0, smithy_client_1._json)(input));
273
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
274
  };
275
275
  exports.se_DescribeImagesCommand = se_DescribeImagesCommand;
276
276
  const se_DescribeSessionsCommand = async (input, context) => {
277
277
  const headers = sharedHeaders("DescribeSessions");
278
278
  let body;
279
- body = JSON.stringify(se_DescribeSessionsRequest(input, context));
279
+ body = JSON.stringify((0, smithy_client_1._json)(input));
280
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
281
  };
282
282
  exports.se_DescribeSessionsCommand = se_DescribeSessionsCommand;
283
283
  const se_DescribeStacksCommand = async (input, context) => {
284
284
  const headers = sharedHeaders("DescribeStacks");
285
285
  let body;
286
- body = JSON.stringify(se_DescribeStacksRequest(input, context));
286
+ body = JSON.stringify((0, smithy_client_1._json)(input));
287
287
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
288
  };
289
289
  exports.se_DescribeStacksCommand = se_DescribeStacksCommand;
290
290
  const se_DescribeUsageReportSubscriptionsCommand = async (input, context) => {
291
291
  const headers = sharedHeaders("DescribeUsageReportSubscriptions");
292
292
  let body;
293
- body = JSON.stringify(se_DescribeUsageReportSubscriptionsRequest(input, context));
293
+ body = JSON.stringify((0, smithy_client_1._json)(input));
294
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
295
  };
296
296
  exports.se_DescribeUsageReportSubscriptionsCommand = se_DescribeUsageReportSubscriptionsCommand;
297
297
  const se_DescribeUsersCommand = async (input, context) => {
298
298
  const headers = sharedHeaders("DescribeUsers");
299
299
  let body;
300
- body = JSON.stringify(se_DescribeUsersRequest(input, context));
300
+ body = JSON.stringify((0, smithy_client_1._json)(input));
301
301
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
302
302
  };
303
303
  exports.se_DescribeUsersCommand = se_DescribeUsersCommand;
304
304
  const se_DescribeUserStackAssociationsCommand = async (input, context) => {
305
305
  const headers = sharedHeaders("DescribeUserStackAssociations");
306
306
  let body;
307
- body = JSON.stringify(se_DescribeUserStackAssociationsRequest(input, context));
307
+ body = JSON.stringify((0, smithy_client_1._json)(input));
308
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
309
  };
310
310
  exports.se_DescribeUserStackAssociationsCommand = se_DescribeUserStackAssociationsCommand;
311
311
  const se_DisableUserCommand = async (input, context) => {
312
312
  const headers = sharedHeaders("DisableUser");
313
313
  let body;
314
- body = JSON.stringify(se_DisableUserRequest(input, context));
314
+ body = JSON.stringify((0, smithy_client_1._json)(input));
315
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
316
  };
317
317
  exports.se_DisableUserCommand = se_DisableUserCommand;
318
318
  const se_DisassociateApplicationFleetCommand = async (input, context) => {
319
319
  const headers = sharedHeaders("DisassociateApplicationFleet");
320
320
  let body;
321
- body = JSON.stringify(se_DisassociateApplicationFleetRequest(input, context));
321
+ body = JSON.stringify((0, smithy_client_1._json)(input));
322
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
323
  };
324
324
  exports.se_DisassociateApplicationFleetCommand = se_DisassociateApplicationFleetCommand;
325
325
  const se_DisassociateApplicationFromEntitlementCommand = async (input, context) => {
326
326
  const headers = sharedHeaders("DisassociateApplicationFromEntitlement");
327
327
  let body;
328
- body = JSON.stringify(se_DisassociateApplicationFromEntitlementRequest(input, context));
328
+ body = JSON.stringify((0, smithy_client_1._json)(input));
329
329
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
330
  };
331
331
  exports.se_DisassociateApplicationFromEntitlementCommand = se_DisassociateApplicationFromEntitlementCommand;
332
332
  const se_DisassociateFleetCommand = async (input, context) => {
333
333
  const headers = sharedHeaders("DisassociateFleet");
334
334
  let body;
335
- body = JSON.stringify(se_DisassociateFleetRequest(input, context));
335
+ body = JSON.stringify((0, smithy_client_1._json)(input));
336
336
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
337
  };
338
338
  exports.se_DisassociateFleetCommand = se_DisassociateFleetCommand;
339
339
  const se_EnableUserCommand = async (input, context) => {
340
340
  const headers = sharedHeaders("EnableUser");
341
341
  let body;
342
- body = JSON.stringify(se_EnableUserRequest(input, context));
342
+ body = JSON.stringify((0, smithy_client_1._json)(input));
343
343
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
344
344
  };
345
345
  exports.se_EnableUserCommand = se_EnableUserCommand;
346
346
  const se_ExpireSessionCommand = async (input, context) => {
347
347
  const headers = sharedHeaders("ExpireSession");
348
348
  let body;
349
- body = JSON.stringify(se_ExpireSessionRequest(input, context));
349
+ body = JSON.stringify((0, smithy_client_1._json)(input));
350
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
351
  };
352
352
  exports.se_ExpireSessionCommand = se_ExpireSessionCommand;
353
353
  const se_ListAssociatedFleetsCommand = async (input, context) => {
354
354
  const headers = sharedHeaders("ListAssociatedFleets");
355
355
  let body;
356
- body = JSON.stringify(se_ListAssociatedFleetsRequest(input, context));
356
+ body = JSON.stringify((0, smithy_client_1._json)(input));
357
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
358
  };
359
359
  exports.se_ListAssociatedFleetsCommand = se_ListAssociatedFleetsCommand;
360
360
  const se_ListAssociatedStacksCommand = async (input, context) => {
361
361
  const headers = sharedHeaders("ListAssociatedStacks");
362
362
  let body;
363
- body = JSON.stringify(se_ListAssociatedStacksRequest(input, context));
363
+ body = JSON.stringify((0, smithy_client_1._json)(input));
364
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
365
  };
366
366
  exports.se_ListAssociatedStacksCommand = se_ListAssociatedStacksCommand;
367
367
  const se_ListEntitledApplicationsCommand = async (input, context) => {
368
368
  const headers = sharedHeaders("ListEntitledApplications");
369
369
  let body;
370
- body = JSON.stringify(se_ListEntitledApplicationsRequest(input, context));
370
+ body = JSON.stringify((0, smithy_client_1._json)(input));
371
371
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
372
  };
373
373
  exports.se_ListEntitledApplicationsCommand = se_ListEntitledApplicationsCommand;
374
374
  const se_ListTagsForResourceCommand = async (input, context) => {
375
375
  const headers = sharedHeaders("ListTagsForResource");
376
376
  let body;
377
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
377
+ body = JSON.stringify((0, smithy_client_1._json)(input));
378
378
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
379
  };
380
380
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
381
381
  const se_StartFleetCommand = async (input, context) => {
382
382
  const headers = sharedHeaders("StartFleet");
383
383
  let body;
384
- body = JSON.stringify(se_StartFleetRequest(input, context));
384
+ body = JSON.stringify((0, smithy_client_1._json)(input));
385
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
386
386
  };
387
387
  exports.se_StartFleetCommand = se_StartFleetCommand;
388
388
  const se_StartImageBuilderCommand = async (input, context) => {
389
389
  const headers = sharedHeaders("StartImageBuilder");
390
390
  let body;
391
- body = JSON.stringify(se_StartImageBuilderRequest(input, context));
391
+ body = JSON.stringify((0, smithy_client_1._json)(input));
392
392
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
393
393
  };
394
394
  exports.se_StartImageBuilderCommand = se_StartImageBuilderCommand;
395
395
  const se_StopFleetCommand = async (input, context) => {
396
396
  const headers = sharedHeaders("StopFleet");
397
397
  let body;
398
- body = JSON.stringify(se_StopFleetRequest(input, context));
398
+ body = JSON.stringify((0, smithy_client_1._json)(input));
399
399
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
400
  };
401
401
  exports.se_StopFleetCommand = se_StopFleetCommand;
402
402
  const se_StopImageBuilderCommand = async (input, context) => {
403
403
  const headers = sharedHeaders("StopImageBuilder");
404
404
  let body;
405
- body = JSON.stringify(se_StopImageBuilderRequest(input, context));
405
+ body = JSON.stringify((0, smithy_client_1._json)(input));
406
406
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
407
  };
408
408
  exports.se_StopImageBuilderCommand = se_StopImageBuilderCommand;
409
409
  const se_TagResourceCommand = async (input, context) => {
410
410
  const headers = sharedHeaders("TagResource");
411
411
  let body;
412
- body = JSON.stringify(se_TagResourceRequest(input, context));
412
+ body = JSON.stringify((0, smithy_client_1._json)(input));
413
413
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
414
  };
415
415
  exports.se_TagResourceCommand = se_TagResourceCommand;
416
416
  const se_UntagResourceCommand = async (input, context) => {
417
417
  const headers = sharedHeaders("UntagResource");
418
418
  let body;
419
- body = JSON.stringify(se_UntagResourceRequest(input, context));
419
+ body = JSON.stringify((0, smithy_client_1._json)(input));
420
420
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
421
421
  };
422
422
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
423
423
  const se_UpdateApplicationCommand = async (input, context) => {
424
424
  const headers = sharedHeaders("UpdateApplication");
425
425
  let body;
426
- body = JSON.stringify(se_UpdateApplicationRequest(input, context));
426
+ body = JSON.stringify((0, smithy_client_1._json)(input));
427
427
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
428
  };
429
429
  exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
430
430
  const se_UpdateDirectoryConfigCommand = async (input, context) => {
431
431
  const headers = sharedHeaders("UpdateDirectoryConfig");
432
432
  let body;
433
- body = JSON.stringify(se_UpdateDirectoryConfigRequest(input, context));
433
+ body = JSON.stringify((0, smithy_client_1._json)(input));
434
434
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
435
435
  };
436
436
  exports.se_UpdateDirectoryConfigCommand = se_UpdateDirectoryConfigCommand;
437
437
  const se_UpdateEntitlementCommand = async (input, context) => {
438
438
  const headers = sharedHeaders("UpdateEntitlement");
439
439
  let body;
440
- body = JSON.stringify(se_UpdateEntitlementRequest(input, context));
440
+ body = JSON.stringify((0, smithy_client_1._json)(input));
441
441
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
442
442
  };
443
443
  exports.se_UpdateEntitlementCommand = se_UpdateEntitlementCommand;
444
444
  const se_UpdateFleetCommand = async (input, context) => {
445
445
  const headers = sharedHeaders("UpdateFleet");
446
446
  let body;
447
- body = JSON.stringify(se_UpdateFleetRequest(input, context));
447
+ body = JSON.stringify((0, smithy_client_1._json)(input));
448
448
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
449
  };
450
450
  exports.se_UpdateFleetCommand = se_UpdateFleetCommand;
451
451
  const se_UpdateImagePermissionsCommand = async (input, context) => {
452
452
  const headers = sharedHeaders("UpdateImagePermissions");
453
453
  let body;
454
- body = JSON.stringify(se_UpdateImagePermissionsRequest(input, context));
454
+ body = JSON.stringify((0, smithy_client_1._json)(input));
455
455
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
456
  };
457
457
  exports.se_UpdateImagePermissionsCommand = se_UpdateImagePermissionsCommand;
458
458
  const se_UpdateStackCommand = async (input, context) => {
459
459
  const headers = sharedHeaders("UpdateStack");
460
460
  let body;
461
- body = JSON.stringify(se_UpdateStackRequest(input, context));
461
+ body = JSON.stringify((0, smithy_client_1._json)(input));
462
462
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
463
463
  };
464
464
  exports.se_UpdateStackCommand = se_UpdateStackCommand;
@@ -468,12 +468,12 @@ const de_AssociateApplicationFleetCommand = async (output, context) => {
468
468
  }
469
469
  const data = await parseBody(output.body, context);
470
470
  let contents = {};
471
- contents = de_AssociateApplicationFleetResult(data, context);
471
+ contents = (0, smithy_client_1._json)(data);
472
472
  const response = {
473
473
  $metadata: deserializeMetadata(output),
474
474
  ...contents,
475
475
  };
476
- return Promise.resolve(response);
476
+ return response;
477
477
  };
478
478
  exports.de_AssociateApplicationFleetCommand = de_AssociateApplicationFleetCommand;
479
479
  const de_AssociateApplicationFleetCommandError = async (output, context) => {
@@ -500,10 +500,9 @@ const de_AssociateApplicationFleetCommandError = async (output, context) => {
500
500
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
501
501
  default:
502
502
  const parsedBody = parsedOutput.body;
503
- (0, smithy_client_1.throwDefaultError)({
503
+ return throwDefaultError({
504
504
  output,
505
505
  parsedBody,
506
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
507
506
  errorCode,
508
507
  });
509
508
  }
@@ -514,12 +513,12 @@ const de_AssociateApplicationToEntitlementCommand = async (output, context) => {
514
513
  }
515
514
  const data = await parseBody(output.body, context);
516
515
  let contents = {};
517
- contents = de_AssociateApplicationToEntitlementResult(data, context);
516
+ contents = (0, smithy_client_1._json)(data);
518
517
  const response = {
519
518
  $metadata: deserializeMetadata(output),
520
519
  ...contents,
521
520
  };
522
- return Promise.resolve(response);
521
+ return response;
523
522
  };
524
523
  exports.de_AssociateApplicationToEntitlementCommand = de_AssociateApplicationToEntitlementCommand;
525
524
  const de_AssociateApplicationToEntitlementCommandError = async (output, context) => {
@@ -543,10 +542,9 @@ const de_AssociateApplicationToEntitlementCommandError = async (output, context)
543
542
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
544
543
  default:
545
544
  const parsedBody = parsedOutput.body;
546
- (0, smithy_client_1.throwDefaultError)({
545
+ return throwDefaultError({
547
546
  output,
548
547
  parsedBody,
549
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
550
548
  errorCode,
551
549
  });
552
550
  }
@@ -557,12 +555,12 @@ const de_AssociateFleetCommand = async (output, context) => {
557
555
  }
558
556
  const data = await parseBody(output.body, context);
559
557
  let contents = {};
560
- contents = de_AssociateFleetResult(data, context);
558
+ contents = (0, smithy_client_1._json)(data);
561
559
  const response = {
562
560
  $metadata: deserializeMetadata(output),
563
561
  ...contents,
564
562
  };
565
- return Promise.resolve(response);
563
+ return response;
566
564
  };
567
565
  exports.de_AssociateFleetCommand = de_AssociateFleetCommand;
568
566
  const de_AssociateFleetCommandError = async (output, context) => {
@@ -592,10 +590,9 @@ const de_AssociateFleetCommandError = async (output, context) => {
592
590
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
593
591
  default:
594
592
  const parsedBody = parsedOutput.body;
595
- (0, smithy_client_1.throwDefaultError)({
593
+ return throwDefaultError({
596
594
  output,
597
595
  parsedBody,
598
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
599
596
  errorCode,
600
597
  });
601
598
  }
@@ -606,12 +603,12 @@ const de_BatchAssociateUserStackCommand = async (output, context) => {
606
603
  }
607
604
  const data = await parseBody(output.body, context);
608
605
  let contents = {};
609
- contents = de_BatchAssociateUserStackResult(data, context);
606
+ contents = (0, smithy_client_1._json)(data);
610
607
  const response = {
611
608
  $metadata: deserializeMetadata(output),
612
609
  ...contents,
613
610
  };
614
- return Promise.resolve(response);
611
+ return response;
615
612
  };
616
613
  exports.de_BatchAssociateUserStackCommand = de_BatchAssociateUserStackCommand;
617
614
  const de_BatchAssociateUserStackCommandError = async (output, context) => {
@@ -629,10 +626,9 @@ const de_BatchAssociateUserStackCommandError = async (output, context) => {
629
626
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
630
627
  default:
631
628
  const parsedBody = parsedOutput.body;
632
- (0, smithy_client_1.throwDefaultError)({
629
+ return throwDefaultError({
633
630
  output,
634
631
  parsedBody,
635
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
636
632
  errorCode,
637
633
  });
638
634
  }
@@ -643,12 +639,12 @@ const de_BatchDisassociateUserStackCommand = async (output, context) => {
643
639
  }
644
640
  const data = await parseBody(output.body, context);
645
641
  let contents = {};
646
- contents = de_BatchDisassociateUserStackResult(data, context);
642
+ contents = (0, smithy_client_1._json)(data);
647
643
  const response = {
648
644
  $metadata: deserializeMetadata(output),
649
645
  ...contents,
650
646
  };
651
- return Promise.resolve(response);
647
+ return response;
652
648
  };
653
649
  exports.de_BatchDisassociateUserStackCommand = de_BatchDisassociateUserStackCommand;
654
650
  const de_BatchDisassociateUserStackCommandError = async (output, context) => {
@@ -666,10 +662,9 @@ const de_BatchDisassociateUserStackCommandError = async (output, context) => {
666
662
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
667
663
  default:
668
664
  const parsedBody = parsedOutput.body;
669
- (0, smithy_client_1.throwDefaultError)({
665
+ return throwDefaultError({
670
666
  output,
671
667
  parsedBody,
672
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
673
668
  errorCode,
674
669
  });
675
670
  }
@@ -680,12 +675,12 @@ const de_CopyImageCommand = async (output, context) => {
680
675
  }
681
676
  const data = await parseBody(output.body, context);
682
677
  let contents = {};
683
- contents = de_CopyImageResponse(data, context);
678
+ contents = (0, smithy_client_1._json)(data);
684
679
  const response = {
685
680
  $metadata: deserializeMetadata(output),
686
681
  ...contents,
687
682
  };
688
- return Promise.resolve(response);
683
+ return response;
689
684
  };
690
685
  exports.de_CopyImageCommand = de_CopyImageCommand;
691
686
  const de_CopyImageCommandError = async (output, context) => {
@@ -715,10 +710,9 @@ const de_CopyImageCommandError = async (output, context) => {
715
710
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
716
711
  default:
717
712
  const parsedBody = parsedOutput.body;
718
- (0, smithy_client_1.throwDefaultError)({
713
+ return throwDefaultError({
719
714
  output,
720
715
  parsedBody,
721
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
722
716
  errorCode,
723
717
  });
724
718
  }
@@ -734,7 +728,7 @@ const de_CreateAppBlockCommand = async (output, context) => {
734
728
  $metadata: deserializeMetadata(output),
735
729
  ...contents,
736
730
  };
737
- return Promise.resolve(response);
731
+ return response;
738
732
  };
739
733
  exports.de_CreateAppBlockCommand = de_CreateAppBlockCommand;
740
734
  const de_CreateAppBlockCommandError = async (output, context) => {
@@ -758,10 +752,9 @@ const de_CreateAppBlockCommandError = async (output, context) => {
758
752
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
759
753
  default:
760
754
  const parsedBody = parsedOutput.body;
761
- (0, smithy_client_1.throwDefaultError)({
755
+ return throwDefaultError({
762
756
  output,
763
757
  parsedBody,
764
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
765
758
  errorCode,
766
759
  });
767
760
  }
@@ -777,7 +770,7 @@ const de_CreateApplicationCommand = async (output, context) => {
777
770
  $metadata: deserializeMetadata(output),
778
771
  ...contents,
779
772
  };
780
- return Promise.resolve(response);
773
+ return response;
781
774
  };
782
775
  exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
783
776
  const de_CreateApplicationCommandError = async (output, context) => {
@@ -804,10 +797,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
804
797
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
805
798
  default:
806
799
  const parsedBody = parsedOutput.body;
807
- (0, smithy_client_1.throwDefaultError)({
800
+ return throwDefaultError({
808
801
  output,
809
802
  parsedBody,
810
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
811
803
  errorCode,
812
804
  });
813
805
  }
@@ -823,7 +815,7 @@ const de_CreateDirectoryConfigCommand = async (output, context) => {
823
815
  $metadata: deserializeMetadata(output),
824
816
  ...contents,
825
817
  };
826
- return Promise.resolve(response);
818
+ return response;
827
819
  };
828
820
  exports.de_CreateDirectoryConfigCommand = de_CreateDirectoryConfigCommand;
829
821
  const de_CreateDirectoryConfigCommandError = async (output, context) => {
@@ -853,10 +845,9 @@ const de_CreateDirectoryConfigCommandError = async (output, context) => {
853
845
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
854
846
  default:
855
847
  const parsedBody = parsedOutput.body;
856
- (0, smithy_client_1.throwDefaultError)({
848
+ return throwDefaultError({
857
849
  output,
858
850
  parsedBody,
859
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
860
851
  errorCode,
861
852
  });
862
853
  }
@@ -872,7 +863,7 @@ const de_CreateEntitlementCommand = async (output, context) => {
872
863
  $metadata: deserializeMetadata(output),
873
864
  ...contents,
874
865
  };
875
- return Promise.resolve(response);
866
+ return response;
876
867
  };
877
868
  exports.de_CreateEntitlementCommand = de_CreateEntitlementCommand;
878
869
  const de_CreateEntitlementCommandError = async (output, context) => {
@@ -896,10 +887,9 @@ const de_CreateEntitlementCommandError = async (output, context) => {
896
887
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
897
888
  default:
898
889
  const parsedBody = parsedOutput.body;
899
- (0, smithy_client_1.throwDefaultError)({
890
+ return throwDefaultError({
900
891
  output,
901
892
  parsedBody,
902
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
903
893
  errorCode,
904
894
  });
905
895
  }
@@ -915,7 +905,7 @@ const de_CreateFleetCommand = async (output, context) => {
915
905
  $metadata: deserializeMetadata(output),
916
906
  ...contents,
917
907
  };
918
- return Promise.resolve(response);
908
+ return response;
919
909
  };
920
910
  exports.de_CreateFleetCommand = de_CreateFleetCommand;
921
911
  const de_CreateFleetCommandError = async (output, context) => {
@@ -960,10 +950,9 @@ const de_CreateFleetCommandError = async (output, context) => {
960
950
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
961
951
  default:
962
952
  const parsedBody = parsedOutput.body;
963
- (0, smithy_client_1.throwDefaultError)({
953
+ return throwDefaultError({
964
954
  output,
965
955
  parsedBody,
966
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
967
956
  errorCode,
968
957
  });
969
958
  }
@@ -979,7 +968,7 @@ const de_CreateImageBuilderCommand = async (output, context) => {
979
968
  $metadata: deserializeMetadata(output),
980
969
  ...contents,
981
970
  };
982
- return Promise.resolve(response);
971
+ return response;
983
972
  };
984
973
  exports.de_CreateImageBuilderCommand = de_CreateImageBuilderCommand;
985
974
  const de_CreateImageBuilderCommandError = async (output, context) => {
@@ -1024,10 +1013,9 @@ const de_CreateImageBuilderCommandError = async (output, context) => {
1024
1013
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1025
1014
  default:
1026
1015
  const parsedBody = parsedOutput.body;
1027
- (0, smithy_client_1.throwDefaultError)({
1016
+ return throwDefaultError({
1028
1017
  output,
1029
1018
  parsedBody,
1030
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1031
1019
  errorCode,
1032
1020
  });
1033
1021
  }
@@ -1043,7 +1031,7 @@ const de_CreateImageBuilderStreamingURLCommand = async (output, context) => {
1043
1031
  $metadata: deserializeMetadata(output),
1044
1032
  ...contents,
1045
1033
  };
1046
- return Promise.resolve(response);
1034
+ return response;
1047
1035
  };
1048
1036
  exports.de_CreateImageBuilderStreamingURLCommand = de_CreateImageBuilderStreamingURLCommand;
1049
1037
  const de_CreateImageBuilderStreamingURLCommandError = async (output, context) => {
@@ -1061,10 +1049,9 @@ const de_CreateImageBuilderStreamingURLCommandError = async (output, context) =>
1061
1049
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1062
1050
  default:
1063
1051
  const parsedBody = parsedOutput.body;
1064
- (0, smithy_client_1.throwDefaultError)({
1052
+ return throwDefaultError({
1065
1053
  output,
1066
1054
  parsedBody,
1067
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1068
1055
  errorCode,
1069
1056
  });
1070
1057
  }
@@ -1080,7 +1067,7 @@ const de_CreateStackCommand = async (output, context) => {
1080
1067
  $metadata: deserializeMetadata(output),
1081
1068
  ...contents,
1082
1069
  };
1083
- return Promise.resolve(response);
1070
+ return response;
1084
1071
  };
1085
1072
  exports.de_CreateStackCommand = de_CreateStackCommand;
1086
1073
  const de_CreateStackCommandError = async (output, context) => {
@@ -1113,10 +1100,9 @@ const de_CreateStackCommandError = async (output, context) => {
1113
1100
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1114
1101
  default:
1115
1102
  const parsedBody = parsedOutput.body;
1116
- (0, smithy_client_1.throwDefaultError)({
1103
+ return throwDefaultError({
1117
1104
  output,
1118
1105
  parsedBody,
1119
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1120
1106
  errorCode,
1121
1107
  });
1122
1108
  }
@@ -1132,7 +1118,7 @@ const de_CreateStreamingURLCommand = async (output, context) => {
1132
1118
  $metadata: deserializeMetadata(output),
1133
1119
  ...contents,
1134
1120
  };
1135
- return Promise.resolve(response);
1121
+ return response;
1136
1122
  };
1137
1123
  exports.de_CreateStreamingURLCommand = de_CreateStreamingURLCommand;
1138
1124
  const de_CreateStreamingURLCommandError = async (output, context) => {
@@ -1156,10 +1142,9 @@ const de_CreateStreamingURLCommandError = async (output, context) => {
1156
1142
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1157
1143
  default:
1158
1144
  const parsedBody = parsedOutput.body;
1159
- (0, smithy_client_1.throwDefaultError)({
1145
+ return throwDefaultError({
1160
1146
  output,
1161
1147
  parsedBody,
1162
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1163
1148
  errorCode,
1164
1149
  });
1165
1150
  }
@@ -1175,7 +1160,7 @@ const de_CreateUpdatedImageCommand = async (output, context) => {
1175
1160
  $metadata: deserializeMetadata(output),
1176
1161
  ...contents,
1177
1162
  };
1178
- return Promise.resolve(response);
1163
+ return response;
1179
1164
  };
1180
1165
  exports.de_CreateUpdatedImageCommand = de_CreateUpdatedImageCommand;
1181
1166
  const de_CreateUpdatedImageCommandError = async (output, context) => {
@@ -1208,10 +1193,9 @@ const de_CreateUpdatedImageCommandError = async (output, context) => {
1208
1193
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1209
1194
  default:
1210
1195
  const parsedBody = parsedOutput.body;
1211
- (0, smithy_client_1.throwDefaultError)({
1196
+ return throwDefaultError({
1212
1197
  output,
1213
1198
  parsedBody,
1214
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1215
1199
  errorCode,
1216
1200
  });
1217
1201
  }
@@ -1222,12 +1206,12 @@ const de_CreateUsageReportSubscriptionCommand = async (output, context) => {
1222
1206
  }
1223
1207
  const data = await parseBody(output.body, context);
1224
1208
  let contents = {};
1225
- contents = de_CreateUsageReportSubscriptionResult(data, context);
1209
+ contents = (0, smithy_client_1._json)(data);
1226
1210
  const response = {
1227
1211
  $metadata: deserializeMetadata(output),
1228
1212
  ...contents,
1229
1213
  };
1230
- return Promise.resolve(response);
1214
+ return response;
1231
1215
  };
1232
1216
  exports.de_CreateUsageReportSubscriptionCommand = de_CreateUsageReportSubscriptionCommand;
1233
1217
  const de_CreateUsageReportSubscriptionCommandError = async (output, context) => {
@@ -1248,10 +1232,9 @@ const de_CreateUsageReportSubscriptionCommandError = async (output, context) =>
1248
1232
  throw await de_LimitExceededExceptionRes(parsedOutput, context);
1249
1233
  default:
1250
1234
  const parsedBody = parsedOutput.body;
1251
- (0, smithy_client_1.throwDefaultError)({
1235
+ return throwDefaultError({
1252
1236
  output,
1253
1237
  parsedBody,
1254
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1255
1238
  errorCode,
1256
1239
  });
1257
1240
  }
@@ -1262,12 +1245,12 @@ const de_CreateUserCommand = async (output, context) => {
1262
1245
  }
1263
1246
  const data = await parseBody(output.body, context);
1264
1247
  let contents = {};
1265
- contents = de_CreateUserResult(data, context);
1248
+ contents = (0, smithy_client_1._json)(data);
1266
1249
  const response = {
1267
1250
  $metadata: deserializeMetadata(output),
1268
1251
  ...contents,
1269
1252
  };
1270
- return Promise.resolve(response);
1253
+ return response;
1271
1254
  };
1272
1255
  exports.de_CreateUserCommand = de_CreateUserCommand;
1273
1256
  const de_CreateUserCommandError = async (output, context) => {
@@ -1294,10 +1277,9 @@ const de_CreateUserCommandError = async (output, context) => {
1294
1277
  throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1295
1278
  default:
1296
1279
  const parsedBody = parsedOutput.body;
1297
- (0, smithy_client_1.throwDefaultError)({
1280
+ return throwDefaultError({
1298
1281
  output,
1299
1282
  parsedBody,
1300
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1301
1283
  errorCode,
1302
1284
  });
1303
1285
  }
@@ -1308,12 +1290,12 @@ const de_DeleteAppBlockCommand = async (output, context) => {
1308
1290
  }
1309
1291
  const data = await parseBody(output.body, context);
1310
1292
  let contents = {};
1311
- contents = de_DeleteAppBlockResult(data, context);
1293
+ contents = (0, smithy_client_1._json)(data);
1312
1294
  const response = {
1313
1295
  $metadata: deserializeMetadata(output),
1314
1296
  ...contents,
1315
1297
  };
1316
- return Promise.resolve(response);
1298
+ return response;
1317
1299
  };
1318
1300
  exports.de_DeleteAppBlockCommand = de_DeleteAppBlockCommand;
1319
1301
  const de_DeleteAppBlockCommandError = async (output, context) => {
@@ -1334,10 +1316,9 @@ const de_DeleteAppBlockCommandError = async (output, context) => {
1334
1316
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1335
1317
  default:
1336
1318
  const parsedBody = parsedOutput.body;
1337
- (0, smithy_client_1.throwDefaultError)({
1319
+ return throwDefaultError({
1338
1320
  output,
1339
1321
  parsedBody,
1340
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1341
1322
  errorCode,
1342
1323
  });
1343
1324
  }
@@ -1348,12 +1329,12 @@ const de_DeleteApplicationCommand = async (output, context) => {
1348
1329
  }
1349
1330
  const data = await parseBody(output.body, context);
1350
1331
  let contents = {};
1351
- contents = de_DeleteApplicationResult(data, context);
1332
+ contents = (0, smithy_client_1._json)(data);
1352
1333
  const response = {
1353
1334
  $metadata: deserializeMetadata(output),
1354
1335
  ...contents,
1355
1336
  };
1356
- return Promise.resolve(response);
1337
+ return response;
1357
1338
  };
1358
1339
  exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
1359
1340
  const de_DeleteApplicationCommandError = async (output, context) => {
@@ -1377,10 +1358,9 @@ const de_DeleteApplicationCommandError = async (output, context) => {
1377
1358
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1378
1359
  default:
1379
1360
  const parsedBody = parsedOutput.body;
1380
- (0, smithy_client_1.throwDefaultError)({
1361
+ return throwDefaultError({
1381
1362
  output,
1382
1363
  parsedBody,
1383
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1384
1364
  errorCode,
1385
1365
  });
1386
1366
  }
@@ -1391,12 +1371,12 @@ const de_DeleteDirectoryConfigCommand = async (output, context) => {
1391
1371
  }
1392
1372
  const data = await parseBody(output.body, context);
1393
1373
  let contents = {};
1394
- contents = de_DeleteDirectoryConfigResult(data, context);
1374
+ contents = (0, smithy_client_1._json)(data);
1395
1375
  const response = {
1396
1376
  $metadata: deserializeMetadata(output),
1397
1377
  ...contents,
1398
1378
  };
1399
- return Promise.resolve(response);
1379
+ return response;
1400
1380
  };
1401
1381
  exports.de_DeleteDirectoryConfigCommand = de_DeleteDirectoryConfigCommand;
1402
1382
  const de_DeleteDirectoryConfigCommandError = async (output, context) => {
@@ -1414,10 +1394,9 @@ const de_DeleteDirectoryConfigCommandError = async (output, context) => {
1414
1394
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1415
1395
  default:
1416
1396
  const parsedBody = parsedOutput.body;
1417
- (0, smithy_client_1.throwDefaultError)({
1397
+ return throwDefaultError({
1418
1398
  output,
1419
1399
  parsedBody,
1420
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1421
1400
  errorCode,
1422
1401
  });
1423
1402
  }
@@ -1428,12 +1407,12 @@ const de_DeleteEntitlementCommand = async (output, context) => {
1428
1407
  }
1429
1408
  const data = await parseBody(output.body, context);
1430
1409
  let contents = {};
1431
- contents = de_DeleteEntitlementResult(data, context);
1410
+ contents = (0, smithy_client_1._json)(data);
1432
1411
  const response = {
1433
1412
  $metadata: deserializeMetadata(output),
1434
1413
  ...contents,
1435
1414
  };
1436
- return Promise.resolve(response);
1415
+ return response;
1437
1416
  };
1438
1417
  exports.de_DeleteEntitlementCommand = de_DeleteEntitlementCommand;
1439
1418
  const de_DeleteEntitlementCommandError = async (output, context) => {
@@ -1457,10 +1436,9 @@ const de_DeleteEntitlementCommandError = async (output, context) => {
1457
1436
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1458
1437
  default:
1459
1438
  const parsedBody = parsedOutput.body;
1460
- (0, smithy_client_1.throwDefaultError)({
1439
+ return throwDefaultError({
1461
1440
  output,
1462
1441
  parsedBody,
1463
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1464
1442
  errorCode,
1465
1443
  });
1466
1444
  }
@@ -1471,12 +1449,12 @@ const de_DeleteFleetCommand = async (output, context) => {
1471
1449
  }
1472
1450
  const data = await parseBody(output.body, context);
1473
1451
  let contents = {};
1474
- contents = de_DeleteFleetResult(data, context);
1452
+ contents = (0, smithy_client_1._json)(data);
1475
1453
  const response = {
1476
1454
  $metadata: deserializeMetadata(output),
1477
1455
  ...contents,
1478
1456
  };
1479
- return Promise.resolve(response);
1457
+ return response;
1480
1458
  };
1481
1459
  exports.de_DeleteFleetCommand = de_DeleteFleetCommand;
1482
1460
  const de_DeleteFleetCommandError = async (output, context) => {
@@ -1497,10 +1475,9 @@ const de_DeleteFleetCommandError = async (output, context) => {
1497
1475
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1498
1476
  default:
1499
1477
  const parsedBody = parsedOutput.body;
1500
- (0, smithy_client_1.throwDefaultError)({
1478
+ return throwDefaultError({
1501
1479
  output,
1502
1480
  parsedBody,
1503
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1504
1481
  errorCode,
1505
1482
  });
1506
1483
  }
@@ -1516,7 +1493,7 @@ const de_DeleteImageCommand = async (output, context) => {
1516
1493
  $metadata: deserializeMetadata(output),
1517
1494
  ...contents,
1518
1495
  };
1519
- return Promise.resolve(response);
1496
+ return response;
1520
1497
  };
1521
1498
  exports.de_DeleteImageCommand = de_DeleteImageCommand;
1522
1499
  const de_DeleteImageCommandError = async (output, context) => {
@@ -1540,10 +1517,9 @@ const de_DeleteImageCommandError = async (output, context) => {
1540
1517
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1541
1518
  default:
1542
1519
  const parsedBody = parsedOutput.body;
1543
- (0, smithy_client_1.throwDefaultError)({
1520
+ return throwDefaultError({
1544
1521
  output,
1545
1522
  parsedBody,
1546
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1547
1523
  errorCode,
1548
1524
  });
1549
1525
  }
@@ -1559,7 +1535,7 @@ const de_DeleteImageBuilderCommand = async (output, context) => {
1559
1535
  $metadata: deserializeMetadata(output),
1560
1536
  ...contents,
1561
1537
  };
1562
- return Promise.resolve(response);
1538
+ return response;
1563
1539
  };
1564
1540
  exports.de_DeleteImageBuilderCommand = de_DeleteImageBuilderCommand;
1565
1541
  const de_DeleteImageBuilderCommandError = async (output, context) => {
@@ -1580,10 +1556,9 @@ const de_DeleteImageBuilderCommandError = async (output, context) => {
1580
1556
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1581
1557
  default:
1582
1558
  const parsedBody = parsedOutput.body;
1583
- (0, smithy_client_1.throwDefaultError)({
1559
+ return throwDefaultError({
1584
1560
  output,
1585
1561
  parsedBody,
1586
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1587
1562
  errorCode,
1588
1563
  });
1589
1564
  }
@@ -1594,12 +1569,12 @@ const de_DeleteImagePermissionsCommand = async (output, context) => {
1594
1569
  }
1595
1570
  const data = await parseBody(output.body, context);
1596
1571
  let contents = {};
1597
- contents = de_DeleteImagePermissionsResult(data, context);
1572
+ contents = (0, smithy_client_1._json)(data);
1598
1573
  const response = {
1599
1574
  $metadata: deserializeMetadata(output),
1600
1575
  ...contents,
1601
1576
  };
1602
- return Promise.resolve(response);
1577
+ return response;
1603
1578
  };
1604
1579
  exports.de_DeleteImagePermissionsCommand = de_DeleteImagePermissionsCommand;
1605
1580
  const de_DeleteImagePermissionsCommandError = async (output, context) => {
@@ -1617,10 +1592,9 @@ const de_DeleteImagePermissionsCommandError = async (output, context) => {
1617
1592
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1618
1593
  default:
1619
1594
  const parsedBody = parsedOutput.body;
1620
- (0, smithy_client_1.throwDefaultError)({
1595
+ return throwDefaultError({
1621
1596
  output,
1622
1597
  parsedBody,
1623
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1624
1598
  errorCode,
1625
1599
  });
1626
1600
  }
@@ -1631,12 +1605,12 @@ const de_DeleteStackCommand = async (output, context) => {
1631
1605
  }
1632
1606
  const data = await parseBody(output.body, context);
1633
1607
  let contents = {};
1634
- contents = de_DeleteStackResult(data, context);
1608
+ contents = (0, smithy_client_1._json)(data);
1635
1609
  const response = {
1636
1610
  $metadata: deserializeMetadata(output),
1637
1611
  ...contents,
1638
1612
  };
1639
- return Promise.resolve(response);
1613
+ return response;
1640
1614
  };
1641
1615
  exports.de_DeleteStackCommand = de_DeleteStackCommand;
1642
1616
  const de_DeleteStackCommandError = async (output, context) => {
@@ -1660,10 +1634,9 @@ const de_DeleteStackCommandError = async (output, context) => {
1660
1634
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1661
1635
  default:
1662
1636
  const parsedBody = parsedOutput.body;
1663
- (0, smithy_client_1.throwDefaultError)({
1637
+ return throwDefaultError({
1664
1638
  output,
1665
1639
  parsedBody,
1666
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1667
1640
  errorCode,
1668
1641
  });
1669
1642
  }
@@ -1674,12 +1647,12 @@ const de_DeleteUsageReportSubscriptionCommand = async (output, context) => {
1674
1647
  }
1675
1648
  const data = await parseBody(output.body, context);
1676
1649
  let contents = {};
1677
- contents = de_DeleteUsageReportSubscriptionResult(data, context);
1650
+ contents = (0, smithy_client_1._json)(data);
1678
1651
  const response = {
1679
1652
  $metadata: deserializeMetadata(output),
1680
1653
  ...contents,
1681
1654
  };
1682
- return Promise.resolve(response);
1655
+ return response;
1683
1656
  };
1684
1657
  exports.de_DeleteUsageReportSubscriptionCommand = de_DeleteUsageReportSubscriptionCommand;
1685
1658
  const de_DeleteUsageReportSubscriptionCommandError = async (output, context) => {
@@ -1697,10 +1670,9 @@ const de_DeleteUsageReportSubscriptionCommandError = async (output, context) =>
1697
1670
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1698
1671
  default:
1699
1672
  const parsedBody = parsedOutput.body;
1700
- (0, smithy_client_1.throwDefaultError)({
1673
+ return throwDefaultError({
1701
1674
  output,
1702
1675
  parsedBody,
1703
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1704
1676
  errorCode,
1705
1677
  });
1706
1678
  }
@@ -1711,12 +1683,12 @@ const de_DeleteUserCommand = async (output, context) => {
1711
1683
  }
1712
1684
  const data = await parseBody(output.body, context);
1713
1685
  let contents = {};
1714
- contents = de_DeleteUserResult(data, context);
1686
+ contents = (0, smithy_client_1._json)(data);
1715
1687
  const response = {
1716
1688
  $metadata: deserializeMetadata(output),
1717
1689
  ...contents,
1718
1690
  };
1719
- return Promise.resolve(response);
1691
+ return response;
1720
1692
  };
1721
1693
  exports.de_DeleteUserCommand = de_DeleteUserCommand;
1722
1694
  const de_DeleteUserCommandError = async (output, context) => {
@@ -1731,10 +1703,9 @@ const de_DeleteUserCommandError = async (output, context) => {
1731
1703
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1732
1704
  default:
1733
1705
  const parsedBody = parsedOutput.body;
1734
- (0, smithy_client_1.throwDefaultError)({
1706
+ return throwDefaultError({
1735
1707
  output,
1736
1708
  parsedBody,
1737
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1738
1709
  errorCode,
1739
1710
  });
1740
1711
  }
@@ -1750,7 +1721,7 @@ const de_DescribeAppBlocksCommand = async (output, context) => {
1750
1721
  $metadata: deserializeMetadata(output),
1751
1722
  ...contents,
1752
1723
  };
1753
- return Promise.resolve(response);
1724
+ return response;
1754
1725
  };
1755
1726
  exports.de_DescribeAppBlocksCommand = de_DescribeAppBlocksCommand;
1756
1727
  const de_DescribeAppBlocksCommandError = async (output, context) => {
@@ -1768,10 +1739,9 @@ const de_DescribeAppBlocksCommandError = async (output, context) => {
1768
1739
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1769
1740
  default:
1770
1741
  const parsedBody = parsedOutput.body;
1771
- (0, smithy_client_1.throwDefaultError)({
1742
+ return throwDefaultError({
1772
1743
  output,
1773
1744
  parsedBody,
1774
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1775
1745
  errorCode,
1776
1746
  });
1777
1747
  }
@@ -1782,12 +1752,12 @@ const de_DescribeApplicationFleetAssociationsCommand = async (output, context) =
1782
1752
  }
1783
1753
  const data = await parseBody(output.body, context);
1784
1754
  let contents = {};
1785
- contents = de_DescribeApplicationFleetAssociationsResult(data, context);
1755
+ contents = (0, smithy_client_1._json)(data);
1786
1756
  const response = {
1787
1757
  $metadata: deserializeMetadata(output),
1788
1758
  ...contents,
1789
1759
  };
1790
- return Promise.resolve(response);
1760
+ return response;
1791
1761
  };
1792
1762
  exports.de_DescribeApplicationFleetAssociationsCommand = de_DescribeApplicationFleetAssociationsCommand;
1793
1763
  const de_DescribeApplicationFleetAssociationsCommandError = async (output, context) => {
@@ -1805,10 +1775,9 @@ const de_DescribeApplicationFleetAssociationsCommandError = async (output, conte
1805
1775
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1806
1776
  default:
1807
1777
  const parsedBody = parsedOutput.body;
1808
- (0, smithy_client_1.throwDefaultError)({
1778
+ return throwDefaultError({
1809
1779
  output,
1810
1780
  parsedBody,
1811
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1812
1781
  errorCode,
1813
1782
  });
1814
1783
  }
@@ -1824,7 +1793,7 @@ const de_DescribeApplicationsCommand = async (output, context) => {
1824
1793
  $metadata: deserializeMetadata(output),
1825
1794
  ...contents,
1826
1795
  };
1827
- return Promise.resolve(response);
1796
+ return response;
1828
1797
  };
1829
1798
  exports.de_DescribeApplicationsCommand = de_DescribeApplicationsCommand;
1830
1799
  const de_DescribeApplicationsCommandError = async (output, context) => {
@@ -1842,10 +1811,9 @@ const de_DescribeApplicationsCommandError = async (output, context) => {
1842
1811
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1843
1812
  default:
1844
1813
  const parsedBody = parsedOutput.body;
1845
- (0, smithy_client_1.throwDefaultError)({
1814
+ return throwDefaultError({
1846
1815
  output,
1847
1816
  parsedBody,
1848
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1849
1817
  errorCode,
1850
1818
  });
1851
1819
  }
@@ -1861,7 +1829,7 @@ const de_DescribeDirectoryConfigsCommand = async (output, context) => {
1861
1829
  $metadata: deserializeMetadata(output),
1862
1830
  ...contents,
1863
1831
  };
1864
- return Promise.resolve(response);
1832
+ return response;
1865
1833
  };
1866
1834
  exports.de_DescribeDirectoryConfigsCommand = de_DescribeDirectoryConfigsCommand;
1867
1835
  const de_DescribeDirectoryConfigsCommandError = async (output, context) => {
@@ -1876,10 +1844,9 @@ const de_DescribeDirectoryConfigsCommandError = async (output, context) => {
1876
1844
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1877
1845
  default:
1878
1846
  const parsedBody = parsedOutput.body;
1879
- (0, smithy_client_1.throwDefaultError)({
1847
+ return throwDefaultError({
1880
1848
  output,
1881
1849
  parsedBody,
1882
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1883
1850
  errorCode,
1884
1851
  });
1885
1852
  }
@@ -1895,7 +1862,7 @@ const de_DescribeEntitlementsCommand = async (output, context) => {
1895
1862
  $metadata: deserializeMetadata(output),
1896
1863
  ...contents,
1897
1864
  };
1898
- return Promise.resolve(response);
1865
+ return response;
1899
1866
  };
1900
1867
  exports.de_DescribeEntitlementsCommand = de_DescribeEntitlementsCommand;
1901
1868
  const de_DescribeEntitlementsCommandError = async (output, context) => {
@@ -1916,10 +1883,9 @@ const de_DescribeEntitlementsCommandError = async (output, context) => {
1916
1883
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1917
1884
  default:
1918
1885
  const parsedBody = parsedOutput.body;
1919
- (0, smithy_client_1.throwDefaultError)({
1886
+ return throwDefaultError({
1920
1887
  output,
1921
1888
  parsedBody,
1922
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1923
1889
  errorCode,
1924
1890
  });
1925
1891
  }
@@ -1935,7 +1901,7 @@ const de_DescribeFleetsCommand = async (output, context) => {
1935
1901
  $metadata: deserializeMetadata(output),
1936
1902
  ...contents,
1937
1903
  };
1938
- return Promise.resolve(response);
1904
+ return response;
1939
1905
  };
1940
1906
  exports.de_DescribeFleetsCommand = de_DescribeFleetsCommand;
1941
1907
  const de_DescribeFleetsCommandError = async (output, context) => {
@@ -1950,10 +1916,9 @@ const de_DescribeFleetsCommandError = async (output, context) => {
1950
1916
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1951
1917
  default:
1952
1918
  const parsedBody = parsedOutput.body;
1953
- (0, smithy_client_1.throwDefaultError)({
1919
+ return throwDefaultError({
1954
1920
  output,
1955
1921
  parsedBody,
1956
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1957
1922
  errorCode,
1958
1923
  });
1959
1924
  }
@@ -1969,7 +1934,7 @@ const de_DescribeImageBuildersCommand = async (output, context) => {
1969
1934
  $metadata: deserializeMetadata(output),
1970
1935
  ...contents,
1971
1936
  };
1972
- return Promise.resolve(response);
1937
+ return response;
1973
1938
  };
1974
1939
  exports.de_DescribeImageBuildersCommand = de_DescribeImageBuildersCommand;
1975
1940
  const de_DescribeImageBuildersCommandError = async (output, context) => {
@@ -1984,10 +1949,9 @@ const de_DescribeImageBuildersCommandError = async (output, context) => {
1984
1949
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1985
1950
  default:
1986
1951
  const parsedBody = parsedOutput.body;
1987
- (0, smithy_client_1.throwDefaultError)({
1952
+ return throwDefaultError({
1988
1953
  output,
1989
1954
  parsedBody,
1990
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
1991
1955
  errorCode,
1992
1956
  });
1993
1957
  }
@@ -1998,12 +1962,12 @@ const de_DescribeImagePermissionsCommand = async (output, context) => {
1998
1962
  }
1999
1963
  const data = await parseBody(output.body, context);
2000
1964
  let contents = {};
2001
- contents = de_DescribeImagePermissionsResult(data, context);
1965
+ contents = (0, smithy_client_1._json)(data);
2002
1966
  const response = {
2003
1967
  $metadata: deserializeMetadata(output),
2004
1968
  ...contents,
2005
1969
  };
2006
- return Promise.resolve(response);
1970
+ return response;
2007
1971
  };
2008
1972
  exports.de_DescribeImagePermissionsCommand = de_DescribeImagePermissionsCommand;
2009
1973
  const de_DescribeImagePermissionsCommandError = async (output, context) => {
@@ -2018,10 +1982,9 @@ const de_DescribeImagePermissionsCommandError = async (output, context) => {
2018
1982
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2019
1983
  default:
2020
1984
  const parsedBody = parsedOutput.body;
2021
- (0, smithy_client_1.throwDefaultError)({
1985
+ return throwDefaultError({
2022
1986
  output,
2023
1987
  parsedBody,
2024
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2025
1988
  errorCode,
2026
1989
  });
2027
1990
  }
@@ -2037,7 +2000,7 @@ const de_DescribeImagesCommand = async (output, context) => {
2037
2000
  $metadata: deserializeMetadata(output),
2038
2001
  ...contents,
2039
2002
  };
2040
- return Promise.resolve(response);
2003
+ return response;
2041
2004
  };
2042
2005
  exports.de_DescribeImagesCommand = de_DescribeImagesCommand;
2043
2006
  const de_DescribeImagesCommandError = async (output, context) => {
@@ -2055,10 +2018,9 @@ const de_DescribeImagesCommandError = async (output, context) => {
2055
2018
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2056
2019
  default:
2057
2020
  const parsedBody = parsedOutput.body;
2058
- (0, smithy_client_1.throwDefaultError)({
2021
+ return throwDefaultError({
2059
2022
  output,
2060
2023
  parsedBody,
2061
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2062
2024
  errorCode,
2063
2025
  });
2064
2026
  }
@@ -2074,7 +2036,7 @@ const de_DescribeSessionsCommand = async (output, context) => {
2074
2036
  $metadata: deserializeMetadata(output),
2075
2037
  ...contents,
2076
2038
  };
2077
- return Promise.resolve(response);
2039
+ return response;
2078
2040
  };
2079
2041
  exports.de_DescribeSessionsCommand = de_DescribeSessionsCommand;
2080
2042
  const de_DescribeSessionsCommandError = async (output, context) => {
@@ -2089,10 +2051,9 @@ const de_DescribeSessionsCommandError = async (output, context) => {
2089
2051
  throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
2090
2052
  default:
2091
2053
  const parsedBody = parsedOutput.body;
2092
- (0, smithy_client_1.throwDefaultError)({
2054
+ return throwDefaultError({
2093
2055
  output,
2094
2056
  parsedBody,
2095
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2096
2057
  errorCode,
2097
2058
  });
2098
2059
  }
@@ -2108,7 +2069,7 @@ const de_DescribeStacksCommand = async (output, context) => {
2108
2069
  $metadata: deserializeMetadata(output),
2109
2070
  ...contents,
2110
2071
  };
2111
- return Promise.resolve(response);
2072
+ return response;
2112
2073
  };
2113
2074
  exports.de_DescribeStacksCommand = de_DescribeStacksCommand;
2114
2075
  const de_DescribeStacksCommandError = async (output, context) => {
@@ -2123,10 +2084,9 @@ const de_DescribeStacksCommandError = async (output, context) => {
2123
2084
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2124
2085
  default:
2125
2086
  const parsedBody = parsedOutput.body;
2126
- (0, smithy_client_1.throwDefaultError)({
2087
+ return throwDefaultError({
2127
2088
  output,
2128
2089
  parsedBody,
2129
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2130
2090
  errorCode,
2131
2091
  });
2132
2092
  }
@@ -2142,7 +2102,7 @@ const de_DescribeUsageReportSubscriptionsCommand = async (output, context) => {
2142
2102
  $metadata: deserializeMetadata(output),
2143
2103
  ...contents,
2144
2104
  };
2145
- return Promise.resolve(response);
2105
+ return response;
2146
2106
  };
2147
2107
  exports.de_DescribeUsageReportSubscriptionsCommand = de_DescribeUsageReportSubscriptionsCommand;
2148
2108
  const de_DescribeUsageReportSubscriptionsCommandError = async (output, context) => {
@@ -2160,10 +2120,9 @@ const de_DescribeUsageReportSubscriptionsCommandError = async (output, context)
2160
2120
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2161
2121
  default:
2162
2122
  const parsedBody = parsedOutput.body;
2163
- (0, smithy_client_1.throwDefaultError)({
2123
+ return throwDefaultError({
2164
2124
  output,
2165
2125
  parsedBody,
2166
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2167
2126
  errorCode,
2168
2127
  });
2169
2128
  }
@@ -2179,7 +2138,7 @@ const de_DescribeUsersCommand = async (output, context) => {
2179
2138
  $metadata: deserializeMetadata(output),
2180
2139
  ...contents,
2181
2140
  };
2182
- return Promise.resolve(response);
2141
+ return response;
2183
2142
  };
2184
2143
  exports.de_DescribeUsersCommand = de_DescribeUsersCommand;
2185
2144
  const de_DescribeUsersCommandError = async (output, context) => {
@@ -2200,10 +2159,9 @@ const de_DescribeUsersCommandError = async (output, context) => {
2200
2159
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2201
2160
  default:
2202
2161
  const parsedBody = parsedOutput.body;
2203
- (0, smithy_client_1.throwDefaultError)({
2162
+ return throwDefaultError({
2204
2163
  output,
2205
2164
  parsedBody,
2206
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2207
2165
  errorCode,
2208
2166
  });
2209
2167
  }
@@ -2214,12 +2172,12 @@ const de_DescribeUserStackAssociationsCommand = async (output, context) => {
2214
2172
  }
2215
2173
  const data = await parseBody(output.body, context);
2216
2174
  let contents = {};
2217
- contents = de_DescribeUserStackAssociationsResult(data, context);
2175
+ contents = (0, smithy_client_1._json)(data);
2218
2176
  const response = {
2219
2177
  $metadata: deserializeMetadata(output),
2220
2178
  ...contents,
2221
2179
  };
2222
- return Promise.resolve(response);
2180
+ return response;
2223
2181
  };
2224
2182
  exports.de_DescribeUserStackAssociationsCommand = de_DescribeUserStackAssociationsCommand;
2225
2183
  const de_DescribeUserStackAssociationsCommandError = async (output, context) => {
@@ -2237,10 +2195,9 @@ const de_DescribeUserStackAssociationsCommandError = async (output, context) =>
2237
2195
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2238
2196
  default:
2239
2197
  const parsedBody = parsedOutput.body;
2240
- (0, smithy_client_1.throwDefaultError)({
2198
+ return throwDefaultError({
2241
2199
  output,
2242
2200
  parsedBody,
2243
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2244
2201
  errorCode,
2245
2202
  });
2246
2203
  }
@@ -2251,12 +2208,12 @@ const de_DisableUserCommand = async (output, context) => {
2251
2208
  }
2252
2209
  const data = await parseBody(output.body, context);
2253
2210
  let contents = {};
2254
- contents = de_DisableUserResult(data, context);
2211
+ contents = (0, smithy_client_1._json)(data);
2255
2212
  const response = {
2256
2213
  $metadata: deserializeMetadata(output),
2257
2214
  ...contents,
2258
2215
  };
2259
- return Promise.resolve(response);
2216
+ return response;
2260
2217
  };
2261
2218
  exports.de_DisableUserCommand = de_DisableUserCommand;
2262
2219
  const de_DisableUserCommandError = async (output, context) => {
@@ -2271,10 +2228,9 @@ const de_DisableUserCommandError = async (output, context) => {
2271
2228
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2272
2229
  default:
2273
2230
  const parsedBody = parsedOutput.body;
2274
- (0, smithy_client_1.throwDefaultError)({
2231
+ return throwDefaultError({
2275
2232
  output,
2276
2233
  parsedBody,
2277
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2278
2234
  errorCode,
2279
2235
  });
2280
2236
  }
@@ -2285,12 +2241,12 @@ const de_DisassociateApplicationFleetCommand = async (output, context) => {
2285
2241
  }
2286
2242
  const data = await parseBody(output.body, context);
2287
2243
  let contents = {};
2288
- contents = de_DisassociateApplicationFleetResult(data, context);
2244
+ contents = (0, smithy_client_1._json)(data);
2289
2245
  const response = {
2290
2246
  $metadata: deserializeMetadata(output),
2291
2247
  ...contents,
2292
2248
  };
2293
- return Promise.resolve(response);
2249
+ return response;
2294
2250
  };
2295
2251
  exports.de_DisassociateApplicationFleetCommand = de_DisassociateApplicationFleetCommand;
2296
2252
  const de_DisassociateApplicationFleetCommandError = async (output, context) => {
@@ -2311,10 +2267,9 @@ const de_DisassociateApplicationFleetCommandError = async (output, context) => {
2311
2267
  throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
2312
2268
  default:
2313
2269
  const parsedBody = parsedOutput.body;
2314
- (0, smithy_client_1.throwDefaultError)({
2270
+ return throwDefaultError({
2315
2271
  output,
2316
2272
  parsedBody,
2317
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2318
2273
  errorCode,
2319
2274
  });
2320
2275
  }
@@ -2325,12 +2280,12 @@ const de_DisassociateApplicationFromEntitlementCommand = async (output, context)
2325
2280
  }
2326
2281
  const data = await parseBody(output.body, context);
2327
2282
  let contents = {};
2328
- contents = de_DisassociateApplicationFromEntitlementResult(data, context);
2283
+ contents = (0, smithy_client_1._json)(data);
2329
2284
  const response = {
2330
2285
  $metadata: deserializeMetadata(output),
2331
2286
  ...contents,
2332
2287
  };
2333
- return Promise.resolve(response);
2288
+ return response;
2334
2289
  };
2335
2290
  exports.de_DisassociateApplicationFromEntitlementCommand = de_DisassociateApplicationFromEntitlementCommand;
2336
2291
  const de_DisassociateApplicationFromEntitlementCommandError = async (output, context) => {
@@ -2351,10 +2306,9 @@ const de_DisassociateApplicationFromEntitlementCommandError = async (output, con
2351
2306
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2352
2307
  default:
2353
2308
  const parsedBody = parsedOutput.body;
2354
- (0, smithy_client_1.throwDefaultError)({
2309
+ return throwDefaultError({
2355
2310
  output,
2356
2311
  parsedBody,
2357
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2358
2312
  errorCode,
2359
2313
  });
2360
2314
  }
@@ -2365,12 +2319,12 @@ const de_DisassociateFleetCommand = async (output, context) => {
2365
2319
  }
2366
2320
  const data = await parseBody(output.body, context);
2367
2321
  let contents = {};
2368
- contents = de_DisassociateFleetResult(data, context);
2322
+ contents = (0, smithy_client_1._json)(data);
2369
2323
  const response = {
2370
2324
  $metadata: deserializeMetadata(output),
2371
2325
  ...contents,
2372
2326
  };
2373
- return Promise.resolve(response);
2327
+ return response;
2374
2328
  };
2375
2329
  exports.de_DisassociateFleetCommand = de_DisassociateFleetCommand;
2376
2330
  const de_DisassociateFleetCommandError = async (output, context) => {
@@ -2394,10 +2348,9 @@ const de_DisassociateFleetCommandError = async (output, context) => {
2394
2348
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2395
2349
  default:
2396
2350
  const parsedBody = parsedOutput.body;
2397
- (0, smithy_client_1.throwDefaultError)({
2351
+ return throwDefaultError({
2398
2352
  output,
2399
2353
  parsedBody,
2400
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2401
2354
  errorCode,
2402
2355
  });
2403
2356
  }
@@ -2408,12 +2361,12 @@ const de_EnableUserCommand = async (output, context) => {
2408
2361
  }
2409
2362
  const data = await parseBody(output.body, context);
2410
2363
  let contents = {};
2411
- contents = de_EnableUserResult(data, context);
2364
+ contents = (0, smithy_client_1._json)(data);
2412
2365
  const response = {
2413
2366
  $metadata: deserializeMetadata(output),
2414
2367
  ...contents,
2415
2368
  };
2416
- return Promise.resolve(response);
2369
+ return response;
2417
2370
  };
2418
2371
  exports.de_EnableUserCommand = de_EnableUserCommand;
2419
2372
  const de_EnableUserCommandError = async (output, context) => {
@@ -2431,10 +2384,9 @@ const de_EnableUserCommandError = async (output, context) => {
2431
2384
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2432
2385
  default:
2433
2386
  const parsedBody = parsedOutput.body;
2434
- (0, smithy_client_1.throwDefaultError)({
2387
+ return throwDefaultError({
2435
2388
  output,
2436
2389
  parsedBody,
2437
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2438
2390
  errorCode,
2439
2391
  });
2440
2392
  }
@@ -2445,12 +2397,12 @@ const de_ExpireSessionCommand = async (output, context) => {
2445
2397
  }
2446
2398
  const data = await parseBody(output.body, context);
2447
2399
  let contents = {};
2448
- contents = de_ExpireSessionResult(data, context);
2400
+ contents = (0, smithy_client_1._json)(data);
2449
2401
  const response = {
2450
2402
  $metadata: deserializeMetadata(output),
2451
2403
  ...contents,
2452
2404
  };
2453
- return Promise.resolve(response);
2405
+ return response;
2454
2406
  };
2455
2407
  exports.de_ExpireSessionCommand = de_ExpireSessionCommand;
2456
2408
  const de_ExpireSessionCommandError = async (output, context) => {
@@ -2460,10 +2412,9 @@ const de_ExpireSessionCommandError = async (output, context) => {
2460
2412
  };
2461
2413
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2462
2414
  const parsedBody = parsedOutput.body;
2463
- (0, smithy_client_1.throwDefaultError)({
2415
+ return throwDefaultError({
2464
2416
  output,
2465
2417
  parsedBody,
2466
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2467
2418
  errorCode,
2468
2419
  });
2469
2420
  };
@@ -2473,12 +2424,12 @@ const de_ListAssociatedFleetsCommand = async (output, context) => {
2473
2424
  }
2474
2425
  const data = await parseBody(output.body, context);
2475
2426
  let contents = {};
2476
- contents = de_ListAssociatedFleetsResult(data, context);
2427
+ contents = (0, smithy_client_1._json)(data);
2477
2428
  const response = {
2478
2429
  $metadata: deserializeMetadata(output),
2479
2430
  ...contents,
2480
2431
  };
2481
- return Promise.resolve(response);
2432
+ return response;
2482
2433
  };
2483
2434
  exports.de_ListAssociatedFleetsCommand = de_ListAssociatedFleetsCommand;
2484
2435
  const de_ListAssociatedFleetsCommandError = async (output, context) => {
@@ -2488,10 +2439,9 @@ const de_ListAssociatedFleetsCommandError = async (output, context) => {
2488
2439
  };
2489
2440
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2490
2441
  const parsedBody = parsedOutput.body;
2491
- (0, smithy_client_1.throwDefaultError)({
2442
+ return throwDefaultError({
2492
2443
  output,
2493
2444
  parsedBody,
2494
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2495
2445
  errorCode,
2496
2446
  });
2497
2447
  };
@@ -2501,12 +2451,12 @@ const de_ListAssociatedStacksCommand = async (output, context) => {
2501
2451
  }
2502
2452
  const data = await parseBody(output.body, context);
2503
2453
  let contents = {};
2504
- contents = de_ListAssociatedStacksResult(data, context);
2454
+ contents = (0, smithy_client_1._json)(data);
2505
2455
  const response = {
2506
2456
  $metadata: deserializeMetadata(output),
2507
2457
  ...contents,
2508
2458
  };
2509
- return Promise.resolve(response);
2459
+ return response;
2510
2460
  };
2511
2461
  exports.de_ListAssociatedStacksCommand = de_ListAssociatedStacksCommand;
2512
2462
  const de_ListAssociatedStacksCommandError = async (output, context) => {
@@ -2516,10 +2466,9 @@ const de_ListAssociatedStacksCommandError = async (output, context) => {
2516
2466
  };
2517
2467
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2518
2468
  const parsedBody = parsedOutput.body;
2519
- (0, smithy_client_1.throwDefaultError)({
2469
+ return throwDefaultError({
2520
2470
  output,
2521
2471
  parsedBody,
2522
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2523
2472
  errorCode,
2524
2473
  });
2525
2474
  };
@@ -2529,12 +2478,12 @@ const de_ListEntitledApplicationsCommand = async (output, context) => {
2529
2478
  }
2530
2479
  const data = await parseBody(output.body, context);
2531
2480
  let contents = {};
2532
- contents = de_ListEntitledApplicationsResult(data, context);
2481
+ contents = (0, smithy_client_1._json)(data);
2533
2482
  const response = {
2534
2483
  $metadata: deserializeMetadata(output),
2535
2484
  ...contents,
2536
2485
  };
2537
- return Promise.resolve(response);
2486
+ return response;
2538
2487
  };
2539
2488
  exports.de_ListEntitledApplicationsCommand = de_ListEntitledApplicationsCommand;
2540
2489
  const de_ListEntitledApplicationsCommandError = async (output, context) => {
@@ -2555,10 +2504,9 @@ const de_ListEntitledApplicationsCommandError = async (output, context) => {
2555
2504
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2556
2505
  default:
2557
2506
  const parsedBody = parsedOutput.body;
2558
- (0, smithy_client_1.throwDefaultError)({
2507
+ return throwDefaultError({
2559
2508
  output,
2560
2509
  parsedBody,
2561
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2562
2510
  errorCode,
2563
2511
  });
2564
2512
  }
@@ -2569,12 +2517,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
2569
2517
  }
2570
2518
  const data = await parseBody(output.body, context);
2571
2519
  let contents = {};
2572
- contents = de_ListTagsForResourceResponse(data, context);
2520
+ contents = (0, smithy_client_1._json)(data);
2573
2521
  const response = {
2574
2522
  $metadata: deserializeMetadata(output),
2575
2523
  ...contents,
2576
2524
  };
2577
- return Promise.resolve(response);
2525
+ return response;
2578
2526
  };
2579
2527
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2580
2528
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2589,10 +2537,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2589
2537
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2590
2538
  default:
2591
2539
  const parsedBody = parsedOutput.body;
2592
- (0, smithy_client_1.throwDefaultError)({
2540
+ return throwDefaultError({
2593
2541
  output,
2594
2542
  parsedBody,
2595
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2596
2543
  errorCode,
2597
2544
  });
2598
2545
  }
@@ -2603,12 +2550,12 @@ const de_StartFleetCommand = async (output, context) => {
2603
2550
  }
2604
2551
  const data = await parseBody(output.body, context);
2605
2552
  let contents = {};
2606
- contents = de_StartFleetResult(data, context);
2553
+ contents = (0, smithy_client_1._json)(data);
2607
2554
  const response = {
2608
2555
  $metadata: deserializeMetadata(output),
2609
2556
  ...contents,
2610
2557
  };
2611
- return Promise.resolve(response);
2558
+ return response;
2612
2559
  };
2613
2560
  exports.de_StartFleetCommand = de_StartFleetCommand;
2614
2561
  const de_StartFleetCommandError = async (output, context) => {
@@ -2644,10 +2591,9 @@ const de_StartFleetCommandError = async (output, context) => {
2644
2591
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2645
2592
  default:
2646
2593
  const parsedBody = parsedOutput.body;
2647
- (0, smithy_client_1.throwDefaultError)({
2594
+ return throwDefaultError({
2648
2595
  output,
2649
2596
  parsedBody,
2650
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2651
2597
  errorCode,
2652
2598
  });
2653
2599
  }
@@ -2663,7 +2609,7 @@ const de_StartImageBuilderCommand = async (output, context) => {
2663
2609
  $metadata: deserializeMetadata(output),
2664
2610
  ...contents,
2665
2611
  };
2666
- return Promise.resolve(response);
2612
+ return response;
2667
2613
  };
2668
2614
  exports.de_StartImageBuilderCommand = de_StartImageBuilderCommand;
2669
2615
  const de_StartImageBuilderCommandError = async (output, context) => {
@@ -2690,10 +2636,9 @@ const de_StartImageBuilderCommandError = async (output, context) => {
2690
2636
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2691
2637
  default:
2692
2638
  const parsedBody = parsedOutput.body;
2693
- (0, smithy_client_1.throwDefaultError)({
2639
+ return throwDefaultError({
2694
2640
  output,
2695
2641
  parsedBody,
2696
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2697
2642
  errorCode,
2698
2643
  });
2699
2644
  }
@@ -2704,12 +2649,12 @@ const de_StopFleetCommand = async (output, context) => {
2704
2649
  }
2705
2650
  const data = await parseBody(output.body, context);
2706
2651
  let contents = {};
2707
- contents = de_StopFleetResult(data, context);
2652
+ contents = (0, smithy_client_1._json)(data);
2708
2653
  const response = {
2709
2654
  $metadata: deserializeMetadata(output),
2710
2655
  ...contents,
2711
2656
  };
2712
- return Promise.resolve(response);
2657
+ return response;
2713
2658
  };
2714
2659
  exports.de_StopFleetCommand = de_StopFleetCommand;
2715
2660
  const de_StopFleetCommandError = async (output, context) => {
@@ -2727,10 +2672,9 @@ const de_StopFleetCommandError = async (output, context) => {
2727
2672
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2728
2673
  default:
2729
2674
  const parsedBody = parsedOutput.body;
2730
- (0, smithy_client_1.throwDefaultError)({
2675
+ return throwDefaultError({
2731
2676
  output,
2732
2677
  parsedBody,
2733
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2734
2678
  errorCode,
2735
2679
  });
2736
2680
  }
@@ -2746,7 +2690,7 @@ const de_StopImageBuilderCommand = async (output, context) => {
2746
2690
  $metadata: deserializeMetadata(output),
2747
2691
  ...contents,
2748
2692
  };
2749
- return Promise.resolve(response);
2693
+ return response;
2750
2694
  };
2751
2695
  exports.de_StopImageBuilderCommand = de_StopImageBuilderCommand;
2752
2696
  const de_StopImageBuilderCommandError = async (output, context) => {
@@ -2767,10 +2711,9 @@ const de_StopImageBuilderCommandError = async (output, context) => {
2767
2711
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2768
2712
  default:
2769
2713
  const parsedBody = parsedOutput.body;
2770
- (0, smithy_client_1.throwDefaultError)({
2714
+ return throwDefaultError({
2771
2715
  output,
2772
2716
  parsedBody,
2773
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2774
2717
  errorCode,
2775
2718
  });
2776
2719
  }
@@ -2781,12 +2724,12 @@ const de_TagResourceCommand = async (output, context) => {
2781
2724
  }
2782
2725
  const data = await parseBody(output.body, context);
2783
2726
  let contents = {};
2784
- contents = de_TagResourceResponse(data, context);
2727
+ contents = (0, smithy_client_1._json)(data);
2785
2728
  const response = {
2786
2729
  $metadata: deserializeMetadata(output),
2787
2730
  ...contents,
2788
2731
  };
2789
- return Promise.resolve(response);
2732
+ return response;
2790
2733
  };
2791
2734
  exports.de_TagResourceCommand = de_TagResourceCommand;
2792
2735
  const de_TagResourceCommandError = async (output, context) => {
@@ -2807,10 +2750,9 @@ const de_TagResourceCommandError = async (output, context) => {
2807
2750
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2808
2751
  default:
2809
2752
  const parsedBody = parsedOutput.body;
2810
- (0, smithy_client_1.throwDefaultError)({
2753
+ return throwDefaultError({
2811
2754
  output,
2812
2755
  parsedBody,
2813
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2814
2756
  errorCode,
2815
2757
  });
2816
2758
  }
@@ -2821,12 +2763,12 @@ const de_UntagResourceCommand = async (output, context) => {
2821
2763
  }
2822
2764
  const data = await parseBody(output.body, context);
2823
2765
  let contents = {};
2824
- contents = de_UntagResourceResponse(data, context);
2766
+ contents = (0, smithy_client_1._json)(data);
2825
2767
  const response = {
2826
2768
  $metadata: deserializeMetadata(output),
2827
2769
  ...contents,
2828
2770
  };
2829
- return Promise.resolve(response);
2771
+ return response;
2830
2772
  };
2831
2773
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
2832
2774
  const de_UntagResourceCommandError = async (output, context) => {
@@ -2841,10 +2783,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2841
2783
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2842
2784
  default:
2843
2785
  const parsedBody = parsedOutput.body;
2844
- (0, smithy_client_1.throwDefaultError)({
2786
+ return throwDefaultError({
2845
2787
  output,
2846
2788
  parsedBody,
2847
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2848
2789
  errorCode,
2849
2790
  });
2850
2791
  }
@@ -2860,7 +2801,7 @@ const de_UpdateApplicationCommand = async (output, context) => {
2860
2801
  $metadata: deserializeMetadata(output),
2861
2802
  ...contents,
2862
2803
  };
2863
- return Promise.resolve(response);
2804
+ return response;
2864
2805
  };
2865
2806
  exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
2866
2807
  const de_UpdateApplicationCommandError = async (output, context) => {
@@ -2881,10 +2822,9 @@ const de_UpdateApplicationCommandError = async (output, context) => {
2881
2822
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2882
2823
  default:
2883
2824
  const parsedBody = parsedOutput.body;
2884
- (0, smithy_client_1.throwDefaultError)({
2825
+ return throwDefaultError({
2885
2826
  output,
2886
2827
  parsedBody,
2887
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2888
2828
  errorCode,
2889
2829
  });
2890
2830
  }
@@ -2900,7 +2840,7 @@ const de_UpdateDirectoryConfigCommand = async (output, context) => {
2900
2840
  $metadata: deserializeMetadata(output),
2901
2841
  ...contents,
2902
2842
  };
2903
- return Promise.resolve(response);
2843
+ return response;
2904
2844
  };
2905
2845
  exports.de_UpdateDirectoryConfigCommand = de_UpdateDirectoryConfigCommand;
2906
2846
  const de_UpdateDirectoryConfigCommandError = async (output, context) => {
@@ -2927,10 +2867,9 @@ const de_UpdateDirectoryConfigCommandError = async (output, context) => {
2927
2867
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2928
2868
  default:
2929
2869
  const parsedBody = parsedOutput.body;
2930
- (0, smithy_client_1.throwDefaultError)({
2870
+ return throwDefaultError({
2931
2871
  output,
2932
2872
  parsedBody,
2933
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2934
2873
  errorCode,
2935
2874
  });
2936
2875
  }
@@ -2946,7 +2885,7 @@ const de_UpdateEntitlementCommand = async (output, context) => {
2946
2885
  $metadata: deserializeMetadata(output),
2947
2886
  ...contents,
2948
2887
  };
2949
- return Promise.resolve(response);
2888
+ return response;
2950
2889
  };
2951
2890
  exports.de_UpdateEntitlementCommand = de_UpdateEntitlementCommand;
2952
2891
  const de_UpdateEntitlementCommandError = async (output, context) => {
@@ -2970,10 +2909,9 @@ const de_UpdateEntitlementCommandError = async (output, context) => {
2970
2909
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2971
2910
  default:
2972
2911
  const parsedBody = parsedOutput.body;
2973
- (0, smithy_client_1.throwDefaultError)({
2912
+ return throwDefaultError({
2974
2913
  output,
2975
2914
  parsedBody,
2976
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
2977
2915
  errorCode,
2978
2916
  });
2979
2917
  }
@@ -2989,7 +2927,7 @@ const de_UpdateFleetCommand = async (output, context) => {
2989
2927
  $metadata: deserializeMetadata(output),
2990
2928
  ...contents,
2991
2929
  };
2992
- return Promise.resolve(response);
2930
+ return response;
2993
2931
  };
2994
2932
  exports.de_UpdateFleetCommand = de_UpdateFleetCommand;
2995
2933
  const de_UpdateFleetCommandError = async (output, context) => {
@@ -3034,10 +2972,9 @@ const de_UpdateFleetCommandError = async (output, context) => {
3034
2972
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3035
2973
  default:
3036
2974
  const parsedBody = parsedOutput.body;
3037
- (0, smithy_client_1.throwDefaultError)({
2975
+ return throwDefaultError({
3038
2976
  output,
3039
2977
  parsedBody,
3040
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
3041
2978
  errorCode,
3042
2979
  });
3043
2980
  }
@@ -3048,12 +2985,12 @@ const de_UpdateImagePermissionsCommand = async (output, context) => {
3048
2985
  }
3049
2986
  const data = await parseBody(output.body, context);
3050
2987
  let contents = {};
3051
- contents = de_UpdateImagePermissionsResult(data, context);
2988
+ contents = (0, smithy_client_1._json)(data);
3052
2989
  const response = {
3053
2990
  $metadata: deserializeMetadata(output),
3054
2991
  ...contents,
3055
2992
  };
3056
- return Promise.resolve(response);
2993
+ return response;
3057
2994
  };
3058
2995
  exports.de_UpdateImagePermissionsCommand = de_UpdateImagePermissionsCommand;
3059
2996
  const de_UpdateImagePermissionsCommandError = async (output, context) => {
@@ -3074,10 +3011,9 @@ const de_UpdateImagePermissionsCommandError = async (output, context) => {
3074
3011
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3075
3012
  default:
3076
3013
  const parsedBody = parsedOutput.body;
3077
- (0, smithy_client_1.throwDefaultError)({
3014
+ return throwDefaultError({
3078
3015
  output,
3079
3016
  parsedBody,
3080
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
3081
3017
  errorCode,
3082
3018
  });
3083
3019
  }
@@ -3093,7 +3029,7 @@ const de_UpdateStackCommand = async (output, context) => {
3093
3029
  $metadata: deserializeMetadata(output),
3094
3030
  ...contents,
3095
3031
  };
3096
- return Promise.resolve(response);
3032
+ return response;
3097
3033
  };
3098
3034
  exports.de_UpdateStackCommand = de_UpdateStackCommand;
3099
3035
  const de_UpdateStackCommandError = async (output, context) => {
@@ -3132,17 +3068,16 @@ const de_UpdateStackCommandError = async (output, context) => {
3132
3068
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3133
3069
  default:
3134
3070
  const parsedBody = parsedOutput.body;
3135
- (0, smithy_client_1.throwDefaultError)({
3071
+ return throwDefaultError({
3136
3072
  output,
3137
3073
  parsedBody,
3138
- exceptionCtor: AppStreamServiceException_1.AppStreamServiceException,
3139
3074
  errorCode,
3140
3075
  });
3141
3076
  }
3142
3077
  };
3143
3078
  const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
3144
3079
  const body = parsedOutput.body;
3145
- const deserialized = de_ConcurrentModificationException(body, context);
3080
+ const deserialized = (0, smithy_client_1._json)(body);
3146
3081
  const exception = new models_0_1.ConcurrentModificationException({
3147
3082
  $metadata: deserializeMetadata(parsedOutput),
3148
3083
  ...deserialized,
@@ -3151,7 +3086,7 @@ const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
3151
3086
  };
3152
3087
  const de_EntitlementAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3153
3088
  const body = parsedOutput.body;
3154
- const deserialized = de_EntitlementAlreadyExistsException(body, context);
3089
+ const deserialized = (0, smithy_client_1._json)(body);
3155
3090
  const exception = new models_0_1.EntitlementAlreadyExistsException({
3156
3091
  $metadata: deserializeMetadata(parsedOutput),
3157
3092
  ...deserialized,
@@ -3160,7 +3095,7 @@ const de_EntitlementAlreadyExistsExceptionRes = async (parsedOutput, context) =>
3160
3095
  };
3161
3096
  const de_EntitlementNotFoundExceptionRes = async (parsedOutput, context) => {
3162
3097
  const body = parsedOutput.body;
3163
- const deserialized = de_EntitlementNotFoundException(body, context);
3098
+ const deserialized = (0, smithy_client_1._json)(body);
3164
3099
  const exception = new models_0_1.EntitlementNotFoundException({
3165
3100
  $metadata: deserializeMetadata(parsedOutput),
3166
3101
  ...deserialized,
@@ -3169,7 +3104,7 @@ const de_EntitlementNotFoundExceptionRes = async (parsedOutput, context) => {
3169
3104
  };
3170
3105
  const de_IncompatibleImageExceptionRes = async (parsedOutput, context) => {
3171
3106
  const body = parsedOutput.body;
3172
- const deserialized = de_IncompatibleImageException(body, context);
3107
+ const deserialized = (0, smithy_client_1._json)(body);
3173
3108
  const exception = new models_0_1.IncompatibleImageException({
3174
3109
  $metadata: deserializeMetadata(parsedOutput),
3175
3110
  ...deserialized,
@@ -3178,7 +3113,7 @@ const de_IncompatibleImageExceptionRes = async (parsedOutput, context) => {
3178
3113
  };
3179
3114
  const de_InvalidAccountStatusExceptionRes = async (parsedOutput, context) => {
3180
3115
  const body = parsedOutput.body;
3181
- const deserialized = de_InvalidAccountStatusException(body, context);
3116
+ const deserialized = (0, smithy_client_1._json)(body);
3182
3117
  const exception = new models_0_1.InvalidAccountStatusException({
3183
3118
  $metadata: deserializeMetadata(parsedOutput),
3184
3119
  ...deserialized,
@@ -3187,7 +3122,7 @@ const de_InvalidAccountStatusExceptionRes = async (parsedOutput, context) => {
3187
3122
  };
3188
3123
  const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
3189
3124
  const body = parsedOutput.body;
3190
- const deserialized = de_InvalidParameterCombinationException(body, context);
3125
+ const deserialized = (0, smithy_client_1._json)(body);
3191
3126
  const exception = new models_0_1.InvalidParameterCombinationException({
3192
3127
  $metadata: deserializeMetadata(parsedOutput),
3193
3128
  ...deserialized,
@@ -3196,7 +3131,7 @@ const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context)
3196
3131
  };
3197
3132
  const de_InvalidRoleExceptionRes = async (parsedOutput, context) => {
3198
3133
  const body = parsedOutput.body;
3199
- const deserialized = de_InvalidRoleException(body, context);
3134
+ const deserialized = (0, smithy_client_1._json)(body);
3200
3135
  const exception = new models_0_1.InvalidRoleException({
3201
3136
  $metadata: deserializeMetadata(parsedOutput),
3202
3137
  ...deserialized,
@@ -3205,7 +3140,7 @@ const de_InvalidRoleExceptionRes = async (parsedOutput, context) => {
3205
3140
  };
3206
3141
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3207
3142
  const body = parsedOutput.body;
3208
- const deserialized = de_LimitExceededException(body, context);
3143
+ const deserialized = (0, smithy_client_1._json)(body);
3209
3144
  const exception = new models_0_1.LimitExceededException({
3210
3145
  $metadata: deserializeMetadata(parsedOutput),
3211
3146
  ...deserialized,
@@ -3214,7 +3149,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
3214
3149
  };
3215
3150
  const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
3216
3151
  const body = parsedOutput.body;
3217
- const deserialized = de_OperationNotPermittedException(body, context);
3152
+ const deserialized = (0, smithy_client_1._json)(body);
3218
3153
  const exception = new models_0_1.OperationNotPermittedException({
3219
3154
  $metadata: deserializeMetadata(parsedOutput),
3220
3155
  ...deserialized,
@@ -3223,7 +3158,7 @@ const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
3223
3158
  };
3224
3159
  const de_RequestLimitExceededExceptionRes = async (parsedOutput, context) => {
3225
3160
  const body = parsedOutput.body;
3226
- const deserialized = de_RequestLimitExceededException(body, context);
3161
+ const deserialized = (0, smithy_client_1._json)(body);
3227
3162
  const exception = new models_0_1.RequestLimitExceededException({
3228
3163
  $metadata: deserializeMetadata(parsedOutput),
3229
3164
  ...deserialized,
@@ -3232,7 +3167,7 @@ const de_RequestLimitExceededExceptionRes = async (parsedOutput, context) => {
3232
3167
  };
3233
3168
  const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3234
3169
  const body = parsedOutput.body;
3235
- const deserialized = de_ResourceAlreadyExistsException(body, context);
3170
+ const deserialized = (0, smithy_client_1._json)(body);
3236
3171
  const exception = new models_0_1.ResourceAlreadyExistsException({
3237
3172
  $metadata: deserializeMetadata(parsedOutput),
3238
3173
  ...deserialized,
@@ -3241,7 +3176,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3241
3176
  };
3242
3177
  const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
3243
3178
  const body = parsedOutput.body;
3244
- const deserialized = de_ResourceInUseException(body, context);
3179
+ const deserialized = (0, smithy_client_1._json)(body);
3245
3180
  const exception = new models_0_1.ResourceInUseException({
3246
3181
  $metadata: deserializeMetadata(parsedOutput),
3247
3182
  ...deserialized,
@@ -3250,7 +3185,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
3250
3185
  };
3251
3186
  const de_ResourceNotAvailableExceptionRes = async (parsedOutput, context) => {
3252
3187
  const body = parsedOutput.body;
3253
- const deserialized = de_ResourceNotAvailableException(body, context);
3188
+ const deserialized = (0, smithy_client_1._json)(body);
3254
3189
  const exception = new models_0_1.ResourceNotAvailableException({
3255
3190
  $metadata: deserializeMetadata(parsedOutput),
3256
3191
  ...deserialized,
@@ -3259,1966 +3194,453 @@ const de_ResourceNotAvailableExceptionRes = async (parsedOutput, context) => {
3259
3194
  };
3260
3195
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3261
3196
  const body = parsedOutput.body;
3262
- const deserialized = de_ResourceNotFoundException(body, context);
3197
+ const deserialized = (0, smithy_client_1._json)(body);
3263
3198
  const exception = new models_0_1.ResourceNotFoundException({
3264
3199
  $metadata: deserializeMetadata(parsedOutput),
3265
3200
  ...deserialized,
3266
3201
  });
3267
3202
  return (0, smithy_client_1.decorateServiceException)(exception, body);
3268
3203
  };
3269
- const se_AccessEndpoint = (input, context) => {
3270
- return {
3271
- ...(input.EndpointType != null && { EndpointType: input.EndpointType }),
3272
- ...(input.VpceId != null && { VpceId: input.VpceId }),
3273
- };
3274
- };
3275
- const se_AccessEndpointList = (input, context) => {
3276
- return input
3277
- .filter((e) => e != null)
3278
- .map((entry) => {
3279
- return se_AccessEndpoint(entry, context);
3280
- });
3281
- };
3282
- const se_ApplicationAttributes = (input, context) => {
3283
- return input
3284
- .filter((e) => e != null)
3285
- .map((entry) => {
3286
- return entry;
3287
- });
3288
- };
3289
- const se_ApplicationSettings = (input, context) => {
3290
- return {
3291
- ...(input.Enabled != null && { Enabled: input.Enabled }),
3292
- ...(input.SettingsGroup != null && { SettingsGroup: input.SettingsGroup }),
3293
- };
3294
- };
3295
- const se_ArnList = (input, context) => {
3296
- return input
3297
- .filter((e) => e != null)
3298
- .map((entry) => {
3299
- return entry;
3300
- });
3301
- };
3302
- const se_AssociateApplicationFleetRequest = (input, context) => {
3303
- return {
3304
- ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
3305
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3306
- };
3307
- };
3308
- const se_AssociateApplicationToEntitlementRequest = (input, context) => {
3309
- return {
3310
- ...(input.ApplicationIdentifier != null && { ApplicationIdentifier: input.ApplicationIdentifier }),
3311
- ...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
3312
- ...(input.StackName != null && { StackName: input.StackName }),
3313
- };
3314
- };
3315
- const se_AssociateFleetRequest = (input, context) => {
3316
- return {
3317
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3318
- ...(input.StackName != null && { StackName: input.StackName }),
3319
- };
3320
- };
3321
- const se_AwsAccountIdList = (input, context) => {
3322
- return input
3323
- .filter((e) => e != null)
3324
- .map((entry) => {
3325
- return entry;
3326
- });
3327
- };
3328
- const se_BatchAssociateUserStackRequest = (input, context) => {
3329
- return {
3330
- ...(input.UserStackAssociations != null && {
3331
- UserStackAssociations: se_UserStackAssociationList(input.UserStackAssociations, context),
3332
- }),
3333
- };
3334
- };
3335
- const se_BatchDisassociateUserStackRequest = (input, context) => {
3336
- return {
3337
- ...(input.UserStackAssociations != null && {
3338
- UserStackAssociations: se_UserStackAssociationList(input.UserStackAssociations, context),
3339
- }),
3340
- };
3341
- };
3342
- const se_CertificateBasedAuthProperties = (input, context) => {
3343
- return {
3344
- ...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
3345
- ...(input.Status != null && { Status: input.Status }),
3346
- };
3347
- };
3348
- const se_ComputeCapacity = (input, context) => {
3349
- return {
3350
- ...(input.DesiredInstances != null && { DesiredInstances: input.DesiredInstances }),
3351
- };
3352
- };
3353
- const se_CopyImageRequest = (input, context) => {
3354
- return {
3355
- ...(input.DestinationImageDescription != null && {
3356
- DestinationImageDescription: input.DestinationImageDescription,
3357
- }),
3358
- ...(input.DestinationImageName != null && { DestinationImageName: input.DestinationImageName }),
3359
- ...(input.DestinationRegion != null && { DestinationRegion: input.DestinationRegion }),
3360
- ...(input.SourceImageName != null && { SourceImageName: input.SourceImageName }),
3361
- };
3362
- };
3363
- const se_CreateAppBlockRequest = (input, context) => {
3364
- return {
3365
- ...(input.Description != null && { Description: input.Description }),
3366
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3367
- ...(input.Name != null && { Name: input.Name }),
3368
- ...(input.SetupScriptDetails != null && {
3369
- SetupScriptDetails: se_ScriptDetails(input.SetupScriptDetails, context),
3370
- }),
3371
- ...(input.SourceS3Location != null && { SourceS3Location: se_S3Location(input.SourceS3Location, context) }),
3372
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3373
- };
3374
- };
3375
- const se_CreateApplicationRequest = (input, context) => {
3376
- return {
3377
- ...(input.AppBlockArn != null && { AppBlockArn: input.AppBlockArn }),
3378
- ...(input.Description != null && { Description: input.Description }),
3379
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3380
- ...(input.IconS3Location != null && { IconS3Location: se_S3Location(input.IconS3Location, context) }),
3381
- ...(input.InstanceFamilies != null && { InstanceFamilies: se_StringList(input.InstanceFamilies, context) }),
3382
- ...(input.LaunchParameters != null && { LaunchParameters: input.LaunchParameters }),
3383
- ...(input.LaunchPath != null && { LaunchPath: input.LaunchPath }),
3384
- ...(input.Name != null && { Name: input.Name }),
3385
- ...(input.Platforms != null && { Platforms: se_Platforms(input.Platforms, context) }),
3386
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3387
- ...(input.WorkingDirectory != null && { WorkingDirectory: input.WorkingDirectory }),
3388
- };
3389
- };
3390
- const se_CreateDirectoryConfigRequest = (input, context) => {
3391
- return {
3392
- ...(input.CertificateBasedAuthProperties != null && {
3393
- CertificateBasedAuthProperties: se_CertificateBasedAuthProperties(input.CertificateBasedAuthProperties, context),
3394
- }),
3395
- ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
3396
- ...(input.OrganizationalUnitDistinguishedNames != null && {
3397
- OrganizationalUnitDistinguishedNames: se_OrganizationalUnitDistinguishedNamesList(input.OrganizationalUnitDistinguishedNames, context),
3398
- }),
3399
- ...(input.ServiceAccountCredentials != null && {
3400
- ServiceAccountCredentials: se_ServiceAccountCredentials(input.ServiceAccountCredentials, context),
3401
- }),
3402
- };
3403
- };
3404
- const se_CreateEntitlementRequest = (input, context) => {
3405
- return {
3406
- ...(input.AppVisibility != null && { AppVisibility: input.AppVisibility }),
3407
- ...(input.Attributes != null && { Attributes: se_EntitlementAttributeList(input.Attributes, context) }),
3408
- ...(input.Description != null && { Description: input.Description }),
3409
- ...(input.Name != null && { Name: input.Name }),
3410
- ...(input.StackName != null && { StackName: input.StackName }),
3411
- };
3412
- };
3413
- const se_CreateFleetRequest = (input, context) => {
3414
- return {
3415
- ...(input.ComputeCapacity != null && { ComputeCapacity: se_ComputeCapacity(input.ComputeCapacity, context) }),
3416
- ...(input.Description != null && { Description: input.Description }),
3417
- ...(input.DisconnectTimeoutInSeconds != null && { DisconnectTimeoutInSeconds: input.DisconnectTimeoutInSeconds }),
3418
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3419
- ...(input.DomainJoinInfo != null && { DomainJoinInfo: se_DomainJoinInfo(input.DomainJoinInfo, context) }),
3420
- ...(input.EnableDefaultInternetAccess != null && {
3421
- EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
3422
- }),
3423
- ...(input.FleetType != null && { FleetType: input.FleetType }),
3424
- ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
3425
- ...(input.IdleDisconnectTimeoutInSeconds != null && {
3426
- IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
3427
- }),
3428
- ...(input.ImageArn != null && { ImageArn: input.ImageArn }),
3429
- ...(input.ImageName != null && { ImageName: input.ImageName }),
3430
- ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
3431
- ...(input.MaxConcurrentSessions != null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
3432
- ...(input.MaxUserDurationInSeconds != null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
3433
- ...(input.Name != null && { Name: input.Name }),
3434
- ...(input.Platform != null && { Platform: input.Platform }),
3435
- ...(input.SessionScriptS3Location != null && {
3436
- SessionScriptS3Location: se_S3Location(input.SessionScriptS3Location, context),
3437
- }),
3438
- ...(input.StreamView != null && { StreamView: input.StreamView }),
3439
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3440
- ...(input.UsbDeviceFilterStrings != null && {
3441
- UsbDeviceFilterStrings: se_UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
3442
- }),
3443
- ...(input.VpcConfig != null && { VpcConfig: se_VpcConfig(input.VpcConfig, context) }),
3444
- };
3445
- };
3446
- const se_CreateImageBuilderRequest = (input, context) => {
3447
- return {
3448
- ...(input.AccessEndpoints != null && { AccessEndpoints: se_AccessEndpointList(input.AccessEndpoints, context) }),
3449
- ...(input.AppstreamAgentVersion != null && { AppstreamAgentVersion: input.AppstreamAgentVersion }),
3450
- ...(input.Description != null && { Description: input.Description }),
3451
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3452
- ...(input.DomainJoinInfo != null && { DomainJoinInfo: se_DomainJoinInfo(input.DomainJoinInfo, context) }),
3453
- ...(input.EnableDefaultInternetAccess != null && {
3454
- EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
3455
- }),
3456
- ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
3457
- ...(input.ImageArn != null && { ImageArn: input.ImageArn }),
3458
- ...(input.ImageName != null && { ImageName: input.ImageName }),
3459
- ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
3460
- ...(input.Name != null && { Name: input.Name }),
3461
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3462
- ...(input.VpcConfig != null && { VpcConfig: se_VpcConfig(input.VpcConfig, context) }),
3463
- };
3464
- };
3465
- const se_CreateImageBuilderStreamingURLRequest = (input, context) => {
3466
- return {
3467
- ...(input.Name != null && { Name: input.Name }),
3468
- ...(input.Validity != null && { Validity: input.Validity }),
3469
- };
3470
- };
3471
- const se_CreateStackRequest = (input, context) => {
3472
- return {
3473
- ...(input.AccessEndpoints != null && { AccessEndpoints: se_AccessEndpointList(input.AccessEndpoints, context) }),
3474
- ...(input.ApplicationSettings != null && {
3475
- ApplicationSettings: se_ApplicationSettings(input.ApplicationSettings, context),
3476
- }),
3477
- ...(input.Description != null && { Description: input.Description }),
3478
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3479
- ...(input.EmbedHostDomains != null && { EmbedHostDomains: se_EmbedHostDomains(input.EmbedHostDomains, context) }),
3480
- ...(input.FeedbackURL != null && { FeedbackURL: input.FeedbackURL }),
3481
- ...(input.Name != null && { Name: input.Name }),
3482
- ...(input.RedirectURL != null && { RedirectURL: input.RedirectURL }),
3483
- ...(input.StorageConnectors != null && {
3484
- StorageConnectors: se_StorageConnectorList(input.StorageConnectors, context),
3485
- }),
3486
- ...(input.StreamingExperienceSettings != null && {
3487
- StreamingExperienceSettings: se_StreamingExperienceSettings(input.StreamingExperienceSettings, context),
3488
- }),
3489
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3490
- ...(input.UserSettings != null && { UserSettings: se_UserSettingList(input.UserSettings, context) }),
3491
- };
3492
- };
3493
- const se_CreateStreamingURLRequest = (input, context) => {
3494
- return {
3495
- ...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
3496
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3497
- ...(input.SessionContext != null && { SessionContext: input.SessionContext }),
3498
- ...(input.StackName != null && { StackName: input.StackName }),
3499
- ...(input.UserId != null && { UserId: input.UserId }),
3500
- ...(input.Validity != null && { Validity: input.Validity }),
3501
- };
3502
- };
3503
- const se_CreateUpdatedImageRequest = (input, context) => {
3504
- return {
3505
- ...(input.dryRun != null && { dryRun: input.dryRun }),
3506
- ...(input.existingImageName != null && { existingImageName: input.existingImageName }),
3507
- ...(input.newImageDescription != null && { newImageDescription: input.newImageDescription }),
3508
- ...(input.newImageDisplayName != null && { newImageDisplayName: input.newImageDisplayName }),
3509
- ...(input.newImageName != null && { newImageName: input.newImageName }),
3510
- ...(input.newImageTags != null && { newImageTags: se_Tags(input.newImageTags, context) }),
3511
- };
3512
- };
3513
- const se_CreateUsageReportSubscriptionRequest = (input, context) => {
3514
- return {};
3515
- };
3516
- const se_CreateUserRequest = (input, context) => {
3517
- return {
3518
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3519
- ...(input.FirstName != null && { FirstName: input.FirstName }),
3520
- ...(input.LastName != null && { LastName: input.LastName }),
3521
- ...(input.MessageAction != null && { MessageAction: input.MessageAction }),
3522
- ...(input.UserName != null && { UserName: input.UserName }),
3523
- };
3524
- };
3525
- const se_DeleteAppBlockRequest = (input, context) => {
3526
- return {
3527
- ...(input.Name != null && { Name: input.Name }),
3528
- };
3529
- };
3530
- const se_DeleteApplicationRequest = (input, context) => {
3531
- return {
3532
- ...(input.Name != null && { Name: input.Name }),
3533
- };
3534
- };
3535
- const se_DeleteDirectoryConfigRequest = (input, context) => {
3536
- return {
3537
- ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
3538
- };
3539
- };
3540
- const se_DeleteEntitlementRequest = (input, context) => {
3541
- return {
3542
- ...(input.Name != null && { Name: input.Name }),
3543
- ...(input.StackName != null && { StackName: input.StackName }),
3544
- };
3545
- };
3546
- const se_DeleteFleetRequest = (input, context) => {
3547
- return {
3548
- ...(input.Name != null && { Name: input.Name }),
3549
- };
3550
- };
3551
- const se_DeleteImageBuilderRequest = (input, context) => {
3552
- return {
3553
- ...(input.Name != null && { Name: input.Name }),
3554
- };
3555
- };
3556
- const se_DeleteImagePermissionsRequest = (input, context) => {
3557
- return {
3558
- ...(input.Name != null && { Name: input.Name }),
3559
- ...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
3560
- };
3561
- };
3562
- const se_DeleteImageRequest = (input, context) => {
3563
- return {
3564
- ...(input.Name != null && { Name: input.Name }),
3565
- };
3566
- };
3567
- const se_DeleteStackRequest = (input, context) => {
3568
- return {
3569
- ...(input.Name != null && { Name: input.Name }),
3570
- };
3571
- };
3572
- const se_DeleteUsageReportSubscriptionRequest = (input, context) => {
3573
- return {};
3574
- };
3575
- const se_DeleteUserRequest = (input, context) => {
3576
- return {
3577
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3578
- ...(input.UserName != null && { UserName: input.UserName }),
3579
- };
3580
- };
3581
- const se_DescribeAppBlocksRequest = (input, context) => {
3582
- return {
3583
- ...(input.Arns != null && { Arns: se_ArnList(input.Arns, context) }),
3584
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3585
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3586
- };
3587
- };
3588
- const se_DescribeApplicationFleetAssociationsRequest = (input, context) => {
3589
- return {
3590
- ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
3591
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3592
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3593
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3594
- };
3595
- };
3596
- const se_DescribeApplicationsRequest = (input, context) => {
3597
- return {
3598
- ...(input.Arns != null && { Arns: se_ArnList(input.Arns, context) }),
3599
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3600
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3601
- };
3602
- };
3603
- const se_DescribeDirectoryConfigsRequest = (input, context) => {
3604
- return {
3605
- ...(input.DirectoryNames != null && { DirectoryNames: se_DirectoryNameList(input.DirectoryNames, context) }),
3606
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3607
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3608
- };
3609
- };
3610
- const se_DescribeEntitlementsRequest = (input, context) => {
3611
- return {
3612
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3613
- ...(input.Name != null && { Name: input.Name }),
3614
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3615
- ...(input.StackName != null && { StackName: input.StackName }),
3616
- };
3617
- };
3618
- const se_DescribeFleetsRequest = (input, context) => {
3619
- return {
3620
- ...(input.Names != null && { Names: se_StringList(input.Names, context) }),
3621
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3622
- };
3623
- };
3624
- const se_DescribeImageBuildersRequest = (input, context) => {
3625
- return {
3626
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3627
- ...(input.Names != null && { Names: se_StringList(input.Names, context) }),
3628
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3629
- };
3630
- };
3631
- const se_DescribeImagePermissionsRequest = (input, context) => {
3632
- return {
3633
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3634
- ...(input.Name != null && { Name: input.Name }),
3635
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3636
- ...(input.SharedAwsAccountIds != null && {
3637
- SharedAwsAccountIds: se_AwsAccountIdList(input.SharedAwsAccountIds, context),
3638
- }),
3639
- };
3640
- };
3641
- const se_DescribeImagesRequest = (input, context) => {
3642
- return {
3643
- ...(input.Arns != null && { Arns: se_ArnList(input.Arns, context) }),
3644
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3645
- ...(input.Names != null && { Names: se_StringList(input.Names, context) }),
3646
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3647
- ...(input.Type != null && { Type: input.Type }),
3648
- };
3649
- };
3650
- const se_DescribeSessionsRequest = (input, context) => {
3651
- return {
3652
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3653
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3654
- ...(input.Limit != null && { Limit: input.Limit }),
3655
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3656
- ...(input.StackName != null && { StackName: input.StackName }),
3657
- ...(input.UserId != null && { UserId: input.UserId }),
3658
- };
3659
- };
3660
- const se_DescribeStacksRequest = (input, context) => {
3661
- return {
3662
- ...(input.Names != null && { Names: se_StringList(input.Names, context) }),
3663
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3664
- };
3665
- };
3666
- const se_DescribeUsageReportSubscriptionsRequest = (input, context) => {
3667
- return {
3668
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3669
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3670
- };
3671
- };
3672
- const se_DescribeUsersRequest = (input, context) => {
3673
- return {
3674
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3675
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3676
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3677
- };
3678
- };
3679
- const se_DescribeUserStackAssociationsRequest = (input, context) => {
3680
- return {
3681
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3682
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3683
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3684
- ...(input.StackName != null && { StackName: input.StackName }),
3685
- ...(input.UserName != null && { UserName: input.UserName }),
3686
- };
3687
- };
3688
- const se_DirectoryNameList = (input, context) => {
3689
- return input
3690
- .filter((e) => e != null)
3691
- .map((entry) => {
3692
- return entry;
3693
- });
3694
- };
3695
- const se_DisableUserRequest = (input, context) => {
3696
- return {
3697
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3698
- ...(input.UserName != null && { UserName: input.UserName }),
3699
- };
3700
- };
3701
- const se_DisassociateApplicationFleetRequest = (input, context) => {
3702
- return {
3703
- ...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
3704
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3705
- };
3706
- };
3707
- const se_DisassociateApplicationFromEntitlementRequest = (input, context) => {
3708
- return {
3709
- ...(input.ApplicationIdentifier != null && { ApplicationIdentifier: input.ApplicationIdentifier }),
3710
- ...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
3711
- ...(input.StackName != null && { StackName: input.StackName }),
3712
- };
3713
- };
3714
- const se_DisassociateFleetRequest = (input, context) => {
3715
- return {
3716
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3717
- ...(input.StackName != null && { StackName: input.StackName }),
3718
- };
3719
- };
3720
- const se_DomainJoinInfo = (input, context) => {
3721
- return {
3722
- ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
3723
- ...(input.OrganizationalUnitDistinguishedName != null && {
3724
- OrganizationalUnitDistinguishedName: input.OrganizationalUnitDistinguishedName,
3725
- }),
3726
- };
3727
- };
3728
- const se_DomainList = (input, context) => {
3729
- return input
3730
- .filter((e) => e != null)
3731
- .map((entry) => {
3732
- return entry;
3733
- });
3734
- };
3735
- const se_EmbedHostDomains = (input, context) => {
3736
- return input
3737
- .filter((e) => e != null)
3738
- .map((entry) => {
3739
- return entry;
3740
- });
3741
- };
3742
- const se_EnableUserRequest = (input, context) => {
3743
- return {
3744
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
3745
- ...(input.UserName != null && { UserName: input.UserName }),
3746
- };
3747
- };
3748
- const se_EntitlementAttribute = (input, context) => {
3749
- return {
3750
- ...(input.Name != null && { Name: input.Name }),
3751
- ...(input.Value != null && { Value: input.Value }),
3752
- };
3753
- };
3754
- const se_EntitlementAttributeList = (input, context) => {
3755
- return input
3756
- .filter((e) => e != null)
3757
- .map((entry) => {
3758
- return se_EntitlementAttribute(entry, context);
3759
- });
3760
- };
3761
- const se_ExpireSessionRequest = (input, context) => {
3762
- return {
3763
- ...(input.SessionId != null && { SessionId: input.SessionId }),
3764
- };
3765
- };
3766
- const se_FleetAttributes = (input, context) => {
3767
- return input
3768
- .filter((e) => e != null)
3769
- .map((entry) => {
3770
- return entry;
3771
- });
3772
- };
3773
- const se_ImagePermissions = (input, context) => {
3774
- return {
3775
- ...(input.allowFleet != null && { allowFleet: input.allowFleet }),
3776
- ...(input.allowImageBuilder != null && { allowImageBuilder: input.allowImageBuilder }),
3777
- };
3778
- };
3779
- const se_ListAssociatedFleetsRequest = (input, context) => {
3780
- return {
3781
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3782
- ...(input.StackName != null && { StackName: input.StackName }),
3783
- };
3784
- };
3785
- const se_ListAssociatedStacksRequest = (input, context) => {
3786
- return {
3787
- ...(input.FleetName != null && { FleetName: input.FleetName }),
3788
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3789
- };
3790
- };
3791
- const se_ListEntitledApplicationsRequest = (input, context) => {
3792
- return {
3793
- ...(input.EntitlementName != null && { EntitlementName: input.EntitlementName }),
3794
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3795
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3796
- ...(input.StackName != null && { StackName: input.StackName }),
3797
- };
3798
- };
3799
- const se_ListTagsForResourceRequest = (input, context) => {
3800
- return {
3801
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3802
- };
3803
- };
3804
- const se_OrganizationalUnitDistinguishedNamesList = (input, context) => {
3805
- return input
3806
- .filter((e) => e != null)
3807
- .map((entry) => {
3808
- return entry;
3809
- });
3810
- };
3811
- const se_Platforms = (input, context) => {
3812
- return input
3813
- .filter((e) => e != null)
3814
- .map((entry) => {
3815
- return entry;
3816
- });
3817
- };
3818
- const se_S3Location = (input, context) => {
3819
- return {
3820
- ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
3821
- ...(input.S3Key != null && { S3Key: input.S3Key }),
3822
- };
3823
- };
3824
- const se_ScriptDetails = (input, context) => {
3825
- return {
3826
- ...(input.ExecutableParameters != null && { ExecutableParameters: input.ExecutableParameters }),
3827
- ...(input.ExecutablePath != null && { ExecutablePath: input.ExecutablePath }),
3828
- ...(input.ScriptS3Location != null && { ScriptS3Location: se_S3Location(input.ScriptS3Location, context) }),
3829
- ...(input.TimeoutInSeconds != null && { TimeoutInSeconds: input.TimeoutInSeconds }),
3830
- };
3831
- };
3832
- const se_SecurityGroupIdList = (input, context) => {
3833
- return input
3834
- .filter((e) => e != null)
3835
- .map((entry) => {
3836
- return entry;
3837
- });
3838
- };
3839
- const se_ServiceAccountCredentials = (input, context) => {
3840
- return {
3841
- ...(input.AccountName != null && { AccountName: input.AccountName }),
3842
- ...(input.AccountPassword != null && { AccountPassword: input.AccountPassword }),
3843
- };
3844
- };
3845
- const se_StackAttributes = (input, context) => {
3846
- return input
3847
- .filter((e) => e != null)
3848
- .map((entry) => {
3849
- return entry;
3850
- });
3851
- };
3852
- const se_StartFleetRequest = (input, context) => {
3853
- return {
3854
- ...(input.Name != null && { Name: input.Name }),
3855
- };
3856
- };
3857
- const se_StartImageBuilderRequest = (input, context) => {
3858
- return {
3859
- ...(input.AppstreamAgentVersion != null && { AppstreamAgentVersion: input.AppstreamAgentVersion }),
3860
- ...(input.Name != null && { Name: input.Name }),
3861
- };
3862
- };
3863
- const se_StopFleetRequest = (input, context) => {
3864
- return {
3865
- ...(input.Name != null && { Name: input.Name }),
3866
- };
3867
- };
3868
- const se_StopImageBuilderRequest = (input, context) => {
3869
- return {
3870
- ...(input.Name != null && { Name: input.Name }),
3871
- };
3872
- };
3873
- const se_StorageConnector = (input, context) => {
3874
- return {
3875
- ...(input.ConnectorType != null && { ConnectorType: input.ConnectorType }),
3876
- ...(input.Domains != null && { Domains: se_DomainList(input.Domains, context) }),
3877
- ...(input.ResourceIdentifier != null && { ResourceIdentifier: input.ResourceIdentifier }),
3878
- };
3879
- };
3880
- const se_StorageConnectorList = (input, context) => {
3881
- return input
3882
- .filter((e) => e != null)
3883
- .map((entry) => {
3884
- return se_StorageConnector(entry, context);
3885
- });
3886
- };
3887
- const se_StreamingExperienceSettings = (input, context) => {
3888
- return {
3889
- ...(input.PreferredProtocol != null && { PreferredProtocol: input.PreferredProtocol }),
3890
- };
3891
- };
3892
- const se_StringList = (input, context) => {
3893
- return input
3894
- .filter((e) => e != null)
3895
- .map((entry) => {
3896
- return entry;
3897
- });
3898
- };
3899
- const se_SubnetIdList = (input, context) => {
3900
- return input
3901
- .filter((e) => e != null)
3902
- .map((entry) => {
3903
- return entry;
3904
- });
3905
- };
3906
- const se_TagKeyList = (input, context) => {
3907
- return input
3908
- .filter((e) => e != null)
3909
- .map((entry) => {
3910
- return entry;
3911
- });
3912
- };
3913
- const se_TagResourceRequest = (input, context) => {
3914
- return {
3915
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3916
- ...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
3917
- };
3918
- };
3919
- const se_Tags = (input, context) => {
3920
- return Object.entries(input).reduce((acc, [key, value]) => {
3921
- if (value === null) {
3922
- return acc;
3923
- }
3924
- acc[key] = value;
3925
- return acc;
3926
- }, {});
3927
- };
3928
- const se_UntagResourceRequest = (input, context) => {
3929
- return {
3930
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3931
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
3932
- };
3933
- };
3934
- const se_UpdateApplicationRequest = (input, context) => {
3935
- return {
3936
- ...(input.AppBlockArn != null && { AppBlockArn: input.AppBlockArn }),
3937
- ...(input.AttributesToDelete != null && {
3938
- AttributesToDelete: se_ApplicationAttributes(input.AttributesToDelete, context),
3939
- }),
3940
- ...(input.Description != null && { Description: input.Description }),
3941
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3942
- ...(input.IconS3Location != null && { IconS3Location: se_S3Location(input.IconS3Location, context) }),
3943
- ...(input.LaunchParameters != null && { LaunchParameters: input.LaunchParameters }),
3944
- ...(input.LaunchPath != null && { LaunchPath: input.LaunchPath }),
3945
- ...(input.Name != null && { Name: input.Name }),
3946
- ...(input.WorkingDirectory != null && { WorkingDirectory: input.WorkingDirectory }),
3947
- };
3948
- };
3949
- const se_UpdateDirectoryConfigRequest = (input, context) => {
3950
- return {
3951
- ...(input.CertificateBasedAuthProperties != null && {
3952
- CertificateBasedAuthProperties: se_CertificateBasedAuthProperties(input.CertificateBasedAuthProperties, context),
3953
- }),
3954
- ...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
3955
- ...(input.OrganizationalUnitDistinguishedNames != null && {
3956
- OrganizationalUnitDistinguishedNames: se_OrganizationalUnitDistinguishedNamesList(input.OrganizationalUnitDistinguishedNames, context),
3957
- }),
3958
- ...(input.ServiceAccountCredentials != null && {
3959
- ServiceAccountCredentials: se_ServiceAccountCredentials(input.ServiceAccountCredentials, context),
3960
- }),
3961
- };
3962
- };
3963
- const se_UpdateEntitlementRequest = (input, context) => {
3964
- return {
3965
- ...(input.AppVisibility != null && { AppVisibility: input.AppVisibility }),
3966
- ...(input.Attributes != null && { Attributes: se_EntitlementAttributeList(input.Attributes, context) }),
3967
- ...(input.Description != null && { Description: input.Description }),
3968
- ...(input.Name != null && { Name: input.Name }),
3969
- ...(input.StackName != null && { StackName: input.StackName }),
3970
- };
3971
- };
3972
- const se_UpdateFleetRequest = (input, context) => {
3973
- return {
3974
- ...(input.AttributesToDelete != null && {
3975
- AttributesToDelete: se_FleetAttributes(input.AttributesToDelete, context),
3976
- }),
3977
- ...(input.ComputeCapacity != null && { ComputeCapacity: se_ComputeCapacity(input.ComputeCapacity, context) }),
3978
- ...(input.DeleteVpcConfig != null && { DeleteVpcConfig: input.DeleteVpcConfig }),
3979
- ...(input.Description != null && { Description: input.Description }),
3980
- ...(input.DisconnectTimeoutInSeconds != null && { DisconnectTimeoutInSeconds: input.DisconnectTimeoutInSeconds }),
3981
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
3982
- ...(input.DomainJoinInfo != null && { DomainJoinInfo: se_DomainJoinInfo(input.DomainJoinInfo, context) }),
3983
- ...(input.EnableDefaultInternetAccess != null && {
3984
- EnableDefaultInternetAccess: input.EnableDefaultInternetAccess,
3985
- }),
3986
- ...(input.IamRoleArn != null && { IamRoleArn: input.IamRoleArn }),
3987
- ...(input.IdleDisconnectTimeoutInSeconds != null && {
3988
- IdleDisconnectTimeoutInSeconds: input.IdleDisconnectTimeoutInSeconds,
3989
- }),
3990
- ...(input.ImageArn != null && { ImageArn: input.ImageArn }),
3991
- ...(input.ImageName != null && { ImageName: input.ImageName }),
3992
- ...(input.InstanceType != null && { InstanceType: input.InstanceType }),
3993
- ...(input.MaxConcurrentSessions != null && { MaxConcurrentSessions: input.MaxConcurrentSessions }),
3994
- ...(input.MaxUserDurationInSeconds != null && { MaxUserDurationInSeconds: input.MaxUserDurationInSeconds }),
3995
- ...(input.Name != null && { Name: input.Name }),
3996
- ...(input.Platform != null && { Platform: input.Platform }),
3997
- ...(input.SessionScriptS3Location != null && {
3998
- SessionScriptS3Location: se_S3Location(input.SessionScriptS3Location, context),
3999
- }),
4000
- ...(input.StreamView != null && { StreamView: input.StreamView }),
4001
- ...(input.UsbDeviceFilterStrings != null && {
4002
- UsbDeviceFilterStrings: se_UsbDeviceFilterStrings(input.UsbDeviceFilterStrings, context),
4003
- }),
4004
- ...(input.VpcConfig != null && { VpcConfig: se_VpcConfig(input.VpcConfig, context) }),
4005
- };
4006
- };
4007
- const se_UpdateImagePermissionsRequest = (input, context) => {
4008
- return {
4009
- ...(input.ImagePermissions != null && { ImagePermissions: se_ImagePermissions(input.ImagePermissions, context) }),
4010
- ...(input.Name != null && { Name: input.Name }),
4011
- ...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
4012
- };
4013
- };
4014
- const se_UpdateStackRequest = (input, context) => {
4015
- return {
4016
- ...(input.AccessEndpoints != null && { AccessEndpoints: se_AccessEndpointList(input.AccessEndpoints, context) }),
4017
- ...(input.ApplicationSettings != null && {
4018
- ApplicationSettings: se_ApplicationSettings(input.ApplicationSettings, context),
4019
- }),
4020
- ...(input.AttributesToDelete != null && {
4021
- AttributesToDelete: se_StackAttributes(input.AttributesToDelete, context),
4022
- }),
4023
- ...(input.DeleteStorageConnectors != null && { DeleteStorageConnectors: input.DeleteStorageConnectors }),
4024
- ...(input.Description != null && { Description: input.Description }),
4025
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
4026
- ...(input.EmbedHostDomains != null && { EmbedHostDomains: se_EmbedHostDomains(input.EmbedHostDomains, context) }),
4027
- ...(input.FeedbackURL != null && { FeedbackURL: input.FeedbackURL }),
4028
- ...(input.Name != null && { Name: input.Name }),
4029
- ...(input.RedirectURL != null && { RedirectURL: input.RedirectURL }),
4030
- ...(input.StorageConnectors != null && {
4031
- StorageConnectors: se_StorageConnectorList(input.StorageConnectors, context),
4032
- }),
4033
- ...(input.StreamingExperienceSettings != null && {
4034
- StreamingExperienceSettings: se_StreamingExperienceSettings(input.StreamingExperienceSettings, context),
4035
- }),
4036
- ...(input.UserSettings != null && { UserSettings: se_UserSettingList(input.UserSettings, context) }),
4037
- };
4038
- };
4039
- const se_UsbDeviceFilterStrings = (input, context) => {
4040
- return input
4041
- .filter((e) => e != null)
4042
- .map((entry) => {
4043
- return entry;
4044
- });
4045
- };
4046
- const se_UserSetting = (input, context) => {
4047
- return {
4048
- ...(input.Action != null && { Action: input.Action }),
4049
- ...(input.Permission != null && { Permission: input.Permission }),
4050
- };
4051
- };
4052
- const se_UserSettingList = (input, context) => {
4053
- return input
4054
- .filter((e) => e != null)
4055
- .map((entry) => {
4056
- return se_UserSetting(entry, context);
4057
- });
4058
- };
4059
- const se_UserStackAssociation = (input, context) => {
4060
- return {
4061
- ...(input.AuthenticationType != null && { AuthenticationType: input.AuthenticationType }),
4062
- ...(input.SendEmailNotification != null && { SendEmailNotification: input.SendEmailNotification }),
4063
- ...(input.StackName != null && { StackName: input.StackName }),
4064
- ...(input.UserName != null && { UserName: input.UserName }),
4065
- };
4066
- };
4067
- const se_UserStackAssociationList = (input, context) => {
4068
- return input
4069
- .filter((e) => e != null)
4070
- .map((entry) => {
4071
- return se_UserStackAssociation(entry, context);
4072
- });
4073
- };
4074
- const se_VpcConfig = (input, context) => {
4075
- return {
4076
- ...(input.SecurityGroupIds != null && {
4077
- SecurityGroupIds: se_SecurityGroupIdList(input.SecurityGroupIds, context),
4078
- }),
4079
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIdList(input.SubnetIds, context) }),
4080
- };
4081
- };
4082
- const de_AccessEndpoint = (output, context) => {
4083
- return {
4084
- EndpointType: (0, smithy_client_1.expectString)(output.EndpointType),
4085
- VpceId: (0, smithy_client_1.expectString)(output.VpceId),
4086
- };
4087
- };
4088
- const de_AccessEndpointList = (output, context) => {
4089
- const retVal = (output || [])
4090
- .filter((e) => e != null)
4091
- .map((entry) => {
4092
- if (entry === null) {
4093
- return null;
4094
- }
4095
- return de_AccessEndpoint(entry, context);
4096
- });
4097
- return retVal;
4098
- };
4099
- const de_AppBlock = (output, context) => {
4100
- return {
4101
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4102
- CreatedTime: output.CreatedTime != null
4103
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4104
- : undefined,
4105
- Description: (0, smithy_client_1.expectString)(output.Description),
4106
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
4107
- Name: (0, smithy_client_1.expectString)(output.Name),
4108
- SetupScriptDetails: output.SetupScriptDetails != null ? de_ScriptDetails(output.SetupScriptDetails, context) : undefined,
4109
- SourceS3Location: output.SourceS3Location != null ? de_S3Location(output.SourceS3Location, context) : undefined,
4110
- };
4111
- };
4112
- const de_AppBlocks = (output, context) => {
4113
- const retVal = (output || [])
4114
- .filter((e) => e != null)
4115
- .map((entry) => {
4116
- if (entry === null) {
4117
- return null;
4118
- }
4119
- return de_AppBlock(entry, context);
4120
- });
4121
- return retVal;
4122
- };
4123
- const de_Application = (output, context) => {
4124
- return {
4125
- AppBlockArn: (0, smithy_client_1.expectString)(output.AppBlockArn),
4126
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4127
- CreatedTime: output.CreatedTime != null
4128
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4129
- : undefined,
4130
- Description: (0, smithy_client_1.expectString)(output.Description),
4131
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
4132
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4133
- IconS3Location: output.IconS3Location != null ? de_S3Location(output.IconS3Location, context) : undefined,
4134
- IconURL: (0, smithy_client_1.expectString)(output.IconURL),
4135
- InstanceFamilies: output.InstanceFamilies != null ? de_StringList(output.InstanceFamilies, context) : undefined,
4136
- LaunchParameters: (0, smithy_client_1.expectString)(output.LaunchParameters),
4137
- LaunchPath: (0, smithy_client_1.expectString)(output.LaunchPath),
4138
- Metadata: output.Metadata != null ? de_Metadata(output.Metadata, context) : undefined,
4139
- Name: (0, smithy_client_1.expectString)(output.Name),
4140
- Platforms: output.Platforms != null ? de_Platforms(output.Platforms, context) : undefined,
4141
- WorkingDirectory: (0, smithy_client_1.expectString)(output.WorkingDirectory),
4142
- };
4143
- };
4144
- const de_ApplicationFleetAssociation = (output, context) => {
4145
- return {
4146
- ApplicationArn: (0, smithy_client_1.expectString)(output.ApplicationArn),
4147
- FleetName: (0, smithy_client_1.expectString)(output.FleetName),
4148
- };
4149
- };
4150
- const de_ApplicationFleetAssociationList = (output, context) => {
4151
- const retVal = (output || [])
4152
- .filter((e) => e != null)
4153
- .map((entry) => {
4154
- if (entry === null) {
4155
- return null;
4156
- }
4157
- return de_ApplicationFleetAssociation(entry, context);
4158
- });
4159
- return retVal;
4160
- };
4161
- const de_Applications = (output, context) => {
4162
- const retVal = (output || [])
4163
- .filter((e) => e != null)
4164
- .map((entry) => {
4165
- if (entry === null) {
4166
- return null;
4167
- }
4168
- return de_Application(entry, context);
4169
- });
4170
- return retVal;
4171
- };
4172
- const de_ApplicationSettingsResponse = (output, context) => {
4173
- return {
4174
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
4175
- S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
4176
- SettingsGroup: (0, smithy_client_1.expectString)(output.SettingsGroup),
4177
- };
4178
- };
4179
- const de_AssociateApplicationFleetResult = (output, context) => {
4180
- return {
4181
- ApplicationFleetAssociation: output.ApplicationFleetAssociation != null
4182
- ? de_ApplicationFleetAssociation(output.ApplicationFleetAssociation, context)
4183
- : undefined,
4184
- };
4185
- };
4186
- const de_AssociateApplicationToEntitlementResult = (output, context) => {
4187
- return {};
4188
- };
4189
- const de_AssociateFleetResult = (output, context) => {
4190
- return {};
4191
- };
4192
- const de_BatchAssociateUserStackResult = (output, context) => {
4193
- return {
4194
- errors: output.errors != null ? de_UserStackAssociationErrorList(output.errors, context) : undefined,
4195
- };
4196
- };
4197
- const de_BatchDisassociateUserStackResult = (output, context) => {
4198
- return {
4199
- errors: output.errors != null ? de_UserStackAssociationErrorList(output.errors, context) : undefined,
4200
- };
4201
- };
4202
- const de_CertificateBasedAuthProperties = (output, context) => {
4203
- return {
4204
- CertificateAuthorityArn: (0, smithy_client_1.expectString)(output.CertificateAuthorityArn),
4205
- Status: (0, smithy_client_1.expectString)(output.Status),
4206
- };
4207
- };
4208
- const de_ComputeCapacityStatus = (output, context) => {
4209
- return {
4210
- Available: (0, smithy_client_1.expectInt32)(output.Available),
4211
- Desired: (0, smithy_client_1.expectInt32)(output.Desired),
4212
- InUse: (0, smithy_client_1.expectInt32)(output.InUse),
4213
- Running: (0, smithy_client_1.expectInt32)(output.Running),
4214
- };
4215
- };
4216
- const de_ConcurrentModificationException = (output, context) => {
4217
- return {
4218
- Message: (0, smithy_client_1.expectString)(output.Message),
4219
- };
4220
- };
4221
- const de_CopyImageResponse = (output, context) => {
4222
- return {
4223
- DestinationImageName: (0, smithy_client_1.expectString)(output.DestinationImageName),
4224
- };
4225
- };
4226
- const de_CreateAppBlockResult = (output, context) => {
4227
- return {
4228
- AppBlock: output.AppBlock != null ? de_AppBlock(output.AppBlock, context) : undefined,
4229
- };
4230
- };
4231
- const de_CreateApplicationResult = (output, context) => {
4232
- return {
4233
- Application: output.Application != null ? de_Application(output.Application, context) : undefined,
4234
- };
4235
- };
4236
- const de_CreateDirectoryConfigResult = (output, context) => {
4237
- return {
4238
- DirectoryConfig: output.DirectoryConfig != null ? de_DirectoryConfig(output.DirectoryConfig, context) : undefined,
4239
- };
4240
- };
4241
- const de_CreateEntitlementResult = (output, context) => {
4242
- return {
4243
- Entitlement: output.Entitlement != null ? de_Entitlement(output.Entitlement, context) : undefined,
4244
- };
4245
- };
4246
- const de_CreateFleetResult = (output, context) => {
4247
- return {
4248
- Fleet: output.Fleet != null ? de_Fleet(output.Fleet, context) : undefined,
4249
- };
4250
- };
4251
- const de_CreateImageBuilderResult = (output, context) => {
4252
- return {
4253
- ImageBuilder: output.ImageBuilder != null ? de_ImageBuilder(output.ImageBuilder, context) : undefined,
4254
- };
4255
- };
4256
- const de_CreateImageBuilderStreamingURLResult = (output, context) => {
4257
- return {
4258
- Expires: output.Expires != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expires))) : undefined,
4259
- StreamingURL: (0, smithy_client_1.expectString)(output.StreamingURL),
4260
- };
4261
- };
4262
- const de_CreateStackResult = (output, context) => {
4263
- return {
4264
- Stack: output.Stack != null ? de_Stack(output.Stack, context) : undefined,
4265
- };
4266
- };
4267
- const de_CreateStreamingURLResult = (output, context) => {
4268
- return {
4269
- Expires: output.Expires != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Expires))) : undefined,
4270
- StreamingURL: (0, smithy_client_1.expectString)(output.StreamingURL),
4271
- };
4272
- };
4273
- const de_CreateUpdatedImageResult = (output, context) => {
4274
- return {
4275
- canUpdateImage: (0, smithy_client_1.expectBoolean)(output.canUpdateImage),
4276
- image: output.image != null ? de_Image(output.image, context) : undefined,
4277
- };
4278
- };
4279
- const de_CreateUsageReportSubscriptionResult = (output, context) => {
4280
- return {
4281
- S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
4282
- Schedule: (0, smithy_client_1.expectString)(output.Schedule),
4283
- };
4284
- };
4285
- const de_CreateUserResult = (output, context) => {
4286
- return {};
4287
- };
4288
- const de_DeleteAppBlockResult = (output, context) => {
4289
- return {};
4290
- };
4291
- const de_DeleteApplicationResult = (output, context) => {
4292
- return {};
4293
- };
4294
- const de_DeleteDirectoryConfigResult = (output, context) => {
4295
- return {};
4296
- };
4297
- const de_DeleteEntitlementResult = (output, context) => {
4298
- return {};
4299
- };
4300
- const de_DeleteFleetResult = (output, context) => {
4301
- return {};
4302
- };
4303
- const de_DeleteImageBuilderResult = (output, context) => {
4304
- return {
4305
- ImageBuilder: output.ImageBuilder != null ? de_ImageBuilder(output.ImageBuilder, context) : undefined,
4306
- };
4307
- };
4308
- const de_DeleteImagePermissionsResult = (output, context) => {
4309
- return {};
4310
- };
4311
- const de_DeleteImageResult = (output, context) => {
4312
- return {
4313
- Image: output.Image != null ? de_Image(output.Image, context) : undefined,
4314
- };
4315
- };
4316
- const de_DeleteStackResult = (output, context) => {
4317
- return {};
4318
- };
4319
- const de_DeleteUsageReportSubscriptionResult = (output, context) => {
4320
- return {};
4321
- };
4322
- const de_DeleteUserResult = (output, context) => {
4323
- return {};
4324
- };
4325
- const de_DescribeAppBlocksResult = (output, context) => {
4326
- return {
4327
- AppBlocks: output.AppBlocks != null ? de_AppBlocks(output.AppBlocks, context) : undefined,
4328
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4329
- };
4330
- };
4331
- const de_DescribeApplicationFleetAssociationsResult = (output, context) => {
4332
- return {
4333
- ApplicationFleetAssociations: output.ApplicationFleetAssociations != null
4334
- ? de_ApplicationFleetAssociationList(output.ApplicationFleetAssociations, context)
4335
- : undefined,
4336
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4337
- };
4338
- };
4339
- const de_DescribeApplicationsResult = (output, context) => {
4340
- return {
4341
- Applications: output.Applications != null ? de_Applications(output.Applications, context) : undefined,
4342
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4343
- };
4344
- };
4345
- const de_DescribeDirectoryConfigsResult = (output, context) => {
4346
- return {
4347
- DirectoryConfigs: output.DirectoryConfigs != null ? de_DirectoryConfigList(output.DirectoryConfigs, context) : undefined,
4348
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4349
- };
4350
- };
4351
- const de_DescribeEntitlementsResult = (output, context) => {
4352
- return {
4353
- Entitlements: output.Entitlements != null ? de_EntitlementList(output.Entitlements, context) : undefined,
4354
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4355
- };
4356
- };
4357
- const de_DescribeFleetsResult = (output, context) => {
4358
- return {
4359
- Fleets: output.Fleets != null ? de_FleetList(output.Fleets, context) : undefined,
4360
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4361
- };
4362
- };
4363
- const de_DescribeImageBuildersResult = (output, context) => {
4364
- return {
4365
- ImageBuilders: output.ImageBuilders != null ? de_ImageBuilderList(output.ImageBuilders, context) : undefined,
4366
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4367
- };
4368
- };
4369
- const de_DescribeImagePermissionsResult = (output, context) => {
4370
- return {
4371
- Name: (0, smithy_client_1.expectString)(output.Name),
4372
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4373
- SharedImagePermissionsList: output.SharedImagePermissionsList != null
4374
- ? de_SharedImagePermissionsList(output.SharedImagePermissionsList, context)
4375
- : undefined,
4376
- };
4377
- };
4378
- const de_DescribeImagesResult = (output, context) => {
4379
- return {
4380
- Images: output.Images != null ? de_ImageList(output.Images, context) : undefined,
4381
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4382
- };
4383
- };
4384
- const de_DescribeSessionsResult = (output, context) => {
4385
- return {
4386
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4387
- Sessions: output.Sessions != null ? de_SessionList(output.Sessions, context) : undefined,
4388
- };
4389
- };
4390
- const de_DescribeStacksResult = (output, context) => {
4391
- return {
4392
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4393
- Stacks: output.Stacks != null ? de_StackList(output.Stacks, context) : undefined,
4394
- };
4395
- };
4396
- const de_DescribeUsageReportSubscriptionsResult = (output, context) => {
4397
- return {
4398
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4399
- UsageReportSubscriptions: output.UsageReportSubscriptions != null
4400
- ? de_UsageReportSubscriptionList(output.UsageReportSubscriptions, context)
4401
- : undefined,
4402
- };
4403
- };
4404
- const de_DescribeUsersResult = (output, context) => {
4405
- return {
4406
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4407
- Users: output.Users != null ? de_UserList(output.Users, context) : undefined,
4408
- };
4409
- };
4410
- const de_DescribeUserStackAssociationsResult = (output, context) => {
4411
- return {
4412
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4413
- UserStackAssociations: output.UserStackAssociations != null
4414
- ? de_UserStackAssociationList(output.UserStackAssociations, context)
4415
- : undefined,
4416
- };
4417
- };
4418
- const de_DirectoryConfig = (output, context) => {
4419
- return {
4420
- CertificateBasedAuthProperties: output.CertificateBasedAuthProperties != null
4421
- ? de_CertificateBasedAuthProperties(output.CertificateBasedAuthProperties, context)
4422
- : undefined,
4423
- CreatedTime: output.CreatedTime != null
4424
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4425
- : undefined,
4426
- DirectoryName: (0, smithy_client_1.expectString)(output.DirectoryName),
4427
- OrganizationalUnitDistinguishedNames: output.OrganizationalUnitDistinguishedNames != null
4428
- ? de_OrganizationalUnitDistinguishedNamesList(output.OrganizationalUnitDistinguishedNames, context)
4429
- : undefined,
4430
- ServiceAccountCredentials: output.ServiceAccountCredentials != null
4431
- ? de_ServiceAccountCredentials(output.ServiceAccountCredentials, context)
4432
- : undefined,
4433
- };
4434
- };
4435
- const de_DirectoryConfigList = (output, context) => {
4436
- const retVal = (output || [])
4437
- .filter((e) => e != null)
4438
- .map((entry) => {
4439
- if (entry === null) {
4440
- return null;
4441
- }
4442
- return de_DirectoryConfig(entry, context);
4443
- });
4444
- return retVal;
4445
- };
4446
- const de_DisableUserResult = (output, context) => {
4447
- return {};
4448
- };
4449
- const de_DisassociateApplicationFleetResult = (output, context) => {
4450
- return {};
4451
- };
4452
- const de_DisassociateApplicationFromEntitlementResult = (output, context) => {
4453
- return {};
4454
- };
4455
- const de_DisassociateFleetResult = (output, context) => {
4456
- return {};
4457
- };
4458
- const de_DomainJoinInfo = (output, context) => {
4459
- return {
4460
- DirectoryName: (0, smithy_client_1.expectString)(output.DirectoryName),
4461
- OrganizationalUnitDistinguishedName: (0, smithy_client_1.expectString)(output.OrganizationalUnitDistinguishedName),
4462
- };
4463
- };
4464
- const de_DomainList = (output, context) => {
4465
- const retVal = (output || [])
4466
- .filter((e) => e != null)
4467
- .map((entry) => {
4468
- if (entry === null) {
4469
- return null;
4470
- }
4471
- return (0, smithy_client_1.expectString)(entry);
4472
- });
4473
- return retVal;
4474
- };
4475
- const de_EmbedHostDomains = (output, context) => {
4476
- const retVal = (output || [])
4477
- .filter((e) => e != null)
4478
- .map((entry) => {
4479
- if (entry === null) {
4480
- return null;
4481
- }
4482
- return (0, smithy_client_1.expectString)(entry);
4483
- });
4484
- return retVal;
4485
- };
4486
- const de_EnableUserResult = (output, context) => {
4487
- return {};
4488
- };
4489
- const de_EntitledApplication = (output, context) => {
4490
- return {
4491
- ApplicationIdentifier: (0, smithy_client_1.expectString)(output.ApplicationIdentifier),
4492
- };
4493
- };
4494
- const de_EntitledApplicationList = (output, context) => {
4495
- const retVal = (output || [])
4496
- .filter((e) => e != null)
4497
- .map((entry) => {
4498
- if (entry === null) {
4499
- return null;
4500
- }
4501
- return de_EntitledApplication(entry, context);
4502
- });
4503
- return retVal;
4504
- };
4505
- const de_Entitlement = (output, context) => {
4506
- return {
4507
- AppVisibility: (0, smithy_client_1.expectString)(output.AppVisibility),
4508
- Attributes: output.Attributes != null ? de_EntitlementAttributeList(output.Attributes, context) : undefined,
4509
- CreatedTime: output.CreatedTime != null
4510
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4511
- : undefined,
4512
- Description: (0, smithy_client_1.expectString)(output.Description),
4513
- LastModifiedTime: output.LastModifiedTime != null
4514
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
4515
- : undefined,
4516
- Name: (0, smithy_client_1.expectString)(output.Name),
4517
- StackName: (0, smithy_client_1.expectString)(output.StackName),
4518
- };
4519
- };
4520
- const de_EntitlementAlreadyExistsException = (output, context) => {
4521
- return {
4522
- Message: (0, smithy_client_1.expectString)(output.Message),
4523
- };
4524
- };
4525
- const de_EntitlementAttribute = (output, context) => {
4526
- return {
4527
- Name: (0, smithy_client_1.expectString)(output.Name),
4528
- Value: (0, smithy_client_1.expectString)(output.Value),
4529
- };
4530
- };
4531
- const de_EntitlementAttributeList = (output, context) => {
4532
- const retVal = (output || [])
4533
- .filter((e) => e != null)
4534
- .map((entry) => {
4535
- if (entry === null) {
4536
- return null;
4537
- }
4538
- return de_EntitlementAttribute(entry, context);
4539
- });
4540
- return retVal;
4541
- };
4542
- const de_EntitlementList = (output, context) => {
4543
- const retVal = (output || [])
4544
- .filter((e) => e != null)
4545
- .map((entry) => {
4546
- if (entry === null) {
4547
- return null;
4548
- }
4549
- return de_Entitlement(entry, context);
4550
- });
4551
- return retVal;
4552
- };
4553
- const de_EntitlementNotFoundException = (output, context) => {
4554
- return {
4555
- Message: (0, smithy_client_1.expectString)(output.Message),
4556
- };
4557
- };
4558
- const de_ExpireSessionResult = (output, context) => {
4559
- return {};
4560
- };
4561
- const de_Fleet = (output, context) => {
4562
- return {
4563
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4564
- ComputeCapacityStatus: output.ComputeCapacityStatus != null
4565
- ? de_ComputeCapacityStatus(output.ComputeCapacityStatus, context)
4566
- : undefined,
4567
- CreatedTime: output.CreatedTime != null
4568
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4569
- : undefined,
4570
- Description: (0, smithy_client_1.expectString)(output.Description),
4571
- DisconnectTimeoutInSeconds: (0, smithy_client_1.expectInt32)(output.DisconnectTimeoutInSeconds),
4572
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
4573
- DomainJoinInfo: output.DomainJoinInfo != null ? de_DomainJoinInfo(output.DomainJoinInfo, context) : undefined,
4574
- EnableDefaultInternetAccess: (0, smithy_client_1.expectBoolean)(output.EnableDefaultInternetAccess),
4575
- FleetErrors: output.FleetErrors != null ? de_FleetErrors(output.FleetErrors, context) : undefined,
4576
- FleetType: (0, smithy_client_1.expectString)(output.FleetType),
4577
- IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
4578
- IdleDisconnectTimeoutInSeconds: (0, smithy_client_1.expectInt32)(output.IdleDisconnectTimeoutInSeconds),
4579
- ImageArn: (0, smithy_client_1.expectString)(output.ImageArn),
4580
- ImageName: (0, smithy_client_1.expectString)(output.ImageName),
4581
- InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
4582
- MaxConcurrentSessions: (0, smithy_client_1.expectInt32)(output.MaxConcurrentSessions),
4583
- MaxUserDurationInSeconds: (0, smithy_client_1.expectInt32)(output.MaxUserDurationInSeconds),
4584
- Name: (0, smithy_client_1.expectString)(output.Name),
4585
- Platform: (0, smithy_client_1.expectString)(output.Platform),
4586
- SessionScriptS3Location: output.SessionScriptS3Location != null ? de_S3Location(output.SessionScriptS3Location, context) : undefined,
4587
- State: (0, smithy_client_1.expectString)(output.State),
4588
- StreamView: (0, smithy_client_1.expectString)(output.StreamView),
4589
- UsbDeviceFilterStrings: output.UsbDeviceFilterStrings != null
4590
- ? de_UsbDeviceFilterStrings(output.UsbDeviceFilterStrings, context)
4591
- : undefined,
4592
- VpcConfig: output.VpcConfig != null ? de_VpcConfig(output.VpcConfig, context) : undefined,
4593
- };
4594
- };
4595
- const de_FleetError = (output, context) => {
4596
- return {
4597
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4598
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4599
- };
4600
- };
4601
- const de_FleetErrors = (output, context) => {
4602
- const retVal = (output || [])
4603
- .filter((e) => e != null)
4604
- .map((entry) => {
4605
- if (entry === null) {
4606
- return null;
4607
- }
4608
- return de_FleetError(entry, context);
4609
- });
4610
- return retVal;
4611
- };
4612
- const de_FleetList = (output, context) => {
4613
- const retVal = (output || [])
4614
- .filter((e) => e != null)
4615
- .map((entry) => {
4616
- if (entry === null) {
4617
- return null;
4618
- }
4619
- return de_Fleet(entry, context);
4620
- });
4621
- return retVal;
4622
- };
4623
- const de_Image = (output, context) => {
4624
- return {
4625
- Applications: output.Applications != null ? de_Applications(output.Applications, context) : undefined,
4626
- AppstreamAgentVersion: (0, smithy_client_1.expectString)(output.AppstreamAgentVersion),
4627
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4628
- BaseImageArn: (0, smithy_client_1.expectString)(output.BaseImageArn),
4629
- CreatedTime: output.CreatedTime != null
4630
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4631
- : undefined,
4632
- Description: (0, smithy_client_1.expectString)(output.Description),
4633
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
4634
- ImageBuilderName: (0, smithy_client_1.expectString)(output.ImageBuilderName),
4635
- ImageBuilderSupported: (0, smithy_client_1.expectBoolean)(output.ImageBuilderSupported),
4636
- ImageErrors: output.ImageErrors != null ? de_ResourceErrors(output.ImageErrors, context) : undefined,
4637
- ImagePermissions: output.ImagePermissions != null ? de_ImagePermissions(output.ImagePermissions, context) : undefined,
4638
- Name: (0, smithy_client_1.expectString)(output.Name),
4639
- Platform: (0, smithy_client_1.expectString)(output.Platform),
4640
- PublicBaseImageReleasedDate: output.PublicBaseImageReleasedDate != null
4641
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PublicBaseImageReleasedDate)))
4642
- : undefined,
4643
- State: (0, smithy_client_1.expectString)(output.State),
4644
- StateChangeReason: output.StateChangeReason != null ? de_ImageStateChangeReason(output.StateChangeReason, context) : undefined,
4645
- Visibility: (0, smithy_client_1.expectString)(output.Visibility),
4646
- };
4647
- };
4648
- const de_ImageBuilder = (output, context) => {
4649
- return {
4650
- AccessEndpoints: output.AccessEndpoints != null ? de_AccessEndpointList(output.AccessEndpoints, context) : undefined,
4651
- AppstreamAgentVersion: (0, smithy_client_1.expectString)(output.AppstreamAgentVersion),
4652
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4653
- CreatedTime: output.CreatedTime != null
4654
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4655
- : undefined,
4656
- Description: (0, smithy_client_1.expectString)(output.Description),
4657
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
4658
- DomainJoinInfo: output.DomainJoinInfo != null ? de_DomainJoinInfo(output.DomainJoinInfo, context) : undefined,
4659
- EnableDefaultInternetAccess: (0, smithy_client_1.expectBoolean)(output.EnableDefaultInternetAccess),
4660
- IamRoleArn: (0, smithy_client_1.expectString)(output.IamRoleArn),
4661
- ImageArn: (0, smithy_client_1.expectString)(output.ImageArn),
4662
- ImageBuilderErrors: output.ImageBuilderErrors != null ? de_ResourceErrors(output.ImageBuilderErrors, context) : undefined,
4663
- InstanceType: (0, smithy_client_1.expectString)(output.InstanceType),
4664
- Name: (0, smithy_client_1.expectString)(output.Name),
4665
- NetworkAccessConfiguration: output.NetworkAccessConfiguration != null
4666
- ? de_NetworkAccessConfiguration(output.NetworkAccessConfiguration, context)
4667
- : undefined,
4668
- Platform: (0, smithy_client_1.expectString)(output.Platform),
4669
- State: (0, smithy_client_1.expectString)(output.State),
4670
- StateChangeReason: output.StateChangeReason != null
4671
- ? de_ImageBuilderStateChangeReason(output.StateChangeReason, context)
4672
- : undefined,
4673
- VpcConfig: output.VpcConfig != null ? de_VpcConfig(output.VpcConfig, context) : undefined,
4674
- };
4675
- };
4676
- const de_ImageBuilderList = (output, context) => {
4677
- const retVal = (output || [])
4678
- .filter((e) => e != null)
4679
- .map((entry) => {
4680
- if (entry === null) {
4681
- return null;
4682
- }
4683
- return de_ImageBuilder(entry, context);
3204
+ const de_AppBlock = (output, context) => {
3205
+ return (0, smithy_client_1.take)(output, {
3206
+ Arn: smithy_client_1.expectString,
3207
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3208
+ Description: smithy_client_1.expectString,
3209
+ DisplayName: smithy_client_1.expectString,
3210
+ Name: smithy_client_1.expectString,
3211
+ SetupScriptDetails: smithy_client_1._json,
3212
+ SourceS3Location: smithy_client_1._json,
4684
3213
  });
4685
- return retVal;
4686
- };
4687
- const de_ImageBuilderStateChangeReason = (output, context) => {
4688
- return {
4689
- Code: (0, smithy_client_1.expectString)(output.Code),
4690
- Message: (0, smithy_client_1.expectString)(output.Message),
4691
- };
4692
3214
  };
4693
- const de_ImageList = (output, context) => {
3215
+ const de_AppBlocks = (output, context) => {
4694
3216
  const retVal = (output || [])
4695
- .filter((e) => e != null)
4696
- .map((entry) => {
4697
- if (entry === null) {
4698
- return null;
4699
- }
4700
- return de_Image(entry, context);
4701
- });
4702
- return retVal;
4703
- };
4704
- const de_ImagePermissions = (output, context) => {
4705
- return {
4706
- allowFleet: (0, smithy_client_1.expectBoolean)(output.allowFleet),
4707
- allowImageBuilder: (0, smithy_client_1.expectBoolean)(output.allowImageBuilder),
4708
- };
4709
- };
4710
- const de_ImageStateChangeReason = (output, context) => {
4711
- return {
4712
- Code: (0, smithy_client_1.expectString)(output.Code),
4713
- Message: (0, smithy_client_1.expectString)(output.Message),
4714
- };
4715
- };
4716
- const de_IncompatibleImageException = (output, context) => {
4717
- return {
4718
- Message: (0, smithy_client_1.expectString)(output.Message),
4719
- };
4720
- };
4721
- const de_InvalidAccountStatusException = (output, context) => {
4722
- return {
4723
- Message: (0, smithy_client_1.expectString)(output.Message),
4724
- };
4725
- };
4726
- const de_InvalidParameterCombinationException = (output, context) => {
4727
- return {
4728
- Message: (0, smithy_client_1.expectString)(output.Message),
4729
- };
4730
- };
4731
- const de_InvalidRoleException = (output, context) => {
4732
- return {
4733
- Message: (0, smithy_client_1.expectString)(output.Message),
4734
- };
3217
+ .filter((e) => e != null)
3218
+ .map((entry) => {
3219
+ return de_AppBlock(entry, context);
3220
+ });
3221
+ return retVal;
4735
3222
  };
4736
- const de_LastReportGenerationExecutionError = (output, context) => {
4737
- return {
4738
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4739
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4740
- };
3223
+ const de_Application = (output, context) => {
3224
+ return (0, smithy_client_1.take)(output, {
3225
+ AppBlockArn: smithy_client_1.expectString,
3226
+ Arn: smithy_client_1.expectString,
3227
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3228
+ Description: smithy_client_1.expectString,
3229
+ DisplayName: smithy_client_1.expectString,
3230
+ Enabled: smithy_client_1.expectBoolean,
3231
+ IconS3Location: smithy_client_1._json,
3232
+ IconURL: smithy_client_1.expectString,
3233
+ InstanceFamilies: smithy_client_1._json,
3234
+ LaunchParameters: smithy_client_1.expectString,
3235
+ LaunchPath: smithy_client_1.expectString,
3236
+ Metadata: smithy_client_1._json,
3237
+ Name: smithy_client_1.expectString,
3238
+ Platforms: smithy_client_1._json,
3239
+ WorkingDirectory: smithy_client_1.expectString,
3240
+ });
4741
3241
  };
4742
- const de_LastReportGenerationExecutionErrors = (output, context) => {
3242
+ const de_Applications = (output, context) => {
4743
3243
  const retVal = (output || [])
4744
3244
  .filter((e) => e != null)
4745
3245
  .map((entry) => {
4746
- if (entry === null) {
4747
- return null;
4748
- }
4749
- return de_LastReportGenerationExecutionError(entry, context);
3246
+ return de_Application(entry, context);
4750
3247
  });
4751
3248
  return retVal;
4752
3249
  };
4753
- const de_LimitExceededException = (output, context) => {
4754
- return {
4755
- Message: (0, smithy_client_1.expectString)(output.Message),
4756
- };
3250
+ const de_CreateAppBlockResult = (output, context) => {
3251
+ return (0, smithy_client_1.take)(output, {
3252
+ AppBlock: (_) => de_AppBlock(_, context),
3253
+ });
4757
3254
  };
4758
- const de_ListAssociatedFleetsResult = (output, context) => {
4759
- return {
4760
- Names: output.Names != null ? de_StringList(output.Names, context) : undefined,
4761
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4762
- };
3255
+ const de_CreateApplicationResult = (output, context) => {
3256
+ return (0, smithy_client_1.take)(output, {
3257
+ Application: (_) => de_Application(_, context),
3258
+ });
4763
3259
  };
4764
- const de_ListAssociatedStacksResult = (output, context) => {
4765
- return {
4766
- Names: output.Names != null ? de_StringList(output.Names, context) : undefined,
4767
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4768
- };
3260
+ const de_CreateDirectoryConfigResult = (output, context) => {
3261
+ return (0, smithy_client_1.take)(output, {
3262
+ DirectoryConfig: (_) => de_DirectoryConfig(_, context),
3263
+ });
4769
3264
  };
4770
- const de_ListEntitledApplicationsResult = (output, context) => {
4771
- return {
4772
- EntitledApplications: output.EntitledApplications != null
4773
- ? de_EntitledApplicationList(output.EntitledApplications, context)
4774
- : undefined,
4775
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4776
- };
3265
+ const de_CreateEntitlementResult = (output, context) => {
3266
+ return (0, smithy_client_1.take)(output, {
3267
+ Entitlement: (_) => de_Entitlement(_, context),
3268
+ });
4777
3269
  };
4778
- const de_ListTagsForResourceResponse = (output, context) => {
4779
- return {
4780
- Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
4781
- };
3270
+ const de_CreateFleetResult = (output, context) => {
3271
+ return (0, smithy_client_1.take)(output, {
3272
+ Fleet: (_) => de_Fleet(_, context),
3273
+ });
4782
3274
  };
4783
- const de_Metadata = (output, context) => {
4784
- return Object.entries(output).reduce((acc, [key, value]) => {
4785
- if (value === null) {
4786
- return acc;
4787
- }
4788
- acc[key] = (0, smithy_client_1.expectString)(value);
4789
- return acc;
4790
- }, {});
3275
+ const de_CreateImageBuilderResult = (output, context) => {
3276
+ return (0, smithy_client_1.take)(output, {
3277
+ ImageBuilder: (_) => de_ImageBuilder(_, context),
3278
+ });
4791
3279
  };
4792
- const de_NetworkAccessConfiguration = (output, context) => {
4793
- return {
4794
- EniId: (0, smithy_client_1.expectString)(output.EniId),
4795
- EniPrivateIpAddress: (0, smithy_client_1.expectString)(output.EniPrivateIpAddress),
4796
- };
3280
+ const de_CreateImageBuilderStreamingURLResult = (output, context) => {
3281
+ return (0, smithy_client_1.take)(output, {
3282
+ Expires: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3283
+ StreamingURL: smithy_client_1.expectString,
3284
+ });
4797
3285
  };
4798
- const de_OperationNotPermittedException = (output, context) => {
4799
- return {
4800
- Message: (0, smithy_client_1.expectString)(output.Message),
4801
- };
3286
+ const de_CreateStackResult = (output, context) => {
3287
+ return (0, smithy_client_1.take)(output, {
3288
+ Stack: (_) => de_Stack(_, context),
3289
+ });
4802
3290
  };
4803
- const de_OrganizationalUnitDistinguishedNamesList = (output, context) => {
4804
- const retVal = (output || [])
4805
- .filter((e) => e != null)
4806
- .map((entry) => {
4807
- if (entry === null) {
4808
- return null;
4809
- }
4810
- return (0, smithy_client_1.expectString)(entry);
3291
+ const de_CreateStreamingURLResult = (output, context) => {
3292
+ return (0, smithy_client_1.take)(output, {
3293
+ Expires: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3294
+ StreamingURL: smithy_client_1.expectString,
4811
3295
  });
4812
- return retVal;
4813
3296
  };
4814
- const de_Platforms = (output, context) => {
4815
- const retVal = (output || [])
4816
- .filter((e) => e != null)
4817
- .map((entry) => {
4818
- if (entry === null) {
4819
- return null;
4820
- }
4821
- return (0, smithy_client_1.expectString)(entry);
3297
+ const de_CreateUpdatedImageResult = (output, context) => {
3298
+ return (0, smithy_client_1.take)(output, {
3299
+ canUpdateImage: smithy_client_1.expectBoolean,
3300
+ image: (_) => de_Image(_, context),
4822
3301
  });
4823
- return retVal;
4824
3302
  };
4825
- const de_RequestLimitExceededException = (output, context) => {
4826
- return {
4827
- Message: (0, smithy_client_1.expectString)(output.Message),
4828
- };
3303
+ const de_DeleteImageBuilderResult = (output, context) => {
3304
+ return (0, smithy_client_1.take)(output, {
3305
+ ImageBuilder: (_) => de_ImageBuilder(_, context),
3306
+ });
4829
3307
  };
4830
- const de_ResourceAlreadyExistsException = (output, context) => {
4831
- return {
4832
- Message: (0, smithy_client_1.expectString)(output.Message),
4833
- };
3308
+ const de_DeleteImageResult = (output, context) => {
3309
+ return (0, smithy_client_1.take)(output, {
3310
+ Image: (_) => de_Image(_, context),
3311
+ });
4834
3312
  };
4835
- const de_ResourceError = (output, context) => {
4836
- return {
4837
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4838
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4839
- ErrorTimestamp: output.ErrorTimestamp != null
4840
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ErrorTimestamp)))
4841
- : undefined,
4842
- };
3313
+ const de_DescribeAppBlocksResult = (output, context) => {
3314
+ return (0, smithy_client_1.take)(output, {
3315
+ AppBlocks: (_) => de_AppBlocks(_, context),
3316
+ NextToken: smithy_client_1.expectString,
3317
+ });
4843
3318
  };
4844
- const de_ResourceErrors = (output, context) => {
4845
- const retVal = (output || [])
4846
- .filter((e) => e != null)
4847
- .map((entry) => {
4848
- if (entry === null) {
4849
- return null;
4850
- }
4851
- return de_ResourceError(entry, context);
3319
+ const de_DescribeApplicationsResult = (output, context) => {
3320
+ return (0, smithy_client_1.take)(output, {
3321
+ Applications: (_) => de_Applications(_, context),
3322
+ NextToken: smithy_client_1.expectString,
4852
3323
  });
4853
- return retVal;
4854
3324
  };
4855
- const de_ResourceInUseException = (output, context) => {
4856
- return {
4857
- Message: (0, smithy_client_1.expectString)(output.Message),
4858
- };
3325
+ const de_DescribeDirectoryConfigsResult = (output, context) => {
3326
+ return (0, smithy_client_1.take)(output, {
3327
+ DirectoryConfigs: (_) => de_DirectoryConfigList(_, context),
3328
+ NextToken: smithy_client_1.expectString,
3329
+ });
4859
3330
  };
4860
- const de_ResourceNotAvailableException = (output, context) => {
4861
- return {
4862
- Message: (0, smithy_client_1.expectString)(output.Message),
4863
- };
3331
+ const de_DescribeEntitlementsResult = (output, context) => {
3332
+ return (0, smithy_client_1.take)(output, {
3333
+ Entitlements: (_) => de_EntitlementList(_, context),
3334
+ NextToken: smithy_client_1.expectString,
3335
+ });
4864
3336
  };
4865
- const de_ResourceNotFoundException = (output, context) => {
4866
- return {
4867
- Message: (0, smithy_client_1.expectString)(output.Message),
4868
- };
3337
+ const de_DescribeFleetsResult = (output, context) => {
3338
+ return (0, smithy_client_1.take)(output, {
3339
+ Fleets: (_) => de_FleetList(_, context),
3340
+ NextToken: smithy_client_1.expectString,
3341
+ });
4869
3342
  };
4870
- const de_S3Location = (output, context) => {
4871
- return {
4872
- S3Bucket: (0, smithy_client_1.expectString)(output.S3Bucket),
4873
- S3Key: (0, smithy_client_1.expectString)(output.S3Key),
4874
- };
3343
+ const de_DescribeImageBuildersResult = (output, context) => {
3344
+ return (0, smithy_client_1.take)(output, {
3345
+ ImageBuilders: (_) => de_ImageBuilderList(_, context),
3346
+ NextToken: smithy_client_1.expectString,
3347
+ });
4875
3348
  };
4876
- const de_ScriptDetails = (output, context) => {
4877
- return {
4878
- ExecutableParameters: (0, smithy_client_1.expectString)(output.ExecutableParameters),
4879
- ExecutablePath: (0, smithy_client_1.expectString)(output.ExecutablePath),
4880
- ScriptS3Location: output.ScriptS3Location != null ? de_S3Location(output.ScriptS3Location, context) : undefined,
4881
- TimeoutInSeconds: (0, smithy_client_1.expectInt32)(output.TimeoutInSeconds),
4882
- };
3349
+ const de_DescribeImagesResult = (output, context) => {
3350
+ return (0, smithy_client_1.take)(output, {
3351
+ Images: (_) => de_ImageList(_, context),
3352
+ NextToken: smithy_client_1.expectString,
3353
+ });
4883
3354
  };
4884
- const de_SecurityGroupIdList = (output, context) => {
3355
+ const de_DescribeSessionsResult = (output, context) => {
3356
+ return (0, smithy_client_1.take)(output, {
3357
+ NextToken: smithy_client_1.expectString,
3358
+ Sessions: (_) => de_SessionList(_, context),
3359
+ });
3360
+ };
3361
+ const de_DescribeStacksResult = (output, context) => {
3362
+ return (0, smithy_client_1.take)(output, {
3363
+ NextToken: smithy_client_1.expectString,
3364
+ Stacks: (_) => de_StackList(_, context),
3365
+ });
3366
+ };
3367
+ const de_DescribeUsageReportSubscriptionsResult = (output, context) => {
3368
+ return (0, smithy_client_1.take)(output, {
3369
+ NextToken: smithy_client_1.expectString,
3370
+ UsageReportSubscriptions: (_) => de_UsageReportSubscriptionList(_, context),
3371
+ });
3372
+ };
3373
+ const de_DescribeUsersResult = (output, context) => {
3374
+ return (0, smithy_client_1.take)(output, {
3375
+ NextToken: smithy_client_1.expectString,
3376
+ Users: (_) => de_UserList(_, context),
3377
+ });
3378
+ };
3379
+ const de_DirectoryConfig = (output, context) => {
3380
+ return (0, smithy_client_1.take)(output, {
3381
+ CertificateBasedAuthProperties: smithy_client_1._json,
3382
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3383
+ DirectoryName: smithy_client_1.expectString,
3384
+ OrganizationalUnitDistinguishedNames: smithy_client_1._json,
3385
+ ServiceAccountCredentials: smithy_client_1._json,
3386
+ });
3387
+ };
3388
+ const de_DirectoryConfigList = (output, context) => {
4885
3389
  const retVal = (output || [])
4886
3390
  .filter((e) => e != null)
4887
3391
  .map((entry) => {
4888
- if (entry === null) {
4889
- return null;
4890
- }
4891
- return (0, smithy_client_1.expectString)(entry);
3392
+ return de_DirectoryConfig(entry, context);
4892
3393
  });
4893
3394
  return retVal;
4894
3395
  };
4895
- const de_ServiceAccountCredentials = (output, context) => {
4896
- return {
4897
- AccountName: (0, smithy_client_1.expectString)(output.AccountName),
4898
- AccountPassword: (0, smithy_client_1.expectString)(output.AccountPassword),
4899
- };
4900
- };
4901
- const de_Session = (output, context) => {
4902
- return {
4903
- AuthenticationType: (0, smithy_client_1.expectString)(output.AuthenticationType),
4904
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
4905
- FleetName: (0, smithy_client_1.expectString)(output.FleetName),
4906
- Id: (0, smithy_client_1.expectString)(output.Id),
4907
- MaxExpirationTime: output.MaxExpirationTime != null
4908
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.MaxExpirationTime)))
4909
- : undefined,
4910
- NetworkAccessConfiguration: output.NetworkAccessConfiguration != null
4911
- ? de_NetworkAccessConfiguration(output.NetworkAccessConfiguration, context)
4912
- : undefined,
4913
- StackName: (0, smithy_client_1.expectString)(output.StackName),
4914
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
4915
- State: (0, smithy_client_1.expectString)(output.State),
4916
- UserId: (0, smithy_client_1.expectString)(output.UserId),
4917
- };
3396
+ const de_Entitlement = (output, context) => {
3397
+ return (0, smithy_client_1.take)(output, {
3398
+ AppVisibility: smithy_client_1.expectString,
3399
+ Attributes: smithy_client_1._json,
3400
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3401
+ Description: smithy_client_1.expectString,
3402
+ LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3403
+ Name: smithy_client_1.expectString,
3404
+ StackName: smithy_client_1.expectString,
3405
+ });
4918
3406
  };
4919
- const de_SessionList = (output, context) => {
3407
+ const de_EntitlementList = (output, context) => {
4920
3408
  const retVal = (output || [])
4921
3409
  .filter((e) => e != null)
4922
3410
  .map((entry) => {
4923
- if (entry === null) {
4924
- return null;
4925
- }
4926
- return de_Session(entry, context);
3411
+ return de_Entitlement(entry, context);
4927
3412
  });
4928
3413
  return retVal;
4929
3414
  };
4930
- const de_SharedImagePermissions = (output, context) => {
4931
- return {
4932
- imagePermissions: output.imagePermissions != null ? de_ImagePermissions(output.imagePermissions, context) : undefined,
4933
- sharedAccountId: (0, smithy_client_1.expectString)(output.sharedAccountId),
4934
- };
3415
+ const de_Fleet = (output, context) => {
3416
+ return (0, smithy_client_1.take)(output, {
3417
+ Arn: smithy_client_1.expectString,
3418
+ ComputeCapacityStatus: smithy_client_1._json,
3419
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3420
+ Description: smithy_client_1.expectString,
3421
+ DisconnectTimeoutInSeconds: smithy_client_1.expectInt32,
3422
+ DisplayName: smithy_client_1.expectString,
3423
+ DomainJoinInfo: smithy_client_1._json,
3424
+ EnableDefaultInternetAccess: smithy_client_1.expectBoolean,
3425
+ FleetErrors: smithy_client_1._json,
3426
+ FleetType: smithy_client_1.expectString,
3427
+ IamRoleArn: smithy_client_1.expectString,
3428
+ IdleDisconnectTimeoutInSeconds: smithy_client_1.expectInt32,
3429
+ ImageArn: smithy_client_1.expectString,
3430
+ ImageName: smithy_client_1.expectString,
3431
+ InstanceType: smithy_client_1.expectString,
3432
+ MaxConcurrentSessions: smithy_client_1.expectInt32,
3433
+ MaxUserDurationInSeconds: smithy_client_1.expectInt32,
3434
+ Name: smithy_client_1.expectString,
3435
+ Platform: smithy_client_1.expectString,
3436
+ SessionScriptS3Location: smithy_client_1._json,
3437
+ State: smithy_client_1.expectString,
3438
+ StreamView: smithy_client_1.expectString,
3439
+ UsbDeviceFilterStrings: smithy_client_1._json,
3440
+ VpcConfig: smithy_client_1._json,
3441
+ });
4935
3442
  };
4936
- const de_SharedImagePermissionsList = (output, context) => {
3443
+ const de_FleetList = (output, context) => {
4937
3444
  const retVal = (output || [])
4938
3445
  .filter((e) => e != null)
4939
3446
  .map((entry) => {
4940
- if (entry === null) {
4941
- return null;
4942
- }
4943
- return de_SharedImagePermissions(entry, context);
3447
+ return de_Fleet(entry, context);
4944
3448
  });
4945
3449
  return retVal;
4946
3450
  };
4947
- const de_Stack = (output, context) => {
4948
- return {
4949
- AccessEndpoints: output.AccessEndpoints != null ? de_AccessEndpointList(output.AccessEndpoints, context) : undefined,
4950
- ApplicationSettings: output.ApplicationSettings != null
4951
- ? de_ApplicationSettingsResponse(output.ApplicationSettings, context)
4952
- : undefined,
4953
- Arn: (0, smithy_client_1.expectString)(output.Arn),
4954
- CreatedTime: output.CreatedTime != null
4955
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
4956
- : undefined,
4957
- Description: (0, smithy_client_1.expectString)(output.Description),
4958
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
4959
- EmbedHostDomains: output.EmbedHostDomains != null ? de_EmbedHostDomains(output.EmbedHostDomains, context) : undefined,
4960
- FeedbackURL: (0, smithy_client_1.expectString)(output.FeedbackURL),
4961
- Name: (0, smithy_client_1.expectString)(output.Name),
4962
- RedirectURL: (0, smithy_client_1.expectString)(output.RedirectURL),
4963
- StackErrors: output.StackErrors != null ? de_StackErrors(output.StackErrors, context) : undefined,
4964
- StorageConnectors: output.StorageConnectors != null ? de_StorageConnectorList(output.StorageConnectors, context) : undefined,
4965
- StreamingExperienceSettings: output.StreamingExperienceSettings != null
4966
- ? de_StreamingExperienceSettings(output.StreamingExperienceSettings, context)
4967
- : undefined,
4968
- UserSettings: output.UserSettings != null ? de_UserSettingList(output.UserSettings, context) : undefined,
4969
- };
4970
- };
4971
- const de_StackError = (output, context) => {
4972
- return {
4973
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4974
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4975
- };
3451
+ const de_Image = (output, context) => {
3452
+ return (0, smithy_client_1.take)(output, {
3453
+ Applications: (_) => de_Applications(_, context),
3454
+ AppstreamAgentVersion: smithy_client_1.expectString,
3455
+ Arn: smithy_client_1.expectString,
3456
+ BaseImageArn: smithy_client_1.expectString,
3457
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3458
+ Description: smithy_client_1.expectString,
3459
+ DisplayName: smithy_client_1.expectString,
3460
+ ImageBuilderName: smithy_client_1.expectString,
3461
+ ImageBuilderSupported: smithy_client_1.expectBoolean,
3462
+ ImageErrors: (_) => de_ResourceErrors(_, context),
3463
+ ImagePermissions: smithy_client_1._json,
3464
+ Name: smithy_client_1.expectString,
3465
+ Platform: smithy_client_1.expectString,
3466
+ PublicBaseImageReleasedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3467
+ State: smithy_client_1.expectString,
3468
+ StateChangeReason: smithy_client_1._json,
3469
+ Visibility: smithy_client_1.expectString,
3470
+ });
4976
3471
  };
4977
- const de_StackErrors = (output, context) => {
3472
+ const de_ImageBuilder = (output, context) => {
3473
+ return (0, smithy_client_1.take)(output, {
3474
+ AccessEndpoints: smithy_client_1._json,
3475
+ AppstreamAgentVersion: smithy_client_1.expectString,
3476
+ Arn: smithy_client_1.expectString,
3477
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3478
+ Description: smithy_client_1.expectString,
3479
+ DisplayName: smithy_client_1.expectString,
3480
+ DomainJoinInfo: smithy_client_1._json,
3481
+ EnableDefaultInternetAccess: smithy_client_1.expectBoolean,
3482
+ IamRoleArn: smithy_client_1.expectString,
3483
+ ImageArn: smithy_client_1.expectString,
3484
+ ImageBuilderErrors: (_) => de_ResourceErrors(_, context),
3485
+ InstanceType: smithy_client_1.expectString,
3486
+ Name: smithy_client_1.expectString,
3487
+ NetworkAccessConfiguration: smithy_client_1._json,
3488
+ Platform: smithy_client_1.expectString,
3489
+ State: smithy_client_1.expectString,
3490
+ StateChangeReason: smithy_client_1._json,
3491
+ VpcConfig: smithy_client_1._json,
3492
+ });
3493
+ };
3494
+ const de_ImageBuilderList = (output, context) => {
4978
3495
  const retVal = (output || [])
4979
3496
  .filter((e) => e != null)
4980
3497
  .map((entry) => {
4981
- if (entry === null) {
4982
- return null;
4983
- }
4984
- return de_StackError(entry, context);
3498
+ return de_ImageBuilder(entry, context);
4985
3499
  });
4986
3500
  return retVal;
4987
3501
  };
4988
- const de_StackList = (output, context) => {
3502
+ const de_ImageList = (output, context) => {
4989
3503
  const retVal = (output || [])
4990
3504
  .filter((e) => e != null)
4991
3505
  .map((entry) => {
4992
- if (entry === null) {
4993
- return null;
4994
- }
4995
- return de_Stack(entry, context);
3506
+ return de_Image(entry, context);
4996
3507
  });
4997
3508
  return retVal;
4998
3509
  };
4999
- const de_StartFleetResult = (output, context) => {
5000
- return {};
5001
- };
5002
- const de_StartImageBuilderResult = (output, context) => {
5003
- return {
5004
- ImageBuilder: output.ImageBuilder != null ? de_ImageBuilder(output.ImageBuilder, context) : undefined,
5005
- };
5006
- };
5007
- const de_StopFleetResult = (output, context) => {
5008
- return {};
5009
- };
5010
- const de_StopImageBuilderResult = (output, context) => {
5011
- return {
5012
- ImageBuilder: output.ImageBuilder != null ? de_ImageBuilder(output.ImageBuilder, context) : undefined,
5013
- };
5014
- };
5015
- const de_StorageConnector = (output, context) => {
5016
- return {
5017
- ConnectorType: (0, smithy_client_1.expectString)(output.ConnectorType),
5018
- Domains: output.Domains != null ? de_DomainList(output.Domains, context) : undefined,
5019
- ResourceIdentifier: (0, smithy_client_1.expectString)(output.ResourceIdentifier),
5020
- };
3510
+ const de_ResourceError = (output, context) => {
3511
+ return (0, smithy_client_1.take)(output, {
3512
+ ErrorCode: smithy_client_1.expectString,
3513
+ ErrorMessage: smithy_client_1.expectString,
3514
+ ErrorTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3515
+ });
5021
3516
  };
5022
- const de_StorageConnectorList = (output, context) => {
3517
+ const de_ResourceErrors = (output, context) => {
5023
3518
  const retVal = (output || [])
5024
3519
  .filter((e) => e != null)
5025
3520
  .map((entry) => {
5026
- if (entry === null) {
5027
- return null;
5028
- }
5029
- return de_StorageConnector(entry, context);
3521
+ return de_ResourceError(entry, context);
5030
3522
  });
5031
3523
  return retVal;
5032
3524
  };
5033
- const de_StreamingExperienceSettings = (output, context) => {
5034
- return {
5035
- PreferredProtocol: (0, smithy_client_1.expectString)(output.PreferredProtocol),
5036
- };
3525
+ const de_Session = (output, context) => {
3526
+ return (0, smithy_client_1.take)(output, {
3527
+ AuthenticationType: smithy_client_1.expectString,
3528
+ ConnectionState: smithy_client_1.expectString,
3529
+ FleetName: smithy_client_1.expectString,
3530
+ Id: smithy_client_1.expectString,
3531
+ MaxExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3532
+ NetworkAccessConfiguration: smithy_client_1._json,
3533
+ StackName: smithy_client_1.expectString,
3534
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3535
+ State: smithy_client_1.expectString,
3536
+ UserId: smithy_client_1.expectString,
3537
+ });
5037
3538
  };
5038
- const de_StringList = (output, context) => {
3539
+ const de_SessionList = (output, context) => {
5039
3540
  const retVal = (output || [])
5040
3541
  .filter((e) => e != null)
5041
3542
  .map((entry) => {
5042
- if (entry === null) {
5043
- return null;
5044
- }
5045
- return (0, smithy_client_1.expectString)(entry);
3543
+ return de_Session(entry, context);
5046
3544
  });
5047
3545
  return retVal;
5048
3546
  };
5049
- const de_SubnetIdList = (output, context) => {
3547
+ const de_Stack = (output, context) => {
3548
+ return (0, smithy_client_1.take)(output, {
3549
+ AccessEndpoints: smithy_client_1._json,
3550
+ ApplicationSettings: smithy_client_1._json,
3551
+ Arn: smithy_client_1.expectString,
3552
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3553
+ Description: smithy_client_1.expectString,
3554
+ DisplayName: smithy_client_1.expectString,
3555
+ EmbedHostDomains: smithy_client_1._json,
3556
+ FeedbackURL: smithy_client_1.expectString,
3557
+ Name: smithy_client_1.expectString,
3558
+ RedirectURL: smithy_client_1.expectString,
3559
+ StackErrors: smithy_client_1._json,
3560
+ StorageConnectors: smithy_client_1._json,
3561
+ StreamingExperienceSettings: smithy_client_1._json,
3562
+ UserSettings: smithy_client_1._json,
3563
+ });
3564
+ };
3565
+ const de_StackList = (output, context) => {
5050
3566
  const retVal = (output || [])
5051
3567
  .filter((e) => e != null)
5052
3568
  .map((entry) => {
5053
- if (entry === null) {
5054
- return null;
5055
- }
5056
- return (0, smithy_client_1.expectString)(entry);
3569
+ return de_Stack(entry, context);
5057
3570
  });
5058
3571
  return retVal;
5059
3572
  };
5060
- const de_TagResourceResponse = (output, context) => {
5061
- return {};
5062
- };
5063
- const de_Tags = (output, context) => {
5064
- return Object.entries(output).reduce((acc, [key, value]) => {
5065
- if (value === null) {
5066
- return acc;
5067
- }
5068
- acc[key] = (0, smithy_client_1.expectString)(value);
5069
- return acc;
5070
- }, {});
3573
+ const de_StartImageBuilderResult = (output, context) => {
3574
+ return (0, smithy_client_1.take)(output, {
3575
+ ImageBuilder: (_) => de_ImageBuilder(_, context),
3576
+ });
5071
3577
  };
5072
- const de_UntagResourceResponse = (output, context) => {
5073
- return {};
3578
+ const de_StopImageBuilderResult = (output, context) => {
3579
+ return (0, smithy_client_1.take)(output, {
3580
+ ImageBuilder: (_) => de_ImageBuilder(_, context),
3581
+ });
5074
3582
  };
5075
3583
  const de_UpdateApplicationResult = (output, context) => {
5076
- return {
5077
- Application: output.Application != null ? de_Application(output.Application, context) : undefined,
5078
- };
3584
+ return (0, smithy_client_1.take)(output, {
3585
+ Application: (_) => de_Application(_, context),
3586
+ });
5079
3587
  };
5080
3588
  const de_UpdateDirectoryConfigResult = (output, context) => {
5081
- return {
5082
- DirectoryConfig: output.DirectoryConfig != null ? de_DirectoryConfig(output.DirectoryConfig, context) : undefined,
5083
- };
3589
+ return (0, smithy_client_1.take)(output, {
3590
+ DirectoryConfig: (_) => de_DirectoryConfig(_, context),
3591
+ });
5084
3592
  };
5085
3593
  const de_UpdateEntitlementResult = (output, context) => {
5086
- return {
5087
- Entitlement: output.Entitlement != null ? de_Entitlement(output.Entitlement, context) : undefined,
5088
- };
3594
+ return (0, smithy_client_1.take)(output, {
3595
+ Entitlement: (_) => de_Entitlement(_, context),
3596
+ });
5089
3597
  };
5090
3598
  const de_UpdateFleetResult = (output, context) => {
5091
- return {
5092
- Fleet: output.Fleet != null ? de_Fleet(output.Fleet, context) : undefined,
5093
- };
5094
- };
5095
- const de_UpdateImagePermissionsResult = (output, context) => {
5096
- return {};
3599
+ return (0, smithy_client_1.take)(output, {
3600
+ Fleet: (_) => de_Fleet(_, context),
3601
+ });
5097
3602
  };
5098
3603
  const de_UpdateStackResult = (output, context) => {
5099
- return {
5100
- Stack: output.Stack != null ? de_Stack(output.Stack, context) : undefined,
5101
- };
3604
+ return (0, smithy_client_1.take)(output, {
3605
+ Stack: (_) => de_Stack(_, context),
3606
+ });
5102
3607
  };
5103
3608
  const de_UsageReportSubscription = (output, context) => {
5104
- return {
5105
- LastGeneratedReportDate: output.LastGeneratedReportDate != null
5106
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastGeneratedReportDate)))
5107
- : undefined,
5108
- S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
5109
- Schedule: (0, smithy_client_1.expectString)(output.Schedule),
5110
- SubscriptionErrors: output.SubscriptionErrors != null
5111
- ? de_LastReportGenerationExecutionErrors(output.SubscriptionErrors, context)
5112
- : undefined,
5113
- };
3609
+ return (0, smithy_client_1.take)(output, {
3610
+ LastGeneratedReportDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3611
+ S3BucketName: smithy_client_1.expectString,
3612
+ Schedule: smithy_client_1.expectString,
3613
+ SubscriptionErrors: smithy_client_1._json,
3614
+ });
5114
3615
  };
5115
3616
  const de_UsageReportSubscriptionList = (output, context) => {
5116
3617
  const retVal = (output || [])
5117
3618
  .filter((e) => e != null)
5118
3619
  .map((entry) => {
5119
- if (entry === null) {
5120
- return null;
5121
- }
5122
3620
  return de_UsageReportSubscription(entry, context);
5123
3621
  });
5124
3622
  return retVal;
5125
3623
  };
5126
- const de_UsbDeviceFilterStrings = (output, context) => {
5127
- const retVal = (output || [])
5128
- .filter((e) => e != null)
5129
- .map((entry) => {
5130
- if (entry === null) {
5131
- return null;
5132
- }
5133
- return (0, smithy_client_1.expectString)(entry);
5134
- });
5135
- return retVal;
5136
- };
5137
3624
  const de_User = (output, context) => {
5138
- return {
5139
- Arn: (0, smithy_client_1.expectString)(output.Arn),
5140
- AuthenticationType: (0, smithy_client_1.expectString)(output.AuthenticationType),
5141
- CreatedTime: output.CreatedTime != null
5142
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTime)))
5143
- : undefined,
5144
- Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
5145
- FirstName: (0, smithy_client_1.expectString)(output.FirstName),
5146
- LastName: (0, smithy_client_1.expectString)(output.LastName),
5147
- Status: (0, smithy_client_1.expectString)(output.Status),
5148
- UserName: (0, smithy_client_1.expectString)(output.UserName),
5149
- };
3625
+ return (0, smithy_client_1.take)(output, {
3626
+ Arn: smithy_client_1.expectString,
3627
+ AuthenticationType: smithy_client_1.expectString,
3628
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3629
+ Enabled: smithy_client_1.expectBoolean,
3630
+ FirstName: smithy_client_1.expectString,
3631
+ LastName: smithy_client_1.expectString,
3632
+ Status: smithy_client_1.expectString,
3633
+ UserName: smithy_client_1.expectString,
3634
+ });
5150
3635
  };
5151
3636
  const de_UserList = (output, context) => {
5152
3637
  const retVal = (output || [])
5153
3638
  .filter((e) => e != null)
5154
3639
  .map((entry) => {
5155
- if (entry === null) {
5156
- return null;
5157
- }
5158
3640
  return de_User(entry, context);
5159
3641
  });
5160
3642
  return retVal;
5161
3643
  };
5162
- const de_UserSetting = (output, context) => {
5163
- return {
5164
- Action: (0, smithy_client_1.expectString)(output.Action),
5165
- Permission: (0, smithy_client_1.expectString)(output.Permission),
5166
- };
5167
- };
5168
- const de_UserSettingList = (output, context) => {
5169
- const retVal = (output || [])
5170
- .filter((e) => e != null)
5171
- .map((entry) => {
5172
- if (entry === null) {
5173
- return null;
5174
- }
5175
- return de_UserSetting(entry, context);
5176
- });
5177
- return retVal;
5178
- };
5179
- const de_UserStackAssociation = (output, context) => {
5180
- return {
5181
- AuthenticationType: (0, smithy_client_1.expectString)(output.AuthenticationType),
5182
- SendEmailNotification: (0, smithy_client_1.expectBoolean)(output.SendEmailNotification),
5183
- StackName: (0, smithy_client_1.expectString)(output.StackName),
5184
- UserName: (0, smithy_client_1.expectString)(output.UserName),
5185
- };
5186
- };
5187
- const de_UserStackAssociationError = (output, context) => {
5188
- return {
5189
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
5190
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
5191
- UserStackAssociation: output.UserStackAssociation != null ? de_UserStackAssociation(output.UserStackAssociation, context) : undefined,
5192
- };
5193
- };
5194
- const de_UserStackAssociationErrorList = (output, context) => {
5195
- const retVal = (output || [])
5196
- .filter((e) => e != null)
5197
- .map((entry) => {
5198
- if (entry === null) {
5199
- return null;
5200
- }
5201
- return de_UserStackAssociationError(entry, context);
5202
- });
5203
- return retVal;
5204
- };
5205
- const de_UserStackAssociationList = (output, context) => {
5206
- const retVal = (output || [])
5207
- .filter((e) => e != null)
5208
- .map((entry) => {
5209
- if (entry === null) {
5210
- return null;
5211
- }
5212
- return de_UserStackAssociation(entry, context);
5213
- });
5214
- return retVal;
5215
- };
5216
- const de_VpcConfig = (output, context) => {
5217
- return {
5218
- SecurityGroupIds: output.SecurityGroupIds != null ? de_SecurityGroupIdList(output.SecurityGroupIds, context) : undefined,
5219
- SubnetIds: output.SubnetIds != null ? de_SubnetIdList(output.SubnetIds, context) : undefined,
5220
- };
5221
- };
5222
3644
  const deserializeMetadata = (output) => ({
5223
3645
  httpStatusCode: output.statusCode,
5224
3646
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -5232,6 +3654,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5232
3654
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5233
3655
  };
5234
3656
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3657
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(AppStreamServiceException_1.AppStreamServiceException);
5235
3658
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5236
3659
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5237
3660
  const contents = {