@aws-sdk/client-workspaces-thin-client 3.899.0 → 3.906.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 (2) hide show
  1. package/dist-cjs/index.js +1525 -1744
  2. package/package.json +38 -38
package/dist-cjs/index.js CHANGED
@@ -1,1798 +1,1579 @@
1
- "use strict";
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 index_exports = {};
23
- __export(index_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
- EnvironmentFilterSensitiveLog: () => EnvironmentFilterSensitiveLog,
40
- EnvironmentSoftwareSetComplianceStatus: () => EnvironmentSoftwareSetComplianceStatus,
41
- EnvironmentSummaryFilterSensitiveLog: () => EnvironmentSummaryFilterSensitiveLog,
42
- GetDeviceCommand: () => GetDeviceCommand,
43
- GetDeviceResponseFilterSensitiveLog: () => GetDeviceResponseFilterSensitiveLog,
44
- GetEnvironmentCommand: () => GetEnvironmentCommand,
45
- GetEnvironmentResponseFilterSensitiveLog: () => GetEnvironmentResponseFilterSensitiveLog,
46
- GetSoftwareSetCommand: () => GetSoftwareSetCommand,
47
- InternalServerException: () => InternalServerException,
48
- ListDevicesCommand: () => ListDevicesCommand,
49
- ListDevicesResponseFilterSensitiveLog: () => ListDevicesResponseFilterSensitiveLog,
50
- ListEnvironmentsCommand: () => ListEnvironmentsCommand,
51
- ListEnvironmentsResponseFilterSensitiveLog: () => ListEnvironmentsResponseFilterSensitiveLog,
52
- ListSoftwareSetsCommand: () => ListSoftwareSetsCommand,
53
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
54
- ListTagsForResourceResponseFilterSensitiveLog: () => ListTagsForResourceResponseFilterSensitiveLog,
55
- MaintenanceWindowType: () => MaintenanceWindowType,
56
- ResourceNotFoundException: () => ResourceNotFoundException,
57
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
58
- SoftwareSetUpdateMode: () => SoftwareSetUpdateMode,
59
- SoftwareSetUpdateSchedule: () => SoftwareSetUpdateSchedule,
60
- SoftwareSetUpdateStatus: () => SoftwareSetUpdateStatus,
61
- SoftwareSetValidationStatus: () => SoftwareSetValidationStatus,
62
- TagResourceCommand: () => TagResourceCommand,
63
- TagResourceRequestFilterSensitiveLog: () => TagResourceRequestFilterSensitiveLog,
64
- TargetDeviceStatus: () => TargetDeviceStatus,
65
- ThrottlingException: () => ThrottlingException,
66
- UntagResourceCommand: () => UntagResourceCommand,
67
- UntagResourceRequestFilterSensitiveLog: () => UntagResourceRequestFilterSensitiveLog,
68
- UpdateDeviceCommand: () => UpdateDeviceCommand,
69
- UpdateDeviceRequestFilterSensitiveLog: () => UpdateDeviceRequestFilterSensitiveLog,
70
- UpdateDeviceResponseFilterSensitiveLog: () => UpdateDeviceResponseFilterSensitiveLog,
71
- UpdateEnvironmentCommand: () => UpdateEnvironmentCommand,
72
- UpdateEnvironmentRequestFilterSensitiveLog: () => UpdateEnvironmentRequestFilterSensitiveLog,
73
- UpdateEnvironmentResponseFilterSensitiveLog: () => UpdateEnvironmentResponseFilterSensitiveLog,
74
- UpdateSoftwareSetCommand: () => UpdateSoftwareSetCommand,
75
- ValidationException: () => ValidationException,
76
- ValidationExceptionReason: () => ValidationExceptionReason,
77
- WorkSpacesThin: () => WorkSpacesThin,
78
- WorkSpacesThinClient: () => WorkSpacesThinClient,
79
- WorkSpacesThinClientClient: () => WorkSpacesThinClientClient,
80
- WorkSpacesThinClientServiceException: () => WorkSpacesThinClientServiceException,
81
- __Client: () => import_smithy_client.Client,
82
- paginateListDevices: () => paginateListDevices,
83
- paginateListEnvironments: () => paginateListEnvironments,
84
- paginateListSoftwareSets: () => paginateListSoftwareSets
85
- });
86
- module.exports = __toCommonJS(index_exports);
87
-
88
- // src/WorkSpacesThinClientClient.ts
89
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
90
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
91
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
92
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
93
- var import_config_resolver = require("@smithy/config-resolver");
94
- var import_core = require("@smithy/core");
95
- var import_middleware_content_length = require("@smithy/middleware-content-length");
96
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
97
- var import_middleware_retry = require("@smithy/middleware-retry");
98
-
99
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
100
-
101
- // src/endpoint/EndpointParameters.ts
102
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
103
- return Object.assign(options, {
104
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
105
- useFipsEndpoint: options.useFipsEndpoint ?? false,
106
- defaultSigningName: "thinclient"
107
- });
108
- }, "resolveClientEndpointParameters");
109
- var commonParams = {
110
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
111
- Endpoint: { type: "builtInParams", name: "endpoint" },
112
- Region: { type: "builtInParams", name: "region" },
113
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "thinclient",
26
+ });
27
+ };
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
114
33
  };
115
34
 
116
- // src/WorkSpacesThinClientClient.ts
117
- var import_runtimeConfig = require("././runtimeConfig");
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
72
+ };
118
73
 
119
- // src/runtimeExtensions.ts
120
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
121
- var import_protocol_http = require("@smithy/protocol-http");
122
- var import_smithy_client = require("@smithy/smithy-client");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
123
79
 
124
- // src/auth/httpAuthExtensionConfiguration.ts
125
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
126
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
127
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
128
- let _credentials = runtimeConfig.credentials;
129
- return {
130
- setHttpAuthScheme(httpAuthScheme) {
131
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
132
- if (index === -1) {
133
- _httpAuthSchemes.push(httpAuthScheme);
134
- } else {
135
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
136
- }
137
- },
138
- httpAuthSchemes() {
139
- return _httpAuthSchemes;
140
- },
141
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
142
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
143
- },
144
- httpAuthSchemeProvider() {
145
- return _httpAuthSchemeProvider;
146
- },
147
- setCredentials(credentials) {
148
- _credentials = credentials;
149
- },
150
- credentials() {
151
- return _credentials;
80
+ class WorkSpacesThinClientClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
+ this.config = _config_8;
95
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultWorkSpacesThinClientHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
152
108
  }
153
- };
154
- }, "getHttpAuthExtensionConfiguration");
155
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
156
- return {
157
- httpAuthSchemes: config.httpAuthSchemes(),
158
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
159
- credentials: config.credentials()
160
- };
161
- }, "resolveHttpAuthRuntimeConfig");
162
-
163
- // src/runtimeExtensions.ts
164
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
165
- const extensionConfiguration = Object.assign(
166
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
167
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
168
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
169
- getHttpAuthExtensionConfiguration(runtimeConfig)
170
- );
171
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
172
- return Object.assign(
173
- runtimeConfig,
174
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
175
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
176
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
177
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
178
- );
179
- }, "resolveRuntimeExtensions");
109
+ destroy() {
110
+ super.destroy();
111
+ }
112
+ }
180
113
 
