@aws-sdk/client-workspaces-thin-client 3.490.0 → 3.495.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 (33) hide show
  1. package/dist-cjs/WorkSpacesThinClient.js +1 -43
  2. package/dist-cjs/WorkSpacesThinClientClient.js +1 -43
  3. package/dist-cjs/commands/CreateEnvironmentCommand.js +1 -29
  4. package/dist-cjs/commands/DeleteDeviceCommand.js +1 -28
  5. package/dist-cjs/commands/DeleteEnvironmentCommand.js +1 -28
  6. package/dist-cjs/commands/DeregisterDeviceCommand.js +1 -28
  7. package/dist-cjs/commands/GetDeviceCommand.js +1 -29
  8. package/dist-cjs/commands/GetEnvironmentCommand.js +1 -29
  9. package/dist-cjs/commands/GetSoftwareSetCommand.js +1 -28
  10. package/dist-cjs/commands/ListDevicesCommand.js +1 -29
  11. package/dist-cjs/commands/ListEnvironmentsCommand.js +1 -29
  12. package/dist-cjs/commands/ListSoftwareSetsCommand.js +1 -28
  13. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
  14. package/dist-cjs/commands/TagResourceCommand.js +1 -29
  15. package/dist-cjs/commands/UntagResourceCommand.js +1 -29
  16. package/dist-cjs/commands/UpdateDeviceCommand.js +1 -29
  17. package/dist-cjs/commands/UpdateEnvironmentCommand.js +1 -29
  18. package/dist-cjs/commands/UpdateSoftwareSetCommand.js +1 -28
  19. package/dist-cjs/commands/index.js +1 -19
  20. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  21. package/dist-cjs/extensionConfiguration.js +1 -2
  22. package/dist-cjs/index.js +2219 -13
  23. package/dist-cjs/models/WorkSpacesThinClientServiceException.js +1 -12
  24. package/dist-cjs/models/index.js +1 -4
  25. package/dist-cjs/models/models_0.js +1 -287
  26. package/dist-cjs/pagination/Interfaces.js +1 -2
  27. package/dist-cjs/pagination/ListDevicesPaginator.js +1 -7
  28. package/dist-cjs/pagination/ListEnvironmentsPaginator.js +1 -7
  29. package/dist-cjs/pagination/ListSoftwareSetsPaginator.js +1 -7
  30. package/dist-cjs/pagination/index.js +1 -7
  31. package/dist-cjs/protocols/Aws_restJson1.js +1 -1382
  32. package/dist-cjs/runtimeExtensions.js +1 -22
  33. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,14 +1,2220 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkSpacesThin = exports.WorkSpacesThinClientServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./WorkSpacesThinClientClient"), exports);
