@aws-sdk/client-appstream 3.310.0 → 3.315.0

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