181
- // src/WorkSpacesThinClientClient.ts
182
- var WorkSpacesThinClientClient = class extends import_smithy_client.Client {
183
- static {
184
- __name(this, "WorkSpacesThinClientClient");
185
- }
186
- /**
187
- * The resolved configuration of WorkSpacesThinClientClient class. This is resolved and normalized from the {@link WorkSpacesThinClientClientConfig | constructor configuration interface}.
188
- */
189
- config;
190
- constructor(...[configuration]) {
191
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
192
- super(_config_0);
193
- this.initConfig = _config_0;
194
- const _config_1 = resolveClientEndpointParameters(_config_0);
195
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
196
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
197
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
198
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
199
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
200
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
201
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
202
- this.config = _config_8;
203
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
204
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
205
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
206
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
207
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
208
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
209
- this.middlewareStack.use(
210
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
211
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultWorkSpacesThinClientHttpAuthSchemeParametersProvider,
212
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
213
- "aws.auth#sigv4": config.credentials
214
- }), "identityProviderConfigProvider")
215
- })
216
- );
217
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
218
- }
219
- /**
220
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
221
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
222
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
223
- */
224
- destroy() {
225
- super.destroy();
226
- }
114
+ class WorkSpacesThinClientServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, WorkSpacesThinClientServiceException.prototype);
118
+ }
119
+ }
120
+
121
+ class AccessDeniedException extends WorkSpacesThinClientServiceException {
122
+ name = "AccessDeniedException";
123
+ $fault = "client";
124
+ constructor(opts) {
125
+ super({
126
+ name: "AccessDeniedException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
+ }
132
+ }
133
+ const ApplyTimeOf = {
134
+ DEVICE: "DEVICE",
135
+ UTC: "UTC",
227
136
  };
228
-
229
- // src/WorkSpacesThinClient.ts
230
-
231
-
232
- // src/commands/CreateEnvironmentCommand.ts
233
-
234
- var import_middleware_serde = require("@smithy/middleware-serde");
235
-
236
-
237
- // src/models/models_0.ts
238
-
239
-
240
- // src/models/WorkSpacesThinClientServiceException.ts
241
-
242
- var WorkSpacesThinClientServiceException = class _WorkSpacesThinClientServiceException extends import_smithy_client.ServiceException {
243
- static {
244
- __name(this, "WorkSpacesThinClientServiceException");
245
- }
246
- /**
247
- * @internal
248
- */
249
- constructor(options) {
250
- super(options);
251
- Object.setPrototypeOf(this, _WorkSpacesThinClientServiceException.prototype);
252
- }
137
+ class ConflictException extends WorkSpacesThinClientServiceException {
138
+ name = "ConflictException";
139
+ $fault = "client";
140
+ resourceId;
141
+ resourceType;
142
+ constructor(opts) {
143
+ super({
144
+ name: "ConflictException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, ConflictException.prototype);
149
+ this.resourceId = opts.resourceId;
150
+ this.resourceType = opts.resourceType;
151
+ }
152
+ }
153
+ const DayOfWeek = {
154
+ FRIDAY: "FRIDAY",
155
+ MONDAY: "MONDAY",
156
+ SATURDAY: "SATURDAY",
157
+ SUNDAY: "SUNDAY",
158
+ THURSDAY: "THURSDAY",
159
+ TUESDAY: "TUESDAY",
160
+ WEDNESDAY: "WEDNESDAY",
161
+ };
162
+ const MaintenanceWindowType = {
163
+ CUSTOM: "CUSTOM",
164
+ SYSTEM: "SYSTEM",
165
+ };
166
+ const SoftwareSetUpdateMode = {
167
+ USE_DESIRED: "USE_DESIRED",
168
+ USE_LATEST: "USE_LATEST",
169
+ };
170
+ const SoftwareSetUpdateSchedule = {
171
+ APPLY_IMMEDIATELY: "APPLY_IMMEDIATELY",
172
+ USE_MAINTENANCE_WINDOW: "USE_MAINTENANCE_WINDOW",
173
+ };
174
+ const DesktopType = {
175
+ APPSTREAM: "appstream",
176
+ WORKSPACES: "workspaces",
177
+ WORKSPACES_WEB: "workspaces-web",
178
+ };
179
+ class InternalServerException extends WorkSpacesThinClientServiceException {
180
+ name = "InternalServerException";
181
+ $fault = "server";
182
+ retryAfterSeconds;
183
+ constructor(opts) {
184
+ super({
185
+ name: "InternalServerException",
186
+ $fault: "server",
187
+ ...opts,
188
+ });
189
+ Object.setPrototypeOf(this, InternalServerException.prototype);
190
+ this.retryAfterSeconds = opts.retryAfterSeconds;
191
+ }
192
+ }
193
+ class ResourceNotFoundException extends WorkSpacesThinClientServiceException {
194
+ name = "ResourceNotFoundException";
195
+ $fault = "client";
196
+ resourceId;
197
+ resourceType;
198
+ constructor(opts) {
199
+ super({
200
+ name: "ResourceNotFoundException",
201
+ $fault: "client",
202
+ ...opts,
203
+ });
204
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
205
+ this.resourceId = opts.resourceId;
206
+ this.resourceType = opts.resourceType;
207
+ }
208
+ }
209
+ class ServiceQuotaExceededException extends WorkSpacesThinClientServiceException {
210
+ name = "ServiceQuotaExceededException";
211
+ $fault = "client";
212
+ resourceId;
213
+ resourceType;
214
+ serviceCode;
215
+ quotaCode;
216
+ constructor(opts) {
217
+ super({
218
+ name: "ServiceQuotaExceededException",
219
+ $fault: "client",
220
+ ...opts,
221
+ });
222
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
223
+ this.resourceId = opts.resourceId;
224
+ this.resourceType = opts.resourceType;
225
+ this.serviceCode = opts.serviceCode;
226
+ this.quotaCode = opts.quotaCode;
227
+ }
228
+ }
229
+ class ThrottlingException extends WorkSpacesThinClientServiceException {
230
+ name = "ThrottlingException";
231
+ $fault = "client";
232
+ serviceCode;
233
+ quotaCode;
234
+ retryAfterSeconds;
235
+ constructor(opts) {
236
+ super({
237
+ name: "ThrottlingException",
238
+ $fault: "client",
239
+ ...opts,
240
+ });
241
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
242
+ this.serviceCode = opts.serviceCode;
243
+ this.quotaCode = opts.quotaCode;
244
+ this.retryAfterSeconds = opts.retryAfterSeconds;
245
+ }
246
+ }
247
+ const ValidationExceptionReason = {
248
+ CANNOT_PARSE: "cannotParse",
249
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
250
+ OTHER: "other",
251
+ UNKNOWN_OPERATION: "unknownOperation",
252
+ };
253
+ class ValidationException extends WorkSpacesThinClientServiceException {
254
+ name = "ValidationException";
255
+ $fault = "client";
256
+ reason;
257
+ fieldList;
258
+ constructor(opts) {
259
+ super({
260
+ name: "ValidationException",
261
+ $fault: "client",
262
+ ...opts,
263
+ });
264
+ Object.setPrototypeOf(this, ValidationException.prototype);
265
+ this.reason = opts.reason;
266
+ this.fieldList = opts.fieldList;
267
+ }
268
+ }
269
+ const TargetDeviceStatus = {
270
+ ARCHIVED: "ARCHIVED",
271
+ DEREGISTERED: "DEREGISTERED",
272
+ };
273
+ const DeviceSoftwareSetComplianceStatus = {
274
+ COMPLIANT: "COMPLIANT",
275
+ NONE: "NONE",
276
+ NOT_COMPLIANT: "NOT_COMPLIANT",
277
+ };
278
+ const SoftwareSetUpdateStatus = {
279
+ AVAILABLE: "AVAILABLE",
280
+ IN_PROGRESS: "IN_PROGRESS",
281
+ UP_TO_DATE: "UP_TO_DATE",
253
282
  };
283
+ const DeviceStatus = {
284
+ ARCHIVED: "ARCHIVED",
285
+ DEREGISTERED: "DEREGISTERED",
286
+ DEREGISTERING: "DEREGISTERING",
287
+ REGISTERED: "REGISTERED",
288
+ };
289
+ const EnvironmentSoftwareSetComplianceStatus = {
290
+ COMPLIANT: "COMPLIANT",
291
+ NOT_COMPLIANT: "NOT_COMPLIANT",
292
+ NO_REGISTERED_DEVICES: "NO_REGISTERED_DEVICES",
293
+ };
294
+ const SoftwareSetValidationStatus = {
295
+ NOT_VALIDATED: "NOT_VALIDATED",
296
+ VALIDATED: "VALIDATED",
297
+ };
298
+ const CreateEnvironmentRequestFilterSensitiveLog = (obj) => ({
299
+ ...obj,
300
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
301
+ ...(obj.desktopEndpoint && { desktopEndpoint: smithyClient.SENSITIVE_STRING }),
302
+ ...(obj.tags && { tags: smithyClient.SENSITIVE_STRING }),
303
+ ...(obj.deviceCreationTags && { deviceCreationTags: smithyClient.SENSITIVE_STRING }),
304
+ });
305
+ const EnvironmentSummaryFilterSensitiveLog = (obj) => ({
306
+ ...obj,
307
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
308
+ ...(obj.desktopEndpoint && { desktopEndpoint: smithyClient.SENSITIVE_STRING }),
309
+ ...(obj.activationCode && { activationCode: smithyClient.SENSITIVE_STRING }),
310
+ });
311
+ const CreateEnvironmentResponseFilterSensitiveLog = (obj) => ({
312
+ ...obj,
313
+ ...(obj.environment && { environment: EnvironmentSummaryFilterSensitiveLog(obj.environment) }),
314
+ });
315
+ const DeviceFilterSensitiveLog = (obj) => ({
316
+ ...obj,
317
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
318
+ ...(obj.lastUserId && { lastUserId: smithyClient.SENSITIVE_STRING }),
319
+ });
320
+ const DeviceSummaryFilterSensitiveLog = (obj) => ({
321
+ ...obj,
322
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
323
+ ...(obj.lastUserId && { lastUserId: smithyClient.SENSITIVE_STRING }),
324
+ });
325
+ const EnvironmentFilterSensitiveLog = (obj) => ({
326
+ ...obj,
327
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
328
+ ...(obj.desktopEndpoint && { desktopEndpoint: smithyClient.SENSITIVE_STRING }),
329
+ ...(obj.activationCode && { activationCode: smithyClient.SENSITIVE_STRING }),
330
+ ...(obj.deviceCreationTags && { deviceCreationTags: smithyClient.SENSITIVE_STRING }),
331
+ });
332
+ const GetDeviceResponseFilterSensitiveLog = (obj) => ({
333
+ ...obj,
334
+ ...(obj.device && { device: DeviceFilterSensitiveLog(obj.device) }),
335
+ });
336
+ const GetEnvironmentResponseFilterSensitiveLog = (obj) => ({
337
+ ...obj,
338
+ ...(obj.environment && { environment: EnvironmentFilterSensitiveLog(obj.environment) }),
339
+ });
340
+ const ListDevicesResponseFilterSensitiveLog = (obj) => ({
341
+ ...obj,
342
+ ...(obj.devices && { devices: obj.devices.map((item) => DeviceSummaryFilterSensitiveLog(item)) }),
343
+ });
344
+ const ListEnvironmentsResponseFilterSensitiveLog = (obj) => ({
345
+ ...obj,
346
+ ...(obj.environments && { environments: obj.environments.map((item) => EnvironmentSummaryFilterSensitiveLog(item)) }),
347
+ });
348
+ const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
349
+ ...obj,
350
+ ...(obj.tags && { tags: smithyClient.SENSITIVE_STRING }),
351
+ });
352
+ const TagResourceRequestFilterSensitiveLog = (obj) => ({
353
+ ...obj,
354
+ ...(obj.tags && { tags: smithyClient.SENSITIVE_STRING }),
355
+ });
356
+ const UntagResourceRequestFilterSensitiveLog = (obj) => ({
357
+ ...obj,
358
+ ...(obj.tagKeys && { tagKeys: smithyClient.SENSITIVE_STRING }),
359
+ });
360
+ const UpdateDeviceRequestFilterSensitiveLog = (obj) => ({
361
+ ...obj,
362
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
363
+ });
364
+ const UpdateDeviceResponseFilterSensitiveLog = (obj) => ({
365
+ ...obj,
366
+ ...(obj.device && { device: DeviceSummaryFilterSensitiveLog(obj.device) }),
367
+ });
368
+ const UpdateEnvironmentRequestFilterSensitiveLog = (obj) => ({
369
+ ...obj,
370
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
371
+ ...(obj.desktopEndpoint && { desktopEndpoint: smithyClient.SENSITIVE_STRING }),
372
+ ...(obj.deviceCreationTags && { deviceCreationTags: smithyClient.SENSITIVE_STRING }),
373
+ });
374
+ const UpdateEnvironmentResponseFilterSensitiveLog = (obj) => ({
375
+ ...obj,
376
+ ...(obj.environment && { environment: EnvironmentSummaryFilterSensitiveLog(obj.environment) }),
377
+ });
254
378
 
255
- // src/models/models_0.ts
256
- var AccessDeniedException = class _AccessDeniedException extends WorkSpacesThinClientServiceException {
257
- static {
258
- __name(this, "AccessDeniedException");
259
- }
260
- name = "AccessDeniedException";
261
- $fault = "client";
262
- /**
263
- * @internal
264
- */
265
- constructor(opts) {
266
- super({
267
- name: "AccessDeniedException",
268
- $fault: "client",
269
- ...opts
379
+ const se_CreateEnvironmentCommand = async (input, context) => {
380
+ const b = core.requestBuilder(input, context);
381
+ const headers = {
382
+ "content-type": "application/json",
383
+ };
384
+ b.bp("/environments");
385
+ let body;
386
+ body = JSON.stringify(smithyClient.take(input, {
387
+ clientToken: [true, (_) => _ ?? uuid.v4()],
388
+ desiredSoftwareSetId: [],
389
+ desktopArn: [],
390
+ desktopEndpoint: [],
391
+ deviceCreationTags: (_) => smithyClient._json(_),
392
+ kmsKeyArn: [],
393
+ maintenanceWindow: (_) => smithyClient._json(_),
394
+ name: [],
395
+ softwareSetUpdateMode: [],
396
+ softwareSetUpdateSchedule: [],
397
+ tags: (_) => smithyClient._json(_),
398
+ }));
399
+ let { hostname: resolvedHostname } = await context.endpoint();
400
+ if (context.disableHostPrefix !== true) {
401
+ resolvedHostname = "api." + resolvedHostname;
402
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
403
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
404
+ }
405
+ }
406
+ b.hn(resolvedHostname);
407
+ b.m("POST").h(headers).b(body);
408
+ return b.build();
409
+ };
410
+ const se_DeleteDeviceCommand = async (input, context) => {
411
+ const b = core.requestBuilder(input, context);
412
+ const headers = {};
413
+ b.bp("/devices/{id}");
414
+ b.p("id", () => input.id, "{id}", false);
415
+ const query = smithyClient.map({
416
+ [_cT]: [, input[_cT] ?? uuid.v4()],
270
417
  });
271
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
272
- }
273
- };
274
- var ApplyTimeOf = {
275
- DEVICE: "DEVICE",
276
- UTC: "UTC"
277
- };
278
- var ConflictException = class _ConflictException extends WorkSpacesThinClientServiceException {
279
- static {
280
- __name(this, "ConflictException");
281
- }
282
- name = "ConflictException";
283
- $fault = "client";
284
- /**
285
- * <p>The ID of the resource associated with the request.</p>
286
- * @public
287
- */
288
- resourceId;
289
- /**
290
- * <p>The type of the resource associated with the request.</p>
291
- * @public
292
- */
293
- resourceType;
294
- /**
295
- * @internal
296
- */
297
- constructor(opts) {
298
- super({
299
- name: "ConflictException",
300
- $fault: "client",
301
- ...opts
418
+ let body;
419
+ let { hostname: resolvedHostname } = await context.endpoint();
420
+ if (context.disableHostPrefix !== true) {
421
+ resolvedHostname = "api." + resolvedHostname;
422
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
423
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
424
+ }
425
+ }
426
+ b.hn(resolvedHostname);
427
+ b.m("DELETE").h(headers).q(query).b(body);
428
+ return b.build();
429
+ };
430
+ const se_DeleteEnvironmentCommand = async (input, context) => {
431
+ const b = core.requestBuilder(input, context);
432
+ const headers = {};
433
+ b.bp("/environments/{id}");
434
+ b.p("id", () => input.id, "{id}", false);
435
+ const query = smithyClient.map({
436
+ [_cT]: [, input[_cT] ?? uuid.v4()],
302
437
  });
303
- Object.setPrototypeOf(this, _ConflictException.prototype);
304
- this.resourceId = opts.resourceId;
305
- this.resourceType = opts.resourceType;
306
- }
307
- };
308
- var DayOfWeek = {
309
- FRIDAY: "FRIDAY",
310
- MONDAY: "MONDAY",
311
- SATURDAY: "SATURDAY",
312
- SUNDAY: "SUNDAY",
313
- THURSDAY: "THURSDAY",
314
- TUESDAY: "TUESDAY",
315
- WEDNESDAY: "WEDNESDAY"
316
- };
317
- var MaintenanceWindowType = {
318
- CUSTOM: "CUSTOM",
319
- SYSTEM: "SYSTEM"
320
- };
321
- var SoftwareSetUpdateMode = {
322
- USE_DESIRED: "USE_DESIRED",
323
- USE_LATEST: "USE_LATEST"
324
- };
325
- var SoftwareSetUpdateSchedule = {
326
- APPLY_IMMEDIATELY: "APPLY_IMMEDIATELY",
327
- USE_MAINTENANCE_WINDOW: "USE_MAINTENANCE_WINDOW"
328
- };
329
- var DesktopType = {
330
- APPSTREAM: "appstream",
331
- WORKSPACES: "workspaces",
332
- WORKSPACES_WEB: "workspaces-web"
333
- };
334
- var InternalServerException = class _InternalServerException extends WorkSpacesThinClientServiceException {
335
- static {
336
- __name(this, "InternalServerException");
337
- }
338
- name = "InternalServerException";
339
- $fault = "server";
340
- /**
341
- * <p>The number of seconds to wait before retrying the next request.</p>
342
- * @public
343
- */
344
- retryAfterSeconds;
345
- /**
346
- * @internal
347
- */
348
- constructor(opts) {
349
- super({
350
- name: "InternalServerException",
351
- $fault: "server",
352
- ...opts
438
+ let body;
439
+ let { hostname: resolvedHostname } = await context.endpoint();
440
+ if (context.disableHostPrefix !== true) {
441
+ resolvedHostname = "api." + resolvedHostname;
442
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
443
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
444
+ }
445
+ }
446
+ b.hn(resolvedHostname);
447
+ b.m("DELETE").h(headers).q(query).b(body);
448
+ return b.build();
449
+ };
450
+ const se_DeregisterDeviceCommand = async (input, context) => {
451
+ const b = core.requestBuilder(input, context);
452
+ const headers = {
453
+ "content-type": "application/json",
454
+ };
455
+ b.bp("/deregister-device/{id}");
456
+ b.p("id", () => input.id, "{id}", false);
457
+ let body;
458
+ body = JSON.stringify(smithyClient.take(input, {
459
+ clientToken: [true, (_) => _ ?? uuid.v4()],
460
+ targetDeviceStatus: [],
461
+ }));
462
+ let { hostname: resolvedHostname } = await context.endpoint();
463
+ if (context.disableHostPrefix !== true) {
464
+ resolvedHostname = "api." + resolvedHostname;
465
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
466
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
467
+ }
468
+ }
469
+ b.hn(resolvedHostname);
470
+ b.m("POST").h(headers).b(body);
471
+ return b.build();
472
+ };
473
+ const se_GetDeviceCommand = async (input, context) => {
474
+ const b = core.requestBuilder(input, context);
475
+ const headers = {};
476
+ b.bp("/devices/{id}");
477
+ b.p("id", () => input.id, "{id}", false);
478
+ let body;
479
+ let { hostname: resolvedHostname } = await context.endpoint();
480
+ if (context.disableHostPrefix !== true) {
481
+ resolvedHostname = "api." + resolvedHostname;
482
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
483
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
484
+ }
485
+ }
486
+ b.hn(resolvedHostname);
487
+ b.m("GET").h(headers).b(body);
488
+ return b.build();
489
+ };
490
+ const se_GetEnvironmentCommand = async (input, context) => {
491
+ const b = core.requestBuilder(input, context);
492
+ const headers = {};
493
+ b.bp("/environments/{id}");
494
+ b.p("id", () => input.id, "{id}", false);
495
+ let body;
496
+ let { hostname: resolvedHostname } = await context.endpoint();
497
+ if (context.disableHostPrefix !== true) {
498
+ resolvedHostname = "api." + resolvedHostname;
499
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
500
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
501
+ }
502
+ }
503
+ b.hn(resolvedHostname);
504
+ b.m("GET").h(headers).b(body);
505
+ return b.build();
506
+ };
507
+ const se_GetSoftwareSetCommand = async (input, context) => {
508
+ const b = core.requestBuilder(input, context);
509
+ const headers = {};
510
+ b.bp("/softwaresets/{id}");
511
+ b.p("id", () => input.id, "{id}", false);
512
+ let body;
513
+ let { hostname: resolvedHostname } = await context.endpoint();
514
+ if (context.disableHostPrefix !== true) {
515
+ resolvedHostname = "api." + resolvedHostname;
516
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
517
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
518
+ }
519
+ }
520
+ b.hn(resolvedHostname);
521
+ b.m("GET").h(headers).b(body);
522
+ return b.build();
523
+ };
524
+ const se_ListDevicesCommand = async (input, context) => {
525
+ const b = core.requestBuilder(input, context);
526
+ const headers = {};
527
+ b.bp("/devices");
528
+ const query = smithyClient.map({
529
+ [_nT]: [, input[_nT]],
530
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
353
531
  });
354
- Object.setPrototypeOf(this, _InternalServerException.prototype);
355
- this.retryAfterSeconds = opts.retryAfterSeconds;
356
- }
357
- };
358
- var ResourceNotFoundException = class _ResourceNotFoundException extends WorkSpacesThinClientServiceException {
359
- static {
360
- __name(this, "ResourceNotFoundException");
361
- }
362
- name = "ResourceNotFoundException";
363
- $fault = "client";
364
- /**
365
- * <p>The ID of the resource associated with the request.</p>
366
- * @public
367
- */
368
- resourceId;
369
- /**
370
- * <p>The type of the resource associated with the request.</p>
371
- * @public
372
- */
373
- resourceType;
374
- /**
375
- * @internal
376
- */
377
- constructor(opts) {
378
- super({
379
- name: "ResourceNotFoundException",
380
- $fault: "client",
381
- ...opts
532
+ let body;
533
+ let { hostname: resolvedHostname } = await context.endpoint();
534
+ if (context.disableHostPrefix !== true) {
535
+ resolvedHostname = "api." + resolvedHostname;
536
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
537
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
538
+ }
539
+ }
540
+ b.hn(resolvedHostname);
541
+ b.m("GET").h(headers).q(query).b(body);
542
+ return b.build();
543
+ };
544
+ const se_ListEnvironmentsCommand = async (input, context) => {
545
+ const b = core.requestBuilder(input, context);
546
+ const headers = {};
547
+ b.bp("/environments");
548
+ const query = smithyClient.map({
549
+ [_nT]: [, input[_nT]],
550
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
382
551
  });
383
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
384
- this.resourceId = opts.resourceId;
385
- this.resourceType = opts.resourceType;
386
- }
387
- };
388
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends WorkSpacesThinClientServiceException {
389
- static {
390
- __name(this, "ServiceQuotaExceededException");
391
- }
392
- name = "ServiceQuotaExceededException";
393
- $fault = "client";
394
- /**
395
- * <p>The ID of the resource that exceeds the service quota.</p>
396
- * @public
397
- */
398
- resourceId;
399
- /**
400
- * <p>The type of the resource that exceeds the service quota.</p>
401
- * @public
402
- */
403
- resourceType;
404
- /**
405
- * <p>The code for the service in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
406
- * @public
407
- */
408
- serviceCode;
409
- /**
410
- * <p>The code for the quota in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
411
- * @public
412
- */
413
- quotaCode;
414
- /**
415
- * @internal
416
- */
417
- constructor(opts) {
418
- super({
419
- name: "ServiceQuotaExceededException",
420
- $fault: "client",
421
- ...opts
552
+ let body;
553
+ let { hostname: resolvedHostname } = await context.endpoint();
554
+ if (context.disableHostPrefix !== true) {
555
+ resolvedHostname = "api." + resolvedHostname;
556
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
557
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
558
+ }
559
+ }
560
+ b.hn(resolvedHostname);
561
+ b.m("GET").h(headers).q(query).b(body);
562
+ return b.build();
563
+ };
564
+ const se_ListSoftwareSetsCommand = async (input, context) => {
565
+ const b = core.requestBuilder(input, context);
566
+ const headers = {};
567
+ b.bp("/softwaresets");
568
+ const query = smithyClient.map({
569
+ [_nT]: [, input[_nT]],
570
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
422
571
  });
423
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
424
- this.resourceId = opts.resourceId;
425
- this.resourceType = opts.resourceType;
426
- this.serviceCode = opts.serviceCode;
427
- this.quotaCode = opts.quotaCode;
428
- }
429
- };
430
- var ThrottlingException = class _ThrottlingException extends WorkSpacesThinClientServiceException {
431
- static {
432
- __name(this, "ThrottlingException");
433
- }
434
- name = "ThrottlingException";
435
- $fault = "client";
436
- /**
437
- * <p>The code for the service in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
438
- * @public
439
- */
440
- serviceCode;
441
- /**
442
- * <p>The code for the quota in <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/intro.html">Service Quotas</a>.</p>
443
- * @public
444
- */
445
- quotaCode;
446
- /**
447
- * <p>The number of seconds to wait before retrying the next request.</p>
448
- * @public
449
- */
450
- retryAfterSeconds;
451
- /**
452
- * @internal
453
- */
454
- constructor(opts) {
455
- super({
456
- name: "ThrottlingException",
457
- $fault: "client",
458
- ...opts
572
+ let body;
573
+ let { hostname: resolvedHostname } = await context.endpoint();
574
+ if (context.disableHostPrefix !== true) {
575
+ resolvedHostname = "api." + resolvedHostname;
576
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
577
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
578
+ }
579
+ }
580
+ b.hn(resolvedHostname);
581
+ b.m("GET").h(headers).q(query).b(body);
582
+ return b.build();
583
+ };
584
+ const se_ListTagsForResourceCommand = async (input, context) => {
585
+ const b = core.requestBuilder(input, context);
586
+ const headers = {};
587
+ b.bp("/tags/{resourceArn}");
588
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
589
+ let body;
590
+ let { hostname: resolvedHostname } = await context.endpoint();
591
+ if (context.disableHostPrefix !== true) {
592
+ resolvedHostname = "api." + resolvedHostname;
593
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
594
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
595
+ }
596
+ }
597
+ b.hn(resolvedHostname);
598
+ b.m("GET").h(headers).b(body);
599
+ return b.build();
600
+ };
601
+ const se_TagResourceCommand = async (input, context) => {
602
+ const b = core.requestBuilder(input, context);
603
+ const headers = {
604
+ "content-type": "application/json",
605
+ };
606
+ b.bp("/tags/{resourceArn}");
607
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
608
+ let body;
609
+ body = JSON.stringify(smithyClient.take(input, {
610
+ tags: (_) => smithyClient._json(_),
611
+ }));
612
+ let { hostname: resolvedHostname } = await context.endpoint();
613
+ if (context.disableHostPrefix !== true) {
614
+ resolvedHostname = "api." + resolvedHostname;
615
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
616
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
617
+ }
618
+ }
619
+ b.hn(resolvedHostname);
620
+ b.m("POST").h(headers).b(body);
621
+ return b.build();
622
+ };
623
+ const se_UntagResourceCommand = async (input, context) => {
624
+ const b = core.requestBuilder(input, context);
625
+ const headers = {};
626
+ b.bp("/tags/{resourceArn}");
627
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
628
+ const query = smithyClient.map({
629
+ [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
459
630
  });
460
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
461
- this.serviceCode = opts.serviceCode;
462
- this.quotaCode = opts.quotaCode;
463
- this.retryAfterSeconds = opts.retryAfterSeconds;
464
- }
465
- };
466
- var ValidationExceptionReason = {
467
- CANNOT_PARSE: "cannotParse",
468
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
469
- OTHER: "other",
470
- UNKNOWN_OPERATION: "unknownOperation"
471
- };
472
- var ValidationException = class _ValidationException extends WorkSpacesThinClientServiceException {
473
- static {
474
- __name(this, "ValidationException");
475
- }
476
- name = "ValidationException";
477
- $fault = "client";
478
- /**
479
- * <p>The reason for the exception.</p>
480
- * @public
481
- */
482
- reason;
483
- /**
484
- * <p>A list of fields that didn't validate.</p>
485
- * @public
486
- */
487
- fieldList;
488
- /**
489
- * @internal
490
- */
491
- constructor(opts) {
492
- super({
493
- name: "ValidationException",
494
- $fault: "client",
495
- ...opts
631
+ let body;
632
+ let { hostname: resolvedHostname } = await context.endpoint();
633
+ if (context.disableHostPrefix !== true) {
634
+ resolvedHostname = "api." + resolvedHostname;
635
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
636
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
637
+ }
638
+ }
639
+ b.hn(resolvedHostname);
640
+ b.m("DELETE").h(headers).q(query).b(body);
641
+ return b.build();
642
+ };
643
+ const se_UpdateDeviceCommand = async (input, context) => {
644
+ const b = core.requestBuilder(input, context);
645
+ const headers = {
646
+ "content-type": "application/json",
647
+ };
648
+ b.bp("/devices/{id}");
649
+ b.p("id", () => input.id, "{id}", false);
650
+ let body;
651
+ body = JSON.stringify(smithyClient.take(input, {
652
+ desiredSoftwareSetId: [],
653
+ name: [],
654
+ softwareSetUpdateSchedule: [],
655
+ }));
656
+ let { hostname: resolvedHostname } = await context.endpoint();
657
+ if (context.disableHostPrefix !== true) {
658
+ resolvedHostname = "api." + resolvedHostname;
659
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
660
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
661
+ }
662
+ }
663
+ b.hn(resolvedHostname);
664
+ b.m("PATCH").h(headers).b(body);
665
+ return b.build();
666
+ };
667
+ const se_UpdateEnvironmentCommand = async (input, context) => {
668
+ const b = core.requestBuilder(input, context);
669
+ const headers = {
670
+ "content-type": "application/json",
671
+ };
672
+ b.bp("/environments/{id}");
673
+ b.p("id", () => input.id, "{id}", false);
674
+ let body;
675
+ body = JSON.stringify(smithyClient.take(input, {
676
+ desiredSoftwareSetId: [],
677
+ desktopArn: [],
678
+ desktopEndpoint: [],
679
+ deviceCreationTags: (_) => smithyClient._json(_),
680
+ maintenanceWindow: (_) => smithyClient._json(_),
681
+ name: [],
682
+ softwareSetUpdateMode: [],
683
+ softwareSetUpdateSchedule: [],
684
+ }));
685
+ let { hostname: resolvedHostname } = await context.endpoint();
686
+ if (context.disableHostPrefix !== true) {
687
+ resolvedHostname = "api." + resolvedHostname;
688
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
689
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
690
+ }
691
+ }
692
+ b.hn(resolvedHostname);
693
+ b.m("PATCH").h(headers).b(body);
694
+ return b.build();
695
+ };
696
+ const se_UpdateSoftwareSetCommand = async (input, context) => {
697
+ const b = core.requestBuilder(input, context);
698
+ const headers = {
699
+ "content-type": "application/json",
700
+ };
701
+ b.bp("/softwaresets/{id}");
702
+ b.p("id", () => input.id, "{id}", false);
703
+ let body;
704
+ body = JSON.stringify(smithyClient.take(input, {
705
+ validationStatus: [],
706
+ }));
707
+ let { hostname: resolvedHostname } = await context.endpoint();
708
+ if (context.disableHostPrefix !== true) {
709
+ resolvedHostname = "api." + resolvedHostname;
710
+ if (!protocolHttp.isValidHostname(resolvedHostname)) {
711
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
712
+ }
713
+ }
714
+ b.hn(resolvedHostname);
715
+ b.m("PATCH").h(headers).b(body);
716
+ return b.build();
717
+ };
718
+ const de_CreateEnvironmentCommand = async (output, context) => {
719
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
720
+ return de_CommandError(output, context);
721
+ }
722
+ const contents = smithyClient.map({
723
+ $metadata: deserializeMetadata(output),
496
724
  });
497
- Object.setPrototypeOf(this, _ValidationException.prototype);
498
- this.reason = opts.reason;
499
- this.fieldList = opts.fieldList;
500
- }
501
- };
502
- var TargetDeviceStatus = {
503
- ARCHIVED: "ARCHIVED",
504
- DEREGISTERED: "DEREGISTERED"
505
- };
506
- var DeviceSoftwareSetComplianceStatus = {
507
- COMPLIANT: "COMPLIANT",
508
- NONE: "NONE",
509
- NOT_COMPLIANT: "NOT_COMPLIANT"
510
- };
511
- var SoftwareSetUpdateStatus = {
512
- AVAILABLE: "AVAILABLE",
513
- IN_PROGRESS: "IN_PROGRESS",
514
- UP_TO_DATE: "UP_TO_DATE"
515
- };
516
- var DeviceStatus = {
517
- ARCHIVED: "ARCHIVED",
518
- DEREGISTERED: "DEREGISTERED",
519
- DEREGISTERING: "DEREGISTERING",
520
- REGISTERED: "REGISTERED"
521
- };
522
- var EnvironmentSoftwareSetComplianceStatus = {
523
- COMPLIANT: "COMPLIANT",
524
- NOT_COMPLIANT: "NOT_COMPLIANT",
525
- NO_REGISTERED_DEVICES: "NO_REGISTERED_DEVICES"
526
- };
527
- var SoftwareSetValidationStatus = {
528
- NOT_VALIDATED: "NOT_VALIDATED",
529
- VALIDATED: "VALIDATED"
530
- };
531
- var CreateEnvironmentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
532
- ...obj,
533
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
534
- ...obj.desktopEndpoint && { desktopEndpoint: import_smithy_client.SENSITIVE_STRING },
535
- ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING },
536
- ...obj.deviceCreationTags && { deviceCreationTags: import_smithy_client.SENSITIVE_STRING }
537
- }), "CreateEnvironmentRequestFilterSensitiveLog");
538
- var EnvironmentSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
539
- ...obj,
540
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
541
- ...obj.desktopEndpoint && { desktopEndpoint: import_smithy_client.SENSITIVE_STRING },
542
- ...obj.activationCode && { activationCode: import_smithy_client.SENSITIVE_STRING }
543
- }), "EnvironmentSummaryFilterSensitiveLog");
544
- var CreateEnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
545
- ...obj,
546
- ...obj.environment && { environment: EnvironmentSummaryFilterSensitiveLog(obj.environment) }
547
- }), "CreateEnvironmentResponseFilterSensitiveLog");
548
- var DeviceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
549
- ...obj,
550
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
551
- ...obj.lastUserId && { lastUserId: import_smithy_client.SENSITIVE_STRING }
552
- }), "DeviceFilterSensitiveLog");
553
- var DeviceSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
554
- ...obj,
555
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
556
- ...obj.lastUserId && { lastUserId: import_smithy_client.SENSITIVE_STRING }
557
- }), "DeviceSummaryFilterSensitiveLog");
558
- var EnvironmentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
559
- ...obj,
560
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
561
- ...obj.desktopEndpoint && { desktopEndpoint: import_smithy_client.SENSITIVE_STRING },
562
- ...obj.activationCode && { activationCode: import_smithy_client.SENSITIVE_STRING },
563
- ...obj.deviceCreationTags && { deviceCreationTags: import_smithy_client.SENSITIVE_STRING }
564
- }), "EnvironmentFilterSensitiveLog");
565
- var GetDeviceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
566
- ...obj,
567
- ...obj.device && { device: DeviceFilterSensitiveLog(obj.device) }
568
- }), "GetDeviceResponseFilterSensitiveLog");
569
- var GetEnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
570
- ...obj,
571
- ...obj.environment && { environment: EnvironmentFilterSensitiveLog(obj.environment) }
572
- }), "GetEnvironmentResponseFilterSensitiveLog");
573
- var ListDevicesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
574
- ...obj,
575
- ...obj.devices && { devices: obj.devices.map((item) => DeviceSummaryFilterSensitiveLog(item)) }
576
- }), "ListDevicesResponseFilterSensitiveLog");
577
- var ListEnvironmentsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
578
- ...obj,
579
- ...obj.environments && { environments: obj.environments.map((item) => EnvironmentSummaryFilterSensitiveLog(item)) }
580
- }), "ListEnvironmentsResponseFilterSensitiveLog");
581
- var ListTagsForResourceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
582
- ...obj,
583
- ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
584
- }), "ListTagsForResourceResponseFilterSensitiveLog");
585
- var TagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
586
- ...obj,
587
- ...obj.tags && { tags: import_smithy_client.SENSITIVE_STRING }
588
- }), "TagResourceRequestFilterSensitiveLog");
589
- var UntagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
590
- ...obj,
591
- ...obj.tagKeys && { tagKeys: import_smithy_client.SENSITIVE_STRING }
592
- }), "UntagResourceRequestFilterSensitiveLog");
593
- var UpdateDeviceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
594
- ...obj,
595
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }
596
- }), "UpdateDeviceRequestFilterSensitiveLog");
597
- var UpdateDeviceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
598
- ...obj,
599
- ...obj.device && { device: DeviceSummaryFilterSensitiveLog(obj.device) }
600
- }), "UpdateDeviceResponseFilterSensitiveLog");
601
- var UpdateEnvironmentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
602
- ...obj,
603
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
604
- ...obj.desktopEndpoint && { desktopEndpoint: import_smithy_client.SENSITIVE_STRING },
605
- ...obj.deviceCreationTags && { deviceCreationTags: import_smithy_client.SENSITIVE_STRING }
606
- }), "UpdateEnvironmentRequestFilterSensitiveLog");
607
- var UpdateEnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
608
- ...obj,
609
- ...obj.environment && { environment: EnvironmentSummaryFilterSensitiveLog(obj.environment) }
610
- }), "UpdateEnvironmentResponseFilterSensitiveLog");
611
-
612
- // src/protocols/Aws_restJson1.ts
613
- var import_core2 = require("@aws-sdk/core");
614
-
615
-
616
-
617
- var import_uuid = require("@smithy/uuid");
618
- var se_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
619
- const b = (0, import_core.requestBuilder)(input, context);
620
- const headers = {
621
- "content-type": "application/json"
622
- };
623
- b.bp("/environments");
624
- let body;
625
- body = JSON.stringify(
626
- (0, import_smithy_client.take)(input, {
627
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
628
- desiredSoftwareSetId: [],
629
- desktopArn: [],
630
- desktopEndpoint: [],
631
- deviceCreationTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "deviceCreationTags"),
632
- kmsKeyArn: [],
633
- maintenanceWindow: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "maintenanceWindow"),
634
- name: [],
635
- softwareSetUpdateMode: [],
636
- softwareSetUpdateSchedule: [],
637
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
638
- })
639
- );
640
- let { hostname: resolvedHostname } = await context.endpoint();
641
- if (context.disableHostPrefix !== true) {
642
- resolvedHostname = "api." + resolvedHostname;
643
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
644
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
725
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
726
+ const doc = smithyClient.take(data, {
727
+ environment: (_) => de_EnvironmentSummary(_),
728
+ });
729
+ Object.assign(contents, doc);
730
+ return contents;
731
+ };
732
+ const de_DeleteDeviceCommand = async (output, context) => {
733
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
734
+ return de_CommandError(output, context);
645
735
  }