6
- tslib_1.__exportStar(require("./WorkSpacesThinClient"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var WorkSpacesThinClientServiceException_1 = require("./models/WorkSpacesThinClientServiceException");
12
- Object.defineProperty(exports, "WorkSpacesThinClientServiceException", { enumerable: true, get: function () { return WorkSpacesThinClientServiceException_1.WorkSpacesThinClientServiceException; } });
13
- const WorkSpacesThinClient_1 = require("./WorkSpacesThinClient");
14
- exports.WorkSpacesThin = WorkSpacesThinClient_1.WorkSpacesThinClient;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ ApplyTimeOf: () => ApplyTimeOf,
26
+ ConflictException: () => ConflictException,
27
+ CreateEnvironmentCommand: () => CreateEnvironmentCommand,
28
+ CreateEnvironmentRequestFilterSensitiveLog: () => CreateEnvironmentRequestFilterSensitiveLog,
29
+ CreateEnvironmentResponseFilterSensitiveLog: () => CreateEnvironmentResponseFilterSensitiveLog,
30
+ DayOfWeek: () => DayOfWeek,
31
+ DeleteDeviceCommand: () => DeleteDeviceCommand,
32
+ DeleteEnvironmentCommand: () => DeleteEnvironmentCommand,
33
+ DeregisterDeviceCommand: () => DeregisterDeviceCommand,
34
+ DesktopType: () => DesktopType,
35
+ DeviceFilterSensitiveLog: () => DeviceFilterSensitiveLog,
36
+ DeviceSoftwareSetComplianceStatus: () => DeviceSoftwareSetComplianceStatus,
37
+ DeviceStatus: () => DeviceStatus,
38
+ DeviceSummaryFilterSensitiveLog: () => DeviceSummaryFilterSensitiveLog,
39
+ EmbeddedTagFilterSensitiveLog: () => EmbeddedTagFilterSensitiveLog,
40
+ EnvironmentFilterSensitiveLog: () => EnvironmentFilterSensitiveLog,
41
+ EnvironmentSoftwareSetComplianceStatus: () => EnvironmentSoftwareSetComplianceStatus,
42
+ EnvironmentSummaryFilterSensitiveLog: () => EnvironmentSummaryFilterSensitiveLog,
43
+ GetDeviceCommand: () => GetDeviceCommand,
44
+ GetDeviceResponseFilterSensitiveLog: () => GetDeviceResponseFilterSensitiveLog,
45
+ GetEnvironmentCommand: () => GetEnvironmentCommand,
46
+ GetEnvironmentResponseFilterSensitiveLog: () => GetEnvironmentResponseFilterSensitiveLog,
47
+ GetSoftwareSetCommand: () => GetSoftwareSetCommand,
48
+ InternalServerException: () => InternalServerException,
49
+ InternalServiceException: () => InternalServiceException,
50
+ ListDevicesCommand: () => ListDevicesCommand,
51
+ ListDevicesResponseFilterSensitiveLog: () => ListDevicesResponseFilterSensitiveLog,
52
+ ListEnvironmentsCommand: () => ListEnvironmentsCommand,
53
+ ListEnvironmentsResponseFilterSensitiveLog: () => ListEnvironmentsResponseFilterSensitiveLog,
54
+ ListSoftwareSetsCommand: () => ListSoftwareSetsCommand,
55
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
56
+ ListTagsForResourceResponseFilterSensitiveLog: () => ListTagsForResourceResponseFilterSensitiveLog,
57
+ MaintenanceWindowType: () => MaintenanceWindowType,
58
+ ResourceNotFoundException: () => ResourceNotFoundException,
59
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
60
+ SoftwareSetUpdateMode: () => SoftwareSetUpdateMode,
61
+ SoftwareSetUpdateSchedule: () => SoftwareSetUpdateSchedule,
62
+ SoftwareSetUpdateStatus: () => SoftwareSetUpdateStatus,
63
+ SoftwareSetValidationStatus: () => SoftwareSetValidationStatus,
64
+ TagResourceCommand: () => TagResourceCommand,
65
+ TagResourceRequestFilterSensitiveLog: () => TagResourceRequestFilterSensitiveLog,
66
+ TargetDeviceStatus: () => TargetDeviceStatus,
67
+ ThrottlingException: () => ThrottlingException,
68
+ UntagResourceCommand: () => UntagResourceCommand,
69
+ UntagResourceRequestFilterSensitiveLog: () => UntagResourceRequestFilterSensitiveLog,
70
+ UpdateDeviceCommand: () => UpdateDeviceCommand,
71
+ UpdateDeviceRequestFilterSensitiveLog: () => UpdateDeviceRequestFilterSensitiveLog,
72
+ UpdateDeviceResponseFilterSensitiveLog: () => UpdateDeviceResponseFilterSensitiveLog,
73
+ UpdateEnvironmentCommand: () => UpdateEnvironmentCommand,
74
+ UpdateEnvironmentRequestFilterSensitiveLog: () => UpdateEnvironmentRequestFilterSensitiveLog,
75
+ UpdateEnvironmentResponseFilterSensitiveLog: () => UpdateEnvironmentResponseFilterSensitiveLog,
76
+ UpdateSoftwareSetCommand: () => UpdateSoftwareSetCommand,
77
+ ValidationException: () => ValidationException,
78
+ ValidationExceptionReason: () => ValidationExceptionReason,
79
+ WorkSpacesThin: () => WorkSpacesThin,
80
+ WorkSpacesThinClient: () => WorkSpacesThinClient,
81
+ WorkSpacesThinClientClient: () => WorkSpacesThinClientClient,
82
+ WorkSpacesThinClientServiceException: () => WorkSpacesThinClientServiceException,
83
+ __Client: () => import_smithy_client.Client,
84
+ paginateListDevices: () => paginateListDevices,
85
+ paginateListEnvironments: () => paginateListEnvironments,
86
+ paginateListSoftwareSets: () => paginateListSoftwareSets
87
+ });
88
+ module.exports = __toCommonJS(src_exports);
89
+
90
+ // src/WorkSpacesThinClientClient.ts
91
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
92
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
93
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
94
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
95
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
96
+ var import_config_resolver = require("@smithy/config-resolver");
97
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
98
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
99
+ var import_middleware_retry = require("@smithy/middleware-retry");
100
+
101
+
102
+ // src/endpoint/EndpointParameters.ts
103
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
104
+ return {
105
+ ...options,
106
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
107
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
108
+ defaultSigningName: "thinclient"
109
+ };
110
+ }, "resolveClientEndpointParameters");
111
+ var commonParams = {
112
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
113
+ Endpoint: { type: "builtInParams", name: "endpoint" },
114
+ Region: { type: "builtInParams", name: "region" },
115
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
116
+ };
117
+
118
+ // src/WorkSpacesThinClientClient.ts
119
+ var import_runtimeConfig = require("././runtimeConfig");
120
+
121
+ // src/runtimeExtensions.ts
122
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
123
+ var import_protocol_http = require("@smithy/protocol-http");
124
+ var import_smithy_client = require("@smithy/smithy-client");
125
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
126
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
127
+ const extensionConfiguration = {
128
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
129
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
130
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
131
+ };
132
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
133
+ return {
134
+ ...runtimeConfig,
135
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
136
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
137
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
138
+ };
139
+ }, "resolveRuntimeExtensions");
140
+
141
+ // src/WorkSpacesThinClientClient.ts
142
+ var _WorkSpacesThinClientClient = class _WorkSpacesThinClientClient extends import_smithy_client.Client {
143
+ constructor(...[configuration]) {
144
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
145
+ const _config_1 = resolveClientEndpointParameters(_config_0);
146
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
147
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
148
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
149
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
150
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
151
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
152
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
153
+ super(_config_8);
154
+ this.config = _config_8;
155
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
156
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
157
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
158
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
159
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
160
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
161
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
162
+ }
163
+ /**
164
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
165
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
166
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
167
+ */
168
+ destroy() {
169
+ super.destroy();
170
+ }
171
+ };
172
+ __name(_WorkSpacesThinClientClient, "WorkSpacesThinClientClient");
173
+ var WorkSpacesThinClientClient = _WorkSpacesThinClientClient;
174
+
175
+ // src/WorkSpacesThinClient.ts
176
+
177
+
178
+ // src/commands/CreateEnvironmentCommand.ts
179
+
180
+ var import_middleware_serde = require("@smithy/middleware-serde");
181
+
182
+ var import_types = require("@smithy/types");
183
+
184
+ // src/models/models_0.ts
185
+
186
+
187
+ // src/models/WorkSpacesThinClientServiceException.ts
188
+
189
+ var _WorkSpacesThinClientServiceException = class _WorkSpacesThinClientServiceException extends import_smithy_client.ServiceException {
190
+ /**
191
+ * @internal
192
+ */
193
+ constructor(options) {
194
+ super(options);
195
+ Object.setPrototypeOf(this, _WorkSpacesThinClientServiceException.prototype);
196
+ }
197
+ };
198
+ __name(_WorkSpacesThinClientServiceException, "WorkSpacesThinClientServiceException");
199
+ var WorkSpacesThinClientServiceException = _WorkSpacesThinClientServiceException;
200
+
201
+ // src/models/models_0.ts
202
+ var _AccessDeniedException = class _AccessDeniedException extends WorkSpacesThinClientServiceException {
203
+ /**
204
+ * @internal
205
+ */
206
+ constructor(opts) {
207
+ super({
208
+ name: "AccessDeniedException",
209
+ $fault: "client",
210
+ ...opts
211
+ });
212
+ this.name = "AccessDeniedException";
213
+ this.$fault = "client";
214
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
215
+ }
216
+ };
217
+ __name(_AccessDeniedException, "AccessDeniedException");
218
+ var AccessDeniedException = _AccessDeniedException;
219
+ var ApplyTimeOf = {
220
+ DEVICE: "DEVICE",
221
+ UTC: "UTC"
222
+ };
223
+ var _ConflictException = class _ConflictException extends WorkSpacesThinClientServiceException {
224
+ /**
225
+ * @internal
226
+ */
227
+ constructor(opts) {
228
+ super({
229
+ name: "ConflictException",
230
+ $fault: "client",
231
+ ...opts
232
+ });
233
+ this.name = "ConflictException";
234
+ this.$fault = "client";
235
+ Object.setPrototypeOf(this, _ConflictException.prototype);
236
+ this.resourceId = opts.resourceId;
237
+ this.resourceType = opts.resourceType;
238
+ }
239
+ };
240
+ __name(_ConflictException, "ConflictException");
241
+ var ConflictException = _ConflictException;
242
+ var DayOfWeek = {
243
+ FRIDAY: "FRIDAY",
244
+ MONDAY: "MONDAY",
245
+ SATURDAY: "SATURDAY",
246
+ SUNDAY: "SUNDAY",
247
+ THURSDAY: "THURSDAY",
248
+ TUESDAY: "TUESDAY",
249
+ WEDNESDAY: "WEDNESDAY"
250
+ };
251
+ var MaintenanceWindowType = {
252
+ CUSTOM: "CUSTOM",
253
+ SYSTEM: "SYSTEM"
254
+ };
255
+ var SoftwareSetUpdateMode = {
256
+ USE_DESIRED: "USE_DESIRED",
257
+ USE_LATEST: "USE_LATEST"
258
+ };
259
+ var SoftwareSetUpdateSchedule = {
260
+ APPLY_IMMEDIATELY: "APPLY_IMMEDIATELY",
261
+ USE_MAINTENANCE_WINDOW: "USE_MAINTENANCE_WINDOW"
262
+ };
263
+ var DesktopType = {
264
+ APPSTREAM: "appstream",
265
+ WORKSPACES: "workspaces",
266
+ WORKSPACES_WEB: "workspaces-web"
267
+ };
268
+ var _InternalServerException = class _InternalServerException extends WorkSpacesThinClientServiceException {
269
+ /**
270
+ * @internal
271
+ */
272
+ constructor(opts) {
273
+ super({
274
+ name: "InternalServerException",
275
+ $fault: "server",
276
+ ...opts
277
+ });
278
+ this.name = "InternalServerException";
279
+ this.$fault = "server";
280
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
281
+ this.retryAfterSeconds = opts.retryAfterSeconds;
282
+ }
283
+ };
284
+ __name(_InternalServerException, "InternalServerException");
285
+ var InternalServerException = _InternalServerException;
286
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends WorkSpacesThinClientServiceException {
287
+ /**
288
+ * @internal
289
+ */
290
+ constructor(opts) {
291
+ super({
292
+ name: "ResourceNotFoundException",
293
+ $fault: "client",
294
+ ...opts
295
+ });
296
+ this.name = "ResourceNotFoundException";
297
+ this.$fault = "client";
298
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
299
+ this.resourceId = opts.resourceId;
300
+ this.resourceType = opts.resourceType;
301
+ }
302
+ };
303
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
304
+ var ResourceNotFoundException = _ResourceNotFoundException;
305
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends WorkSpacesThinClientServiceException {
306
+ /**
307
+ * @internal
308
+ */
309
+ constructor(opts) {
310
+ super({
311
+ name: "ServiceQuotaExceededException",
312
+ $fault: "client",
313
+ ...opts
314
+ });
315
+ this.name = "ServiceQuotaExceededException";
316
+ this.$fault = "client";
317
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
318
+ this.resourceId = opts.resourceId;
319
+ this.resourceType = opts.resourceType;
320
+ this.serviceCode = opts.serviceCode;
321
+ this.quotaCode = opts.quotaCode;
322
+ }
323
+ };
324
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
325
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
326
+ var _ThrottlingException = class _ThrottlingException extends WorkSpacesThinClientServiceException {
327
+ /**
328
+ * @internal
329
+ */
330
+ constructor(opts) {
331
+ super({
332
+ name: "ThrottlingException",
333
+ $fault: "client",
334
+ ...opts
335
+ });
336
+ this.name = "ThrottlingException";
337
+ this.$fault = "client";
338
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
339
+ this.serviceCode = opts.serviceCode;
340
+ this.quotaCode = opts.quotaCode;
341
+ this.retryAfterSeconds = opts.retryAfterSeconds;
342
+ }
343
+ };
344
+ __name(_ThrottlingException, "ThrottlingException");
345
+ var ThrottlingException = _ThrottlingException;
346
+ var ValidationExceptionReason = {
347
+ CANNOT_PARSE: "cannotParse",
348
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
349
+ OTHER: "other",
350
+ UNKNOWN_OPERATION: "unknownOperation"
351
+ };
352
+ var _ValidationException = class _ValidationException extends WorkSpacesThinClientServiceException {
353
+ /**
354
+ * @internal
355
+ */
356
+ constructor(opts) {
357
+ super({
358
+ name: "ValidationException",
359
+ $fault: "client",
360
+ ...opts
361
+ });
362
+ this.name = "ValidationException";
363
+ this.$fault = "client";
364
+ Object.setPrototypeOf(this, _ValidationException.prototype);
365
+ this.reason = opts.reason;
366
+ this.fieldList = opts.fieldList;
367
+ }
368
+ };
369
+ __name(_ValidationException, "ValidationException");
370
+ var ValidationException = _ValidationException;
371
+ var TargetDeviceStatus = {
372
+ ARCHIVED: "ARCHIVED",
373
+ DEREGISTERED: "DEREGISTERED"
374
+ };
375
+ var DeviceSoftwareSetComplianceStatus = {
376
+ COMPLIANT: "COMPLIANT",
377
+ NONE: "NONE",
378
+ NOT_COMPLIANT: "NOT_COMPLIANT"
379
+ };
380
+ var SoftwareSetUpdateStatus = {
381
+ AVAILABLE: "AVAILABLE",
382
+ IN_PROGRESS: "IN_PROGRESS",
383
+ UP_TO_DATE: "UP_TO_DATE"
384
+ };
385
+ var DeviceStatus = {
386
+ ARCHIVED: "ARCHIVED",
387
+ DEREGISTERED: "DEREGISTERED",
388
+ DEREGISTERING: "DEREGISTERING",
389
+ REGISTERED: "REGISTERED"
390
+ };
391
+ var EnvironmentSoftwareSetComplianceStatus = {
392
+ COMPLIANT: "COMPLIANT",
393
+ NOT_COMPLIANT: "NOT_COMPLIANT",
394
+ NO_REGISTERED_DEVICES: "NO_REGISTERED_DEVICES"
395
+ };
396
+ var SoftwareSetValidationStatus = {
397
+ NOT_VALIDATED: "NOT_VALIDATED",
398
+ VALIDATED: "VALIDATED"
399
+ };
400
+ var _InternalServiceException = class _InternalServiceException extends WorkSpacesThinClientServiceException {
401
+ /**
402
+ * @internal
403
+ */
404
+ constructor(opts) {
405
+ super({
406
+ name: "InternalServiceException",
407
+ $fault: "server",
408
+ ...opts
409
+ });
410
+ this.name = "InternalServiceException";
411
+ this.$fault = "server";
412
+ Object.setPrototypeOf(this, _InternalServiceException.prototype);
413
+ this.retryAfterSeconds = opts.retryAfterSeconds;
414
+ }
415
+ };
416
+ __name(_InternalServiceException, "InternalServiceException");
417
+ var InternalServiceException = _InternalServiceException;
418
+ var CreateEnvironmentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
419
+ ...obj,
420
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
421
+ ...obj.desktopEndpoint && { desktopEndpoint: import_smithy_client.SENSITIVE_STRING },
422
+ ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
423
+ }), "CreateEnvironmentRequestFilterSensitiveLog");
424
+ var EmbeddedTagFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
425
+ ...obj
426
+ }), "EmbeddedTagFilterSensitiveLog");
427
+ var EnvironmentSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
428
+ ...obj,
429
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
430
+ ...obj.desktopEndpoint && { desktopEndpoint: import_smithy_client.SENSITIVE_STRING },
431
+ ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
432
+ }), "EnvironmentSummaryFilterSensitiveLog");
433
+ var CreateEnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
434
+ ...obj,
435
+ ...obj.environment && { environment: EnvironmentSummaryFilterSensitiveLog(obj.environment) }
436
+ }), "CreateEnvironmentResponseFilterSensitiveLog");
437
+ var DeviceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
438
+ ...obj,
439
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
440
+ ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
441
+ }), "DeviceFilterSensitiveLog");
442
+ var DeviceSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
443
+ ...obj,
444
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
445
+ ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
446
+ }), "DeviceSummaryFilterSensitiveLog");
447
+ var EnvironmentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
448
+ ...obj,
449
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
450
+ ...obj.desktopEndpoint && { desktopEndpoint: import_smithy_client.SENSITIVE_STRING },
451
+ ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
452
+ }), "EnvironmentFilterSensitiveLog");
453
+ var GetDeviceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
454
+ ...obj,
455
+ ...obj.device && { device: DeviceFilterSensitiveLog(obj.device) }
456
+ }), "GetDeviceResponseFilterSensitiveLog");
457
+ var GetEnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
458
+ ...obj,
459
+ ...obj.environment && { environment: EnvironmentFilterSensitiveLog(obj.environment) }
460
+ }), "GetEnvironmentResponseFilterSensitiveLog");
461
+ var ListDevicesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
462
+ ...obj,
463
+ ...obj.devices && { devices: obj.devices.map((item) => DeviceSummaryFilterSensitiveLog(item)) }
464
+ }), "ListDevicesResponseFilterSensitiveLog");
465
+ var ListEnvironmentsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
466
+ ...obj,
467
+ ...obj.environments && { environments: obj.environments.map((item) => EnvironmentSummaryFilterSensitiveLog(item)) }
468
+ }), "ListEnvironmentsResponseFilterSensitiveLog");
469
+ var ListTagsForResourceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
470
+ ...obj,
471
+ ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
472
+ }), "ListTagsForResourceResponseFilterSensitiveLog");
473
+ var TagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
474
+ ...obj,
475
+ ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
476
+ }), "TagResourceRequestFilterSensitiveLog");
477
+ var UntagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
478
+ ...obj,
479
+ ...obj.tagKeys && { tagKeys: import_smithy_client.SENSITIVE_STRING }
480
+ }), "UntagResourceRequestFilterSensitiveLog");
481
+ var UpdateDeviceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
482
+ ...obj,
483
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }
484
+ }), "UpdateDeviceRequestFilterSensitiveLog");
485
+ var UpdateDeviceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
486
+ ...obj,
487
+ ...obj.device && { device: DeviceSummaryFilterSensitiveLog(obj.device) }
488
+ }), "UpdateDeviceResponseFilterSensitiveLog");
489
+ var UpdateEnvironmentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
490
+ ...obj,
491
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
492
+ ...obj.desktopEndpoint && { desktopEndpoint: import_smithy_client.SENSITIVE_STRING }
493
+ }), "UpdateEnvironmentRequestFilterSensitiveLog");
494
+ var UpdateEnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
495
+ ...obj,
496
+ ...obj.environment && { environment: EnvironmentSummaryFilterSensitiveLog(obj.environment) }
497
+ }), "UpdateEnvironmentResponseFilterSensitiveLog");
498
+
499
+ // src/protocols/Aws_restJson1.ts
500
+ var import_core = require("@smithy/core");
501
+
502
+
503
+ var import_uuid = require("uuid");
504
+ var se_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
505
+ const b = (0, import_core.requestBuilder)(input, context);
506
+ const headers = {
507
+ "content-type": "application/json"
508
+ };
509
+ b.bp("/environments");
510
+ let body;
511
+ body = JSON.stringify(
512
+ (0, import_smithy_client.take)(input, {
513
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
514
+ desiredSoftwareSetId: [],
515
+ desktopArn: [],
516
+ desktopEndpoint: [],
517
+ kmsKeyArn: [],
518
+ maintenanceWindow: (_) => (0, import_smithy_client._json)(_),
519
+ name: [],
520
+ softwareSetUpdateMode: [],
521
+ softwareSetUpdateSchedule: [],
522
+ tags: (_) => (0, import_smithy_client._json)(_)
523
+ })
524
+ );
525
+ let { hostname: resolvedHostname } = await context.endpoint();
526
+ if (context.disableHostPrefix !== true) {
527
+ resolvedHostname = "api." + resolvedHostname;
528
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
529
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
530
+ }
531
+ }
532
+ b.hn(resolvedHostname);
533
+ b.m("POST").h(headers).b(body);
534
+ return b.build();
535
+ }, "se_CreateEnvironmentCommand");
536
+ var se_DeleteDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
537
+ const b = (0, import_core.requestBuilder)(input, context);
538
+ const headers = {};
539
+ b.bp("/devices/{id}");
540
+ b.p("id", () => input.id, "{id}", false);
541
+ const query = (0, import_smithy_client.map)({
542
+ [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
543
+ });
544
+ let body;
545
+ let { hostname: resolvedHostname } = await context.endpoint();
546
+ if (context.disableHostPrefix !== true) {
547
+ resolvedHostname = "api." + resolvedHostname;
548
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
549
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
550
+ }
551
+ }
552
+ b.hn(resolvedHostname);
553
+ b.m("DELETE").h(headers).q(query).b(body);
554
+ return b.build();
555
+ }, "se_DeleteDeviceCommand");
556
+ var se_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
557
+ const b = (0, import_core.requestBuilder)(input, context);
558
+ const headers = {};
559
+ b.bp("/environments/{id}");
560
+ b.p("id", () => input.id, "{id}", false);
561
+ const query = (0, import_smithy_client.map)({
562
+ [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
563
+ });
564
+ let body;
565
+ let { hostname: resolvedHostname } = await context.endpoint();
566
+ if (context.disableHostPrefix !== true) {
567
+ resolvedHostname = "api." + resolvedHostname;
568
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
569
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
570
+ }
571
+ }
572
+ b.hn(resolvedHostname);
573
+ b.m("DELETE").h(headers).q(query).b(body);
574
+ return b.build();
575
+ }, "se_DeleteEnvironmentCommand");
576
+ var se_DeregisterDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
577
+ const b = (0, import_core.requestBuilder)(input, context);
578
+ const headers = {
579
+ "content-type": "application/json"
580
+ };
581
+ b.bp("/deregister-device/{id}");
582
+ b.p("id", () => input.id, "{id}", false);
583
+ let body;
584
+ body = JSON.stringify(
585
+ (0, import_smithy_client.take)(input, {
586
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
587
+ targetDeviceStatus: []
588
+ })
589
+ );
590
+ let { hostname: resolvedHostname } = await context.endpoint();
591
+ if (context.disableHostPrefix !== true) {
592
+ resolvedHostname = "api." + resolvedHostname;
593
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
594
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
595
+ }
596
+ }
597
+ b.hn(resolvedHostname);
598
+ b.m("POST").h(headers).b(body);
599
+ return b.build();
600
+ }, "se_DeregisterDeviceCommand");
601
+ var se_GetDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
602
+ const b = (0, import_core.requestBuilder)(input, context);
603
+ const headers = {};
604
+ b.bp("/devices/{id}");
605
+ b.p("id", () => input.id, "{id}", false);
606
+ let body;
607
+ let { hostname: resolvedHostname } = await context.endpoint();
608
+ if (context.disableHostPrefix !== true) {
609
+ resolvedHostname = "api." + resolvedHostname;
610
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
611
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
612
+ }
613
+ }
614
+ b.hn(resolvedHostname);
615
+ b.m("GET").h(headers).b(body);
616
+ return b.build();
617
+ }, "se_GetDeviceCommand");
618
+ var se_GetEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
619
+ const b = (0, import_core.requestBuilder)(input, context);
620
+ const headers = {};
621
+ b.bp("/environments/{id}");
622
+ b.p("id", () => input.id, "{id}", false);
623
+ let body;
624
+ let { hostname: resolvedHostname } = await context.endpoint();
625
+ if (context.disableHostPrefix !== true) {
626
+ resolvedHostname = "api." + resolvedHostname;
627
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
628
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
629
+ }
630
+ }
631
+ b.hn(resolvedHostname);
632
+ b.m("GET").h(headers).b(body);
633
+ return b.build();
634
+ }, "se_GetEnvironmentCommand");
635
+ var se_GetSoftwareSetCommand = /* @__PURE__ */ __name(async (input, context) => {
636
+ const b = (0, import_core.requestBuilder)(input, context);
637
+ const headers = {};
638
+ b.bp("/softwaresets/{id}");
639
+ b.p("id", () => input.id, "{id}", false);
640
+ let body;
641
+ let { hostname: resolvedHostname } = await context.endpoint();
642
+ if (context.disableHostPrefix !== true) {
643
+ resolvedHostname = "api." + resolvedHostname;
644
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
645
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
646
+ }
647
+ }
648
+ b.hn(resolvedHostname);
649
+ b.m("GET").h(headers).b(body);
650
+ return b.build();
651
+ }, "se_GetSoftwareSetCommand");
652
+ var se_ListDevicesCommand = /* @__PURE__ */ __name(async (input, context) => {
653
+ const b = (0, import_core.requestBuilder)(input, context);
654
+ const headers = {};
655
+ b.bp("/devices");
656
+ const query = (0, import_smithy_client.map)({
657
+ [_nT]: [, input[_nT]],
658
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
659
+ });
660
+ let body;
661
+ let { hostname: resolvedHostname } = await context.endpoint();
662
+ if (context.disableHostPrefix !== true) {
663
+ resolvedHostname = "api." + resolvedHostname;
664
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
665
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
666
+ }
667
+ }
668
+ b.hn(resolvedHostname);
669
+ b.m("GET").h(headers).q(query).b(body);
670
+ return b.build();
671
+ }, "se_ListDevicesCommand");
672
+ var se_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (input, context) => {
673
+ const b = (0, import_core.requestBuilder)(input, context);
674
+ const headers = {};
675
+ b.bp("/environments");
676
+ const query = (0, import_smithy_client.map)({
677
+ [_nT]: [, input[_nT]],
678
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
679
+ });
680
+ let body;
681
+ let { hostname: resolvedHostname } = await context.endpoint();
682
+ if (context.disableHostPrefix !== true) {
683
+ resolvedHostname = "api." + resolvedHostname;
684
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
685
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
686
+ }
687
+ }
688
+ b.hn(resolvedHostname);
689
+ b.m("GET").h(headers).q(query).b(body);
690
+ return b.build();
691
+ }, "se_ListEnvironmentsCommand");
692
+ var se_ListSoftwareSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
693
+ const b = (0, import_core.requestBuilder)(input, context);
694
+ const headers = {};
695
+ b.bp("/softwaresets");
696
+ const query = (0, import_smithy_client.map)({
697
+ [_nT]: [, input[_nT]],
698
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
699
+ });
700
+ let body;
701
+ let { hostname: resolvedHostname } = await context.endpoint();
702
+ if (context.disableHostPrefix !== true) {
703
+ resolvedHostname = "api." + resolvedHostname;
704
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
705
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
706
+ }
707
+ }
708
+ b.hn(resolvedHostname);
709
+ b.m("GET").h(headers).q(query).b(body);
710
+ return b.build();
711
+ }, "se_ListSoftwareSetsCommand");
712
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
713
+ const b = (0, import_core.requestBuilder)(input, context);
714
+ const headers = {};
715
+ b.bp("/tags/{resourceArn}");
716
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
717
+ let body;
718
+ let { hostname: resolvedHostname } = await context.endpoint();
719
+ if (context.disableHostPrefix !== true) {
720
+ resolvedHostname = "api." + resolvedHostname;
721
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
722
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
723
+ }
724
+ }
725
+ b.hn(resolvedHostname);
726
+ b.m("GET").h(headers).b(body);
727
+ return b.build();
728
+ }, "se_ListTagsForResourceCommand");
729
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
730
+ const b = (0, import_core.requestBuilder)(input, context);
731
+ const headers = {
732
+ "content-type": "application/json"
733
+ };
734
+ b.bp("/tags/{resourceArn}");
735
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
736
+ let body;
737
+ body = JSON.stringify(
738
+ (0, import_smithy_client.take)(input, {
739
+ tags: (_) => (0, import_smithy_client._json)(_)
740
+ })
741
+ );
742
+ let { hostname: resolvedHostname } = await context.endpoint();
743
+ if (context.disableHostPrefix !== true) {
744
+ resolvedHostname = "api." + resolvedHostname;
745
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
746
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
747
+ }
748
+ }
749
+ b.hn(resolvedHostname);
750
+ b.m("POST").h(headers).b(body);
751
+ return b.build();
752
+ }, "se_TagResourceCommand");
753
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
754
+ const b = (0, import_core.requestBuilder)(input, context);
755
+ const headers = {};
756
+ b.bp("/tags/{resourceArn}");
757
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
758
+ const query = (0, import_smithy_client.map)({
759
+ [_tK]: [
760
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
761
+ () => (input[_tK] || []).map((_entry) => _entry)
762
+ ]
763
+ });
764
+ let body;
765
+ let { hostname: resolvedHostname } = await context.endpoint();
766
+ if (context.disableHostPrefix !== true) {
767
+ resolvedHostname = "api." + resolvedHostname;
768
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
769
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
770
+ }
771
+ }
772
+ b.hn(resolvedHostname);
773
+ b.m("DELETE").h(headers).q(query).b(body);
774
+ return b.build();
775
+ }, "se_UntagResourceCommand");
776
+ var se_UpdateDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
777
+ const b = (0, import_core.requestBuilder)(input, context);
778
+ const headers = {
779
+ "content-type": "application/json"
780
+ };
781
+ b.bp("/devices/{id}");
782
+ b.p("id", () => input.id, "{id}", false);
783
+ let body;
784
+ body = JSON.stringify(
785
+ (0, import_smithy_client.take)(input, {
786
+ desiredSoftwareSetId: [],
787
+ kmsKeyArn: [],
788
+ name: [],
789
+ softwareSetUpdateSchedule: []
790
+ })
791
+ );
792
+ let { hostname: resolvedHostname } = await context.endpoint();
793
+ if (context.disableHostPrefix !== true) {
794
+ resolvedHostname = "api." + resolvedHostname;
795
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
796
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
797
+ }
798
+ }
799
+ b.hn(resolvedHostname);
800
+ b.m("PATCH").h(headers).b(body);
801
+ return b.build();
802
+ }, "se_UpdateDeviceCommand");
803
+ var se_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
804
+ const b = (0, import_core.requestBuilder)(input, context);
805
+ const headers = {
806
+ "content-type": "application/json"
807
+ };
808
+ b.bp("/environments/{id}");
809
+ b.p("id", () => input.id, "{id}", false);
810
+ let body;
811
+ body = JSON.stringify(
812
+ (0, import_smithy_client.take)(input, {
813
+ desiredSoftwareSetId: [],
814
+ desktopArn: [],
815
+ desktopEndpoint: [],
816
+ maintenanceWindow: (_) => (0, import_smithy_client._json)(_),
817
+ name: [],
818
+ softwareSetUpdateMode: [],
819
+ softwareSetUpdateSchedule: []
820
+ })
821
+ );
822
+ let { hostname: resolvedHostname } = await context.endpoint();
823
+ if (context.disableHostPrefix !== true) {
824
+ resolvedHostname = "api." + resolvedHostname;
825
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
826
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
827
+ }
828
+ }
829
+ b.hn(resolvedHostname);
830
+ b.m("PATCH").h(headers).b(body);
831
+ return b.build();
832
+ }, "se_UpdateEnvironmentCommand");
833
+ var se_UpdateSoftwareSetCommand = /* @__PURE__ */ __name(async (input, context) => {
834
+ const b = (0, import_core.requestBuilder)(input, context);
835
+ const headers = {
836
+ "content-type": "application/json"
837
+ };
838
+ b.bp("/softwaresets/{id}");
839
+ b.p("id", () => input.id, "{id}", false);
840
+ let body;
841
+ body = JSON.stringify(
842
+ (0, import_smithy_client.take)(input, {
843
+ validationStatus: []
844
+ })
845
+ );
846
+ let { hostname: resolvedHostname } = await context.endpoint();
847
+ if (context.disableHostPrefix !== true) {
848
+ resolvedHostname = "api." + resolvedHostname;
849
+ if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
850
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
851
+ }
852
+ }
853
+ b.hn(resolvedHostname);
854
+ b.m("PATCH").h(headers).b(body);
855
+ return b.build();
856
+ }, "se_UpdateSoftwareSetCommand");
857
+ var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
858
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
859
+ return de_CreateEnvironmentCommandError(output, context);
860
+ }
861
+ const contents = (0, import_smithy_client.map)({
862
+ $metadata: deserializeMetadata(output)
863
+ });
864
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
865
+ const doc = (0, import_smithy_client.take)(data, {
866
+ environment: (_) => de_EnvironmentSummary(_, context)
867
+ });
868
+ Object.assign(contents, doc);
869
+ return contents;
870
+ }, "de_CreateEnvironmentCommand");
871
+ var de_CreateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
872
+ const parsedOutput = {
873
+ ...output,
874
+ body: await parseErrorBody(output.body, context)
875
+ };
876
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
877
+ switch (errorCode) {
878
+ case "AccessDeniedException":
879
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
880
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
881
+ case "ConflictException":
882
+ case "com.amazonaws.workspacesthinclient#ConflictException":
883
+ throw await de_ConflictExceptionRes(parsedOutput, context);
884
+ case "InternalServerException":
885
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
886
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
887
+ case "ResourceNotFoundException":
888
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
889
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
890
+ case "ServiceQuotaExceededException":
891
+ case "com.amazonaws.workspacesthinclient#ServiceQuotaExceededException":
892
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
893
+ case "ThrottlingException":
894
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
895
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
896
+ case "ValidationException":
897
+ case "com.amazonaws.workspacesthinclient#ValidationException":
898
+ throw await de_ValidationExceptionRes(parsedOutput, context);
899
+ default:
900
+ const parsedBody = parsedOutput.body;
901
+ return throwDefaultError({
902
+ output,
903
+ parsedBody,
904
+ errorCode
905
+ });
906
+ }
907
+ }, "de_CreateEnvironmentCommandError");
908
+ var de_DeleteDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
909
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
910
+ return de_DeleteDeviceCommandError(output, context);
911
+ }
912
+ const contents = (0, import_smithy_client.map)({
913
+ $metadata: deserializeMetadata(output)
914
+ });
915
+ await (0, import_smithy_client.collectBody)(output.body, context);
916
+ return contents;
917
+ }, "de_DeleteDeviceCommand");
918
+ var de_DeleteDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
919
+ const parsedOutput = {
920
+ ...output,
921
+ body: await parseErrorBody(output.body, context)
922
+ };
923
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
924
+ switch (errorCode) {
925
+ case "AccessDeniedException":
926
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
927
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
928
+ case "ConflictException":
929
+ case "com.amazonaws.workspacesthinclient#ConflictException":
930
+ throw await de_ConflictExceptionRes(parsedOutput, context);
931
+ case "InternalServerException":
932
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
933
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
934
+ case "ResourceNotFoundException":
935
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
936
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
937
+ case "ThrottlingException":
938
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
939
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
940
+ case "ValidationException":
941
+ case "com.amazonaws.workspacesthinclient#ValidationException":
942
+ throw await de_ValidationExceptionRes(parsedOutput, context);
943
+ default:
944
+ const parsedBody = parsedOutput.body;
945
+ return throwDefaultError({
946
+ output,
947
+ parsedBody,
948
+ errorCode
949
+ });
950
+ }
951
+ }, "de_DeleteDeviceCommandError");
952
+ var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
953
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
954
+ return de_DeleteEnvironmentCommandError(output, context);
955
+ }
956
+ const contents = (0, import_smithy_client.map)({
957
+ $metadata: deserializeMetadata(output)
958
+ });
959
+ await (0, import_smithy_client.collectBody)(output.body, context);
960
+ return contents;
961
+ }, "de_DeleteEnvironmentCommand");
962
+ var de_DeleteEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
963
+ const parsedOutput = {
964
+ ...output,
965
+ body: await parseErrorBody(output.body, context)
966
+ };
967
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
968
+ switch (errorCode) {
969
+ case "AccessDeniedException":
970
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
971
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
972
+ case "ConflictException":
973
+ case "com.amazonaws.workspacesthinclient#ConflictException":
974
+ throw await de_ConflictExceptionRes(parsedOutput, context);
975
+ case "InternalServerException":
976
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
977
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
978
+ case "ResourceNotFoundException":
979
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
980
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
981
+ case "ThrottlingException":
982
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
983
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
984
+ case "ValidationException":
985
+ case "com.amazonaws.workspacesthinclient#ValidationException":
986
+ throw await de_ValidationExceptionRes(parsedOutput, context);
987
+ default:
988
+ const parsedBody = parsedOutput.body;
989
+ return throwDefaultError({
990
+ output,
991
+ parsedBody,
992
+ errorCode
993
+ });
994
+ }
995
+ }, "de_DeleteEnvironmentCommandError");
996
+ var de_DeregisterDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
997
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
998
+ return de_DeregisterDeviceCommandError(output, context);
999
+ }
1000
+ const contents = (0, import_smithy_client.map)({
1001
+ $metadata: deserializeMetadata(output)
1002
+ });
1003
+ await (0, import_smithy_client.collectBody)(output.body, context);
1004
+ return contents;
1005
+ }, "de_DeregisterDeviceCommand");
1006
+ var de_DeregisterDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1007
+ const parsedOutput = {
1008
+ ...output,
1009
+ body: await parseErrorBody(output.body, context)
1010
+ };
1011
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1012
+ switch (errorCode) {
1013
+ case "AccessDeniedException":
1014
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1015
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1016
+ case "ConflictException":
1017
+ case "com.amazonaws.workspacesthinclient#ConflictException":
1018
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1019
+ case "InternalServerException":
1020
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
1021
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1022
+ case "ResourceNotFoundException":
1023
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1024
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1025
+ case "ThrottlingException":
1026
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
1027
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1028
+ case "ValidationException":
1029
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1030
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1031
+ default:
1032
+ const parsedBody = parsedOutput.body;
1033
+ return throwDefaultError({
1034
+ output,
1035
+ parsedBody,
1036
+ errorCode
1037
+ });
1038
+ }
1039
+ }, "de_DeregisterDeviceCommandError");
1040
+ var de_GetDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
1041
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1042
+ return de_GetDeviceCommandError(output, context);
1043
+ }
1044
+ const contents = (0, import_smithy_client.map)({
1045
+ $metadata: deserializeMetadata(output)
1046
+ });
1047
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1048
+ const doc = (0, import_smithy_client.take)(data, {
1049
+ device: (_) => de_Device(_, context)
1050
+ });
1051
+ Object.assign(contents, doc);
1052
+ return contents;
1053
+ }, "de_GetDeviceCommand");
1054
+ var de_GetDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1055
+ const parsedOutput = {
1056
+ ...output,
1057
+ body: await parseErrorBody(output.body, context)
1058
+ };
1059
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1060
+ switch (errorCode) {
1061
+ case "AccessDeniedException":
1062
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1063
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1064
+ case "InternalServerException":
1065
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
1066
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1067
+ case "ResourceNotFoundException":
1068
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1069
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1070
+ case "ThrottlingException":
1071
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
1072
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1073
+ case "ValidationException":
1074
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1075
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1076
+ default:
1077
+ const parsedBody = parsedOutput.body;
1078
+ return throwDefaultError({
1079
+ output,
1080
+ parsedBody,
1081
+ errorCode
1082
+ });
1083
+ }
1084
+ }, "de_GetDeviceCommandError");
1085
+ var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1086
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1087
+ return de_GetEnvironmentCommandError(output, context);
1088
+ }
1089
+ const contents = (0, import_smithy_client.map)({
1090
+ $metadata: deserializeMetadata(output)
1091
+ });
1092
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1093
+ const doc = (0, import_smithy_client.take)(data, {
1094
+ environment: (_) => de_Environment(_, context)
1095
+ });
1096
+ Object.assign(contents, doc);
1097
+ return contents;
1098
+ }, "de_GetEnvironmentCommand");
1099
+ var de_GetEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1100
+ const parsedOutput = {
1101
+ ...output,
1102
+ body: await parseErrorBody(output.body, context)
1103
+ };
1104
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1105
+ switch (errorCode) {
1106
+ case "AccessDeniedException":
1107
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1108
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1109
+ case "InternalServerException":
1110
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
1111
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1112
+ case "ResourceNotFoundException":
1113
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1114
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1115
+ case "ThrottlingException":
1116
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
1117
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1118
+ case "ValidationException":
1119
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1120
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1121
+ default:
1122
+ const parsedBody = parsedOutput.body;
1123
+ return throwDefaultError({
1124
+ output,
1125
+ parsedBody,
1126
+ errorCode
1127
+ });
1128
+ }
1129
+ }, "de_GetEnvironmentCommandError");
1130
+ var de_GetSoftwareSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1131
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1132
+ return de_GetSoftwareSetCommandError(output, context);
1133
+ }
1134
+ const contents = (0, import_smithy_client.map)({
1135
+ $metadata: deserializeMetadata(output)
1136
+ });
1137
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1138
+ const doc = (0, import_smithy_client.take)(data, {
1139
+ softwareSet: (_) => de_SoftwareSet(_, context)
1140
+ });
1141
+ Object.assign(contents, doc);
1142
+ return contents;
1143
+ }, "de_GetSoftwareSetCommand");
1144
+ var de_GetSoftwareSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1145
+ const parsedOutput = {
1146
+ ...output,
1147
+ body: await parseErrorBody(output.body, context)
1148
+ };
1149
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1150
+ switch (errorCode) {
1151
+ case "AccessDeniedException":
1152
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1153
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1154
+ case "InternalServerException":
1155
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
1156
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1157
+ case "ResourceNotFoundException":
1158
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1159
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1160
+ case "ThrottlingException":
1161
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
1162
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1163
+ case "ValidationException":
1164
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1165
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1166
+ default:
1167
+ const parsedBody = parsedOutput.body;
1168
+ return throwDefaultError({
1169
+ output,
1170
+ parsedBody,
1171
+ errorCode
1172
+ });
1173
+ }
1174
+ }, "de_GetSoftwareSetCommandError");
1175
+ var de_ListDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
1176
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1177
+ return de_ListDevicesCommandError(output, context);
1178
+ }
1179
+ const contents = (0, import_smithy_client.map)({
1180
+ $metadata: deserializeMetadata(output)
1181
+ });
1182
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1183
+ const doc = (0, import_smithy_client.take)(data, {
1184
+ devices: (_) => de_DeviceList(_, context),
1185
+ nextToken: import_smithy_client.expectString
1186
+ });
1187
+ Object.assign(contents, doc);
1188
+ return contents;
1189
+ }, "de_ListDevicesCommand");
1190
+ var de_ListDevicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1191
+ const parsedOutput = {
1192
+ ...output,
1193
+ body: await parseErrorBody(output.body, context)
1194
+ };
1195
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1196
+ switch (errorCode) {
1197
+ case "AccessDeniedException":
1198
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1199
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1200
+ case "InternalServerException":
1201
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
1202
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1203
+ case "ThrottlingException":
1204
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
1205
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1206
+ case "ValidationException":
1207
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1208
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1209
+ default:
1210
+ const parsedBody = parsedOutput.body;
1211
+ return throwDefaultError({
1212
+ output,
1213
+ parsedBody,
1214
+ errorCode
1215
+ });
1216
+ }
1217
+ }, "de_ListDevicesCommandError");
1218
+ var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1219
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1220
+ return de_ListEnvironmentsCommandError(output, context);
1221
+ }
1222
+ const contents = (0, import_smithy_client.map)({
1223
+ $metadata: deserializeMetadata(output)
1224
+ });
1225
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1226
+ const doc = (0, import_smithy_client.take)(data, {
1227
+ environments: (_) => de_EnvironmentList(_, context),
1228
+ nextToken: import_smithy_client.expectString
1229
+ });
1230
+ Object.assign(contents, doc);
1231
+ return contents;
1232
+ }, "de_ListEnvironmentsCommand");
1233
+ var de_ListEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1234
+ const parsedOutput = {
1235
+ ...output,
1236
+ body: await parseErrorBody(output.body, context)
1237
+ };
1238
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1239
+ switch (errorCode) {
1240
+ case "AccessDeniedException":
1241
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1242
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1243
+ case "InternalServerException":
1244
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
1245
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1246
+ case "ThrottlingException":
1247
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
1248
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1249
+ case "ValidationException":
1250
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1251
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1252
+ default:
1253
+ const parsedBody = parsedOutput.body;
1254
+ return throwDefaultError({
1255
+ output,
1256
+ parsedBody,
1257
+ errorCode
1258
+ });
1259
+ }
1260
+ }, "de_ListEnvironmentsCommandError");
1261
+ var de_ListSoftwareSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1262
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1263
+ return de_ListSoftwareSetsCommandError(output, context);
1264
+ }
1265
+ const contents = (0, import_smithy_client.map)({
1266
+ $metadata: deserializeMetadata(output)
1267
+ });
1268
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1269
+ const doc = (0, import_smithy_client.take)(data, {
1270
+ nextToken: import_smithy_client.expectString,
1271
+ softwareSets: (_) => de_SoftwareSetList(_, context)
1272
+ });
1273
+ Object.assign(contents, doc);
1274
+ return contents;
1275
+ }, "de_ListSoftwareSetsCommand");
1276
+ var de_ListSoftwareSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1277
+ const parsedOutput = {
1278
+ ...output,
1279
+ body: await parseErrorBody(output.body, context)
1280
+ };
1281
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1282
+ switch (errorCode) {
1283
+ case "AccessDeniedException":
1284
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1285
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1286
+ case "InternalServerException":
1287
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
1288
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1289
+ case "ThrottlingException":
1290
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
1291
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1292
+ case "ValidationException":
1293
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1294
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1295
+ default:
1296
+ const parsedBody = parsedOutput.body;
1297
+ return throwDefaultError({
1298
+ output,
1299
+ parsedBody,
1300
+ errorCode
1301
+ });
1302
+ }
1303
+ }, "de_ListSoftwareSetsCommandError");
1304
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1305
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1306
+ return de_ListTagsForResourceCommandError(output, context);
1307
+ }
1308
+ const contents = (0, import_smithy_client.map)({
1309
+ $metadata: deserializeMetadata(output)
1310
+ });
1311
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1312
+ const doc = (0, import_smithy_client.take)(data, {
1313
+ tags: import_smithy_client._json
1314
+ });
1315
+ Object.assign(contents, doc);
1316
+ return contents;
1317
+ }, "de_ListTagsForResourceCommand");
1318
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1319
+ const parsedOutput = {
1320
+ ...output,
1321
+ body: await parseErrorBody(output.body, context)
1322
+ };
1323
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1324
+ switch (errorCode) {
1325
+ case "InternalServiceException":
1326
+ case "com.amazonaws.workspacesthinclient#InternalServiceException":
1327
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1328
+ case "ResourceNotFoundException":
1329
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1330
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1331
+ case "ValidationException":
1332
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1333
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1334
+ default:
1335
+ const parsedBody = parsedOutput.body;
1336
+ return throwDefaultError({
1337
+ output,
1338
+ parsedBody,
1339
+ errorCode
1340
+ });
1341
+ }
1342
+ }, "de_ListTagsForResourceCommandError");
1343
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1344
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1345
+ return de_TagResourceCommandError(output, context);
1346
+ }
1347
+ const contents = (0, import_smithy_client.map)({
1348
+ $metadata: deserializeMetadata(output)
1349
+ });
1350
+ await (0, import_smithy_client.collectBody)(output.body, context);
1351
+ return contents;
1352
+ }, "de_TagResourceCommand");
1353
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1354
+ const parsedOutput = {
1355
+ ...output,
1356
+ body: await parseErrorBody(output.body, context)
1357
+ };
1358
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1359
+ switch (errorCode) {
1360
+ case "InternalServiceException":
1361
+ case "com.amazonaws.workspacesthinclient#InternalServiceException":
1362
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1363
+ case "ResourceNotFoundException":
1364
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1365
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1366
+ case "ValidationException":
1367
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1368
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1369
+ default:
1370
+ const parsedBody = parsedOutput.body;
1371
+ return throwDefaultError({
1372
+ output,
1373
+ parsedBody,
1374
+ errorCode
1375
+ });
1376
+ }
1377
+ }, "de_TagResourceCommandError");
1378
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1379
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1380
+ return de_UntagResourceCommandError(output, context);
1381
+ }
1382
+ const contents = (0, import_smithy_client.map)({
1383
+ $metadata: deserializeMetadata(output)
1384
+ });
1385
+ await (0, import_smithy_client.collectBody)(output.body, context);
1386
+ return contents;
1387
+ }, "de_UntagResourceCommand");
1388
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1389
+ const parsedOutput = {
1390
+ ...output,
1391
+ body: await parseErrorBody(output.body, context)
1392
+ };
1393
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1394
+ switch (errorCode) {
1395
+ case "InternalServiceException":
1396
+ case "com.amazonaws.workspacesthinclient#InternalServiceException":
1397
+ throw await de_InternalServiceExceptionRes(parsedOutput, context);
1398
+ case "ResourceNotFoundException":
1399
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1400
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1401
+ case "ValidationException":
1402
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1403
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1404
+ default:
1405
+ const parsedBody = parsedOutput.body;
1406
+ return throwDefaultError({
1407
+ output,
1408
+ parsedBody,
1409
+ errorCode
1410
+ });
1411
+ }
1412
+ }, "de_UntagResourceCommandError");
1413
+ var de_UpdateDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
1414
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1415
+ return de_UpdateDeviceCommandError(output, context);
1416
+ }
1417
+ const contents = (0, import_smithy_client.map)({
1418
+ $metadata: deserializeMetadata(output)
1419
+ });
1420
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1421
+ const doc = (0, import_smithy_client.take)(data, {
1422
+ device: (_) => de_DeviceSummary(_, context)
1423
+ });
1424
+ Object.assign(contents, doc);
1425
+ return contents;
1426
+ }, "de_UpdateDeviceCommand");
1427
+ var de_UpdateDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1428
+ const parsedOutput = {
1429
+ ...output,
1430
+ body: await parseErrorBody(output.body, context)
1431
+ };
1432
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1433
+ switch (errorCode) {
1434
+ case "AccessDeniedException":
1435
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1436
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1437
+ case "InternalServerException":
1438
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
1439
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1440
+ case "ResourceNotFoundException":
1441
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1442
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1443
+ case "ThrottlingException":
1444
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
1445
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1446
+ case "ValidationException":
1447
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1448
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1449
+ default:
1450
+ const parsedBody = parsedOutput.body;
1451
+ return throwDefaultError({
1452
+ output,
1453
+ parsedBody,
1454
+ errorCode
1455
+ });
1456
+ }
1457
+ }, "de_UpdateDeviceCommandError");
1458
+ var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1459
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1460
+ return de_UpdateEnvironmentCommandError(output, context);
1461
+ }
1462
+ const contents = (0, import_smithy_client.map)({
1463
+ $metadata: deserializeMetadata(output)
1464
+ });
1465
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1466
+ const doc = (0, import_smithy_client.take)(data, {
1467
+ environment: (_) => de_EnvironmentSummary(_, context)
1468
+ });
1469
+ Object.assign(contents, doc);
1470
+ return contents;
1471
+ }, "de_UpdateEnvironmentCommand");
1472
+ var de_UpdateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1473
+ const parsedOutput = {
1474
+ ...output,
1475
+ body: await parseErrorBody(output.body, context)
1476
+ };
1477
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1478
+ switch (errorCode) {
1479
+ case "AccessDeniedException":
1480
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1481
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1482
+ case "InternalServerException":
1483
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
1484
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1485
+ case "ResourceNotFoundException":
1486
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1487
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1488
+ case "ThrottlingException":
1489
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
1490
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1491
+ case "ValidationException":
1492
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1493
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1494
+ default:
1495
+ const parsedBody = parsedOutput.body;
1496
+ return throwDefaultError({
1497
+ output,
1498
+ parsedBody,
1499
+ errorCode
1500
+ });
1501
+ }
1502
+ }, "de_UpdateEnvironmentCommandError");
1503
+ var de_UpdateSoftwareSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1504
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1505
+ return de_UpdateSoftwareSetCommandError(output, context);
1506
+ }
1507
+ const contents = (0, import_smithy_client.map)({
1508
+ $metadata: deserializeMetadata(output)
1509
+ });
1510
+ await (0, import_smithy_client.collectBody)(output.body, context);
1511
+ return contents;
1512
+ }, "de_UpdateSoftwareSetCommand");
1513
+ var de_UpdateSoftwareSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1514
+ const parsedOutput = {
1515
+ ...output,
1516
+ body: await parseErrorBody(output.body, context)
1517
+ };
1518
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1519
+ switch (errorCode) {
1520
+ case "AccessDeniedException":
1521
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1522
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1523
+ case "InternalServerException":
1524
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
1525
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1526
+ case "ResourceNotFoundException":
1527
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1528
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1529
+ case "ThrottlingException":
1530
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
1531
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1532
+ case "ValidationException":
1533
+ case "com.amazonaws.workspacesthinclient#ValidationException":
1534
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1535
+ default:
1536
+ const parsedBody = parsedOutput.body;
1537
+ return throwDefaultError({
1538
+ output,
1539
+ parsedBody,
1540
+ errorCode
1541
+ });
1542
+ }
1543
+ }, "de_UpdateSoftwareSetCommandError");
1544
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(WorkSpacesThinClientServiceException);
1545
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1546
+ const contents = (0, import_smithy_client.map)({});
1547
+ const data = parsedOutput.body;
1548
+ const doc = (0, import_smithy_client.take)(data, {
1549
+ message: import_smithy_client.expectString
1550
+ });
1551
+ Object.assign(contents, doc);
1552
+ const exception = new AccessDeniedException({
1553
+ $metadata: deserializeMetadata(parsedOutput),
1554
+ ...contents
1555
+ });
1556
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1557
+ }, "de_AccessDeniedExceptionRes");
1558
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1559
+ const contents = (0, import_smithy_client.map)({});
1560
+ const data = parsedOutput.body;
1561
+ const doc = (0, import_smithy_client.take)(data, {
1562
+ message: import_smithy_client.expectString,
1563
+ resourceId: import_smithy_client.expectString,
1564
+ resourceType: import_smithy_client.expectString
1565
+ });
1566
+ Object.assign(contents, doc);
1567
+ const exception = new ConflictException({
1568
+ $metadata: deserializeMetadata(parsedOutput),
1569
+ ...contents
1570
+ });
1571
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1572
+ }, "de_ConflictExceptionRes");
1573
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1574
+ const contents = (0, import_smithy_client.map)({
1575
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1576
+ });
1577
+ const data = parsedOutput.body;
1578
+ const doc = (0, import_smithy_client.take)(data, {
1579
+ message: import_smithy_client.expectString
1580
+ });
1581
+ Object.assign(contents, doc);
1582
+ const exception = new InternalServerException({
1583
+ $metadata: deserializeMetadata(parsedOutput),
1584
+ ...contents
1585
+ });
1586
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1587
+ }, "de_InternalServerExceptionRes");
1588
+ var de_InternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1589
+ const contents = (0, import_smithy_client.map)({
1590
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1591
+ });
1592
+ const data = parsedOutput.body;
1593
+ const doc = (0, import_smithy_client.take)(data, {
1594
+ message: import_smithy_client.expectString
1595
+ });
1596
+ Object.assign(contents, doc);
1597
+ const exception = new InternalServiceException({
1598
+ $metadata: deserializeMetadata(parsedOutput),
1599
+ ...contents
1600
+ });
1601
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1602
+ }, "de_InternalServiceExceptionRes");
1603
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1604
+ const contents = (0, import_smithy_client.map)({});
1605
+ const data = parsedOutput.body;
1606
+ const doc = (0, import_smithy_client.take)(data, {
1607
+ message: import_smithy_client.expectString,
1608
+ resourceId: import_smithy_client.expectString,
1609
+ resourceType: import_smithy_client.expectString
1610
+ });
1611
+ Object.assign(contents, doc);
1612
+ const exception = new ResourceNotFoundException({
1613
+ $metadata: deserializeMetadata(parsedOutput),
1614
+ ...contents
1615
+ });
1616
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1617
+ }, "de_ResourceNotFoundExceptionRes");
1618
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1619
+ const contents = (0, import_smithy_client.map)({});
1620
+ const data = parsedOutput.body;
1621
+ const doc = (0, import_smithy_client.take)(data, {
1622
+ message: import_smithy_client.expectString,
1623
+ quotaCode: import_smithy_client.expectString,
1624
+ resourceId: import_smithy_client.expectString,
1625
+ resourceType: import_smithy_client.expectString,
1626
+ serviceCode: import_smithy_client.expectString
1627
+ });
1628
+ Object.assign(contents, doc);
1629
+ const exception = new ServiceQuotaExceededException({
1630
+ $metadata: deserializeMetadata(parsedOutput),
1631
+ ...contents
1632
+ });
1633
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1634
+ }, "de_ServiceQuotaExceededExceptionRes");
1635
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1636
+ const contents = (0, import_smithy_client.map)({
1637
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1638
+ });
1639
+ const data = parsedOutput.body;
1640
+ const doc = (0, import_smithy_client.take)(data, {
1641
+ message: import_smithy_client.expectString,
1642
+ quotaCode: import_smithy_client.expectString,
1643
+ serviceCode: import_smithy_client.expectString
1644
+ });
1645
+ Object.assign(contents, doc);
1646
+ const exception = new ThrottlingException({
1647
+ $metadata: deserializeMetadata(parsedOutput),
1648
+ ...contents
1649
+ });
1650
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1651
+ }, "de_ThrottlingExceptionRes");
1652
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1653
+ const contents = (0, import_smithy_client.map)({});
1654
+ const data = parsedOutput.body;
1655
+ const doc = (0, import_smithy_client.take)(data, {
1656
+ fieldList: import_smithy_client._json,
1657
+ message: import_smithy_client.expectString,
1658
+ reason: import_smithy_client.expectString
1659
+ });
1660
+ Object.assign(contents, doc);
1661
+ const exception = new ValidationException({
1662
+ $metadata: deserializeMetadata(parsedOutput),
1663
+ ...contents
1664
+ });
1665
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1666
+ }, "de_ValidationExceptionRes");
1667
+ var de_Device = /* @__PURE__ */ __name((output, context) => {
1668
+ return (0, import_smithy_client.take)(output, {
1669
+ arn: import_smithy_client.expectString,
1670
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1671
+ currentSoftwareSetId: import_smithy_client.expectString,
1672
+ currentSoftwareSetVersion: import_smithy_client.expectString,
1673
+ desiredSoftwareSetId: import_smithy_client.expectString,
1674
+ environmentId: import_smithy_client.expectString,
1675
+ id: import_smithy_client.expectString,
1676
+ kmsKeyArn: import_smithy_client.expectString,
1677
+ lastConnectedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1678
+ lastPostureAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1679
+ model: import_smithy_client.expectString,
1680
+ name: import_smithy_client.expectString,
1681
+ pendingSoftwareSetId: import_smithy_client.expectString,
1682
+ pendingSoftwareSetVersion: import_smithy_client.expectString,
1683
+ serialNumber: import_smithy_client.expectString,
1684
+ softwareSetComplianceStatus: import_smithy_client.expectString,
1685
+ softwareSetUpdateSchedule: import_smithy_client.expectString,
1686
+ softwareSetUpdateStatus: import_smithy_client.expectString,
1687
+ status: import_smithy_client.expectString,
1688
+ tags: import_smithy_client._json,
1689
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1690
+ });
1691
+ }, "de_Device");
1692
+ var de_DeviceList = /* @__PURE__ */ __name((output, context) => {
1693
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1694
+ return de_DeviceSummary(entry, context);
1695
+ });
1696
+ return retVal;
1697
+ }, "de_DeviceList");
1698
+ var de_DeviceSummary = /* @__PURE__ */ __name((output, context) => {
1699
+ return (0, import_smithy_client.take)(output, {
1700
+ arn: import_smithy_client.expectString,
1701
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1702
+ currentSoftwareSetId: import_smithy_client.expectString,
1703
+ desiredSoftwareSetId: import_smithy_client.expectString,
1704
+ environmentId: import_smithy_client.expectString,
1705
+ id: import_smithy_client.expectString,
1706
+ lastConnectedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1707
+ lastPostureAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1708
+ model: import_smithy_client.expectString,
1709
+ name: import_smithy_client.expectString,
1710
+ pendingSoftwareSetId: import_smithy_client.expectString,
1711
+ serialNumber: import_smithy_client.expectString,
1712
+ softwareSetUpdateSchedule: import_smithy_client.expectString,
1713
+ status: import_smithy_client.expectString,
1714
+ tags: import_smithy_client._json,
1715
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1716
+ });
1717
+ }, "de_DeviceSummary");
1718
+ var de_Environment = /* @__PURE__ */ __name((output, context) => {
1719
+ return (0, import_smithy_client.take)(output, {
1720
+ activationCode: import_smithy_client.expectString,
1721
+ arn: import_smithy_client.expectString,
1722
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1723
+ desiredSoftwareSetId: import_smithy_client.expectString,
1724
+ desktopArn: import_smithy_client.expectString,
1725
+ desktopEndpoint: import_smithy_client.expectString,
1726
+ desktopType: import_smithy_client.expectString,
1727
+ id: import_smithy_client.expectString,
1728
+ kmsKeyArn: import_smithy_client.expectString,
1729
+ maintenanceWindow: import_smithy_client._json,
1730
+ name: import_smithy_client.expectString,
1731
+ pendingSoftwareSetId: import_smithy_client.expectString,
1732
+ pendingSoftwareSetVersion: import_smithy_client.expectString,
1733
+ registeredDevicesCount: import_smithy_client.expectInt32,
1734
+ softwareSetComplianceStatus: import_smithy_client.expectString,
1735
+ softwareSetUpdateMode: import_smithy_client.expectString,
1736
+ softwareSetUpdateSchedule: import_smithy_client.expectString,
1737
+ tags: import_smithy_client._json,
1738
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1739
+ });
1740
+ }, "de_Environment");
1741
+ var de_EnvironmentList = /* @__PURE__ */ __name((output, context) => {
1742
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1743
+ return de_EnvironmentSummary(entry, context);
1744
+ });
1745
+ return retVal;
1746
+ }, "de_EnvironmentList");
1747
+ var de_EnvironmentSummary = /* @__PURE__ */ __name((output, context) => {
1748
+ return (0, import_smithy_client.take)(output, {
1749
+ activationCode: import_smithy_client.expectString,
1750
+ arn: import_smithy_client.expectString,
1751
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1752
+ desiredSoftwareSetId: import_smithy_client.expectString,
1753
+ desktopArn: import_smithy_client.expectString,
1754
+ desktopEndpoint: import_smithy_client.expectString,
1755
+ desktopType: import_smithy_client.expectString,
1756
+ id: import_smithy_client.expectString,
1757
+ maintenanceWindow: import_smithy_client._json,
1758
+ name: import_smithy_client.expectString,
1759
+ pendingSoftwareSetId: import_smithy_client.expectString,
1760
+ softwareSetUpdateMode: import_smithy_client.expectString,
1761
+ softwareSetUpdateSchedule: import_smithy_client.expectString,
1762
+ tags: import_smithy_client._json,
1763
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1764
+ });
1765
+ }, "de_EnvironmentSummary");
1766
+ var de_SoftwareSet = /* @__PURE__ */ __name((output, context) => {
1767
+ return (0, import_smithy_client.take)(output, {
1768
+ arn: import_smithy_client.expectString,
1769
+ id: import_smithy_client.expectString,
1770
+ releasedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1771
+ software: import_smithy_client._json,
1772
+ supportedUntil: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1773
+ validationStatus: import_smithy_client.expectString,
1774
+ version: import_smithy_client.expectString
1775
+ });
1776
+ }, "de_SoftwareSet");
1777
+ var de_SoftwareSetList = /* @__PURE__ */ __name((output, context) => {
1778
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1779
+ return de_SoftwareSetSummary(entry, context);
1780
+ });
1781
+ return retVal;
1782
+ }, "de_SoftwareSetList");
1783
+ var de_SoftwareSetSummary = /* @__PURE__ */ __name((output, context) => {
1784
+ return (0, import_smithy_client.take)(output, {
1785
+ arn: import_smithy_client.expectString,
1786
+ id: import_smithy_client.expectString,
1787
+ releasedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1788
+ supportedUntil: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1789
+ validationStatus: import_smithy_client.expectString,
1790
+ version: import_smithy_client.expectString
1791
+ });
1792
+ }, "de_SoftwareSetSummary");
1793
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1794
+ httpStatusCode: output.statusCode,
1795
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1796
+ extendedRequestId: output.headers["x-amz-id-2"],
1797
+ cfId: output.headers["x-amz-cf-id"]
1798
+ }), "deserializeMetadata");
1799
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1800
+ var _cT = "clientToken";
1801
+ var _mR = "maxResults";
1802
+ var _nT = "nextToken";
1803
+ var _rAS = "retryAfterSeconds";
1804
+ var _ra = "retry-after";
1805
+ var _tK = "tagKeys";
1806
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1807
+ if (encoded.length) {
1808
+ return JSON.parse(encoded);
1809
+ }
1810
+ return {};
1811
+ }), "parseBody");
1812
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1813
+ const value = await parseBody(errorBody, context);
1814
+ value.message = value.message ?? value.Message;
1815
+ return value;
1816
+ }, "parseErrorBody");
1817
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1818
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1819
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1820
+ let cleanValue = rawValue;
1821
+ if (typeof cleanValue === "number") {
1822
+ cleanValue = cleanValue.toString();
1823
+ }
1824
+ if (cleanValue.indexOf(",") >= 0) {
1825
+ cleanValue = cleanValue.split(",")[0];
1826
+ }
1827
+ if (cleanValue.indexOf(":") >= 0) {
1828
+ cleanValue = cleanValue.split(":")[0];
1829
+ }
1830
+ if (cleanValue.indexOf("#") >= 0) {
1831
+ cleanValue = cleanValue.split("#")[1];
1832
+ }
1833
+ return cleanValue;
1834
+ }, "sanitizeErrorCode");
1835
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1836
+ if (headerKey !== void 0) {
1837
+ return sanitizeErrorCode(output.headers[headerKey]);
1838
+ }
1839
+ if (data.code !== void 0) {
1840
+ return sanitizeErrorCode(data.code);
1841
+ }
1842
+ if (data["__type"] !== void 0) {
1843
+ return sanitizeErrorCode(data["__type"]);
1844
+ }
1845
+ }, "loadRestJsonErrorCode");
1846
+
1847
+ // src/commands/CreateEnvironmentCommand.ts
1848
+ var _CreateEnvironmentCommand = class _CreateEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
1849
+ ...commonParams
1850
+ }).m(function(Command, cs, config, o) {
1851
+ return [
1852
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1853
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1854
+ ];
1855
+ }).s("ThinClient", "CreateEnvironment", {}).n("WorkSpacesThinClientClient", "CreateEnvironmentCommand").f(CreateEnvironmentRequestFilterSensitiveLog, CreateEnvironmentResponseFilterSensitiveLog).ser(se_CreateEnvironmentCommand).de(de_CreateEnvironmentCommand).build() {
1856
+ };
1857
+ __name(_CreateEnvironmentCommand, "CreateEnvironmentCommand");
1858
+ var CreateEnvironmentCommand = _CreateEnvironmentCommand;
1859
+
1860
+ // src/commands/DeleteDeviceCommand.ts
1861
+
1862
+
1863
+
1864
+
1865
+ var _DeleteDeviceCommand = class _DeleteDeviceCommand extends import_smithy_client.Command.classBuilder().ep({
1866
+ ...commonParams
1867
+ }).m(function(Command, cs, config, o) {
1868
+ return [
1869
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1870
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1871
+ ];
1872
+ }).s("ThinClient", "DeleteDevice", {}).n("WorkSpacesThinClientClient", "DeleteDeviceCommand").f(void 0, void 0).ser(se_DeleteDeviceCommand).de(de_DeleteDeviceCommand).build() {
1873
+ };
1874
+ __name(_DeleteDeviceCommand, "DeleteDeviceCommand");
1875
+ var DeleteDeviceCommand = _DeleteDeviceCommand;
1876
+
1877
+ // src/commands/DeleteEnvironmentCommand.ts
1878
+
1879
+
1880
+
1881
+
1882
+ var _DeleteEnvironmentCommand = class _DeleteEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
1883
+ ...commonParams
1884
+ }).m(function(Command, cs, config, o) {
1885
+ return [
1886
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1887
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1888
+ ];
1889
+ }).s("ThinClient", "DeleteEnvironment", {}).n("WorkSpacesThinClientClient", "DeleteEnvironmentCommand").f(void 0, void 0).ser(se_DeleteEnvironmentCommand).de(de_DeleteEnvironmentCommand).build() {
1890
+ };
1891
+ __name(_DeleteEnvironmentCommand, "DeleteEnvironmentCommand");
1892
+ var DeleteEnvironmentCommand = _DeleteEnvironmentCommand;
1893
+
1894
+ // src/commands/DeregisterDeviceCommand.ts
1895
+
1896
+
1897
+
1898
+
1899
+ var _DeregisterDeviceCommand = class _DeregisterDeviceCommand extends import_smithy_client.Command.classBuilder().ep({
1900
+ ...commonParams
1901
+ }).m(function(Command, cs, config, o) {
1902
+ return [
1903
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1904
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1905
+ ];
1906
+ }).s("ThinClient", "DeregisterDevice", {}).n("WorkSpacesThinClientClient", "DeregisterDeviceCommand").f(void 0, void 0).ser(se_DeregisterDeviceCommand).de(de_DeregisterDeviceCommand).build() {
1907
+ };
1908
+ __name(_DeregisterDeviceCommand, "DeregisterDeviceCommand");
1909
+ var DeregisterDeviceCommand = _DeregisterDeviceCommand;
1910
+
1911
+ // src/commands/GetDeviceCommand.ts
1912
+
1913
+
1914
+
1915
+
1916
+ var _GetDeviceCommand = class _GetDeviceCommand extends import_smithy_client.Command.classBuilder().ep({
1917
+ ...commonParams
1918
+ }).m(function(Command, cs, config, o) {
1919
+ return [
1920
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1921
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1922
+ ];
1923
+ }).s("ThinClient", "GetDevice", {}).n("WorkSpacesThinClientClient", "GetDeviceCommand").f(void 0, GetDeviceResponseFilterSensitiveLog).ser(se_GetDeviceCommand).de(de_GetDeviceCommand).build() {
1924
+ };
1925
+ __name(_GetDeviceCommand, "GetDeviceCommand");
1926
+ var GetDeviceCommand = _GetDeviceCommand;
1927
+
1928
+ // src/commands/GetEnvironmentCommand.ts
1929
+
1930
+
1931
+
1932
+
1933
+ var _GetEnvironmentCommand = class _GetEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
1934
+ ...commonParams
1935
+ }).m(function(Command, cs, config, o) {
1936
+ return [
1937
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1938
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1939
+ ];
1940
+ }).s("ThinClient", "GetEnvironment", {}).n("WorkSpacesThinClientClient", "GetEnvironmentCommand").f(void 0, GetEnvironmentResponseFilterSensitiveLog).ser(se_GetEnvironmentCommand).de(de_GetEnvironmentCommand).build() {
1941
+ };
1942
+ __name(_GetEnvironmentCommand, "GetEnvironmentCommand");
1943
+ var GetEnvironmentCommand = _GetEnvironmentCommand;
1944
+
1945
+ // src/commands/GetSoftwareSetCommand.ts
1946
+
1947
+
1948
+
1949
+
1950
+ var _GetSoftwareSetCommand = class _GetSoftwareSetCommand extends import_smithy_client.Command.classBuilder().ep({
1951
+ ...commonParams
1952
+ }).m(function(Command, cs, config, o) {
1953
+ return [
1954
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1955
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1956
+ ];
1957
+ }).s("ThinClient", "GetSoftwareSet", {}).n("WorkSpacesThinClientClient", "GetSoftwareSetCommand").f(void 0, void 0).ser(se_GetSoftwareSetCommand).de(de_GetSoftwareSetCommand).build() {
1958
+ };
1959
+ __name(_GetSoftwareSetCommand, "GetSoftwareSetCommand");
1960
+ var GetSoftwareSetCommand = _GetSoftwareSetCommand;
1961
+
1962
+ // src/commands/ListDevicesCommand.ts
1963
+
1964
+
1965
+
1966
+
1967
+ var _ListDevicesCommand = class _ListDevicesCommand extends import_smithy_client.Command.classBuilder().ep({
1968
+ ...commonParams
1969
+ }).m(function(Command, cs, config, o) {
1970
+ return [
1971
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1972
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1973
+ ];
1974
+ }).s("ThinClient", "ListDevices", {}).n("WorkSpacesThinClientClient", "ListDevicesCommand").f(void 0, ListDevicesResponseFilterSensitiveLog).ser(se_ListDevicesCommand).de(de_ListDevicesCommand).build() {
1975
+ };
1976
+ __name(_ListDevicesCommand, "ListDevicesCommand");
1977
+ var ListDevicesCommand = _ListDevicesCommand;
1978
+
1979
+ // src/commands/ListEnvironmentsCommand.ts
1980
+
1981
+
1982
+
1983
+
1984
+ var _ListEnvironmentsCommand = class _ListEnvironmentsCommand extends import_smithy_client.Command.classBuilder().ep({
1985
+ ...commonParams
1986
+ }).m(function(Command, cs, config, o) {
1987
+ return [
1988
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1989
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1990
+ ];
1991
+ }).s("ThinClient", "ListEnvironments", {}).n("WorkSpacesThinClientClient", "ListEnvironmentsCommand").f(void 0, ListEnvironmentsResponseFilterSensitiveLog).ser(se_ListEnvironmentsCommand).de(de_ListEnvironmentsCommand).build() {
1992
+ };
1993
+ __name(_ListEnvironmentsCommand, "ListEnvironmentsCommand");
1994
+ var ListEnvironmentsCommand = _ListEnvironmentsCommand;
1995
+
1996
+ // src/commands/ListSoftwareSetsCommand.ts
1997
+
1998
+
1999
+
2000
+
2001
+ var _ListSoftwareSetsCommand = class _ListSoftwareSetsCommand extends import_smithy_client.Command.classBuilder().ep({
2002
+ ...commonParams
2003
+ }).m(function(Command, cs, config, o) {
2004
+ return [
2005
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2006
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2007
+ ];
2008
+ }).s("ThinClient", "ListSoftwareSets", {}).n("WorkSpacesThinClientClient", "ListSoftwareSetsCommand").f(void 0, void 0).ser(se_ListSoftwareSetsCommand).de(de_ListSoftwareSetsCommand).build() {
2009
+ };
2010
+ __name(_ListSoftwareSetsCommand, "ListSoftwareSetsCommand");
2011
+ var ListSoftwareSetsCommand = _ListSoftwareSetsCommand;
2012
+
2013
+ // src/commands/ListTagsForResourceCommand.ts
2014
+
2015
+
2016
+
2017
+
2018
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2019
+ ...commonParams
2020
+ }).m(function(Command, cs, config, o) {
2021
+ return [
2022
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2023
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2024
+ ];
2025
+ }).s("ThinClient", "ListTagsForResource", {}).n("WorkSpacesThinClientClient", "ListTagsForResourceCommand").f(void 0, ListTagsForResourceResponseFilterSensitiveLog).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2026
+ };
2027
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2028
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2029
+
2030
+ // src/commands/TagResourceCommand.ts
2031
+
2032
+
2033
+
2034
+
2035
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2036
+ ...commonParams
2037
+ }).m(function(Command, cs, config, o) {
2038
+ return [
2039
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2040
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2041
+ ];
2042
+ }).s("ThinClient", "TagResource", {}).n("WorkSpacesThinClientClient", "TagResourceCommand").f(TagResourceRequestFilterSensitiveLog, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2043
+ };
2044
+ __name(_TagResourceCommand, "TagResourceCommand");
2045
+ var TagResourceCommand = _TagResourceCommand;
2046
+
2047
+ // src/commands/UntagResourceCommand.ts
2048
+
2049
+
2050
+
2051
+
2052
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2053
+ ...commonParams
2054
+ }).m(function(Command, cs, config, o) {
2055
+ return [
2056
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2057
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2058
+ ];
2059
+ }).s("ThinClient", "UntagResource", {}).n("WorkSpacesThinClientClient", "UntagResourceCommand").f(UntagResourceRequestFilterSensitiveLog, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2060
+ };
2061
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2062
+ var UntagResourceCommand = _UntagResourceCommand;
2063
+
2064
+ // src/commands/UpdateDeviceCommand.ts
2065
+
2066
+
2067
+
2068
+
2069
+ var _UpdateDeviceCommand = class _UpdateDeviceCommand extends import_smithy_client.Command.classBuilder().ep({
2070
+ ...commonParams
2071
+ }).m(function(Command, cs, config, o) {
2072
+ return [
2073
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2074
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2075
+ ];
2076
+ }).s("ThinClient", "UpdateDevice", {}).n("WorkSpacesThinClientClient", "UpdateDeviceCommand").f(UpdateDeviceRequestFilterSensitiveLog, UpdateDeviceResponseFilterSensitiveLog).ser(se_UpdateDeviceCommand).de(de_UpdateDeviceCommand).build() {
2077
+ };
2078
+ __name(_UpdateDeviceCommand, "UpdateDeviceCommand");
2079
+ var UpdateDeviceCommand = _UpdateDeviceCommand;
2080
+
2081
+ // src/commands/UpdateEnvironmentCommand.ts
2082
+
2083
+
2084
+
2085
+
2086
+ var _UpdateEnvironmentCommand = class _UpdateEnvironmentCommand extends import_smithy_client.Command.classBuilder().ep({
2087
+ ...commonParams
2088
+ }).m(function(Command, cs, config, o) {
2089
+ return [
2090
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2091
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2092
+ ];
2093
+ }).s("ThinClient", "UpdateEnvironment", {}).n("WorkSpacesThinClientClient", "UpdateEnvironmentCommand").f(UpdateEnvironmentRequestFilterSensitiveLog, UpdateEnvironmentResponseFilterSensitiveLog).ser(se_UpdateEnvironmentCommand).de(de_UpdateEnvironmentCommand).build() {
2094
+ };
2095
+ __name(_UpdateEnvironmentCommand, "UpdateEnvironmentCommand");
2096
+ var UpdateEnvironmentCommand = _UpdateEnvironmentCommand;
2097
+
2098
+ // src/commands/UpdateSoftwareSetCommand.ts
2099
+
2100
+
2101
+
2102
+
2103
+ var _UpdateSoftwareSetCommand = class _UpdateSoftwareSetCommand extends import_smithy_client.Command.classBuilder().ep({
2104
+ ...commonParams
2105
+ }).m(function(Command, cs, config, o) {
2106
+ return [
2107
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2108
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2109
+ ];
2110
+ }).s("ThinClient", "UpdateSoftwareSet", {}).n("WorkSpacesThinClientClient", "UpdateSoftwareSetCommand").f(void 0, void 0).ser(se_UpdateSoftwareSetCommand).de(de_UpdateSoftwareSetCommand).build() {
2111
+ };
2112
+ __name(_UpdateSoftwareSetCommand, "UpdateSoftwareSetCommand");
2113
+ var UpdateSoftwareSetCommand = _UpdateSoftwareSetCommand;
2114
+
2115
+ // src/WorkSpacesThinClient.ts
2116
+ var commands = {
2117
+ CreateEnvironmentCommand,
2118
+ DeleteDeviceCommand,
2119
+ DeleteEnvironmentCommand,
2120
+ DeregisterDeviceCommand,
2121
+ GetDeviceCommand,
2122
+ GetEnvironmentCommand,
2123
+ GetSoftwareSetCommand,
2124
+ ListDevicesCommand,
2125
+ ListEnvironmentsCommand,
2126
+ ListSoftwareSetsCommand,
2127
+ ListTagsForResourceCommand,
2128
+ TagResourceCommand,
2129
+ UntagResourceCommand,
2130
+ UpdateDeviceCommand,
2131
+ UpdateEnvironmentCommand,
2132
+ UpdateSoftwareSetCommand
2133
+ };
2134
+ var _WorkSpacesThinClient = class _WorkSpacesThinClient extends WorkSpacesThinClientClient {
2135
+ };
2136
+ __name(_WorkSpacesThinClient, "WorkSpacesThinClient");
2137
+ var WorkSpacesThinClient = _WorkSpacesThinClient;
2138
+ (0, import_smithy_client.createAggregatedClient)(commands, WorkSpacesThinClient);
2139
+
2140
+ // src/pagination/ListDevicesPaginator.ts
2141
+
2142
+ var paginateListDevices = (0, import_core.createPaginator)(WorkSpacesThinClientClient, ListDevicesCommand, "nextToken", "nextToken", "maxResults");
2143
+
2144
+ // src/pagination/ListEnvironmentsPaginator.ts
2145
+
2146
+ var paginateListEnvironments = (0, import_core.createPaginator)(WorkSpacesThinClientClient, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
2147
+
2148
+ // src/pagination/ListSoftwareSetsPaginator.ts
2149
+
2150
+ var paginateListSoftwareSets = (0, import_core.createPaginator)(WorkSpacesThinClientClient, ListSoftwareSetsCommand, "nextToken", "nextToken", "maxResults");
2151
+
2152
+ // src/index.ts
2153
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2154
+ var WorkSpacesThin = WorkSpacesThinClient;
2155
+ // Annotate the CommonJS export names for ESM import in node:
2156
+ 0 && (module.exports = {
2157
+ AccessDeniedException,
2158
+ ApplyTimeOf,
2159
+ ConflictException,
2160
+ CreateEnvironmentCommand,
2161
+ CreateEnvironmentRequestFilterSensitiveLog,
2162
+ CreateEnvironmentResponseFilterSensitiveLog,
2163
+ DayOfWeek,
2164
+ DeleteDeviceCommand,
2165
+ DeleteEnvironmentCommand,
2166
+ DeregisterDeviceCommand,
2167
+ DesktopType,
2168
+ DeviceFilterSensitiveLog,
2169
+ DeviceSoftwareSetComplianceStatus,
2170
+ DeviceStatus,
2171
+ DeviceSummaryFilterSensitiveLog,
2172
+ EmbeddedTagFilterSensitiveLog,
2173
+ EnvironmentFilterSensitiveLog,
2174
+ EnvironmentSoftwareSetComplianceStatus,
2175
+ EnvironmentSummaryFilterSensitiveLog,
2176
+ GetDeviceCommand,
2177
+ GetDeviceResponseFilterSensitiveLog,
2178
+ GetEnvironmentCommand,
2179
+ GetEnvironmentResponseFilterSensitiveLog,
2180
+ GetSoftwareSetCommand,
2181
+ InternalServerException,
2182
+ InternalServiceException,
2183
+ ListDevicesCommand,
2184
+ ListDevicesResponseFilterSensitiveLog,
2185
+ ListEnvironmentsCommand,
2186
+ ListEnvironmentsResponseFilterSensitiveLog,
2187
+ ListSoftwareSetsCommand,
2188
+ ListTagsForResourceCommand,
2189
+ ListTagsForResourceResponseFilterSensitiveLog,
2190
+ MaintenanceWindowType,
2191
+ ResourceNotFoundException,
2192
+ ServiceQuotaExceededException,
2193
+ SoftwareSetUpdateMode,
2194
+ SoftwareSetUpdateSchedule,
2195
+ SoftwareSetUpdateStatus,
2196
+ SoftwareSetValidationStatus,
2197
+ TagResourceCommand,
2198
+ TagResourceRequestFilterSensitiveLog,
2199
+ TargetDeviceStatus,
2200
+ ThrottlingException,
2201
+ UntagResourceCommand,
2202
+ UntagResourceRequestFilterSensitiveLog,
2203
+ UpdateDeviceCommand,
2204
+ UpdateDeviceRequestFilterSensitiveLog,
2205
+ UpdateDeviceResponseFilterSensitiveLog,
2206
+ UpdateEnvironmentCommand,
2207
+ UpdateEnvironmentRequestFilterSensitiveLog,
2208
+ UpdateEnvironmentResponseFilterSensitiveLog,
2209
+ UpdateSoftwareSetCommand,
2210
+ ValidationException,
2211
+ ValidationExceptionReason,
2212
+ WorkSpacesThin,
2213
+ WorkSpacesThinClient,
2214
+ WorkSpacesThinClientClient,
2215
+ WorkSpacesThinClientServiceException,
2216
+ __Client,
2217
+ paginateListDevices,
2218
+ paginateListEnvironments,
2219
+ paginateListSoftwareSets
2220
+ });