@aws-sdk/client-workspaces 3.927.0 → 3.928.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.
Files changed (112) hide show
  1. package/dist-cjs/index.js +3098 -3222
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/WorkSpacesClient.js +2 -0
  4. package/dist-es/commands/AcceptAccountLinkInvitationCommand.js +3 -9
  5. package/dist-es/commands/AssociateConnectionAliasCommand.js +3 -9
  6. package/dist-es/commands/AssociateIpGroupsCommand.js +3 -9
  7. package/dist-es/commands/AssociateWorkspaceApplicationCommand.js +3 -9
  8. package/dist-es/commands/AuthorizeIpRulesCommand.js +3 -9
  9. package/dist-es/commands/CopyWorkspaceImageCommand.js +3 -9
  10. package/dist-es/commands/CreateAccountLinkInvitationCommand.js +3 -9
  11. package/dist-es/commands/CreateConnectClientAddInCommand.js +3 -9
  12. package/dist-es/commands/CreateConnectionAliasCommand.js +3 -9
  13. package/dist-es/commands/CreateIpGroupCommand.js +3 -9
  14. package/dist-es/commands/CreateStandbyWorkspacesCommand.js +3 -9
  15. package/dist-es/commands/CreateTagsCommand.js +3 -9
  16. package/dist-es/commands/CreateUpdatedWorkspaceImageCommand.js +3 -9
  17. package/dist-es/commands/CreateWorkspaceBundleCommand.js +3 -9
  18. package/dist-es/commands/CreateWorkspaceImageCommand.js +3 -9
  19. package/dist-es/commands/CreateWorkspacesCommand.js +3 -9
  20. package/dist-es/commands/CreateWorkspacesPoolCommand.js +3 -9
  21. package/dist-es/commands/DeleteAccountLinkInvitationCommand.js +3 -9
  22. package/dist-es/commands/DeleteClientBrandingCommand.js +3 -9
  23. package/dist-es/commands/DeleteConnectClientAddInCommand.js +3 -9
  24. package/dist-es/commands/DeleteConnectionAliasCommand.js +3 -9
  25. package/dist-es/commands/DeleteIpGroupCommand.js +3 -9
  26. package/dist-es/commands/DeleteTagsCommand.js +3 -9
  27. package/dist-es/commands/DeleteWorkspaceBundleCommand.js +3 -9
  28. package/dist-es/commands/DeleteWorkspaceImageCommand.js +3 -9
  29. package/dist-es/commands/DeployWorkspaceApplicationsCommand.js +3 -9
  30. package/dist-es/commands/DeregisterWorkspaceDirectoryCommand.js +3 -9
  31. package/dist-es/commands/DescribeAccountCommand.js +3 -9
  32. package/dist-es/commands/DescribeAccountModificationsCommand.js +3 -9
  33. package/dist-es/commands/DescribeApplicationAssociationsCommand.js +3 -9
  34. package/dist-es/commands/DescribeApplicationsCommand.js +3 -9
  35. package/dist-es/commands/DescribeBundleAssociationsCommand.js +3 -9
  36. package/dist-es/commands/DescribeClientBrandingCommand.js +3 -9
  37. package/dist-es/commands/DescribeClientPropertiesCommand.js +3 -9
  38. package/dist-es/commands/DescribeConnectClientAddInsCommand.js +3 -9
  39. package/dist-es/commands/DescribeConnectionAliasPermissionsCommand.js +3 -9
  40. package/dist-es/commands/DescribeConnectionAliasesCommand.js +3 -9
  41. package/dist-es/commands/DescribeCustomWorkspaceImageImportCommand.js +3 -9
  42. package/dist-es/commands/DescribeImageAssociationsCommand.js +3 -9
  43. package/dist-es/commands/DescribeIpGroupsCommand.js +3 -9
  44. package/dist-es/commands/DescribeTagsCommand.js +3 -9
  45. package/dist-es/commands/DescribeWorkspaceAssociationsCommand.js +3 -9
  46. package/dist-es/commands/DescribeWorkspaceBundlesCommand.js +3 -9
  47. package/dist-es/commands/DescribeWorkspaceDirectoriesCommand.js +3 -9
  48. package/dist-es/commands/DescribeWorkspaceImagePermissionsCommand.js +3 -9
  49. package/dist-es/commands/DescribeWorkspaceImagesCommand.js +3 -9
  50. package/dist-es/commands/DescribeWorkspaceSnapshotsCommand.js +3 -9
  51. package/dist-es/commands/DescribeWorkspacesCommand.js +3 -9
  52. package/dist-es/commands/DescribeWorkspacesConnectionStatusCommand.js +3 -9
  53. package/dist-es/commands/DescribeWorkspacesPoolSessionsCommand.js +3 -9
  54. package/dist-es/commands/DescribeWorkspacesPoolsCommand.js +3 -9
  55. package/dist-es/commands/DisassociateConnectionAliasCommand.js +3 -9
  56. package/dist-es/commands/DisassociateIpGroupsCommand.js +3 -9
  57. package/dist-es/commands/DisassociateWorkspaceApplicationCommand.js +3 -9
  58. package/dist-es/commands/GetAccountLinkCommand.js +3 -9
  59. package/dist-es/commands/ImportClientBrandingCommand.js +3 -9
  60. package/dist-es/commands/ImportCustomWorkspaceImageCommand.js +3 -9
  61. package/dist-es/commands/ImportWorkspaceImageCommand.js +3 -9
  62. package/dist-es/commands/ListAccountLinksCommand.js +3 -9
  63. package/dist-es/commands/ListAvailableManagementCidrRangesCommand.js +3 -9
  64. package/dist-es/commands/MigrateWorkspaceCommand.js +3 -9
  65. package/dist-es/commands/ModifyAccountCommand.js +3 -9
  66. package/dist-es/commands/ModifyCertificateBasedAuthPropertiesCommand.js +3 -9
  67. package/dist-es/commands/ModifyClientPropertiesCommand.js +3 -9
  68. package/dist-es/commands/ModifyEndpointEncryptionModeCommand.js +3 -9
  69. package/dist-es/commands/ModifySamlPropertiesCommand.js +3 -9
  70. package/dist-es/commands/ModifySelfservicePermissionsCommand.js +3 -9
  71. package/dist-es/commands/ModifyStreamingPropertiesCommand.js +3 -9
  72. package/dist-es/commands/ModifyWorkspaceAccessPropertiesCommand.js +3 -9
  73. package/dist-es/commands/ModifyWorkspaceCreationPropertiesCommand.js +3 -9
  74. package/dist-es/commands/ModifyWorkspacePropertiesCommand.js +3 -9
  75. package/dist-es/commands/ModifyWorkspaceStateCommand.js +3 -9
  76. package/dist-es/commands/RebootWorkspacesCommand.js +3 -9
  77. package/dist-es/commands/RebuildWorkspacesCommand.js +3 -9
  78. package/dist-es/commands/RegisterWorkspaceDirectoryCommand.js +3 -9
  79. package/dist-es/commands/RejectAccountLinkInvitationCommand.js +3 -9
  80. package/dist-es/commands/RestoreWorkspaceCommand.js +3 -9
  81. package/dist-es/commands/RevokeIpRulesCommand.js +3 -9
  82. package/dist-es/commands/StartWorkspacesCommand.js +3 -9
  83. package/dist-es/commands/StartWorkspacesPoolCommand.js +3 -9
  84. package/dist-es/commands/StopWorkspacesCommand.js +3 -9
  85. package/dist-es/commands/StopWorkspacesPoolCommand.js +3 -9
  86. package/dist-es/commands/TerminateWorkspacesCommand.js +3 -9
  87. package/dist-es/commands/TerminateWorkspacesPoolCommand.js +3 -9
  88. package/dist-es/commands/TerminateWorkspacesPoolSessionCommand.js +3 -9
  89. package/dist-es/commands/UpdateConnectClientAddInCommand.js +3 -9
  90. package/dist-es/commands/UpdateConnectionAliasPermissionCommand.js +3 -9
  91. package/dist-es/commands/UpdateRulesOfIpGroupCommand.js +3 -9
  92. package/dist-es/commands/UpdateWorkspaceBundleCommand.js +3 -9
  93. package/dist-es/commands/UpdateWorkspaceImagePermissionCommand.js +3 -9
  94. package/dist-es/commands/UpdateWorkspacesPoolCommand.js +3 -9
  95. package/dist-es/runtimeConfig.shared.js +7 -0
  96. package/dist-es/schemas/schemas_0.js +2878 -0
  97. package/dist-types/WorkSpacesClient.d.ts +10 -1
  98. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  99. package/dist-types/runtimeConfig.d.ts +1 -0
  100. package/dist-types/runtimeConfig.native.d.ts +1 -0
  101. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  102. package/dist-types/schemas/schemas_0.d.ts +461 -0
  103. package/dist-types/ts3.4/WorkSpacesClient.d.ts +4 -0
  104. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  105. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  106. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  107. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  108. package/dist-types/ts3.4/schemas/schemas_0.d.ts +466 -0
  109. package/package.json +5 -5
  110. package/dist-es/protocols/Aws_json1_1.js +0 -2521
  111. package/dist-types/protocols/Aws_json1_1.d.ts +0 -821
  112. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -1097