646
- }
647
- b.hn(resolvedHostname);
648
- b.m("POST").h(headers).b(body);
649
- return b.build();
650
- }, "se_CreateEnvironmentCommand");
651
- var se_DeleteDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
652
- const b = (0, import_core.requestBuilder)(input, context);
653
- const headers = {};
654
- b.bp("/devices/{id}");
655
- b.p("id", () => input.id, "{id}", false);
656
- const query = (0, import_smithy_client.map)({
657
- [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
658
- });
659
- let body;
660
- let { hostname: resolvedHostname } = await context.endpoint();
661
- if (context.disableHostPrefix !== true) {
662
- resolvedHostname = "api." + resolvedHostname;
663
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
664
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
736
+ const contents = smithyClient.map({
737
+ $metadata: deserializeMetadata(output),
738
+ });
739
+ await smithyClient.collectBody(output.body, context);
740
+ return contents;
741
+ };
742
+ const de_DeleteEnvironmentCommand = async (output, context) => {
743
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
744
+ return de_CommandError(output, context);
665
745
  }
666
- }
667
- b.hn(resolvedHostname);
668
- b.m("DELETE").h(headers).q(query).b(body);
669
- return b.build();
670
- }, "se_DeleteDeviceCommand");
671
- var se_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
672
- const b = (0, import_core.requestBuilder)(input, context);
673
- const headers = {};
674
- b.bp("/environments/{id}");
675
- b.p("id", () => input.id, "{id}", false);
676
- const query = (0, import_smithy_client.map)({
677
- [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]
678
- });
679
- let body;
680
- let { hostname: resolvedHostname } = await context.endpoint();
681
- if (context.disableHostPrefix !== true) {
682
- resolvedHostname = "api." + resolvedHostname;
683
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
684
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
746
+ const contents = smithyClient.map({
747
+ $metadata: deserializeMetadata(output),
748
+ });
749
+ await smithyClient.collectBody(output.body, context);
750
+ return contents;
751
+ };
752
+ const de_DeregisterDeviceCommand = async (output, context) => {
753
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
754
+ return de_CommandError(output, context);
685
755
  }
