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