@@ -1,2521 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AccessDeniedException, ApplicationNotSupportedException, ComputeNotCompatibleException, ConflictException, IncompatibleApplicationsException, InternalServerException, InvalidParameterCombinationException, InvalidParameterValuesException, InvalidResourceStateException, OperatingSystemNotCompatibleException, OperationInProgressException, OperationNotSupportedException, ResourceAlreadyExistsException, ResourceAssociatedException, ResourceCreationFailedException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, ValidationException, } from "../models/models_0";
5
- import { UnsupportedNetworkConfigurationException, UnsupportedWorkspaceConfigurationException, WorkspacesDefaultRoleNotFoundException, } from "../models/models_1";
6
- import { WorkSpacesServiceException as __BaseException } from "../models/WorkSpacesServiceException";
7
- export const se_AcceptAccountLinkInvitationCommand = async (input, context) => {
8
- const headers = sharedHeaders("AcceptAccountLinkInvitation");
9
- let body;
10
- body = JSON.stringify(_json(input));
11
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
12
- };
13
- export const se_AssociateConnectionAliasCommand = async (input, context) => {
14
- const headers = sharedHeaders("AssociateConnectionAlias");
15
- let body;
16
- body = JSON.stringify(_json(input));
17
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
18
- };
19
- export const se_AssociateIpGroupsCommand = async (input, context) => {
20
- const headers = sharedHeaders("AssociateIpGroups");
21
- let body;
22
- body = JSON.stringify(_json(input));
23
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
24
- };
25
- export const se_AssociateWorkspaceApplicationCommand = async (input, context) => {
26
- const headers = sharedHeaders("AssociateWorkspaceApplication");
27
- let body;
28
- body = JSON.stringify(_json(input));
29
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
30
- };
31
- export const se_AuthorizeIpRulesCommand = async (input, context) => {
32
- const headers = sharedHeaders("AuthorizeIpRules");
33
- let body;
34
- body = JSON.stringify(_json(input));
35
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
- };
37
- export const se_CopyWorkspaceImageCommand = async (input, context) => {
38
- const headers = sharedHeaders("CopyWorkspaceImage");
39
- let body;
40
- body = JSON.stringify(_json(input));
41
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
- };
43
- export const se_CreateAccountLinkInvitationCommand = async (input, context) => {
44
- const headers = sharedHeaders("CreateAccountLinkInvitation");
45
- let body;
46
- body = JSON.stringify(_json(input));
47
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
- };
49
- export const se_CreateConnectClientAddInCommand = async (input, context) => {
50
- const headers = sharedHeaders("CreateConnectClientAddIn");
51
- let body;
52
- body = JSON.stringify(_json(input));
53
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
54
- };
55
- export const se_CreateConnectionAliasCommand = async (input, context) => {
56
- const headers = sharedHeaders("CreateConnectionAlias");
57
- let body;
58
- body = JSON.stringify(_json(input));
59
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
60
- };
61
- export const se_CreateIpGroupCommand = async (input, context) => {
62
- const headers = sharedHeaders("CreateIpGroup");
63
- let body;
64
- body = JSON.stringify(_json(input));
65
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
66
- };
67
- export const se_CreateStandbyWorkspacesCommand = async (input, context) => {
68
- const headers = sharedHeaders("CreateStandbyWorkspaces");
69
- let body;
70
- body = JSON.stringify(_json(input));
71
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
72
- };
73
- export const se_CreateTagsCommand = async (input, context) => {
74
- const headers = sharedHeaders("CreateTags");
75
- let body;
76
- body = JSON.stringify(_json(input));
77
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
78
- };
79
- export const se_CreateUpdatedWorkspaceImageCommand = async (input, context) => {
80
- const headers = sharedHeaders("CreateUpdatedWorkspaceImage");
81
- let body;
82
- body = JSON.stringify(_json(input));
83
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
- };
85
- export const se_CreateWorkspaceBundleCommand = async (input, context) => {
86
- const headers = sharedHeaders("CreateWorkspaceBundle");
87
- let body;
88
- body = JSON.stringify(_json(input));
89
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
90
- };
91
- export const se_CreateWorkspaceImageCommand = async (input, context) => {
92
- const headers = sharedHeaders("CreateWorkspaceImage");
93
- let body;
94
- body = JSON.stringify(_json(input));
95
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
96
- };
97
- export const se_CreateWorkspacesCommand = async (input, context) => {
98
- const headers = sharedHeaders("CreateWorkspaces");
99
- let body;
100
- body = JSON.stringify(_json(input));
101
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
102
- };
103
- export const se_CreateWorkspacesPoolCommand = async (input, context) => {
104
- const headers = sharedHeaders("CreateWorkspacesPool");
105
- let body;
106
- body = JSON.stringify(_json(input));
107
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
108
- };
109
- export const se_DeleteAccountLinkInvitationCommand = async (input, context) => {
110
- const headers = sharedHeaders("DeleteAccountLinkInvitation");
111
- let body;
112
- body = JSON.stringify(_json(input));
113
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
114
- };
115
- export const se_DeleteClientBrandingCommand = async (input, context) => {
116
- const headers = sharedHeaders("DeleteClientBranding");
117
- let body;
118
- body = JSON.stringify(_json(input));
119
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
120
- };
121
- export const se_DeleteConnectClientAddInCommand = async (input, context) => {
122
- const headers = sharedHeaders("DeleteConnectClientAddIn");
123
- let body;
124
- body = JSON.stringify(_json(input));
125
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
- };
127
- export const se_DeleteConnectionAliasCommand = async (input, context) => {
128
- const headers = sharedHeaders("DeleteConnectionAlias");
129
- let body;
130
- body = JSON.stringify(_json(input));
131
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
132
- };
133
- export const se_DeleteIpGroupCommand = async (input, context) => {
134
- const headers = sharedHeaders("DeleteIpGroup");
135
- let body;
136
- body = JSON.stringify(_json(input));
137
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
138
- };
139
- export const se_DeleteTagsCommand = async (input, context) => {
140
- const headers = sharedHeaders("DeleteTags");
141
- let body;
142
- body = JSON.stringify(_json(input));
143
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
144
- };
145
- export const se_DeleteWorkspaceBundleCommand = async (input, context) => {
146
- const headers = sharedHeaders("DeleteWorkspaceBundle");
147
- let body;
148
- body = JSON.stringify(_json(input));
149
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
150
- };
151
- export const se_DeleteWorkspaceImageCommand = async (input, context) => {
152
- const headers = sharedHeaders("DeleteWorkspaceImage");
153
- let body;
154
- body = JSON.stringify(_json(input));
155
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
156
- };
157
- export const se_DeployWorkspaceApplicationsCommand = async (input, context) => {
158
- const headers = sharedHeaders("DeployWorkspaceApplications");
159
- let body;
160
- body = JSON.stringify(_json(input));
161
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
162
- };
163
- export const se_DeregisterWorkspaceDirectoryCommand = async (input, context) => {
164
- const headers = sharedHeaders("DeregisterWorkspaceDirectory");
165
- let body;
166
- body = JSON.stringify(_json(input));
167
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
- };
169
- export const se_DescribeAccountCommand = async (input, context) => {
170
- const headers = sharedHeaders("DescribeAccount");
171
- let body;
172
- body = JSON.stringify(_json(input));
173
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
174
- };
175
- export const se_DescribeAccountModificationsCommand = async (input, context) => {
176
- const headers = sharedHeaders("DescribeAccountModifications");
177
- let body;
178
- body = JSON.stringify(_json(input));
179
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
180
- };
181
- export const se_DescribeApplicationAssociationsCommand = async (input, context) => {
182
- const headers = sharedHeaders("DescribeApplicationAssociations");
183
- let body;
184
- body = JSON.stringify(_json(input));
185
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
186
- };
187
- export const se_DescribeApplicationsCommand = async (input, context) => {
188
- const headers = sharedHeaders("DescribeApplications");
189
- let body;
190
- body = JSON.stringify(_json(input));
191
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
192
- };
193
- export const se_DescribeBundleAssociationsCommand = async (input, context) => {
194
- const headers = sharedHeaders("DescribeBundleAssociations");
195
- let body;
196
- body = JSON.stringify(_json(input));
197
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
198
- };
199
- export const se_DescribeClientBrandingCommand = async (input, context) => {
200
- const headers = sharedHeaders("DescribeClientBranding");
201
- let body;
202
- body = JSON.stringify(_json(input));
203
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
204
- };
205
- export const se_DescribeClientPropertiesCommand = async (input, context) => {
206
- const headers = sharedHeaders("DescribeClientProperties");
207
- let body;
208
- body = JSON.stringify(_json(input));
209
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
- };
211
- export const se_DescribeConnectClientAddInsCommand = async (input, context) => {
212
- const headers = sharedHeaders("DescribeConnectClientAddIns");
213
- let body;
214
- body = JSON.stringify(_json(input));
215
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
216
- };
217
- export const se_DescribeConnectionAliasesCommand = async (input, context) => {
218
- const headers = sharedHeaders("DescribeConnectionAliases");
219
- let body;
220
- body = JSON.stringify(_json(input));
221
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
- };
223
- export const se_DescribeConnectionAliasPermissionsCommand = async (input, context) => {
224
- const headers = sharedHeaders("DescribeConnectionAliasPermissions");
225
- let body;
226
- body = JSON.stringify(_json(input));
227
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
228
- };
229
- export const se_DescribeCustomWorkspaceImageImportCommand = async (input, context) => {
230
- const headers = sharedHeaders("DescribeCustomWorkspaceImageImport");
231
- let body;
232
- body = JSON.stringify(_json(input));
233
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
234
- };
235
- export const se_DescribeImageAssociationsCommand = async (input, context) => {
236
- const headers = sharedHeaders("DescribeImageAssociations");
237
- let body;
238
- body = JSON.stringify(_json(input));
239
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
240
- };
241
- export const se_DescribeIpGroupsCommand = async (input, context) => {
242
- const headers = sharedHeaders("DescribeIpGroups");
243
- let body;
244
- body = JSON.stringify(_json(input));
245
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
246
- };
247
- export const se_DescribeTagsCommand = async (input, context) => {
248
- const headers = sharedHeaders("DescribeTags");
249
- let body;
250
- body = JSON.stringify(_json(input));
251
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
- };
253
- export const se_DescribeWorkspaceAssociationsCommand = async (input, context) => {
254
- const headers = sharedHeaders("DescribeWorkspaceAssociations");
255
- let body;
256
- body = JSON.stringify(_json(input));
257
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
258
- };
259
- export const se_DescribeWorkspaceBundlesCommand = async (input, context) => {
260
- const headers = sharedHeaders("DescribeWorkspaceBundles");
261
- let body;
262
- body = JSON.stringify(_json(input));
263
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
264
- };
265
- export const se_DescribeWorkspaceDirectoriesCommand = async (input, context) => {
266
- const headers = sharedHeaders("DescribeWorkspaceDirectories");
267
- let body;
268
- body = JSON.stringify(_json(input));
269
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
270
- };
271
- export const se_DescribeWorkspaceImagePermissionsCommand = async (input, context) => {
272
- const headers = sharedHeaders("DescribeWorkspaceImagePermissions");
273
- let body;
274
- body = JSON.stringify(_json(input));
275
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
- };
277
- export const se_DescribeWorkspaceImagesCommand = async (input, context) => {
278
- const headers = sharedHeaders("DescribeWorkspaceImages");
279
- let body;
280
- body = JSON.stringify(_json(input));
281
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
282
- };
283
- export const se_DescribeWorkspacesCommand = async (input, context) => {
284
- const headers = sharedHeaders("DescribeWorkspaces");
285
- let body;
286
- body = JSON.stringify(_json(input));
287
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
288
- };
289
- export const se_DescribeWorkspacesConnectionStatusCommand = async (input, context) => {
290
- const headers = sharedHeaders("DescribeWorkspacesConnectionStatus");
291
- let body;
292
- body = JSON.stringify(_json(input));
293
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
- };
295
- export const se_DescribeWorkspaceSnapshotsCommand = async (input, context) => {
296
- const headers = sharedHeaders("DescribeWorkspaceSnapshots");
297
- let body;
298
- body = JSON.stringify(_json(input));
299
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
300
- };
301
- export const se_DescribeWorkspacesPoolsCommand = async (input, context) => {
302
- const headers = sharedHeaders("DescribeWorkspacesPools");
303
- let body;
304
- body = JSON.stringify(_json(input));
305
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
306
- };
307
- export const se_DescribeWorkspacesPoolSessionsCommand = async (input, context) => {
308
- const headers = sharedHeaders("DescribeWorkspacesPoolSessions");
309
- let body;
310
- body = JSON.stringify(_json(input));
311
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
312
- };
313
- export const se_DisassociateConnectionAliasCommand = async (input, context) => {
314
- const headers = sharedHeaders("DisassociateConnectionAlias");
315
- let body;
316
- body = JSON.stringify(_json(input));
317
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
- };
319
- export const se_DisassociateIpGroupsCommand = async (input, context) => {
320
- const headers = sharedHeaders("DisassociateIpGroups");
321
- let body;
322
- body = JSON.stringify(_json(input));
323
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
324
- };
325
- export const se_DisassociateWorkspaceApplicationCommand = async (input, context) => {
326
- const headers = sharedHeaders("DisassociateWorkspaceApplication");
327
- let body;
328
- body = JSON.stringify(_json(input));
329
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
330
- };
331
- export const se_GetAccountLinkCommand = async (input, context) => {
332
- const headers = sharedHeaders("GetAccountLink");
333
- let body;
334
- body = JSON.stringify(_json(input));
335
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
- };
337
- export const se_ImportClientBrandingCommand = async (input, context) => {
338
- const headers = sharedHeaders("ImportClientBranding");
339
- let body;
340
- body = JSON.stringify(se_ImportClientBrandingRequest(input, context));
341
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
- };
343
- export const se_ImportCustomWorkspaceImageCommand = async (input, context) => {
344
- const headers = sharedHeaders("ImportCustomWorkspaceImage");
345
- let body;
346
- body = JSON.stringify(_json(input));
347
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
- };
349
- export const se_ImportWorkspaceImageCommand = async (input, context) => {
350
- const headers = sharedHeaders("ImportWorkspaceImage");
351
- let body;
352
- body = JSON.stringify(_json(input));
353
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
- };
355
- export const se_ListAccountLinksCommand = async (input, context) => {
356
- const headers = sharedHeaders("ListAccountLinks");
357
- let body;
358
- body = JSON.stringify(_json(input));
359
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
- };
361
- export const se_ListAvailableManagementCidrRangesCommand = async (input, context) => {
362
- const headers = sharedHeaders("ListAvailableManagementCidrRanges");
363
- let body;
364
- body = JSON.stringify(_json(input));
365
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
- };
367
- export const se_MigrateWorkspaceCommand = async (input, context) => {
368
- const headers = sharedHeaders("MigrateWorkspace");
369
- let body;
370
- body = JSON.stringify(_json(input));
371
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
- };
373
- export const se_ModifyAccountCommand = async (input, context) => {
374
- const headers = sharedHeaders("ModifyAccount");
375
- let body;
376
- body = JSON.stringify(_json(input));
377
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
- };
379
- export const se_ModifyCertificateBasedAuthPropertiesCommand = async (input, context) => {
380
- const headers = sharedHeaders("ModifyCertificateBasedAuthProperties");
381
- let body;
382
- body = JSON.stringify(_json(input));
383
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
384
- };
385
- export const se_ModifyClientPropertiesCommand = async (input, context) => {
386
- const headers = sharedHeaders("ModifyClientProperties");
387
- let body;
388
- body = JSON.stringify(_json(input));
389
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
- };
391
- export const se_ModifyEndpointEncryptionModeCommand = async (input, context) => {
392
- const headers = sharedHeaders("ModifyEndpointEncryptionMode");
393
- let body;
394
- body = JSON.stringify(_json(input));
395
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
396
- };
397
- export const se_ModifySamlPropertiesCommand = async (input, context) => {
398
- const headers = sharedHeaders("ModifySamlProperties");
399
- let body;
400
- body = JSON.stringify(_json(input));
401
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
- };
403
- export const se_ModifySelfservicePermissionsCommand = async (input, context) => {
404
- const headers = sharedHeaders("ModifySelfservicePermissions");
405
- let body;
406
- body = JSON.stringify(_json(input));
407
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
- };
409
- export const se_ModifyStreamingPropertiesCommand = async (input, context) => {
410
- const headers = sharedHeaders("ModifyStreamingProperties");
411
- let body;
412
- body = JSON.stringify(_json(input));
413
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
- };
415
- export const se_ModifyWorkspaceAccessPropertiesCommand = async (input, context) => {
416
- const headers = sharedHeaders("ModifyWorkspaceAccessProperties");
417
- let body;
418
- body = JSON.stringify(_json(input));
419
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
420
- };
421
- export const se_ModifyWorkspaceCreationPropertiesCommand = async (input, context) => {
422
- const headers = sharedHeaders("ModifyWorkspaceCreationProperties");
423
- let body;
424
- body = JSON.stringify(_json(input));
425
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
426
- };
427
- export const se_ModifyWorkspacePropertiesCommand = async (input, context) => {
428
- const headers = sharedHeaders("ModifyWorkspaceProperties");
429
- let body;
430
- body = JSON.stringify(_json(input));
431
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
432
- };
433
- export const se_ModifyWorkspaceStateCommand = async (input, context) => {
434
- const headers = sharedHeaders("ModifyWorkspaceState");
435
- let body;
436
- body = JSON.stringify(_json(input));
437
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
- };
439
- export const se_RebootWorkspacesCommand = async (input, context) => {
440
- const headers = sharedHeaders("RebootWorkspaces");
441
- let body;
442
- body = JSON.stringify(_json(input));
443
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
444
- };
445
- export const se_RebuildWorkspacesCommand = async (input, context) => {
446
- const headers = sharedHeaders("RebuildWorkspaces");
447
- let body;
448
- body = JSON.stringify(_json(input));
449
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
450
- };
451
- export const se_RegisterWorkspaceDirectoryCommand = async (input, context) => {
452
- const headers = sharedHeaders("RegisterWorkspaceDirectory");
453
- let body;
454
- body = JSON.stringify(_json(input));
455
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
- };
457
- export const se_RejectAccountLinkInvitationCommand = async (input, context) => {
458
- const headers = sharedHeaders("RejectAccountLinkInvitation");
459
- let body;
460
- body = JSON.stringify(_json(input));
461
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
462
- };
463
- export const se_RestoreWorkspaceCommand = async (input, context) => {
464
- const headers = sharedHeaders("RestoreWorkspace");
465
- let body;
466
- body = JSON.stringify(_json(input));
467
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
468
- };
469
- export const se_RevokeIpRulesCommand = async (input, context) => {
470
- const headers = sharedHeaders("RevokeIpRules");
471
- let body;
472
- body = JSON.stringify(_json(input));
473
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
474
- };
475
- export const se_StartWorkspacesCommand = async (input, context) => {
476
- const headers = sharedHeaders("StartWorkspaces");
477
- let body;
478
- body = JSON.stringify(_json(input));
479
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
480
- };
481
- export const se_StartWorkspacesPoolCommand = async (input, context) => {
482
- const headers = sharedHeaders("StartWorkspacesPool");
483
- let body;
484
- body = JSON.stringify(_json(input));
485
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
486
- };
487
- export const se_StopWorkspacesCommand = async (input, context) => {
488
- const headers = sharedHeaders("StopWorkspaces");
489
- let body;
490
- body = JSON.stringify(_json(input));
491
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
492
- };
493
- export const se_StopWorkspacesPoolCommand = async (input, context) => {
494
- const headers = sharedHeaders("StopWorkspacesPool");
495
- let body;
496
- body = JSON.stringify(_json(input));
497
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
- };
499
- export const se_TerminateWorkspacesCommand = async (input, context) => {
500
- const headers = sharedHeaders("TerminateWorkspaces");
501
- let body;
502
- body = JSON.stringify(_json(input));
503
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
504
- };
505
- export const se_TerminateWorkspacesPoolCommand = async (input, context) => {
506
- const headers = sharedHeaders("TerminateWorkspacesPool");
507
- let body;
508
- body = JSON.stringify(_json(input));
509
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
- };
511
- export const se_TerminateWorkspacesPoolSessionCommand = async (input, context) => {
512
- const headers = sharedHeaders("TerminateWorkspacesPoolSession");
513
- let body;
514
- body = JSON.stringify(_json(input));
515
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
516
- };
517
- export const se_UpdateConnectClientAddInCommand = async (input, context) => {
518
- const headers = sharedHeaders("UpdateConnectClientAddIn");
519
- let body;
520
- body = JSON.stringify(_json(input));
521
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
522
- };
523
- export const se_UpdateConnectionAliasPermissionCommand = async (input, context) => {
524
- const headers = sharedHeaders("UpdateConnectionAliasPermission");
525
- let body;
526
- body = JSON.stringify(_json(input));
527
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
528
- };
529
- export const se_UpdateRulesOfIpGroupCommand = async (input, context) => {
530
- const headers = sharedHeaders("UpdateRulesOfIpGroup");
531
- let body;
532
- body = JSON.stringify(_json(input));
533
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
534
- };
535
- export const se_UpdateWorkspaceBundleCommand = async (input, context) => {
536
- const headers = sharedHeaders("UpdateWorkspaceBundle");
537
- let body;
538
- body = JSON.stringify(_json(input));
539
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
540
- };
541
- export const se_UpdateWorkspaceImagePermissionCommand = async (input, context) => {
542
- const headers = sharedHeaders("UpdateWorkspaceImagePermission");
543
- let body;
544
- body = JSON.stringify(_json(input));
545
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
546
- };
547
- export const se_UpdateWorkspacesPoolCommand = async (input, context) => {
548
- const headers = sharedHeaders("UpdateWorkspacesPool");
549
- let body;
550
- body = JSON.stringify(_json(input));
551
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
552
- };
553
- export const de_AcceptAccountLinkInvitationCommand = async (output, context) => {
554
- if (output.statusCode >= 300) {
555
- return de_CommandError(output, context);
556
- }
557
- const data = await parseBody(output.body, context);
558
- let contents = {};
559
- contents = _json(data);
560
- const response = {
561
- $metadata: deserializeMetadata(output),
562
- ...contents,
563
- };
564
- return response;
565
- };
566
- export const de_AssociateConnectionAliasCommand = async (output, context) => {
567
- if (output.statusCode >= 300) {
568
- return de_CommandError(output, context);
569
- }
570
- const data = await parseBody(output.body, context);
571
- let contents = {};
572
- contents = _json(data);
573
- const response = {
574
- $metadata: deserializeMetadata(output),
575
- ...contents,
576
- };
577
- return response;
578
- };
579
- export const de_AssociateIpGroupsCommand = async (output, context) => {
580
- if (output.statusCode >= 300) {
581
- return de_CommandError(output, context);
582
- }
583
- const data = await parseBody(output.body, context);
584
- let contents = {};
585
- contents = _json(data);
586
- const response = {
587
- $metadata: deserializeMetadata(output),
588
- ...contents,
589
- };
590
- return response;
591
- };
592
- export const de_AssociateWorkspaceApplicationCommand = async (output, context) => {
593
- if (output.statusCode >= 300) {
594
- return de_CommandError(output, context);
595
- }
596
- const data = await parseBody(output.body, context);
597
- let contents = {};
598
- contents = de_AssociateWorkspaceApplicationResult(data, context);
599
- const response = {
600
- $metadata: deserializeMetadata(output),
601
- ...contents,
602
- };
603
- return response;
604
- };
605
- export const de_AuthorizeIpRulesCommand = async (output, context) => {
606
- if (output.statusCode >= 300) {
607
- return de_CommandError(output, context);
608
- }
609
- const data = await parseBody(output.body, context);
610
- let contents = {};
611
- contents = _json(data);
612
- const response = {
613
- $metadata: deserializeMetadata(output),
614
- ...contents,
615
- };
616
- return response;
617
- };
618
- export const de_CopyWorkspaceImageCommand = async (output, context) => {
619
- if (output.statusCode >= 300) {
620
- return de_CommandError(output, context);
621
- }
622
- const data = await parseBody(output.body, context);
623
- let contents = {};
624
- contents = _json(data);
625
- const response = {
626
- $metadata: deserializeMetadata(output),
627
- ...contents,
628
- };
629
- return response;
630
- };
631
- export const de_CreateAccountLinkInvitationCommand = async (output, context) => {
632
- if (output.statusCode >= 300) {
633
- return de_CommandError(output, context);
634
- }
635
- const data = await parseBody(output.body, context);
636
- let contents = {};
637
- contents = _json(data);
638
- const response = {
639
- $metadata: deserializeMetadata(output),
640
- ...contents,
641
- };
642
- return response;
643
- };
644
- export const de_CreateConnectClientAddInCommand = async (output, context) => {
645
- if (output.statusCode >= 300) {
646
- return de_CommandError(output, context);
647
- }
648
- const data = await parseBody(output.body, context);
649
- let contents = {};
650
- contents = _json(data);
651
- const response = {
652
- $metadata: deserializeMetadata(output),
653
- ...contents,
654
- };
655
- return response;
656
- };
657
- export const de_CreateConnectionAliasCommand = async (output, context) => {
658
- if (output.statusCode >= 300) {
659
- return de_CommandError(output, context);
660
- }
661
- const data = await parseBody(output.body, context);
662
- let contents = {};
663
- contents = _json(data);
664
- const response = {
665
- $metadata: deserializeMetadata(output),
666
- ...contents,
667
- };
668
- return response;
669
- };
670
- export const de_CreateIpGroupCommand = async (output, context) => {
671
- if (output.statusCode >= 300) {
672
- return de_CommandError(output, context);
673
- }
674
- const data = await parseBody(output.body, context);
675
- let contents = {};
676
- contents = _json(data);
677
- const response = {
678
- $metadata: deserializeMetadata(output),
679
- ...contents,
680
- };
681
- return response;
682
- };
683
- export const de_CreateStandbyWorkspacesCommand = async (output, context) => {
684
- if (output.statusCode >= 300) {
685
- return de_CommandError(output, context);
686
- }
687
- const data = await parseBody(output.body, context);
688
- let contents = {};
689
- contents = _json(data);
690
- const response = {
691
- $metadata: deserializeMetadata(output),
692
- ...contents,
693
- };
694
- return response;
695
- };
696
- export const de_CreateTagsCommand = async (output, context) => {
697
- if (output.statusCode >= 300) {
698
- return de_CommandError(output, context);
699
- }
700
- const data = await parseBody(output.body, context);
701
- let contents = {};
702
- contents = _json(data);
703
- const response = {
704
- $metadata: deserializeMetadata(output),
705
- ...contents,
706
- };
707
- return response;
708
- };
709
- export const de_CreateUpdatedWorkspaceImageCommand = async (output, context) => {
710
- if (output.statusCode >= 300) {
711
- return de_CommandError(output, context);
712
- }
713
- const data = await parseBody(output.body, context);
714
- let contents = {};
715
- contents = _json(data);
716
- const response = {
717
- $metadata: deserializeMetadata(output),
718
- ...contents,
719
- };
720
- return response;
721
- };
722
- export const de_CreateWorkspaceBundleCommand = async (output, context) => {
723
- if (output.statusCode >= 300) {
724
- return de_CommandError(output, context);
725
- }
726
- const data = await parseBody(output.body, context);
727
- let contents = {};
728
- contents = de_CreateWorkspaceBundleResult(data, context);
729
- const response = {
730
- $metadata: deserializeMetadata(output),
731
- ...contents,
732
- };
733
- return response;
734
- };
735
- export const de_CreateWorkspaceImageCommand = async (output, context) => {
736
- if (output.statusCode >= 300) {
737
- return de_CommandError(output, context);
738
- }
739
- const data = await parseBody(output.body, context);
740
- let contents = {};
741
- contents = de_CreateWorkspaceImageResult(data, context);
742
- const response = {
743
- $metadata: deserializeMetadata(output),
744
- ...contents,
745
- };
746
- return response;
747
- };
748
- export const de_CreateWorkspacesCommand = async (output, context) => {
749
- if (output.statusCode >= 300) {
750
- return de_CommandError(output, context);
751
- }
752
- const data = await parseBody(output.body, context);
753
- let contents = {};
754
- contents = de_CreateWorkspacesResult(data, context);
755
- const response = {
756
- $metadata: deserializeMetadata(output),
757
- ...contents,
758
- };
759
- return response;
760
- };
761
- export const de_CreateWorkspacesPoolCommand = async (output, context) => {
762
- if (output.statusCode >= 300) {
763
- return de_CommandError(output, context);
764
- }
765
- const data = await parseBody(output.body, context);
766
- let contents = {};
767
- contents = de_CreateWorkspacesPoolResult(data, context);
768
- const response = {
769
- $metadata: deserializeMetadata(output),
770
- ...contents,
771
- };
772
- return response;
773
- };
774
- export const de_DeleteAccountLinkInvitationCommand = async (output, context) => {
775
- if (output.statusCode >= 300) {
776
- return de_CommandError(output, context);
777
- }
778
- const data = await parseBody(output.body, context);
779
- let contents = {};
780
- contents = _json(data);
781
- const response = {
782
- $metadata: deserializeMetadata(output),
783
- ...contents,
784
- };
785
- return response;
786
- };
787
- export const de_DeleteClientBrandingCommand = async (output, context) => {
788
- if (output.statusCode >= 300) {
789
- return de_CommandError(output, context);
790
- }
791
- const data = await parseBody(output.body, context);
792
- let contents = {};
793
- contents = _json(data);
794
- const response = {
795
- $metadata: deserializeMetadata(output),
796
- ...contents,
797
- };
798
- return response;
799
- };
800
- export const de_DeleteConnectClientAddInCommand = async (output, context) => {
801
- if (output.statusCode >= 300) {
802
- return de_CommandError(output, context);
803
- }
804
- const data = await parseBody(output.body, context);
805
- let contents = {};
806
- contents = _json(data);
807
- const response = {
808
- $metadata: deserializeMetadata(output),
809
- ...contents,
810
- };
811
- return response;
812
- };
813
- export const de_DeleteConnectionAliasCommand = async (output, context) => {
814
- if (output.statusCode >= 300) {
815
- return de_CommandError(output, context);
816
- }
817
- const data = await parseBody(output.body, context);
818
- let contents = {};
819
- contents = _json(data);
820
- const response = {
821
- $metadata: deserializeMetadata(output),
822
- ...contents,
823
- };
824
- return response;
825
- };
826
- export const de_DeleteIpGroupCommand = async (output, context) => {
827
- if (output.statusCode >= 300) {
828
- return de_CommandError(output, context);
829
- }
830
- const data = await parseBody(output.body, context);
831
- let contents = {};
832
- contents = _json(data);
833
- const response = {
834
- $metadata: deserializeMetadata(output),
835
- ...contents,
836
- };
837
- return response;
838
- };
839
- export const de_DeleteTagsCommand = async (output, context) => {
840
- if (output.statusCode >= 300) {
841
- return de_CommandError(output, context);
842
- }
843
- const data = await parseBody(output.body, context);
844
- let contents = {};
845
- contents = _json(data);
846
- const response = {
847
- $metadata: deserializeMetadata(output),
848
- ...contents,
849
- };
850
- return response;
851
- };
852
- export const de_DeleteWorkspaceBundleCommand = async (output, context) => {
853
- if (output.statusCode >= 300) {
854
- return de_CommandError(output, context);
855
- }
856
- const data = await parseBody(output.body, context);
857
- let contents = {};
858
- contents = _json(data);
859
- const response = {
860
- $metadata: deserializeMetadata(output),
861
- ...contents,
862
- };
863
- return response;
864
- };
865
- export const de_DeleteWorkspaceImageCommand = async (output, context) => {
866
- if (output.statusCode >= 300) {
867
- return de_CommandError(output, context);
868
- }
869
- const data = await parseBody(output.body, context);
870
- let contents = {};
871
- contents = _json(data);
872
- const response = {
873
- $metadata: deserializeMetadata(output),
874
- ...contents,
875
- };
876
- return response;
877
- };
878
- export const de_DeployWorkspaceApplicationsCommand = async (output, context) => {
879
- if (output.statusCode >= 300) {
880
- return de_CommandError(output, context);
881
- }
882
- const data = await parseBody(output.body, context);
883
- let contents = {};
884
- contents = de_DeployWorkspaceApplicationsResult(data, context);
885
- const response = {
886
- $metadata: deserializeMetadata(output),
887
- ...contents,
888
- };
889
- return response;
890
- };
891
- export const de_DeregisterWorkspaceDirectoryCommand = async (output, context) => {
892
- if (output.statusCode >= 300) {
893
- return de_CommandError(output, context);
894
- }
895
- const data = await parseBody(output.body, context);
896
- let contents = {};
897
- contents = _json(data);
898
- const response = {
899
- $metadata: deserializeMetadata(output),
900
- ...contents,
901
- };
902
- return response;
903
- };
904
- export const de_DescribeAccountCommand = async (output, context) => {
905
- if (output.statusCode >= 300) {
906
- return de_CommandError(output, context);
907
- }
908
- const data = await parseBody(output.body, context);
909
- let contents = {};
910
- contents = _json(data);
911
- const response = {
912
- $metadata: deserializeMetadata(output),
913
- ...contents,
914
- };
915
- return response;
916
- };
917
- export const de_DescribeAccountModificationsCommand = async (output, context) => {
918
- if (output.statusCode >= 300) {
919
- return de_CommandError(output, context);
920
- }
921
- const data = await parseBody(output.body, context);
922
- let contents = {};
923
- contents = de_DescribeAccountModificationsResult(data, context);
924
- const response = {
925
- $metadata: deserializeMetadata(output),
926
- ...contents,
927
- };
928
- return response;
929
- };
930
- export const de_DescribeApplicationAssociationsCommand = async (output, context) => {
931
- if (output.statusCode >= 300) {
932
- return de_CommandError(output, context);
933
- }
934
- const data = await parseBody(output.body, context);
935
- let contents = {};
936
- contents = de_DescribeApplicationAssociationsResult(data, context);
937
- const response = {
938
- $metadata: deserializeMetadata(output),
939
- ...contents,
940
- };
941
- return response;
942
- };
943
- export const de_DescribeApplicationsCommand = async (output, context) => {
944
- if (output.statusCode >= 300) {
945
- return de_CommandError(output, context);
946
- }
947
- const data = await parseBody(output.body, context);
948
- let contents = {};
949
- contents = de_DescribeApplicationsResult(data, context);
950
- const response = {
951
- $metadata: deserializeMetadata(output),
952
- ...contents,
953
- };
954
- return response;
955
- };
956
- export const de_DescribeBundleAssociationsCommand = async (output, context) => {
957
- if (output.statusCode >= 300) {
958
- return de_CommandError(output, context);
959
- }
960
- const data = await parseBody(output.body, context);
961
- let contents = {};
962
- contents = de_DescribeBundleAssociationsResult(data, context);
963
- const response = {
964
- $metadata: deserializeMetadata(output),
965
- ...contents,
966
- };
967
- return response;
968
- };
969
- export const de_DescribeClientBrandingCommand = async (output, context) => {
970
- if (output.statusCode >= 300) {
971
- return de_CommandError(output, context);
972
- }
973
- const data = await parseBody(output.body, context);
974
- let contents = {};
975
- contents = _json(data);
976
- const response = {
977
- $metadata: deserializeMetadata(output),
978
- ...contents,
979
- };
980
- return response;
981
- };
982
- export const de_DescribeClientPropertiesCommand = async (output, context) => {
983
- if (output.statusCode >= 300) {
984
- return de_CommandError(output, context);
985
- }
986
- const data = await parseBody(output.body, context);
987
- let contents = {};
988
- contents = _json(data);
989
- const response = {
990
- $metadata: deserializeMetadata(output),
991
- ...contents,
992
- };
993
- return response;
994
- };
995
- export const de_DescribeConnectClientAddInsCommand = async (output, context) => {
996
- if (output.statusCode >= 300) {
997
- return de_CommandError(output, context);
998
- }
999
- const data = await parseBody(output.body, context);
1000
- let contents = {};
1001
- contents = _json(data);
1002
- const response = {
1003
- $metadata: deserializeMetadata(output),
1004
- ...contents,
1005
- };
1006
- return response;
1007
- };
1008
- export const de_DescribeConnectionAliasesCommand = async (output, context) => {
1009
- if (output.statusCode >= 300) {
1010
- return de_CommandError(output, context);
1011
- }
1012
- const data = await parseBody(output.body, context);
1013
- let contents = {};
1014
- contents = _json(data);
1015
- const response = {
1016
- $metadata: deserializeMetadata(output),
1017
- ...contents,
1018
- };
1019
- return response;
1020
- };
1021
- export const de_DescribeConnectionAliasPermissionsCommand = async (output, context) => {
1022
- if (output.statusCode >= 300) {
1023
- return de_CommandError(output, context);
1024
- }
1025
- const data = await parseBody(output.body, context);
1026
- let contents = {};
1027
- contents = _json(data);
1028
- const response = {
1029
- $metadata: deserializeMetadata(output),
1030
- ...contents,
1031
- };
1032
- return response;
1033
- };
1034
- export const de_DescribeCustomWorkspaceImageImportCommand = async (output, context) => {
1035
- if (output.statusCode >= 300) {
1036
- return de_CommandError(output, context);
1037
- }
1038
- const data = await parseBody(output.body, context);
1039
- let contents = {};
1040
- contents = de_DescribeCustomWorkspaceImageImportResult(data, context);
1041
- const response = {
1042
- $metadata: deserializeMetadata(output),
1043
- ...contents,
1044
- };
1045
- return response;
1046
- };
1047
- export const de_DescribeImageAssociationsCommand = async (output, context) => {
1048
- if (output.statusCode >= 300) {
1049
- return de_CommandError(output, context);
1050
- }
1051
- const data = await parseBody(output.body, context);
1052
- let contents = {};
1053
- contents = de_DescribeImageAssociationsResult(data, context);
1054
- const response = {
1055
- $metadata: deserializeMetadata(output),
1056
- ...contents,
1057
- };
1058
- return response;
1059
- };
1060
- export const de_DescribeIpGroupsCommand = async (output, context) => {
1061
- if (output.statusCode >= 300) {
1062
- return de_CommandError(output, context);
1063
- }
1064
- const data = await parseBody(output.body, context);
1065
- let contents = {};
1066
- contents = _json(data);
1067
- const response = {
1068
- $metadata: deserializeMetadata(output),
1069
- ...contents,
1070
- };
1071
- return response;
1072
- };
1073
- export const de_DescribeTagsCommand = async (output, context) => {
1074
- if (output.statusCode >= 300) {
1075
- return de_CommandError(output, context);
1076
- }
1077
- const data = await parseBody(output.body, context);
1078
- let contents = {};
1079
- contents = _json(data);
1080
- const response = {
1081
- $metadata: deserializeMetadata(output),
1082
- ...contents,
1083
- };
1084
- return response;
1085
- };
1086
- export const de_DescribeWorkspaceAssociationsCommand = async (output, context) => {
1087
- if (output.statusCode >= 300) {
1088
- return de_CommandError(output, context);
1089
- }
1090
- const data = await parseBody(output.body, context);
1091
- let contents = {};
1092
- contents = de_DescribeWorkspaceAssociationsResult(data, context);
1093
- const response = {
1094
- $metadata: deserializeMetadata(output),
1095
- ...contents,
1096
- };
1097
- return response;
1098
- };
1099
- export const de_DescribeWorkspaceBundlesCommand = async (output, context) => {
1100
- if (output.statusCode >= 300) {
1101
- return de_CommandError(output, context);
1102
- }
1103
- const data = await parseBody(output.body, context);
1104
- let contents = {};
1105
- contents = de_DescribeWorkspaceBundlesResult(data, context);
1106
- const response = {
1107
- $metadata: deserializeMetadata(output),
1108
- ...contents,
1109
- };
1110
- return response;
1111
- };
1112
- export const de_DescribeWorkspaceDirectoriesCommand = async (output, context) => {
1113
- if (output.statusCode >= 300) {
1114
- return de_CommandError(output, context);
1115
- }
1116
- const data = await parseBody(output.body, context);
1117
- let contents = {};
1118
- contents = _json(data);
1119
- const response = {
1120
- $metadata: deserializeMetadata(output),
1121
- ...contents,
1122
- };
1123
- return response;
1124
- };
1125
- export const de_DescribeWorkspaceImagePermissionsCommand = async (output, context) => {
1126
- if (output.statusCode >= 300) {
1127
- return de_CommandError(output, context);
1128
- }
1129
- const data = await parseBody(output.body, context);
1130
- let contents = {};
1131
- contents = _json(data);
1132
- const response = {
1133
- $metadata: deserializeMetadata(output),
1134
- ...contents,
1135
- };
1136
- return response;
1137
- };
1138
- export const de_DescribeWorkspaceImagesCommand = async (output, context) => {
1139
- if (output.statusCode >= 300) {
1140
- return de_CommandError(output, context);
1141
- }
1142
- const data = await parseBody(output.body, context);
1143
- let contents = {};
1144
- contents = de_DescribeWorkspaceImagesResult(data, context);
1145
- const response = {
1146
- $metadata: deserializeMetadata(output),
1147
- ...contents,
1148
- };
1149
- return response;
1150
- };
1151
- export const de_DescribeWorkspacesCommand = async (output, context) => {
1152
- if (output.statusCode >= 300) {
1153
- return de_CommandError(output, context);
1154
- }
1155
- const data = await parseBody(output.body, context);
1156
- let contents = {};
1157
- contents = de_DescribeWorkspacesResult(data, context);
1158
- const response = {
1159
- $metadata: deserializeMetadata(output),
1160
- ...contents,
1161
- };
1162
- return response;
1163
- };
1164
- export const de_DescribeWorkspacesConnectionStatusCommand = async (output, context) => {
1165
- if (output.statusCode >= 300) {
1166
- return de_CommandError(output, context);
1167
- }
1168
- const data = await parseBody(output.body, context);
1169
- let contents = {};
1170
- contents = de_DescribeWorkspacesConnectionStatusResult(data, context);
1171
- const response = {
1172
- $metadata: deserializeMetadata(output),
1173
- ...contents,
1174
- };
1175
- return response;
1176
- };
1177
- export const de_DescribeWorkspaceSnapshotsCommand = async (output, context) => {
1178
- if (output.statusCode >= 300) {
1179
- return de_CommandError(output, context);
1180
- }
1181
- const data = await parseBody(output.body, context);
1182
- let contents = {};
1183
- contents = de_DescribeWorkspaceSnapshotsResult(data, context);
1184
- const response = {
1185
- $metadata: deserializeMetadata(output),
1186
- ...contents,
1187
- };
1188
- return response;
1189
- };
1190
- export const de_DescribeWorkspacesPoolsCommand = async (output, context) => {
1191
- if (output.statusCode >= 300) {
1192
- return de_CommandError(output, context);
1193
- }
1194
- const data = await parseBody(output.body, context);
1195
- let contents = {};
1196
- contents = de_DescribeWorkspacesPoolsResult(data, context);
1197
- const response = {
1198
- $metadata: deserializeMetadata(output),
1199
- ...contents,
1200
- };
1201
- return response;
1202
- };
1203
- export const de_DescribeWorkspacesPoolSessionsCommand = async (output, context) => {
1204
- if (output.statusCode >= 300) {
1205
- return de_CommandError(output, context);
1206
- }
1207
- const data = await parseBody(output.body, context);
1208
- let contents = {};
1209
- contents = de_DescribeWorkspacesPoolSessionsResult(data, context);
1210
- const response = {
1211
- $metadata: deserializeMetadata(output),
1212
- ...contents,
1213
- };
1214
- return response;
1215
- };
1216
- export const de_DisassociateConnectionAliasCommand = async (output, context) => {
1217
- if (output.statusCode >= 300) {
1218
- return de_CommandError(output, context);
1219
- }
1220
- const data = await parseBody(output.body, context);
1221
- let contents = {};
1222
- contents = _json(data);
1223
- const response = {
1224
- $metadata: deserializeMetadata(output),
1225
- ...contents,
1226
- };
1227
- return response;
1228
- };
1229
- export const de_DisassociateIpGroupsCommand = async (output, context) => {
1230
- if (output.statusCode >= 300) {
1231
- return de_CommandError(output, context);
1232
- }
1233
- const data = await parseBody(output.body, context);
1234
- let contents = {};
1235
- contents = _json(data);
1236
- const response = {
1237
- $metadata: deserializeMetadata(output),
1238
- ...contents,
1239
- };
1240
- return response;
1241
- };
1242
- export const de_DisassociateWorkspaceApplicationCommand = async (output, context) => {
1243
- if (output.statusCode >= 300) {
1244
- return de_CommandError(output, context);
1245
- }
1246
- const data = await parseBody(output.body, context);
1247
- let contents = {};
1248
- contents = de_DisassociateWorkspaceApplicationResult(data, context);
1249
- const response = {
1250
- $metadata: deserializeMetadata(output),
1251
- ...contents,
1252
- };
1253
- return response;
1254
- };
1255
- export const de_GetAccountLinkCommand = async (output, context) => {
1256
- if (output.statusCode >= 300) {
1257
- return de_CommandError(output, context);
1258
- }
1259
- const data = await parseBody(output.body, context);
1260
- let contents = {};
1261
- contents = _json(data);
1262
- const response = {
1263
- $metadata: deserializeMetadata(output),
1264
- ...contents,
1265
- };
1266
- return response;
1267
- };
1268
- export const de_ImportClientBrandingCommand = async (output, context) => {
1269
- if (output.statusCode >= 300) {
1270
- return de_CommandError(output, context);
1271
- }
1272
- const data = await parseBody(output.body, context);
1273
- let contents = {};
1274
- contents = _json(data);
1275
- const response = {
1276
- $metadata: deserializeMetadata(output),
1277
- ...contents,
1278
- };
1279
- return response;
1280
- };
1281
- export const de_ImportCustomWorkspaceImageCommand = async (output, context) => {
1282
- if (output.statusCode >= 300) {
1283
- return de_CommandError(output, context);
1284
- }
1285
- const data = await parseBody(output.body, context);
1286
- let contents = {};
1287
- contents = _json(data);
1288
- const response = {
1289
- $metadata: deserializeMetadata(output),
1290
- ...contents,
1291
- };
1292
- return response;
1293
- };
1294
- export const de_ImportWorkspaceImageCommand = async (output, context) => {
1295
- if (output.statusCode >= 300) {
1296
- return de_CommandError(output, context);
1297
- }
1298
- const data = await parseBody(output.body, context);
1299
- let contents = {};
1300
- contents = _json(data);
1301
- const response = {
1302
- $metadata: deserializeMetadata(output),
1303
- ...contents,
1304
- };
1305
- return response;
1306
- };
1307
- export const de_ListAccountLinksCommand = async (output, context) => {
1308
- if (output.statusCode >= 300) {
1309
- return de_CommandError(output, context);
1310
- }
1311
- const data = await parseBody(output.body, context);
1312
- let contents = {};
1313
- contents = _json(data);
1314
- const response = {
1315
- $metadata: deserializeMetadata(output),
1316
- ...contents,
1317
- };
1318
- return response;
1319
- };
1320
- export const de_ListAvailableManagementCidrRangesCommand = async (output, context) => {
1321
- if (output.statusCode >= 300) {
1322
- return de_CommandError(output, context);
1323
- }
1324
- const data = await parseBody(output.body, context);
1325
- let contents = {};
1326
- contents = _json(data);
1327
- const response = {
1328
- $metadata: deserializeMetadata(output),
1329
- ...contents,
1330
- };
1331
- return response;
1332
- };
1333
- export const de_MigrateWorkspaceCommand = async (output, context) => {
1334
- if (output.statusCode >= 300) {
1335
- return de_CommandError(output, context);
1336
- }
1337
- const data = await parseBody(output.body, context);
1338
- let contents = {};
1339
- contents = _json(data);
1340
- const response = {
1341
- $metadata: deserializeMetadata(output),
1342
- ...contents,
1343
- };
1344
- return response;
1345
- };
1346
- export const de_ModifyAccountCommand = async (output, context) => {
1347
- if (output.statusCode >= 300) {
1348
- return de_CommandError(output, context);
1349
- }
1350
- const data = await parseBody(output.body, context);
1351
- let contents = {};
1352
- contents = _json(data);
1353
- const response = {
1354
- $metadata: deserializeMetadata(output),
1355
- ...contents,
1356
- };
1357
- return response;
1358
- };
1359
- export const de_ModifyCertificateBasedAuthPropertiesCommand = async (output, context) => {
1360
- if (output.statusCode >= 300) {
1361
- return de_CommandError(output, context);
1362
- }
1363
- const data = await parseBody(output.body, context);
1364
- let contents = {};
1365
- contents = _json(data);
1366
- const response = {
1367
- $metadata: deserializeMetadata(output),
1368
- ...contents,
1369
- };
1370
- return response;
1371
- };
1372
- export const de_ModifyClientPropertiesCommand = async (output, context) => {
1373
- if (output.statusCode >= 300) {
1374
- return de_CommandError(output, context);
1375
- }
1376
- const data = await parseBody(output.body, context);
1377
- let contents = {};
1378
- contents = _json(data);
1379
- const response = {
1380
- $metadata: deserializeMetadata(output),
1381
- ...contents,
1382
- };
1383
- return response;
1384
- };
1385
- export const de_ModifyEndpointEncryptionModeCommand = async (output, context) => {
1386
- if (output.statusCode >= 300) {
1387
- return de_CommandError(output, context);
1388
- }
1389
- const data = await parseBody(output.body, context);
1390
- let contents = {};
1391
- contents = _json(data);
1392
- const response = {
1393
- $metadata: deserializeMetadata(output),
1394
- ...contents,
1395
- };
1396
- return response;
1397
- };
1398
- export const de_ModifySamlPropertiesCommand = async (output, context) => {
1399
- if (output.statusCode >= 300) {
1400
- return de_CommandError(output, context);
1401
- }
1402
- const data = await parseBody(output.body, context);
1403
- let contents = {};
1404
- contents = _json(data);
1405
- const response = {
1406
- $metadata: deserializeMetadata(output),
1407
- ...contents,
1408
- };
1409
- return response;
1410
- };
1411
- export const de_ModifySelfservicePermissionsCommand = async (output, context) => {
1412
- if (output.statusCode >= 300) {
1413
- return de_CommandError(output, context);
1414
- }
1415
- const data = await parseBody(output.body, context);
1416
- let contents = {};
1417
- contents = _json(data);
1418
- const response = {
1419
- $metadata: deserializeMetadata(output),
1420
- ...contents,
1421
- };
1422
- return response;
1423
- };
1424
- export const de_ModifyStreamingPropertiesCommand = async (output, context) => {
1425
- if (output.statusCode >= 300) {
1426
- return de_CommandError(output, context);
1427
- }
1428
- const data = await parseBody(output.body, context);
1429
- let contents = {};
1430
- contents = _json(data);
1431
- const response = {
1432
- $metadata: deserializeMetadata(output),
1433
- ...contents,
1434
- };
1435
- return response;
1436
- };
1437
- export const de_ModifyWorkspaceAccessPropertiesCommand = async (output, context) => {
1438
- if (output.statusCode >= 300) {
1439
- return de_CommandError(output, context);
1440
- }
1441
- const data = await parseBody(output.body, context);
1442
- let contents = {};
1443
- contents = _json(data);
1444
- const response = {
1445
- $metadata: deserializeMetadata(output),
1446
- ...contents,
1447
- };
1448
- return response;
1449
- };
1450
- export const de_ModifyWorkspaceCreationPropertiesCommand = async (output, context) => {
1451
- if (output.statusCode >= 300) {
1452
- return de_CommandError(output, context);
1453
- }
1454
- const data = await parseBody(output.body, context);
1455
- let contents = {};
1456
- contents = _json(data);
1457
- const response = {
1458
- $metadata: deserializeMetadata(output),
1459
- ...contents,
1460
- };
1461
- return response;
1462
- };
1463
- export const de_ModifyWorkspacePropertiesCommand = async (output, context) => {
1464
- if (output.statusCode >= 300) {
1465
- return de_CommandError(output, context);
1466
- }
1467
- const data = await parseBody(output.body, context);
1468
- let contents = {};
1469
- contents = _json(data);
1470
- const response = {
1471
- $metadata: deserializeMetadata(output),
1472
- ...contents,
1473
- };
1474
- return response;
1475
- };
1476
- export const de_ModifyWorkspaceStateCommand = async (output, context) => {
1477
- if (output.statusCode >= 300) {
1478
- return de_CommandError(output, context);
1479
- }
1480
- const data = await parseBody(output.body, context);
1481
- let contents = {};
1482
- contents = _json(data);
1483
- const response = {
1484
- $metadata: deserializeMetadata(output),
1485
- ...contents,
1486
- };
1487
- return response;
1488
- };
1489
- export const de_RebootWorkspacesCommand = async (output, context) => {
1490
- if (output.statusCode >= 300) {
1491
- return de_CommandError(output, context);
1492
- }
1493
- const data = await parseBody(output.body, context);
1494
- let contents = {};
1495
- contents = _json(data);
1496
- const response = {
1497
- $metadata: deserializeMetadata(output),
1498
- ...contents,
1499
- };
1500
- return response;
1501
- };
1502
- export const de_RebuildWorkspacesCommand = async (output, context) => {
1503
- if (output.statusCode >= 300) {
1504
- return de_CommandError(output, context);
1505
- }
1506
- const data = await parseBody(output.body, context);
1507
- let contents = {};
1508
- contents = _json(data);
1509
- const response = {
1510
- $metadata: deserializeMetadata(output),
1511
- ...contents,
1512
- };
1513
- return response;
1514
- };
1515
- export const de_RegisterWorkspaceDirectoryCommand = async (output, context) => {
1516
- if (output.statusCode >= 300) {
1517
- return de_CommandError(output, context);
1518
- }
1519
- const data = await parseBody(output.body, context);
1520
- let contents = {};
1521
- contents = _json(data);
1522
- const response = {
1523
- $metadata: deserializeMetadata(output),
1524
- ...contents,
1525
- };
1526
- return response;
1527
- };
1528
- export const de_RejectAccountLinkInvitationCommand = async (output, context) => {
1529
- if (output.statusCode >= 300) {
1530
- return de_CommandError(output, context);
1531
- }
1532
- const data = await parseBody(output.body, context);
1533
- let contents = {};
1534
- contents = _json(data);
1535
- const response = {
1536
- $metadata: deserializeMetadata(output),
1537
- ...contents,
1538
- };
1539
- return response;
1540
- };
1541
- export const de_RestoreWorkspaceCommand = async (output, context) => {
1542
- if (output.statusCode >= 300) {
1543
- return de_CommandError(output, context);
1544
- }
1545
- const data = await parseBody(output.body, context);
1546
- let contents = {};
1547
- contents = _json(data);
1548
- const response = {
1549
- $metadata: deserializeMetadata(output),
1550
- ...contents,
1551
- };
1552
- return response;
1553
- };
1554
- export const de_RevokeIpRulesCommand = async (output, context) => {
1555
- if (output.statusCode >= 300) {
1556
- return de_CommandError(output, context);
1557
- }
1558
- const data = await parseBody(output.body, context);
1559
- let contents = {};
1560
- contents = _json(data);
1561
- const response = {
1562
- $metadata: deserializeMetadata(output),
1563
- ...contents,
1564
- };
1565
- return response;
1566
- };
1567
- export const de_StartWorkspacesCommand = async (output, context) => {
1568
- if (output.statusCode >= 300) {
1569
- return de_CommandError(output, context);
1570
- }
1571
- const data = await parseBody(output.body, context);
1572
- let contents = {};
1573
- contents = _json(data);
1574
- const response = {
1575
- $metadata: deserializeMetadata(output),
1576
- ...contents,
1577
- };
1578
- return response;
1579
- };
1580
- export const de_StartWorkspacesPoolCommand = async (output, context) => {
1581
- if (output.statusCode >= 300) {
1582
- return de_CommandError(output, context);
1583
- }
1584
- const data = await parseBody(output.body, context);
1585
- let contents = {};
1586
- contents = _json(data);
1587
- const response = {
1588
- $metadata: deserializeMetadata(output),
1589
- ...contents,
1590
- };
1591
- return response;
1592
- };
1593
- export const de_StopWorkspacesCommand = async (output, context) => {
1594
- if (output.statusCode >= 300) {
1595
- return de_CommandError(output, context);
1596
- }
1597
- const data = await parseBody(output.body, context);
1598
- let contents = {};
1599
- contents = _json(data);
1600
- const response = {
1601
- $metadata: deserializeMetadata(output),
1602
- ...contents,
1603
- };
1604
- return response;
1605
- };
1606
- export const de_StopWorkspacesPoolCommand = async (output, context) => {
1607
- if (output.statusCode >= 300) {
1608
- return de_CommandError(output, context);
1609
- }
1610
- const data = await parseBody(output.body, context);
1611
- let contents = {};
1612
- contents = _json(data);
1613
- const response = {
1614
- $metadata: deserializeMetadata(output),
1615
- ...contents,
1616
- };
1617
- return response;
1618
- };
1619
- export const de_TerminateWorkspacesCommand = async (output, context) => {
1620
- if (output.statusCode >= 300) {
1621
- return de_CommandError(output, context);
1622
- }
1623
- const data = await parseBody(output.body, context);
1624
- let contents = {};
1625
- contents = _json(data);
1626
- const response = {
1627
- $metadata: deserializeMetadata(output),
1628
- ...contents,
1629
- };
1630
- return response;
1631
- };
1632
- export const de_TerminateWorkspacesPoolCommand = async (output, context) => {
1633
- if (output.statusCode >= 300) {
1634
- return de_CommandError(output, context);
1635
- }
1636
- const data = await parseBody(output.body, context);
1637
- let contents = {};
1638
- contents = _json(data);
1639
- const response = {
1640
- $metadata: deserializeMetadata(output),
1641
- ...contents,
1642
- };
1643
- return response;
1644
- };
1645
- export const de_TerminateWorkspacesPoolSessionCommand = async (output, context) => {
1646
- if (output.statusCode >= 300) {
1647
- return de_CommandError(output, context);
1648
- }
1649
- const data = await parseBody(output.body, context);
1650
- let contents = {};
1651
- contents = _json(data);
1652
- const response = {
1653
- $metadata: deserializeMetadata(output),
1654
- ...contents,
1655
- };
1656
- return response;
1657
- };
1658
- export const de_UpdateConnectClientAddInCommand = async (output, context) => {
1659
- if (output.statusCode >= 300) {
1660
- return de_CommandError(output, context);
1661
- }
1662
- const data = await parseBody(output.body, context);
1663
- let contents = {};
1664
- contents = _json(data);
1665
- const response = {
1666
- $metadata: deserializeMetadata(output),
1667
- ...contents,
1668
- };
1669
- return response;
1670
- };
1671
- export const de_UpdateConnectionAliasPermissionCommand = async (output, context) => {
1672
- if (output.statusCode >= 300) {
1673
- return de_CommandError(output, context);
1674
- }
1675
- const data = await parseBody(output.body, context);
1676
- let contents = {};
1677
- contents = _json(data);
1678
- const response = {
1679
- $metadata: deserializeMetadata(output),
1680
- ...contents,
1681
- };
1682
- return response;
1683
- };
1684
- export const de_UpdateRulesOfIpGroupCommand = async (output, context) => {
1685
- if (output.statusCode >= 300) {
1686
- return de_CommandError(output, context);
1687
- }
1688
- const data = await parseBody(output.body, context);
1689
- let contents = {};
1690
- contents = _json(data);
1691
- const response = {
1692
- $metadata: deserializeMetadata(output),
1693
- ...contents,
1694
- };
1695
- return response;
1696
- };
1697
- export const de_UpdateWorkspaceBundleCommand = async (output, context) => {
1698
- if (output.statusCode >= 300) {
1699
- return de_CommandError(output, context);
1700
- }
1701
- const data = await parseBody(output.body, context);
1702
- let contents = {};
1703
- contents = _json(data);
1704
- const response = {
1705
- $metadata: deserializeMetadata(output),
1706
- ...contents,
1707
- };
1708
- return response;
1709
- };
1710
- export const de_UpdateWorkspaceImagePermissionCommand = async (output, context) => {
1711
- if (output.statusCode >= 300) {
1712
- return de_CommandError(output, context);
1713
- }
1714
- const data = await parseBody(output.body, context);
1715
- let contents = {};
1716
- contents = _json(data);
1717
- const response = {
1718
- $metadata: deserializeMetadata(output),
1719
- ...contents,
1720
- };
1721
- return response;
1722
- };
1723
- export const de_UpdateWorkspacesPoolCommand = async (output, context) => {
1724
- if (output.statusCode >= 300) {
1725
- return de_CommandError(output, context);
1726
- }
1727
- const data = await parseBody(output.body, context);
1728
- let contents = {};
1729
- contents = de_UpdateWorkspacesPoolResult(data, context);
1730
- const response = {
1731
- $metadata: deserializeMetadata(output),
1732
- ...contents,
1733
- };
1734
- return response;
1735
- };
1736
- const de_CommandError = async (output, context) => {
1737
- const parsedOutput = {
1738
- ...output,
1739
- body: await parseErrorBody(output.body, context),
1740
- };
1741
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1742
- switch (errorCode) {
1743
- case "AccessDeniedException":
1744
- case "com.amazonaws.workspaces#AccessDeniedException":
1745
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1746
- case "ConflictException":
1747
- case "com.amazonaws.workspaces#ConflictException":
1748
- throw await de_ConflictExceptionRes(parsedOutput, context);
1749
- case "InternalServerException":
1750
- case "com.amazonaws.workspaces#InternalServerException":
1751
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1752
- case "ResourceNotFoundException":
1753
- case "com.amazonaws.workspaces#ResourceNotFoundException":
1754
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1755
- case "ValidationException":
1756
- case "com.amazonaws.workspaces#ValidationException":
1757
- throw await de_ValidationExceptionRes(parsedOutput, context);
1758
- case "InvalidParameterValuesException":
1759
- case "com.amazonaws.workspaces#InvalidParameterValuesException":
1760
- throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
1761
- case "InvalidResourceStateException":
1762
- case "com.amazonaws.workspaces#InvalidResourceStateException":
1763
- throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
1764
- case "OperationNotSupportedException":
1765
- case "com.amazonaws.workspaces#OperationNotSupportedException":
1766
- throw await de_OperationNotSupportedExceptionRes(parsedOutput, context);
1767
- case "ResourceAssociatedException":
1768
- case "com.amazonaws.workspaces#ResourceAssociatedException":
1769
- throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
1770
- case "ResourceLimitExceededException":
1771
- case "com.amazonaws.workspaces#ResourceLimitExceededException":
1772
- throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
1773
- case "ApplicationNotSupportedException":
1774
- case "com.amazonaws.workspaces#ApplicationNotSupportedException":
1775
- throw await de_ApplicationNotSupportedExceptionRes(parsedOutput, context);
1776
- case "ComputeNotCompatibleException":
1777
- case "com.amazonaws.workspaces#ComputeNotCompatibleException":
1778
- throw await de_ComputeNotCompatibleExceptionRes(parsedOutput, context);
1779
- case "IncompatibleApplicationsException":
1780
- case "com.amazonaws.workspaces#IncompatibleApplicationsException":
1781
- throw await de_IncompatibleApplicationsExceptionRes(parsedOutput, context);
1782
- case "OperatingSystemNotCompatibleException":
1783
- case "com.amazonaws.workspaces#OperatingSystemNotCompatibleException":
1784
- throw await de_OperatingSystemNotCompatibleExceptionRes(parsedOutput, context);
1785
- case "ResourceAlreadyExistsException":
1786
- case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
1787
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1788
- case "ResourceInUseException":
1789
- case "com.amazonaws.workspaces#ResourceInUseException":
1790
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1791
- case "ResourceUnavailableException":
1792
- case "com.amazonaws.workspaces#ResourceUnavailableException":
1793
- throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
1794
- case "ResourceCreationFailedException":
1795
- case "com.amazonaws.workspaces#ResourceCreationFailedException":
1796
- throw await de_ResourceCreationFailedExceptionRes(parsedOutput, context);
1797
- case "OperationInProgressException":
1798
- case "com.amazonaws.workspaces#OperationInProgressException":
1799
- throw await de_OperationInProgressExceptionRes(parsedOutput, context);
1800
- case "InvalidParameterCombinationException":
1801
- case "com.amazonaws.workspaces#InvalidParameterCombinationException":
1802
- throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
1803
- case "UnsupportedWorkspaceConfigurationException":
1804
- case "com.amazonaws.workspaces#UnsupportedWorkspaceConfigurationException":
1805
- throw await de_UnsupportedWorkspaceConfigurationExceptionRes(parsedOutput, context);
1806
- case "UnsupportedNetworkConfigurationException":
1807
- case "com.amazonaws.workspaces#UnsupportedNetworkConfigurationException":
1808
- throw await de_UnsupportedNetworkConfigurationExceptionRes(parsedOutput, context);
1809
- case "WorkspacesDefaultRoleNotFoundException":
1810
- case "com.amazonaws.workspaces#WorkspacesDefaultRoleNotFoundException":
1811
- throw await de_WorkspacesDefaultRoleNotFoundExceptionRes(parsedOutput, context);
1812
- default:
1813
- const parsedBody = parsedOutput.body;
1814
- return throwDefaultError({
1815
- output,
1816
- parsedBody,
1817
- errorCode,
1818
- });
1819
- }
1820
- };
1821
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1822
- const body = parsedOutput.body;
1823
- const deserialized = _json(body);
1824
- const exception = new AccessDeniedException({
1825
- $metadata: deserializeMetadata(parsedOutput),
1826
- ...deserialized,
1827
- });
1828
- return __decorateServiceException(exception, body);
1829
- };
1830
- const de_ApplicationNotSupportedExceptionRes = async (parsedOutput, context) => {
1831
- const body = parsedOutput.body;
1832
- const deserialized = _json(body);
1833
- const exception = new ApplicationNotSupportedException({
1834
- $metadata: deserializeMetadata(parsedOutput),
1835
- ...deserialized,
1836
- });
1837
- return __decorateServiceException(exception, body);
1838
- };
1839
- const de_ComputeNotCompatibleExceptionRes = async (parsedOutput, context) => {
1840
- const body = parsedOutput.body;
1841
- const deserialized = _json(body);
1842
- const exception = new ComputeNotCompatibleException({
1843
- $metadata: deserializeMetadata(parsedOutput),
1844
- ...deserialized,
1845
- });
1846
- return __decorateServiceException(exception, body);
1847
- };
1848
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
1849
- const body = parsedOutput.body;
1850
- const deserialized = _json(body);
1851
- const exception = new ConflictException({
1852
- $metadata: deserializeMetadata(parsedOutput),
1853
- ...deserialized,
1854
- });
1855
- return __decorateServiceException(exception, body);
1856
- };
1857
- const de_IncompatibleApplicationsExceptionRes = async (parsedOutput, context) => {
1858
- const body = parsedOutput.body;
1859
- const deserialized = _json(body);
1860
- const exception = new IncompatibleApplicationsException({
1861
- $metadata: deserializeMetadata(parsedOutput),
1862
- ...deserialized,
1863
- });
1864
- return __decorateServiceException(exception, body);
1865
- };
1866
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1867
- const body = parsedOutput.body;
1868
- const deserialized = _json(body);
1869
- const exception = new InternalServerException({
1870
- $metadata: deserializeMetadata(parsedOutput),
1871
- ...deserialized,
1872
- });
1873
- return __decorateServiceException(exception, body);
1874
- };
1875
- const de_InvalidParameterCombinationExceptionRes = async (parsedOutput, context) => {
1876
- const body = parsedOutput.body;
1877
- const deserialized = _json(body);
1878
- const exception = new InvalidParameterCombinationException({
1879
- $metadata: deserializeMetadata(parsedOutput),
1880
- ...deserialized,
1881
- });
1882
- return __decorateServiceException(exception, body);
1883
- };
1884
- const de_InvalidParameterValuesExceptionRes = async (parsedOutput, context) => {
1885
- const body = parsedOutput.body;
1886
- const deserialized = _json(body);
1887
- const exception = new InvalidParameterValuesException({
1888
- $metadata: deserializeMetadata(parsedOutput),
1889
- ...deserialized,
1890
- });
1891
- return __decorateServiceException(exception, body);
1892
- };
1893
- const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
1894
- const body = parsedOutput.body;
1895
- const deserialized = _json(body);
1896
- const exception = new InvalidResourceStateException({
1897
- $metadata: deserializeMetadata(parsedOutput),
1898
- ...deserialized,
1899
- });
1900
- return __decorateServiceException(exception, body);
1901
- };
1902
- const de_OperatingSystemNotCompatibleExceptionRes = async (parsedOutput, context) => {
1903
- const body = parsedOutput.body;
1904
- const deserialized = _json(body);
1905
- const exception = new OperatingSystemNotCompatibleException({
1906
- $metadata: deserializeMetadata(parsedOutput),
1907
- ...deserialized,
1908
- });
1909
- return __decorateServiceException(exception, body);
1910
- };
1911
- const de_OperationInProgressExceptionRes = async (parsedOutput, context) => {
1912
- const body = parsedOutput.body;
1913
- const deserialized = _json(body);
1914
- const exception = new OperationInProgressException({
1915
- $metadata: deserializeMetadata(parsedOutput),
1916
- ...deserialized,
1917
- });
1918
- return __decorateServiceException(exception, body);
1919
- };
1920
- const de_OperationNotSupportedExceptionRes = async (parsedOutput, context) => {
1921
- const body = parsedOutput.body;
1922
- const deserialized = _json(body);
1923
- const exception = new OperationNotSupportedException({
1924
- $metadata: deserializeMetadata(parsedOutput),
1925
- ...deserialized,
1926
- });
1927
- return __decorateServiceException(exception, body);
1928
- };
1929
- const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
1930
- const body = parsedOutput.body;
1931
- const deserialized = _json(body);
1932
- const exception = new ResourceAlreadyExistsException({
1933
- $metadata: deserializeMetadata(parsedOutput),
1934
- ...deserialized,
1935
- });
1936
- return __decorateServiceException(exception, body);
1937
- };
1938
- const de_ResourceAssociatedExceptionRes = async (parsedOutput, context) => {
1939
- const body = parsedOutput.body;
1940
- const deserialized = _json(body);
1941
- const exception = new ResourceAssociatedException({
1942
- $metadata: deserializeMetadata(parsedOutput),
1943
- ...deserialized,
1944
- });
1945
- return __decorateServiceException(exception, body);
1946
- };
1947
- const de_ResourceCreationFailedExceptionRes = async (parsedOutput, context) => {
1948
- const body = parsedOutput.body;
1949
- const deserialized = _json(body);
1950
- const exception = new ResourceCreationFailedException({
1951
- $metadata: deserializeMetadata(parsedOutput),
1952
- ...deserialized,
1953
- });
1954
- return __decorateServiceException(exception, body);
1955
- };
1956
- const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1957
- const body = parsedOutput.body;
1958
- const deserialized = _json(body);
1959
- const exception = new ResourceInUseException({
1960
- $metadata: deserializeMetadata(parsedOutput),
1961
- ...deserialized,
1962
- });
1963
- return __decorateServiceException(exception, body);
1964
- };
1965
- const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
1966
- const body = parsedOutput.body;
1967
- const deserialized = _json(body);
1968
- const exception = new ResourceLimitExceededException({
1969
- $metadata: deserializeMetadata(parsedOutput),
1970
- ...deserialized,
1971
- });
1972
- return __decorateServiceException(exception, body);
1973
- };
1974
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1975
- const body = parsedOutput.body;
1976
- const deserialized = _json(body);
1977
- const exception = new ResourceNotFoundException({
1978
- $metadata: deserializeMetadata(parsedOutput),
1979
- ...deserialized,
1980
- });
1981
- return __decorateServiceException(exception, body);
1982
- };
1983
- const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
1984
- const body = parsedOutput.body;
1985
- const deserialized = _json(body);
1986
- const exception = new ResourceUnavailableException({
1987
- $metadata: deserializeMetadata(parsedOutput),
1988
- ...deserialized,
1989
- });
1990
- return __decorateServiceException(exception, body);
1991
- };
1992
- const de_UnsupportedNetworkConfigurationExceptionRes = async (parsedOutput, context) => {
1993
- const body = parsedOutput.body;
1994
- const deserialized = _json(body);
1995
- const exception = new UnsupportedNetworkConfigurationException({
1996
- $metadata: deserializeMetadata(parsedOutput),
1997
- ...deserialized,
1998
- });
1999
- return __decorateServiceException(exception, body);
2000
- };
2001
- const de_UnsupportedWorkspaceConfigurationExceptionRes = async (parsedOutput, context) => {
2002
- const body = parsedOutput.body;
2003
- const deserialized = _json(body);
2004
- const exception = new UnsupportedWorkspaceConfigurationException({
2005
- $metadata: deserializeMetadata(parsedOutput),
2006
- ...deserialized,
2007
- });
2008
- return __decorateServiceException(exception, body);
2009
- };
2010
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
2011
- const body = parsedOutput.body;
2012
- const deserialized = _json(body);
2013
- const exception = new ValidationException({
2014
- $metadata: deserializeMetadata(parsedOutput),
2015
- ...deserialized,
2016
- });
2017
- return __decorateServiceException(exception, body);
2018
- };
2019
- const de_WorkspacesDefaultRoleNotFoundExceptionRes = async (parsedOutput, context) => {
2020
- const body = parsedOutput.body;
2021
- const deserialized = _json(body);
2022
- const exception = new WorkspacesDefaultRoleNotFoundException({
2023
- $metadata: deserializeMetadata(parsedOutput),
2024
- ...deserialized,
2025
- });
2026
- return __decorateServiceException(exception, body);
2027
- };
2028
- const se_DefaultImportClientBrandingAttributes = (input, context) => {
2029
- return take(input, {
2030
- ForgotPasswordLink: [],
2031
- LoginMessage: _json,
2032
- Logo: context.base64Encoder,
2033
- SupportEmail: [],
2034
- SupportLink: [],
2035
- });
2036
- };
2037
- const se_ImportClientBrandingRequest = (input, context) => {
2038
- return take(input, {
2039
- DeviceTypeAndroid: (_) => se_DefaultImportClientBrandingAttributes(_, context),
2040
- DeviceTypeIos: (_) => se_IosImportClientBrandingAttributes(_, context),
2041
- DeviceTypeLinux: (_) => se_DefaultImportClientBrandingAttributes(_, context),
2042
- DeviceTypeOsx: (_) => se_DefaultImportClientBrandingAttributes(_, context),
2043
- DeviceTypeWeb: (_) => se_DefaultImportClientBrandingAttributes(_, context),
2044
- DeviceTypeWindows: (_) => se_DefaultImportClientBrandingAttributes(_, context),
2045
- ResourceId: [],
2046
- });
2047
- };
2048
- const se_IosImportClientBrandingAttributes = (input, context) => {
2049
- return take(input, {
2050
- ForgotPasswordLink: [],
2051
- LoginMessage: _json,
2052
- Logo: context.base64Encoder,
2053
- Logo2x: context.base64Encoder,
2054
- Logo3x: context.base64Encoder,
2055
- SupportEmail: [],
2056
- SupportLink: [],
2057
- });
2058
- };
2059
- const de_AccountModification = (output, context) => {
2060
- return take(output, {
2061
- DedicatedTenancyManagementCidrRange: __expectString,
2062
- DedicatedTenancySupport: __expectString,
2063
- ErrorCode: __expectString,
2064
- ErrorMessage: __expectString,
2065
- ModificationState: __expectString,
2066
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2067
- });
2068
- };
2069
- const de_AccountModificationList = (output, context) => {
2070
- const retVal = (output || [])
2071
- .filter((e) => e != null)
2072
- .map((entry) => {
2073
- return de_AccountModification(entry, context);
2074
- });
2075
- return retVal;
2076
- };
2077
- const de_ApplicationResourceAssociation = (output, context) => {
2078
- return take(output, {
2079
- ApplicationId: __expectString,
2080
- AssociatedResourceId: __expectString,
2081
- AssociatedResourceType: __expectString,
2082
- Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2083
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2084
- State: __expectString,
2085
- StateReason: _json,
2086
- });
2087
- };
2088
- const de_ApplicationResourceAssociationList = (output, context) => {
2089
- const retVal = (output || [])
2090
- .filter((e) => e != null)
2091
- .map((entry) => {
2092
- return de_ApplicationResourceAssociation(entry, context);
2093
- });
2094
- return retVal;
2095
- };
2096
- const de_AssociateWorkspaceApplicationResult = (output, context) => {
2097
- return take(output, {
2098
- Association: (_) => de_WorkspaceResourceAssociation(_, context),
2099
- });
2100
- };
2101
- const de_BundleList = (output, context) => {
2102
- const retVal = (output || [])
2103
- .filter((e) => e != null)
2104
- .map((entry) => {
2105
- return de_WorkspaceBundle(entry, context);
2106
- });
2107
- return retVal;
2108
- };
2109
- const de_BundleResourceAssociation = (output, context) => {
2110
- return take(output, {
2111
- AssociatedResourceId: __expectString,
2112
- AssociatedResourceType: __expectString,
2113
- BundleId: __expectString,
2114
- Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2115
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2116
- State: __expectString,
2117
- StateReason: _json,
2118
- });
2119
- };
2120
- const de_BundleResourceAssociationList = (output, context) => {
2121
- const retVal = (output || [])
2122
- .filter((e) => e != null)
2123
- .map((entry) => {
2124
- return de_BundleResourceAssociation(entry, context);
2125
- });
2126
- return retVal;
2127
- };
2128
- const de_CreateWorkspaceBundleResult = (output, context) => {
2129
- return take(output, {
2130
- WorkspaceBundle: (_) => de_WorkspaceBundle(_, context),
2131
- });
2132
- };
2133
- const de_CreateWorkspaceImageResult = (output, context) => {
2134
- return take(output, {
2135
- Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2136
- Description: __expectString,
2137
- ImageId: __expectString,
2138
- Name: __expectString,
2139
- OperatingSystem: _json,
2140
- OwnerAccountId: __expectString,
2141
- RequiredTenancy: __expectString,
2142
- State: __expectString,
2143
- });
2144
- };
2145
- const de_CreateWorkspacesPoolResult = (output, context) => {
2146
- return take(output, {
2147
- WorkspacesPool: (_) => de_WorkspacesPool(_, context),
2148
- });
2149
- };
2150
- const de_CreateWorkspacesResult = (output, context) => {
2151
- return take(output, {
2152
- FailedRequests: _json,
2153
- PendingRequests: (_) => de_WorkspaceList(_, context),
2154
- });
2155
- };
2156
- const de_DataReplicationSettings = (output, context) => {
2157
- return take(output, {
2158
- DataReplication: __expectString,
2159
- RecoverySnapshotTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2160
- });
2161
- };
2162
- const de_DeployWorkspaceApplicationsResult = (output, context) => {
2163
- return take(output, {
2164
- Deployment: (_) => de_WorkSpaceApplicationDeployment(_, context),
2165
- });
2166
- };
2167
- const de_DescribeAccountModificationsResult = (output, context) => {
2168
- return take(output, {
2169
- AccountModifications: (_) => de_AccountModificationList(_, context),
2170
- NextToken: __expectString,
2171
- });
2172
- };
2173
- const de_DescribeApplicationAssociationsResult = (output, context) => {
2174
- return take(output, {
2175
- Associations: (_) => de_ApplicationResourceAssociationList(_, context),
2176
- NextToken: __expectString,
2177
- });
2178
- };
2179
- const de_DescribeApplicationsResult = (output, context) => {
2180
- return take(output, {
2181
- Applications: (_) => de_WorkSpaceApplicationList(_, context),
2182
- NextToken: __expectString,
2183
- });
2184
- };
2185
- const de_DescribeBundleAssociationsResult = (output, context) => {
2186
- return take(output, {
2187
- Associations: (_) => de_BundleResourceAssociationList(_, context),
2188
- });
2189
- };
2190
- const de_DescribeCustomWorkspaceImageImportResult = (output, context) => {
2191
- return take(output, {
2192
- Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2193
- ErrorDetails: _json,
2194
- ImageBuilderInstanceId: __expectString,
2195
- ImageId: __expectString,
2196
- ImageSource: (_) => _json(__expectUnion(_)),
2197
- InfrastructureConfigurationArn: __expectString,
2198
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2199
- State: __expectString,
2200
- });
2201
- };
2202
- const de_DescribeImageAssociationsResult = (output, context) => {
2203
- return take(output, {
2204
- Associations: (_) => de_ImageResourceAssociationList(_, context),
2205
- });
2206
- };
2207
- const de_DescribeWorkspaceAssociationsResult = (output, context) => {
2208
- return take(output, {
2209
- Associations: (_) => de_WorkspaceResourceAssociationList(_, context),
2210
- });
2211
- };
2212
- const de_DescribeWorkspaceBundlesResult = (output, context) => {
2213
- return take(output, {
2214
- Bundles: (_) => de_BundleList(_, context),
2215
- NextToken: __expectString,
2216
- });
2217
- };
2218
- const de_DescribeWorkspaceImagesResult = (output, context) => {
2219
- return take(output, {
2220
- Images: (_) => de_WorkspaceImageList(_, context),
2221
- NextToken: __expectString,
2222
- });
2223
- };
2224
- const de_DescribeWorkspacesConnectionStatusResult = (output, context) => {
2225
- return take(output, {
2226
- NextToken: __expectString,
2227
- WorkspacesConnectionStatus: (_) => de_WorkspaceConnectionStatusList(_, context),
2228
- });
2229
- };
2230
- const de_DescribeWorkspaceSnapshotsResult = (output, context) => {
2231
- return take(output, {
2232
- RebuildSnapshots: (_) => de_SnapshotList(_, context),
2233
- RestoreSnapshots: (_) => de_SnapshotList(_, context),
2234
- });
2235
- };
2236
- const de_DescribeWorkspacesPoolSessionsResult = (output, context) => {
2237
- return take(output, {
2238
- NextToken: __expectString,
2239
- Sessions: (_) => de_WorkspacesPoolSessions(_, context),
2240
- });
2241
- };
2242
- const de_DescribeWorkspacesPoolsResult = (output, context) => {
2243
- return take(output, {
2244
- NextToken: __expectString,
2245
- WorkspacesPools: (_) => de_WorkspacesPools(_, context),
2246
- });
2247
- };
2248
- const de_DescribeWorkspacesResult = (output, context) => {
2249
- return take(output, {
2250
- NextToken: __expectString,
2251
- Workspaces: (_) => de_WorkspaceList(_, context),
2252
- });
2253
- };
2254
- const de_DisassociateWorkspaceApplicationResult = (output, context) => {
2255
- return take(output, {
2256
- Association: (_) => de_WorkspaceResourceAssociation(_, context),
2257
- });
2258
- };
2259
- const de_ImageResourceAssociation = (output, context) => {
2260
- return take(output, {
2261
- AssociatedResourceId: __expectString,
2262
- AssociatedResourceType: __expectString,
2263
- Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2264
- ImageId: __expectString,
2265
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2266
- State: __expectString,
2267
- StateReason: _json,
2268
- });
2269
- };
2270
- const de_ImageResourceAssociationList = (output, context) => {
2271
- const retVal = (output || [])
2272
- .filter((e) => e != null)
2273
- .map((entry) => {
2274
- return de_ImageResourceAssociation(entry, context);
2275
- });
2276
- return retVal;
2277
- };
2278
- const de_Snapshot = (output, context) => {
2279
- return take(output, {
2280
- SnapshotTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2281
- });
2282
- };
2283
- const de_SnapshotList = (output, context) => {
2284
- const retVal = (output || [])
2285
- .filter((e) => e != null)
2286
- .map((entry) => {
2287
- return de_Snapshot(entry, context);
2288
- });
2289
- return retVal;
2290
- };
2291
- const de_StandbyWorkspacesProperties = (output, context) => {
2292
- return take(output, {
2293
- DataReplication: __expectString,
2294
- RecoverySnapshotTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2295
- StandbyWorkspaceId: __expectString,
2296
- });
2297
- };
2298
- const de_StandbyWorkspacesPropertiesList = (output, context) => {
2299
- const retVal = (output || [])
2300
- .filter((e) => e != null)
2301
- .map((entry) => {
2302
- return de_StandbyWorkspacesProperties(entry, context);
2303
- });
2304
- return retVal;
2305
- };
2306
- const de_UpdateWorkspacesPoolResult = (output, context) => {
2307
- return take(output, {
2308
- WorkspacesPool: (_) => de_WorkspacesPool(_, context),
2309
- });
2310
- };
2311
- const de_Workspace = (output, context) => {
2312
- return take(output, {
2313
- BundleId: __expectString,
2314
- ComputerName: __expectString,
2315
- DataReplicationSettings: (_) => de_DataReplicationSettings(_, context),
2316
- DirectoryId: __expectString,
2317
- ErrorCode: __expectString,
2318
- ErrorMessage: __expectString,
2319
- IpAddress: __expectString,
2320
- Ipv6Address: __expectString,
2321
- ModificationStates: _json,
2322
- RelatedWorkspaces: _json,
2323
- RootVolumeEncryptionEnabled: __expectBoolean,
2324
- StandbyWorkspacesProperties: (_) => de_StandbyWorkspacesPropertiesList(_, context),
2325
- State: __expectString,
2326
- SubnetId: __expectString,
2327
- UserName: __expectString,
2328
- UserVolumeEncryptionEnabled: __expectBoolean,
2329
- VolumeEncryptionKey: __expectString,
2330
- WorkspaceId: __expectString,
2331
- WorkspaceName: __expectString,
2332
- WorkspaceProperties: _json,
2333
- });
2334
- };
2335
- const de_WorkSpaceApplication = (output, context) => {
2336
- return take(output, {
2337
- ApplicationId: __expectString,
2338
- Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2339
- Description: __expectString,
2340
- LicenseType: __expectString,
2341
- Name: __expectString,
2342
- Owner: __expectString,
2343
- State: __expectString,
2344
- SupportedComputeTypeNames: _json,
2345
- SupportedOperatingSystemNames: _json,
2346
- });
2347
- };
2348
- const de_WorkSpaceApplicationDeployment = (output, context) => {
2349
- return take(output, {
2350
- Associations: (_) => de_WorkspaceResourceAssociationList(_, context),
2351
- });
2352
- };
2353
- const de_WorkSpaceApplicationList = (output, context) => {
2354
- const retVal = (output || [])
2355
- .filter((e) => e != null)
2356
- .map((entry) => {
2357
- return de_WorkSpaceApplication(entry, context);
2358
- });
2359
- return retVal;
2360
- };
2361
- const de_WorkspaceBundle = (output, context) => {
2362
- return take(output, {
2363
- BundleId: __expectString,
2364
- BundleType: __expectString,
2365
- ComputeType: _json,
2366
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2367
- Description: __expectString,
2368
- ImageId: __expectString,
2369
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2370
- Name: __expectString,
2371
- Owner: __expectString,
2372
- RootStorage: _json,
2373
- State: __expectString,
2374
- UserStorage: _json,
2375
- });
2376
- };
2377
- const de_WorkspaceConnectionStatus = (output, context) => {
2378
- return take(output, {
2379
- ConnectionState: __expectString,
2380
- ConnectionStateCheckTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2381
- LastKnownUserConnectionTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2382
- WorkspaceId: __expectString,
2383
- });
2384
- };
2385
- const de_WorkspaceConnectionStatusList = (output, context) => {
2386
- const retVal = (output || [])
2387
- .filter((e) => e != null)
2388
- .map((entry) => {
2389
- return de_WorkspaceConnectionStatus(entry, context);
2390
- });
2391
- return retVal;
2392
- };
2393
- const de_WorkspaceImage = (output, context) => {
2394
- return take(output, {
2395
- Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2396
- Description: __expectString,
2397
- ErrorCode: __expectString,
2398
- ErrorDetails: _json,
2399
- ErrorMessage: __expectString,
2400
- ImageId: __expectString,
2401
- Name: __expectString,
2402
- OperatingSystem: _json,
2403
- OwnerAccountId: __expectString,
2404
- RequiredTenancy: __expectString,
2405
- State: __expectString,
2406
- Updates: _json,
2407
- });
2408
- };
2409
- const de_WorkspaceImageList = (output, context) => {
2410
- const retVal = (output || [])
2411
- .filter((e) => e != null)
2412
- .map((entry) => {
2413
- return de_WorkspaceImage(entry, context);
2414
- });
2415
- return retVal;
2416
- };
2417
- const de_WorkspaceList = (output, context) => {
2418
- const retVal = (output || [])
2419
- .filter((e) => e != null)
2420
- .map((entry) => {
2421
- return de_Workspace(entry, context);
2422
- });
2423
- return retVal;
2424
- };
2425
- const de_WorkspaceResourceAssociation = (output, context) => {
2426
- return take(output, {
2427
- AssociatedResourceId: __expectString,
2428
- AssociatedResourceType: __expectString,
2429
- Created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2430
- LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2431
- State: __expectString,
2432
- StateReason: _json,
2433
- WorkspaceId: __expectString,
2434
- });
2435
- };
2436
- const de_WorkspaceResourceAssociationList = (output, context) => {
2437
- const retVal = (output || [])
2438
- .filter((e) => e != null)
2439
- .map((entry) => {
2440
- return de_WorkspaceResourceAssociation(entry, context);
2441
- });
2442
- return retVal;
2443
- };
2444
- const de_WorkspacesPool = (output, context) => {
2445
- return take(output, {
2446
- ApplicationSettings: _json,
2447
- BundleId: __expectString,
2448
- CapacityStatus: _json,
2449
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2450
- Description: __expectString,
2451
- DirectoryId: __expectString,
2452
- Errors: _json,
2453
- PoolArn: __expectString,
2454
- PoolId: __expectString,
2455
- PoolName: __expectString,
2456
- RunningMode: __expectString,
2457
- State: __expectString,
2458
- TimeoutSettings: _json,
2459
- });
2460
- };
2461
- const de_WorkspacesPools = (output, context) => {
2462
- const retVal = (output || [])
2463
- .filter((e) => e != null)
2464
- .map((entry) => {
2465
- return de_WorkspacesPool(entry, context);
2466
- });
2467
- return retVal;
2468
- };
2469
- const de_WorkspacesPoolSession = (output, context) => {
2470
- return take(output, {
2471
- AuthenticationType: __expectString,
2472
- ConnectionState: __expectString,
2473
- ExpirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2474
- InstanceId: __expectString,
2475
- NetworkAccessConfiguration: _json,
2476
- PoolId: __expectString,
2477
- SessionId: __expectString,
2478
- StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2479
- UserId: __expectString,
2480
- });
2481
- };
2482
- const de_WorkspacesPoolSessions = (output, context) => {
2483
- const retVal = (output || [])
2484
- .filter((e) => e != null)
2485
- .map((entry) => {
2486
- return de_WorkspacesPoolSession(entry, context);
2487
- });
2488
- return retVal;
2489
- };
2490
- const deserializeMetadata = (output) => ({
2491
- httpStatusCode: output.statusCode,
2492
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2493
- extendedRequestId: output.headers["x-amz-id-2"],
2494
- cfId: output.headers["x-amz-cf-id"],
2495
- });
2496
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2497
- const throwDefaultError = withBaseException(__BaseException);
2498
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2499
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2500
- const contents = {
2501
- protocol,
2502
- hostname,
2503
- port,
2504
- method: "POST",
2505
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2506
- headers,
2507
- };
2508
- if (resolvedHostname !== undefined) {
2509
- contents.hostname = resolvedHostname;
2510
- }
2511
- if (body !== undefined) {
2512
- contents.body = body;
2513
- }
2514
- return new __HttpRequest(contents);
2515
- };
2516
- function sharedHeaders(operation) {
2517
- return {
2518
- "content-type": "application/x-amz-json-1.1",
2519
- "x-amz-target": `WorkspacesService.${operation}`,
2520
- };
2521
- }