686
- }
687
- b.hn(resolvedHostname);
688
- b.m("DELETE").h(headers).q(query).b(body);
689
- return b.build();
690
- }, "se_DeleteEnvironmentCommand");
691
- var se_DeregisterDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
692
- const b = (0, import_core.requestBuilder)(input, context);
693
- const headers = {
694
- "content-type": "application/json"
695
- };
696
- b.bp("/deregister-device/{id}");
697
- b.p("id", () => input.id, "{id}", false);
698
- let body;
699
- body = JSON.stringify(
700
- (0, import_smithy_client.take)(input, {
701
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
702
- targetDeviceStatus: []
703
- })
704
- );
705
- let { hostname: resolvedHostname } = await context.endpoint();
706
- if (context.disableHostPrefix !== true) {
707
- resolvedHostname = "api." + resolvedHostname;
708
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
709
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
756
+ const contents = smithyClient.map({
757
+ $metadata: deserializeMetadata(output),
758
+ });
759
+ await smithyClient.collectBody(output.body, context);
760
+ return contents;
761
+ };
762
+ const de_GetDeviceCommand = async (output, context) => {
763
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
764
+ return de_CommandError(output, context);
710
765
  }
711
- }
712
- b.hn(resolvedHostname);
713
- b.m("POST").h(headers).b(body);
714
- return b.build();
715
- }, "se_DeregisterDeviceCommand");
716
- var se_GetDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
717
- const b = (0, import_core.requestBuilder)(input, context);
718
- const headers = {};
719
- b.bp("/devices/{id}");
720
- b.p("id", () => input.id, "{id}", false);
721
- let body;
722
- let { hostname: resolvedHostname } = await context.endpoint();
723
- if (context.disableHostPrefix !== true) {
724
- resolvedHostname = "api." + resolvedHostname;
725
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
726
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
766
+ const contents = smithyClient.map({
767
+ $metadata: deserializeMetadata(output),
768
+ });
769
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
770
+ const doc = smithyClient.take(data, {
771
+ device: (_) => de_Device(_),
772
+ });
773
+ Object.assign(contents, doc);
774
+ return contents;
775
+ };
776
+ const de_GetEnvironmentCommand = async (output, context) => {
777
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
778
+ return de_CommandError(output, context);
727
779
  }
728
- }
729
- b.hn(resolvedHostname);
730
- b.m("GET").h(headers).b(body);
731
- return b.build();
732
- }, "se_GetDeviceCommand");
733
- var se_GetEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
734
- const b = (0, import_core.requestBuilder)(input, context);
735
- const headers = {};
736
- b.bp("/environments/{id}");
737
- b.p("id", () => input.id, "{id}", false);
738
- let body;
739
- let { hostname: resolvedHostname } = await context.endpoint();
740
- if (context.disableHostPrefix !== true) {
741
- resolvedHostname = "api." + resolvedHostname;
742
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
743
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
780
+ const contents = smithyClient.map({
781
+ $metadata: deserializeMetadata(output),
782
+ });
783
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
784
+ const doc = smithyClient.take(data, {
785
+ environment: (_) => de_Environment(_),
786
+ });
787
+ Object.assign(contents, doc);
788
+ return contents;
789
+ };
790
+ const de_GetSoftwareSetCommand = async (output, context) => {
791
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
792
+ return de_CommandError(output, context);
744
793
  }
745
- }
746
- b.hn(resolvedHostname);
747
- b.m("GET").h(headers).b(body);
748
- return b.build();
749
- }, "se_GetEnvironmentCommand");
750
- var se_GetSoftwareSetCommand = /* @__PURE__ */ __name(async (input, context) => {
751
- const b = (0, import_core.requestBuilder)(input, context);
752
- const headers = {};
753
- b.bp("/softwaresets/{id}");
754
- b.p("id", () => input.id, "{id}", false);
755
- let body;
756
- let { hostname: resolvedHostname } = await context.endpoint();
757
- if (context.disableHostPrefix !== true) {
758
- resolvedHostname = "api." + resolvedHostname;
759
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
760
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
794
+ const contents = smithyClient.map({
795
+ $metadata: deserializeMetadata(output),
796
+ });
797
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
798
+ const doc = smithyClient.take(data, {
799
+ softwareSet: (_) => de_SoftwareSet(_),
800
+ });
801
+ Object.assign(contents, doc);
802
+ return contents;
803
+ };
804
+ const de_ListDevicesCommand = async (output, context) => {
805
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
806
+ return de_CommandError(output, context);
761
807
  }
762
- }
763
- b.hn(resolvedHostname);
764
- b.m("GET").h(headers).b(body);
765
- return b.build();
766
- }, "se_GetSoftwareSetCommand");
767
- var se_ListDevicesCommand = /* @__PURE__ */ __name(async (input, context) => {
768
- const b = (0, import_core.requestBuilder)(input, context);
769
- const headers = {};
770
- b.bp("/devices");
771
- const query = (0, import_smithy_client.map)({
772
- [_nT]: [, input[_nT]],
773
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
774
- });
775
- let body;
776
- let { hostname: resolvedHostname } = await context.endpoint();
777
- if (context.disableHostPrefix !== true) {
778
- resolvedHostname = "api." + resolvedHostname;
779
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
780
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
808
+ const contents = smithyClient.map({
809
+ $metadata: deserializeMetadata(output),
810
+ });
811
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
812
+ const doc = smithyClient.take(data, {
813
+ devices: (_) => de_DeviceList(_),
814
+ nextToken: smithyClient.expectString,
815
+ });
816
+ Object.assign(contents, doc);
817
+ return contents;
818
+ };
819
+ const de_ListEnvironmentsCommand = async (output, context) => {
820
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
821
+ return de_CommandError(output, context);
781
822
  }
782
- }
783
- b.hn(resolvedHostname);
784
- b.m("GET").h(headers).q(query).b(body);
785
- return b.build();
786
- }, "se_ListDevicesCommand");
787
- var se_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (input, context) => {
788
- const b = (0, import_core.requestBuilder)(input, context);
789
- const headers = {};
790
- b.bp("/environments");
791
- const query = (0, import_smithy_client.map)({
792
- [_nT]: [, input[_nT]],
793
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
794
- });
795
- let body;
796
- let { hostname: resolvedHostname } = await context.endpoint();
797
- if (context.disableHostPrefix !== true) {
798
- resolvedHostname = "api." + resolvedHostname;
799
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
800
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
823
+ const contents = smithyClient.map({
824
+ $metadata: deserializeMetadata(output),
825
+ });
826
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
827
+ const doc = smithyClient.take(data, {
828
+ environments: (_) => de_EnvironmentList(_),
829
+ nextToken: smithyClient.expectString,
830
+ });
831
+ Object.assign(contents, doc);
832
+ return contents;
833
+ };
834
+ const de_ListSoftwareSetsCommand = async (output, context) => {
835
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
836
+ return de_CommandError(output, context);
801
837
  }
802
- }
803
- b.hn(resolvedHostname);
804
- b.m("GET").h(headers).q(query).b(body);
805
- return b.build();
806
- }, "se_ListEnvironmentsCommand");
807
- var se_ListSoftwareSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
808
- const b = (0, import_core.requestBuilder)(input, context);
809
- const headers = {};
810
- b.bp("/softwaresets");
811
- const query = (0, import_smithy_client.map)({
812
- [_nT]: [, input[_nT]],
813
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
814
- });
815
- let body;
816
- let { hostname: resolvedHostname } = await context.endpoint();
817
- if (context.disableHostPrefix !== true) {
818
- resolvedHostname = "api." + resolvedHostname;
819
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
820
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
838
+ const contents = smithyClient.map({
839
+ $metadata: deserializeMetadata(output),
840
+ });
841
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
842
+ const doc = smithyClient.take(data, {
843
+ nextToken: smithyClient.expectString,
844
+ softwareSets: (_) => de_SoftwareSetList(_),
845
+ });
846
+ Object.assign(contents, doc);
847
+ return contents;
848
+ };
849
+ const de_ListTagsForResourceCommand = async (output, context) => {
850
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
851
+ return de_CommandError(output, context);
821
852
  }
822
- }
823
- b.hn(resolvedHostname);
824
- b.m("GET").h(headers).q(query).b(body);
825
- return b.build();
826
- }, "se_ListSoftwareSetsCommand");
827
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
828
- const b = (0, import_core.requestBuilder)(input, context);
829
- const headers = {};
830
- b.bp("/tags/{resourceArn}");
831
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
832
- let body;
833
- let { hostname: resolvedHostname } = await context.endpoint();
834
- if (context.disableHostPrefix !== true) {
835
- resolvedHostname = "api." + resolvedHostname;
836
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
837
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
853
+ const contents = smithyClient.map({
854
+ $metadata: deserializeMetadata(output),
855
+ });
856
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
857
+ const doc = smithyClient.take(data, {
858
+ tags: smithyClient._json,
859
+ });
860
+ Object.assign(contents, doc);
861
+ return contents;
862
+ };
863
+ const de_TagResourceCommand = async (output, context) => {
864
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
865
+ return de_CommandError(output, context);
838
866
  }
839
- }
840
- b.hn(resolvedHostname);
841
- b.m("GET").h(headers).b(body);
842
- return b.build();
843
- }, "se_ListTagsForResourceCommand");
844
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
845
- const b = (0, import_core.requestBuilder)(input, context);
846
- const headers = {
847
- "content-type": "application/json"
848
- };
849
- b.bp("/tags/{resourceArn}");
850
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
851
- let body;
852
- body = JSON.stringify(
853
- (0, import_smithy_client.take)(input, {
854
- tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
855
- })
856
- );
857
- let { hostname: resolvedHostname } = await context.endpoint();
858
- if (context.disableHostPrefix !== true) {
859
- resolvedHostname = "api." + resolvedHostname;
860
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
861
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
867
+ const contents = smithyClient.map({
868
+ $metadata: deserializeMetadata(output),
869
+ });
870
+ await smithyClient.collectBody(output.body, context);
871
+ return contents;
872
+ };
873
+ const de_UntagResourceCommand = async (output, context) => {
874
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
875
+ return de_CommandError(output, context);
862
876
  }
863
- }
864
- b.hn(resolvedHostname);
865
- b.m("POST").h(headers).b(body);
866
- return b.build();
867
- }, "se_TagResourceCommand");
868
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
869
- const b = (0, import_core.requestBuilder)(input, context);
870
- const headers = {};
871
- b.bp("/tags/{resourceArn}");
872
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
873
- const query = (0, import_smithy_client.map)({
874
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
875
- });
876
- let body;
877
- let { hostname: resolvedHostname } = await context.endpoint();
878
- if (context.disableHostPrefix !== true) {
879
- resolvedHostname = "api." + resolvedHostname;
880
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
881
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
877
+ const contents = smithyClient.map({
878
+ $metadata: deserializeMetadata(output),
879
+ });
880
+ await smithyClient.collectBody(output.body, context);
881
+ return contents;
882
+ };
883
+ const de_UpdateDeviceCommand = async (output, context) => {
884
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
885
+ return de_CommandError(output, context);
882
886
  }
883
- }
884
- b.hn(resolvedHostname);
885
- b.m("DELETE").h(headers).q(query).b(body);
886
- return b.build();
887
- }, "se_UntagResourceCommand");
888
- var se_UpdateDeviceCommand = /* @__PURE__ */ __name(async (input, context) => {
889
- const b = (0, import_core.requestBuilder)(input, context);
890
- const headers = {
891
- "content-type": "application/json"
892
- };
893
- b.bp("/devices/{id}");
894
- b.p("id", () => input.id, "{id}", false);
895
- let body;
896
- body = JSON.stringify(
897
- (0, import_smithy_client.take)(input, {
898
- desiredSoftwareSetId: [],
899
- name: [],
900
- softwareSetUpdateSchedule: []
901
- })
902
- );
903
- let { hostname: resolvedHostname } = await context.endpoint();
904
- if (context.disableHostPrefix !== true) {
905
- resolvedHostname = "api." + resolvedHostname;
906
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
907
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
887
+ const contents = smithyClient.map({
888
+ $metadata: deserializeMetadata(output),
889
+ });
890
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
891
+ const doc = smithyClient.take(data, {
892
+ device: (_) => de_DeviceSummary(_),
893
+ });
894
+ Object.assign(contents, doc);
895
+ return contents;
896
+ };
897
+ const de_UpdateEnvironmentCommand = async (output, context) => {
898
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
899
+ return de_CommandError(output, context);
908
900
  }
909
- }
910
- b.hn(resolvedHostname);
911
- b.m("PATCH").h(headers).b(body);
912
- return b.build();
913
- }, "se_UpdateDeviceCommand");
914
- var se_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
915
- const b = (0, import_core.requestBuilder)(input, context);
916
- const headers = {
917
- "content-type": "application/json"
918
- };
919
- b.bp("/environments/{id}");
920
- b.p("id", () => input.id, "{id}", false);
921
- let body;
922
- body = JSON.stringify(
923
- (0, import_smithy_client.take)(input, {
924
- desiredSoftwareSetId: [],
925
- desktopArn: [],
926
- desktopEndpoint: [],
927
- deviceCreationTags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "deviceCreationTags"),
928
- maintenanceWindow: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "maintenanceWindow"),
929
- name: [],
930
- softwareSetUpdateMode: [],
931
- softwareSetUpdateSchedule: []
932
- })
933
- );
934
- let { hostname: resolvedHostname } = await context.endpoint();
935
- if (context.disableHostPrefix !== true) {
936
- resolvedHostname = "api." + resolvedHostname;
937
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
938
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
901
+ const contents = smithyClient.map({
902
+ $metadata: deserializeMetadata(output),
903
+ });
904
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
905
+ const doc = smithyClient.take(data, {
906
+ environment: (_) => de_EnvironmentSummary(_),
907
+ });
908
+ Object.assign(contents, doc);
909
+ return contents;
910
+ };
911
+ const de_UpdateSoftwareSetCommand = async (output, context) => {
912
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
913
+ return de_CommandError(output, context);
939
914
  }
