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