@aws-sdk/client-workspaces 3.312.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,273 +10,273 @@ const WorkSpacesServiceException_1 = require("../models/WorkSpacesServiceExcepti
10
10
  const se_AssociateConnectionAliasCommand = async (input, context) => {
11
11
  const headers = sharedHeaders("AssociateConnectionAlias");
12
12
  let body;
13
- body = JSON.stringify(se_AssociateConnectionAliasRequest(input, context));
13
+ body = JSON.stringify((0, smithy_client_1._json)(input));
14
14
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
15
15
  };
16
16
  exports.se_AssociateConnectionAliasCommand = se_AssociateConnectionAliasCommand;
17
17
  const se_AssociateIpGroupsCommand = async (input, context) => {
18
18
  const headers = sharedHeaders("AssociateIpGroups");
19
19
  let body;
20
- body = JSON.stringify(se_AssociateIpGroupsRequest(input, context));
20
+ body = JSON.stringify((0, smithy_client_1._json)(input));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
23
  exports.se_AssociateIpGroupsCommand = se_AssociateIpGroupsCommand;
24
24
  const se_AuthorizeIpRulesCommand = async (input, context) => {
25
25
  const headers = sharedHeaders("AuthorizeIpRules");
26
26
  let body;
27
- body = JSON.stringify(se_AuthorizeIpRulesRequest(input, context));
27
+ body = JSON.stringify((0, smithy_client_1._json)(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
30
  exports.se_AuthorizeIpRulesCommand = se_AuthorizeIpRulesCommand;
31
31
  const se_CopyWorkspaceImageCommand = async (input, context) => {
32
32
  const headers = sharedHeaders("CopyWorkspaceImage");
33
33
  let body;
34
- body = JSON.stringify(se_CopyWorkspaceImageRequest(input, context));
34
+ body = JSON.stringify((0, smithy_client_1._json)(input));
35
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
36
  };
37
37
  exports.se_CopyWorkspaceImageCommand = se_CopyWorkspaceImageCommand;
38
38
  const se_CreateConnectClientAddInCommand = async (input, context) => {
39
39
  const headers = sharedHeaders("CreateConnectClientAddIn");
40
40
  let body;
41
- body = JSON.stringify(se_CreateConnectClientAddInRequest(input, context));
41
+ body = JSON.stringify((0, smithy_client_1._json)(input));
42
42
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
43
43
  };
44
44
  exports.se_CreateConnectClientAddInCommand = se_CreateConnectClientAddInCommand;
45
45
  const se_CreateConnectionAliasCommand = async (input, context) => {
46
46
  const headers = sharedHeaders("CreateConnectionAlias");
47
47
  let body;
48
- body = JSON.stringify(se_CreateConnectionAliasRequest(input, context));
48
+ body = JSON.stringify((0, smithy_client_1._json)(input));
49
49
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
50
50
  };
51
51
  exports.se_CreateConnectionAliasCommand = se_CreateConnectionAliasCommand;
52
52
  const se_CreateIpGroupCommand = async (input, context) => {
53
53
  const headers = sharedHeaders("CreateIpGroup");
54
54
  let body;
55
- body = JSON.stringify(se_CreateIpGroupRequest(input, context));
55
+ body = JSON.stringify((0, smithy_client_1._json)(input));
56
56
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
57
57
  };
58
58
  exports.se_CreateIpGroupCommand = se_CreateIpGroupCommand;
59
59
  const se_CreateStandbyWorkspacesCommand = async (input, context) => {
60
60
  const headers = sharedHeaders("CreateStandbyWorkspaces");
61
61
  let body;
62
- body = JSON.stringify(se_CreateStandbyWorkspacesRequest(input, context));
62
+ body = JSON.stringify((0, smithy_client_1._json)(input));
63
63
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
64
64
  };
65
65
  exports.se_CreateStandbyWorkspacesCommand = se_CreateStandbyWorkspacesCommand;
66
66
  const se_CreateTagsCommand = async (input, context) => {
67
67
  const headers = sharedHeaders("CreateTags");
68
68
  let body;
69
- body = JSON.stringify(se_CreateTagsRequest(input, context));
69
+ body = JSON.stringify((0, smithy_client_1._json)(input));
70
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
71
  };
72
72
  exports.se_CreateTagsCommand = se_CreateTagsCommand;
73
73
  const se_CreateUpdatedWorkspaceImageCommand = async (input, context) => {
74
74
  const headers = sharedHeaders("CreateUpdatedWorkspaceImage");
75
75
  let body;
76
- body = JSON.stringify(se_CreateUpdatedWorkspaceImageRequest(input, context));
76
+ body = JSON.stringify((0, smithy_client_1._json)(input));
77
77
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
78
  };
79
79
  exports.se_CreateUpdatedWorkspaceImageCommand = se_CreateUpdatedWorkspaceImageCommand;
80
80
  const se_CreateWorkspaceBundleCommand = async (input, context) => {
81
81
  const headers = sharedHeaders("CreateWorkspaceBundle");
82
82
  let body;
83
- body = JSON.stringify(se_CreateWorkspaceBundleRequest(input, context));
83
+ body = JSON.stringify((0, smithy_client_1._json)(input));
84
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
85
  };
86
86
  exports.se_CreateWorkspaceBundleCommand = se_CreateWorkspaceBundleCommand;
87
87
  const se_CreateWorkspaceImageCommand = async (input, context) => {
88
88
  const headers = sharedHeaders("CreateWorkspaceImage");
89
89
  let body;
90
- body = JSON.stringify(se_CreateWorkspaceImageRequest(input, context));
90
+ body = JSON.stringify((0, smithy_client_1._json)(input));
91
91
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
92
92
  };
93
93
  exports.se_CreateWorkspaceImageCommand = se_CreateWorkspaceImageCommand;
94
94
  const se_CreateWorkspacesCommand = async (input, context) => {
95
95
  const headers = sharedHeaders("CreateWorkspaces");
96
96
  let body;
97
- body = JSON.stringify(se_CreateWorkspacesRequest(input, context));
97
+ body = JSON.stringify((0, smithy_client_1._json)(input));
98
98
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
99
99
  };
100
100
  exports.se_CreateWorkspacesCommand = se_CreateWorkspacesCommand;
101
101
  const se_DeleteClientBrandingCommand = async (input, context) => {
102
102
  const headers = sharedHeaders("DeleteClientBranding");
103
103
  let body;
104
- body = JSON.stringify(se_DeleteClientBrandingRequest(input, context));
104
+ body = JSON.stringify((0, smithy_client_1._json)(input));
105
105
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
106
106
  };
107
107
  exports.se_DeleteClientBrandingCommand = se_DeleteClientBrandingCommand;
108
108
  const se_DeleteConnectClientAddInCommand = async (input, context) => {
109
109
  const headers = sharedHeaders("DeleteConnectClientAddIn");
110
110
  let body;
111
- body = JSON.stringify(se_DeleteConnectClientAddInRequest(input, context));
111
+ body = JSON.stringify((0, smithy_client_1._json)(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
114
  exports.se_DeleteConnectClientAddInCommand = se_DeleteConnectClientAddInCommand;
115
115
  const se_DeleteConnectionAliasCommand = async (input, context) => {
116
116
  const headers = sharedHeaders("DeleteConnectionAlias");
117
117
  let body;
118
- body = JSON.stringify(se_DeleteConnectionAliasRequest(input, context));
118
+ body = JSON.stringify((0, smithy_client_1._json)(input));
119
119
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
120
  };
121
121
  exports.se_DeleteConnectionAliasCommand = se_DeleteConnectionAliasCommand;
122
122
  const se_DeleteIpGroupCommand = async (input, context) => {
123
123
  const headers = sharedHeaders("DeleteIpGroup");
124
124
  let body;
125
- body = JSON.stringify(se_DeleteIpGroupRequest(input, context));
125
+ body = JSON.stringify((0, smithy_client_1._json)(input));
126
126
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
127
  };
128
128
  exports.se_DeleteIpGroupCommand = se_DeleteIpGroupCommand;
129
129
  const se_DeleteTagsCommand = async (input, context) => {
130
130
  const headers = sharedHeaders("DeleteTags");
131
131
  let body;
132
- body = JSON.stringify(se_DeleteTagsRequest(input, context));
132
+ body = JSON.stringify((0, smithy_client_1._json)(input));
133
133
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
134
134
  };
135
135
  exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
136
136
  const se_DeleteWorkspaceBundleCommand = async (input, context) => {
137
137
  const headers = sharedHeaders("DeleteWorkspaceBundle");
138
138
  let body;
139
- body = JSON.stringify(se_DeleteWorkspaceBundleRequest(input, context));
139
+ body = JSON.stringify((0, smithy_client_1._json)(input));
140
140
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
141
141
  };
142
142
  exports.se_DeleteWorkspaceBundleCommand = se_DeleteWorkspaceBundleCommand;
143
143
  const se_DeleteWorkspaceImageCommand = async (input, context) => {
144
144
  const headers = sharedHeaders("DeleteWorkspaceImage");
145
145
  let body;
146
- body = JSON.stringify(se_DeleteWorkspaceImageRequest(input, context));
146
+ body = JSON.stringify((0, smithy_client_1._json)(input));
147
147
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
148
148
  };
149
149
  exports.se_DeleteWorkspaceImageCommand = se_DeleteWorkspaceImageCommand;
150
150
  const se_DeregisterWorkspaceDirectoryCommand = async (input, context) => {
151
151
  const headers = sharedHeaders("DeregisterWorkspaceDirectory");
152
152
  let body;
153
- body = JSON.stringify(se_DeregisterWorkspaceDirectoryRequest(input, context));
153
+ body = JSON.stringify((0, smithy_client_1._json)(input));
154
154
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
155
  };
156
156
  exports.se_DeregisterWorkspaceDirectoryCommand = se_DeregisterWorkspaceDirectoryCommand;
157
157
  const se_DescribeAccountCommand = async (input, context) => {
158
158
  const headers = sharedHeaders("DescribeAccount");
159
159
  let body;
160
- body = JSON.stringify(se_DescribeAccountRequest(input, context));
160
+ body = JSON.stringify((0, smithy_client_1._json)(input));
161
161
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
162
  };
163
163
  exports.se_DescribeAccountCommand = se_DescribeAccountCommand;
164
164
  const se_DescribeAccountModificationsCommand = async (input, context) => {
165
165
  const headers = sharedHeaders("DescribeAccountModifications");
166
166
  let body;
167
- body = JSON.stringify(se_DescribeAccountModificationsRequest(input, context));
167
+ body = JSON.stringify((0, smithy_client_1._json)(input));
168
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
169
169
  };
170
170
  exports.se_DescribeAccountModificationsCommand = se_DescribeAccountModificationsCommand;
171
171
  const se_DescribeClientBrandingCommand = async (input, context) => {
172
172
  const headers = sharedHeaders("DescribeClientBranding");
173
173
  let body;
174
- body = JSON.stringify(se_DescribeClientBrandingRequest(input, context));
174
+ body = JSON.stringify((0, smithy_client_1._json)(input));
175
175
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
176
176
  };
177
177
  exports.se_DescribeClientBrandingCommand = se_DescribeClientBrandingCommand;
178
178
  const se_DescribeClientPropertiesCommand = async (input, context) => {
179
179
  const headers = sharedHeaders("DescribeClientProperties");
180
180
  let body;
181
- body = JSON.stringify(se_DescribeClientPropertiesRequest(input, context));
181
+ body = JSON.stringify((0, smithy_client_1._json)(input));
182
182
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
183
183
  };
184
184
  exports.se_DescribeClientPropertiesCommand = se_DescribeClientPropertiesCommand;
185
185
  const se_DescribeConnectClientAddInsCommand = async (input, context) => {
186
186
  const headers = sharedHeaders("DescribeConnectClientAddIns");
187
187
  let body;
188
- body = JSON.stringify(se_DescribeConnectClientAddInsRequest(input, context));
188
+ body = JSON.stringify((0, smithy_client_1._json)(input));
189
189
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
190
190
  };
191
191
  exports.se_DescribeConnectClientAddInsCommand = se_DescribeConnectClientAddInsCommand;
192
192
  const se_DescribeConnectionAliasesCommand = async (input, context) => {
193
193
  const headers = sharedHeaders("DescribeConnectionAliases");
194
194
  let body;
195
- body = JSON.stringify(se_DescribeConnectionAliasesRequest(input, context));
195
+ body = JSON.stringify((0, smithy_client_1._json)(input));
196
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
197
  };
198
198
  exports.se_DescribeConnectionAliasesCommand = se_DescribeConnectionAliasesCommand;
199
199
  const se_DescribeConnectionAliasPermissionsCommand = async (input, context) => {
200
200
  const headers = sharedHeaders("DescribeConnectionAliasPermissions");
201
201
  let body;
202
- body = JSON.stringify(se_DescribeConnectionAliasPermissionsRequest(input, context));
202
+ body = JSON.stringify((0, smithy_client_1._json)(input));
203
203
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
204
  };
205
205
  exports.se_DescribeConnectionAliasPermissionsCommand = se_DescribeConnectionAliasPermissionsCommand;
206
206
  const se_DescribeIpGroupsCommand = async (input, context) => {
207
207
  const headers = sharedHeaders("DescribeIpGroups");
208
208
  let body;
209
- body = JSON.stringify(se_DescribeIpGroupsRequest(input, context));
209
+ body = JSON.stringify((0, smithy_client_1._json)(input));
210
210
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
211
211
  };
212
212
  exports.se_DescribeIpGroupsCommand = se_DescribeIpGroupsCommand;
213
213
  const se_DescribeTagsCommand = async (input, context) => {
214
214
  const headers = sharedHeaders("DescribeTags");
215
215
  let body;
216
- body = JSON.stringify(se_DescribeTagsRequest(input, context));
216
+ body = JSON.stringify((0, smithy_client_1._json)(input));
217
217
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
218
218
  };
219
219
  exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
220
220
  const se_DescribeWorkspaceBundlesCommand = async (input, context) => {
221
221
  const headers = sharedHeaders("DescribeWorkspaceBundles");
222
222
  let body;
223
- body = JSON.stringify(se_DescribeWorkspaceBundlesRequest(input, context));
223
+ body = JSON.stringify((0, smithy_client_1._json)(input));
224
224
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
225
  };
226
226
  exports.se_DescribeWorkspaceBundlesCommand = se_DescribeWorkspaceBundlesCommand;
227
227
  const se_DescribeWorkspaceDirectoriesCommand = async (input, context) => {
228
228
  const headers = sharedHeaders("DescribeWorkspaceDirectories");
229
229
  let body;
230
- body = JSON.stringify(se_DescribeWorkspaceDirectoriesRequest(input, context));
230
+ body = JSON.stringify((0, smithy_client_1._json)(input));
231
231
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
232
232
  };
233
233
  exports.se_DescribeWorkspaceDirectoriesCommand = se_DescribeWorkspaceDirectoriesCommand;
234
234
  const se_DescribeWorkspaceImagePermissionsCommand = async (input, context) => {
235
235
  const headers = sharedHeaders("DescribeWorkspaceImagePermissions");
236
236
  let body;
237
- body = JSON.stringify(se_DescribeWorkspaceImagePermissionsRequest(input, context));
237
+ body = JSON.stringify((0, smithy_client_1._json)(input));
238
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
239
  };
240
240
  exports.se_DescribeWorkspaceImagePermissionsCommand = se_DescribeWorkspaceImagePermissionsCommand;
241
241
  const se_DescribeWorkspaceImagesCommand = async (input, context) => {
242
242
  const headers = sharedHeaders("DescribeWorkspaceImages");
243
243
  let body;
244
- body = JSON.stringify(se_DescribeWorkspaceImagesRequest(input, context));
244
+ body = JSON.stringify((0, smithy_client_1._json)(input));
245
245
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
246
  };
247
247
  exports.se_DescribeWorkspaceImagesCommand = se_DescribeWorkspaceImagesCommand;
248
248
  const se_DescribeWorkspacesCommand = async (input, context) => {
249
249
  const headers = sharedHeaders("DescribeWorkspaces");
250
250
  let body;
251
- body = JSON.stringify(se_DescribeWorkspacesRequest(input, context));
251
+ body = JSON.stringify((0, smithy_client_1._json)(input));
252
252
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
253
253
  };
254
254
  exports.se_DescribeWorkspacesCommand = se_DescribeWorkspacesCommand;
255
255
  const se_DescribeWorkspacesConnectionStatusCommand = async (input, context) => {
256
256
  const headers = sharedHeaders("DescribeWorkspacesConnectionStatus");
257
257
  let body;
258
- body = JSON.stringify(se_DescribeWorkspacesConnectionStatusRequest(input, context));
258
+ body = JSON.stringify((0, smithy_client_1._json)(input));
259
259
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
260
260
  };
261
261
  exports.se_DescribeWorkspacesConnectionStatusCommand = se_DescribeWorkspacesConnectionStatusCommand;
262
262
  const se_DescribeWorkspaceSnapshotsCommand = async (input, context) => {
263
263
  const headers = sharedHeaders("DescribeWorkspaceSnapshots");
264
264
  let body;
265
- body = JSON.stringify(se_DescribeWorkspaceSnapshotsRequest(input, context));
265
+ body = JSON.stringify((0, smithy_client_1._json)(input));
266
266
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
267
267
  };
268
268
  exports.se_DescribeWorkspaceSnapshotsCommand = se_DescribeWorkspaceSnapshotsCommand;
269
269
  const se_DisassociateConnectionAliasCommand = async (input, context) => {
270
270
  const headers = sharedHeaders("DisassociateConnectionAlias");
271
271
  let body;
272
- body = JSON.stringify(se_DisassociateConnectionAliasRequest(input, context));
272
+ body = JSON.stringify((0, smithy_client_1._json)(input));
273
273
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
274
  };
275
275
  exports.se_DisassociateConnectionAliasCommand = se_DisassociateConnectionAliasCommand;
276
276
  const se_DisassociateIpGroupsCommand = async (input, context) => {
277
277
  const headers = sharedHeaders("DisassociateIpGroups");
278
278
  let body;
279
- body = JSON.stringify(se_DisassociateIpGroupsRequest(input, context));
279
+ body = JSON.stringify((0, smithy_client_1._json)(input));
280
280
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
281
  };
282
282
  exports.se_DisassociateIpGroupsCommand = se_DisassociateIpGroupsCommand;
@@ -290,175 +290,175 @@ exports.se_ImportClientBrandingCommand = se_ImportClientBrandingCommand;
290
290
  const se_ImportWorkspaceImageCommand = async (input, context) => {
291
291
  const headers = sharedHeaders("ImportWorkspaceImage");
292
292
  let body;
293
- body = JSON.stringify(se_ImportWorkspaceImageRequest(input, context));
293
+ body = JSON.stringify((0, smithy_client_1._json)(input));
294
294
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
295
  };
296
296
  exports.se_ImportWorkspaceImageCommand = se_ImportWorkspaceImageCommand;
297
297
  const se_ListAvailableManagementCidrRangesCommand = async (input, context) => {
298
298
  const headers = sharedHeaders("ListAvailableManagementCidrRanges");
299
299
  let body;
300
- body = JSON.stringify(se_ListAvailableManagementCidrRangesRequest(input, context));
300
+ body = JSON.stringify((0, smithy_client_1._json)(input));
301
301
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
302
302
  };
303
303
  exports.se_ListAvailableManagementCidrRangesCommand = se_ListAvailableManagementCidrRangesCommand;
304
304
  const se_MigrateWorkspaceCommand = async (input, context) => {
305
305
  const headers = sharedHeaders("MigrateWorkspace");
306
306
  let body;
307
- body = JSON.stringify(se_MigrateWorkspaceRequest(input, context));
307
+ body = JSON.stringify((0, smithy_client_1._json)(input));
308
308
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
309
  };
310
310
  exports.se_MigrateWorkspaceCommand = se_MigrateWorkspaceCommand;
311
311
  const se_ModifyAccountCommand = async (input, context) => {
312
312
  const headers = sharedHeaders("ModifyAccount");
313
313
  let body;
314
- body = JSON.stringify(se_ModifyAccountRequest(input, context));
314
+ body = JSON.stringify((0, smithy_client_1._json)(input));
315
315
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
316
  };
317
317
  exports.se_ModifyAccountCommand = se_ModifyAccountCommand;
318
318
  const se_ModifyCertificateBasedAuthPropertiesCommand = async (input, context) => {
319
319
  const headers = sharedHeaders("ModifyCertificateBasedAuthProperties");
320
320
  let body;
321
- body = JSON.stringify(se_ModifyCertificateBasedAuthPropertiesRequest(input, context));
321
+ body = JSON.stringify((0, smithy_client_1._json)(input));
322
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
323
  };
324
324
  exports.se_ModifyCertificateBasedAuthPropertiesCommand = se_ModifyCertificateBasedAuthPropertiesCommand;
325
325
  const se_ModifyClientPropertiesCommand = async (input, context) => {
326
326
  const headers = sharedHeaders("ModifyClientProperties");
327
327
  let body;
328
- body = JSON.stringify(se_ModifyClientPropertiesRequest(input, context));
328
+ body = JSON.stringify((0, smithy_client_1._json)(input));
329
329
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
330
  };
331
331
  exports.se_ModifyClientPropertiesCommand = se_ModifyClientPropertiesCommand;
332
332
  const se_ModifySamlPropertiesCommand = async (input, context) => {
333
333
  const headers = sharedHeaders("ModifySamlProperties");
334
334
  let body;
335
- body = JSON.stringify(se_ModifySamlPropertiesRequest(input, context));
335
+ body = JSON.stringify((0, smithy_client_1._json)(input));
336
336
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
337
  };
338
338
  exports.se_ModifySamlPropertiesCommand = se_ModifySamlPropertiesCommand;
339
339
  const se_ModifySelfservicePermissionsCommand = async (input, context) => {
340
340
  const headers = sharedHeaders("ModifySelfservicePermissions");
341
341
  let body;
342
- body = JSON.stringify(se_ModifySelfservicePermissionsRequest(input, context));
342
+ body = JSON.stringify((0, smithy_client_1._json)(input));
343
343
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
344
344
  };
345
345
  exports.se_ModifySelfservicePermissionsCommand = se_ModifySelfservicePermissionsCommand;
346
346
  const se_ModifyWorkspaceAccessPropertiesCommand = async (input, context) => {
347
347
  const headers = sharedHeaders("ModifyWorkspaceAccessProperties");
348
348
  let body;
349
- body = JSON.stringify(se_ModifyWorkspaceAccessPropertiesRequest(input, context));
349
+ body = JSON.stringify((0, smithy_client_1._json)(input));
350
350
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
351
  };
352
352
  exports.se_ModifyWorkspaceAccessPropertiesCommand = se_ModifyWorkspaceAccessPropertiesCommand;
353
353
  const se_ModifyWorkspaceCreationPropertiesCommand = async (input, context) => {
354
354
  const headers = sharedHeaders("ModifyWorkspaceCreationProperties");
355
355
  let body;
356
- body = JSON.stringify(se_ModifyWorkspaceCreationPropertiesRequest(input, context));
356
+ body = JSON.stringify((0, smithy_client_1._json)(input));
357
357
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
358
  };
359
359
  exports.se_ModifyWorkspaceCreationPropertiesCommand = se_ModifyWorkspaceCreationPropertiesCommand;
360
360
  const se_ModifyWorkspacePropertiesCommand = async (input, context) => {
361
361
  const headers = sharedHeaders("ModifyWorkspaceProperties");
362
362
  let body;
363
- body = JSON.stringify(se_ModifyWorkspacePropertiesRequest(input, context));
363
+ body = JSON.stringify((0, smithy_client_1._json)(input));
364
364
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
365
  };
366
366
  exports.se_ModifyWorkspacePropertiesCommand = se_ModifyWorkspacePropertiesCommand;
367
367
  const se_ModifyWorkspaceStateCommand = async (input, context) => {
368
368
  const headers = sharedHeaders("ModifyWorkspaceState");
369
369
  let body;
370
- body = JSON.stringify(se_ModifyWorkspaceStateRequest(input, context));
370
+ body = JSON.stringify((0, smithy_client_1._json)(input));
371
371
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
372
  };
373
373
  exports.se_ModifyWorkspaceStateCommand = se_ModifyWorkspaceStateCommand;
374
374
  const se_RebootWorkspacesCommand = async (input, context) => {
375
375
  const headers = sharedHeaders("RebootWorkspaces");
376
376
  let body;
377
- body = JSON.stringify(se_RebootWorkspacesRequest(input, context));
377
+ body = JSON.stringify((0, smithy_client_1._json)(input));
378
378
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
379
379
  };
380
380
  exports.se_RebootWorkspacesCommand = se_RebootWorkspacesCommand;
381
381
  const se_RebuildWorkspacesCommand = async (input, context) => {
382
382
  const headers = sharedHeaders("RebuildWorkspaces");
383
383
  let body;
384
- body = JSON.stringify(se_RebuildWorkspacesRequest(input, context));
384
+ body = JSON.stringify((0, smithy_client_1._json)(input));
385
385
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
386
386
  };
387
387
  exports.se_RebuildWorkspacesCommand = se_RebuildWorkspacesCommand;
388
388
  const se_RegisterWorkspaceDirectoryCommand = async (input, context) => {
389
389
  const headers = sharedHeaders("RegisterWorkspaceDirectory");
390
390
  let body;
391
- body = JSON.stringify(se_RegisterWorkspaceDirectoryRequest(input, context));
391
+ body = JSON.stringify((0, smithy_client_1._json)(input));
392
392
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
393
393
  };
394
394
  exports.se_RegisterWorkspaceDirectoryCommand = se_RegisterWorkspaceDirectoryCommand;
395
395
  const se_RestoreWorkspaceCommand = async (input, context) => {
396
396
  const headers = sharedHeaders("RestoreWorkspace");
397
397
  let body;
398
- body = JSON.stringify(se_RestoreWorkspaceRequest(input, context));
398
+ body = JSON.stringify((0, smithy_client_1._json)(input));
399
399
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
400
400
  };
401
401
  exports.se_RestoreWorkspaceCommand = se_RestoreWorkspaceCommand;
402
402
  const se_RevokeIpRulesCommand = async (input, context) => {
403
403
  const headers = sharedHeaders("RevokeIpRules");
404
404
  let body;
405
- body = JSON.stringify(se_RevokeIpRulesRequest(input, context));
405
+ body = JSON.stringify((0, smithy_client_1._json)(input));
406
406
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
407
  };
408
408
  exports.se_RevokeIpRulesCommand = se_RevokeIpRulesCommand;
409
409
  const se_StartWorkspacesCommand = async (input, context) => {
410
410
  const headers = sharedHeaders("StartWorkspaces");
411
411
  let body;
412
- body = JSON.stringify(se_StartWorkspacesRequest(input, context));
412
+ body = JSON.stringify((0, smithy_client_1._json)(input));
413
413
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
414
  };
415
415
  exports.se_StartWorkspacesCommand = se_StartWorkspacesCommand;
416
416
  const se_StopWorkspacesCommand = async (input, context) => {
417
417
  const headers = sharedHeaders("StopWorkspaces");
418
418
  let body;
419
- body = JSON.stringify(se_StopWorkspacesRequest(input, context));
419
+ body = JSON.stringify((0, smithy_client_1._json)(input));
420
420
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
421
421
  };
422
422
  exports.se_StopWorkspacesCommand = se_StopWorkspacesCommand;
423
423
  const se_TerminateWorkspacesCommand = async (input, context) => {
424
424
  const headers = sharedHeaders("TerminateWorkspaces");
425
425
  let body;
426
- body = JSON.stringify(se_TerminateWorkspacesRequest(input, context));
426
+ body = JSON.stringify((0, smithy_client_1._json)(input));
427
427
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
428
428
  };
429
429
  exports.se_TerminateWorkspacesCommand = se_TerminateWorkspacesCommand;
430
430
  const se_UpdateConnectClientAddInCommand = async (input, context) => {
431
431
  const headers = sharedHeaders("UpdateConnectClientAddIn");
432
432
  let body;
433
- body = JSON.stringify(se_UpdateConnectClientAddInRequest(input, context));
433
+ body = JSON.stringify((0, smithy_client_1._json)(input));
434
434
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
435
435
  };
436
436
  exports.se_UpdateConnectClientAddInCommand = se_UpdateConnectClientAddInCommand;
437
437
  const se_UpdateConnectionAliasPermissionCommand = async (input, context) => {
438
438
  const headers = sharedHeaders("UpdateConnectionAliasPermission");
439
439
  let body;
440
- body = JSON.stringify(se_UpdateConnectionAliasPermissionRequest(input, context));
440
+ body = JSON.stringify((0, smithy_client_1._json)(input));
441
441
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
442
442
  };
443
443
  exports.se_UpdateConnectionAliasPermissionCommand = se_UpdateConnectionAliasPermissionCommand;
444
444
  const se_UpdateRulesOfIpGroupCommand = async (input, context) => {
445
445
  const headers = sharedHeaders("UpdateRulesOfIpGroup");
446
446
  let body;
447
- body = JSON.stringify(se_UpdateRulesOfIpGroupRequest(input, context));
447
+ body = JSON.stringify((0, smithy_client_1._json)(input));
448
448
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
449
  };
450
450
  exports.se_UpdateRulesOfIpGroupCommand = se_UpdateRulesOfIpGroupCommand;
451
451
  const se_UpdateWorkspaceBundleCommand = async (input, context) => {
452
452
  const headers = sharedHeaders("UpdateWorkspaceBundle");
453
453
  let body;
454
- body = JSON.stringify(se_UpdateWorkspaceBundleRequest(input, context));
454
+ body = JSON.stringify((0, smithy_client_1._json)(input));
455
455
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
456
  };
457
457
  exports.se_UpdateWorkspaceBundleCommand = se_UpdateWorkspaceBundleCommand;
458
458
  const se_UpdateWorkspaceImagePermissionCommand = async (input, context) => {
459
459
  const headers = sharedHeaders("UpdateWorkspaceImagePermission");
460
460
  let body;
461
- body = JSON.stringify(se_UpdateWorkspaceImagePermissionRequest(input, context));
461
+ body = JSON.stringify((0, smithy_client_1._json)(input));
462
462
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
463
463
  };
464
464
  exports.se_UpdateWorkspaceImagePermissionCommand = se_UpdateWorkspaceImagePermissionCommand;
@@ -468,12 +468,12 @@ const de_AssociateConnectionAliasCommand = async (output, context) => {
468
468
  }
469
469
  const data = await parseBody(output.body, context);
470
470
  let contents = {};
471
- contents = de_AssociateConnectionAliasResult(data, context);
471
+ contents = (0, smithy_client_1._json)(data);
472
472
  const response = {
473
473
  $metadata: deserializeMetadata(output),
474
474
  ...contents,
475
475
  };
476
- return Promise.resolve(response);
476
+ return response;
477
477
  };
478
478
  exports.de_AssociateConnectionAliasCommand = de_AssociateConnectionAliasCommand;
479
479
  const de_AssociateConnectionAliasCommandError = async (output, context) => {
@@ -503,10 +503,9 @@ const de_AssociateConnectionAliasCommandError = async (output, context) => {
503
503
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
504
504
  default:
505
505
  const parsedBody = parsedOutput.body;
506
- (0, smithy_client_1.throwDefaultError)({
506
+ return throwDefaultError({
507
507
  output,
508
508
  parsedBody,
509
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
510
509
  errorCode,
511
510
  });
512
511
  }
@@ -517,12 +516,12 @@ const de_AssociateIpGroupsCommand = async (output, context) => {
517
516
  }
518
517
  const data = await parseBody(output.body, context);
519
518
  let contents = {};
520
- contents = de_AssociateIpGroupsResult(data, context);
519
+ contents = (0, smithy_client_1._json)(data);
521
520
  const response = {
522
521
  $metadata: deserializeMetadata(output),
523
522
  ...contents,
524
523
  };
525
- return Promise.resolve(response);
524
+ return response;
526
525
  };
527
526
  exports.de_AssociateIpGroupsCommand = de_AssociateIpGroupsCommand;
528
527
  const de_AssociateIpGroupsCommandError = async (output, context) => {
@@ -552,10 +551,9 @@ const de_AssociateIpGroupsCommandError = async (output, context) => {
552
551
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
553
552
  default:
554
553
  const parsedBody = parsedOutput.body;
555
- (0, smithy_client_1.throwDefaultError)({
554
+ return throwDefaultError({
556
555
  output,
557
556
  parsedBody,
558
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
559
557
  errorCode,
560
558
  });
561
559
  }
@@ -566,12 +564,12 @@ const de_AuthorizeIpRulesCommand = async (output, context) => {
566
564
  }
567
565
  const data = await parseBody(output.body, context);
568
566
  let contents = {};
569
- contents = de_AuthorizeIpRulesResult(data, context);
567
+ contents = (0, smithy_client_1._json)(data);
570
568
  const response = {
571
569
  $metadata: deserializeMetadata(output),
572
570
  ...contents,
573
571
  };
574
- return Promise.resolve(response);
572
+ return response;
575
573
  };
576
574
  exports.de_AuthorizeIpRulesCommand = de_AuthorizeIpRulesCommand;
577
575
  const de_AuthorizeIpRulesCommandError = async (output, context) => {
@@ -598,10 +596,9 @@ const de_AuthorizeIpRulesCommandError = async (output, context) => {
598
596
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
599
597
  default:
600
598
  const parsedBody = parsedOutput.body;
601
- (0, smithy_client_1.throwDefaultError)({
599
+ return throwDefaultError({
602
600
  output,
603
601
  parsedBody,
604
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
605
602
  errorCode,
606
603
  });
607
604
  }
@@ -612,12 +609,12 @@ const de_CopyWorkspaceImageCommand = async (output, context) => {
612
609
  }
613
610
  const data = await parseBody(output.body, context);
614
611
  let contents = {};
615
- contents = de_CopyWorkspaceImageResult(data, context);
612
+ contents = (0, smithy_client_1._json)(data);
616
613
  const response = {
617
614
  $metadata: deserializeMetadata(output),
618
615
  ...contents,
619
616
  };
620
- return Promise.resolve(response);
617
+ return response;
621
618
  };
622
619
  exports.de_CopyWorkspaceImageCommand = de_CopyWorkspaceImageCommand;
623
620
  const de_CopyWorkspaceImageCommandError = async (output, context) => {
@@ -650,10 +647,9 @@ const de_CopyWorkspaceImageCommandError = async (output, context) => {
650
647
  throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
651
648
  default:
652
649
  const parsedBody = parsedOutput.body;
653
- (0, smithy_client_1.throwDefaultError)({
650
+ return throwDefaultError({
654
651
  output,
655
652
  parsedBody,
656
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
657
653
  errorCode,
658
654
  });
659
655
  }
@@ -664,12 +660,12 @@ const de_CreateConnectClientAddInCommand = async (output, context) => {
664
660
  }
665
661
  const data = await parseBody(output.body, context);
666
662
  let contents = {};
667
- contents = de_CreateConnectClientAddInResult(data, context);
663
+ contents = (0, smithy_client_1._json)(data);
668
664
  const response = {
669
665
  $metadata: deserializeMetadata(output),
670
666
  ...contents,
671
667
  };
672
- return Promise.resolve(response);
668
+ return response;
673
669
  };
674
670
  exports.de_CreateConnectClientAddInCommand = de_CreateConnectClientAddInCommand;
675
671
  const de_CreateConnectClientAddInCommandError = async (output, context) => {
@@ -696,10 +692,9 @@ const de_CreateConnectClientAddInCommandError = async (output, context) => {
696
692
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
697
693
  default:
698
694
  const parsedBody = parsedOutput.body;
699
- (0, smithy_client_1.throwDefaultError)({
695
+ return throwDefaultError({
700
696
  output,
701
697
  parsedBody,
702
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
703
698
  errorCode,
704
699
  });
705
700
  }
@@ -710,12 +705,12 @@ const de_CreateConnectionAliasCommand = async (output, context) => {
710
705
  }
711
706
  const data = await parseBody(output.body, context);
712
707
  let contents = {};
713
- contents = de_CreateConnectionAliasResult(data, context);
708
+ contents = (0, smithy_client_1._json)(data);
714
709
  const response = {
715
710
  $metadata: deserializeMetadata(output),
716
711
  ...contents,
717
712
  };
718
- return Promise.resolve(response);
713
+ return response;
719
714
  };
720
715
  exports.de_CreateConnectionAliasCommand = de_CreateConnectionAliasCommand;
721
716
  const de_CreateConnectionAliasCommandError = async (output, context) => {
@@ -745,10 +740,9 @@ const de_CreateConnectionAliasCommandError = async (output, context) => {
745
740
  throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
746
741
  default:
747
742
  const parsedBody = parsedOutput.body;
748
- (0, smithy_client_1.throwDefaultError)({
743
+ return throwDefaultError({
749
744
  output,
750
745
  parsedBody,
751
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
752
746
  errorCode,
753
747
  });
754
748
  }
@@ -759,12 +753,12 @@ const de_CreateIpGroupCommand = async (output, context) => {
759
753
  }
760
754
  const data = await parseBody(output.body, context);
761
755
  let contents = {};
762
- contents = de_CreateIpGroupResult(data, context);
756
+ contents = (0, smithy_client_1._json)(data);
763
757
  const response = {
764
758
  $metadata: deserializeMetadata(output),
765
759
  ...contents,
766
760
  };
767
- return Promise.resolve(response);
761
+ return response;
768
762
  };
769
763
  exports.de_CreateIpGroupCommand = de_CreateIpGroupCommand;
770
764
  const de_CreateIpGroupCommandError = async (output, context) => {
@@ -791,10 +785,9 @@ const de_CreateIpGroupCommandError = async (output, context) => {
791
785
  throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
792
786
  default:
793
787
  const parsedBody = parsedOutput.body;
794
- (0, smithy_client_1.throwDefaultError)({
788
+ return throwDefaultError({
795
789
  output,
796
790
  parsedBody,
797
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
798
791
  errorCode,
799
792
  });
800
793
  }
@@ -805,12 +798,12 @@ const de_CreateStandbyWorkspacesCommand = async (output, context) => {
805
798
  }
806
799
  const data = await parseBody(output.body, context);
807
800
  let contents = {};
808
- contents = de_CreateStandbyWorkspacesResult(data, context);
801
+ contents = (0, smithy_client_1._json)(data);
809
802
  const response = {
810
803
  $metadata: deserializeMetadata(output),
811
804
  ...contents,
812
805
  };
813
- return Promise.resolve(response);
806
+ return response;
814
807
  };
815
808
  exports.de_CreateStandbyWorkspacesCommand = de_CreateStandbyWorkspacesCommand;
816
809
  const de_CreateStandbyWorkspacesCommandError = async (output, context) => {
@@ -837,10 +830,9 @@ const de_CreateStandbyWorkspacesCommandError = async (output, context) => {
837
830
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
838
831
  default:
839
832
  const parsedBody = parsedOutput.body;
840
- (0, smithy_client_1.throwDefaultError)({
833
+ return throwDefaultError({
841
834
  output,
842
835
  parsedBody,
843
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
844
836
  errorCode,
845
837
  });
846
838
  }
@@ -851,12 +843,12 @@ const de_CreateTagsCommand = async (output, context) => {
851
843
  }
852
844
  const data = await parseBody(output.body, context);
853
845
  let contents = {};
854
- contents = de_CreateTagsResult(data, context);
846
+ contents = (0, smithy_client_1._json)(data);
855
847
  const response = {
856
848
  $metadata: deserializeMetadata(output),
857
849
  ...contents,
858
850
  };
859
- return Promise.resolve(response);
851
+ return response;
860
852
  };
861
853
  exports.de_CreateTagsCommand = de_CreateTagsCommand;
862
854
  const de_CreateTagsCommandError = async (output, context) => {
@@ -877,10 +869,9 @@ const de_CreateTagsCommandError = async (output, context) => {
877
869
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
878
870
  default:
879
871
  const parsedBody = parsedOutput.body;
880
- (0, smithy_client_1.throwDefaultError)({
872
+ return throwDefaultError({
881
873
  output,
882
874
  parsedBody,
883
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
884
875
  errorCode,
885
876
  });
886
877
  }
@@ -891,12 +882,12 @@ const de_CreateUpdatedWorkspaceImageCommand = async (output, context) => {
891
882
  }
892
883
  const data = await parseBody(output.body, context);
893
884
  let contents = {};
894
- contents = de_CreateUpdatedWorkspaceImageResult(data, context);
885
+ contents = (0, smithy_client_1._json)(data);
895
886
  const response = {
896
887
  $metadata: deserializeMetadata(output),
897
888
  ...contents,
898
889
  };
899
- return Promise.resolve(response);
890
+ return response;
900
891
  };
901
892
  exports.de_CreateUpdatedWorkspaceImageCommand = de_CreateUpdatedWorkspaceImageCommand;
902
893
  const de_CreateUpdatedWorkspaceImageCommandError = async (output, context) => {
@@ -929,10 +920,9 @@ const de_CreateUpdatedWorkspaceImageCommandError = async (output, context) => {
929
920
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
930
921
  default:
931
922
  const parsedBody = parsedOutput.body;
932
- (0, smithy_client_1.throwDefaultError)({
923
+ return throwDefaultError({
933
924
  output,
934
925
  parsedBody,
935
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
936
926
  errorCode,
937
927
  });
938
928
  }
@@ -948,7 +938,7 @@ const de_CreateWorkspaceBundleCommand = async (output, context) => {
948
938
  $metadata: deserializeMetadata(output),
949
939
  ...contents,
950
940
  };
951
- return Promise.resolve(response);
941
+ return response;
952
942
  };
953
943
  exports.de_CreateWorkspaceBundleCommand = de_CreateWorkspaceBundleCommand;
954
944
  const de_CreateWorkspaceBundleCommandError = async (output, context) => {
@@ -978,10 +968,9 @@ const de_CreateWorkspaceBundleCommandError = async (output, context) => {
978
968
  throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
979
969
  default:
980
970
  const parsedBody = parsedOutput.body;
981
- (0, smithy_client_1.throwDefaultError)({
971
+ return throwDefaultError({
982
972
  output,
983
973
  parsedBody,
984
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
985
974
  errorCode,
986
975
  });
987
976
  }
@@ -997,7 +986,7 @@ const de_CreateWorkspaceImageCommand = async (output, context) => {
997
986
  $metadata: deserializeMetadata(output),
998
987
  ...contents,
999
988
  };
1000
- return Promise.resolve(response);
989
+ return response;
1001
990
  };
1002
991
  exports.de_CreateWorkspaceImageCommand = de_CreateWorkspaceImageCommand;
1003
992
  const de_CreateWorkspaceImageCommandError = async (output, context) => {
@@ -1030,10 +1019,9 @@ const de_CreateWorkspaceImageCommandError = async (output, context) => {
1030
1019
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1031
1020
  default:
1032
1021
  const parsedBody = parsedOutput.body;
1033
- (0, smithy_client_1.throwDefaultError)({
1022
+ return throwDefaultError({
1034
1023
  output,
1035
1024
  parsedBody,
1036
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1037
1025
  errorCode,
1038
1026
  });
1039
1027
  }
@@ -1044,12 +1032,12 @@ const de_CreateWorkspacesCommand = async (output, context) => {
1044
1032
  }
1045
1033
  const data = await parseBody(output.body, context);
1046
1034
  let contents = {};
1047
- contents = de_CreateWorkspacesResult(data, context);
1035
+ contents = (0, smithy_client_1._json)(data);
1048
1036
  const response = {
1049
1037
  $metadata: deserializeMetadata(output),
1050
1038
  ...contents,
1051
1039
  };
1052
- return Promise.resolve(response);
1040
+ return response;
1053
1041
  };
1054
1042
  exports.de_CreateWorkspacesCommand = de_CreateWorkspacesCommand;
1055
1043
  const de_CreateWorkspacesCommandError = async (output, context) => {
@@ -1067,10 +1055,9 @@ const de_CreateWorkspacesCommandError = async (output, context) => {
1067
1055
  throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1068
1056
  default:
1069
1057
  const parsedBody = parsedOutput.body;
1070
- (0, smithy_client_1.throwDefaultError)({
1058
+ return throwDefaultError({
1071
1059
  output,
1072
1060
  parsedBody,
1073
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1074
1061
  errorCode,
1075
1062
  });
1076
1063
  }
@@ -1081,12 +1068,12 @@ const de_DeleteClientBrandingCommand = async (output, context) => {
1081
1068
  }
1082
1069
  const data = await parseBody(output.body, context);
1083
1070
  let contents = {};
1084
- contents = de_DeleteClientBrandingResult(data, context);
1071
+ contents = (0, smithy_client_1._json)(data);
1085
1072
  const response = {
1086
1073
  $metadata: deserializeMetadata(output),
1087
1074
  ...contents,
1088
1075
  };
1089
- return Promise.resolve(response);
1076
+ return response;
1090
1077
  };
1091
1078
  exports.de_DeleteClientBrandingCommand = de_DeleteClientBrandingCommand;
1092
1079
  const de_DeleteClientBrandingCommandError = async (output, context) => {
@@ -1107,10 +1094,9 @@ const de_DeleteClientBrandingCommandError = async (output, context) => {
1107
1094
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1108
1095
  default:
1109
1096
  const parsedBody = parsedOutput.body;
1110
- (0, smithy_client_1.throwDefaultError)({
1097
+ return throwDefaultError({
1111
1098
  output,
1112
1099
  parsedBody,
1113
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1114
1100
  errorCode,
1115
1101
  });
1116
1102
  }
@@ -1121,12 +1107,12 @@ const de_DeleteConnectClientAddInCommand = async (output, context) => {
1121
1107
  }
1122
1108
  const data = await parseBody(output.body, context);
1123
1109
  let contents = {};
1124
- contents = de_DeleteConnectClientAddInResult(data, context);
1110
+ contents = (0, smithy_client_1._json)(data);
1125
1111
  const response = {
1126
1112
  $metadata: deserializeMetadata(output),
1127
1113
  ...contents,
1128
1114
  };
1129
- return Promise.resolve(response);
1115
+ return response;
1130
1116
  };
1131
1117
  exports.de_DeleteConnectClientAddInCommand = de_DeleteConnectClientAddInCommand;
1132
1118
  const de_DeleteConnectClientAddInCommandError = async (output, context) => {
@@ -1147,10 +1133,9 @@ const de_DeleteConnectClientAddInCommandError = async (output, context) => {
1147
1133
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1148
1134
  default:
1149
1135
  const parsedBody = parsedOutput.body;
1150
- (0, smithy_client_1.throwDefaultError)({
1136
+ return throwDefaultError({
1151
1137
  output,
1152
1138
  parsedBody,
1153
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1154
1139
  errorCode,
1155
1140
  });
1156
1141
  }
@@ -1161,12 +1146,12 @@ const de_DeleteConnectionAliasCommand = async (output, context) => {
1161
1146
  }
1162
1147
  const data = await parseBody(output.body, context);
1163
1148
  let contents = {};
1164
- contents = de_DeleteConnectionAliasResult(data, context);
1149
+ contents = (0, smithy_client_1._json)(data);
1165
1150
  const response = {
1166
1151
  $metadata: deserializeMetadata(output),
1167
1152
  ...contents,
1168
1153
  };
1169
- return Promise.resolve(response);
1154
+ return response;
1170
1155
  };
1171
1156
  exports.de_DeleteConnectionAliasCommand = de_DeleteConnectionAliasCommand;
1172
1157
  const de_DeleteConnectionAliasCommandError = async (output, context) => {
@@ -1196,10 +1181,9 @@ const de_DeleteConnectionAliasCommandError = async (output, context) => {
1196
1181
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1197
1182
  default:
1198
1183
  const parsedBody = parsedOutput.body;
1199
- (0, smithy_client_1.throwDefaultError)({
1184
+ return throwDefaultError({
1200
1185
  output,
1201
1186
  parsedBody,
1202
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1203
1187
  errorCode,
1204
1188
  });
1205
1189
  }
@@ -1210,12 +1194,12 @@ const de_DeleteIpGroupCommand = async (output, context) => {
1210
1194
  }
1211
1195
  const data = await parseBody(output.body, context);
1212
1196
  let contents = {};
1213
- contents = de_DeleteIpGroupResult(data, context);
1197
+ contents = (0, smithy_client_1._json)(data);
1214
1198
  const response = {
1215
1199
  $metadata: deserializeMetadata(output),
1216
1200
  ...contents,
1217
1201
  };
1218
- return Promise.resolve(response);
1202
+ return response;
1219
1203
  };
1220
1204
  exports.de_DeleteIpGroupCommand = de_DeleteIpGroupCommand;
1221
1205
  const de_DeleteIpGroupCommandError = async (output, context) => {
@@ -1239,10 +1223,9 @@ const de_DeleteIpGroupCommandError = async (output, context) => {
1239
1223
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1240
1224
  default:
1241
1225
  const parsedBody = parsedOutput.body;
1242
- (0, smithy_client_1.throwDefaultError)({
1226
+ return throwDefaultError({
1243
1227
  output,
1244
1228
  parsedBody,
1245
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1246
1229
  errorCode,
1247
1230
  });
1248
1231
  }
@@ -1253,12 +1236,12 @@ const de_DeleteTagsCommand = async (output, context) => {
1253
1236
  }
1254
1237
  const data = await parseBody(output.body, context);
1255
1238
  let contents = {};
1256
- contents = de_DeleteTagsResult(data, context);
1239
+ contents = (0, smithy_client_1._json)(data);
1257
1240
  const response = {
1258
1241
  $metadata: deserializeMetadata(output),
1259
1242
  ...contents,
1260
1243
  };
1261
- return Promise.resolve(response);
1244
+ return response;
1262
1245
  };
1263
1246
  exports.de_DeleteTagsCommand = de_DeleteTagsCommand;
1264
1247
  const de_DeleteTagsCommandError = async (output, context) => {
@@ -1276,10 +1259,9 @@ const de_DeleteTagsCommandError = async (output, context) => {
1276
1259
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1277
1260
  default:
1278
1261
  const parsedBody = parsedOutput.body;
1279
- (0, smithy_client_1.throwDefaultError)({
1262
+ return throwDefaultError({
1280
1263
  output,
1281
1264
  parsedBody,
1282
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1283
1265
  errorCode,
1284
1266
  });
1285
1267
  }
@@ -1290,12 +1272,12 @@ const de_DeleteWorkspaceBundleCommand = async (output, context) => {
1290
1272
  }
1291
1273
  const data = await parseBody(output.body, context);
1292
1274
  let contents = {};
1293
- contents = de_DeleteWorkspaceBundleResult(data, context);
1275
+ contents = (0, smithy_client_1._json)(data);
1294
1276
  const response = {
1295
1277
  $metadata: deserializeMetadata(output),
1296
1278
  ...contents,
1297
1279
  };
1298
- return Promise.resolve(response);
1280
+ return response;
1299
1281
  };
1300
1282
  exports.de_DeleteWorkspaceBundleCommand = de_DeleteWorkspaceBundleCommand;
1301
1283
  const de_DeleteWorkspaceBundleCommandError = async (output, context) => {
@@ -1319,10 +1301,9 @@ const de_DeleteWorkspaceBundleCommandError = async (output, context) => {
1319
1301
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1320
1302
  default:
1321
1303
  const parsedBody = parsedOutput.body;
1322
- (0, smithy_client_1.throwDefaultError)({
1304
+ return throwDefaultError({
1323
1305
  output,
1324
1306
  parsedBody,
1325
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1326
1307
  errorCode,
1327
1308
  });
1328
1309
  }
@@ -1333,12 +1314,12 @@ const de_DeleteWorkspaceImageCommand = async (output, context) => {
1333
1314
  }
1334
1315
  const data = await parseBody(output.body, context);
1335
1316
  let contents = {};
1336
- contents = de_DeleteWorkspaceImageResult(data, context);
1317
+ contents = (0, smithy_client_1._json)(data);
1337
1318
  const response = {
1338
1319
  $metadata: deserializeMetadata(output),
1339
1320
  ...contents,
1340
1321
  };
1341
- return Promise.resolve(response);
1322
+ return response;
1342
1323
  };
1343
1324
  exports.de_DeleteWorkspaceImageCommand = de_DeleteWorkspaceImageCommand;
1344
1325
  const de_DeleteWorkspaceImageCommandError = async (output, context) => {
@@ -1359,10 +1340,9 @@ const de_DeleteWorkspaceImageCommandError = async (output, context) => {
1359
1340
  throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
1360
1341
  default:
1361
1342
  const parsedBody = parsedOutput.body;
1362
- (0, smithy_client_1.throwDefaultError)({
1343
+ return throwDefaultError({
1363
1344
  output,
1364
1345
  parsedBody,
1365
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1366
1346
  errorCode,
1367
1347
  });
1368
1348
  }
@@ -1373,12 +1353,12 @@ const de_DeregisterWorkspaceDirectoryCommand = async (output, context) => {
1373
1353
  }
1374
1354
  const data = await parseBody(output.body, context);
1375
1355
  let contents = {};
1376
- contents = de_DeregisterWorkspaceDirectoryResult(data, context);
1356
+ contents = (0, smithy_client_1._json)(data);
1377
1357
  const response = {
1378
1358
  $metadata: deserializeMetadata(output),
1379
1359
  ...contents,
1380
1360
  };
1381
- return Promise.resolve(response);
1361
+ return response;
1382
1362
  };
1383
1363
  exports.de_DeregisterWorkspaceDirectoryCommand = de_DeregisterWorkspaceDirectoryCommand;
1384
1364
  const de_DeregisterWorkspaceDirectoryCommandError = async (output, context) => {
@@ -1405,10 +1385,9 @@ const de_DeregisterWorkspaceDirectoryCommandError = async (output, context) => {
1405
1385
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1406
1386
  default:
1407
1387
  const parsedBody = parsedOutput.body;
1408
- (0, smithy_client_1.throwDefaultError)({
1388
+ return throwDefaultError({
1409
1389
  output,
1410
1390
  parsedBody,
1411
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1412
1391
  errorCode,
1413
1392
  });
1414
1393
  }
@@ -1419,12 +1398,12 @@ const de_DescribeAccountCommand = async (output, context) => {
1419
1398
  }
1420
1399
  const data = await parseBody(output.body, context);
1421
1400
  let contents = {};
1422
- contents = de_DescribeAccountResult(data, context);
1401
+ contents = (0, smithy_client_1._json)(data);
1423
1402
  const response = {
1424
1403
  $metadata: deserializeMetadata(output),
1425
1404
  ...contents,
1426
1405
  };
1427
- return Promise.resolve(response);
1406
+ return response;
1428
1407
  };
1429
1408
  exports.de_DescribeAccountCommand = de_DescribeAccountCommand;
1430
1409
  const de_DescribeAccountCommandError = async (output, context) => {
@@ -1439,10 +1418,9 @@ const de_DescribeAccountCommandError = async (output, context) => {
1439
1418
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1440
1419
  default:
1441
1420
  const parsedBody = parsedOutput.body;
1442
- (0, smithy_client_1.throwDefaultError)({
1421
+ return throwDefaultError({
1443
1422
  output,
1444
1423
  parsedBody,
1445
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1446
1424
  errorCode,
1447
1425
  });
1448
1426
  }
@@ -1458,7 +1436,7 @@ const de_DescribeAccountModificationsCommand = async (output, context) => {
1458
1436
  $metadata: deserializeMetadata(output),
1459
1437
  ...contents,
1460
1438
  };
1461
- return Promise.resolve(response);
1439
+ return response;
1462
1440
  };
1463
1441
  exports.de_DescribeAccountModificationsCommand = de_DescribeAccountModificationsCommand;
1464
1442
  const de_DescribeAccountModificationsCommandError = async (output, context) => {
@@ -1473,10 +1451,9 @@ const de_DescribeAccountModificationsCommandError = async (output, context) => {
1473
1451
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1474
1452
  default:
1475
1453
  const parsedBody = parsedOutput.body;
1476
- (0, smithy_client_1.throwDefaultError)({
1454
+ return throwDefaultError({
1477
1455
  output,
1478
1456
  parsedBody,
1479
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1480
1457
  errorCode,
1481
1458
  });
1482
1459
  }
@@ -1487,12 +1464,12 @@ const de_DescribeClientBrandingCommand = async (output, context) => {
1487
1464
  }
1488
1465
  const data = await parseBody(output.body, context);
1489
1466
  let contents = {};
1490
- contents = de_DescribeClientBrandingResult(data, context);
1467
+ contents = (0, smithy_client_1._json)(data);
1491
1468
  const response = {
1492
1469
  $metadata: deserializeMetadata(output),
1493
1470
  ...contents,
1494
1471
  };
1495
- return Promise.resolve(response);
1472
+ return response;
1496
1473
  };
1497
1474
  exports.de_DescribeClientBrandingCommand = de_DescribeClientBrandingCommand;
1498
1475
  const de_DescribeClientBrandingCommandError = async (output, context) => {
@@ -1513,10 +1490,9 @@ const de_DescribeClientBrandingCommandError = async (output, context) => {
1513
1490
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1514
1491
  default:
1515
1492
  const parsedBody = parsedOutput.body;
1516
- (0, smithy_client_1.throwDefaultError)({
1493
+ return throwDefaultError({
1517
1494
  output,
1518
1495
  parsedBody,
1519
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1520
1496
  errorCode,
1521
1497
  });
1522
1498
  }
@@ -1527,12 +1503,12 @@ const de_DescribeClientPropertiesCommand = async (output, context) => {
1527
1503
  }
1528
1504
  const data = await parseBody(output.body, context);
1529
1505
  let contents = {};
1530
- contents = de_DescribeClientPropertiesResult(data, context);
1506
+ contents = (0, smithy_client_1._json)(data);
1531
1507
  const response = {
1532
1508
  $metadata: deserializeMetadata(output),
1533
1509
  ...contents,
1534
1510
  };
1535
- return Promise.resolve(response);
1511
+ return response;
1536
1512
  };
1537
1513
  exports.de_DescribeClientPropertiesCommand = de_DescribeClientPropertiesCommand;
1538
1514
  const de_DescribeClientPropertiesCommandError = async (output, context) => {
@@ -1553,10 +1529,9 @@ const de_DescribeClientPropertiesCommandError = async (output, context) => {
1553
1529
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1554
1530
  default:
1555
1531
  const parsedBody = parsedOutput.body;
1556
- (0, smithy_client_1.throwDefaultError)({
1532
+ return throwDefaultError({
1557
1533
  output,
1558
1534
  parsedBody,
1559
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1560
1535
  errorCode,
1561
1536
  });
1562
1537
  }
@@ -1567,12 +1542,12 @@ const de_DescribeConnectClientAddInsCommand = async (output, context) => {
1567
1542
  }
1568
1543
  const data = await parseBody(output.body, context);
1569
1544
  let contents = {};
1570
- contents = de_DescribeConnectClientAddInsResult(data, context);
1545
+ contents = (0, smithy_client_1._json)(data);
1571
1546
  const response = {
1572
1547
  $metadata: deserializeMetadata(output),
1573
1548
  ...contents,
1574
1549
  };
1575
- return Promise.resolve(response);
1550
+ return response;
1576
1551
  };
1577
1552
  exports.de_DescribeConnectClientAddInsCommand = de_DescribeConnectClientAddInsCommand;
1578
1553
  const de_DescribeConnectClientAddInsCommandError = async (output, context) => {
@@ -1593,10 +1568,9 @@ const de_DescribeConnectClientAddInsCommandError = async (output, context) => {
1593
1568
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1594
1569
  default:
1595
1570
  const parsedBody = parsedOutput.body;
1596
- (0, smithy_client_1.throwDefaultError)({
1571
+ return throwDefaultError({
1597
1572
  output,
1598
1573
  parsedBody,
1599
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1600
1574
  errorCode,
1601
1575
  });
1602
1576
  }
@@ -1607,12 +1581,12 @@ const de_DescribeConnectionAliasesCommand = async (output, context) => {
1607
1581
  }
1608
1582
  const data = await parseBody(output.body, context);
1609
1583
  let contents = {};
1610
- contents = de_DescribeConnectionAliasesResult(data, context);
1584
+ contents = (0, smithy_client_1._json)(data);
1611
1585
  const response = {
1612
1586
  $metadata: deserializeMetadata(output),
1613
1587
  ...contents,
1614
1588
  };
1615
- return Promise.resolve(response);
1589
+ return response;
1616
1590
  };
1617
1591
  exports.de_DescribeConnectionAliasesCommand = de_DescribeConnectionAliasesCommand;
1618
1592
  const de_DescribeConnectionAliasesCommandError = async (output, context) => {
@@ -1633,10 +1607,9 @@ const de_DescribeConnectionAliasesCommandError = async (output, context) => {
1633
1607
  throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
1634
1608
  default:
1635
1609
  const parsedBody = parsedOutput.body;
1636
- (0, smithy_client_1.throwDefaultError)({
1610
+ return throwDefaultError({
1637
1611
  output,
1638
1612
  parsedBody,
1639
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1640
1613
  errorCode,
1641
1614
  });
1642
1615
  }
@@ -1647,12 +1620,12 @@ const de_DescribeConnectionAliasPermissionsCommand = async (output, context) =>
1647
1620
  }
1648
1621
  const data = await parseBody(output.body, context);
1649
1622
  let contents = {};
1650
- contents = de_DescribeConnectionAliasPermissionsResult(data, context);
1623
+ contents = (0, smithy_client_1._json)(data);
1651
1624
  const response = {
1652
1625
  $metadata: deserializeMetadata(output),
1653
1626
  ...contents,
1654
1627
  };
1655
- return Promise.resolve(response);
1628
+ return response;
1656
1629
  };
1657
1630
  exports.de_DescribeConnectionAliasPermissionsCommand = de_DescribeConnectionAliasPermissionsCommand;
1658
1631
  const de_DescribeConnectionAliasPermissionsCommandError = async (output, context) => {
@@ -1676,10 +1649,9 @@ const de_DescribeConnectionAliasPermissionsCommandError = async (output, context
1676
1649
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1677
1650
  default:
1678
1651
  const parsedBody = parsedOutput.body;
1679
- (0, smithy_client_1.throwDefaultError)({
1652
+ return throwDefaultError({
1680
1653
  output,
1681
1654
  parsedBody,
1682
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1683
1655
  errorCode,
1684
1656
  });
1685
1657
  }
@@ -1690,12 +1662,12 @@ const de_DescribeIpGroupsCommand = async (output, context) => {
1690
1662
  }
1691
1663
  const data = await parseBody(output.body, context);
1692
1664
  let contents = {};
1693
- contents = de_DescribeIpGroupsResult(data, context);
1665
+ contents = (0, smithy_client_1._json)(data);
1694
1666
  const response = {
1695
1667
  $metadata: deserializeMetadata(output),
1696
1668
  ...contents,
1697
1669
  };
1698
- return Promise.resolve(response);
1670
+ return response;
1699
1671
  };
1700
1672
  exports.de_DescribeIpGroupsCommand = de_DescribeIpGroupsCommand;
1701
1673
  const de_DescribeIpGroupsCommandError = async (output, context) => {
@@ -1713,10 +1685,9 @@ const de_DescribeIpGroupsCommandError = async (output, context) => {
1713
1685
  throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
1714
1686
  default:
1715
1687
  const parsedBody = parsedOutput.body;
1716
- (0, smithy_client_1.throwDefaultError)({
1688
+ return throwDefaultError({
1717
1689
  output,
1718
1690
  parsedBody,
1719
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1720
1691
  errorCode,
1721
1692
  });
1722
1693
  }
@@ -1727,12 +1698,12 @@ const de_DescribeTagsCommand = async (output, context) => {
1727
1698
  }
1728
1699
  const data = await parseBody(output.body, context);
1729
1700
  let contents = {};
1730
- contents = de_DescribeTagsResult(data, context);
1701
+ contents = (0, smithy_client_1._json)(data);
1731
1702
  const response = {
1732
1703
  $metadata: deserializeMetadata(output),
1733
1704
  ...contents,
1734
1705
  };
1735
- return Promise.resolve(response);
1706
+ return response;
1736
1707
  };
1737
1708
  exports.de_DescribeTagsCommand = de_DescribeTagsCommand;
1738
1709
  const de_DescribeTagsCommandError = async (output, context) => {
@@ -1747,10 +1718,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
1747
1718
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1748
1719
  default:
1749
1720
  const parsedBody = parsedOutput.body;
1750
- (0, smithy_client_1.throwDefaultError)({
1721
+ return throwDefaultError({
1751
1722
  output,
1752
1723
  parsedBody,
1753
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1754
1724
  errorCode,
1755
1725
  });
1756
1726
  }
@@ -1766,7 +1736,7 @@ const de_DescribeWorkspaceBundlesCommand = async (output, context) => {
1766
1736
  $metadata: deserializeMetadata(output),
1767
1737
  ...contents,
1768
1738
  };
1769
- return Promise.resolve(response);
1739
+ return response;
1770
1740
  };
1771
1741
  exports.de_DescribeWorkspaceBundlesCommand = de_DescribeWorkspaceBundlesCommand;
1772
1742
  const de_DescribeWorkspaceBundlesCommandError = async (output, context) => {
@@ -1781,10 +1751,9 @@ const de_DescribeWorkspaceBundlesCommandError = async (output, context) => {
1781
1751
  throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
1782
1752
  default:
1783
1753
  const parsedBody = parsedOutput.body;
1784
- (0, smithy_client_1.throwDefaultError)({
1754
+ return throwDefaultError({
1785
1755
  output,
1786
1756
  parsedBody,
1787
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1788
1757
  errorCode,
1789
1758
  });
1790
1759
  }
@@ -1795,12 +1764,12 @@ const de_DescribeWorkspaceDirectoriesCommand = async (output, context) => {
1795
1764
  }
1796
1765
  const data = await parseBody(output.body, context);
1797
1766
  let contents = {};
1798
- contents = de_DescribeWorkspaceDirectoriesResult(data, context);
1767
+ contents = (0, smithy_client_1._json)(data);
1799
1768
  const response = {
1800
1769
  $metadata: deserializeMetadata(output),
1801
1770
  ...contents,
1802
1771
  };
1803
- return Promise.resolve(response);
1772
+ return response;
1804
1773
  };
1805
1774
  exports.de_DescribeWorkspaceDirectoriesCommand = de_DescribeWorkspaceDirectoriesCommand;
1806
1775
  const de_DescribeWorkspaceDirectoriesCommandError = async (output, context) => {
@@ -1815,10 +1784,9 @@ const de_DescribeWorkspaceDirectoriesCommandError = async (output, context) => {
1815
1784
  throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
1816
1785
  default:
1817
1786
  const parsedBody = parsedOutput.body;
1818
- (0, smithy_client_1.throwDefaultError)({
1787
+ return throwDefaultError({
1819
1788
  output,
1820
1789
  parsedBody,
1821
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1822
1790
  errorCode,
1823
1791
  });
1824
1792
  }
@@ -1829,12 +1797,12 @@ const de_DescribeWorkspaceImagePermissionsCommand = async (output, context) => {
1829
1797
  }
1830
1798
  const data = await parseBody(output.body, context);
1831
1799
  let contents = {};
1832
- contents = de_DescribeWorkspaceImagePermissionsResult(data, context);
1800
+ contents = (0, smithy_client_1._json)(data);
1833
1801
  const response = {
1834
1802
  $metadata: deserializeMetadata(output),
1835
1803
  ...contents,
1836
1804
  };
1837
- return Promise.resolve(response);
1805
+ return response;
1838
1806
  };
1839
1807
  exports.de_DescribeWorkspaceImagePermissionsCommand = de_DescribeWorkspaceImagePermissionsCommand;
1840
1808
  const de_DescribeWorkspaceImagePermissionsCommandError = async (output, context) => {
@@ -1855,10 +1823,9 @@ const de_DescribeWorkspaceImagePermissionsCommandError = async (output, context)
1855
1823
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1856
1824
  default:
1857
1825
  const parsedBody = parsedOutput.body;
1858
- (0, smithy_client_1.throwDefaultError)({
1826
+ return throwDefaultError({
1859
1827
  output,
1860
1828
  parsedBody,
1861
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1862
1829
  errorCode,
1863
1830
  });
1864
1831
  }
@@ -1874,7 +1841,7 @@ const de_DescribeWorkspaceImagesCommand = async (output, context) => {
1874
1841
  $metadata: deserializeMetadata(output),
1875
1842
  ...contents,
1876
1843
  };
1877
- return Promise.resolve(response);
1844
+ return response;
1878
1845
  };
1879
1846
  exports.de_DescribeWorkspaceImagesCommand = de_DescribeWorkspaceImagesCommand;
1880
1847
  const de_DescribeWorkspaceImagesCommandError = async (output, context) => {
@@ -1889,10 +1856,9 @@ const de_DescribeWorkspaceImagesCommandError = async (output, context) => {
1889
1856
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1890
1857
  default:
1891
1858
  const parsedBody = parsedOutput.body;
1892
- (0, smithy_client_1.throwDefaultError)({
1859
+ return throwDefaultError({
1893
1860
  output,
1894
1861
  parsedBody,
1895
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1896
1862
  errorCode,
1897
1863
  });
1898
1864
  }
@@ -1903,12 +1869,12 @@ const de_DescribeWorkspacesCommand = async (output, context) => {
1903
1869
  }
1904
1870
  const data = await parseBody(output.body, context);
1905
1871
  let contents = {};
1906
- contents = de_DescribeWorkspacesResult(data, context);
1872
+ contents = (0, smithy_client_1._json)(data);
1907
1873
  const response = {
1908
1874
  $metadata: deserializeMetadata(output),
1909
1875
  ...contents,
1910
1876
  };
1911
- return Promise.resolve(response);
1877
+ return response;
1912
1878
  };
1913
1879
  exports.de_DescribeWorkspacesCommand = de_DescribeWorkspacesCommand;
1914
1880
  const de_DescribeWorkspacesCommandError = async (output, context) => {
@@ -1926,10 +1892,9 @@ const de_DescribeWorkspacesCommandError = async (output, context) => {
1926
1892
  throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
1927
1893
  default:
1928
1894
  const parsedBody = parsedOutput.body;
1929
- (0, smithy_client_1.throwDefaultError)({
1895
+ return throwDefaultError({
1930
1896
  output,
1931
1897
  parsedBody,
1932
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1933
1898
  errorCode,
1934
1899
  });
1935
1900
  }
@@ -1945,7 +1910,7 @@ const de_DescribeWorkspacesConnectionStatusCommand = async (output, context) =>
1945
1910
  $metadata: deserializeMetadata(output),
1946
1911
  ...contents,
1947
1912
  };
1948
- return Promise.resolve(response);
1913
+ return response;
1949
1914
  };
1950
1915
  exports.de_DescribeWorkspacesConnectionStatusCommand = de_DescribeWorkspacesConnectionStatusCommand;
1951
1916
  const de_DescribeWorkspacesConnectionStatusCommandError = async (output, context) => {
@@ -1960,10 +1925,9 @@ const de_DescribeWorkspacesConnectionStatusCommandError = async (output, context
1960
1925
  throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
1961
1926
  default:
1962
1927
  const parsedBody = parsedOutput.body;
1963
- (0, smithy_client_1.throwDefaultError)({
1928
+ return throwDefaultError({
1964
1929
  output,
1965
1930
  parsedBody,
1966
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
1967
1931
  errorCode,
1968
1932
  });
1969
1933
  }
@@ -1979,7 +1943,7 @@ const de_DescribeWorkspaceSnapshotsCommand = async (output, context) => {
1979
1943
  $metadata: deserializeMetadata(output),
1980
1944
  ...contents,
1981
1945
  };
1982
- return Promise.resolve(response);
1946
+ return response;
1983
1947
  };
1984
1948
  exports.de_DescribeWorkspaceSnapshotsCommand = de_DescribeWorkspaceSnapshotsCommand;
1985
1949
  const de_DescribeWorkspaceSnapshotsCommandError = async (output, context) => {
@@ -2000,10 +1964,9 @@ const de_DescribeWorkspaceSnapshotsCommandError = async (output, context) => {
2000
1964
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2001
1965
  default:
2002
1966
  const parsedBody = parsedOutput.body;
2003
- (0, smithy_client_1.throwDefaultError)({
1967
+ return throwDefaultError({
2004
1968
  output,
2005
1969
  parsedBody,
2006
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2007
1970
  errorCode,
2008
1971
  });
2009
1972
  }
@@ -2014,12 +1977,12 @@ const de_DisassociateConnectionAliasCommand = async (output, context) => {
2014
1977
  }
2015
1978
  const data = await parseBody(output.body, context);
2016
1979
  let contents = {};
2017
- contents = de_DisassociateConnectionAliasResult(data, context);
1980
+ contents = (0, smithy_client_1._json)(data);
2018
1981
  const response = {
2019
1982
  $metadata: deserializeMetadata(output),
2020
1983
  ...contents,
2021
1984
  };
2022
- return Promise.resolve(response);
1985
+ return response;
2023
1986
  };
2024
1987
  exports.de_DisassociateConnectionAliasCommand = de_DisassociateConnectionAliasCommand;
2025
1988
  const de_DisassociateConnectionAliasCommandError = async (output, context) => {
@@ -2046,10 +2009,9 @@ const de_DisassociateConnectionAliasCommandError = async (output, context) => {
2046
2009
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2047
2010
  default:
2048
2011
  const parsedBody = parsedOutput.body;
2049
- (0, smithy_client_1.throwDefaultError)({
2012
+ return throwDefaultError({
2050
2013
  output,
2051
2014
  parsedBody,
2052
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2053
2015
  errorCode,
2054
2016
  });
2055
2017
  }
@@ -2060,12 +2022,12 @@ const de_DisassociateIpGroupsCommand = async (output, context) => {
2060
2022
  }
2061
2023
  const data = await parseBody(output.body, context);
2062
2024
  let contents = {};
2063
- contents = de_DisassociateIpGroupsResult(data, context);
2025
+ contents = (0, smithy_client_1._json)(data);
2064
2026
  const response = {
2065
2027
  $metadata: deserializeMetadata(output),
2066
2028
  ...contents,
2067
2029
  };
2068
- return Promise.resolve(response);
2030
+ return response;
2069
2031
  };
2070
2032
  exports.de_DisassociateIpGroupsCommand = de_DisassociateIpGroupsCommand;
2071
2033
  const de_DisassociateIpGroupsCommandError = async (output, context) => {
@@ -2089,10 +2051,9 @@ const de_DisassociateIpGroupsCommandError = async (output, context) => {
2089
2051
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2090
2052
  default:
2091
2053
  const parsedBody = parsedOutput.body;
2092
- (0, smithy_client_1.throwDefaultError)({
2054
+ return throwDefaultError({
2093
2055
  output,
2094
2056
  parsedBody,
2095
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2096
2057
  errorCode,
2097
2058
  });
2098
2059
  }
@@ -2103,12 +2064,12 @@ const de_ImportClientBrandingCommand = async (output, context) => {
2103
2064
  }
2104
2065
  const data = await parseBody(output.body, context);
2105
2066
  let contents = {};
2106
- contents = de_ImportClientBrandingResult(data, context);
2067
+ contents = (0, smithy_client_1._json)(data);
2107
2068
  const response = {
2108
2069
  $metadata: deserializeMetadata(output),
2109
2070
  ...contents,
2110
2071
  };
2111
- return Promise.resolve(response);
2072
+ return response;
2112
2073
  };
2113
2074
  exports.de_ImportClientBrandingCommand = de_ImportClientBrandingCommand;
2114
2075
  const de_ImportClientBrandingCommandError = async (output, context) => {
@@ -2132,10 +2093,9 @@ const de_ImportClientBrandingCommandError = async (output, context) => {
2132
2093
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2133
2094
  default:
2134
2095
  const parsedBody = parsedOutput.body;
2135
- (0, smithy_client_1.throwDefaultError)({
2096
+ return throwDefaultError({
2136
2097
  output,
2137
2098
  parsedBody,
2138
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2139
2099
  errorCode,
2140
2100
  });
2141
2101
  }
@@ -2146,12 +2106,12 @@ const de_ImportWorkspaceImageCommand = async (output, context) => {
2146
2106
  }
2147
2107
  const data = await parseBody(output.body, context);
2148
2108
  let contents = {};
2149
- contents = de_ImportWorkspaceImageResult(data, context);
2109
+ contents = (0, smithy_client_1._json)(data);
2150
2110
  const response = {
2151
2111
  $metadata: deserializeMetadata(output),
2152
2112
  ...contents,
2153
2113
  };
2154
- return Promise.resolve(response);
2114
+ return response;
2155
2115
  };
2156
2116
  exports.de_ImportWorkspaceImageCommand = de_ImportWorkspaceImageCommand;
2157
2117
  const de_ImportWorkspaceImageCommandError = async (output, context) => {
@@ -2181,10 +2141,9 @@ const de_ImportWorkspaceImageCommandError = async (output, context) => {
2181
2141
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2182
2142
  default:
2183
2143
  const parsedBody = parsedOutput.body;
2184
- (0, smithy_client_1.throwDefaultError)({
2144
+ return throwDefaultError({
2185
2145
  output,
2186
2146
  parsedBody,
2187
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2188
2147
  errorCode,
2189
2148
  });
2190
2149
  }
@@ -2195,12 +2154,12 @@ const de_ListAvailableManagementCidrRangesCommand = async (output, context) => {
2195
2154
  }
2196
2155
  const data = await parseBody(output.body, context);
2197
2156
  let contents = {};
2198
- contents = de_ListAvailableManagementCidrRangesResult(data, context);
2157
+ contents = (0, smithy_client_1._json)(data);
2199
2158
  const response = {
2200
2159
  $metadata: deserializeMetadata(output),
2201
2160
  ...contents,
2202
2161
  };
2203
- return Promise.resolve(response);
2162
+ return response;
2204
2163
  };
2205
2164
  exports.de_ListAvailableManagementCidrRangesCommand = de_ListAvailableManagementCidrRangesCommand;
2206
2165
  const de_ListAvailableManagementCidrRangesCommandError = async (output, context) => {
@@ -2218,10 +2177,9 @@ const de_ListAvailableManagementCidrRangesCommandError = async (output, context)
2218
2177
  throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
2219
2178
  default:
2220
2179
  const parsedBody = parsedOutput.body;
2221
- (0, smithy_client_1.throwDefaultError)({
2180
+ return throwDefaultError({
2222
2181
  output,
2223
2182
  parsedBody,
2224
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2225
2183
  errorCode,
2226
2184
  });
2227
2185
  }
@@ -2232,12 +2190,12 @@ const de_MigrateWorkspaceCommand = async (output, context) => {
2232
2190
  }
2233
2191
  const data = await parseBody(output.body, context);
2234
2192
  let contents = {};
2235
- contents = de_MigrateWorkspaceResult(data, context);
2193
+ contents = (0, smithy_client_1._json)(data);
2236
2194
  const response = {
2237
2195
  $metadata: deserializeMetadata(output),
2238
2196
  ...contents,
2239
2197
  };
2240
- return Promise.resolve(response);
2198
+ return response;
2241
2199
  };
2242
2200
  exports.de_MigrateWorkspaceCommand = de_MigrateWorkspaceCommand;
2243
2201
  const de_MigrateWorkspaceCommandError = async (output, context) => {
@@ -2267,10 +2225,9 @@ const de_MigrateWorkspaceCommandError = async (output, context) => {
2267
2225
  throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
2268
2226
  default:
2269
2227
  const parsedBody = parsedOutput.body;
2270
- (0, smithy_client_1.throwDefaultError)({
2228
+ return throwDefaultError({
2271
2229
  output,
2272
2230
  parsedBody,
2273
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2274
2231
  errorCode,
2275
2232
  });
2276
2233
  }
@@ -2281,12 +2238,12 @@ const de_ModifyAccountCommand = async (output, context) => {
2281
2238
  }
2282
2239
  const data = await parseBody(output.body, context);
2283
2240
  let contents = {};
2284
- contents = de_ModifyAccountResult(data, context);
2241
+ contents = (0, smithy_client_1._json)(data);
2285
2242
  const response = {
2286
2243
  $metadata: deserializeMetadata(output),
2287
2244
  ...contents,
2288
2245
  };
2289
- return Promise.resolve(response);
2246
+ return response;
2290
2247
  };
2291
2248
  exports.de_ModifyAccountCommand = de_ModifyAccountCommand;
2292
2249
  const de_ModifyAccountCommandError = async (output, context) => {
@@ -2313,10 +2270,9 @@ const de_ModifyAccountCommandError = async (output, context) => {
2313
2270
  throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
2314
2271
  default:
2315
2272
  const parsedBody = parsedOutput.body;
2316
- (0, smithy_client_1.throwDefaultError)({
2273
+ return throwDefaultError({
2317
2274
  output,
2318
2275
  parsedBody,
2319
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2320
2276
  errorCode,
2321
2277
  });
2322
2278
  }
@@ -2327,12 +2283,12 @@ const de_ModifyCertificateBasedAuthPropertiesCommand = async (output, context) =
2327
2283
  }
2328
2284
  const data = await parseBody(output.body, context);
2329
2285
  let contents = {};
2330
- contents = de_ModifyCertificateBasedAuthPropertiesResult(data, context);
2286
+ contents = (0, smithy_client_1._json)(data);
2331
2287
  const response = {
2332
2288
  $metadata: deserializeMetadata(output),
2333
2289
  ...contents,
2334
2290
  };
2335
- return Promise.resolve(response);
2291
+ return response;
2336
2292
  };
2337
2293
  exports.de_ModifyCertificateBasedAuthPropertiesCommand = de_ModifyCertificateBasedAuthPropertiesCommand;
2338
2294
  const de_ModifyCertificateBasedAuthPropertiesCommandError = async (output, context) => {
@@ -2356,10 +2312,9 @@ const de_ModifyCertificateBasedAuthPropertiesCommandError = async (output, conte
2356
2312
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2357
2313
  default:
2358
2314
  const parsedBody = parsedOutput.body;
2359
- (0, smithy_client_1.throwDefaultError)({
2315
+ return throwDefaultError({
2360
2316
  output,
2361
2317
  parsedBody,
2362
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2363
2318
  errorCode,
2364
2319
  });
2365
2320
  }
@@ -2370,12 +2325,12 @@ const de_ModifyClientPropertiesCommand = async (output, context) => {
2370
2325
  }
2371
2326
  const data = await parseBody(output.body, context);
2372
2327
  let contents = {};
2373
- contents = de_ModifyClientPropertiesResult(data, context);
2328
+ contents = (0, smithy_client_1._json)(data);
2374
2329
  const response = {
2375
2330
  $metadata: deserializeMetadata(output),
2376
2331
  ...contents,
2377
2332
  };
2378
- return Promise.resolve(response);
2333
+ return response;
2379
2334
  };
2380
2335
  exports.de_ModifyClientPropertiesCommand = de_ModifyClientPropertiesCommand;
2381
2336
  const de_ModifyClientPropertiesCommandError = async (output, context) => {
@@ -2396,10 +2351,9 @@ const de_ModifyClientPropertiesCommandError = async (output, context) => {
2396
2351
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2397
2352
  default:
2398
2353
  const parsedBody = parsedOutput.body;
2399
- (0, smithy_client_1.throwDefaultError)({
2354
+ return throwDefaultError({
2400
2355
  output,
2401
2356
  parsedBody,
2402
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2403
2357
  errorCode,
2404
2358
  });
2405
2359
  }
@@ -2410,12 +2364,12 @@ const de_ModifySamlPropertiesCommand = async (output, context) => {
2410
2364
  }
2411
2365
  const data = await parseBody(output.body, context);
2412
2366
  let contents = {};
2413
- contents = de_ModifySamlPropertiesResult(data, context);
2367
+ contents = (0, smithy_client_1._json)(data);
2414
2368
  const response = {
2415
2369
  $metadata: deserializeMetadata(output),
2416
2370
  ...contents,
2417
2371
  };
2418
- return Promise.resolve(response);
2372
+ return response;
2419
2373
  };
2420
2374
  exports.de_ModifySamlPropertiesCommand = de_ModifySamlPropertiesCommand;
2421
2375
  const de_ModifySamlPropertiesCommandError = async (output, context) => {
@@ -2439,10 +2393,9 @@ const de_ModifySamlPropertiesCommandError = async (output, context) => {
2439
2393
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2440
2394
  default:
2441
2395
  const parsedBody = parsedOutput.body;
2442
- (0, smithy_client_1.throwDefaultError)({
2396
+ return throwDefaultError({
2443
2397
  output,
2444
2398
  parsedBody,
2445
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2446
2399
  errorCode,
2447
2400
  });
2448
2401
  }
@@ -2453,12 +2406,12 @@ const de_ModifySelfservicePermissionsCommand = async (output, context) => {
2453
2406
  }
2454
2407
  const data = await parseBody(output.body, context);
2455
2408
  let contents = {};
2456
- contents = de_ModifySelfservicePermissionsResult(data, context);
2409
+ contents = (0, smithy_client_1._json)(data);
2457
2410
  const response = {
2458
2411
  $metadata: deserializeMetadata(output),
2459
2412
  ...contents,
2460
2413
  };
2461
- return Promise.resolve(response);
2414
+ return response;
2462
2415
  };
2463
2416
  exports.de_ModifySelfservicePermissionsCommand = de_ModifySelfservicePermissionsCommand;
2464
2417
  const de_ModifySelfservicePermissionsCommandError = async (output, context) => {
@@ -2479,10 +2432,9 @@ const de_ModifySelfservicePermissionsCommandError = async (output, context) => {
2479
2432
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2480
2433
  default:
2481
2434
  const parsedBody = parsedOutput.body;
2482
- (0, smithy_client_1.throwDefaultError)({
2435
+ return throwDefaultError({
2483
2436
  output,
2484
2437
  parsedBody,
2485
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2486
2438
  errorCode,
2487
2439
  });
2488
2440
  }
@@ -2493,12 +2445,12 @@ const de_ModifyWorkspaceAccessPropertiesCommand = async (output, context) => {
2493
2445
  }
2494
2446
  const data = await parseBody(output.body, context);
2495
2447
  let contents = {};
2496
- contents = de_ModifyWorkspaceAccessPropertiesResult(data, context);
2448
+ contents = (0, smithy_client_1._json)(data);
2497
2449
  const response = {
2498
2450
  $metadata: deserializeMetadata(output),
2499
2451
  ...contents,
2500
2452
  };
2501
- return Promise.resolve(response);
2453
+ return response;
2502
2454
  };
2503
2455
  exports.de_ModifyWorkspaceAccessPropertiesCommand = de_ModifyWorkspaceAccessPropertiesCommand;
2504
2456
  const de_ModifyWorkspaceAccessPropertiesCommandError = async (output, context) => {
@@ -2516,10 +2468,9 @@ const de_ModifyWorkspaceAccessPropertiesCommandError = async (output, context) =
2516
2468
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2517
2469
  default:
2518
2470
  const parsedBody = parsedOutput.body;
2519
- (0, smithy_client_1.throwDefaultError)({
2471
+ return throwDefaultError({
2520
2472
  output,
2521
2473
  parsedBody,
2522
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2523
2474
  errorCode,
2524
2475
  });
2525
2476
  }
@@ -2530,12 +2481,12 @@ const de_ModifyWorkspaceCreationPropertiesCommand = async (output, context) => {
2530
2481
  }
2531
2482
  const data = await parseBody(output.body, context);
2532
2483
  let contents = {};
2533
- contents = de_ModifyWorkspaceCreationPropertiesResult(data, context);
2484
+ contents = (0, smithy_client_1._json)(data);
2534
2485
  const response = {
2535
2486
  $metadata: deserializeMetadata(output),
2536
2487
  ...contents,
2537
2488
  };
2538
- return Promise.resolve(response);
2489
+ return response;
2539
2490
  };
2540
2491
  exports.de_ModifyWorkspaceCreationPropertiesCommand = de_ModifyWorkspaceCreationPropertiesCommand;
2541
2492
  const de_ModifyWorkspaceCreationPropertiesCommandError = async (output, context) => {
@@ -2559,10 +2510,9 @@ const de_ModifyWorkspaceCreationPropertiesCommandError = async (output, context)
2559
2510
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2560
2511
  default:
2561
2512
  const parsedBody = parsedOutput.body;
2562
- (0, smithy_client_1.throwDefaultError)({
2513
+ return throwDefaultError({
2563
2514
  output,
2564
2515
  parsedBody,
2565
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2566
2516
  errorCode,
2567
2517
  });
2568
2518
  }
@@ -2573,12 +2523,12 @@ const de_ModifyWorkspacePropertiesCommand = async (output, context) => {
2573
2523
  }
2574
2524
  const data = await parseBody(output.body, context);
2575
2525
  let contents = {};
2576
- contents = de_ModifyWorkspacePropertiesResult(data, context);
2526
+ contents = (0, smithy_client_1._json)(data);
2577
2527
  const response = {
2578
2528
  $metadata: deserializeMetadata(output),
2579
2529
  ...contents,
2580
2530
  };
2581
- return Promise.resolve(response);
2531
+ return response;
2582
2532
  };
2583
2533
  exports.de_ModifyWorkspacePropertiesCommand = de_ModifyWorkspacePropertiesCommand;
2584
2534
  const de_ModifyWorkspacePropertiesCommandError = async (output, context) => {
@@ -2611,10 +2561,9 @@ const de_ModifyWorkspacePropertiesCommandError = async (output, context) => {
2611
2561
  throw await de_UnsupportedWorkspaceConfigurationExceptionRes(parsedOutput, context);
2612
2562
  default:
2613
2563
  const parsedBody = parsedOutput.body;
2614
- (0, smithy_client_1.throwDefaultError)({
2564
+ return throwDefaultError({
2615
2565
  output,
2616
2566
  parsedBody,
2617
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2618
2567
  errorCode,
2619
2568
  });
2620
2569
  }
@@ -2625,12 +2574,12 @@ const de_ModifyWorkspaceStateCommand = async (output, context) => {
2625
2574
  }
2626
2575
  const data = await parseBody(output.body, context);
2627
2576
  let contents = {};
2628
- contents = de_ModifyWorkspaceStateResult(data, context);
2577
+ contents = (0, smithy_client_1._json)(data);
2629
2578
  const response = {
2630
2579
  $metadata: deserializeMetadata(output),
2631
2580
  ...contents,
2632
2581
  };
2633
- return Promise.resolve(response);
2582
+ return response;
2634
2583
  };
2635
2584
  exports.de_ModifyWorkspaceStateCommand = de_ModifyWorkspaceStateCommand;
2636
2585
  const de_ModifyWorkspaceStateCommandError = async (output, context) => {
@@ -2654,10 +2603,9 @@ const de_ModifyWorkspaceStateCommandError = async (output, context) => {
2654
2603
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2655
2604
  default:
2656
2605
  const parsedBody = parsedOutput.body;
2657
- (0, smithy_client_1.throwDefaultError)({
2606
+ return throwDefaultError({
2658
2607
  output,
2659
2608
  parsedBody,
2660
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2661
2609
  errorCode,
2662
2610
  });
2663
2611
  }
@@ -2668,12 +2616,12 @@ const de_RebootWorkspacesCommand = async (output, context) => {
2668
2616
  }
2669
2617
  const data = await parseBody(output.body, context);
2670
2618
  let contents = {};
2671
- contents = de_RebootWorkspacesResult(data, context);
2619
+ contents = (0, smithy_client_1._json)(data);
2672
2620
  const response = {
2673
2621
  $metadata: deserializeMetadata(output),
2674
2622
  ...contents,
2675
2623
  };
2676
- return Promise.resolve(response);
2624
+ return response;
2677
2625
  };
2678
2626
  exports.de_RebootWorkspacesCommand = de_RebootWorkspacesCommand;
2679
2627
  const de_RebootWorkspacesCommandError = async (output, context) => {
@@ -2688,10 +2636,9 @@ const de_RebootWorkspacesCommandError = async (output, context) => {
2688
2636
  throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
2689
2637
  default:
2690
2638
  const parsedBody = parsedOutput.body;
2691
- (0, smithy_client_1.throwDefaultError)({
2639
+ return throwDefaultError({
2692
2640
  output,
2693
2641
  parsedBody,
2694
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2695
2642
  errorCode,
2696
2643
  });
2697
2644
  }
@@ -2702,12 +2649,12 @@ const de_RebuildWorkspacesCommand = async (output, context) => {
2702
2649
  }
2703
2650
  const data = await parseBody(output.body, context);
2704
2651
  let contents = {};
2705
- contents = de_RebuildWorkspacesResult(data, context);
2652
+ contents = (0, smithy_client_1._json)(data);
2706
2653
  const response = {
2707
2654
  $metadata: deserializeMetadata(output),
2708
2655
  ...contents,
2709
2656
  };
2710
- return Promise.resolve(response);
2657
+ return response;
2711
2658
  };
2712
2659
  exports.de_RebuildWorkspacesCommand = de_RebuildWorkspacesCommand;
2713
2660
  const de_RebuildWorkspacesCommandError = async (output, context) => {
@@ -2722,10 +2669,9 @@ const de_RebuildWorkspacesCommandError = async (output, context) => {
2722
2669
  throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
2723
2670
  default:
2724
2671
  const parsedBody = parsedOutput.body;
2725
- (0, smithy_client_1.throwDefaultError)({
2672
+ return throwDefaultError({
2726
2673
  output,
2727
2674
  parsedBody,
2728
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2729
2675
  errorCode,
2730
2676
  });
2731
2677
  }
@@ -2736,12 +2682,12 @@ const de_RegisterWorkspaceDirectoryCommand = async (output, context) => {
2736
2682
  }
2737
2683
  const data = await parseBody(output.body, context);
2738
2684
  let contents = {};
2739
- contents = de_RegisterWorkspaceDirectoryResult(data, context);
2685
+ contents = (0, smithy_client_1._json)(data);
2740
2686
  const response = {
2741
2687
  $metadata: deserializeMetadata(output),
2742
2688
  ...contents,
2743
2689
  };
2744
- return Promise.resolve(response);
2690
+ return response;
2745
2691
  };
2746
2692
  exports.de_RegisterWorkspaceDirectoryCommand = de_RegisterWorkspaceDirectoryCommand;
2747
2693
  const de_RegisterWorkspaceDirectoryCommandError = async (output, context) => {
@@ -2777,10 +2723,9 @@ const de_RegisterWorkspaceDirectoryCommandError = async (output, context) => {
2777
2723
  throw await de_WorkspacesDefaultRoleNotFoundExceptionRes(parsedOutput, context);
2778
2724
  default:
2779
2725
  const parsedBody = parsedOutput.body;
2780
- (0, smithy_client_1.throwDefaultError)({
2726
+ return throwDefaultError({
2781
2727
  output,
2782
2728
  parsedBody,
2783
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2784
2729
  errorCode,
2785
2730
  });
2786
2731
  }
@@ -2791,12 +2736,12 @@ const de_RestoreWorkspaceCommand = async (output, context) => {
2791
2736
  }
2792
2737
  const data = await parseBody(output.body, context);
2793
2738
  let contents = {};
2794
- contents = de_RestoreWorkspaceResult(data, context);
2739
+ contents = (0, smithy_client_1._json)(data);
2795
2740
  const response = {
2796
2741
  $metadata: deserializeMetadata(output),
2797
2742
  ...contents,
2798
2743
  };
2799
- return Promise.resolve(response);
2744
+ return response;
2800
2745
  };
2801
2746
  exports.de_RestoreWorkspaceCommand = de_RestoreWorkspaceCommand;
2802
2747
  const de_RestoreWorkspaceCommandError = async (output, context) => {
@@ -2820,10 +2765,9 @@ const de_RestoreWorkspaceCommandError = async (output, context) => {
2820
2765
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2821
2766
  default:
2822
2767
  const parsedBody = parsedOutput.body;
2823
- (0, smithy_client_1.throwDefaultError)({
2768
+ return throwDefaultError({
2824
2769
  output,
2825
2770
  parsedBody,
2826
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2827
2771
  errorCode,
2828
2772
  });
2829
2773
  }
@@ -2834,12 +2778,12 @@ const de_RevokeIpRulesCommand = async (output, context) => {
2834
2778
  }
2835
2779
  const data = await parseBody(output.body, context);
2836
2780
  let contents = {};
2837
- contents = de_RevokeIpRulesResult(data, context);
2781
+ contents = (0, smithy_client_1._json)(data);
2838
2782
  const response = {
2839
2783
  $metadata: deserializeMetadata(output),
2840
2784
  ...contents,
2841
2785
  };
2842
- return Promise.resolve(response);
2786
+ return response;
2843
2787
  };
2844
2788
  exports.de_RevokeIpRulesCommand = de_RevokeIpRulesCommand;
2845
2789
  const de_RevokeIpRulesCommandError = async (output, context) => {
@@ -2863,10 +2807,9 @@ const de_RevokeIpRulesCommandError = async (output, context) => {
2863
2807
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2864
2808
  default:
2865
2809
  const parsedBody = parsedOutput.body;
2866
- (0, smithy_client_1.throwDefaultError)({
2810
+ return throwDefaultError({
2867
2811
  output,
2868
2812
  parsedBody,
2869
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2870
2813
  errorCode,
2871
2814
  });
2872
2815
  }
@@ -2877,12 +2820,12 @@ const de_StartWorkspacesCommand = async (output, context) => {
2877
2820
  }
2878
2821
  const data = await parseBody(output.body, context);
2879
2822
  let contents = {};
2880
- contents = de_StartWorkspacesResult(data, context);
2823
+ contents = (0, smithy_client_1._json)(data);
2881
2824
  const response = {
2882
2825
  $metadata: deserializeMetadata(output),
2883
2826
  ...contents,
2884
2827
  };
2885
- return Promise.resolve(response);
2828
+ return response;
2886
2829
  };
2887
2830
  exports.de_StartWorkspacesCommand = de_StartWorkspacesCommand;
2888
2831
  const de_StartWorkspacesCommandError = async (output, context) => {
@@ -2892,10 +2835,9 @@ const de_StartWorkspacesCommandError = async (output, context) => {
2892
2835
  };
2893
2836
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2894
2837
  const parsedBody = parsedOutput.body;
2895
- (0, smithy_client_1.throwDefaultError)({
2838
+ return throwDefaultError({
2896
2839
  output,
2897
2840
  parsedBody,
2898
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2899
2841
  errorCode,
2900
2842
  });
2901
2843
  };
@@ -2905,12 +2847,12 @@ const de_StopWorkspacesCommand = async (output, context) => {
2905
2847
  }
2906
2848
  const data = await parseBody(output.body, context);
2907
2849
  let contents = {};
2908
- contents = de_StopWorkspacesResult(data, context);
2850
+ contents = (0, smithy_client_1._json)(data);
2909
2851
  const response = {
2910
2852
  $metadata: deserializeMetadata(output),
2911
2853
  ...contents,
2912
2854
  };
2913
- return Promise.resolve(response);
2855
+ return response;
2914
2856
  };
2915
2857
  exports.de_StopWorkspacesCommand = de_StopWorkspacesCommand;
2916
2858
  const de_StopWorkspacesCommandError = async (output, context) => {
@@ -2920,10 +2862,9 @@ const de_StopWorkspacesCommandError = async (output, context) => {
2920
2862
  };
2921
2863
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2922
2864
  const parsedBody = parsedOutput.body;
2923
- (0, smithy_client_1.throwDefaultError)({
2865
+ return throwDefaultError({
2924
2866
  output,
2925
2867
  parsedBody,
2926
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2927
2868
  errorCode,
2928
2869
  });
2929
2870
  };
@@ -2933,12 +2874,12 @@ const de_TerminateWorkspacesCommand = async (output, context) => {
2933
2874
  }
2934
2875
  const data = await parseBody(output.body, context);
2935
2876
  let contents = {};
2936
- contents = de_TerminateWorkspacesResult(data, context);
2877
+ contents = (0, smithy_client_1._json)(data);
2937
2878
  const response = {
2938
2879
  $metadata: deserializeMetadata(output),
2939
2880
  ...contents,
2940
2881
  };
2941
- return Promise.resolve(response);
2882
+ return response;
2942
2883
  };
2943
2884
  exports.de_TerminateWorkspacesCommand = de_TerminateWorkspacesCommand;
2944
2885
  const de_TerminateWorkspacesCommandError = async (output, context) => {
@@ -2948,10 +2889,9 @@ const de_TerminateWorkspacesCommandError = async (output, context) => {
2948
2889
  };
2949
2890
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2950
2891
  const parsedBody = parsedOutput.body;
2951
- (0, smithy_client_1.throwDefaultError)({
2892
+ return throwDefaultError({
2952
2893
  output,
2953
2894
  parsedBody,
2954
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2955
2895
  errorCode,
2956
2896
  });
2957
2897
  };
@@ -2961,12 +2901,12 @@ const de_UpdateConnectClientAddInCommand = async (output, context) => {
2961
2901
  }
2962
2902
  const data = await parseBody(output.body, context);
2963
2903
  let contents = {};
2964
- contents = de_UpdateConnectClientAddInResult(data, context);
2904
+ contents = (0, smithy_client_1._json)(data);
2965
2905
  const response = {
2966
2906
  $metadata: deserializeMetadata(output),
2967
2907
  ...contents,
2968
2908
  };
2969
- return Promise.resolve(response);
2909
+ return response;
2970
2910
  };
2971
2911
  exports.de_UpdateConnectClientAddInCommand = de_UpdateConnectClientAddInCommand;
2972
2912
  const de_UpdateConnectClientAddInCommandError = async (output, context) => {
@@ -2987,10 +2927,9 @@ const de_UpdateConnectClientAddInCommandError = async (output, context) => {
2987
2927
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2988
2928
  default:
2989
2929
  const parsedBody = parsedOutput.body;
2990
- (0, smithy_client_1.throwDefaultError)({
2930
+ return throwDefaultError({
2991
2931
  output,
2992
2932
  parsedBody,
2993
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
2994
2933
  errorCode,
2995
2934
  });
2996
2935
  }
@@ -3001,12 +2940,12 @@ const de_UpdateConnectionAliasPermissionCommand = async (output, context) => {
3001
2940
  }
3002
2941
  const data = await parseBody(output.body, context);
3003
2942
  let contents = {};
3004
- contents = de_UpdateConnectionAliasPermissionResult(data, context);
2943
+ contents = (0, smithy_client_1._json)(data);
3005
2944
  const response = {
3006
2945
  $metadata: deserializeMetadata(output),
3007
2946
  ...contents,
3008
2947
  };
3009
- return Promise.resolve(response);
2948
+ return response;
3010
2949
  };
3011
2950
  exports.de_UpdateConnectionAliasPermissionCommand = de_UpdateConnectionAliasPermissionCommand;
3012
2951
  const de_UpdateConnectionAliasPermissionCommandError = async (output, context) => {
@@ -3039,10 +2978,9 @@ const de_UpdateConnectionAliasPermissionCommandError = async (output, context) =
3039
2978
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3040
2979
  default:
3041
2980
  const parsedBody = parsedOutput.body;
3042
- (0, smithy_client_1.throwDefaultError)({
2981
+ return throwDefaultError({
3043
2982
  output,
3044
2983
  parsedBody,
3045
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
3046
2984
  errorCode,
3047
2985
  });
3048
2986
  }
@@ -3053,12 +2991,12 @@ const de_UpdateRulesOfIpGroupCommand = async (output, context) => {
3053
2991
  }
3054
2992
  const data = await parseBody(output.body, context);
3055
2993
  let contents = {};
3056
- contents = de_UpdateRulesOfIpGroupResult(data, context);
2994
+ contents = (0, smithy_client_1._json)(data);
3057
2995
  const response = {
3058
2996
  $metadata: deserializeMetadata(output),
3059
2997
  ...contents,
3060
2998
  };
3061
- return Promise.resolve(response);
2999
+ return response;
3062
3000
  };
3063
3001
  exports.de_UpdateRulesOfIpGroupCommand = de_UpdateRulesOfIpGroupCommand;
3064
3002
  const de_UpdateRulesOfIpGroupCommandError = async (output, context) => {
@@ -3085,10 +3023,9 @@ const de_UpdateRulesOfIpGroupCommandError = async (output, context) => {
3085
3023
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3086
3024
  default:
3087
3025
  const parsedBody = parsedOutput.body;
3088
- (0, smithy_client_1.throwDefaultError)({
3026
+ return throwDefaultError({
3089
3027
  output,
3090
3028
  parsedBody,
3091
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
3092
3029
  errorCode,
3093
3030
  });
3094
3031
  }
@@ -3099,12 +3036,12 @@ const de_UpdateWorkspaceBundleCommand = async (output, context) => {
3099
3036
  }
3100
3037
  const data = await parseBody(output.body, context);
3101
3038
  let contents = {};
3102
- contents = de_UpdateWorkspaceBundleResult(data, context);
3039
+ contents = (0, smithy_client_1._json)(data);
3103
3040
  const response = {
3104
3041
  $metadata: deserializeMetadata(output),
3105
3042
  ...contents,
3106
3043
  };
3107
- return Promise.resolve(response);
3044
+ return response;
3108
3045
  };
3109
3046
  exports.de_UpdateWorkspaceBundleCommand = de_UpdateWorkspaceBundleCommand;
3110
3047
  const de_UpdateWorkspaceBundleCommandError = async (output, context) => {
@@ -3131,10 +3068,9 @@ const de_UpdateWorkspaceBundleCommandError = async (output, context) => {
3131
3068
  throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
3132
3069
  default:
3133
3070
  const parsedBody = parsedOutput.body;
3134
- (0, smithy_client_1.throwDefaultError)({
3071
+ return throwDefaultError({
3135
3072
  output,
3136
3073
  parsedBody,
3137
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
3138
3074
  errorCode,
3139
3075
  });
3140
3076
  }
@@ -3145,12 +3081,12 @@ const de_UpdateWorkspaceImagePermissionCommand = async (output, context) => {
3145
3081
  }
3146
3082
  const data = await parseBody(output.body, context);
3147
3083
  let contents = {};
3148
- contents = de_UpdateWorkspaceImagePermissionResult(data, context);
3084
+ contents = (0, smithy_client_1._json)(data);
3149
3085
  const response = {
3150
3086
  $metadata: deserializeMetadata(output),
3151
3087
  ...contents,
3152
3088
  };
3153
- return Promise.resolve(response);
3089
+ return response;
3154
3090
  };
3155
3091
  exports.de_UpdateWorkspaceImagePermissionCommand = de_UpdateWorkspaceImagePermissionCommand;
3156
3092
  const de_UpdateWorkspaceImagePermissionCommandError = async (output, context) => {
@@ -3177,17 +3113,16 @@ const de_UpdateWorkspaceImagePermissionCommandError = async (output, context) =>
3177
3113
  throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
3178
3114
  default:
3179
3115
  const parsedBody = parsedOutput.body;
3180
- (0, smithy_client_1.throwDefaultError)({
3116
+ return throwDefaultError({
3181
3117
  output,
3182
3118
  parsedBody,
3183
- exceptionCtor: WorkSpacesServiceException_1.WorkSpacesServiceException,
3184
3119
  errorCode,
3185
3120
  });
3186
3121
  }
3187
3122
  };
3188
3123
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3189
3124
  const body = parsedOutput.body;
3190
- const deserialized = de_AccessDeniedException(body, context);
3125
+ const deserialized = (0, smithy_client_1._json)(body);
3191
3126
  const exception = new models_0_1.AccessDeniedException({
3192
3127
  $metadata: deserializeMetadata(parsedOutput),
3193
3128
  ...deserialized,
@@ -3196,7 +3131,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
3196
3131
  };
3197
3132
  const de_InvalidParameterValuesExceptionRes = async (parsedOutput, context) => {
3198
3133
  const body = parsedOutput.body;
3199
- const deserialized = de_InvalidParameterValuesException(body, context);
3134
+ const deserialized = (0, smithy_client_1._json)(body);
3200
3135
  const exception = new models_0_1.InvalidParameterValuesException({
3201
3136
  $metadata: deserializeMetadata(parsedOutput),
3202
3137
  ...deserialized,
@@ -3205,7 +3140,7 @@ const de_InvalidParameterValuesExceptionRes = async (parsedOutput, context) => {
3205
3140
  };
3206
3141
  const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
3207
3142
  const body = parsedOutput.body;
3208
- const deserialized = de_InvalidResourceStateException(body, context);
3143
+ const deserialized = (0, smithy_client_1._json)(body);
3209
3144
  const exception = new models_0_1.InvalidResourceStateException({
3210
3145
  $metadata: deserializeMetadata(parsedOutput),
3211
3146
  ...deserialized,
@@ -3214,7 +3149,7 @@ const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
3214
3149
  };
3215
3150
  const de_OperationInProgressExceptionRes = async (parsedOutput, context) => {
3216
3151
  const body = parsedOutput.body;
3217
- const deserialized = de_OperationInProgressException(body, context);
3152
+ const deserialized = (0, smithy_client_1._json)(body);
3218
3153
  const exception = new models_0_1.OperationInProgressException({
3219
3154
  $metadata: deserializeMetadata(parsedOutput),
3220
3155
  ...deserialized,
@@ -3223,7 +3158,7 @@ const de_OperationInProgressExceptionRes = async (parsedOutput, context) => {
3223
3158
  };
3224
3159
  const de_OperationNotSupportedExceptionRes = async (parsedOutput, context) => {
3225
3160
  const body = parsedOutput.body;
3226
- const deserialized = de_OperationNotSupportedException(body, context);
3161
+ const deserialized = (0, smithy_client_1._json)(body);
3227
3162
  const exception = new models_0_1.OperationNotSupportedException({
3228
3163
  $metadata: deserializeMetadata(parsedOutput),
3229
3164
  ...deserialized,
@@ -3232,7 +3167,7 @@ const de_OperationNotSupportedExceptionRes = async (parsedOutput, context) => {
3232
3167
  };
3233
3168
  const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3234
3169
  const body = parsedOutput.body;
3235
- const deserialized = de_ResourceAlreadyExistsException(body, context);
3170
+ const deserialized = (0, smithy_client_1._json)(body);
3236
3171
  const exception = new models_0_1.ResourceAlreadyExistsException({
3237
3172
  $metadata: deserializeMetadata(parsedOutput),
3238
3173
  ...deserialized,
@@ -3241,7 +3176,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
3241
3176
  };
3242
3177
  const de_ResourceAssociatedExceptionRes = async (parsedOutput, context) => {
3243
3178
  const body = parsedOutput.body;
3244
- const deserialized = de_ResourceAssociatedException(body, context);
3179
+ const deserialized = (0, smithy_client_1._json)(body);
3245
3180
  const exception = new models_0_1.ResourceAssociatedException({
3246
3181
  $metadata: deserializeMetadata(parsedOutput),
3247
3182
  ...deserialized,
@@ -3250,7 +3185,7 @@ const de_ResourceAssociatedExceptionRes = async (parsedOutput, context) => {
3250
3185
  };
3251
3186
  const de_ResourceCreationFailedExceptionRes = async (parsedOutput, context) => {
3252
3187
  const body = parsedOutput.body;
3253
- const deserialized = de_ResourceCreationFailedException(body, context);
3188
+ const deserialized = (0, smithy_client_1._json)(body);
3254
3189
  const exception = new models_0_1.ResourceCreationFailedException({
3255
3190
  $metadata: deserializeMetadata(parsedOutput),
3256
3191
  ...deserialized,
@@ -3259,7 +3194,7 @@ const de_ResourceCreationFailedExceptionRes = async (parsedOutput, context) => {
3259
3194
  };
3260
3195
  const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
3261
3196
  const body = parsedOutput.body;
3262
- const deserialized = de_ResourceLimitExceededException(body, context);
3197
+ const deserialized = (0, smithy_client_1._json)(body);
3263
3198
  const exception = new models_0_1.ResourceLimitExceededException({
3264
3199
  $metadata: deserializeMetadata(parsedOutput),
3265
3200
  ...deserialized,
@@ -3268,7 +3203,7 @@ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
3268
3203
  };
3269
3204
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3270
3205
  const body = parsedOutput.body;
3271
- const deserialized = de_ResourceNotFoundException(body, context);
3206
+ const deserialized = (0, smithy_client_1._json)(body);
3272
3207
  const exception = new models_0_1.ResourceNotFoundException({
3273
3208
  $metadata: deserializeMetadata(parsedOutput),
3274
3209
  ...deserialized,
@@ -3277,7 +3212,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3277
3212
  };
3278
3213
  const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
3279
3214
  const body = parsedOutput.body;
3280
- const deserialized = de_ResourceUnavailableException(body, context);
3215
+ const deserialized = (0, smithy_client_1._json)(body);
3281
3216
  const exception = new models_0_1.ResourceUnavailableException({
3282
3217
  $metadata: deserializeMetadata(parsedOutput),
3283
3218
  ...deserialized,
@@ -3286,7 +3221,7 @@ const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
3286
3221
  };
3287
3222
  const de_UnsupportedNetworkConfigurationExceptionRes = async (parsedOutput, context) => {
3288
3223
  const body = parsedOutput.body;
3289
- const deserialized = de_UnsupportedNetworkConfigurationException(body, context);
3224
+ const deserialized = (0, smithy_client_1._json)(body);
3290
3225
  const exception = new models_0_1.UnsupportedNetworkConfigurationException({
3291
3226
  $metadata: deserializeMetadata(parsedOutput),
3292
3227
  ...deserialized,
@@ -3295,7 +3230,7 @@ const de_UnsupportedNetworkConfigurationExceptionRes = async (parsedOutput, cont
3295
3230
  };
3296
3231
  const de_UnsupportedWorkspaceConfigurationExceptionRes = async (parsedOutput, context) => {
3297
3232
  const body = parsedOutput.body;
3298
- const deserialized = de_UnsupportedWorkspaceConfigurationException(body, context);
3233
+ const deserialized = (0, smithy_client_1._json)(body);
3299
3234
  const exception = new models_0_1.UnsupportedWorkspaceConfigurationException({
3300
3235
  $metadata: deserializeMetadata(parsedOutput),
3301
3236
  ...deserialized,
@@ -3304,1908 +3239,185 @@ const de_UnsupportedWorkspaceConfigurationExceptionRes = async (parsedOutput, co
3304
3239
  };
3305
3240
  const de_WorkspacesDefaultRoleNotFoundExceptionRes = async (parsedOutput, context) => {
3306
3241
  const body = parsedOutput.body;
3307
- const deserialized = de_WorkspacesDefaultRoleNotFoundException(body, context);
3242
+ const deserialized = (0, smithy_client_1._json)(body);
3308
3243
  const exception = new models_0_1.WorkspacesDefaultRoleNotFoundException({
3309
3244
  $metadata: deserializeMetadata(parsedOutput),
3310
3245
  ...deserialized,
3311
3246
  });
3312
3247
  return (0, smithy_client_1.decorateServiceException)(exception, body);
3313
3248
  };
3314
- const se_ApplicationList = (input, context) => {
3315
- return input
3316
- .filter((e) => e != null)
3317
- .map((entry) => {
3318
- return entry;
3319
- });
3320
- };
3321
- const se_AssociateConnectionAliasRequest = (input, context) => {
3322
- return {
3323
- ...(input.AliasId != null && { AliasId: input.AliasId }),
3324
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3325
- };
3326
- };
3327
- const se_AssociateIpGroupsRequest = (input, context) => {
3328
- return {
3329
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
3330
- ...(input.GroupIds != null && { GroupIds: se_IpGroupIdList(input.GroupIds, context) }),
3331
- };
3332
- };
3333
- const se_AuthorizeIpRulesRequest = (input, context) => {
3334
- return {
3335
- ...(input.GroupId != null && { GroupId: input.GroupId }),
3336
- ...(input.UserRules != null && { UserRules: se_IpRuleList(input.UserRules, context) }),
3337
- };
3338
- };
3339
- const se_BundleIdList = (input, context) => {
3340
- return input
3341
- .filter((e) => e != null)
3342
- .map((entry) => {
3343
- return entry;
3344
- });
3345
- };
3346
- const se_CertificateBasedAuthProperties = (input, context) => {
3347
- return {
3348
- ...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
3349
- ...(input.Status != null && { Status: input.Status }),
3350
- };
3351
- };
3352
- const se_ClientDeviceTypeList = (input, context) => {
3353
- return input
3354
- .filter((e) => e != null)
3355
- .map((entry) => {
3356
- return entry;
3357
- });
3358
- };
3359
- const se_ClientProperties = (input, context) => {
3360
- return {
3361
- ...(input.LogUploadEnabled != null && { LogUploadEnabled: input.LogUploadEnabled }),
3362
- ...(input.ReconnectEnabled != null && { ReconnectEnabled: input.ReconnectEnabled }),
3363
- };
3364
- };
3365
- const se_ComputeType = (input, context) => {
3366
- return {
3367
- ...(input.Name != null && { Name: input.Name }),
3368
- };
3369
- };
3370
- const se_ConnectionAliasIdList = (input, context) => {
3371
- return input
3372
- .filter((e) => e != null)
3373
- .map((entry) => {
3374
- return entry;
3375
- });
3376
- };
3377
- const se_ConnectionAliasPermission = (input, context) => {
3378
- return {
3379
- ...(input.AllowAssociation != null && { AllowAssociation: input.AllowAssociation }),
3380
- ...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
3381
- };
3382
- };
3383
- const se_CopyWorkspaceImageRequest = (input, context) => {
3384
- return {
3385
- ...(input.Description != null && { Description: input.Description }),
3386
- ...(input.Name != null && { Name: input.Name }),
3387
- ...(input.SourceImageId != null && { SourceImageId: input.SourceImageId }),
3388
- ...(input.SourceRegion != null && { SourceRegion: input.SourceRegion }),
3389
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3390
- };
3391
- };
3392
- const se_CreateConnectClientAddInRequest = (input, context) => {
3393
- return {
3394
- ...(input.Name != null && { Name: input.Name }),
3395
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3396
- ...(input.URL != null && { URL: input.URL }),
3397
- };
3398
- };
3399
- const se_CreateConnectionAliasRequest = (input, context) => {
3400
- return {
3401
- ...(input.ConnectionString != null && { ConnectionString: input.ConnectionString }),
3402
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3403
- };
3404
- };
3405
- const se_CreateIpGroupRequest = (input, context) => {
3406
- return {
3407
- ...(input.GroupDesc != null && { GroupDesc: input.GroupDesc }),
3408
- ...(input.GroupName != null && { GroupName: input.GroupName }),
3409
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3410
- ...(input.UserRules != null && { UserRules: se_IpRuleList(input.UserRules, context) }),
3411
- };
3412
- };
3413
- const se_CreateStandbyWorkspacesRequest = (input, context) => {
3414
- return {
3415
- ...(input.PrimaryRegion != null && { PrimaryRegion: input.PrimaryRegion }),
3416
- ...(input.StandbyWorkspaces != null && {
3417
- StandbyWorkspaces: se_StandbyWorkspacesList(input.StandbyWorkspaces, context),
3418
- }),
3419
- };
3420
- };
3421
- const se_CreateTagsRequest = (input, context) => {
3422
- return {
3423
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3424
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3425
- };
3426
- };
3427
- const se_CreateUpdatedWorkspaceImageRequest = (input, context) => {
3428
- return {
3429
- ...(input.Description != null && { Description: input.Description }),
3430
- ...(input.Name != null && { Name: input.Name }),
3431
- ...(input.SourceImageId != null && { SourceImageId: input.SourceImageId }),
3432
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3433
- };
3434
- };
3435
- const se_CreateWorkspaceBundleRequest = (input, context) => {
3436
- return {
3437
- ...(input.BundleDescription != null && { BundleDescription: input.BundleDescription }),
3438
- ...(input.BundleName != null && { BundleName: input.BundleName }),
3439
- ...(input.ComputeType != null && { ComputeType: se_ComputeType(input.ComputeType, context) }),
3440
- ...(input.ImageId != null && { ImageId: input.ImageId }),
3441
- ...(input.RootStorage != null && { RootStorage: se_RootStorage(input.RootStorage, context) }),
3442
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3443
- ...(input.UserStorage != null && { UserStorage: se_UserStorage(input.UserStorage, context) }),
3444
- };
3445
- };
3446
- const se_CreateWorkspaceImageRequest = (input, context) => {
3447
- return {
3448
- ...(input.Description != null && { Description: input.Description }),
3449
- ...(input.Name != null && { Name: input.Name }),
3450
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3451
- ...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
3452
- };
3453
- };
3454
- const se_CreateWorkspacesRequest = (input, context) => {
3455
- return {
3456
- ...(input.Workspaces != null && { Workspaces: se_WorkspaceRequestList(input.Workspaces, context) }),
3457
- };
3458
- };
3459
3249
  const se_DefaultImportClientBrandingAttributes = (input, context) => {
3460
- return {
3461
- ...(input.ForgotPasswordLink != null && { ForgotPasswordLink: input.ForgotPasswordLink }),
3462
- ...(input.LoginMessage != null && { LoginMessage: se_LoginMessage(input.LoginMessage, context) }),
3463
- ...(input.Logo != null && { Logo: context.base64Encoder(input.Logo) }),
3464
- ...(input.SupportEmail != null && { SupportEmail: input.SupportEmail }),
3465
- ...(input.SupportLink != null && { SupportLink: input.SupportLink }),
3466
- };
3467
- };
3468
- const se_DeletableCertificateBasedAuthPropertiesList = (input, context) => {
3469
- return input
3470
- .filter((e) => e != null)
3471
- .map((entry) => {
3472
- return entry;
3473
- });
3474
- };
3475
- const se_DeletableSamlPropertiesList = (input, context) => {
3476
- return input
3477
- .filter((e) => e != null)
3478
- .map((entry) => {
3479
- return entry;
3480
- });
3481
- };
3482
- const se_DeleteClientBrandingRequest = (input, context) => {
3483
- return {
3484
- ...(input.Platforms != null && { Platforms: se_ClientDeviceTypeList(input.Platforms, context) }),
3485
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3486
- };
3487
- };
3488
- const se_DeleteConnectClientAddInRequest = (input, context) => {
3489
- return {
3490
- ...(input.AddInId != null && { AddInId: input.AddInId }),
3491
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3492
- };
3493
- };
3494
- const se_DeleteConnectionAliasRequest = (input, context) => {
3495
- return {
3496
- ...(input.AliasId != null && { AliasId: input.AliasId }),
3497
- };
3498
- };
3499
- const se_DeleteIpGroupRequest = (input, context) => {
3500
- return {
3501
- ...(input.GroupId != null && { GroupId: input.GroupId }),
3502
- };
3503
- };
3504
- const se_DeleteTagsRequest = (input, context) => {
3505
- return {
3506
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3507
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
3508
- };
3509
- };
3510
- const se_DeleteWorkspaceBundleRequest = (input, context) => {
3511
- return {
3512
- ...(input.BundleId != null && { BundleId: input.BundleId }),
3513
- };
3514
- };
3515
- const se_DeleteWorkspaceImageRequest = (input, context) => {
3516
- return {
3517
- ...(input.ImageId != null && { ImageId: input.ImageId }),
3518
- };
3519
- };
3520
- const se_DeregisterWorkspaceDirectoryRequest = (input, context) => {
3521
- return {
3522
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
3523
- };
3524
- };
3525
- const se_DescribeAccountModificationsRequest = (input, context) => {
3526
- return {
3527
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3528
- };
3529
- };
3530
- const se_DescribeAccountRequest = (input, context) => {
3531
- return {};
3532
- };
3533
- const se_DescribeClientBrandingRequest = (input, context) => {
3534
- return {
3535
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3536
- };
3537
- };
3538
- const se_DescribeClientPropertiesRequest = (input, context) => {
3539
- return {
3540
- ...(input.ResourceIds != null && { ResourceIds: se_ResourceIdList(input.ResourceIds, context) }),
3541
- };
3542
- };
3543
- const se_DescribeConnectClientAddInsRequest = (input, context) => {
3544
- return {
3545
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3546
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3547
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3548
- };
3549
- };
3550
- const se_DescribeConnectionAliasesRequest = (input, context) => {
3551
- return {
3552
- ...(input.AliasIds != null && { AliasIds: se_ConnectionAliasIdList(input.AliasIds, context) }),
3553
- ...(input.Limit != null && { Limit: input.Limit }),
3554
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3555
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3556
- };
3557
- };
3558
- const se_DescribeConnectionAliasPermissionsRequest = (input, context) => {
3559
- return {
3560
- ...(input.AliasId != null && { AliasId: input.AliasId }),
3561
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3562
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3563
- };
3564
- };
3565
- const se_DescribeIpGroupsRequest = (input, context) => {
3566
- return {
3567
- ...(input.GroupIds != null && { GroupIds: se_IpGroupIdList(input.GroupIds, context) }),
3568
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3569
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3570
- };
3571
- };
3572
- const se_DescribeTagsRequest = (input, context) => {
3573
- return {
3574
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3575
- };
3576
- };
3577
- const se_DescribeWorkspaceBundlesRequest = (input, context) => {
3578
- return {
3579
- ...(input.BundleIds != null && { BundleIds: se_BundleIdList(input.BundleIds, context) }),
3580
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3581
- ...(input.Owner != null && { Owner: input.Owner }),
3582
- };
3583
- };
3584
- const se_DescribeWorkspaceDirectoriesRequest = (input, context) => {
3585
- return {
3586
- ...(input.DirectoryIds != null && { DirectoryIds: se_DirectoryIdList(input.DirectoryIds, context) }),
3587
- ...(input.Limit != null && { Limit: input.Limit }),
3588
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3589
- };
3590
- };
3591
- const se_DescribeWorkspaceImagePermissionsRequest = (input, context) => {
3592
- return {
3593
- ...(input.ImageId != null && { ImageId: input.ImageId }),
3594
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3595
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3596
- };
3597
- };
3598
- const se_DescribeWorkspaceImagesRequest = (input, context) => {
3599
- return {
3600
- ...(input.ImageIds != null && { ImageIds: se_WorkspaceImageIdList(input.ImageIds, context) }),
3601
- ...(input.ImageType != null && { ImageType: input.ImageType }),
3602
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3603
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3604
- };
3605
- };
3606
- const se_DescribeWorkspacesConnectionStatusRequest = (input, context) => {
3607
- return {
3608
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3609
- ...(input.WorkspaceIds != null && { WorkspaceIds: se_WorkspaceIdList(input.WorkspaceIds, context) }),
3610
- };
3611
- };
3612
- const se_DescribeWorkspaceSnapshotsRequest = (input, context) => {
3613
- return {
3614
- ...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
3615
- };
3616
- };
3617
- const se_DescribeWorkspacesRequest = (input, context) => {
3618
- return {
3619
- ...(input.BundleId != null && { BundleId: input.BundleId }),
3620
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
3621
- ...(input.Limit != null && { Limit: input.Limit }),
3622
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3623
- ...(input.UserName != null && { UserName: input.UserName }),
3624
- ...(input.WorkspaceIds != null && { WorkspaceIds: se_WorkspaceIdList(input.WorkspaceIds, context) }),
3625
- };
3626
- };
3627
- const se_DirectoryIdList = (input, context) => {
3628
- return input
3629
- .filter((e) => e != null)
3630
- .map((entry) => {
3631
- return entry;
3632
- });
3633
- };
3634
- const se_DisassociateConnectionAliasRequest = (input, context) => {
3635
- return {
3636
- ...(input.AliasId != null && { AliasId: input.AliasId }),
3637
- };
3638
- };
3639
- const se_DisassociateIpGroupsRequest = (input, context) => {
3640
- return {
3641
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
3642
- ...(input.GroupIds != null && { GroupIds: se_IpGroupIdList(input.GroupIds, context) }),
3643
- };
3644
- };
3645
- const se_ImportClientBrandingRequest = (input, context) => {
3646
- return {
3647
- ...(input.DeviceTypeAndroid != null && {
3648
- DeviceTypeAndroid: se_DefaultImportClientBrandingAttributes(input.DeviceTypeAndroid, context),
3649
- }),
3650
- ...(input.DeviceTypeIos != null && {
3651
- DeviceTypeIos: se_IosImportClientBrandingAttributes(input.DeviceTypeIos, context),
3652
- }),
3653
- ...(input.DeviceTypeLinux != null && {
3654
- DeviceTypeLinux: se_DefaultImportClientBrandingAttributes(input.DeviceTypeLinux, context),
3655
- }),
3656
- ...(input.DeviceTypeOsx != null && {
3657
- DeviceTypeOsx: se_DefaultImportClientBrandingAttributes(input.DeviceTypeOsx, context),
3658
- }),
3659
- ...(input.DeviceTypeWeb != null && {
3660
- DeviceTypeWeb: se_DefaultImportClientBrandingAttributes(input.DeviceTypeWeb, context),
3661
- }),
3662
- ...(input.DeviceTypeWindows != null && {
3663
- DeviceTypeWindows: se_DefaultImportClientBrandingAttributes(input.DeviceTypeWindows, context),
3664
- }),
3665
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3666
- };
3667
- };
3668
- const se_ImportWorkspaceImageRequest = (input, context) => {
3669
- return {
3670
- ...(input.Applications != null && { Applications: se_ApplicationList(input.Applications, context) }),
3671
- ...(input.Ec2ImageId != null && { Ec2ImageId: input.Ec2ImageId }),
3672
- ...(input.ImageDescription != null && { ImageDescription: input.ImageDescription }),
3673
- ...(input.ImageName != null && { ImageName: input.ImageName }),
3674
- ...(input.IngestionProcess != null && { IngestionProcess: input.IngestionProcess }),
3675
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3676
- };
3677
- };
3678
- const se_IosImportClientBrandingAttributes = (input, context) => {
3679
- return {
3680
- ...(input.ForgotPasswordLink != null && { ForgotPasswordLink: input.ForgotPasswordLink }),
3681
- ...(input.LoginMessage != null && { LoginMessage: se_LoginMessage(input.LoginMessage, context) }),
3682
- ...(input.Logo != null && { Logo: context.base64Encoder(input.Logo) }),
3683
- ...(input.Logo2x != null && { Logo2x: context.base64Encoder(input.Logo2x) }),
3684
- ...(input.Logo3x != null && { Logo3x: context.base64Encoder(input.Logo3x) }),
3685
- ...(input.SupportEmail != null && { SupportEmail: input.SupportEmail }),
3686
- ...(input.SupportLink != null && { SupportLink: input.SupportLink }),
3687
- };
3688
- };
3689
- const se_IpGroupIdList = (input, context) => {
3690
- return input
3691
- .filter((e) => e != null)
3692
- .map((entry) => {
3693
- return entry;
3694
- });
3695
- };
3696
- const se_IpRevokedRuleList = (input, context) => {
3697
- return input
3698
- .filter((e) => e != null)
3699
- .map((entry) => {
3700
- return entry;
3701
- });
3702
- };
3703
- const se_IpRuleItem = (input, context) => {
3704
- return {
3705
- ...(input.ipRule != null && { ipRule: input.ipRule }),
3706
- ...(input.ruleDesc != null && { ruleDesc: input.ruleDesc }),
3707
- };
3708
- };
3709
- const se_IpRuleList = (input, context) => {
3710
- return input
3711
- .filter((e) => e != null)
3712
- .map((entry) => {
3713
- return se_IpRuleItem(entry, context);
3714
- });
3715
- };
3716
- const se_ListAvailableManagementCidrRangesRequest = (input, context) => {
3717
- return {
3718
- ...(input.ManagementCidrRangeConstraint != null && {
3719
- ManagementCidrRangeConstraint: input.ManagementCidrRangeConstraint,
3720
- }),
3721
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3722
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3723
- };
3724
- };
3725
- const se_LoginMessage = (input, context) => {
3726
- return Object.entries(input).reduce((acc, [key, value]) => {
3727
- if (value === null) {
3728
- return acc;
3729
- }
3730
- acc[key] = value;
3731
- return acc;
3732
- }, {});
3733
- };
3734
- const se_MigrateWorkspaceRequest = (input, context) => {
3735
- return {
3736
- ...(input.BundleId != null && { BundleId: input.BundleId }),
3737
- ...(input.SourceWorkspaceId != null && { SourceWorkspaceId: input.SourceWorkspaceId }),
3738
- };
3739
- };
3740
- const se_ModifyAccountRequest = (input, context) => {
3741
- return {
3742
- ...(input.DedicatedTenancyManagementCidrRange != null && {
3743
- DedicatedTenancyManagementCidrRange: input.DedicatedTenancyManagementCidrRange,
3744
- }),
3745
- ...(input.DedicatedTenancySupport != null && { DedicatedTenancySupport: input.DedicatedTenancySupport }),
3746
- };
3747
- };
3748
- const se_ModifyCertificateBasedAuthPropertiesRequest = (input, context) => {
3749
- return {
3750
- ...(input.CertificateBasedAuthProperties != null && {
3751
- CertificateBasedAuthProperties: se_CertificateBasedAuthProperties(input.CertificateBasedAuthProperties, context),
3752
- }),
3753
- ...(input.PropertiesToDelete != null && {
3754
- PropertiesToDelete: se_DeletableCertificateBasedAuthPropertiesList(input.PropertiesToDelete, context),
3755
- }),
3756
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3757
- };
3758
- };
3759
- const se_ModifyClientPropertiesRequest = (input, context) => {
3760
- return {
3761
- ...(input.ClientProperties != null && { ClientProperties: se_ClientProperties(input.ClientProperties, context) }),
3762
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3763
- };
3764
- };
3765
- const se_ModifySamlPropertiesRequest = (input, context) => {
3766
- return {
3767
- ...(input.PropertiesToDelete != null && {
3768
- PropertiesToDelete: se_DeletableSamlPropertiesList(input.PropertiesToDelete, context),
3769
- }),
3770
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3771
- ...(input.SamlProperties != null && { SamlProperties: se_SamlProperties(input.SamlProperties, context) }),
3772
- };
3773
- };
3774
- const se_ModifySelfservicePermissionsRequest = (input, context) => {
3775
- return {
3776
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3777
- ...(input.SelfservicePermissions != null && {
3778
- SelfservicePermissions: se_SelfservicePermissions(input.SelfservicePermissions, context),
3779
- }),
3780
- };
3781
- };
3782
- const se_ModifyWorkspaceAccessPropertiesRequest = (input, context) => {
3783
- return {
3784
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3785
- ...(input.WorkspaceAccessProperties != null && {
3786
- WorkspaceAccessProperties: se_WorkspaceAccessProperties(input.WorkspaceAccessProperties, context),
3787
- }),
3788
- };
3789
- };
3790
- const se_ModifyWorkspaceCreationPropertiesRequest = (input, context) => {
3791
- return {
3792
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
3793
- ...(input.WorkspaceCreationProperties != null && {
3794
- WorkspaceCreationProperties: se_WorkspaceCreationProperties(input.WorkspaceCreationProperties, context),
3795
- }),
3796
- };
3797
- };
3798
- const se_ModifyWorkspacePropertiesRequest = (input, context) => {
3799
- return {
3800
- ...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
3801
- ...(input.WorkspaceProperties != null && {
3802
- WorkspaceProperties: se_WorkspaceProperties(input.WorkspaceProperties, context),
3803
- }),
3804
- };
3805
- };
3806
- const se_ModifyWorkspaceStateRequest = (input, context) => {
3807
- return {
3808
- ...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
3809
- ...(input.WorkspaceState != null && { WorkspaceState: input.WorkspaceState }),
3810
- };
3811
- };
3812
- const se_ProtocolList = (input, context) => {
3813
- return input
3814
- .filter((e) => e != null)
3815
- .map((entry) => {
3816
- return entry;
3817
- });
3818
- };
3819
- const se_RebootRequest = (input, context) => {
3820
- return {
3821
- ...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
3822
- };
3823
- };
3824
- const se_RebootWorkspaceRequests = (input, context) => {
3825
- return input
3826
- .filter((e) => e != null)
3827
- .map((entry) => {
3828
- return se_RebootRequest(entry, context);
3829
- });
3830
- };
3831
- const se_RebootWorkspacesRequest = (input, context) => {
3832
- return {
3833
- ...(input.RebootWorkspaceRequests != null && {
3834
- RebootWorkspaceRequests: se_RebootWorkspaceRequests(input.RebootWorkspaceRequests, context),
3835
- }),
3836
- };
3837
- };
3838
- const se_RebuildRequest = (input, context) => {
3839
- return {
3840
- ...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
3841
- };
3842
- };
3843
- const se_RebuildWorkspaceRequests = (input, context) => {
3844
- return input
3845
- .filter((e) => e != null)
3846
- .map((entry) => {
3847
- return se_RebuildRequest(entry, context);
3848
- });
3849
- };
3850
- const se_RebuildWorkspacesRequest = (input, context) => {
3851
- return {
3852
- ...(input.RebuildWorkspaceRequests != null && {
3853
- RebuildWorkspaceRequests: se_RebuildWorkspaceRequests(input.RebuildWorkspaceRequests, context),
3854
- }),
3855
- };
3856
- };
3857
- const se_RegisterWorkspaceDirectoryRequest = (input, context) => {
3858
- return {
3859
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
3860
- ...(input.EnableSelfService != null && { EnableSelfService: input.EnableSelfService }),
3861
- ...(input.EnableWorkDocs != null && { EnableWorkDocs: input.EnableWorkDocs }),
3862
- ...(input.SubnetIds != null && { SubnetIds: se_SubnetIds(input.SubnetIds, context) }),
3863
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3864
- ...(input.Tenancy != null && { Tenancy: input.Tenancy }),
3865
- };
3866
- };
3867
- const se_ResourceIdList = (input, context) => {
3868
- return input
3869
- .filter((e) => e != null)
3870
- .map((entry) => {
3871
- return entry;
3872
- });
3873
- };
3874
- const se_RestoreWorkspaceRequest = (input, context) => {
3875
- return {
3876
- ...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
3877
- };
3878
- };
3879
- const se_RevokeIpRulesRequest = (input, context) => {
3880
- return {
3881
- ...(input.GroupId != null && { GroupId: input.GroupId }),
3882
- ...(input.UserRules != null && { UserRules: se_IpRevokedRuleList(input.UserRules, context) }),
3883
- };
3884
- };
3885
- const se_RootStorage = (input, context) => {
3886
- return {
3887
- ...(input.Capacity != null && { Capacity: input.Capacity }),
3888
- };
3889
- };
3890
- const se_SamlProperties = (input, context) => {
3891
- return {
3892
- ...(input.RelayStateParameterName != null && { RelayStateParameterName: input.RelayStateParameterName }),
3893
- ...(input.Status != null && { Status: input.Status }),
3894
- ...(input.UserAccessUrl != null && { UserAccessUrl: input.UserAccessUrl }),
3895
- };
3896
- };
3897
- const se_SelfservicePermissions = (input, context) => {
3898
- return {
3899
- ...(input.ChangeComputeType != null && { ChangeComputeType: input.ChangeComputeType }),
3900
- ...(input.IncreaseVolumeSize != null && { IncreaseVolumeSize: input.IncreaseVolumeSize }),
3901
- ...(input.RebuildWorkspace != null && { RebuildWorkspace: input.RebuildWorkspace }),
3902
- ...(input.RestartWorkspace != null && { RestartWorkspace: input.RestartWorkspace }),
3903
- ...(input.SwitchRunningMode != null && { SwitchRunningMode: input.SwitchRunningMode }),
3904
- };
3905
- };
3906
- const se_StandbyWorkspace = (input, context) => {
3907
- return {
3908
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
3909
- ...(input.PrimaryWorkspaceId != null && { PrimaryWorkspaceId: input.PrimaryWorkspaceId }),
3910
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3911
- ...(input.VolumeEncryptionKey != null && { VolumeEncryptionKey: input.VolumeEncryptionKey }),
3912
- };
3913
- };
3914
- const se_StandbyWorkspacesList = (input, context) => {
3915
- return input
3916
- .filter((e) => e != null)
3917
- .map((entry) => {
3918
- return se_StandbyWorkspace(entry, context);
3919
- });
3920
- };
3921
- const se_StartRequest = (input, context) => {
3922
- return {
3923
- ...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
3924
- };
3925
- };
3926
- const se_StartWorkspaceRequests = (input, context) => {
3927
- return input
3928
- .filter((e) => e != null)
3929
- .map((entry) => {
3930
- return se_StartRequest(entry, context);
3931
- });
3932
- };
3933
- const se_StartWorkspacesRequest = (input, context) => {
3934
- return {
3935
- ...(input.StartWorkspaceRequests != null && {
3936
- StartWorkspaceRequests: se_StartWorkspaceRequests(input.StartWorkspaceRequests, context),
3937
- }),
3938
- };
3939
- };
3940
- const se_StopRequest = (input, context) => {
3941
- return {
3942
- ...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
3943
- };
3944
- };
3945
- const se_StopWorkspaceRequests = (input, context) => {
3946
- return input
3947
- .filter((e) => e != null)
3948
- .map((entry) => {
3949
- return se_StopRequest(entry, context);
3950
- });
3951
- };
3952
- const se_StopWorkspacesRequest = (input, context) => {
3953
- return {
3954
- ...(input.StopWorkspaceRequests != null && {
3955
- StopWorkspaceRequests: se_StopWorkspaceRequests(input.StopWorkspaceRequests, context),
3956
- }),
3957
- };
3958
- };
3959
- const se_SubnetIds = (input, context) => {
3960
- return input
3961
- .filter((e) => e != null)
3962
- .map((entry) => {
3963
- return entry;
3964
- });
3965
- };
3966
- const se_Tag = (input, context) => {
3967
- return {
3968
- ...(input.Key != null && { Key: input.Key }),
3969
- ...(input.Value != null && { Value: input.Value }),
3970
- };
3971
- };
3972
- const se_TagKeyList = (input, context) => {
3973
- return input
3974
- .filter((e) => e != null)
3975
- .map((entry) => {
3976
- return entry;
3977
- });
3978
- };
3979
- const se_TagList = (input, context) => {
3980
- return input
3981
- .filter((e) => e != null)
3982
- .map((entry) => {
3983
- return se_Tag(entry, context);
3984
- });
3985
- };
3986
- const se_TerminateRequest = (input, context) => {
3987
- return {
3988
- ...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
3989
- };
3990
- };
3991
- const se_TerminateWorkspaceRequests = (input, context) => {
3992
- return input
3993
- .filter((e) => e != null)
3994
- .map((entry) => {
3995
- return se_TerminateRequest(entry, context);
3996
- });
3997
- };
3998
- const se_TerminateWorkspacesRequest = (input, context) => {
3999
- return {
4000
- ...(input.TerminateWorkspaceRequests != null && {
4001
- TerminateWorkspaceRequests: se_TerminateWorkspaceRequests(input.TerminateWorkspaceRequests, context),
4002
- }),
4003
- };
4004
- };
4005
- const se_UpdateConnectClientAddInRequest = (input, context) => {
4006
- return {
4007
- ...(input.AddInId != null && { AddInId: input.AddInId }),
4008
- ...(input.Name != null && { Name: input.Name }),
4009
- ...(input.ResourceId != null && { ResourceId: input.ResourceId }),
4010
- ...(input.URL != null && { URL: input.URL }),
4011
- };
4012
- };
4013
- const se_UpdateConnectionAliasPermissionRequest = (input, context) => {
4014
- return {
4015
- ...(input.AliasId != null && { AliasId: input.AliasId }),
4016
- ...(input.ConnectionAliasPermission != null && {
4017
- ConnectionAliasPermission: se_ConnectionAliasPermission(input.ConnectionAliasPermission, context),
4018
- }),
4019
- };
4020
- };
4021
- const se_UpdateRulesOfIpGroupRequest = (input, context) => {
4022
- return {
4023
- ...(input.GroupId != null && { GroupId: input.GroupId }),
4024
- ...(input.UserRules != null && { UserRules: se_IpRuleList(input.UserRules, context) }),
4025
- };
4026
- };
4027
- const se_UpdateWorkspaceBundleRequest = (input, context) => {
4028
- return {
4029
- ...(input.BundleId != null && { BundleId: input.BundleId }),
4030
- ...(input.ImageId != null && { ImageId: input.ImageId }),
4031
- };
4032
- };
4033
- const se_UpdateWorkspaceImagePermissionRequest = (input, context) => {
4034
- return {
4035
- ...(input.AllowCopyImage != null && { AllowCopyImage: input.AllowCopyImage }),
4036
- ...(input.ImageId != null && { ImageId: input.ImageId }),
4037
- ...(input.SharedAccountId != null && { SharedAccountId: input.SharedAccountId }),
4038
- };
4039
- };
4040
- const se_UserStorage = (input, context) => {
4041
- return {
4042
- ...(input.Capacity != null && { Capacity: input.Capacity }),
4043
- };
4044
- };
4045
- const se_WorkspaceAccessProperties = (input, context) => {
4046
- return {
4047
- ...(input.DeviceTypeAndroid != null && { DeviceTypeAndroid: input.DeviceTypeAndroid }),
4048
- ...(input.DeviceTypeChromeOs != null && { DeviceTypeChromeOs: input.DeviceTypeChromeOs }),
4049
- ...(input.DeviceTypeIos != null && { DeviceTypeIos: input.DeviceTypeIos }),
4050
- ...(input.DeviceTypeLinux != null && { DeviceTypeLinux: input.DeviceTypeLinux }),
4051
- ...(input.DeviceTypeOsx != null && { DeviceTypeOsx: input.DeviceTypeOsx }),
4052
- ...(input.DeviceTypeWeb != null && { DeviceTypeWeb: input.DeviceTypeWeb }),
4053
- ...(input.DeviceTypeWindows != null && { DeviceTypeWindows: input.DeviceTypeWindows }),
4054
- ...(input.DeviceTypeZeroClient != null && { DeviceTypeZeroClient: input.DeviceTypeZeroClient }),
4055
- };
4056
- };
4057
- const se_WorkspaceCreationProperties = (input, context) => {
4058
- return {
4059
- ...(input.CustomSecurityGroupId != null && { CustomSecurityGroupId: input.CustomSecurityGroupId }),
4060
- ...(input.DefaultOu != null && { DefaultOu: input.DefaultOu }),
4061
- ...(input.EnableInternetAccess != null && { EnableInternetAccess: input.EnableInternetAccess }),
4062
- ...(input.EnableMaintenanceMode != null && { EnableMaintenanceMode: input.EnableMaintenanceMode }),
4063
- ...(input.EnableWorkDocs != null && { EnableWorkDocs: input.EnableWorkDocs }),
4064
- ...(input.UserEnabledAsLocalAdministrator != null && {
4065
- UserEnabledAsLocalAdministrator: input.UserEnabledAsLocalAdministrator,
4066
- }),
4067
- };
4068
- };
4069
- const se_WorkspaceIdList = (input, context) => {
4070
- return input
4071
- .filter((e) => e != null)
4072
- .map((entry) => {
4073
- return entry;
4074
- });
4075
- };
4076
- const se_WorkspaceImageIdList = (input, context) => {
4077
- return input
4078
- .filter((e) => e != null)
4079
- .map((entry) => {
4080
- return entry;
4081
- });
4082
- };
4083
- const se_WorkspaceProperties = (input, context) => {
4084
- return {
4085
- ...(input.ComputeTypeName != null && { ComputeTypeName: input.ComputeTypeName }),
4086
- ...(input.Protocols != null && { Protocols: se_ProtocolList(input.Protocols, context) }),
4087
- ...(input.RootVolumeSizeGib != null && { RootVolumeSizeGib: input.RootVolumeSizeGib }),
4088
- ...(input.RunningMode != null && { RunningMode: input.RunningMode }),
4089
- ...(input.RunningModeAutoStopTimeoutInMinutes != null && {
4090
- RunningModeAutoStopTimeoutInMinutes: input.RunningModeAutoStopTimeoutInMinutes,
4091
- }),
4092
- ...(input.UserVolumeSizeGib != null && { UserVolumeSizeGib: input.UserVolumeSizeGib }),
4093
- };
4094
- };
4095
- const se_WorkspaceRequest = (input, context) => {
4096
- return {
4097
- ...(input.BundleId != null && { BundleId: input.BundleId }),
4098
- ...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
4099
- ...(input.RootVolumeEncryptionEnabled != null && {
4100
- RootVolumeEncryptionEnabled: input.RootVolumeEncryptionEnabled,
4101
- }),
4102
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
4103
- ...(input.UserName != null && { UserName: input.UserName }),
4104
- ...(input.UserVolumeEncryptionEnabled != null && {
4105
- UserVolumeEncryptionEnabled: input.UserVolumeEncryptionEnabled,
4106
- }),
4107
- ...(input.VolumeEncryptionKey != null && { VolumeEncryptionKey: input.VolumeEncryptionKey }),
4108
- ...(input.WorkspaceProperties != null && {
4109
- WorkspaceProperties: se_WorkspaceProperties(input.WorkspaceProperties, context),
4110
- }),
4111
- };
4112
- };
4113
- const se_WorkspaceRequestList = (input, context) => {
4114
- return input
4115
- .filter((e) => e != null)
4116
- .map((entry) => {
4117
- return se_WorkspaceRequest(entry, context);
4118
- });
4119
- };
4120
- const de_AccessDeniedException = (output, context) => {
4121
- return {
4122
- message: (0, smithy_client_1.expectString)(output.message),
4123
- };
4124
- };
4125
- const de_AccountModification = (output, context) => {
4126
- return {
4127
- DedicatedTenancyManagementCidrRange: (0, smithy_client_1.expectString)(output.DedicatedTenancyManagementCidrRange),
4128
- DedicatedTenancySupport: (0, smithy_client_1.expectString)(output.DedicatedTenancySupport),
4129
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4130
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4131
- ModificationState: (0, smithy_client_1.expectString)(output.ModificationState),
4132
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
4133
- };
4134
- };
4135
- const de_AccountModificationList = (output, context) => {
4136
- const retVal = (output || [])
4137
- .filter((e) => e != null)
4138
- .map((entry) => {
4139
- if (entry === null) {
4140
- return null;
4141
- }
4142
- return de_AccountModification(entry, context);
4143
- });
4144
- return retVal;
4145
- };
4146
- const de_AssociateConnectionAliasResult = (output, context) => {
4147
- return {
4148
- ConnectionIdentifier: (0, smithy_client_1.expectString)(output.ConnectionIdentifier),
4149
- };
4150
- };
4151
- const de_AssociateIpGroupsResult = (output, context) => {
4152
- return {};
4153
- };
4154
- const de_AuthorizeIpRulesResult = (output, context) => {
4155
- return {};
4156
- };
4157
- const de_BundleList = (output, context) => {
4158
- const retVal = (output || [])
4159
- .filter((e) => e != null)
4160
- .map((entry) => {
4161
- if (entry === null) {
4162
- return null;
4163
- }
4164
- return de_WorkspaceBundle(entry, context);
4165
- });
4166
- return retVal;
4167
- };
4168
- const de_CertificateBasedAuthProperties = (output, context) => {
4169
- return {
4170
- CertificateAuthorityArn: (0, smithy_client_1.expectString)(output.CertificateAuthorityArn),
4171
- Status: (0, smithy_client_1.expectString)(output.Status),
4172
- };
4173
- };
4174
- const de_ClientProperties = (output, context) => {
4175
- return {
4176
- LogUploadEnabled: (0, smithy_client_1.expectString)(output.LogUploadEnabled),
4177
- ReconnectEnabled: (0, smithy_client_1.expectString)(output.ReconnectEnabled),
4178
- };
4179
- };
4180
- const de_ClientPropertiesList = (output, context) => {
4181
- const retVal = (output || [])
4182
- .filter((e) => e != null)
4183
- .map((entry) => {
4184
- if (entry === null) {
4185
- return null;
4186
- }
4187
- return de_ClientPropertiesResult(entry, context);
4188
- });
4189
- return retVal;
4190
- };
4191
- const de_ClientPropertiesResult = (output, context) => {
4192
- return {
4193
- ClientProperties: output.ClientProperties != null ? de_ClientProperties(output.ClientProperties, context) : undefined,
4194
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
4195
- };
4196
- };
4197
- const de_ComputeType = (output, context) => {
4198
- return {
4199
- Name: (0, smithy_client_1.expectString)(output.Name),
4200
- };
4201
- };
4202
- const de_ConnectClientAddIn = (output, context) => {
4203
- return {
4204
- AddInId: (0, smithy_client_1.expectString)(output.AddInId),
4205
- Name: (0, smithy_client_1.expectString)(output.Name),
4206
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
4207
- URL: (0, smithy_client_1.expectString)(output.URL),
4208
- };
4209
- };
4210
- const de_ConnectClientAddInList = (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_ConnectClientAddIn(entry, context);
4218
- });
4219
- return retVal;
4220
- };
4221
- const de_ConnectionAlias = (output, context) => {
4222
- return {
4223
- AliasId: (0, smithy_client_1.expectString)(output.AliasId),
4224
- Associations: output.Associations != null ? de_ConnectionAliasAssociationList(output.Associations, context) : undefined,
4225
- ConnectionString: (0, smithy_client_1.expectString)(output.ConnectionString),
4226
- OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
4227
- State: (0, smithy_client_1.expectString)(output.State),
4228
- };
4229
- };
4230
- const de_ConnectionAliasAssociation = (output, context) => {
4231
- return {
4232
- AssociatedAccountId: (0, smithy_client_1.expectString)(output.AssociatedAccountId),
4233
- AssociationStatus: (0, smithy_client_1.expectString)(output.AssociationStatus),
4234
- ConnectionIdentifier: (0, smithy_client_1.expectString)(output.ConnectionIdentifier),
4235
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
4236
- };
4237
- };
4238
- const de_ConnectionAliasAssociationList = (output, context) => {
4239
- const retVal = (output || [])
4240
- .filter((e) => e != null)
4241
- .map((entry) => {
4242
- if (entry === null) {
4243
- return null;
4244
- }
4245
- return de_ConnectionAliasAssociation(entry, context);
4246
- });
4247
- return retVal;
4248
- };
4249
- const de_ConnectionAliasList = (output, context) => {
4250
- const retVal = (output || [])
4251
- .filter((e) => e != null)
4252
- .map((entry) => {
4253
- if (entry === null) {
4254
- return null;
4255
- }
4256
- return de_ConnectionAlias(entry, context);
4257
- });
4258
- return retVal;
4259
- };
4260
- const de_ConnectionAliasPermission = (output, context) => {
4261
- return {
4262
- AllowAssociation: (0, smithy_client_1.expectBoolean)(output.AllowAssociation),
4263
- SharedAccountId: (0, smithy_client_1.expectString)(output.SharedAccountId),
4264
- };
4265
- };
4266
- const de_ConnectionAliasPermissions = (output, context) => {
4267
- const retVal = (output || [])
4268
- .filter((e) => e != null)
4269
- .map((entry) => {
4270
- if (entry === null) {
4271
- return null;
4272
- }
4273
- return de_ConnectionAliasPermission(entry, context);
4274
- });
4275
- return retVal;
4276
- };
4277
- const de_CopyWorkspaceImageResult = (output, context) => {
4278
- return {
4279
- ImageId: (0, smithy_client_1.expectString)(output.ImageId),
4280
- };
4281
- };
4282
- const de_CreateConnectClientAddInResult = (output, context) => {
4283
- return {
4284
- AddInId: (0, smithy_client_1.expectString)(output.AddInId),
4285
- };
4286
- };
4287
- const de_CreateConnectionAliasResult = (output, context) => {
4288
- return {
4289
- AliasId: (0, smithy_client_1.expectString)(output.AliasId),
4290
- };
4291
- };
4292
- const de_CreateIpGroupResult = (output, context) => {
4293
- return {
4294
- GroupId: (0, smithy_client_1.expectString)(output.GroupId),
4295
- };
4296
- };
4297
- const de_CreateStandbyWorkspacesResult = (output, context) => {
4298
- return {
4299
- FailedStandbyRequests: output.FailedStandbyRequests != null
4300
- ? de_FailedCreateStandbyWorkspacesRequestList(output.FailedStandbyRequests, context)
4301
- : undefined,
4302
- PendingStandbyRequests: output.PendingStandbyRequests != null
4303
- ? de_PendingCreateStandbyWorkspacesRequestList(output.PendingStandbyRequests, context)
4304
- : undefined,
4305
- };
4306
- };
4307
- const de_CreateTagsResult = (output, context) => {
4308
- return {};
4309
- };
4310
- const de_CreateUpdatedWorkspaceImageResult = (output, context) => {
4311
- return {
4312
- ImageId: (0, smithy_client_1.expectString)(output.ImageId),
4313
- };
4314
- };
4315
- const de_CreateWorkspaceBundleResult = (output, context) => {
4316
- return {
4317
- WorkspaceBundle: output.WorkspaceBundle != null ? de_WorkspaceBundle(output.WorkspaceBundle, context) : undefined,
4318
- };
4319
- };
4320
- const de_CreateWorkspaceImageResult = (output, context) => {
4321
- return {
4322
- Created: output.Created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created))) : undefined,
4323
- Description: (0, smithy_client_1.expectString)(output.Description),
4324
- ImageId: (0, smithy_client_1.expectString)(output.ImageId),
4325
- Name: (0, smithy_client_1.expectString)(output.Name),
4326
- OperatingSystem: output.OperatingSystem != null ? de_OperatingSystem(output.OperatingSystem, context) : undefined,
4327
- OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
4328
- RequiredTenancy: (0, smithy_client_1.expectString)(output.RequiredTenancy),
4329
- State: (0, smithy_client_1.expectString)(output.State),
4330
- };
4331
- };
4332
- const de_CreateWorkspacesResult = (output, context) => {
4333
- return {
4334
- FailedRequests: output.FailedRequests != null ? de_FailedCreateWorkspaceRequests(output.FailedRequests, context) : undefined,
4335
- PendingRequests: output.PendingRequests != null ? de_WorkspaceList(output.PendingRequests, context) : undefined,
4336
- };
4337
- };
4338
- const de_DedicatedTenancyCidrRangeList = (output, context) => {
4339
- const retVal = (output || [])
4340
- .filter((e) => e != null)
4341
- .map((entry) => {
4342
- if (entry === null) {
4343
- return null;
4344
- }
4345
- return (0, smithy_client_1.expectString)(entry);
4346
- });
4347
- return retVal;
4348
- };
4349
- const de_DefaultClientBrandingAttributes = (output, context) => {
4350
- return {
4351
- ForgotPasswordLink: (0, smithy_client_1.expectString)(output.ForgotPasswordLink),
4352
- LoginMessage: output.LoginMessage != null ? de_LoginMessage(output.LoginMessage, context) : undefined,
4353
- LogoUrl: (0, smithy_client_1.expectString)(output.LogoUrl),
4354
- SupportEmail: (0, smithy_client_1.expectString)(output.SupportEmail),
4355
- SupportLink: (0, smithy_client_1.expectString)(output.SupportLink),
4356
- };
4357
- };
4358
- const de_DefaultWorkspaceCreationProperties = (output, context) => {
4359
- return {
4360
- CustomSecurityGroupId: (0, smithy_client_1.expectString)(output.CustomSecurityGroupId),
4361
- DefaultOu: (0, smithy_client_1.expectString)(output.DefaultOu),
4362
- EnableInternetAccess: (0, smithy_client_1.expectBoolean)(output.EnableInternetAccess),
4363
- EnableMaintenanceMode: (0, smithy_client_1.expectBoolean)(output.EnableMaintenanceMode),
4364
- EnableWorkDocs: (0, smithy_client_1.expectBoolean)(output.EnableWorkDocs),
4365
- UserEnabledAsLocalAdministrator: (0, smithy_client_1.expectBoolean)(output.UserEnabledAsLocalAdministrator),
4366
- };
4367
- };
4368
- const de_DeleteClientBrandingResult = (output, context) => {
4369
- return {};
4370
- };
4371
- const de_DeleteConnectClientAddInResult = (output, context) => {
4372
- return {};
4373
- };
4374
- const de_DeleteConnectionAliasResult = (output, context) => {
4375
- return {};
4376
- };
4377
- const de_DeleteIpGroupResult = (output, context) => {
4378
- return {};
4379
- };
4380
- const de_DeleteTagsResult = (output, context) => {
4381
- return {};
4382
- };
4383
- const de_DeleteWorkspaceBundleResult = (output, context) => {
4384
- return {};
4385
- };
4386
- const de_DeleteWorkspaceImageResult = (output, context) => {
4387
- return {};
4388
- };
4389
- const de_DeregisterWorkspaceDirectoryResult = (output, context) => {
4390
- return {};
4391
- };
4392
- const de_DescribeAccountModificationsResult = (output, context) => {
4393
- return {
4394
- AccountModifications: output.AccountModifications != null
4395
- ? de_AccountModificationList(output.AccountModifications, context)
4396
- : undefined,
4397
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4398
- };
4399
- };
4400
- const de_DescribeAccountResult = (output, context) => {
4401
- return {
4402
- DedicatedTenancyManagementCidrRange: (0, smithy_client_1.expectString)(output.DedicatedTenancyManagementCidrRange),
4403
- DedicatedTenancySupport: (0, smithy_client_1.expectString)(output.DedicatedTenancySupport),
4404
- };
4405
- };
4406
- const de_DescribeClientBrandingResult = (output, context) => {
4407
- return {
4408
- DeviceTypeAndroid: output.DeviceTypeAndroid != null
4409
- ? de_DefaultClientBrandingAttributes(output.DeviceTypeAndroid, context)
4410
- : undefined,
4411
- DeviceTypeIos: output.DeviceTypeIos != null ? de_IosClientBrandingAttributes(output.DeviceTypeIos, context) : undefined,
4412
- DeviceTypeLinux: output.DeviceTypeLinux != null ? de_DefaultClientBrandingAttributes(output.DeviceTypeLinux, context) : undefined,
4413
- DeviceTypeOsx: output.DeviceTypeOsx != null ? de_DefaultClientBrandingAttributes(output.DeviceTypeOsx, context) : undefined,
4414
- DeviceTypeWeb: output.DeviceTypeWeb != null ? de_DefaultClientBrandingAttributes(output.DeviceTypeWeb, context) : undefined,
4415
- DeviceTypeWindows: output.DeviceTypeWindows != null
4416
- ? de_DefaultClientBrandingAttributes(output.DeviceTypeWindows, context)
4417
- : undefined,
4418
- };
4419
- };
4420
- const de_DescribeClientPropertiesResult = (output, context) => {
4421
- return {
4422
- ClientPropertiesList: output.ClientPropertiesList != null ? de_ClientPropertiesList(output.ClientPropertiesList, context) : undefined,
4423
- };
4424
- };
4425
- const de_DescribeConnectClientAddInsResult = (output, context) => {
4426
- return {
4427
- AddIns: output.AddIns != null ? de_ConnectClientAddInList(output.AddIns, context) : undefined,
4428
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4429
- };
4430
- };
4431
- const de_DescribeConnectionAliasesResult = (output, context) => {
4432
- return {
4433
- ConnectionAliases: output.ConnectionAliases != null ? de_ConnectionAliasList(output.ConnectionAliases, context) : undefined,
4434
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4435
- };
4436
- };
4437
- const de_DescribeConnectionAliasPermissionsResult = (output, context) => {
4438
- return {
4439
- AliasId: (0, smithy_client_1.expectString)(output.AliasId),
4440
- ConnectionAliasPermissions: output.ConnectionAliasPermissions != null
4441
- ? de_ConnectionAliasPermissions(output.ConnectionAliasPermissions, context)
4442
- : undefined,
4443
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4444
- };
4445
- };
4446
- const de_DescribeIpGroupsResult = (output, context) => {
4447
- return {
4448
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4449
- Result: output.Result != null ? de_WorkspacesIpGroupsList(output.Result, context) : undefined,
4450
- };
4451
- };
4452
- const de_DescribeTagsResult = (output, context) => {
4453
- return {
4454
- TagList: output.TagList != null ? de_TagList(output.TagList, context) : undefined,
4455
- };
4456
- };
4457
- const de_DescribeWorkspaceBundlesResult = (output, context) => {
4458
- return {
4459
- Bundles: output.Bundles != null ? de_BundleList(output.Bundles, context) : undefined,
4460
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4461
- };
4462
- };
4463
- const de_DescribeWorkspaceDirectoriesResult = (output, context) => {
4464
- return {
4465
- Directories: output.Directories != null ? de_DirectoryList(output.Directories, context) : undefined,
4466
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4467
- };
4468
- };
4469
- const de_DescribeWorkspaceImagePermissionsResult = (output, context) => {
4470
- return {
4471
- ImageId: (0, smithy_client_1.expectString)(output.ImageId),
4472
- ImagePermissions: output.ImagePermissions != null ? de_ImagePermissions(output.ImagePermissions, context) : undefined,
4473
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4474
- };
4475
- };
4476
- const de_DescribeWorkspaceImagesResult = (output, context) => {
4477
- return {
4478
- Images: output.Images != null ? de_WorkspaceImageList(output.Images, context) : undefined,
4479
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4480
- };
4481
- };
4482
- const de_DescribeWorkspacesConnectionStatusResult = (output, context) => {
4483
- return {
4484
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4485
- WorkspacesConnectionStatus: output.WorkspacesConnectionStatus != null
4486
- ? de_WorkspaceConnectionStatusList(output.WorkspacesConnectionStatus, context)
4487
- : undefined,
4488
- };
4489
- };
4490
- const de_DescribeWorkspaceSnapshotsResult = (output, context) => {
4491
- return {
4492
- RebuildSnapshots: output.RebuildSnapshots != null ? de_SnapshotList(output.RebuildSnapshots, context) : undefined,
4493
- RestoreSnapshots: output.RestoreSnapshots != null ? de_SnapshotList(output.RestoreSnapshots, context) : undefined,
4494
- };
4495
- };
4496
- const de_DescribeWorkspacesResult = (output, context) => {
4497
- return {
4498
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4499
- Workspaces: output.Workspaces != null ? de_WorkspaceList(output.Workspaces, context) : undefined,
4500
- };
4501
- };
4502
- const de_DirectoryList = (output, context) => {
4503
- const retVal = (output || [])
4504
- .filter((e) => e != null)
4505
- .map((entry) => {
4506
- if (entry === null) {
4507
- return null;
4508
- }
4509
- return de_WorkspaceDirectory(entry, context);
4510
- });
4511
- return retVal;
4512
- };
4513
- const de_DisassociateConnectionAliasResult = (output, context) => {
4514
- return {};
4515
- };
4516
- const de_DisassociateIpGroupsResult = (output, context) => {
4517
- return {};
4518
- };
4519
- const de_DnsIpAddresses = (output, context) => {
4520
- const retVal = (output || [])
4521
- .filter((e) => e != null)
4522
- .map((entry) => {
4523
- if (entry === null) {
4524
- return null;
4525
- }
4526
- return (0, smithy_client_1.expectString)(entry);
4527
- });
4528
- return retVal;
4529
- };
4530
- const de_FailedCreateStandbyWorkspacesRequest = (output, context) => {
4531
- return {
4532
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4533
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4534
- StandbyWorkspaceRequest: output.StandbyWorkspaceRequest != null ? de_StandbyWorkspace(output.StandbyWorkspaceRequest, context) : undefined,
4535
- };
4536
- };
4537
- const de_FailedCreateStandbyWorkspacesRequestList = (output, context) => {
4538
- const retVal = (output || [])
4539
- .filter((e) => e != null)
4540
- .map((entry) => {
4541
- if (entry === null) {
4542
- return null;
4543
- }
4544
- return de_FailedCreateStandbyWorkspacesRequest(entry, context);
4545
- });
4546
- return retVal;
4547
- };
4548
- const de_FailedCreateWorkspaceRequest = (output, context) => {
4549
- return {
4550
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4551
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4552
- WorkspaceRequest: output.WorkspaceRequest != null ? de_WorkspaceRequest(output.WorkspaceRequest, context) : undefined,
4553
- };
4554
- };
4555
- const de_FailedCreateWorkspaceRequests = (output, context) => {
4556
- const retVal = (output || [])
4557
- .filter((e) => e != null)
4558
- .map((entry) => {
4559
- if (entry === null) {
4560
- return null;
4561
- }
4562
- return de_FailedCreateWorkspaceRequest(entry, context);
4563
- });
4564
- return retVal;
4565
- };
4566
- const de_FailedRebootWorkspaceRequests = (output, context) => {
4567
- const retVal = (output || [])
4568
- .filter((e) => e != null)
4569
- .map((entry) => {
4570
- if (entry === null) {
4571
- return null;
4572
- }
4573
- return de_FailedWorkspaceChangeRequest(entry, context);
4574
- });
4575
- return retVal;
4576
- };
4577
- const de_FailedRebuildWorkspaceRequests = (output, context) => {
4578
- const retVal = (output || [])
4579
- .filter((e) => e != null)
4580
- .map((entry) => {
4581
- if (entry === null) {
4582
- return null;
4583
- }
4584
- return de_FailedWorkspaceChangeRequest(entry, context);
4585
- });
4586
- return retVal;
4587
- };
4588
- const de_FailedStartWorkspaceRequests = (output, context) => {
4589
- const retVal = (output || [])
4590
- .filter((e) => e != null)
4591
- .map((entry) => {
4592
- if (entry === null) {
4593
- return null;
4594
- }
4595
- return de_FailedWorkspaceChangeRequest(entry, context);
3250
+ return (0, smithy_client_1.take)(input, {
3251
+ ForgotPasswordLink: [],
3252
+ LoginMessage: smithy_client_1._json,
3253
+ Logo: context.base64Encoder,
3254
+ SupportEmail: [],
3255
+ SupportLink: [],
4596
3256
  });
4597
- return retVal;
4598
3257
  };
4599
- const de_FailedStopWorkspaceRequests = (output, context) => {
4600
- const retVal = (output || [])
4601
- .filter((e) => e != null)
4602
- .map((entry) => {
4603
- if (entry === null) {
4604
- return null;
4605
- }
4606
- return de_FailedWorkspaceChangeRequest(entry, context);
3258
+ const se_ImportClientBrandingRequest = (input, context) => {
3259
+ return (0, smithy_client_1.take)(input, {
3260
+ DeviceTypeAndroid: (_) => se_DefaultImportClientBrandingAttributes(_, context),
3261
+ DeviceTypeIos: (_) => se_IosImportClientBrandingAttributes(_, context),
3262
+ DeviceTypeLinux: (_) => se_DefaultImportClientBrandingAttributes(_, context),
3263
+ DeviceTypeOsx: (_) => se_DefaultImportClientBrandingAttributes(_, context),
3264
+ DeviceTypeWeb: (_) => se_DefaultImportClientBrandingAttributes(_, context),
3265
+ DeviceTypeWindows: (_) => se_DefaultImportClientBrandingAttributes(_, context),
3266
+ ResourceId: [],
4607
3267
  });
4608
- return retVal;
4609
3268
  };
4610
- const de_FailedTerminateWorkspaceRequests = (output, context) => {
4611
- const retVal = (output || [])
4612
- .filter((e) => e != null)
4613
- .map((entry) => {
4614
- if (entry === null) {
4615
- return null;
4616
- }
4617
- return de_FailedWorkspaceChangeRequest(entry, context);
3269
+ const se_IosImportClientBrandingAttributes = (input, context) => {
3270
+ return (0, smithy_client_1.take)(input, {
3271
+ ForgotPasswordLink: [],
3272
+ LoginMessage: smithy_client_1._json,
3273
+ Logo: context.base64Encoder,
3274
+ Logo2x: context.base64Encoder,
3275
+ Logo3x: context.base64Encoder,
3276
+ SupportEmail: [],
3277
+ SupportLink: [],
4618
3278
  });
4619
- return retVal;
4620
- };
4621
- const de_FailedWorkspaceChangeRequest = (output, context) => {
4622
- return {
4623
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
4624
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4625
- WorkspaceId: (0, smithy_client_1.expectString)(output.WorkspaceId),
4626
- };
4627
3279
  };
4628
- const de_ImagePermission = (output, context) => {
4629
- return {
4630
- SharedAccountId: (0, smithy_client_1.expectString)(output.SharedAccountId),
4631
- };
4632
- };
4633
- const de_ImagePermissions = (output, context) => {
4634
- const retVal = (output || [])
4635
- .filter((e) => e != null)
4636
- .map((entry) => {
4637
- if (entry === null) {
4638
- return null;
4639
- }
4640
- return de_ImagePermission(entry, context);
3280
+ const de_AccountModification = (output, context) => {
3281
+ return (0, smithy_client_1.take)(output, {
3282
+ DedicatedTenancyManagementCidrRange: smithy_client_1.expectString,
3283
+ DedicatedTenancySupport: smithy_client_1.expectString,
3284
+ ErrorCode: smithy_client_1.expectString,
3285
+ ErrorMessage: smithy_client_1.expectString,
3286
+ ModificationState: smithy_client_1.expectString,
3287
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4641
3288
  });
4642
- return retVal;
4643
- };
4644
- const de_ImportClientBrandingResult = (output, context) => {
4645
- return {
4646
- DeviceTypeAndroid: output.DeviceTypeAndroid != null
4647
- ? de_DefaultClientBrandingAttributes(output.DeviceTypeAndroid, context)
4648
- : undefined,
4649
- DeviceTypeIos: output.DeviceTypeIos != null ? de_IosClientBrandingAttributes(output.DeviceTypeIos, context) : undefined,
4650
- DeviceTypeLinux: output.DeviceTypeLinux != null ? de_DefaultClientBrandingAttributes(output.DeviceTypeLinux, context) : undefined,
4651
- DeviceTypeOsx: output.DeviceTypeOsx != null ? de_DefaultClientBrandingAttributes(output.DeviceTypeOsx, context) : undefined,
4652
- DeviceTypeWeb: output.DeviceTypeWeb != null ? de_DefaultClientBrandingAttributes(output.DeviceTypeWeb, context) : undefined,
4653
- DeviceTypeWindows: output.DeviceTypeWindows != null
4654
- ? de_DefaultClientBrandingAttributes(output.DeviceTypeWindows, context)
4655
- : undefined,
4656
- };
4657
- };
4658
- const de_ImportWorkspaceImageResult = (output, context) => {
4659
- return {
4660
- ImageId: (0, smithy_client_1.expectString)(output.ImageId),
4661
- };
4662
- };
4663
- const de_InvalidParameterValuesException = (output, context) => {
4664
- return {
4665
- message: (0, smithy_client_1.expectString)(output.message),
4666
- };
4667
3289
  };
4668
- const de_InvalidResourceStateException = (output, context) => {
4669
- return {
4670
- message: (0, smithy_client_1.expectString)(output.message),
4671
- };
4672
- };
4673
- const de_IosClientBrandingAttributes = (output, context) => {
4674
- return {
4675
- ForgotPasswordLink: (0, smithy_client_1.expectString)(output.ForgotPasswordLink),
4676
- LoginMessage: output.LoginMessage != null ? de_LoginMessage(output.LoginMessage, context) : undefined,
4677
- Logo2xUrl: (0, smithy_client_1.expectString)(output.Logo2xUrl),
4678
- Logo3xUrl: (0, smithy_client_1.expectString)(output.Logo3xUrl),
4679
- LogoUrl: (0, smithy_client_1.expectString)(output.LogoUrl),
4680
- SupportEmail: (0, smithy_client_1.expectString)(output.SupportEmail),
4681
- SupportLink: (0, smithy_client_1.expectString)(output.SupportLink),
4682
- };
4683
- };
4684
- const de_IpGroupIdList = (output, context) => {
3290
+ const de_AccountModificationList = (output, context) => {
4685
3291
  const retVal = (output || [])
4686
3292
  .filter((e) => e != null)
4687
3293
  .map((entry) => {
4688
- if (entry === null) {
4689
- return null;
4690
- }
4691
- return (0, smithy_client_1.expectString)(entry);
3294
+ return de_AccountModification(entry, context);
4692
3295
  });
4693
3296
  return retVal;
4694
3297
  };
4695
- const de_IpRuleItem = (output, context) => {
4696
- return {
4697
- ipRule: (0, smithy_client_1.expectString)(output.ipRule),
4698
- ruleDesc: (0, smithy_client_1.expectString)(output.ruleDesc),
4699
- };
4700
- };
4701
- const de_IpRuleList = (output, context) => {
3298
+ const de_BundleList = (output, context) => {
4702
3299
  const retVal = (output || [])
4703
3300
  .filter((e) => e != null)
4704
3301
  .map((entry) => {
4705
- if (entry === null) {
4706
- return null;
4707
- }
4708
- return de_IpRuleItem(entry, context);
3302
+ return de_WorkspaceBundle(entry, context);
4709
3303
  });
4710
3304
  return retVal;
4711
3305
  };
4712
- const de_ListAvailableManagementCidrRangesResult = (output, context) => {
4713
- return {
4714
- ManagementCidrRanges: output.ManagementCidrRanges != null
4715
- ? de_DedicatedTenancyCidrRangeList(output.ManagementCidrRanges, context)
4716
- : undefined,
4717
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4718
- };
4719
- };
4720
- const de_LoginMessage = (output, context) => {
4721
- return Object.entries(output).reduce((acc, [key, value]) => {
4722
- if (value === null) {
4723
- return acc;
4724
- }
4725
- acc[key] = (0, smithy_client_1.expectString)(value);
4726
- return acc;
4727
- }, {});
4728
- };
4729
- const de_MigrateWorkspaceResult = (output, context) => {
4730
- return {
4731
- SourceWorkspaceId: (0, smithy_client_1.expectString)(output.SourceWorkspaceId),
4732
- TargetWorkspaceId: (0, smithy_client_1.expectString)(output.TargetWorkspaceId),
4733
- };
4734
- };
4735
- const de_ModificationState = (output, context) => {
4736
- return {
4737
- Resource: (0, smithy_client_1.expectString)(output.Resource),
4738
- State: (0, smithy_client_1.expectString)(output.State),
4739
- };
4740
- };
4741
- const de_ModificationStateList = (output, context) => {
4742
- const retVal = (output || [])
4743
- .filter((e) => e != null)
4744
- .map((entry) => {
4745
- if (entry === null) {
4746
- return null;
4747
- }
4748
- return de_ModificationState(entry, context);
3306
+ const de_CreateWorkspaceBundleResult = (output, context) => {
3307
+ return (0, smithy_client_1.take)(output, {
3308
+ WorkspaceBundle: (_) => de_WorkspaceBundle(_, context),
4749
3309
  });
4750
- return retVal;
4751
3310
  };
4752
- const de_ModifyAccountResult = (output, context) => {
4753
- return {};
4754
- };
4755
- const de_ModifyCertificateBasedAuthPropertiesResult = (output, context) => {
4756
- return {};
4757
- };
4758
- const de_ModifyClientPropertiesResult = (output, context) => {
4759
- return {};
4760
- };
4761
- const de_ModifySamlPropertiesResult = (output, context) => {
4762
- return {};
4763
- };
4764
- const de_ModifySelfservicePermissionsResult = (output, context) => {
4765
- return {};
4766
- };
4767
- const de_ModifyWorkspaceAccessPropertiesResult = (output, context) => {
4768
- return {};
4769
- };
4770
- const de_ModifyWorkspaceCreationPropertiesResult = (output, context) => {
4771
- return {};
4772
- };
4773
- const de_ModifyWorkspacePropertiesResult = (output, context) => {
4774
- return {};
4775
- };
4776
- const de_ModifyWorkspaceStateResult = (output, context) => {
4777
- return {};
4778
- };
4779
- const de_OperatingSystem = (output, context) => {
4780
- return {
4781
- Type: (0, smithy_client_1.expectString)(output.Type),
4782
- };
4783
- };
4784
- const de_OperationInProgressException = (output, context) => {
4785
- return {
4786
- message: (0, smithy_client_1.expectString)(output.message),
4787
- };
4788
- };
4789
- const de_OperationNotSupportedException = (output, context) => {
4790
- return {
4791
- message: (0, smithy_client_1.expectString)(output.message),
4792
- reason: (0, smithy_client_1.expectString)(output.reason),
4793
- };
4794
- };
4795
- const de_PendingCreateStandbyWorkspacesRequest = (output, context) => {
4796
- return {
4797
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
4798
- State: (0, smithy_client_1.expectString)(output.State),
4799
- UserName: (0, smithy_client_1.expectString)(output.UserName),
4800
- WorkspaceId: (0, smithy_client_1.expectString)(output.WorkspaceId),
4801
- };
4802
- };
4803
- const de_PendingCreateStandbyWorkspacesRequestList = (output, context) => {
4804
- const retVal = (output || [])
4805
- .filter((e) => e != null)
4806
- .map((entry) => {
4807
- if (entry === null) {
4808
- return null;
4809
- }
4810
- return de_PendingCreateStandbyWorkspacesRequest(entry, context);
3311
+ const de_CreateWorkspaceImageResult = (output, context) => {
3312
+ return (0, smithy_client_1.take)(output, {
3313
+ Created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3314
+ Description: smithy_client_1.expectString,
3315
+ ImageId: smithy_client_1.expectString,
3316
+ Name: smithy_client_1.expectString,
3317
+ OperatingSystem: smithy_client_1._json,
3318
+ OwnerAccountId: smithy_client_1.expectString,
3319
+ RequiredTenancy: smithy_client_1.expectString,
3320
+ State: smithy_client_1.expectString,
4811
3321
  });
4812
- return retVal;
4813
3322
  };
4814
- const de_ProtocolList = (output, context) => {
4815
- const retVal = (output || [])
4816
- .filter((e) => e != null)
4817
- .map((entry) => {
4818
- if (entry === null) {
4819
- return null;
4820
- }
4821
- return (0, smithy_client_1.expectString)(entry);
3323
+ const de_DescribeAccountModificationsResult = (output, context) => {
3324
+ return (0, smithy_client_1.take)(output, {
3325
+ AccountModifications: (_) => de_AccountModificationList(_, context),
3326
+ NextToken: smithy_client_1.expectString,
4822
3327
  });
4823
- return retVal;
4824
- };
4825
- const de_RebootWorkspacesResult = (output, context) => {
4826
- return {
4827
- FailedRequests: output.FailedRequests != null ? de_FailedRebootWorkspaceRequests(output.FailedRequests, context) : undefined,
4828
- };
4829
- };
4830
- const de_RebuildWorkspacesResult = (output, context) => {
4831
- return {
4832
- FailedRequests: output.FailedRequests != null ? de_FailedRebuildWorkspaceRequests(output.FailedRequests, context) : undefined,
4833
- };
4834
3328
  };
4835
- const de_RegisterWorkspaceDirectoryResult = (output, context) => {
4836
- return {};
4837
- };
4838
- const de_RelatedWorkspaceProperties = (output, context) => {
4839
- return {
4840
- Region: (0, smithy_client_1.expectString)(output.Region),
4841
- State: (0, smithy_client_1.expectString)(output.State),
4842
- Type: (0, smithy_client_1.expectString)(output.Type),
4843
- WorkspaceId: (0, smithy_client_1.expectString)(output.WorkspaceId),
4844
- };
4845
- };
4846
- const de_RelatedWorkspaces = (output, context) => {
4847
- const retVal = (output || [])
4848
- .filter((e) => e != null)
4849
- .map((entry) => {
4850
- if (entry === null) {
4851
- return null;
4852
- }
4853
- return de_RelatedWorkspaceProperties(entry, context);
3329
+ const de_DescribeWorkspaceBundlesResult = (output, context) => {
3330
+ return (0, smithy_client_1.take)(output, {
3331
+ Bundles: (_) => de_BundleList(_, context),
3332
+ NextToken: smithy_client_1.expectString,
4854
3333
  });
4855
- return retVal;
4856
- };
4857
- const de_ResourceAlreadyExistsException = (output, context) => {
4858
- return {
4859
- message: (0, smithy_client_1.expectString)(output.message),
4860
- };
4861
- };
4862
- const de_ResourceAssociatedException = (output, context) => {
4863
- return {
4864
- message: (0, smithy_client_1.expectString)(output.message),
4865
- };
4866
- };
4867
- const de_ResourceCreationFailedException = (output, context) => {
4868
- return {
4869
- message: (0, smithy_client_1.expectString)(output.message),
4870
- };
4871
- };
4872
- const de_ResourceLimitExceededException = (output, context) => {
4873
- return {
4874
- message: (0, smithy_client_1.expectString)(output.message),
4875
- };
4876
- };
4877
- const de_ResourceNotFoundException = (output, context) => {
4878
- return {
4879
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
4880
- message: (0, smithy_client_1.expectString)(output.message),
4881
- };
4882
- };
4883
- const de_ResourceUnavailableException = (output, context) => {
4884
- return {
4885
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
4886
- message: (0, smithy_client_1.expectString)(output.message),
4887
- };
4888
- };
4889
- const de_RestoreWorkspaceResult = (output, context) => {
4890
- return {};
4891
- };
4892
- const de_RevokeIpRulesResult = (output, context) => {
4893
- return {};
4894
3334
  };
4895
- const de_RootStorage = (output, context) => {
4896
- return {
4897
- Capacity: (0, smithy_client_1.expectString)(output.Capacity),
4898
- };
3335
+ const de_DescribeWorkspaceImagesResult = (output, context) => {
3336
+ return (0, smithy_client_1.take)(output, {
3337
+ Images: (_) => de_WorkspaceImageList(_, context),
3338
+ NextToken: smithy_client_1.expectString,
3339
+ });
4899
3340
  };
4900
- const de_SamlProperties = (output, context) => {
4901
- return {
4902
- RelayStateParameterName: (0, smithy_client_1.expectString)(output.RelayStateParameterName),
4903
- Status: (0, smithy_client_1.expectString)(output.Status),
4904
- UserAccessUrl: (0, smithy_client_1.expectString)(output.UserAccessUrl),
4905
- };
3341
+ const de_DescribeWorkspacesConnectionStatusResult = (output, context) => {
3342
+ return (0, smithy_client_1.take)(output, {
3343
+ NextToken: smithy_client_1.expectString,
3344
+ WorkspacesConnectionStatus: (_) => de_WorkspaceConnectionStatusList(_, context),
3345
+ });
4906
3346
  };
4907
- const de_SelfservicePermissions = (output, context) => {
4908
- return {
4909
- ChangeComputeType: (0, smithy_client_1.expectString)(output.ChangeComputeType),
4910
- IncreaseVolumeSize: (0, smithy_client_1.expectString)(output.IncreaseVolumeSize),
4911
- RebuildWorkspace: (0, smithy_client_1.expectString)(output.RebuildWorkspace),
4912
- RestartWorkspace: (0, smithy_client_1.expectString)(output.RestartWorkspace),
4913
- SwitchRunningMode: (0, smithy_client_1.expectString)(output.SwitchRunningMode),
4914
- };
3347
+ const de_DescribeWorkspaceSnapshotsResult = (output, context) => {
3348
+ return (0, smithy_client_1.take)(output, {
3349
+ RebuildSnapshots: (_) => de_SnapshotList(_, context),
3350
+ RestoreSnapshots: (_) => de_SnapshotList(_, context),
3351
+ });
4915
3352
  };
4916
3353
  const de_Snapshot = (output, context) => {
4917
- return {
4918
- SnapshotTime: output.SnapshotTime != null
4919
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SnapshotTime)))
4920
- : undefined,
4921
- };
3354
+ return (0, smithy_client_1.take)(output, {
3355
+ SnapshotTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3356
+ });
4922
3357
  };
4923
3358
  const de_SnapshotList = (output, context) => {
4924
3359
  const retVal = (output || [])
4925
3360
  .filter((e) => e != null)
4926
3361
  .map((entry) => {
4927
- if (entry === null) {
4928
- return null;
4929
- }
4930
3362
  return de_Snapshot(entry, context);
4931
3363
  });
4932
3364
  return retVal;
4933
3365
  };
4934
- const de_StandbyWorkspace = (output, context) => {
4935
- return {
4936
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
4937
- PrimaryWorkspaceId: (0, smithy_client_1.expectString)(output.PrimaryWorkspaceId),
4938
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4939
- VolumeEncryptionKey: (0, smithy_client_1.expectString)(output.VolumeEncryptionKey),
4940
- };
4941
- };
4942
- const de_StartWorkspacesResult = (output, context) => {
4943
- return {
4944
- FailedRequests: output.FailedRequests != null ? de_FailedStartWorkspaceRequests(output.FailedRequests, context) : undefined,
4945
- };
4946
- };
4947
- const de_StopWorkspacesResult = (output, context) => {
4948
- return {
4949
- FailedRequests: output.FailedRequests != null ? de_FailedStopWorkspaceRequests(output.FailedRequests, context) : undefined,
4950
- };
4951
- };
4952
- const de_SubnetIds = (output, context) => {
4953
- const retVal = (output || [])
4954
- .filter((e) => e != null)
4955
- .map((entry) => {
4956
- if (entry === null) {
4957
- return null;
4958
- }
4959
- return (0, smithy_client_1.expectString)(entry);
4960
- });
4961
- return retVal;
4962
- };
4963
- const de_Tag = (output, context) => {
4964
- return {
4965
- Key: (0, smithy_client_1.expectString)(output.Key),
4966
- Value: (0, smithy_client_1.expectString)(output.Value),
4967
- };
4968
- };
4969
- const de_TagList = (output, context) => {
4970
- const retVal = (output || [])
4971
- .filter((e) => e != null)
4972
- .map((entry) => {
4973
- if (entry === null) {
4974
- return null;
4975
- }
4976
- return de_Tag(entry, context);
4977
- });
4978
- return retVal;
4979
- };
4980
- const de_TerminateWorkspacesResult = (output, context) => {
4981
- return {
4982
- FailedRequests: output.FailedRequests != null ? de_FailedTerminateWorkspaceRequests(output.FailedRequests, context) : undefined,
4983
- };
4984
- };
4985
- const de_UnsupportedNetworkConfigurationException = (output, context) => {
4986
- return {
4987
- message: (0, smithy_client_1.expectString)(output.message),
4988
- };
4989
- };
4990
- const de_UnsupportedWorkspaceConfigurationException = (output, context) => {
4991
- return {
4992
- message: (0, smithy_client_1.expectString)(output.message),
4993
- };
4994
- };
4995
- const de_UpdateConnectClientAddInResult = (output, context) => {
4996
- return {};
4997
- };
4998
- const de_UpdateConnectionAliasPermissionResult = (output, context) => {
4999
- return {};
5000
- };
5001
- const de_UpdateResult = (output, context) => {
5002
- return {
5003
- Description: (0, smithy_client_1.expectString)(output.Description),
5004
- UpdateAvailable: (0, smithy_client_1.expectBoolean)(output.UpdateAvailable),
5005
- };
5006
- };
5007
- const de_UpdateRulesOfIpGroupResult = (output, context) => {
5008
- return {};
5009
- };
5010
- const de_UpdateWorkspaceBundleResult = (output, context) => {
5011
- return {};
5012
- };
5013
- const de_UpdateWorkspaceImagePermissionResult = (output, context) => {
5014
- return {};
5015
- };
5016
- const de_UserStorage = (output, context) => {
5017
- return {
5018
- Capacity: (0, smithy_client_1.expectString)(output.Capacity),
5019
- };
5020
- };
5021
- const de_Workspace = (output, context) => {
5022
- return {
5023
- BundleId: (0, smithy_client_1.expectString)(output.BundleId),
5024
- ComputerName: (0, smithy_client_1.expectString)(output.ComputerName),
5025
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5026
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
5027
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
5028
- IpAddress: (0, smithy_client_1.expectString)(output.IpAddress),
5029
- ModificationStates: output.ModificationStates != null ? de_ModificationStateList(output.ModificationStates, context) : undefined,
5030
- RelatedWorkspaces: output.RelatedWorkspaces != null ? de_RelatedWorkspaces(output.RelatedWorkspaces, context) : undefined,
5031
- RootVolumeEncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.RootVolumeEncryptionEnabled),
5032
- State: (0, smithy_client_1.expectString)(output.State),
5033
- SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
5034
- UserName: (0, smithy_client_1.expectString)(output.UserName),
5035
- UserVolumeEncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.UserVolumeEncryptionEnabled),
5036
- VolumeEncryptionKey: (0, smithy_client_1.expectString)(output.VolumeEncryptionKey),
5037
- WorkspaceId: (0, smithy_client_1.expectString)(output.WorkspaceId),
5038
- WorkspaceProperties: output.WorkspaceProperties != null ? de_WorkspaceProperties(output.WorkspaceProperties, context) : undefined,
5039
- };
5040
- };
5041
- const de_WorkspaceAccessProperties = (output, context) => {
5042
- return {
5043
- DeviceTypeAndroid: (0, smithy_client_1.expectString)(output.DeviceTypeAndroid),
5044
- DeviceTypeChromeOs: (0, smithy_client_1.expectString)(output.DeviceTypeChromeOs),
5045
- DeviceTypeIos: (0, smithy_client_1.expectString)(output.DeviceTypeIos),
5046
- DeviceTypeLinux: (0, smithy_client_1.expectString)(output.DeviceTypeLinux),
5047
- DeviceTypeOsx: (0, smithy_client_1.expectString)(output.DeviceTypeOsx),
5048
- DeviceTypeWeb: (0, smithy_client_1.expectString)(output.DeviceTypeWeb),
5049
- DeviceTypeWindows: (0, smithy_client_1.expectString)(output.DeviceTypeWindows),
5050
- DeviceTypeZeroClient: (0, smithy_client_1.expectString)(output.DeviceTypeZeroClient),
5051
- };
5052
- };
5053
3366
  const de_WorkspaceBundle = (output, context) => {
5054
- return {
5055
- BundleId: (0, smithy_client_1.expectString)(output.BundleId),
5056
- BundleType: (0, smithy_client_1.expectString)(output.BundleType),
5057
- ComputeType: output.ComputeType != null ? de_ComputeType(output.ComputeType, context) : undefined,
5058
- CreationTime: output.CreationTime != null
5059
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
5060
- : undefined,
5061
- Description: (0, smithy_client_1.expectString)(output.Description),
5062
- ImageId: (0, smithy_client_1.expectString)(output.ImageId),
5063
- LastUpdatedTime: output.LastUpdatedTime != null
5064
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTime)))
5065
- : undefined,
5066
- Name: (0, smithy_client_1.expectString)(output.Name),
5067
- Owner: (0, smithy_client_1.expectString)(output.Owner),
5068
- RootStorage: output.RootStorage != null ? de_RootStorage(output.RootStorage, context) : undefined,
5069
- State: (0, smithy_client_1.expectString)(output.State),
5070
- UserStorage: output.UserStorage != null ? de_UserStorage(output.UserStorage, context) : undefined,
5071
- };
3367
+ return (0, smithy_client_1.take)(output, {
3368
+ BundleId: smithy_client_1.expectString,
3369
+ BundleType: smithy_client_1.expectString,
3370
+ ComputeType: smithy_client_1._json,
3371
+ CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3372
+ Description: smithy_client_1.expectString,
3373
+ ImageId: smithy_client_1.expectString,
3374
+ LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3375
+ Name: smithy_client_1.expectString,
3376
+ Owner: smithy_client_1.expectString,
3377
+ RootStorage: smithy_client_1._json,
3378
+ State: smithy_client_1.expectString,
3379
+ UserStorage: smithy_client_1._json,
3380
+ });
5072
3381
  };
5073
3382
  const de_WorkspaceConnectionStatus = (output, context) => {
5074
- return {
5075
- ConnectionState: (0, smithy_client_1.expectString)(output.ConnectionState),
5076
- ConnectionStateCheckTimestamp: output.ConnectionStateCheckTimestamp != null
5077
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ConnectionStateCheckTimestamp)))
5078
- : undefined,
5079
- LastKnownUserConnectionTimestamp: output.LastKnownUserConnectionTimestamp != null
5080
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastKnownUserConnectionTimestamp)))
5081
- : undefined,
5082
- WorkspaceId: (0, smithy_client_1.expectString)(output.WorkspaceId),
5083
- };
3383
+ return (0, smithy_client_1.take)(output, {
3384
+ ConnectionState: smithy_client_1.expectString,
3385
+ ConnectionStateCheckTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3386
+ LastKnownUserConnectionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3387
+ WorkspaceId: smithy_client_1.expectString,
3388
+ });
5084
3389
  };
5085
3390
  const de_WorkspaceConnectionStatusList = (output, context) => {
5086
3391
  const retVal = (output || [])
5087
3392
  .filter((e) => e != null)
5088
3393
  .map((entry) => {
5089
- if (entry === null) {
5090
- return null;
5091
- }
5092
3394
  return de_WorkspaceConnectionStatus(entry, context);
5093
3395
  });
5094
3396
  return retVal;
5095
3397
  };
5096
- const de_WorkspaceDirectory = (output, context) => {
5097
- return {
5098
- Alias: (0, smithy_client_1.expectString)(output.Alias),
5099
- CertificateBasedAuthProperties: output.CertificateBasedAuthProperties != null
5100
- ? de_CertificateBasedAuthProperties(output.CertificateBasedAuthProperties, context)
5101
- : undefined,
5102
- CustomerUserName: (0, smithy_client_1.expectString)(output.CustomerUserName),
5103
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5104
- DirectoryName: (0, smithy_client_1.expectString)(output.DirectoryName),
5105
- DirectoryType: (0, smithy_client_1.expectString)(output.DirectoryType),
5106
- DnsIpAddresses: output.DnsIpAddresses != null ? de_DnsIpAddresses(output.DnsIpAddresses, context) : undefined,
5107
- IamRoleId: (0, smithy_client_1.expectString)(output.IamRoleId),
5108
- RegistrationCode: (0, smithy_client_1.expectString)(output.RegistrationCode),
5109
- SamlProperties: output.SamlProperties != null ? de_SamlProperties(output.SamlProperties, context) : undefined,
5110
- SelfservicePermissions: output.SelfservicePermissions != null
5111
- ? de_SelfservicePermissions(output.SelfservicePermissions, context)
5112
- : undefined,
5113
- State: (0, smithy_client_1.expectString)(output.State),
5114
- SubnetIds: output.SubnetIds != null ? de_SubnetIds(output.SubnetIds, context) : undefined,
5115
- Tenancy: (0, smithy_client_1.expectString)(output.Tenancy),
5116
- WorkspaceAccessProperties: output.WorkspaceAccessProperties != null
5117
- ? de_WorkspaceAccessProperties(output.WorkspaceAccessProperties, context)
5118
- : undefined,
5119
- WorkspaceCreationProperties: output.WorkspaceCreationProperties != null
5120
- ? de_DefaultWorkspaceCreationProperties(output.WorkspaceCreationProperties, context)
5121
- : undefined,
5122
- WorkspaceSecurityGroupId: (0, smithy_client_1.expectString)(output.WorkspaceSecurityGroupId),
5123
- ipGroupIds: output.ipGroupIds != null ? de_IpGroupIdList(output.ipGroupIds, context) : undefined,
5124
- };
5125
- };
5126
3398
  const de_WorkspaceImage = (output, context) => {
5127
- return {
5128
- Created: output.Created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created))) : undefined,
5129
- Description: (0, smithy_client_1.expectString)(output.Description),
5130
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
5131
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
5132
- ImageId: (0, smithy_client_1.expectString)(output.ImageId),
5133
- Name: (0, smithy_client_1.expectString)(output.Name),
5134
- OperatingSystem: output.OperatingSystem != null ? de_OperatingSystem(output.OperatingSystem, context) : undefined,
5135
- OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
5136
- RequiredTenancy: (0, smithy_client_1.expectString)(output.RequiredTenancy),
5137
- State: (0, smithy_client_1.expectString)(output.State),
5138
- Updates: output.Updates != null ? de_UpdateResult(output.Updates, context) : undefined,
5139
- };
3399
+ return (0, smithy_client_1.take)(output, {
3400
+ Created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3401
+ Description: smithy_client_1.expectString,
3402
+ ErrorCode: smithy_client_1.expectString,
3403
+ ErrorMessage: smithy_client_1.expectString,
3404
+ ImageId: smithy_client_1.expectString,
3405
+ Name: smithy_client_1.expectString,
3406
+ OperatingSystem: smithy_client_1._json,
3407
+ OwnerAccountId: smithy_client_1.expectString,
3408
+ RequiredTenancy: smithy_client_1.expectString,
3409
+ State: smithy_client_1.expectString,
3410
+ Updates: smithy_client_1._json,
3411
+ });
5140
3412
  };
5141
3413
  const de_WorkspaceImageList = (output, context) => {
5142
3414
  const retVal = (output || [])
5143
3415
  .filter((e) => e != null)
5144
3416
  .map((entry) => {
5145
- if (entry === null) {
5146
- return null;
5147
- }
5148
3417
  return de_WorkspaceImage(entry, context);
5149
3418
  });
5150
3419
  return retVal;
5151
3420
  };
5152
- const de_WorkspaceList = (output, context) => {
5153
- const retVal = (output || [])
5154
- .filter((e) => e != null)
5155
- .map((entry) => {
5156
- if (entry === null) {
5157
- return null;
5158
- }
5159
- return de_Workspace(entry, context);
5160
- });
5161
- return retVal;
5162
- };
5163
- const de_WorkspaceProperties = (output, context) => {
5164
- return {
5165
- ComputeTypeName: (0, smithy_client_1.expectString)(output.ComputeTypeName),
5166
- Protocols: output.Protocols != null ? de_ProtocolList(output.Protocols, context) : undefined,
5167
- RootVolumeSizeGib: (0, smithy_client_1.expectInt32)(output.RootVolumeSizeGib),
5168
- RunningMode: (0, smithy_client_1.expectString)(output.RunningMode),
5169
- RunningModeAutoStopTimeoutInMinutes: (0, smithy_client_1.expectInt32)(output.RunningModeAutoStopTimeoutInMinutes),
5170
- UserVolumeSizeGib: (0, smithy_client_1.expectInt32)(output.UserVolumeSizeGib),
5171
- };
5172
- };
5173
- const de_WorkspaceRequest = (output, context) => {
5174
- return {
5175
- BundleId: (0, smithy_client_1.expectString)(output.BundleId),
5176
- DirectoryId: (0, smithy_client_1.expectString)(output.DirectoryId),
5177
- RootVolumeEncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.RootVolumeEncryptionEnabled),
5178
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
5179
- UserName: (0, smithy_client_1.expectString)(output.UserName),
5180
- UserVolumeEncryptionEnabled: (0, smithy_client_1.expectBoolean)(output.UserVolumeEncryptionEnabled),
5181
- VolumeEncryptionKey: (0, smithy_client_1.expectString)(output.VolumeEncryptionKey),
5182
- WorkspaceProperties: output.WorkspaceProperties != null ? de_WorkspaceProperties(output.WorkspaceProperties, context) : undefined,
5183
- };
5184
- };
5185
- const de_WorkspacesDefaultRoleNotFoundException = (output, context) => {
5186
- return {
5187
- message: (0, smithy_client_1.expectString)(output.message),
5188
- };
5189
- };
5190
- const de_WorkspacesIpGroup = (output, context) => {
5191
- return {
5192
- groupDesc: (0, smithy_client_1.expectString)(output.groupDesc),
5193
- groupId: (0, smithy_client_1.expectString)(output.groupId),
5194
- groupName: (0, smithy_client_1.expectString)(output.groupName),
5195
- userRules: output.userRules != null ? de_IpRuleList(output.userRules, context) : undefined,
5196
- };
5197
- };
5198
- const de_WorkspacesIpGroupsList = (output, context) => {
5199
- const retVal = (output || [])
5200
- .filter((e) => e != null)
5201
- .map((entry) => {
5202
- if (entry === null) {
5203
- return null;
5204
- }
5205
- return de_WorkspacesIpGroup(entry, context);
5206
- });
5207
- return retVal;
5208
- };
5209
3421
  const deserializeMetadata = (output) => ({
5210
3422
  httpStatusCode: output.statusCode,
5211
3423
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -5219,6 +3431,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
5219
3431
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
5220
3432
  };
5221
3433
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3434
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(WorkSpacesServiceException_1.WorkSpacesServiceException);
5222
3435
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
5223
3436
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
5224
3437
  const contents = {