940
- }
941
- b.hn(resolvedHostname);
942
- b.m("PATCH").h(headers).b(body);
943
- return b.build();
944
- }, "se_UpdateEnvironmentCommand");
945
- var se_UpdateSoftwareSetCommand = /* @__PURE__ */ __name(async (input, context) => {
946
- const b = (0, import_core.requestBuilder)(input, context);
947
- const headers = {
948
- "content-type": "application/json"
949
- };
950
- b.bp("/softwaresets/{id}");
951
- b.p("id", () => input.id, "{id}", false);
952
- let body;
953
- body = JSON.stringify(
954
- (0, import_smithy_client.take)(input, {
955
- validationStatus: []
956
- })
957
- );
958
- let { hostname: resolvedHostname } = await context.endpoint();
959
- if (context.disableHostPrefix !== true) {
960
- resolvedHostname = "api." + resolvedHostname;
961
- if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
962
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
915
+ const contents = smithyClient.map({
916
+ $metadata: deserializeMetadata(output),
917
+ });
918
+ await smithyClient.collectBody(output.body, context);
919
+ return contents;
920
+ };
921
+ const de_CommandError = async (output, context) => {
922
+ const parsedOutput = {
923
+ ...output,
924
+ body: await core$1.parseJsonErrorBody(output.body, context),
925
+ };
926
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
927
+ switch (errorCode) {
928
+ case "AccessDeniedException":
929
+ case "com.amazonaws.workspacesthinclient#AccessDeniedException":
930
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
931
+ case "ConflictException":
932
+ case "com.amazonaws.workspacesthinclient#ConflictException":
933
+ throw await de_ConflictExceptionRes(parsedOutput);
934
+ case "InternalServerException":
935
+ case "com.amazonaws.workspacesthinclient#InternalServerException":
936
+ throw await de_InternalServerExceptionRes(parsedOutput);
937
+ case "ResourceNotFoundException":
938
+ case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
939
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
940
+ case "ServiceQuotaExceededException":
941
+ case "com.amazonaws.workspacesthinclient#ServiceQuotaExceededException":
942
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
943
+ case "ThrottlingException":
944
+ case "com.amazonaws.workspacesthinclient#ThrottlingException":
945
+ throw await de_ThrottlingExceptionRes(parsedOutput);
946
+ case "ValidationException":
947
+ case "com.amazonaws.workspacesthinclient#ValidationException":
948
+ throw await de_ValidationExceptionRes(parsedOutput);
949
+ default:
950
+ const parsedBody = parsedOutput.body;
951
+ return throwDefaultError({
952
+ output,
953
+ parsedBody,
954
+ errorCode,
955
+ });
963
956
  }
964
- }
965
- b.hn(resolvedHostname);
966
- b.m("PATCH").h(headers).b(body);
967
- return b.build();
968
- }, "se_UpdateSoftwareSetCommand");
969
- var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
970
- if (output.statusCode !== 201 && output.statusCode >= 300) {
971
- return de_CommandError(output, context);
972
- }
973
- const contents = (0, import_smithy_client.map)({
974
- $metadata: deserializeMetadata(output)
975
- });
976
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
977
- const doc = (0, import_smithy_client.take)(data, {
978
- environment: /* @__PURE__ */ __name((_) => de_EnvironmentSummary(_, context), "environment")
979
- });
980
- Object.assign(contents, doc);
981
- return contents;
982
- }, "de_CreateEnvironmentCommand");
983
- var de_DeleteDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
984
- if (output.statusCode !== 204 && output.statusCode >= 300) {
985
- return de_CommandError(output, context);
986
- }
987
- const contents = (0, import_smithy_client.map)({
988
- $metadata: deserializeMetadata(output)
989
- });
990
- await (0, import_smithy_client.collectBody)(output.body, context);
991
- return contents;
992
- }, "de_DeleteDeviceCommand");
993
- var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
994
- if (output.statusCode !== 204 && output.statusCode >= 300) {
995
- return de_CommandError(output, context);
996
- }
997
- const contents = (0, import_smithy_client.map)({
998
- $metadata: deserializeMetadata(output)
999
- });
1000
- await (0, import_smithy_client.collectBody)(output.body, context);
1001
- return contents;
1002
- }, "de_DeleteEnvironmentCommand");
1003
- var de_DeregisterDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
1004
- if (output.statusCode !== 202 && output.statusCode >= 300) {
1005
- return de_CommandError(output, context);
1006
- }
1007
- const contents = (0, import_smithy_client.map)({
1008
- $metadata: deserializeMetadata(output)
1009
- });
1010
- await (0, import_smithy_client.collectBody)(output.body, context);
1011
- return contents;
1012
- }, "de_DeregisterDeviceCommand");
1013
- var de_GetDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
1014
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1015
- return de_CommandError(output, context);
1016
- }
1017
- const contents = (0, import_smithy_client.map)({
1018
- $metadata: deserializeMetadata(output)
1019
- });
1020
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1021
- const doc = (0, import_smithy_client.take)(data, {
1022
- device: /* @__PURE__ */ __name((_) => de_Device(_, context), "device")
1023
- });
1024
- Object.assign(contents, doc);
1025
- return contents;
1026
- }, "de_GetDeviceCommand");
1027
- var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1028
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1029
- return de_CommandError(output, context);
1030
- }
1031
- const contents = (0, import_smithy_client.map)({
1032
- $metadata: deserializeMetadata(output)
1033
- });
1034
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1035
- const doc = (0, import_smithy_client.take)(data, {
1036
- environment: /* @__PURE__ */ __name((_) => de_Environment(_, context), "environment")
1037
- });
1038
- Object.assign(contents, doc);
1039
- return contents;
1040
- }, "de_GetEnvironmentCommand");
1041
- var de_GetSoftwareSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1042
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1043
- return de_CommandError(output, context);
1044
- }
1045
- const contents = (0, import_smithy_client.map)({
1046
- $metadata: deserializeMetadata(output)
1047
- });
1048
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1049
- const doc = (0, import_smithy_client.take)(data, {
1050
- softwareSet: /* @__PURE__ */ __name((_) => de_SoftwareSet(_, context), "softwareSet")
1051
- });
1052
- Object.assign(contents, doc);
1053
- return contents;
1054
- }, "de_GetSoftwareSetCommand");
1055
- var de_ListDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
1056
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1057
- return de_CommandError(output, context);
1058
- }
1059
- const contents = (0, import_smithy_client.map)({
1060
- $metadata: deserializeMetadata(output)
1061
- });
1062
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1063
- const doc = (0, import_smithy_client.take)(data, {
1064
- devices: /* @__PURE__ */ __name((_) => de_DeviceList(_, context), "devices"),
1065
- nextToken: import_smithy_client.expectString
1066
- });
1067
- Object.assign(contents, doc);
1068
- return contents;
1069
- }, "de_ListDevicesCommand");
1070
- var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1071
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1072
- return de_CommandError(output, context);
1073
- }
1074
- const contents = (0, import_smithy_client.map)({
1075
- $metadata: deserializeMetadata(output)
1076
- });
1077
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1078
- const doc = (0, import_smithy_client.take)(data, {
1079
- environments: /* @__PURE__ */ __name((_) => de_EnvironmentList(_, context), "environments"),
1080
- nextToken: import_smithy_client.expectString
1081
- });
1082
- Object.assign(contents, doc);
1083
- return contents;
1084
- }, "de_ListEnvironmentsCommand");
1085
- var de_ListSoftwareSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1086
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1087
- return de_CommandError(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 (0, import_core2.parseJsonBody)(output.body, context)), "body");
1093
- const doc = (0, import_smithy_client.take)(data, {
1094
- nextToken: import_smithy_client.expectString,
1095
- softwareSets: /* @__PURE__ */ __name((_) => de_SoftwareSetList(_, context), "softwareSets")
1096
- });
1097
- Object.assign(contents, doc);
1098
- return contents;
1099
- }, "de_ListSoftwareSetsCommand");
1100
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1101
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1102
- return de_CommandError(output, context);
1103
- }
1104
- const contents = (0, import_smithy_client.map)({
1105
- $metadata: deserializeMetadata(output)
1106
- });
1107
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1108
- const doc = (0, import_smithy_client.take)(data, {
1109
- tags: import_smithy_client._json
1110
- });
1111
- Object.assign(contents, doc);
1112
- return contents;
1113
- }, "de_ListTagsForResourceCommand");
1114
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1115
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1116
- return de_CommandError(output, context);
1117
- }
1118
- const contents = (0, import_smithy_client.map)({
1119
- $metadata: deserializeMetadata(output)
1120
- });
1121
- await (0, import_smithy_client.collectBody)(output.body, context);
1122
- return contents;
1123
- }, "de_TagResourceCommand");
1124
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1125
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1126
- return de_CommandError(output, context);
1127
- }
1128
- const contents = (0, import_smithy_client.map)({
1129
- $metadata: deserializeMetadata(output)
1130
- });
1131
- await (0, import_smithy_client.collectBody)(output.body, context);
1132
- return contents;
1133
- }, "de_UntagResourceCommand");
1134
- var de_UpdateDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
1135
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1136
- return de_CommandError(output, context);
1137
- }
1138
- const contents = (0, import_smithy_client.map)({
1139
- $metadata: deserializeMetadata(output)
1140
- });
1141
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1142
- const doc = (0, import_smithy_client.take)(data, {
1143
- device: /* @__PURE__ */ __name((_) => de_DeviceSummary(_, context), "device")
1144
- });
1145
- Object.assign(contents, doc);
1146
- return contents;
1147
- }, "de_UpdateDeviceCommand");
1148
- var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1149
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1150
- return de_CommandError(output, context);
1151
- }
1152
- const contents = (0, import_smithy_client.map)({
1153
- $metadata: deserializeMetadata(output)
1154
- });
1155
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1156
- const doc = (0, import_smithy_client.take)(data, {
1157
- environment: /* @__PURE__ */ __name((_) => de_EnvironmentSummary(_, context), "environment")
1158
- });
1159
- Object.assign(contents, doc);
1160
- return contents;
1161
- }, "de_UpdateEnvironmentCommand");
1162
- var de_UpdateSoftwareSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1163
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1164
- return de_CommandError(output, context);
1165
- }
1166
- const contents = (0, import_smithy_client.map)({
1167
- $metadata: deserializeMetadata(output)
1168
- });
1169
- await (0, import_smithy_client.collectBody)(output.body, context);
1170
- return contents;
1171
- }, "de_UpdateSoftwareSetCommand");
1172
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1173
- const parsedOutput = {
1174
- ...output,
1175
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1176
- };
1177
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1178
- switch (errorCode) {
1179
- case "AccessDeniedException":
1180
- case "com.amazonaws.workspacesthinclient#AccessDeniedException":
1181
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1182
- case "ConflictException":
1183
- case "com.amazonaws.workspacesthinclient#ConflictException":
1184
- throw await de_ConflictExceptionRes(parsedOutput, context);
1185
- case "InternalServerException":
1186
- case "com.amazonaws.workspacesthinclient#InternalServerException":
1187
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1188
- case "ResourceNotFoundException":
1189
- case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
1190
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1191
- case "ServiceQuotaExceededException":
1192
- case "com.amazonaws.workspacesthinclient#ServiceQuotaExceededException":
1193
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1194
- case "ThrottlingException":
1195
- case "com.amazonaws.workspacesthinclient#ThrottlingException":
1196
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1197
- case "ValidationException":
1198
- case "com.amazonaws.workspacesthinclient#ValidationException":
1199
- throw await de_ValidationExceptionRes(parsedOutput, context);
1200
- default:
1201
- const parsedBody = parsedOutput.body;
1202
- return throwDefaultError({
1203
- output,
1204
- parsedBody,
1205
- errorCode
1206
- });
1207
- }
1208
- }, "de_CommandError");
1209
- var throwDefaultError = (0, import_smithy_client.withBaseException)(WorkSpacesThinClientServiceException);
1210
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1211
- const contents = (0, import_smithy_client.map)({});
1212
- const data = parsedOutput.body;
1213
- const doc = (0, import_smithy_client.take)(data, {
1214
- message: import_smithy_client.expectString
1215
- });
1216
- Object.assign(contents, doc);
1217
- const exception = new AccessDeniedException({
1218
- $metadata: deserializeMetadata(parsedOutput),
1219
- ...contents
1220
- });
1221
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1222
- }, "de_AccessDeniedExceptionRes");
1223
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1224
- const contents = (0, import_smithy_client.map)({});
1225
- const data = parsedOutput.body;
1226
- const doc = (0, import_smithy_client.take)(data, {
1227
- message: import_smithy_client.expectString,
1228
- resourceId: import_smithy_client.expectString,
1229
- resourceType: import_smithy_client.expectString
1230
- });
1231
- Object.assign(contents, doc);
1232
- const exception = new ConflictException({
1233
- $metadata: deserializeMetadata(parsedOutput),
1234
- ...contents
1235
- });
1236
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1237
- }, "de_ConflictExceptionRes");
1238
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1239
- const contents = (0, import_smithy_client.map)({
1240
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1241
- });
1242
- const data = parsedOutput.body;
1243
- const doc = (0, import_smithy_client.take)(data, {
1244
- message: import_smithy_client.expectString
1245
- });
1246
- Object.assign(contents, doc);
1247
- const exception = new InternalServerException({
1248
- $metadata: deserializeMetadata(parsedOutput),
1249
- ...contents
1250
- });
1251
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1252
- }, "de_InternalServerExceptionRes");
1253
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1254
- const contents = (0, import_smithy_client.map)({});
1255
- const data = parsedOutput.body;
1256
- const doc = (0, import_smithy_client.take)(data, {
1257
- message: import_smithy_client.expectString,
1258
- resourceId: import_smithy_client.expectString,
1259
- resourceType: import_smithy_client.expectString
1260
- });
1261
- Object.assign(contents, doc);
1262
- const exception = new ResourceNotFoundException({
1263
- $metadata: deserializeMetadata(parsedOutput),
1264
- ...contents
1265
- });
1266
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1267
- }, "de_ResourceNotFoundExceptionRes");
1268
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1269
- const contents = (0, import_smithy_client.map)({});
1270
- const data = parsedOutput.body;
1271
- const doc = (0, import_smithy_client.take)(data, {
1272
- message: import_smithy_client.expectString,
1273
- quotaCode: import_smithy_client.expectString,
1274
- resourceId: import_smithy_client.expectString,
1275
- resourceType: import_smithy_client.expectString,
1276
- serviceCode: import_smithy_client.expectString
1277
- });
1278
- Object.assign(contents, doc);
1279
- const exception = new ServiceQuotaExceededException({
1280
- $metadata: deserializeMetadata(parsedOutput),
1281
- ...contents
1282
- });
1283
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1284
- }, "de_ServiceQuotaExceededExceptionRes");
1285
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1286
- const contents = (0, import_smithy_client.map)({
1287
- [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1288
- });
1289
- const data = parsedOutput.body;
1290
- const doc = (0, import_smithy_client.take)(data, {
1291
- message: import_smithy_client.expectString,
1292
- quotaCode: import_smithy_client.expectString,
1293
- serviceCode: import_smithy_client.expectString
1294
- });
1295
- Object.assign(contents, doc);
1296
- const exception = new ThrottlingException({
1297
- $metadata: deserializeMetadata(parsedOutput),
1298
- ...contents
1299
- });
1300
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1301
- }, "de_ThrottlingExceptionRes");
1302
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1303
- const contents = (0, import_smithy_client.map)({});
1304
- const data = parsedOutput.body;
1305
- const doc = (0, import_smithy_client.take)(data, {
1306
- fieldList: import_smithy_client._json,
1307
- message: import_smithy_client.expectString,
1308
- reason: import_smithy_client.expectString
1309
- });
1310
- Object.assign(contents, doc);
1311
- const exception = new ValidationException({
1312
- $metadata: deserializeMetadata(parsedOutput),
1313
- ...contents
1314
- });
1315
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1316
- }, "de_ValidationExceptionRes");
1317
- var de_Device = /* @__PURE__ */ __name((output, context) => {
1318
- return (0, import_smithy_client.take)(output, {
1319
- arn: import_smithy_client.expectString,
1320
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1321
- currentSoftwareSetId: import_smithy_client.expectString,
1322
- currentSoftwareSetVersion: import_smithy_client.expectString,
1323
- desiredSoftwareSetId: import_smithy_client.expectString,
1324
- environmentId: import_smithy_client.expectString,
1325
- id: import_smithy_client.expectString,
1326
- kmsKeyArn: import_smithy_client.expectString,
1327
- lastConnectedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastConnectedAt"),
1328
- lastPostureAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastPostureAt"),
1329
- lastUserId: import_smithy_client.expectString,
1330
- model: import_smithy_client.expectString,
1331
- name: import_smithy_client.expectString,
1332
- pendingSoftwareSetId: import_smithy_client.expectString,
1333
- pendingSoftwareSetVersion: import_smithy_client.expectString,
1334
- serialNumber: import_smithy_client.expectString,
1335
- softwareSetComplianceStatus: import_smithy_client.expectString,
1336
- softwareSetUpdateSchedule: import_smithy_client.expectString,
1337
- softwareSetUpdateStatus: import_smithy_client.expectString,
1338
- status: import_smithy_client.expectString,
1339
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
1340
- });
1341
- }, "de_Device");
1342
- var de_DeviceList = /* @__PURE__ */ __name((output, context) => {
1343
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1344
- return de_DeviceSummary(entry, context);
1345
- });
1346
- return retVal;
1347
- }, "de_DeviceList");
1348
- var de_DeviceSummary = /* @__PURE__ */ __name((output, context) => {
1349
- return (0, import_smithy_client.take)(output, {
1350
- arn: import_smithy_client.expectString,
1351
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1352
- currentSoftwareSetId: import_smithy_client.expectString,
1353
- desiredSoftwareSetId: import_smithy_client.expectString,
1354
- environmentId: import_smithy_client.expectString,
1355
- id: import_smithy_client.expectString,
1356
- lastConnectedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastConnectedAt"),
1357
- lastPostureAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastPostureAt"),
1358
- lastUserId: import_smithy_client.expectString,
1359
- model: import_smithy_client.expectString,
1360
- name: import_smithy_client.expectString,
1361
- pendingSoftwareSetId: import_smithy_client.expectString,
1362
- serialNumber: import_smithy_client.expectString,
1363
- softwareSetUpdateSchedule: import_smithy_client.expectString,
1364
- status: import_smithy_client.expectString,
1365
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
1366
- });
1367
- }, "de_DeviceSummary");
1368
- var de_Environment = /* @__PURE__ */ __name((output, context) => {
1369
- return (0, import_smithy_client.take)(output, {
1370
- activationCode: import_smithy_client.expectString,
1371
- arn: import_smithy_client.expectString,
1372
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1373
- desiredSoftwareSetId: import_smithy_client.expectString,
1374
- desktopArn: import_smithy_client.expectString,
1375
- desktopEndpoint: import_smithy_client.expectString,
1376
- desktopType: import_smithy_client.expectString,
1377
- deviceCreationTags: import_smithy_client._json,
1378
- id: import_smithy_client.expectString,
1379
- kmsKeyArn: import_smithy_client.expectString,
1380
- maintenanceWindow: import_smithy_client._json,
1381
- name: import_smithy_client.expectString,
1382
- pendingSoftwareSetId: import_smithy_client.expectString,
1383
- pendingSoftwareSetVersion: import_smithy_client.expectString,
1384
- registeredDevicesCount: import_smithy_client.expectInt32,
1385
- softwareSetComplianceStatus: import_smithy_client.expectString,
1386
- softwareSetUpdateMode: import_smithy_client.expectString,
1387
- softwareSetUpdateSchedule: import_smithy_client.expectString,
1388
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
1389
- });
1390
- }, "de_Environment");
1391
- var de_EnvironmentList = /* @__PURE__ */ __name((output, context) => {
1392
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1393
- return de_EnvironmentSummary(entry, context);
1394
- });
1395
- return retVal;
1396
- }, "de_EnvironmentList");
1397
- var de_EnvironmentSummary = /* @__PURE__ */ __name((output, context) => {
1398
- return (0, import_smithy_client.take)(output, {
1399
- activationCode: import_smithy_client.expectString,
1400
- arn: import_smithy_client.expectString,
1401
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1402
- desiredSoftwareSetId: import_smithy_client.expectString,
1403
- desktopArn: import_smithy_client.expectString,
1404
- desktopEndpoint: import_smithy_client.expectString,
1405
- desktopType: import_smithy_client.expectString,
1406
- id: import_smithy_client.expectString,
1407
- maintenanceWindow: import_smithy_client._json,
1408
- name: import_smithy_client.expectString,
1409
- pendingSoftwareSetId: import_smithy_client.expectString,
1410
- softwareSetUpdateMode: import_smithy_client.expectString,
1411
- softwareSetUpdateSchedule: import_smithy_client.expectString,
1412
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
1413
- });
1414
- }, "de_EnvironmentSummary");
1415
- var de_SoftwareSet = /* @__PURE__ */ __name((output, context) => {
1416
- return (0, import_smithy_client.take)(output, {
1417
- arn: import_smithy_client.expectString,
1418
- id: import_smithy_client.expectString,
1419
- releasedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "releasedAt"),
1420
- software: import_smithy_client._json,
1421
- supportedUntil: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "supportedUntil"),
1422
- validationStatus: import_smithy_client.expectString,
1423
- version: import_smithy_client.expectString
1424
- });
1425
- }, "de_SoftwareSet");
1426
- var de_SoftwareSetList = /* @__PURE__ */ __name((output, context) => {
1427
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1428
- return de_SoftwareSetSummary(entry, context);
1429
- });
1430
- return retVal;
1431
- }, "de_SoftwareSetList");
1432
- var de_SoftwareSetSummary = /* @__PURE__ */ __name((output, context) => {
1433
- return (0, import_smithy_client.take)(output, {
1434
- arn: import_smithy_client.expectString,
1435
- id: import_smithy_client.expectString,
1436
- releasedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "releasedAt"),
1437
- supportedUntil: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "supportedUntil"),
1438
- validationStatus: import_smithy_client.expectString,
1439
- version: import_smithy_client.expectString
1440
- });
1441
- }, "de_SoftwareSetSummary");
1442
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1443
- httpStatusCode: output.statusCode,
1444
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1445
- extendedRequestId: output.headers["x-amz-id-2"],
1446
- cfId: output.headers["x-amz-cf-id"]
1447
- }), "deserializeMetadata");
1448
- var _cT = "clientToken";
1449
- var _mR = "maxResults";
1450
- var _nT = "nextToken";
1451
- var _rAS = "retryAfterSeconds";
1452
- var _ra = "retry-after";
1453
- var _tK = "tagKeys";
1454
-
1455
- // src/commands/CreateEnvironmentCommand.ts
1456
- var CreateEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1457
- return [
1458
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1459
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1460
- ];
1461
- }).s("ThinClient", "CreateEnvironment", {}).n("WorkSpacesThinClientClient", "CreateEnvironmentCommand").f(CreateEnvironmentRequestFilterSensitiveLog, CreateEnvironmentResponseFilterSensitiveLog).ser(se_CreateEnvironmentCommand).de(de_CreateEnvironmentCommand).build() {
1462
- static {
1463
- __name(this, "CreateEnvironmentCommand");
1464
- }
1465
957
  };
1466
-
1467
- // src/commands/DeleteDeviceCommand.ts
1468
-
1469
-
1470
-
1471
- var DeleteDeviceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1472
- return [
1473
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1474
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1475
- ];
1476
- }).s("ThinClient", "DeleteDevice", {}).n("WorkSpacesThinClientClient", "DeleteDeviceCommand").f(void 0, void 0).ser(se_DeleteDeviceCommand).de(de_DeleteDeviceCommand).build() {
1477
- static {
1478
- __name(this, "DeleteDeviceCommand");
1479
- }
958
+ const throwDefaultError = smithyClient.withBaseException(WorkSpacesThinClientServiceException);
959
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
960
+ const contents = smithyClient.map({});
961
+ const data = parsedOutput.body;
962
+ const doc = smithyClient.take(data, {
963
+ message: smithyClient.expectString,
964
+ });
965
+ Object.assign(contents, doc);
966
+ const exception = new AccessDeniedException({
967
+ $metadata: deserializeMetadata(parsedOutput),
968
+ ...contents,
969
+ });
970
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1480
971
  };
1481
-
1482
- // src/commands/DeleteEnvironmentCommand.ts
1483
-
1484
-
1485
-
1486
- var DeleteEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1487
- return [
1488
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1489
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1490
- ];
1491
- }).s("ThinClient", "DeleteEnvironment", {}).n("WorkSpacesThinClientClient", "DeleteEnvironmentCommand").f(void 0, void 0).ser(se_DeleteEnvironmentCommand).de(de_DeleteEnvironmentCommand).build() {
1492
- static {
1493
- __name(this, "DeleteEnvironmentCommand");
1494
- }
972
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
973
+ const contents = smithyClient.map({});
974
+ const data = parsedOutput.body;
975
+ const doc = smithyClient.take(data, {
976
+ message: smithyClient.expectString,
977
+ resourceId: smithyClient.expectString,
978
+ resourceType: smithyClient.expectString,
979
+ });
980
+ Object.assign(contents, doc);
981
+ const exception = new ConflictException({
982
+ $metadata: deserializeMetadata(parsedOutput),
983
+ ...contents,
984
+ });
985
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1495
986
  };
1496
-
1497
- // src/commands/DeregisterDeviceCommand.ts
1498
-
1499
-
1500
-
1501
- var DeregisterDeviceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1502
- return [
1503
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1504
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1505
- ];
1506
- }).s("ThinClient", "DeregisterDevice", {}).n("WorkSpacesThinClientClient", "DeregisterDeviceCommand").f(void 0, void 0).ser(se_DeregisterDeviceCommand).de(de_DeregisterDeviceCommand).build() {
1507
- static {
1508
- __name(this, "DeregisterDeviceCommand");
1509
- }
987
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
988
+ const contents = smithyClient.map({
989
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
990
+ });
991
+ const data = parsedOutput.body;
992
+ const doc = smithyClient.take(data, {
993
+ message: smithyClient.expectString,
994
+ });
995
+ Object.assign(contents, doc);
996
+ const exception = new InternalServerException({
997
+ $metadata: deserializeMetadata(parsedOutput),
998
+ ...contents,
999
+ });
1000
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1510
1001
  };
1511
-
1512
- // src/commands/GetDeviceCommand.ts
1513
-
1514
-
1515
-
1516
- var GetDeviceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1517
- return [
1518
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1519
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1520
- ];
1521
- }).s("ThinClient", "GetDevice", {}).n("WorkSpacesThinClientClient", "GetDeviceCommand").f(void 0, GetDeviceResponseFilterSensitiveLog).ser(se_GetDeviceCommand).de(de_GetDeviceCommand).build() {
1522
- static {
1523
- __name(this, "GetDeviceCommand");
1524
- }
1002
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1003
+ const contents = smithyClient.map({});
1004
+ const data = parsedOutput.body;
1005
+ const doc = smithyClient.take(data, {
1006
+ message: smithyClient.expectString,
1007
+ resourceId: smithyClient.expectString,
1008
+ resourceType: smithyClient.expectString,
1009
+ });
1010
+ Object.assign(contents, doc);
1011
+ const exception = new ResourceNotFoundException({
1012
+ $metadata: deserializeMetadata(parsedOutput),
1013
+ ...contents,
1014
+ });
1015
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1525
1016
  };
1526
-
1527
- // src/commands/GetEnvironmentCommand.ts
1528
-
1529
-
1530
-
1531
- var GetEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1532
- return [
1533
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1534
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1535
- ];
1536
- }).s("ThinClient", "GetEnvironment", {}).n("WorkSpacesThinClientClient", "GetEnvironmentCommand").f(void 0, GetEnvironmentResponseFilterSensitiveLog).ser(se_GetEnvironmentCommand).de(de_GetEnvironmentCommand).build() {
1537
- static {
1538
- __name(this, "GetEnvironmentCommand");
1539
- }
1017
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1018
+ const contents = smithyClient.map({});
1019
+ const data = parsedOutput.body;
1020
+ const doc = smithyClient.take(data, {
1021
+ message: smithyClient.expectString,
1022
+ quotaCode: smithyClient.expectString,
1023
+ resourceId: smithyClient.expectString,
1024
+ resourceType: smithyClient.expectString,
1025
+ serviceCode: smithyClient.expectString,
1026
+ });
1027
+ Object.assign(contents, doc);
1028
+ const exception = new ServiceQuotaExceededException({
1029
+ $metadata: deserializeMetadata(parsedOutput),
1030
+ ...contents,
1031
+ });
1032
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1540
1033
  };
1541
-
1542
- // src/commands/GetSoftwareSetCommand.ts
1543
-
1544
-
1545
-
1546
- var GetSoftwareSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1547
- return [
1548
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1549
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1550
- ];
1551
- }).s("ThinClient", "GetSoftwareSet", {}).n("WorkSpacesThinClientClient", "GetSoftwareSetCommand").f(void 0, void 0).ser(se_GetSoftwareSetCommand).de(de_GetSoftwareSetCommand).build() {
1552
- static {
1553
- __name(this, "GetSoftwareSetCommand");
1554
- }
1034
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1035
+ const contents = smithyClient.map({
1036
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
1037
+ });
1038
+ const data = parsedOutput.body;
1039
+ const doc = smithyClient.take(data, {
1040
+ message: smithyClient.expectString,
1041
+ quotaCode: smithyClient.expectString,
1042
+ serviceCode: smithyClient.expectString,
1043
+ });
1044
+ Object.assign(contents, doc);
1045
+ const exception = new ThrottlingException({
1046
+ $metadata: deserializeMetadata(parsedOutput),
1047
+ ...contents,
1048
+ });
1049
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1555
1050
  };
1556
-
1557
- // src/commands/ListDevicesCommand.ts
1558
-
1559
-
1560
-
1561
- var ListDevicesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1562
- return [
1563
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1564
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1565
- ];
1566
- }).s("ThinClient", "ListDevices", {}).n("WorkSpacesThinClientClient", "ListDevicesCommand").f(void 0, ListDevicesResponseFilterSensitiveLog).ser(se_ListDevicesCommand).de(de_ListDevicesCommand).build() {
1567
- static {
1568
- __name(this, "ListDevicesCommand");
1569
- }
1051
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1052
+ const contents = smithyClient.map({});
1053
+ const data = parsedOutput.body;
1054
+ const doc = smithyClient.take(data, {
1055
+ fieldList: smithyClient._json,
1056
+ message: smithyClient.expectString,
1057
+ reason: smithyClient.expectString,
1058
+ });
1059
+ Object.assign(contents, doc);
1060
+ const exception = new ValidationException({
1061
+ $metadata: deserializeMetadata(parsedOutput),
1062
+ ...contents,
1063
+ });
1064
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1570
1065
  };
1571
-
1572
- // src/commands/ListEnvironmentsCommand.ts
1573
-
1574
-
1575
-
1576
- var ListEnvironmentsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1577
- return [
1578
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1579
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1580
- ];
1581
- }).s("ThinClient", "ListEnvironments", {}).n("WorkSpacesThinClientClient", "ListEnvironmentsCommand").f(void 0, ListEnvironmentsResponseFilterSensitiveLog).ser(se_ListEnvironmentsCommand).de(de_ListEnvironmentsCommand).build() {
1582
- static {
1583
- __name(this, "ListEnvironmentsCommand");
1584
- }
1066
+ const de_Device = (output, context) => {
1067
+ return smithyClient.take(output, {
1068
+ arn: smithyClient.expectString,
1069
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1070
+ currentSoftwareSetId: smithyClient.expectString,
1071
+ currentSoftwareSetVersion: smithyClient.expectString,
1072
+ desiredSoftwareSetId: smithyClient.expectString,
1073
+ environmentId: smithyClient.expectString,
1074
+ id: smithyClient.expectString,
1075
+ kmsKeyArn: smithyClient.expectString,
1076
+ lastConnectedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1077
+ lastPostureAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1078
+ lastUserId: smithyClient.expectString,
1079
+ model: smithyClient.expectString,
1080
+ name: smithyClient.expectString,
1081
+ pendingSoftwareSetId: smithyClient.expectString,
1082
+ pendingSoftwareSetVersion: smithyClient.expectString,
1083
+ serialNumber: smithyClient.expectString,
1084
+ softwareSetComplianceStatus: smithyClient.expectString,
1085
+ softwareSetUpdateSchedule: smithyClient.expectString,
1086
+ softwareSetUpdateStatus: smithyClient.expectString,
1087
+ status: smithyClient.expectString,
1088
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1089
+ });
1585
1090
  };
1586
-
1587
- // src/commands/ListSoftwareSetsCommand.ts
1588
-
1589
-
1590
-
1591
- var ListSoftwareSetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1592
- return [
1593
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1594
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1595
- ];
1596
- }).s("ThinClient", "ListSoftwareSets", {}).n("WorkSpacesThinClientClient", "ListSoftwareSetsCommand").f(void 0, void 0).ser(se_ListSoftwareSetsCommand).de(de_ListSoftwareSetsCommand).build() {
1597
- static {
1598
- __name(this, "ListSoftwareSetsCommand");
1599
- }
1091
+ const de_DeviceList = (output, context) => {
1092
+ const retVal = (output || [])
1093
+ .filter((e) => e != null)
1094
+ .map((entry) => {
1095
+ return de_DeviceSummary(entry);
1096
+ });
1097
+ return retVal;
1600
1098
  };
1601
-
1602
- // src/commands/ListTagsForResourceCommand.ts
1603
-
1604
-
1605
-
1606
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1607
- return [
1608
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1609
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1610
- ];
1611
- }).s("ThinClient", "ListTagsForResource", {}).n("WorkSpacesThinClientClient", "ListTagsForResourceCommand").f(void 0, ListTagsForResourceResponseFilterSensitiveLog).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1612
- static {
1613
- __name(this, "ListTagsForResourceCommand");
1614
- }
1099
+ const de_DeviceSummary = (output, context) => {
1100
+ return smithyClient.take(output, {
1101
+ arn: smithyClient.expectString,
1102
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1103
+ currentSoftwareSetId: smithyClient.expectString,
1104
+ desiredSoftwareSetId: smithyClient.expectString,
1105
+ environmentId: smithyClient.expectString,
1106
+ id: smithyClient.expectString,
1107
+ lastConnectedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1108
+ lastPostureAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1109
+ lastUserId: smithyClient.expectString,
1110
+ model: smithyClient.expectString,
1111
+ name: smithyClient.expectString,
1112
+ pendingSoftwareSetId: smithyClient.expectString,
1113
+ serialNumber: smithyClient.expectString,
1114
+ softwareSetUpdateSchedule: smithyClient.expectString,
1115
+ status: smithyClient.expectString,
1116
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1117
+ });
1615
1118
  };
1616
-
1617
- // src/commands/TagResourceCommand.ts
1618
-
1619
-
1620
-
1621
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1622
- return [
1623
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1624
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1625
- ];
1626
- }).s("ThinClient", "TagResource", {}).n("WorkSpacesThinClientClient", "TagResourceCommand").f(TagResourceRequestFilterSensitiveLog, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1627
- static {
1628
- __name(this, "TagResourceCommand");
1629
- }
1119
+ const de_Environment = (output, context) => {
1120
+ return smithyClient.take(output, {
1121
+ activationCode: smithyClient.expectString,
1122
+ arn: smithyClient.expectString,
1123
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1124
+ desiredSoftwareSetId: smithyClient.expectString,
1125
+ desktopArn: smithyClient.expectString,
1126
+ desktopEndpoint: smithyClient.expectString,
1127
+ desktopType: smithyClient.expectString,
1128
+ deviceCreationTags: smithyClient._json,
1129
+ id: smithyClient.expectString,
1130
+ kmsKeyArn: smithyClient.expectString,
1131
+ maintenanceWindow: smithyClient._json,
1132
+ name: smithyClient.expectString,
1133
+ pendingSoftwareSetId: smithyClient.expectString,
1134
+ pendingSoftwareSetVersion: smithyClient.expectString,
1135
+ registeredDevicesCount: smithyClient.expectInt32,
1136
+ softwareSetComplianceStatus: smithyClient.expectString,
1137
+ softwareSetUpdateMode: smithyClient.expectString,
1138
+ softwareSetUpdateSchedule: smithyClient.expectString,
1139
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1140
+ });
1630
1141
  };
1631
-
1632
- // src/commands/UntagResourceCommand.ts
1633
-
1634
-
1635
-
1636
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1637
- return [
1638
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1639
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1640
- ];
1641
- }).s("ThinClient", "UntagResource", {}).n("WorkSpacesThinClientClient", "UntagResourceCommand").f(UntagResourceRequestFilterSensitiveLog, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1642
- static {
1643
- __name(this, "UntagResourceCommand");
1644
- }
1142
+ const de_EnvironmentList = (output, context) => {
1143
+ const retVal = (output || [])
1144
+ .filter((e) => e != null)
1145
+ .map((entry) => {
1146
+ return de_EnvironmentSummary(entry);
1147
+ });
1148
+ return retVal;
1645
1149
  };
1646
-
1647
- // src/commands/UpdateDeviceCommand.ts
1648
-
1649
-
1650
-
1651
- var UpdateDeviceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1652
- return [
1653
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1654
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1655
- ];
1656
- }).s("ThinClient", "UpdateDevice", {}).n("WorkSpacesThinClientClient", "UpdateDeviceCommand").f(UpdateDeviceRequestFilterSensitiveLog, UpdateDeviceResponseFilterSensitiveLog).ser(se_UpdateDeviceCommand).de(de_UpdateDeviceCommand).build() {
1657
- static {
1658
- __name(this, "UpdateDeviceCommand");
1659
- }
1150
+ const de_EnvironmentSummary = (output, context) => {
1151
+ return smithyClient.take(output, {
1152
+ activationCode: smithyClient.expectString,
1153
+ arn: smithyClient.expectString,
1154
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1155
+ desiredSoftwareSetId: smithyClient.expectString,
1156
+ desktopArn: smithyClient.expectString,
1157
+ desktopEndpoint: smithyClient.expectString,
1158
+ desktopType: smithyClient.expectString,
1159
+ id: smithyClient.expectString,
1160
+ maintenanceWindow: smithyClient._json,
1161
+ name: smithyClient.expectString,
1162
+ pendingSoftwareSetId: smithyClient.expectString,
1163
+ softwareSetUpdateMode: smithyClient.expectString,
1164
+ softwareSetUpdateSchedule: smithyClient.expectString,
1165
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1166
+ });
1660
1167
  };
1661
-
1662
- // src/commands/UpdateEnvironmentCommand.ts
1663
-
1664
-
1665
-
1666
- var UpdateEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1667
- return [
1668
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1669
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1670
- ];
1671
- }).s("ThinClient", "UpdateEnvironment", {}).n("WorkSpacesThinClientClient", "UpdateEnvironmentCommand").f(UpdateEnvironmentRequestFilterSensitiveLog, UpdateEnvironmentResponseFilterSensitiveLog).ser(se_UpdateEnvironmentCommand).de(de_UpdateEnvironmentCommand).build() {
1672
- static {
1673
- __name(this, "UpdateEnvironmentCommand");
1674
- }
1168
+ const de_SoftwareSet = (output, context) => {
1169
+ return smithyClient.take(output, {
1170
+ arn: smithyClient.expectString,
1171
+ id: smithyClient.expectString,
1172
+ releasedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1173
+ software: smithyClient._json,
1174
+ supportedUntil: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1175
+ validationStatus: smithyClient.expectString,
1176
+ version: smithyClient.expectString,
1177
+ });
1675
1178
  };
1676
-
1677
- // src/commands/UpdateSoftwareSetCommand.ts
1678
-
1679
-
1680
-
1681
- var UpdateSoftwareSetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1682
- return [
1683
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1684
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1685
- ];
1686
- }).s("ThinClient", "UpdateSoftwareSet", {}).n("WorkSpacesThinClientClient", "UpdateSoftwareSetCommand").f(void 0, void 0).ser(se_UpdateSoftwareSetCommand).de(de_UpdateSoftwareSetCommand).build() {
1687
- static {
1688
- __name(this, "UpdateSoftwareSetCommand");
1689
- }
1179
+ const de_SoftwareSetList = (output, context) => {
1180
+ const retVal = (output || [])
1181
+ .filter((e) => e != null)
1182
+ .map((entry) => {
1183
+ return de_SoftwareSetSummary(entry);
1184
+ });
1185
+ return retVal;
1690
1186
  };
1187
+ const de_SoftwareSetSummary = (output, context) => {
1188
+ return smithyClient.take(output, {
1189
+ arn: smithyClient.expectString,
1190
+ id: smithyClient.expectString,
1191
+ releasedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1192
+ supportedUntil: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1193
+ validationStatus: smithyClient.expectString,
1194
+ version: smithyClient.expectString,
1195
+ });
1196
+ };
1197
+ const deserializeMetadata = (output) => ({
1198
+ httpStatusCode: output.statusCode,
1199
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1200
+ extendedRequestId: output.headers["x-amz-id-2"],
1201
+ cfId: output.headers["x-amz-cf-id"],
1202
+ });
1203
+ const _cT = "clientToken";
1204
+ const _mR = "maxResults";
1205
+ const _nT = "nextToken";
1206
+ const _rAS = "retryAfterSeconds";
1207
+ const _ra = "retry-after";
1208
+ const _tK = "tagKeys";
1209
+
1210
+ class CreateEnvironmentCommand extends smithyClient.Command
1211
+ .classBuilder()
1212
+ .ep(commonParams)
1213
+ .m(function (Command, cs, config, o) {
1214
+ return [
1215
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1216
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1217
+ ];
1218
+ })
1219
+ .s("ThinClient", "CreateEnvironment", {})
1220
+ .n("WorkSpacesThinClientClient", "CreateEnvironmentCommand")
1221
+ .f(CreateEnvironmentRequestFilterSensitiveLog, CreateEnvironmentResponseFilterSensitiveLog)
1222
+ .ser(se_CreateEnvironmentCommand)
1223
+ .de(de_CreateEnvironmentCommand)
1224
+ .build() {
1225
+ }
1226
+
1227
+ class DeleteDeviceCommand extends smithyClient.Command
1228
+ .classBuilder()
1229
+ .ep(commonParams)
1230
+ .m(function (Command, cs, config, o) {
1231
+ return [
1232
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1233
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1234
+ ];
1235
+ })
1236
+ .s("ThinClient", "DeleteDevice", {})
1237
+ .n("WorkSpacesThinClientClient", "DeleteDeviceCommand")
1238
+ .f(void 0, void 0)
1239
+ .ser(se_DeleteDeviceCommand)
1240
+ .de(de_DeleteDeviceCommand)
1241
+ .build() {
1242
+ }
1243
+
1244
+ class DeleteEnvironmentCommand extends smithyClient.Command
1245
+ .classBuilder()
1246
+ .ep(commonParams)
1247
+ .m(function (Command, cs, config, o) {
1248
+ return [
1249
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1250
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1251
+ ];
1252
+ })
1253
+ .s("ThinClient", "DeleteEnvironment", {})
1254
+ .n("WorkSpacesThinClientClient", "DeleteEnvironmentCommand")
1255
+ .f(void 0, void 0)
1256
+ .ser(se_DeleteEnvironmentCommand)
1257
+ .de(de_DeleteEnvironmentCommand)
1258
+ .build() {
1259
+ }
1260
+
1261
+ class DeregisterDeviceCommand extends smithyClient.Command
1262
+ .classBuilder()
1263
+ .ep(commonParams)
1264
+ .m(function (Command, cs, config, o) {
1265
+ return [
1266
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1267
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1268
+ ];
1269
+ })
1270
+ .s("ThinClient", "DeregisterDevice", {})
1271
+ .n("WorkSpacesThinClientClient", "DeregisterDeviceCommand")
1272
+ .f(void 0, void 0)
1273
+ .ser(se_DeregisterDeviceCommand)
1274
+ .de(de_DeregisterDeviceCommand)
1275
+ .build() {
1276
+ }
1277
+
1278
+ class GetDeviceCommand extends smithyClient.Command
1279
+ .classBuilder()
1280
+ .ep(commonParams)
1281
+ .m(function (Command, cs, config, o) {
1282
+ return [
1283
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1284
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1285
+ ];
1286
+ })
1287
+ .s("ThinClient", "GetDevice", {})
1288
+ .n("WorkSpacesThinClientClient", "GetDeviceCommand")
1289
+ .f(void 0, GetDeviceResponseFilterSensitiveLog)
1290
+ .ser(se_GetDeviceCommand)
1291
+ .de(de_GetDeviceCommand)
1292
+ .build() {
1293
+ }
1294
+
1295
+ class GetEnvironmentCommand extends smithyClient.Command
1296
+ .classBuilder()
1297
+ .ep(commonParams)
1298
+ .m(function (Command, cs, config, o) {
1299
+ return [
1300
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1301
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1302
+ ];
1303
+ })
1304
+ .s("ThinClient", "GetEnvironment", {})
1305
+ .n("WorkSpacesThinClientClient", "GetEnvironmentCommand")
1306
+ .f(void 0, GetEnvironmentResponseFilterSensitiveLog)
1307
+ .ser(se_GetEnvironmentCommand)
1308
+ .de(de_GetEnvironmentCommand)
1309
+ .build() {
1310
+ }
1311
+
1312
+ class GetSoftwareSetCommand extends smithyClient.Command
1313
+ .classBuilder()
1314
+ .ep(commonParams)
1315
+ .m(function (Command, cs, config, o) {
1316
+ return [
1317
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1318
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1319
+ ];
1320
+ })
1321
+ .s("ThinClient", "GetSoftwareSet", {})
1322
+ .n("WorkSpacesThinClientClient", "GetSoftwareSetCommand")
1323
+ .f(void 0, void 0)
1324
+ .ser(se_GetSoftwareSetCommand)
1325
+ .de(de_GetSoftwareSetCommand)
1326
+ .build() {
1327
+ }
1328
+
1329
+ class ListDevicesCommand extends smithyClient.Command
1330
+ .classBuilder()
1331
+ .ep(commonParams)
1332
+ .m(function (Command, cs, config, o) {
1333
+ return [
1334
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1335
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1336
+ ];
1337
+ })
1338
+ .s("ThinClient", "ListDevices", {})
1339
+ .n("WorkSpacesThinClientClient", "ListDevicesCommand")
1340
+ .f(void 0, ListDevicesResponseFilterSensitiveLog)
1341
+ .ser(se_ListDevicesCommand)
1342
+ .de(de_ListDevicesCommand)
1343
+ .build() {
1344
+ }
1345
+
1346
+ class ListEnvironmentsCommand extends smithyClient.Command
1347
+ .classBuilder()
1348
+ .ep(commonParams)
1349
+ .m(function (Command, cs, config, o) {
1350
+ return [
1351
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1352
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1353
+ ];
1354
+ })
1355
+ .s("ThinClient", "ListEnvironments", {})
1356
+ .n("WorkSpacesThinClientClient", "ListEnvironmentsCommand")
1357
+ .f(void 0, ListEnvironmentsResponseFilterSensitiveLog)
1358
+ .ser(se_ListEnvironmentsCommand)
1359
+ .de(de_ListEnvironmentsCommand)
1360
+ .build() {
1361
+ }
1362
+
1363
+ class ListSoftwareSetsCommand extends smithyClient.Command
1364
+ .classBuilder()
1365
+ .ep(commonParams)
1366
+ .m(function (Command, cs, config, o) {
1367
+ return [
1368
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1369
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1370
+ ];
1371
+ })
1372
+ .s("ThinClient", "ListSoftwareSets", {})
1373
+ .n("WorkSpacesThinClientClient", "ListSoftwareSetsCommand")
1374
+ .f(void 0, void 0)
1375
+ .ser(se_ListSoftwareSetsCommand)
1376
+ .de(de_ListSoftwareSetsCommand)
1377
+ .build() {
1378
+ }
1379
+
1380
+ class ListTagsForResourceCommand extends smithyClient.Command
1381
+ .classBuilder()
1382
+ .ep(commonParams)
1383
+ .m(function (Command, cs, config, o) {
1384
+ return [
1385
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1386
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1387
+ ];
1388
+ })
1389
+ .s("ThinClient", "ListTagsForResource", {})
1390
+ .n("WorkSpacesThinClientClient", "ListTagsForResourceCommand")
1391
+ .f(void 0, ListTagsForResourceResponseFilterSensitiveLog)
1392
+ .ser(se_ListTagsForResourceCommand)
1393
+ .de(de_ListTagsForResourceCommand)
1394
+ .build() {
1395
+ }
1396
+
1397
+ class TagResourceCommand extends smithyClient.Command
1398
+ .classBuilder()
1399
+ .ep(commonParams)
1400
+ .m(function (Command, cs, config, o) {
1401
+ return [
1402
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1403
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1404
+ ];
1405
+ })
1406
+ .s("ThinClient", "TagResource", {})
1407
+ .n("WorkSpacesThinClientClient", "TagResourceCommand")
1408
+ .f(TagResourceRequestFilterSensitiveLog, void 0)
1409
+ .ser(se_TagResourceCommand)
1410
+ .de(de_TagResourceCommand)
1411
+ .build() {
1412
+ }
1413
+
1414
+ class UntagResourceCommand extends smithyClient.Command
1415
+ .classBuilder()
1416
+ .ep(commonParams)
1417
+ .m(function (Command, cs, config, o) {
1418
+ return [
1419
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1420
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1421
+ ];
1422
+ })
1423
+ .s("ThinClient", "UntagResource", {})
1424
+ .n("WorkSpacesThinClientClient", "UntagResourceCommand")
1425
+ .f(UntagResourceRequestFilterSensitiveLog, void 0)
1426
+ .ser(se_UntagResourceCommand)
1427
+ .de(de_UntagResourceCommand)
1428
+ .build() {
1429
+ }
1430
+
1431
+ class UpdateDeviceCommand extends smithyClient.Command
1432
+ .classBuilder()
1433
+ .ep(commonParams)
1434
+ .m(function (Command, cs, config, o) {
1435
+ return [
1436
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1437
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1438
+ ];
1439
+ })
1440
+ .s("ThinClient", "UpdateDevice", {})
1441
+ .n("WorkSpacesThinClientClient", "UpdateDeviceCommand")
1442
+ .f(UpdateDeviceRequestFilterSensitiveLog, UpdateDeviceResponseFilterSensitiveLog)
1443
+ .ser(se_UpdateDeviceCommand)
1444
+ .de(de_UpdateDeviceCommand)
1445
+ .build() {
1446
+ }
1447
+
1448
+ class UpdateEnvironmentCommand extends smithyClient.Command
1449
+ .classBuilder()
1450
+ .ep(commonParams)
1451
+ .m(function (Command, cs, config, o) {
1452
+ return [
1453
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1454
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1455
+ ];
1456
+ })
1457
+ .s("ThinClient", "UpdateEnvironment", {})
1458
+ .n("WorkSpacesThinClientClient", "UpdateEnvironmentCommand")
1459
+ .f(UpdateEnvironmentRequestFilterSensitiveLog, UpdateEnvironmentResponseFilterSensitiveLog)
1460
+ .ser(se_UpdateEnvironmentCommand)
1461
+ .de(de_UpdateEnvironmentCommand)
1462
+ .build() {
1463
+ }
1464
+
1465
+ class UpdateSoftwareSetCommand extends smithyClient.Command
1466
+ .classBuilder()
1467
+ .ep(commonParams)
1468
+ .m(function (Command, cs, config, o) {
1469
+ return [
1470
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1471
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1472
+ ];
1473
+ })
1474
+ .s("ThinClient", "UpdateSoftwareSet", {})
1475
+ .n("WorkSpacesThinClientClient", "UpdateSoftwareSetCommand")
1476
+ .f(void 0, void 0)
1477
+ .ser(se_UpdateSoftwareSetCommand)
1478
+ .de(de_UpdateSoftwareSetCommand)
1479
+ .build() {
1480
+ }
1481
+
1482
+ const commands = {
1483
+ CreateEnvironmentCommand,
1484
+ DeleteDeviceCommand,
1485
+ DeleteEnvironmentCommand,
1486
+ DeregisterDeviceCommand,
1487
+ GetDeviceCommand,
1488
+ GetEnvironmentCommand,
1489
+ GetSoftwareSetCommand,
1490
+ ListDevicesCommand,
1491
+ ListEnvironmentsCommand,
1492
+ ListSoftwareSetsCommand,
1493
+ ListTagsForResourceCommand,
1494
+ TagResourceCommand,
1495
+ UntagResourceCommand,
1496
+ UpdateDeviceCommand,
1497
+ UpdateEnvironmentCommand,
1498
+ UpdateSoftwareSetCommand,
1499
+ };
1500
+ class WorkSpacesThinClient extends WorkSpacesThinClientClient {
1501
+ }
1502
+ smithyClient.createAggregatedClient(commands, WorkSpacesThinClient);
1691
1503
 
1692
- // src/WorkSpacesThinClient.ts
1693
- var commands = {
1694
- CreateEnvironmentCommand,
1695
- DeleteDeviceCommand,
1696
- DeleteEnvironmentCommand,
1697
- DeregisterDeviceCommand,
1698
- GetDeviceCommand,
1699
- GetEnvironmentCommand,
1700
- GetSoftwareSetCommand,
1701
- ListDevicesCommand,
1702
- ListEnvironmentsCommand,
1703
- ListSoftwareSetsCommand,
1704
- ListTagsForResourceCommand,
1705
- TagResourceCommand,
1706
- UntagResourceCommand,
1707
- UpdateDeviceCommand,
1708
- UpdateEnvironmentCommand,
1709
- UpdateSoftwareSetCommand
1710
- };
1711
- var WorkSpacesThinClient = class extends WorkSpacesThinClientClient {
1712
- static {
1713
- __name(this, "WorkSpacesThinClient");
1714
- }
1715
- };
1716
- (0, import_smithy_client.createAggregatedClient)(commands, WorkSpacesThinClient);
1717
-
1718
- // src/pagination/ListDevicesPaginator.ts
1719
-
1720
- var paginateListDevices = (0, import_core.createPaginator)(WorkSpacesThinClientClient, ListDevicesCommand, "nextToken", "nextToken", "maxResults");
1721
-
1722
- // src/pagination/ListEnvironmentsPaginator.ts
1723
-
1724
- var paginateListEnvironments = (0, import_core.createPaginator)(WorkSpacesThinClientClient, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
1504
+ const paginateListDevices = core.createPaginator(WorkSpacesThinClientClient, ListDevicesCommand, "nextToken", "nextToken", "maxResults");
1725
1505
 
1726
- // src/pagination/ListSoftwareSetsPaginator.ts
1506
+ const paginateListEnvironments = core.createPaginator(WorkSpacesThinClientClient, ListEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
1727
1507
 
1728
- var paginateListSoftwareSets = (0, import_core.createPaginator)(WorkSpacesThinClientClient, ListSoftwareSetsCommand, "nextToken", "nextToken", "maxResults");
1508
+ const paginateListSoftwareSets = core.createPaginator(WorkSpacesThinClientClient, ListSoftwareSetsCommand, "nextToken", "nextToken", "maxResults");
1729
1509
 
1730
- // src/index.ts
1731
- var WorkSpacesThin = WorkSpacesThinClient;
1732
- // Annotate the CommonJS export names for ESM import in node:
1510
+ const WorkSpacesThin = WorkSpacesThinClient;
1733
1511
 
1734
- 0 && (module.exports = {
1735
- WorkSpacesThinClientServiceException,
1736
- WorkSpacesThin,
1737
- __Client,
1738
- WorkSpacesThinClientClient,
1739
- WorkSpacesThinClient,
1740
- $Command,
1741
- CreateEnvironmentCommand,
1742
- DeleteDeviceCommand,
1743
- DeleteEnvironmentCommand,
1744
- DeregisterDeviceCommand,
1745
- GetDeviceCommand,
1746
- GetEnvironmentCommand,
1747
- GetSoftwareSetCommand,
1748
- ListDevicesCommand,
1749
- ListEnvironmentsCommand,
1750
- ListSoftwareSetsCommand,
1751
- ListTagsForResourceCommand,
1752
- TagResourceCommand,
1753
- UntagResourceCommand,
1754
- UpdateDeviceCommand,
1755
- UpdateEnvironmentCommand,
1756
- UpdateSoftwareSetCommand,
1757
- paginateListDevices,
1758
- paginateListEnvironments,
1759
- paginateListSoftwareSets,
1760
- AccessDeniedException,
1761
- ApplyTimeOf,
1762
- ConflictException,
1763
- DayOfWeek,
1764
- MaintenanceWindowType,
1765
- SoftwareSetUpdateMode,
1766
- SoftwareSetUpdateSchedule,
1767
- DesktopType,
1768
- InternalServerException,
1769
- ResourceNotFoundException,
1770
- ServiceQuotaExceededException,
1771
- ThrottlingException,
1772
- ValidationExceptionReason,
1773
- ValidationException,
1774
- TargetDeviceStatus,
1775
- DeviceSoftwareSetComplianceStatus,
1776
- SoftwareSetUpdateStatus,
1777
- DeviceStatus,
1778
- EnvironmentSoftwareSetComplianceStatus,
1779
- SoftwareSetValidationStatus,
1780
- CreateEnvironmentRequestFilterSensitiveLog,
1781
- EnvironmentSummaryFilterSensitiveLog,
1782
- CreateEnvironmentResponseFilterSensitiveLog,
1783
- DeviceFilterSensitiveLog,
1784
- DeviceSummaryFilterSensitiveLog,
1785
- EnvironmentFilterSensitiveLog,
1786
- GetDeviceResponseFilterSensitiveLog,
1787
- GetEnvironmentResponseFilterSensitiveLog,
1788
- ListDevicesResponseFilterSensitiveLog,
1789
- ListEnvironmentsResponseFilterSensitiveLog,
1790
- ListTagsForResourceResponseFilterSensitiveLog,
1791
- TagResourceRequestFilterSensitiveLog,
1792
- UntagResourceRequestFilterSensitiveLog,
1793
- UpdateDeviceRequestFilterSensitiveLog,
1794
- UpdateDeviceResponseFilterSensitiveLog,
1795
- UpdateEnvironmentRequestFilterSensitiveLog,
1796
- UpdateEnvironmentResponseFilterSensitiveLog
1512
+ Object.defineProperty(exports, "$Command", {
1513
+ enumerable: true,
1514
+ get: function () { return smithyClient.Command; }
1797
1515
  });
1798
-
1516
+ Object.defineProperty(exports, "__Client", {
1517
+ enumerable: true,
1518
+ get: function () { return smithyClient.Client; }
1519
+ });
1520
+ exports.AccessDeniedException = AccessDeniedException;
1521
+ exports.ApplyTimeOf = ApplyTimeOf;
1522
+ exports.ConflictException = ConflictException;
1523
+ exports.CreateEnvironmentCommand = CreateEnvironmentCommand;
1524
+ exports.CreateEnvironmentRequestFilterSensitiveLog = CreateEnvironmentRequestFilterSensitiveLog;
1525
+ exports.CreateEnvironmentResponseFilterSensitiveLog = CreateEnvironmentResponseFilterSensitiveLog;
1526
+ exports.DayOfWeek = DayOfWeek;
1527
+ exports.DeleteDeviceCommand = DeleteDeviceCommand;
1528
+ exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;
1529
+ exports.DeregisterDeviceCommand = DeregisterDeviceCommand;
1530
+ exports.DesktopType = DesktopType;
1531
+ exports.DeviceFilterSensitiveLog = DeviceFilterSensitiveLog;
1532
+ exports.DeviceSoftwareSetComplianceStatus = DeviceSoftwareSetComplianceStatus;
1533
+ exports.DeviceStatus = DeviceStatus;
1534
+ exports.DeviceSummaryFilterSensitiveLog = DeviceSummaryFilterSensitiveLog;
1535
+ exports.EnvironmentFilterSensitiveLog = EnvironmentFilterSensitiveLog;
1536
+ exports.EnvironmentSoftwareSetComplianceStatus = EnvironmentSoftwareSetComplianceStatus;
1537
+ exports.EnvironmentSummaryFilterSensitiveLog = EnvironmentSummaryFilterSensitiveLog;
1538
+ exports.GetDeviceCommand = GetDeviceCommand;
1539
+ exports.GetDeviceResponseFilterSensitiveLog = GetDeviceResponseFilterSensitiveLog;
1540
+ exports.GetEnvironmentCommand = GetEnvironmentCommand;
1541
+ exports.GetEnvironmentResponseFilterSensitiveLog = GetEnvironmentResponseFilterSensitiveLog;
1542
+ exports.GetSoftwareSetCommand = GetSoftwareSetCommand;
1543
+ exports.InternalServerException = InternalServerException;
1544
+ exports.ListDevicesCommand = ListDevicesCommand;
1545
+ exports.ListDevicesResponseFilterSensitiveLog = ListDevicesResponseFilterSensitiveLog;
1546
+ exports.ListEnvironmentsCommand = ListEnvironmentsCommand;
1547
+ exports.ListEnvironmentsResponseFilterSensitiveLog = ListEnvironmentsResponseFilterSensitiveLog;
1548
+ exports.ListSoftwareSetsCommand = ListSoftwareSetsCommand;
1549
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1550
+ exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
1551
+ exports.MaintenanceWindowType = MaintenanceWindowType;
1552
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1553
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1554
+ exports.SoftwareSetUpdateMode = SoftwareSetUpdateMode;
1555
+ exports.SoftwareSetUpdateSchedule = SoftwareSetUpdateSchedule;
1556
+ exports.SoftwareSetUpdateStatus = SoftwareSetUpdateStatus;
1557
+ exports.SoftwareSetValidationStatus = SoftwareSetValidationStatus;
1558
+ exports.TagResourceCommand = TagResourceCommand;
1559
+ exports.TagResourceRequestFilterSensitiveLog = TagResourceRequestFilterSensitiveLog;
1560
+ exports.TargetDeviceStatus = TargetDeviceStatus;
1561
+ exports.ThrottlingException = ThrottlingException;
1562
+ exports.UntagResourceCommand = UntagResourceCommand;
1563
+ exports.UntagResourceRequestFilterSensitiveLog = UntagResourceRequestFilterSensitiveLog;
1564
+ exports.UpdateDeviceCommand = UpdateDeviceCommand;
1565
+ exports.UpdateDeviceRequestFilterSensitiveLog = UpdateDeviceRequestFilterSensitiveLog;
1566
+ exports.UpdateDeviceResponseFilterSensitiveLog = UpdateDeviceResponseFilterSensitiveLog;
1567
+ exports.UpdateEnvironmentCommand = UpdateEnvironmentCommand;
1568
+ exports.UpdateEnvironmentRequestFilterSensitiveLog = UpdateEnvironmentRequestFilterSensitiveLog;
1569
+ exports.UpdateEnvironmentResponseFilterSensitiveLog = UpdateEnvironmentResponseFilterSensitiveLog;
1570
+ exports.UpdateSoftwareSetCommand = UpdateSoftwareSetCommand;
1571
+ exports.ValidationException = ValidationException;
1572
+ exports.ValidationExceptionReason = ValidationExceptionReason;
1573
+ exports.WorkSpacesThin = WorkSpacesThin;
1574
+ exports.WorkSpacesThinClient = WorkSpacesThinClient;
1575
+ exports.WorkSpacesThinClientClient = WorkSpacesThinClientClient;
1576
+ exports.WorkSpacesThinClientServiceException = WorkSpacesThinClientServiceException;
1577
+ exports.paginateListDevices = paginateListDevices;
1578
+ exports.paginateListEnvironments = paginateListEnvironments;
1579
+ exports.paginateListSoftwareSets = paginateListSoftwareSets;