@aws-sdk/client-application-discovery-service 3.490.0 → 3.496.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 (49) hide show
  1. package/dist-cjs/ApplicationDiscoveryService.js +1 -67
  2. package/dist-cjs/ApplicationDiscoveryServiceClient.js +1 -43
  3. package/dist-cjs/commands/AssociateConfigurationItemsToApplicationCommand.js +1 -28
  4. package/dist-cjs/commands/BatchDeleteAgentsCommand.js +1 -28
  5. package/dist-cjs/commands/BatchDeleteImportDataCommand.js +1 -28
  6. package/dist-cjs/commands/CreateApplicationCommand.js +1 -28
  7. package/dist-cjs/commands/CreateTagsCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteApplicationsCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteTagsCommand.js +1 -28
  10. package/dist-cjs/commands/DescribeAgentsCommand.js +1 -29
  11. package/dist-cjs/commands/DescribeBatchDeleteConfigurationTaskCommand.js +1 -28
  12. package/dist-cjs/commands/DescribeConfigurationsCommand.js +1 -28
  13. package/dist-cjs/commands/DescribeContinuousExportsCommand.js +1 -28
  14. package/dist-cjs/commands/DescribeExportConfigurationsCommand.js +1 -28
  15. package/dist-cjs/commands/DescribeExportTasksCommand.js +1 -28
  16. package/dist-cjs/commands/DescribeImportTasksCommand.js +1 -28
  17. package/dist-cjs/commands/DescribeTagsCommand.js +1 -28
  18. package/dist-cjs/commands/DisassociateConfigurationItemsFromApplicationCommand.js +1 -28
  19. package/dist-cjs/commands/ExportConfigurationsCommand.js +1 -28
  20. package/dist-cjs/commands/GetDiscoverySummaryCommand.js +1 -28
  21. package/dist-cjs/commands/ListConfigurationsCommand.js +1 -28
  22. package/dist-cjs/commands/ListServerNeighborsCommand.js +1 -28
  23. package/dist-cjs/commands/StartBatchDeleteConfigurationTaskCommand.js +1 -28
  24. package/dist-cjs/commands/StartContinuousExportCommand.js +1 -28
  25. package/dist-cjs/commands/StartDataCollectionByAgentIdsCommand.js +1 -28
  26. package/dist-cjs/commands/StartExportTaskCommand.js +1 -28
  27. package/dist-cjs/commands/StartImportTaskCommand.js +1 -28
  28. package/dist-cjs/commands/StopContinuousExportCommand.js +1 -28
  29. package/dist-cjs/commands/StopDataCollectionByAgentIdsCommand.js +1 -28
  30. package/dist-cjs/commands/UpdateApplicationCommand.js +1 -28
  31. package/dist-cjs/commands/index.js +1 -31
  32. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  33. package/dist-cjs/extensionConfiguration.js +1 -2
  34. package/dist-cjs/index.js +2899 -11
  35. package/dist-cjs/models/ApplicationDiscoveryServiceServiceException.js +1 -12
  36. package/dist-cjs/models/index.js +1 -4
  37. package/dist-cjs/models/models_0.js +1 -250
  38. package/dist-cjs/pagination/DescribeAgentsPaginator.js +1 -7
  39. package/dist-cjs/pagination/DescribeContinuousExportsPaginator.js +1 -7
  40. package/dist-cjs/pagination/DescribeExportConfigurationsPaginator.js +1 -7
  41. package/dist-cjs/pagination/DescribeExportTasksPaginator.js +1 -7
  42. package/dist-cjs/pagination/DescribeImportTasksPaginator.js +1 -7
  43. package/dist-cjs/pagination/DescribeTagsPaginator.js +1 -7
  44. package/dist-cjs/pagination/Interfaces.js +1 -2
  45. package/dist-cjs/pagination/ListConfigurationsPaginator.js +1 -7
  46. package/dist-cjs/pagination/index.js +1 -11
  47. package/dist-cjs/protocols/Aws_json1_1.js +1 -1862
  48. package/dist-cjs/runtimeExtensions.js +1 -22
  49. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2900 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApplicationDiscoveryServiceServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ApplicationDiscoveryServiceClient"), exports);
6
- tslib_1.__exportStar(require("./ApplicationDiscoveryService"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var ApplicationDiscoveryServiceServiceException_1 = require("./models/ApplicationDiscoveryServiceServiceException");
12
- Object.defineProperty(exports, "ApplicationDiscoveryServiceServiceException", { enumerable: true, get: function () { return ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AgentInfoFilterSensitiveLog: () => AgentInfoFilterSensitiveLog,
25
+ AgentNetworkInfoFilterSensitiveLog: () => AgentNetworkInfoFilterSensitiveLog,
26
+ AgentStatus: () => AgentStatus,
27
+ ApplicationDiscoveryService: () => ApplicationDiscoveryService,
28
+ ApplicationDiscoveryServiceClient: () => ApplicationDiscoveryServiceClient,
29
+ ApplicationDiscoveryServiceServiceException: () => ApplicationDiscoveryServiceServiceException,
30
+ AssociateConfigurationItemsToApplicationCommand: () => AssociateConfigurationItemsToApplicationCommand,
31
+ AuthorizationErrorException: () => AuthorizationErrorException,
32
+ BatchDeleteAgentsCommand: () => BatchDeleteAgentsCommand,
33
+ BatchDeleteConfigurationTaskStatus: () => BatchDeleteConfigurationTaskStatus,
34
+ BatchDeleteImportDataCommand: () => BatchDeleteImportDataCommand,
35
+ BatchDeleteImportDataErrorCode: () => BatchDeleteImportDataErrorCode,
36
+ ConfigurationItemType: () => ConfigurationItemType,
37
+ ConflictErrorException: () => ConflictErrorException,
38
+ ContinuousExportStatus: () => ContinuousExportStatus,
39
+ CreateApplicationCommand: () => CreateApplicationCommand,
40
+ CreateTagsCommand: () => CreateTagsCommand,
41
+ DataSource: () => DataSource,
42
+ DeleteAgentErrorCode: () => DeleteAgentErrorCode,
43
+ DeleteApplicationsCommand: () => DeleteApplicationsCommand,
44
+ DeleteTagsCommand: () => DeleteTagsCommand,
45
+ DeletionConfigurationItemType: () => DeletionConfigurationItemType,
46
+ DescribeAgentsCommand: () => DescribeAgentsCommand,
47
+ DescribeAgentsResponseFilterSensitiveLog: () => DescribeAgentsResponseFilterSensitiveLog,
48
+ DescribeBatchDeleteConfigurationTaskCommand: () => DescribeBatchDeleteConfigurationTaskCommand,
49
+ DescribeConfigurationsCommand: () => DescribeConfigurationsCommand,
50
+ DescribeContinuousExportsCommand: () => DescribeContinuousExportsCommand,
51
+ DescribeExportConfigurationsCommand: () => DescribeExportConfigurationsCommand,
52
+ DescribeExportTasksCommand: () => DescribeExportTasksCommand,
53
+ DescribeImportTasksCommand: () => DescribeImportTasksCommand,
54
+ DescribeTagsCommand: () => DescribeTagsCommand,
55
+ DisassociateConfigurationItemsFromApplicationCommand: () => DisassociateConfigurationItemsFromApplicationCommand,
56
+ ExportConfigurationsCommand: () => ExportConfigurationsCommand,
57
+ ExportDataFormat: () => ExportDataFormat,
58
+ ExportPreferences: () => ExportPreferences,
59
+ ExportStatus: () => ExportStatus,
60
+ GetDiscoverySummaryCommand: () => GetDiscoverySummaryCommand,
61
+ HomeRegionNotSetException: () => HomeRegionNotSetException,
62
+ ImportStatus: () => ImportStatus,
63
+ ImportTaskFilterName: () => ImportTaskFilterName,
64
+ InvalidParameterException: () => InvalidParameterException,
65
+ InvalidParameterValueException: () => InvalidParameterValueException,
66
+ LimitExceededException: () => LimitExceededException,
67
+ ListConfigurationsCommand: () => ListConfigurationsCommand,
68
+ ListServerNeighborsCommand: () => ListServerNeighborsCommand,
69
+ OfferingClass: () => OfferingClass,
70
+ OperationNotPermittedException: () => OperationNotPermittedException,
71
+ OrderString: () => OrderString,
72
+ PurchasingOption: () => PurchasingOption,
73
+ ResourceInUseException: () => ResourceInUseException,
74
+ ResourceNotFoundException: () => ResourceNotFoundException,
75
+ ServerInternalErrorException: () => ServerInternalErrorException,
76
+ StartBatchDeleteConfigurationTaskCommand: () => StartBatchDeleteConfigurationTaskCommand,
77
+ StartContinuousExportCommand: () => StartContinuousExportCommand,
78
+ StartDataCollectionByAgentIdsCommand: () => StartDataCollectionByAgentIdsCommand,
79
+ StartExportTaskCommand: () => StartExportTaskCommand,
80
+ StartImportTaskCommand: () => StartImportTaskCommand,
81
+ StopContinuousExportCommand: () => StopContinuousExportCommand,
82
+ StopDataCollectionByAgentIdsCommand: () => StopDataCollectionByAgentIdsCommand,
83
+ Tenancy: () => Tenancy,
84
+ TermLength: () => TermLength,
85
+ UpdateApplicationCommand: () => UpdateApplicationCommand,
86
+ __Client: () => import_smithy_client.Client,
87
+ paginateDescribeAgents: () => paginateDescribeAgents,
88
+ paginateDescribeContinuousExports: () => paginateDescribeContinuousExports,
89
+ paginateDescribeExportConfigurations: () => paginateDescribeExportConfigurations,
90
+ paginateDescribeExportTasks: () => paginateDescribeExportTasks,
91
+ paginateDescribeImportTasks: () => paginateDescribeImportTasks,
92
+ paginateDescribeTags: () => paginateDescribeTags,
93
+ paginateListConfigurations: () => paginateListConfigurations
94
+ });
95
+ module.exports = __toCommonJS(src_exports);
96
+
97
+ // src/ApplicationDiscoveryServiceClient.ts
98
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
99
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
100
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
101
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
102
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
103
+ var import_config_resolver = require("@smithy/config-resolver");
104
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
105
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
106
+ var import_middleware_retry = require("@smithy/middleware-retry");
107
+
108
+
109
+ // src/endpoint/EndpointParameters.ts
110
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
111
+ return {
112
+ ...options,
113
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
114
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
115
+ defaultSigningName: "discovery"
116
+ };
117
+ }, "resolveClientEndpointParameters");
118
+ var commonParams = {
119
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
120
+ Endpoint: { type: "builtInParams", name: "endpoint" },
121
+ Region: { type: "builtInParams", name: "region" },
122
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
123
+ };
124
+
125
+ // src/ApplicationDiscoveryServiceClient.ts
126
+ var import_runtimeConfig = require("././runtimeConfig");
127
+
128
+ // src/runtimeExtensions.ts
129
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
130
+ var import_protocol_http = require("@smithy/protocol-http");
131
+ var import_smithy_client = require("@smithy/smithy-client");
132
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
133
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
134
+ const extensionConfiguration = {
135
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
136
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
137
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
138
+ };
139
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
140
+ return {
141
+ ...runtimeConfig,
142
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
143
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
144
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
145
+ };
146
+ }, "resolveRuntimeExtensions");
147
+
148
+ // src/ApplicationDiscoveryServiceClient.ts
149
+ var _ApplicationDiscoveryServiceClient = class _ApplicationDiscoveryServiceClient extends import_smithy_client.Client {
150
+ constructor(...[configuration]) {
151
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
152
+ const _config_1 = resolveClientEndpointParameters(_config_0);
153
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
154
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
155
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
156
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
157
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
158
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
159
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
160
+ super(_config_8);
161
+ this.config = _config_8;
162
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
163
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
164
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
165
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
166
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
167
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
168
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
169
+ }
170
+ /**
171
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
172
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
173
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
174
+ */
175
+ destroy() {
176
+ super.destroy();
177
+ }
178
+ };
179
+ __name(_ApplicationDiscoveryServiceClient, "ApplicationDiscoveryServiceClient");
180
+ var ApplicationDiscoveryServiceClient = _ApplicationDiscoveryServiceClient;
181
+
182
+ // src/ApplicationDiscoveryService.ts
183
+
184
+
185
+ // src/commands/AssociateConfigurationItemsToApplicationCommand.ts
186
+
187
+ var import_middleware_serde = require("@smithy/middleware-serde");
188
+
189
+ var import_types = require("@smithy/types");
190
+
191
+ // src/protocols/Aws_json1_1.ts
192
+
193
+
194
+ var import_uuid = require("uuid");
195
+
196
+ // src/models/ApplicationDiscoveryServiceServiceException.ts
197
+
198
+ var _ApplicationDiscoveryServiceServiceException = class _ApplicationDiscoveryServiceServiceException extends import_smithy_client.ServiceException {
199
+ /**
200
+ * @internal
201
+ */
202
+ constructor(options) {
203
+ super(options);
204
+ Object.setPrototypeOf(this, _ApplicationDiscoveryServiceServiceException.prototype);
205
+ }
206
+ };
207
+ __name(_ApplicationDiscoveryServiceServiceException, "ApplicationDiscoveryServiceServiceException");
208
+ var ApplicationDiscoveryServiceServiceException = _ApplicationDiscoveryServiceServiceException;
209
+
210
+ // src/models/models_0.ts
211
+
212
+ var AgentStatus = {
213
+ BLACKLISTED: "BLACKLISTED",
214
+ HEALTHY: "HEALTHY",
215
+ RUNNING: "RUNNING",
216
+ SHUTDOWN: "SHUTDOWN",
217
+ UNHEALTHY: "UNHEALTHY",
218
+ UNKNOWN: "UNKNOWN"
219
+ };
220
+ var _AuthorizationErrorException = class _AuthorizationErrorException extends ApplicationDiscoveryServiceServiceException {
221
+ /**
222
+ * @internal
223
+ */
224
+ constructor(opts) {
225
+ super({
226
+ name: "AuthorizationErrorException",
227
+ $fault: "client",
228
+ ...opts
229
+ });
230
+ this.name = "AuthorizationErrorException";
231
+ this.$fault = "client";
232
+ Object.setPrototypeOf(this, _AuthorizationErrorException.prototype);
233
+ }
234
+ };
235
+ __name(_AuthorizationErrorException, "AuthorizationErrorException");
236
+ var AuthorizationErrorException = _AuthorizationErrorException;
237
+ var _HomeRegionNotSetException = class _HomeRegionNotSetException extends ApplicationDiscoveryServiceServiceException {
238
+ /**
239
+ * @internal
240
+ */
241
+ constructor(opts) {
242
+ super({
243
+ name: "HomeRegionNotSetException",
244
+ $fault: "client",
245
+ ...opts
246
+ });
247
+ this.name = "HomeRegionNotSetException";
248
+ this.$fault = "client";
249
+ Object.setPrototypeOf(this, _HomeRegionNotSetException.prototype);
250
+ }
251
+ };
252
+ __name(_HomeRegionNotSetException, "HomeRegionNotSetException");
253
+ var HomeRegionNotSetException = _HomeRegionNotSetException;
254
+ var _InvalidParameterException = class _InvalidParameterException extends ApplicationDiscoveryServiceServiceException {
255
+ /**
256
+ * @internal
257
+ */
258
+ constructor(opts) {
259
+ super({
260
+ name: "InvalidParameterException",
261
+ $fault: "client",
262
+ ...opts
263
+ });
264
+ this.name = "InvalidParameterException";
265
+ this.$fault = "client";
266
+ Object.setPrototypeOf(this, _InvalidParameterException.prototype);
267
+ }
268
+ };
269
+ __name(_InvalidParameterException, "InvalidParameterException");
270
+ var InvalidParameterException = _InvalidParameterException;
271
+ var _InvalidParameterValueException = class _InvalidParameterValueException extends ApplicationDiscoveryServiceServiceException {
272
+ /**
273
+ * @internal
274
+ */
275
+ constructor(opts) {
276
+ super({
277
+ name: "InvalidParameterValueException",
278
+ $fault: "client",
279
+ ...opts
280
+ });
281
+ this.name = "InvalidParameterValueException";
282
+ this.$fault = "client";
283
+ Object.setPrototypeOf(this, _InvalidParameterValueException.prototype);
284
+ }
285
+ };
286
+ __name(_InvalidParameterValueException, "InvalidParameterValueException");
287
+ var InvalidParameterValueException = _InvalidParameterValueException;
288
+ var _ServerInternalErrorException = class _ServerInternalErrorException extends ApplicationDiscoveryServiceServiceException {
289
+ /**
290
+ * @internal
291
+ */
292
+ constructor(opts) {
293
+ super({
294
+ name: "ServerInternalErrorException",
295
+ $fault: "server",
296
+ ...opts
297
+ });
298
+ this.name = "ServerInternalErrorException";
299
+ this.$fault = "server";
300
+ Object.setPrototypeOf(this, _ServerInternalErrorException.prototype);
301
+ }
302
+ };
303
+ __name(_ServerInternalErrorException, "ServerInternalErrorException");
304
+ var ServerInternalErrorException = _ServerInternalErrorException;
305
+ var DeleteAgentErrorCode = {
306
+ AGENT_IN_USE: "AGENT_IN_USE",
307
+ INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
308
+ NOT_FOUND: "NOT_FOUND"
309
+ };
310
+ var BatchDeleteImportDataErrorCode = {
311
+ INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
312
+ NOT_FOUND: "NOT_FOUND",
313
+ OVER_LIMIT: "OVER_LIMIT"
314
+ };
315
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends ApplicationDiscoveryServiceServiceException {
316
+ /**
317
+ * @internal
318
+ */
319
+ constructor(opts) {
320
+ super({
321
+ name: "ResourceNotFoundException",
322
+ $fault: "client",
323
+ ...opts
324
+ });
325
+ this.name = "ResourceNotFoundException";
326
+ this.$fault = "client";
327
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
328
+ }
329
+ };
330
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
331
+ var ResourceNotFoundException = _ResourceNotFoundException;
332
+ var DeletionConfigurationItemType = {
333
+ SERVER: "SERVER"
334
+ };
335
+ var BatchDeleteConfigurationTaskStatus = {
336
+ COMPLETED: "COMPLETED",
337
+ DELETING: "DELETING",
338
+ FAILED: "FAILED",
339
+ INITIALIZING: "INITIALIZING",
340
+ VALIDATING: "VALIDATING"
341
+ };
342
+ var DataSource = {
343
+ AGENT: "AGENT"
344
+ };
345
+ var ContinuousExportStatus = {
346
+ ACTIVE: "ACTIVE",
347
+ ERROR: "ERROR",
348
+ INACTIVE: "INACTIVE",
349
+ START_FAILED: "START_FAILED",
350
+ START_IN_PROGRESS: "START_IN_PROGRESS",
351
+ STOP_FAILED: "STOP_FAILED",
352
+ STOP_IN_PROGRESS: "STOP_IN_PROGRESS"
353
+ };
354
+ var _OperationNotPermittedException = class _OperationNotPermittedException extends ApplicationDiscoveryServiceServiceException {
355
+ /**
356
+ * @internal
357
+ */
358
+ constructor(opts) {
359
+ super({
360
+ name: "OperationNotPermittedException",
361
+ $fault: "client",
362
+ ...opts
363
+ });
364
+ this.name = "OperationNotPermittedException";
365
+ this.$fault = "client";
366
+ Object.setPrototypeOf(this, _OperationNotPermittedException.prototype);
367
+ }
368
+ };
369
+ __name(_OperationNotPermittedException, "OperationNotPermittedException");
370
+ var OperationNotPermittedException = _OperationNotPermittedException;
371
+ var ExportStatus = {
372
+ FAILED: "FAILED",
373
+ IN_PROGRESS: "IN_PROGRESS",
374
+ SUCCEEDED: "SUCCEEDED"
375
+ };
376
+ var ImportTaskFilterName = {
377
+ IMPORT_TASK_ID: "IMPORT_TASK_ID",
378
+ NAME: "NAME",
379
+ STATUS: "STATUS"
380
+ };
381
+ var ImportStatus = {
382
+ DELETE_COMPLETE: "DELETE_COMPLETE",
383
+ DELETE_FAILED: "DELETE_FAILED",
384
+ DELETE_FAILED_LIMIT_EXCEEDED: "DELETE_FAILED_LIMIT_EXCEEDED",
385
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
386
+ IMPORT_COMPLETE: "IMPORT_COMPLETE",
387
+ IMPORT_COMPLETE_WITH_ERRORS: "IMPORT_COMPLETE_WITH_ERRORS",
388
+ IMPORT_FAILED: "IMPORT_FAILED",
389
+ IMPORT_FAILED_RECORD_LIMIT_EXCEEDED: "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED",
390
+ IMPORT_FAILED_SERVER_LIMIT_EXCEEDED: "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED",
391
+ IMPORT_IN_PROGRESS: "IMPORT_IN_PROGRESS",
392
+ INTERNAL_ERROR: "INTERNAL_ERROR"
393
+ };
394
+ var ConfigurationItemType = {
395
+ APPLICATION: "APPLICATION",
396
+ CONNECTIONS: "CONNECTION",
397
+ PROCESS: "PROCESS",
398
+ SERVER: "SERVER"
399
+ };
400
+ var OrderString = {
401
+ ASC: "ASC",
402
+ DESC: "DESC"
403
+ };
404
+ var _LimitExceededException = class _LimitExceededException extends ApplicationDiscoveryServiceServiceException {
405
+ /**
406
+ * @internal
407
+ */
408
+ constructor(opts) {
409
+ super({
410
+ name: "LimitExceededException",
411
+ $fault: "client",
412
+ ...opts
413
+ });
414
+ this.name = "LimitExceededException";
415
+ this.$fault = "client";
416
+ Object.setPrototypeOf(this, _LimitExceededException.prototype);
417
+ }
418
+ };
419
+ __name(_LimitExceededException, "LimitExceededException");
420
+ var LimitExceededException = _LimitExceededException;
421
+ var _ConflictErrorException = class _ConflictErrorException extends ApplicationDiscoveryServiceServiceException {
422
+ /**
423
+ * @internal
424
+ */
425
+ constructor(opts) {
426
+ super({
427
+ name: "ConflictErrorException",
428
+ $fault: "client",
429
+ ...opts
430
+ });
431
+ this.name = "ConflictErrorException";
432
+ this.$fault = "client";
433
+ Object.setPrototypeOf(this, _ConflictErrorException.prototype);
434
+ }
435
+ };
436
+ __name(_ConflictErrorException, "ConflictErrorException");
437
+ var ConflictErrorException = _ConflictErrorException;
438
+ var _ResourceInUseException = class _ResourceInUseException extends ApplicationDiscoveryServiceServiceException {
439
+ /**
440
+ * @internal
441
+ */
442
+ constructor(opts) {
443
+ super({
444
+ name: "ResourceInUseException",
445
+ $fault: "client",
446
+ ...opts
447
+ });
448
+ this.name = "ResourceInUseException";
449
+ this.$fault = "client";
450
+ Object.setPrototypeOf(this, _ResourceInUseException.prototype);
451
+ }
452
+ };
453
+ __name(_ResourceInUseException, "ResourceInUseException");
454
+ var ResourceInUseException = _ResourceInUseException;
455
+ var ExportDataFormat = {
456
+ CSV: "CSV"
457
+ };
458
+ var OfferingClass = {
459
+ CONVERTIBLE: "CONVERTIBLE",
460
+ STANDARD: "STANDARD"
461
+ };
462
+ var PurchasingOption = {
463
+ ALL_UPFRONT: "ALL_UPFRONT",
464
+ NO_UPFRONT: "NO_UPFRONT",
465
+ PARTIAL_UPFRONT: "PARTIAL_UPFRONT"
466
+ };
467
+ var TermLength = {
468
+ ONE_YEAR: "ONE_YEAR",
469
+ THREE_YEAR: "THREE_YEAR"
470
+ };
471
+ var Tenancy = {
472
+ DEDICATED: "DEDICATED",
473
+ SHARED: "SHARED"
474
+ };
475
+ var ExportPreferences;
476
+ ((ExportPreferences2) => {
477
+ ExportPreferences2.visit = /* @__PURE__ */ __name((value, visitor) => {
478
+ if (value.ec2RecommendationsPreferences !== void 0)
479
+ return visitor.ec2RecommendationsPreferences(value.ec2RecommendationsPreferences);
480
+ return visitor._(value.$unknown[0], value.$unknown[1]);
481
+ }, "visit");
482
+ })(ExportPreferences || (ExportPreferences = {}));
483
+ var AgentNetworkInfoFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
484
+ ...obj
485
+ }), "AgentNetworkInfoFilterSensitiveLog");
486
+ var AgentInfoFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
487
+ ...obj,
488
+ ...obj.agentNetworkInfoList && { agentNetworkInfoList: import_smithy_client.SENSITIVE_STRING }
489
+ }), "AgentInfoFilterSensitiveLog");
490
+ var DescribeAgentsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
491
+ ...obj,
492
+ ...obj.agentsInfo && { agentsInfo: obj.agentsInfo.map((item) => AgentInfoFilterSensitiveLog(item)) }
493
+ }), "DescribeAgentsResponseFilterSensitiveLog");
494
+
495
+ // src/protocols/Aws_json1_1.ts
496
+ var se_AssociateConfigurationItemsToApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
497
+ const headers = sharedHeaders("AssociateConfigurationItemsToApplication");
498
+ let body;
499
+ body = JSON.stringify((0, import_smithy_client._json)(input));
500
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
501
+ }, "se_AssociateConfigurationItemsToApplicationCommand");
502
+ var se_BatchDeleteAgentsCommand = /* @__PURE__ */ __name(async (input, context) => {
503
+ const headers = sharedHeaders("BatchDeleteAgents");
504
+ let body;
505
+ body = JSON.stringify((0, import_smithy_client._json)(input));
506
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
507
+ }, "se_BatchDeleteAgentsCommand");
508
+ var se_BatchDeleteImportDataCommand = /* @__PURE__ */ __name(async (input, context) => {
509
+ const headers = sharedHeaders("BatchDeleteImportData");
510
+ let body;
511
+ body = JSON.stringify((0, import_smithy_client._json)(input));
512
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
513
+ }, "se_BatchDeleteImportDataCommand");
514
+ var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
515
+ const headers = sharedHeaders("CreateApplication");
516
+ let body;
517
+ body = JSON.stringify((0, import_smithy_client._json)(input));
518
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
519
+ }, "se_CreateApplicationCommand");
520
+ var se_CreateTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
521
+ const headers = sharedHeaders("CreateTags");
522
+ let body;
523
+ body = JSON.stringify((0, import_smithy_client._json)(input));
524
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
525
+ }, "se_CreateTagsCommand");
526
+ var se_DeleteApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
527
+ const headers = sharedHeaders("DeleteApplications");
528
+ let body;
529
+ body = JSON.stringify((0, import_smithy_client._json)(input));
530
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
531
+ }, "se_DeleteApplicationsCommand");
532
+ var se_DeleteTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
533
+ const headers = sharedHeaders("DeleteTags");
534
+ let body;
535
+ body = JSON.stringify((0, import_smithy_client._json)(input));
536
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
537
+ }, "se_DeleteTagsCommand");
538
+ var se_DescribeAgentsCommand = /* @__PURE__ */ __name(async (input, context) => {
539
+ const headers = sharedHeaders("DescribeAgents");
540
+ let body;
541
+ body = JSON.stringify((0, import_smithy_client._json)(input));
542
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
543
+ }, "se_DescribeAgentsCommand");
544
+ var se_DescribeBatchDeleteConfigurationTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
545
+ const headers = sharedHeaders("DescribeBatchDeleteConfigurationTask");
546
+ let body;
547
+ body = JSON.stringify((0, import_smithy_client._json)(input));
548
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
549
+ }, "se_DescribeBatchDeleteConfigurationTaskCommand");
550
+ var se_DescribeConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
551
+ const headers = sharedHeaders("DescribeConfigurations");
552
+ let body;
553
+ body = JSON.stringify((0, import_smithy_client._json)(input));
554
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
555
+ }, "se_DescribeConfigurationsCommand");
556
+ var se_DescribeContinuousExportsCommand = /* @__PURE__ */ __name(async (input, context) => {
557
+ const headers = sharedHeaders("DescribeContinuousExports");
558
+ let body;
559
+ body = JSON.stringify((0, import_smithy_client._json)(input));
560
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
561
+ }, "se_DescribeContinuousExportsCommand");
562
+ var se_DescribeExportConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
563
+ const headers = sharedHeaders("DescribeExportConfigurations");
564
+ let body;
565
+ body = JSON.stringify((0, import_smithy_client._json)(input));
566
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
567
+ }, "se_DescribeExportConfigurationsCommand");
568
+ var se_DescribeExportTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
569
+ const headers = sharedHeaders("DescribeExportTasks");
570
+ let body;
571
+ body = JSON.stringify((0, import_smithy_client._json)(input));
572
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
573
+ }, "se_DescribeExportTasksCommand");
574
+ var se_DescribeImportTasksCommand = /* @__PURE__ */ __name(async (input, context) => {
575
+ const headers = sharedHeaders("DescribeImportTasks");
576
+ let body;
577
+ body = JSON.stringify((0, import_smithy_client._json)(input));
578
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
579
+ }, "se_DescribeImportTasksCommand");
580
+ var se_DescribeTagsCommand = /* @__PURE__ */ __name(async (input, context) => {
581
+ const headers = sharedHeaders("DescribeTags");
582
+ let body;
583
+ body = JSON.stringify((0, import_smithy_client._json)(input));
584
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
585
+ }, "se_DescribeTagsCommand");
586
+ var se_DisassociateConfigurationItemsFromApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
587
+ const headers = sharedHeaders("DisassociateConfigurationItemsFromApplication");
588
+ let body;
589
+ body = JSON.stringify((0, import_smithy_client._json)(input));
590
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
591
+ }, "se_DisassociateConfigurationItemsFromApplicationCommand");
592
+ var se_ExportConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
593
+ const headers = sharedHeaders("ExportConfigurations");
594
+ const body = "{}";
595
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
596
+ }, "se_ExportConfigurationsCommand");
597
+ var se_GetDiscoverySummaryCommand = /* @__PURE__ */ __name(async (input, context) => {
598
+ const headers = sharedHeaders("GetDiscoverySummary");
599
+ let body;
600
+ body = JSON.stringify((0, import_smithy_client._json)(input));
601
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
602
+ }, "se_GetDiscoverySummaryCommand");
603
+ var se_ListConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
604
+ const headers = sharedHeaders("ListConfigurations");
605
+ let body;
606
+ body = JSON.stringify((0, import_smithy_client._json)(input));
607
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
608
+ }, "se_ListConfigurationsCommand");
609
+ var se_ListServerNeighborsCommand = /* @__PURE__ */ __name(async (input, context) => {
610
+ const headers = sharedHeaders("ListServerNeighbors");
611
+ let body;
612
+ body = JSON.stringify((0, import_smithy_client._json)(input));
613
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
614
+ }, "se_ListServerNeighborsCommand");
615
+ var se_StartBatchDeleteConfigurationTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
616
+ const headers = sharedHeaders("StartBatchDeleteConfigurationTask");
617
+ let body;
618
+ body = JSON.stringify((0, import_smithy_client._json)(input));
619
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
620
+ }, "se_StartBatchDeleteConfigurationTaskCommand");
621
+ var se_StartContinuousExportCommand = /* @__PURE__ */ __name(async (input, context) => {
622
+ const headers = sharedHeaders("StartContinuousExport");
623
+ let body;
624
+ body = JSON.stringify((0, import_smithy_client._json)(input));
625
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
626
+ }, "se_StartContinuousExportCommand");
627
+ var se_StartDataCollectionByAgentIdsCommand = /* @__PURE__ */ __name(async (input, context) => {
628
+ const headers = sharedHeaders("StartDataCollectionByAgentIds");
629
+ let body;
630
+ body = JSON.stringify((0, import_smithy_client._json)(input));
631
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
632
+ }, "se_StartDataCollectionByAgentIdsCommand");
633
+ var se_StartExportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
634
+ const headers = sharedHeaders("StartExportTask");
635
+ let body;
636
+ body = JSON.stringify(se_StartExportTaskRequest(input, context));
637
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
638
+ }, "se_StartExportTaskCommand");
639
+ var se_StartImportTaskCommand = /* @__PURE__ */ __name(async (input, context) => {
640
+ const headers = sharedHeaders("StartImportTask");
641
+ let body;
642
+ body = JSON.stringify(se_StartImportTaskRequest(input, context));
643
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
644
+ }, "se_StartImportTaskCommand");
645
+ var se_StopContinuousExportCommand = /* @__PURE__ */ __name(async (input, context) => {
646
+ const headers = sharedHeaders("StopContinuousExport");
647
+ let body;
648
+ body = JSON.stringify((0, import_smithy_client._json)(input));
649
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
650
+ }, "se_StopContinuousExportCommand");
651
+ var se_StopDataCollectionByAgentIdsCommand = /* @__PURE__ */ __name(async (input, context) => {
652
+ const headers = sharedHeaders("StopDataCollectionByAgentIds");
653
+ let body;
654
+ body = JSON.stringify((0, import_smithy_client._json)(input));
655
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
656
+ }, "se_StopDataCollectionByAgentIdsCommand");
657
+ var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
658
+ const headers = sharedHeaders("UpdateApplication");
659
+ let body;
660
+ body = JSON.stringify((0, import_smithy_client._json)(input));
661
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
662
+ }, "se_UpdateApplicationCommand");
663
+ var de_AssociateConfigurationItemsToApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
664
+ if (output.statusCode >= 300) {
665
+ return de_AssociateConfigurationItemsToApplicationCommandError(output, context);
666
+ }
667
+ const data = await parseBody(output.body, context);
668
+ let contents = {};
669
+ contents = (0, import_smithy_client._json)(data);
670
+ const response = {
671
+ $metadata: deserializeMetadata(output),
672
+ ...contents
673
+ };
674
+ return response;
675
+ }, "de_AssociateConfigurationItemsToApplicationCommand");
676
+ var de_AssociateConfigurationItemsToApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
677
+ const parsedOutput = {
678
+ ...output,
679
+ body: await parseErrorBody(output.body, context)
680
+ };
681
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
682
+ switch (errorCode) {
683
+ case "AuthorizationErrorException":
684
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
685
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
686
+ case "HomeRegionNotSetException":
687
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
688
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
689
+ case "InvalidParameterException":
690
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
691
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
692
+ case "InvalidParameterValueException":
693
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
694
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
695
+ case "ServerInternalErrorException":
696
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
697
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
698
+ default:
699
+ const parsedBody = parsedOutput.body;
700
+ return throwDefaultError({
701
+ output,
702
+ parsedBody,
703
+ errorCode
704
+ });
705
+ }
706
+ }, "de_AssociateConfigurationItemsToApplicationCommandError");
707
+ var de_BatchDeleteAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
708
+ if (output.statusCode >= 300) {
709
+ return de_BatchDeleteAgentsCommandError(output, context);
710
+ }
711
+ const data = await parseBody(output.body, context);
712
+ let contents = {};
713
+ contents = (0, import_smithy_client._json)(data);
714
+ const response = {
715
+ $metadata: deserializeMetadata(output),
716
+ ...contents
717
+ };
718
+ return response;
719
+ }, "de_BatchDeleteAgentsCommand");
720
+ var de_BatchDeleteAgentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
721
+ const parsedOutput = {
722
+ ...output,
723
+ body: await parseErrorBody(output.body, context)
724
+ };
725
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
726
+ switch (errorCode) {
727
+ case "AuthorizationErrorException":
728
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
729
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
730
+ case "InvalidParameterException":
731
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
732
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
733
+ case "InvalidParameterValueException":
734
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
735
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
736
+ case "ServerInternalErrorException":
737
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
738
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
739
+ default:
740
+ const parsedBody = parsedOutput.body;
741
+ return throwDefaultError({
742
+ output,
743
+ parsedBody,
744
+ errorCode
745
+ });
746
+ }
747
+ }, "de_BatchDeleteAgentsCommandError");
748
+ var de_BatchDeleteImportDataCommand = /* @__PURE__ */ __name(async (output, context) => {
749
+ if (output.statusCode >= 300) {
750
+ return de_BatchDeleteImportDataCommandError(output, context);
751
+ }
752
+ const data = await parseBody(output.body, context);
753
+ let contents = {};
754
+ contents = (0, import_smithy_client._json)(data);
755
+ const response = {
756
+ $metadata: deserializeMetadata(output),
757
+ ...contents
758
+ };
759
+ return response;
760
+ }, "de_BatchDeleteImportDataCommand");
761
+ var de_BatchDeleteImportDataCommandError = /* @__PURE__ */ __name(async (output, context) => {
762
+ const parsedOutput = {
763
+ ...output,
764
+ body: await parseErrorBody(output.body, context)
765
+ };
766
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
767
+ switch (errorCode) {
768
+ case "AuthorizationErrorException":
769
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
770
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
771
+ case "HomeRegionNotSetException":
772
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
773
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
774
+ case "InvalidParameterException":
775
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
776
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
777
+ case "InvalidParameterValueException":
778
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
779
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
780
+ case "ServerInternalErrorException":
781
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
782
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
783
+ default:
784
+ const parsedBody = parsedOutput.body;
785
+ return throwDefaultError({
786
+ output,
787
+ parsedBody,
788
+ errorCode
789
+ });
790
+ }
791
+ }, "de_BatchDeleteImportDataCommandError");
792
+ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
793
+ if (output.statusCode >= 300) {
794
+ return de_CreateApplicationCommandError(output, context);
795
+ }
796
+ const data = await parseBody(output.body, context);
797
+ let contents = {};
798
+ contents = (0, import_smithy_client._json)(data);
799
+ const response = {
800
+ $metadata: deserializeMetadata(output),
801
+ ...contents
802
+ };
803
+ return response;
804
+ }, "de_CreateApplicationCommand");
805
+ var de_CreateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
806
+ const parsedOutput = {
807
+ ...output,
808
+ body: await parseErrorBody(output.body, context)
809
+ };
810
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
811
+ switch (errorCode) {
812
+ case "AuthorizationErrorException":
813
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
814
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
815
+ case "HomeRegionNotSetException":
816
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
817
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
818
+ case "InvalidParameterException":
819
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
820
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
821
+ case "InvalidParameterValueException":
822
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
823
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
824
+ case "ServerInternalErrorException":
825
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
826
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
827
+ default:
828
+ const parsedBody = parsedOutput.body;
829
+ return throwDefaultError({
830
+ output,
831
+ parsedBody,
832
+ errorCode
833
+ });
834
+ }
835
+ }, "de_CreateApplicationCommandError");
836
+ var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
837
+ if (output.statusCode >= 300) {
838
+ return de_CreateTagsCommandError(output, context);
839
+ }
840
+ const data = await parseBody(output.body, context);
841
+ let contents = {};
842
+ contents = (0, import_smithy_client._json)(data);
843
+ const response = {
844
+ $metadata: deserializeMetadata(output),
845
+ ...contents
846
+ };
847
+ return response;
848
+ }, "de_CreateTagsCommand");
849
+ var de_CreateTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
850
+ const parsedOutput = {
851
+ ...output,
852
+ body: await parseErrorBody(output.body, context)
853
+ };
854
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
855
+ switch (errorCode) {
856
+ case "AuthorizationErrorException":
857
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
858
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
859
+ case "HomeRegionNotSetException":
860
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
861
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
862
+ case "InvalidParameterException":
863
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
864
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
865
+ case "InvalidParameterValueException":
866
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
867
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
868
+ case "ResourceNotFoundException":
869
+ case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
870
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
871
+ case "ServerInternalErrorException":
872
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
873
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
874
+ default:
875
+ const parsedBody = parsedOutput.body;
876
+ return throwDefaultError({
877
+ output,
878
+ parsedBody,
879
+ errorCode
880
+ });
881
+ }
882
+ }, "de_CreateTagsCommandError");
883
+ var de_DeleteApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
884
+ if (output.statusCode >= 300) {
885
+ return de_DeleteApplicationsCommandError(output, context);
886
+ }
887
+ const data = await parseBody(output.body, context);
888
+ let contents = {};
889
+ contents = (0, import_smithy_client._json)(data);
890
+ const response = {
891
+ $metadata: deserializeMetadata(output),
892
+ ...contents
893
+ };
894
+ return response;
895
+ }, "de_DeleteApplicationsCommand");
896
+ var de_DeleteApplicationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
897
+ const parsedOutput = {
898
+ ...output,
899
+ body: await parseErrorBody(output.body, context)
900
+ };
901
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
902
+ switch (errorCode) {
903
+ case "AuthorizationErrorException":
904
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
905
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
906
+ case "HomeRegionNotSetException":
907
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
908
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
909
+ case "InvalidParameterException":
910
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
911
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
912
+ case "InvalidParameterValueException":
913
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
914
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
915
+ case "ServerInternalErrorException":
916
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
917
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
918
+ default:
919
+ const parsedBody = parsedOutput.body;
920
+ return throwDefaultError({
921
+ output,
922
+ parsedBody,
923
+ errorCode
924
+ });
925
+ }
926
+ }, "de_DeleteApplicationsCommandError");
927
+ var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
928
+ if (output.statusCode >= 300) {
929
+ return de_DeleteTagsCommandError(output, context);
930
+ }
931
+ const data = await parseBody(output.body, context);
932
+ let contents = {};
933
+ contents = (0, import_smithy_client._json)(data);
934
+ const response = {
935
+ $metadata: deserializeMetadata(output),
936
+ ...contents
937
+ };
938
+ return response;
939
+ }, "de_DeleteTagsCommand");
940
+ var de_DeleteTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
941
+ const parsedOutput = {
942
+ ...output,
943
+ body: await parseErrorBody(output.body, context)
944
+ };
945
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
946
+ switch (errorCode) {
947
+ case "AuthorizationErrorException":
948
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
949
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
950
+ case "HomeRegionNotSetException":
951
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
952
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
953
+ case "InvalidParameterException":
954
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
955
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
956
+ case "InvalidParameterValueException":
957
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
958
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
959
+ case "ResourceNotFoundException":
960
+ case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
961
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
962
+ case "ServerInternalErrorException":
963
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
964
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
965
+ default:
966
+ const parsedBody = parsedOutput.body;
967
+ return throwDefaultError({
968
+ output,
969
+ parsedBody,
970
+ errorCode
971
+ });
972
+ }
973
+ }, "de_DeleteTagsCommandError");
974
+ var de_DescribeAgentsCommand = /* @__PURE__ */ __name(async (output, context) => {
975
+ if (output.statusCode >= 300) {
976
+ return de_DescribeAgentsCommandError(output, context);
977
+ }
978
+ const data = await parseBody(output.body, context);
979
+ let contents = {};
980
+ contents = (0, import_smithy_client._json)(data);
981
+ const response = {
982
+ $metadata: deserializeMetadata(output),
983
+ ...contents
984
+ };
985
+ return response;
986
+ }, "de_DescribeAgentsCommand");
987
+ var de_DescribeAgentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
988
+ const parsedOutput = {
989
+ ...output,
990
+ body: await parseErrorBody(output.body, context)
991
+ };
992
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
993
+ switch (errorCode) {
994
+ case "AuthorizationErrorException":
995
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
996
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
997
+ case "HomeRegionNotSetException":
998
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
999
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1000
+ case "InvalidParameterException":
1001
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1002
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1003
+ case "InvalidParameterValueException":
1004
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1005
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1006
+ case "ServerInternalErrorException":
1007
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1008
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1009
+ default:
1010
+ const parsedBody = parsedOutput.body;
1011
+ return throwDefaultError({
1012
+ output,
1013
+ parsedBody,
1014
+ errorCode
1015
+ });
1016
+ }
1017
+ }, "de_DescribeAgentsCommandError");
1018
+ var de_DescribeBatchDeleteConfigurationTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1019
+ if (output.statusCode >= 300) {
1020
+ return de_DescribeBatchDeleteConfigurationTaskCommandError(output, context);
1021
+ }
1022
+ const data = await parseBody(output.body, context);
1023
+ let contents = {};
1024
+ contents = de_DescribeBatchDeleteConfigurationTaskResponse(data, context);
1025
+ const response = {
1026
+ $metadata: deserializeMetadata(output),
1027
+ ...contents
1028
+ };
1029
+ return response;
1030
+ }, "de_DescribeBatchDeleteConfigurationTaskCommand");
1031
+ var de_DescribeBatchDeleteConfigurationTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1032
+ const parsedOutput = {
1033
+ ...output,
1034
+ body: await parseErrorBody(output.body, context)
1035
+ };
1036
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1037
+ switch (errorCode) {
1038
+ case "AuthorizationErrorException":
1039
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1040
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1041
+ case "HomeRegionNotSetException":
1042
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1043
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1044
+ case "InvalidParameterValueException":
1045
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1046
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1047
+ case "ServerInternalErrorException":
1048
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1049
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1050
+ default:
1051
+ const parsedBody = parsedOutput.body;
1052
+ return throwDefaultError({
1053
+ output,
1054
+ parsedBody,
1055
+ errorCode
1056
+ });
1057
+ }
1058
+ }, "de_DescribeBatchDeleteConfigurationTaskCommandError");
1059
+ var de_DescribeConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1060
+ if (output.statusCode >= 300) {
1061
+ return de_DescribeConfigurationsCommandError(output, context);
1062
+ }
1063
+ const data = await parseBody(output.body, context);
1064
+ let contents = {};
1065
+ contents = (0, import_smithy_client._json)(data);
1066
+ const response = {
1067
+ $metadata: deserializeMetadata(output),
1068
+ ...contents
1069
+ };
1070
+ return response;
1071
+ }, "de_DescribeConfigurationsCommand");
1072
+ var de_DescribeConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1073
+ const parsedOutput = {
1074
+ ...output,
1075
+ body: await parseErrorBody(output.body, context)
1076
+ };
1077
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1078
+ switch (errorCode) {
1079
+ case "AuthorizationErrorException":
1080
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1081
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1082
+ case "HomeRegionNotSetException":
1083
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1084
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1085
+ case "InvalidParameterException":
1086
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1087
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1088
+ case "InvalidParameterValueException":
1089
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1090
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1091
+ case "ServerInternalErrorException":
1092
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1093
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1094
+ default:
1095
+ const parsedBody = parsedOutput.body;
1096
+ return throwDefaultError({
1097
+ output,
1098
+ parsedBody,
1099
+ errorCode
1100
+ });
1101
+ }
1102
+ }, "de_DescribeConfigurationsCommandError");
1103
+ var de_DescribeContinuousExportsCommand = /* @__PURE__ */ __name(async (output, context) => {
1104
+ if (output.statusCode >= 300) {
1105
+ return de_DescribeContinuousExportsCommandError(output, context);
1106
+ }
1107
+ const data = await parseBody(output.body, context);
1108
+ let contents = {};
1109
+ contents = de_DescribeContinuousExportsResponse(data, context);
1110
+ const response = {
1111
+ $metadata: deserializeMetadata(output),
1112
+ ...contents
1113
+ };
1114
+ return response;
1115
+ }, "de_DescribeContinuousExportsCommand");
1116
+ var de_DescribeContinuousExportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1117
+ const parsedOutput = {
1118
+ ...output,
1119
+ body: await parseErrorBody(output.body, context)
1120
+ };
1121
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1122
+ switch (errorCode) {
1123
+ case "AuthorizationErrorException":
1124
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1125
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1126
+ case "HomeRegionNotSetException":
1127
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1128
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1129
+ case "InvalidParameterException":
1130
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1131
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1132
+ case "InvalidParameterValueException":
1133
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1134
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1135
+ case "OperationNotPermittedException":
1136
+ case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
1137
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1138
+ case "ResourceNotFoundException":
1139
+ case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
1140
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1141
+ case "ServerInternalErrorException":
1142
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1143
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1144
+ default:
1145
+ const parsedBody = parsedOutput.body;
1146
+ return throwDefaultError({
1147
+ output,
1148
+ parsedBody,
1149
+ errorCode
1150
+ });
1151
+ }
1152
+ }, "de_DescribeContinuousExportsCommandError");
1153
+ var de_DescribeExportConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1154
+ if (output.statusCode >= 300) {
1155
+ return de_DescribeExportConfigurationsCommandError(output, context);
1156
+ }
1157
+ const data = await parseBody(output.body, context);
1158
+ let contents = {};
1159
+ contents = de_DescribeExportConfigurationsResponse(data, context);
1160
+ const response = {
1161
+ $metadata: deserializeMetadata(output),
1162
+ ...contents
1163
+ };
1164
+ return response;
1165
+ }, "de_DescribeExportConfigurationsCommand");
1166
+ var de_DescribeExportConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1167
+ const parsedOutput = {
1168
+ ...output,
1169
+ body: await parseErrorBody(output.body, context)
1170
+ };
1171
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1172
+ switch (errorCode) {
1173
+ case "AuthorizationErrorException":
1174
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1175
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1176
+ case "HomeRegionNotSetException":
1177
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1178
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1179
+ case "InvalidParameterException":
1180
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1181
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1182
+ case "InvalidParameterValueException":
1183
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1184
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1185
+ case "ResourceNotFoundException":
1186
+ case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
1187
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1188
+ case "ServerInternalErrorException":
1189
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1190
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1191
+ default:
1192
+ const parsedBody = parsedOutput.body;
1193
+ return throwDefaultError({
1194
+ output,
1195
+ parsedBody,
1196
+ errorCode
1197
+ });
1198
+ }
1199
+ }, "de_DescribeExportConfigurationsCommandError");
1200
+ var de_DescribeExportTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1201
+ if (output.statusCode >= 300) {
1202
+ return de_DescribeExportTasksCommandError(output, context);
1203
+ }
1204
+ const data = await parseBody(output.body, context);
1205
+ let contents = {};
1206
+ contents = de_DescribeExportTasksResponse(data, context);
1207
+ const response = {
1208
+ $metadata: deserializeMetadata(output),
1209
+ ...contents
1210
+ };
1211
+ return response;
1212
+ }, "de_DescribeExportTasksCommand");
1213
+ var de_DescribeExportTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1214
+ const parsedOutput = {
1215
+ ...output,
1216
+ body: await parseErrorBody(output.body, context)
1217
+ };
1218
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1219
+ switch (errorCode) {
1220
+ case "AuthorizationErrorException":
1221
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1222
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1223
+ case "HomeRegionNotSetException":
1224
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1225
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1226
+ case "InvalidParameterException":
1227
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1228
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1229
+ case "InvalidParameterValueException":
1230
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1231
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1232
+ case "ServerInternalErrorException":
1233
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1234
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1235
+ default:
1236
+ const parsedBody = parsedOutput.body;
1237
+ return throwDefaultError({
1238
+ output,
1239
+ parsedBody,
1240
+ errorCode
1241
+ });
1242
+ }
1243
+ }, "de_DescribeExportTasksCommandError");
1244
+ var de_DescribeImportTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
1245
+ if (output.statusCode >= 300) {
1246
+ return de_DescribeImportTasksCommandError(output, context);
1247
+ }
1248
+ const data = await parseBody(output.body, context);
1249
+ let contents = {};
1250
+ contents = de_DescribeImportTasksResponse(data, context);
1251
+ const response = {
1252
+ $metadata: deserializeMetadata(output),
1253
+ ...contents
1254
+ };
1255
+ return response;
1256
+ }, "de_DescribeImportTasksCommand");
1257
+ var de_DescribeImportTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
1258
+ const parsedOutput = {
1259
+ ...output,
1260
+ body: await parseErrorBody(output.body, context)
1261
+ };
1262
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1263
+ switch (errorCode) {
1264
+ case "AuthorizationErrorException":
1265
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1266
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1267
+ case "HomeRegionNotSetException":
1268
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1269
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1270
+ case "InvalidParameterException":
1271
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1272
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1273
+ case "InvalidParameterValueException":
1274
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1275
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1276
+ case "ServerInternalErrorException":
1277
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1278
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1279
+ default:
1280
+ const parsedBody = parsedOutput.body;
1281
+ return throwDefaultError({
1282
+ output,
1283
+ parsedBody,
1284
+ errorCode
1285
+ });
1286
+ }
1287
+ }, "de_DescribeImportTasksCommandError");
1288
+ var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
1289
+ if (output.statusCode >= 300) {
1290
+ return de_DescribeTagsCommandError(output, context);
1291
+ }
1292
+ const data = await parseBody(output.body, context);
1293
+ let contents = {};
1294
+ contents = de_DescribeTagsResponse(data, context);
1295
+ const response = {
1296
+ $metadata: deserializeMetadata(output),
1297
+ ...contents
1298
+ };
1299
+ return response;
1300
+ }, "de_DescribeTagsCommand");
1301
+ var de_DescribeTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1302
+ const parsedOutput = {
1303
+ ...output,
1304
+ body: await parseErrorBody(output.body, context)
1305
+ };
1306
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1307
+ switch (errorCode) {
1308
+ case "AuthorizationErrorException":
1309
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1310
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1311
+ case "HomeRegionNotSetException":
1312
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1313
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1314
+ case "InvalidParameterException":
1315
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1316
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1317
+ case "InvalidParameterValueException":
1318
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1319
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1320
+ case "ResourceNotFoundException":
1321
+ case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
1322
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1323
+ case "ServerInternalErrorException":
1324
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1325
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1326
+ default:
1327
+ const parsedBody = parsedOutput.body;
1328
+ return throwDefaultError({
1329
+ output,
1330
+ parsedBody,
1331
+ errorCode
1332
+ });
1333
+ }
1334
+ }, "de_DescribeTagsCommandError");
1335
+ var de_DisassociateConfigurationItemsFromApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1336
+ if (output.statusCode >= 300) {
1337
+ return de_DisassociateConfigurationItemsFromApplicationCommandError(output, context);
1338
+ }
1339
+ const data = await parseBody(output.body, context);
1340
+ let contents = {};
1341
+ contents = (0, import_smithy_client._json)(data);
1342
+ const response = {
1343
+ $metadata: deserializeMetadata(output),
1344
+ ...contents
1345
+ };
1346
+ return response;
1347
+ }, "de_DisassociateConfigurationItemsFromApplicationCommand");
1348
+ var de_DisassociateConfigurationItemsFromApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1349
+ const parsedOutput = {
1350
+ ...output,
1351
+ body: await parseErrorBody(output.body, context)
1352
+ };
1353
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1354
+ switch (errorCode) {
1355
+ case "AuthorizationErrorException":
1356
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1357
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1358
+ case "HomeRegionNotSetException":
1359
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1360
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1361
+ case "InvalidParameterException":
1362
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1363
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1364
+ case "InvalidParameterValueException":
1365
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1366
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1367
+ case "ServerInternalErrorException":
1368
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1369
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1370
+ default:
1371
+ const parsedBody = parsedOutput.body;
1372
+ return throwDefaultError({
1373
+ output,
1374
+ parsedBody,
1375
+ errorCode
1376
+ });
1377
+ }
1378
+ }, "de_DisassociateConfigurationItemsFromApplicationCommandError");
1379
+ var de_ExportConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1380
+ if (output.statusCode >= 300) {
1381
+ return de_ExportConfigurationsCommandError(output, context);
1382
+ }
1383
+ const data = await parseBody(output.body, context);
1384
+ let contents = {};
1385
+ contents = (0, import_smithy_client._json)(data);
1386
+ const response = {
1387
+ $metadata: deserializeMetadata(output),
1388
+ ...contents
1389
+ };
1390
+ return response;
1391
+ }, "de_ExportConfigurationsCommand");
1392
+ var de_ExportConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1393
+ const parsedOutput = {
1394
+ ...output,
1395
+ body: await parseErrorBody(output.body, context)
1396
+ };
1397
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1398
+ switch (errorCode) {
1399
+ case "AuthorizationErrorException":
1400
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1401
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1402
+ case "HomeRegionNotSetException":
1403
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1404
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1405
+ case "InvalidParameterException":
1406
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1407
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1408
+ case "InvalidParameterValueException":
1409
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1410
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1411
+ case "OperationNotPermittedException":
1412
+ case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
1413
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1414
+ case "ServerInternalErrorException":
1415
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1416
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1417
+ default:
1418
+ const parsedBody = parsedOutput.body;
1419
+ return throwDefaultError({
1420
+ output,
1421
+ parsedBody,
1422
+ errorCode
1423
+ });
1424
+ }
1425
+ }, "de_ExportConfigurationsCommandError");
1426
+ var de_GetDiscoverySummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
1427
+ if (output.statusCode >= 300) {
1428
+ return de_GetDiscoverySummaryCommandError(output, context);
1429
+ }
1430
+ const data = await parseBody(output.body, context);
1431
+ let contents = {};
1432
+ contents = (0, import_smithy_client._json)(data);
1433
+ const response = {
1434
+ $metadata: deserializeMetadata(output),
1435
+ ...contents
1436
+ };
1437
+ return response;
1438
+ }, "de_GetDiscoverySummaryCommand");
1439
+ var de_GetDiscoverySummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1440
+ const parsedOutput = {
1441
+ ...output,
1442
+ body: await parseErrorBody(output.body, context)
1443
+ };
1444
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1445
+ switch (errorCode) {
1446
+ case "AuthorizationErrorException":
1447
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1448
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1449
+ case "HomeRegionNotSetException":
1450
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1451
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1452
+ case "InvalidParameterException":
1453
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1454
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1455
+ case "InvalidParameterValueException":
1456
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1457
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1458
+ case "ServerInternalErrorException":
1459
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1460
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1461
+ default:
1462
+ const parsedBody = parsedOutput.body;
1463
+ return throwDefaultError({
1464
+ output,
1465
+ parsedBody,
1466
+ errorCode
1467
+ });
1468
+ }
1469
+ }, "de_GetDiscoverySummaryCommandError");
1470
+ var de_ListConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1471
+ if (output.statusCode >= 300) {
1472
+ return de_ListConfigurationsCommandError(output, context);
1473
+ }
1474
+ const data = await parseBody(output.body, context);
1475
+ let contents = {};
1476
+ contents = (0, import_smithy_client._json)(data);
1477
+ const response = {
1478
+ $metadata: deserializeMetadata(output),
1479
+ ...contents
1480
+ };
1481
+ return response;
1482
+ }, "de_ListConfigurationsCommand");
1483
+ var de_ListConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1484
+ const parsedOutput = {
1485
+ ...output,
1486
+ body: await parseErrorBody(output.body, context)
1487
+ };
1488
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1489
+ switch (errorCode) {
1490
+ case "AuthorizationErrorException":
1491
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1492
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1493
+ case "HomeRegionNotSetException":
1494
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1495
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1496
+ case "InvalidParameterException":
1497
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1498
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1499
+ case "InvalidParameterValueException":
1500
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1501
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1502
+ case "ResourceNotFoundException":
1503
+ case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
1504
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1505
+ case "ServerInternalErrorException":
1506
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1507
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1508
+ default:
1509
+ const parsedBody = parsedOutput.body;
1510
+ return throwDefaultError({
1511
+ output,
1512
+ parsedBody,
1513
+ errorCode
1514
+ });
1515
+ }
1516
+ }, "de_ListConfigurationsCommandError");
1517
+ var de_ListServerNeighborsCommand = /* @__PURE__ */ __name(async (output, context) => {
1518
+ if (output.statusCode >= 300) {
1519
+ return de_ListServerNeighborsCommandError(output, context);
1520
+ }
1521
+ const data = await parseBody(output.body, context);
1522
+ let contents = {};
1523
+ contents = (0, import_smithy_client._json)(data);
1524
+ const response = {
1525
+ $metadata: deserializeMetadata(output),
1526
+ ...contents
1527
+ };
1528
+ return response;
1529
+ }, "de_ListServerNeighborsCommand");
1530
+ var de_ListServerNeighborsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1531
+ const parsedOutput = {
1532
+ ...output,
1533
+ body: await parseErrorBody(output.body, context)
1534
+ };
1535
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1536
+ switch (errorCode) {
1537
+ case "AuthorizationErrorException":
1538
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1539
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1540
+ case "HomeRegionNotSetException":
1541
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1542
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1543
+ case "InvalidParameterException":
1544
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1545
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1546
+ case "InvalidParameterValueException":
1547
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1548
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1549
+ case "ServerInternalErrorException":
1550
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1551
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1552
+ default:
1553
+ const parsedBody = parsedOutput.body;
1554
+ return throwDefaultError({
1555
+ output,
1556
+ parsedBody,
1557
+ errorCode
1558
+ });
1559
+ }
1560
+ }, "de_ListServerNeighborsCommandError");
1561
+ var de_StartBatchDeleteConfigurationTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1562
+ if (output.statusCode >= 300) {
1563
+ return de_StartBatchDeleteConfigurationTaskCommandError(output, context);
1564
+ }
1565
+ const data = await parseBody(output.body, context);
1566
+ let contents = {};
1567
+ contents = (0, import_smithy_client._json)(data);
1568
+ const response = {
1569
+ $metadata: deserializeMetadata(output),
1570
+ ...contents
1571
+ };
1572
+ return response;
1573
+ }, "de_StartBatchDeleteConfigurationTaskCommand");
1574
+ var de_StartBatchDeleteConfigurationTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1575
+ const parsedOutput = {
1576
+ ...output,
1577
+ body: await parseErrorBody(output.body, context)
1578
+ };
1579
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1580
+ switch (errorCode) {
1581
+ case "AuthorizationErrorException":
1582
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1583
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1584
+ case "HomeRegionNotSetException":
1585
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1586
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1587
+ case "InvalidParameterValueException":
1588
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1589
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1590
+ case "LimitExceededException":
1591
+ case "com.amazonaws.applicationdiscoveryservice#LimitExceededException":
1592
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1593
+ case "OperationNotPermittedException":
1594
+ case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
1595
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1596
+ case "ServerInternalErrorException":
1597
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1598
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1599
+ default:
1600
+ const parsedBody = parsedOutput.body;
1601
+ return throwDefaultError({
1602
+ output,
1603
+ parsedBody,
1604
+ errorCode
1605
+ });
1606
+ }
1607
+ }, "de_StartBatchDeleteConfigurationTaskCommandError");
1608
+ var de_StartContinuousExportCommand = /* @__PURE__ */ __name(async (output, context) => {
1609
+ if (output.statusCode >= 300) {
1610
+ return de_StartContinuousExportCommandError(output, context);
1611
+ }
1612
+ const data = await parseBody(output.body, context);
1613
+ let contents = {};
1614
+ contents = de_StartContinuousExportResponse(data, context);
1615
+ const response = {
1616
+ $metadata: deserializeMetadata(output),
1617
+ ...contents
1618
+ };
1619
+ return response;
1620
+ }, "de_StartContinuousExportCommand");
1621
+ var de_StartContinuousExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
1622
+ const parsedOutput = {
1623
+ ...output,
1624
+ body: await parseErrorBody(output.body, context)
1625
+ };
1626
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1627
+ switch (errorCode) {
1628
+ case "AuthorizationErrorException":
1629
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1630
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1631
+ case "ConflictErrorException":
1632
+ case "com.amazonaws.applicationdiscoveryservice#ConflictErrorException":
1633
+ throw await de_ConflictErrorExceptionRes(parsedOutput, context);
1634
+ case "HomeRegionNotSetException":
1635
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1636
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1637
+ case "InvalidParameterException":
1638
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1639
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1640
+ case "InvalidParameterValueException":
1641
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1642
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1643
+ case "OperationNotPermittedException":
1644
+ case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
1645
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1646
+ case "ResourceInUseException":
1647
+ case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
1648
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1649
+ case "ServerInternalErrorException":
1650
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1651
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1652
+ default:
1653
+ const parsedBody = parsedOutput.body;
1654
+ return throwDefaultError({
1655
+ output,
1656
+ parsedBody,
1657
+ errorCode
1658
+ });
1659
+ }
1660
+ }, "de_StartContinuousExportCommandError");
1661
+ var de_StartDataCollectionByAgentIdsCommand = /* @__PURE__ */ __name(async (output, context) => {
1662
+ if (output.statusCode >= 300) {
1663
+ return de_StartDataCollectionByAgentIdsCommandError(output, context);
1664
+ }
1665
+ const data = await parseBody(output.body, context);
1666
+ let contents = {};
1667
+ contents = (0, import_smithy_client._json)(data);
1668
+ const response = {
1669
+ $metadata: deserializeMetadata(output),
1670
+ ...contents
1671
+ };
1672
+ return response;
1673
+ }, "de_StartDataCollectionByAgentIdsCommand");
1674
+ var de_StartDataCollectionByAgentIdsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1675
+ const parsedOutput = {
1676
+ ...output,
1677
+ body: await parseErrorBody(output.body, context)
1678
+ };
1679
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1680
+ switch (errorCode) {
1681
+ case "AuthorizationErrorException":
1682
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1683
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1684
+ case "HomeRegionNotSetException":
1685
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1686
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1687
+ case "InvalidParameterException":
1688
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1689
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1690
+ case "InvalidParameterValueException":
1691
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1692
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1693
+ case "ServerInternalErrorException":
1694
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1695
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1696
+ default:
1697
+ const parsedBody = parsedOutput.body;
1698
+ return throwDefaultError({
1699
+ output,
1700
+ parsedBody,
1701
+ errorCode
1702
+ });
1703
+ }
1704
+ }, "de_StartDataCollectionByAgentIdsCommandError");
1705
+ var de_StartExportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1706
+ if (output.statusCode >= 300) {
1707
+ return de_StartExportTaskCommandError(output, context);
1708
+ }
1709
+ const data = await parseBody(output.body, context);
1710
+ let contents = {};
1711
+ contents = (0, import_smithy_client._json)(data);
1712
+ const response = {
1713
+ $metadata: deserializeMetadata(output),
1714
+ ...contents
1715
+ };
1716
+ return response;
1717
+ }, "de_StartExportTaskCommand");
1718
+ var de_StartExportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1719
+ const parsedOutput = {
1720
+ ...output,
1721
+ body: await parseErrorBody(output.body, context)
1722
+ };
1723
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1724
+ switch (errorCode) {
1725
+ case "AuthorizationErrorException":
1726
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1727
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1728
+ case "HomeRegionNotSetException":
1729
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1730
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1731
+ case "InvalidParameterException":
1732
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1733
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1734
+ case "InvalidParameterValueException":
1735
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1736
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1737
+ case "OperationNotPermittedException":
1738
+ case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
1739
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1740
+ case "ServerInternalErrorException":
1741
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1742
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1743
+ default:
1744
+ const parsedBody = parsedOutput.body;
1745
+ return throwDefaultError({
1746
+ output,
1747
+ parsedBody,
1748
+ errorCode
1749
+ });
1750
+ }
1751
+ }, "de_StartExportTaskCommandError");
1752
+ var de_StartImportTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
1753
+ if (output.statusCode >= 300) {
1754
+ return de_StartImportTaskCommandError(output, context);
1755
+ }
1756
+ const data = await parseBody(output.body, context);
1757
+ let contents = {};
1758
+ contents = de_StartImportTaskResponse(data, context);
1759
+ const response = {
1760
+ $metadata: deserializeMetadata(output),
1761
+ ...contents
1762
+ };
1763
+ return response;
1764
+ }, "de_StartImportTaskCommand");
1765
+ var de_StartImportTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
1766
+ const parsedOutput = {
1767
+ ...output,
1768
+ body: await parseErrorBody(output.body, context)
1769
+ };
1770
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1771
+ switch (errorCode) {
1772
+ case "AuthorizationErrorException":
1773
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1774
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1775
+ case "HomeRegionNotSetException":
1776
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1777
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1778
+ case "InvalidParameterException":
1779
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1780
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1781
+ case "InvalidParameterValueException":
1782
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1783
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1784
+ case "ResourceInUseException":
1785
+ case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
1786
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1787
+ case "ServerInternalErrorException":
1788
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1789
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1790
+ default:
1791
+ const parsedBody = parsedOutput.body;
1792
+ return throwDefaultError({
1793
+ output,
1794
+ parsedBody,
1795
+ errorCode
1796
+ });
1797
+ }
1798
+ }, "de_StartImportTaskCommandError");
1799
+ var de_StopContinuousExportCommand = /* @__PURE__ */ __name(async (output, context) => {
1800
+ if (output.statusCode >= 300) {
1801
+ return de_StopContinuousExportCommandError(output, context);
1802
+ }
1803
+ const data = await parseBody(output.body, context);
1804
+ let contents = {};
1805
+ contents = de_StopContinuousExportResponse(data, context);
1806
+ const response = {
1807
+ $metadata: deserializeMetadata(output),
1808
+ ...contents
1809
+ };
1810
+ return response;
1811
+ }, "de_StopContinuousExportCommand");
1812
+ var de_StopContinuousExportCommandError = /* @__PURE__ */ __name(async (output, context) => {
1813
+ const parsedOutput = {
1814
+ ...output,
1815
+ body: await parseErrorBody(output.body, context)
1816
+ };
1817
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1818
+ switch (errorCode) {
1819
+ case "AuthorizationErrorException":
1820
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1821
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1822
+ case "HomeRegionNotSetException":
1823
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1824
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1825
+ case "InvalidParameterException":
1826
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1827
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1828
+ case "InvalidParameterValueException":
1829
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1830
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1831
+ case "OperationNotPermittedException":
1832
+ case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
1833
+ throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
1834
+ case "ResourceInUseException":
1835
+ case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
1836
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1837
+ case "ResourceNotFoundException":
1838
+ case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
1839
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1840
+ case "ServerInternalErrorException":
1841
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1842
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1843
+ default:
1844
+ const parsedBody = parsedOutput.body;
1845
+ return throwDefaultError({
1846
+ output,
1847
+ parsedBody,
1848
+ errorCode
1849
+ });
1850
+ }
1851
+ }, "de_StopContinuousExportCommandError");
1852
+ var de_StopDataCollectionByAgentIdsCommand = /* @__PURE__ */ __name(async (output, context) => {
1853
+ if (output.statusCode >= 300) {
1854
+ return de_StopDataCollectionByAgentIdsCommandError(output, context);
1855
+ }
1856
+ const data = await parseBody(output.body, context);
1857
+ let contents = {};
1858
+ contents = (0, import_smithy_client._json)(data);
1859
+ const response = {
1860
+ $metadata: deserializeMetadata(output),
1861
+ ...contents
1862
+ };
1863
+ return response;
1864
+ }, "de_StopDataCollectionByAgentIdsCommand");
1865
+ var de_StopDataCollectionByAgentIdsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1866
+ const parsedOutput = {
1867
+ ...output,
1868
+ body: await parseErrorBody(output.body, context)
1869
+ };
1870
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1871
+ switch (errorCode) {
1872
+ case "AuthorizationErrorException":
1873
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1874
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1875
+ case "HomeRegionNotSetException":
1876
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1877
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1878
+ case "InvalidParameterException":
1879
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1880
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1881
+ case "InvalidParameterValueException":
1882
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1883
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1884
+ case "ServerInternalErrorException":
1885
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1886
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1887
+ default:
1888
+ const parsedBody = parsedOutput.body;
1889
+ return throwDefaultError({
1890
+ output,
1891
+ parsedBody,
1892
+ errorCode
1893
+ });
1894
+ }
1895
+ }, "de_StopDataCollectionByAgentIdsCommandError");
1896
+ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1897
+ if (output.statusCode >= 300) {
1898
+ return de_UpdateApplicationCommandError(output, context);
1899
+ }
1900
+ const data = await parseBody(output.body, context);
1901
+ let contents = {};
1902
+ contents = (0, import_smithy_client._json)(data);
1903
+ const response = {
1904
+ $metadata: deserializeMetadata(output),
1905
+ ...contents
1906
+ };
1907
+ return response;
1908
+ }, "de_UpdateApplicationCommand");
1909
+ var de_UpdateApplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1910
+ const parsedOutput = {
1911
+ ...output,
1912
+ body: await parseErrorBody(output.body, context)
1913
+ };
1914
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1915
+ switch (errorCode) {
1916
+ case "AuthorizationErrorException":
1917
+ case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
1918
+ throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
1919
+ case "HomeRegionNotSetException":
1920
+ case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
1921
+ throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
1922
+ case "InvalidParameterException":
1923
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
1924
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1925
+ case "InvalidParameterValueException":
1926
+ case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
1927
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
1928
+ case "ServerInternalErrorException":
1929
+ case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
1930
+ throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
1931
+ default:
1932
+ const parsedBody = parsedOutput.body;
1933
+ return throwDefaultError({
1934
+ output,
1935
+ parsedBody,
1936
+ errorCode
1937
+ });
1938
+ }
1939
+ }, "de_UpdateApplicationCommandError");
1940
+ var de_AuthorizationErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1941
+ const body = parsedOutput.body;
1942
+ const deserialized = (0, import_smithy_client._json)(body);
1943
+ const exception = new AuthorizationErrorException({
1944
+ $metadata: deserializeMetadata(parsedOutput),
1945
+ ...deserialized
1946
+ });
1947
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1948
+ }, "de_AuthorizationErrorExceptionRes");
1949
+ var de_ConflictErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1950
+ const body = parsedOutput.body;
1951
+ const deserialized = (0, import_smithy_client._json)(body);
1952
+ const exception = new ConflictErrorException({
1953
+ $metadata: deserializeMetadata(parsedOutput),
1954
+ ...deserialized
1955
+ });
1956
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1957
+ }, "de_ConflictErrorExceptionRes");
1958
+ var de_HomeRegionNotSetExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1959
+ const body = parsedOutput.body;
1960
+ const deserialized = (0, import_smithy_client._json)(body);
1961
+ const exception = new HomeRegionNotSetException({
1962
+ $metadata: deserializeMetadata(parsedOutput),
1963
+ ...deserialized
1964
+ });
1965
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1966
+ }, "de_HomeRegionNotSetExceptionRes");
1967
+ var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1968
+ const body = parsedOutput.body;
1969
+ const deserialized = (0, import_smithy_client._json)(body);
1970
+ const exception = new InvalidParameterException({
1971
+ $metadata: deserializeMetadata(parsedOutput),
1972
+ ...deserialized
1973
+ });
1974
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1975
+ }, "de_InvalidParameterExceptionRes");
1976
+ var de_InvalidParameterValueExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1977
+ const body = parsedOutput.body;
1978
+ const deserialized = (0, import_smithy_client._json)(body);
1979
+ const exception = new InvalidParameterValueException({
1980
+ $metadata: deserializeMetadata(parsedOutput),
1981
+ ...deserialized
1982
+ });
1983
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1984
+ }, "de_InvalidParameterValueExceptionRes");
1985
+ var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1986
+ const body = parsedOutput.body;
1987
+ const deserialized = (0, import_smithy_client._json)(body);
1988
+ const exception = new LimitExceededException({
1989
+ $metadata: deserializeMetadata(parsedOutput),
1990
+ ...deserialized
1991
+ });
1992
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1993
+ }, "de_LimitExceededExceptionRes");
1994
+ var de_OperationNotPermittedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1995
+ const body = parsedOutput.body;
1996
+ const deserialized = (0, import_smithy_client._json)(body);
1997
+ const exception = new OperationNotPermittedException({
1998
+ $metadata: deserializeMetadata(parsedOutput),
1999
+ ...deserialized
2000
+ });
2001
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2002
+ }, "de_OperationNotPermittedExceptionRes");
2003
+ var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2004
+ const body = parsedOutput.body;
2005
+ const deserialized = (0, import_smithy_client._json)(body);
2006
+ const exception = new ResourceInUseException({
2007
+ $metadata: deserializeMetadata(parsedOutput),
2008
+ ...deserialized
2009
+ });
2010
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2011
+ }, "de_ResourceInUseExceptionRes");
2012
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2013
+ const body = parsedOutput.body;
2014
+ const deserialized = (0, import_smithy_client._json)(body);
2015
+ const exception = new ResourceNotFoundException({
2016
+ $metadata: deserializeMetadata(parsedOutput),
2017
+ ...deserialized
2018
+ });
2019
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2020
+ }, "de_ResourceNotFoundExceptionRes");
2021
+ var de_ServerInternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2022
+ const body = parsedOutput.body;
2023
+ const deserialized = (0, import_smithy_client._json)(body);
2024
+ const exception = new ServerInternalErrorException({
2025
+ $metadata: deserializeMetadata(parsedOutput),
2026
+ ...deserialized
2027
+ });
2028
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2029
+ }, "de_ServerInternalErrorExceptionRes");
2030
+ var se_Ec2RecommendationsExportPreferences = /* @__PURE__ */ __name((input, context) => {
2031
+ return (0, import_smithy_client.take)(input, {
2032
+ cpuPerformanceMetricBasis: (_) => se_UsageMetricBasis(_, context),
2033
+ enabled: [],
2034
+ excludedInstanceTypes: import_smithy_client._json,
2035
+ preferredRegion: [],
2036
+ ramPerformanceMetricBasis: (_) => se_UsageMetricBasis(_, context),
2037
+ reservedInstanceOptions: import_smithy_client._json,
2038
+ tenancy: []
2039
+ });
2040
+ }, "se_Ec2RecommendationsExportPreferences");
2041
+ var se_ExportPreferences = /* @__PURE__ */ __name((input, context) => {
2042
+ return ExportPreferences.visit(input, {
2043
+ ec2RecommendationsPreferences: (value) => ({
2044
+ ec2RecommendationsPreferences: se_Ec2RecommendationsExportPreferences(value, context)
2045
+ }),
2046
+ _: (name, value) => ({ name: value })
2047
+ });
2048
+ }, "se_ExportPreferences");
2049
+ var se_StartExportTaskRequest = /* @__PURE__ */ __name((input, context) => {
2050
+ return (0, import_smithy_client.take)(input, {
2051
+ endTime: (_) => Math.round(_.getTime() / 1e3),
2052
+ exportDataFormat: import_smithy_client._json,
2053
+ filters: import_smithy_client._json,
2054
+ preferences: (_) => se_ExportPreferences(_, context),
2055
+ startTime: (_) => Math.round(_.getTime() / 1e3)
2056
+ });
2057
+ }, "se_StartExportTaskRequest");
2058
+ var se_StartImportTaskRequest = /* @__PURE__ */ __name((input, context) => {
2059
+ return (0, import_smithy_client.take)(input, {
2060
+ clientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
2061
+ importUrl: [],
2062
+ name: []
2063
+ });
2064
+ }, "se_StartImportTaskRequest");
2065
+ var se_UsageMetricBasis = /* @__PURE__ */ __name((input, context) => {
2066
+ return (0, import_smithy_client.take)(input, {
2067
+ name: [],
2068
+ percentageAdjust: import_smithy_client.serializeFloat
2069
+ });
2070
+ }, "se_UsageMetricBasis");
2071
+ var de_BatchDeleteConfigurationTask = /* @__PURE__ */ __name((output, context) => {
2072
+ return (0, import_smithy_client.take)(output, {
2073
+ configurationType: import_smithy_client.expectString,
2074
+ deletedConfigurations: import_smithy_client._json,
2075
+ deletionWarnings: import_smithy_client._json,
2076
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2077
+ failedConfigurations: import_smithy_client._json,
2078
+ requestedConfigurations: import_smithy_client._json,
2079
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2080
+ status: import_smithy_client.expectString,
2081
+ taskId: import_smithy_client.expectString
2082
+ });
2083
+ }, "de_BatchDeleteConfigurationTask");
2084
+ var de_ConfigurationTag = /* @__PURE__ */ __name((output, context) => {
2085
+ return (0, import_smithy_client.take)(output, {
2086
+ configurationId: import_smithy_client.expectString,
2087
+ configurationType: import_smithy_client.expectString,
2088
+ key: import_smithy_client.expectString,
2089
+ timeOfCreation: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2090
+ value: import_smithy_client.expectString
2091
+ });
2092
+ }, "de_ConfigurationTag");
2093
+ var de_ConfigurationTagSet = /* @__PURE__ */ __name((output, context) => {
2094
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2095
+ return de_ConfigurationTag(entry, context);
2096
+ });
2097
+ return retVal;
2098
+ }, "de_ConfigurationTagSet");
2099
+ var de_ContinuousExportDescription = /* @__PURE__ */ __name((output, context) => {
2100
+ return (0, import_smithy_client.take)(output, {
2101
+ dataSource: import_smithy_client.expectString,
2102
+ exportId: import_smithy_client.expectString,
2103
+ s3Bucket: import_smithy_client.expectString,
2104
+ schemaStorageConfig: import_smithy_client._json,
2105
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2106
+ status: import_smithy_client.expectString,
2107
+ statusDetail: import_smithy_client.expectString,
2108
+ stopTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2109
+ });
2110
+ }, "de_ContinuousExportDescription");
2111
+ var de_ContinuousExportDescriptions = /* @__PURE__ */ __name((output, context) => {
2112
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2113
+ return de_ContinuousExportDescription(entry, context);
2114
+ });
2115
+ return retVal;
2116
+ }, "de_ContinuousExportDescriptions");
2117
+ var de_DescribeBatchDeleteConfigurationTaskResponse = /* @__PURE__ */ __name((output, context) => {
2118
+ return (0, import_smithy_client.take)(output, {
2119
+ task: (_) => de_BatchDeleteConfigurationTask(_, context)
2120
+ });
2121
+ }, "de_DescribeBatchDeleteConfigurationTaskResponse");
2122
+ var de_DescribeContinuousExportsResponse = /* @__PURE__ */ __name((output, context) => {
2123
+ return (0, import_smithy_client.take)(output, {
2124
+ descriptions: (_) => de_ContinuousExportDescriptions(_, context),
2125
+ nextToken: import_smithy_client.expectString
2126
+ });
2127
+ }, "de_DescribeContinuousExportsResponse");
2128
+ var de_DescribeExportConfigurationsResponse = /* @__PURE__ */ __name((output, context) => {
2129
+ return (0, import_smithy_client.take)(output, {
2130
+ exportsInfo: (_) => de_ExportsInfo(_, context),
2131
+ nextToken: import_smithy_client.expectString
2132
+ });
2133
+ }, "de_DescribeExportConfigurationsResponse");
2134
+ var de_DescribeExportTasksResponse = /* @__PURE__ */ __name((output, context) => {
2135
+ return (0, import_smithy_client.take)(output, {
2136
+ exportsInfo: (_) => de_ExportsInfo(_, context),
2137
+ nextToken: import_smithy_client.expectString
2138
+ });
2139
+ }, "de_DescribeExportTasksResponse");
2140
+ var de_DescribeImportTasksResponse = /* @__PURE__ */ __name((output, context) => {
2141
+ return (0, import_smithy_client.take)(output, {
2142
+ nextToken: import_smithy_client.expectString,
2143
+ tasks: (_) => de_ImportTaskList(_, context)
2144
+ });
2145
+ }, "de_DescribeImportTasksResponse");
2146
+ var de_DescribeTagsResponse = /* @__PURE__ */ __name((output, context) => {
2147
+ return (0, import_smithy_client.take)(output, {
2148
+ nextToken: import_smithy_client.expectString,
2149
+ tags: (_) => de_ConfigurationTagSet(_, context)
2150
+ });
2151
+ }, "de_DescribeTagsResponse");
2152
+ var de_ExportInfo = /* @__PURE__ */ __name((output, context) => {
2153
+ return (0, import_smithy_client.take)(output, {
2154
+ configurationsDownloadUrl: import_smithy_client.expectString,
2155
+ exportId: import_smithy_client.expectString,
2156
+ exportRequestTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2157
+ exportStatus: import_smithy_client.expectString,
2158
+ isTruncated: import_smithy_client.expectBoolean,
2159
+ requestedEndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2160
+ requestedStartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2161
+ statusMessage: import_smithy_client.expectString
2162
+ });
2163
+ }, "de_ExportInfo");
2164
+ var de_ExportsInfo = /* @__PURE__ */ __name((output, context) => {
2165
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2166
+ return de_ExportInfo(entry, context);
2167
+ });
2168
+ return retVal;
2169
+ }, "de_ExportsInfo");
2170
+ var de_ImportTask = /* @__PURE__ */ __name((output, context) => {
2171
+ return (0, import_smithy_client.take)(output, {
2172
+ applicationImportFailure: import_smithy_client.expectInt32,
2173
+ applicationImportSuccess: import_smithy_client.expectInt32,
2174
+ clientRequestToken: import_smithy_client.expectString,
2175
+ errorsAndFailedEntriesZip: import_smithy_client.expectString,
2176
+ importCompletionTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2177
+ importDeletedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2178
+ importRequestTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2179
+ importTaskId: import_smithy_client.expectString,
2180
+ importUrl: import_smithy_client.expectString,
2181
+ name: import_smithy_client.expectString,
2182
+ serverImportFailure: import_smithy_client.expectInt32,
2183
+ serverImportSuccess: import_smithy_client.expectInt32,
2184
+ status: import_smithy_client.expectString
2185
+ });
2186
+ }, "de_ImportTask");
2187
+ var de_ImportTaskList = /* @__PURE__ */ __name((output, context) => {
2188
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2189
+ return de_ImportTask(entry, context);
2190
+ });
2191
+ return retVal;
2192
+ }, "de_ImportTaskList");
2193
+ var de_StartContinuousExportResponse = /* @__PURE__ */ __name((output, context) => {
2194
+ return (0, import_smithy_client.take)(output, {
2195
+ dataSource: import_smithy_client.expectString,
2196
+ exportId: import_smithy_client.expectString,
2197
+ s3Bucket: import_smithy_client.expectString,
2198
+ schemaStorageConfig: import_smithy_client._json,
2199
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2200
+ });
2201
+ }, "de_StartContinuousExportResponse");
2202
+ var de_StartImportTaskResponse = /* @__PURE__ */ __name((output, context) => {
2203
+ return (0, import_smithy_client.take)(output, {
2204
+ task: (_) => de_ImportTask(_, context)
2205
+ });
2206
+ }, "de_StartImportTaskResponse");
2207
+ var de_StopContinuousExportResponse = /* @__PURE__ */ __name((output, context) => {
2208
+ return (0, import_smithy_client.take)(output, {
2209
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2210
+ stopTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2211
+ });
2212
+ }, "de_StopContinuousExportResponse");
2213
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2214
+ httpStatusCode: output.statusCode,
2215
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2216
+ extendedRequestId: output.headers["x-amz-id-2"],
2217
+ cfId: output.headers["x-amz-cf-id"]
2218
+ }), "deserializeMetadata");
2219
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2220
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ApplicationDiscoveryServiceServiceException);
2221
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
2222
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2223
+ const contents = {
2224
+ protocol,
2225
+ hostname,
2226
+ port,
2227
+ method: "POST",
2228
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2229
+ headers
2230
+ };
2231
+ if (resolvedHostname !== void 0) {
2232
+ contents.hostname = resolvedHostname;
2233
+ }
2234
+ if (body !== void 0) {
2235
+ contents.body = body;
2236
+ }
2237
+ return new import_protocol_http.HttpRequest(contents);
2238
+ }, "buildHttpRpcRequest");
2239
+ function sharedHeaders(operation) {
2240
+ return {
2241
+ "content-type": "application/x-amz-json-1.1",
2242
+ "x-amz-target": `AWSPoseidonService_V2015_11_01.${operation}`
2243
+ };
2244
+ }
2245
+ __name(sharedHeaders, "sharedHeaders");
2246
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2247
+ if (encoded.length) {
2248
+ return JSON.parse(encoded);
2249
+ }
2250
+ return {};
2251
+ }), "parseBody");
2252
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2253
+ const value = await parseBody(errorBody, context);
2254
+ value.message = value.message ?? value.Message;
2255
+ return value;
2256
+ }, "parseErrorBody");
2257
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2258
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2259
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2260
+ let cleanValue = rawValue;
2261
+ if (typeof cleanValue === "number") {
2262
+ cleanValue = cleanValue.toString();
2263
+ }
2264
+ if (cleanValue.indexOf(",") >= 0) {
2265
+ cleanValue = cleanValue.split(",")[0];
2266
+ }
2267
+ if (cleanValue.indexOf(":") >= 0) {
2268
+ cleanValue = cleanValue.split(":")[0];
2269
+ }
2270
+ if (cleanValue.indexOf("#") >= 0) {
2271
+ cleanValue = cleanValue.split("#")[1];
2272
+ }
2273
+ return cleanValue;
2274
+ }, "sanitizeErrorCode");
2275
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2276
+ if (headerKey !== void 0) {
2277
+ return sanitizeErrorCode(output.headers[headerKey]);
2278
+ }
2279
+ if (data.code !== void 0) {
2280
+ return sanitizeErrorCode(data.code);
2281
+ }
2282
+ if (data["__type"] !== void 0) {
2283
+ return sanitizeErrorCode(data["__type"]);
2284
+ }
2285
+ }, "loadRestJsonErrorCode");
2286
+
2287
+ // src/commands/AssociateConfigurationItemsToApplicationCommand.ts
2288
+ var _AssociateConfigurationItemsToApplicationCommand = class _AssociateConfigurationItemsToApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
2289
+ ...commonParams
2290
+ }).m(function(Command, cs, config, o) {
2291
+ return [
2292
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2293
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2294
+ ];
2295
+ }).s("AWSPoseidonService_V2015_11_01", "AssociateConfigurationItemsToApplication", {}).n("ApplicationDiscoveryServiceClient", "AssociateConfigurationItemsToApplicationCommand").f(void 0, void 0).ser(se_AssociateConfigurationItemsToApplicationCommand).de(de_AssociateConfigurationItemsToApplicationCommand).build() {
2296
+ };
2297
+ __name(_AssociateConfigurationItemsToApplicationCommand, "AssociateConfigurationItemsToApplicationCommand");
2298
+ var AssociateConfigurationItemsToApplicationCommand = _AssociateConfigurationItemsToApplicationCommand;
2299
+
2300
+ // src/commands/BatchDeleteAgentsCommand.ts
2301
+
2302
+
2303
+
2304
+
2305
+ var _BatchDeleteAgentsCommand = class _BatchDeleteAgentsCommand extends import_smithy_client.Command.classBuilder().ep({
2306
+ ...commonParams
2307
+ }).m(function(Command, cs, config, o) {
2308
+ return [
2309
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2310
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2311
+ ];
2312
+ }).s("AWSPoseidonService_V2015_11_01", "BatchDeleteAgents", {}).n("ApplicationDiscoveryServiceClient", "BatchDeleteAgentsCommand").f(void 0, void 0).ser(se_BatchDeleteAgentsCommand).de(de_BatchDeleteAgentsCommand).build() {
2313
+ };
2314
+ __name(_BatchDeleteAgentsCommand, "BatchDeleteAgentsCommand");
2315
+ var BatchDeleteAgentsCommand = _BatchDeleteAgentsCommand;
2316
+
2317
+ // src/commands/BatchDeleteImportDataCommand.ts
2318
+
2319
+
2320
+
2321
+
2322
+ var _BatchDeleteImportDataCommand = class _BatchDeleteImportDataCommand extends import_smithy_client.Command.classBuilder().ep({
2323
+ ...commonParams
2324
+ }).m(function(Command, cs, config, o) {
2325
+ return [
2326
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2327
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2328
+ ];
2329
+ }).s("AWSPoseidonService_V2015_11_01", "BatchDeleteImportData", {}).n("ApplicationDiscoveryServiceClient", "BatchDeleteImportDataCommand").f(void 0, void 0).ser(se_BatchDeleteImportDataCommand).de(de_BatchDeleteImportDataCommand).build() {
2330
+ };
2331
+ __name(_BatchDeleteImportDataCommand, "BatchDeleteImportDataCommand");
2332
+ var BatchDeleteImportDataCommand = _BatchDeleteImportDataCommand;
2333
+
2334
+ // src/commands/CreateApplicationCommand.ts
2335
+
2336
+
2337
+
2338
+
2339
+ var _CreateApplicationCommand = class _CreateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
2340
+ ...commonParams
2341
+ }).m(function(Command, cs, config, o) {
2342
+ return [
2343
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2344
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2345
+ ];
2346
+ }).s("AWSPoseidonService_V2015_11_01", "CreateApplication", {}).n("ApplicationDiscoveryServiceClient", "CreateApplicationCommand").f(void 0, void 0).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
2347
+ };
2348
+ __name(_CreateApplicationCommand, "CreateApplicationCommand");
2349
+ var CreateApplicationCommand = _CreateApplicationCommand;
2350
+
2351
+ // src/commands/CreateTagsCommand.ts
2352
+
2353
+
2354
+
2355
+
2356
+ var _CreateTagsCommand = class _CreateTagsCommand extends import_smithy_client.Command.classBuilder().ep({
2357
+ ...commonParams
2358
+ }).m(function(Command, cs, config, o) {
2359
+ return [
2360
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2361
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2362
+ ];
2363
+ }).s("AWSPoseidonService_V2015_11_01", "CreateTags", {}).n("ApplicationDiscoveryServiceClient", "CreateTagsCommand").f(void 0, void 0).ser(se_CreateTagsCommand).de(de_CreateTagsCommand).build() {
2364
+ };
2365
+ __name(_CreateTagsCommand, "CreateTagsCommand");
2366
+ var CreateTagsCommand = _CreateTagsCommand;
2367
+
2368
+ // src/commands/DeleteApplicationsCommand.ts
2369
+
2370
+
2371
+
2372
+
2373
+ var _DeleteApplicationsCommand = class _DeleteApplicationsCommand extends import_smithy_client.Command.classBuilder().ep({
2374
+ ...commonParams
2375
+ }).m(function(Command, cs, config, o) {
2376
+ return [
2377
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2378
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2379
+ ];
2380
+ }).s("AWSPoseidonService_V2015_11_01", "DeleteApplications", {}).n("ApplicationDiscoveryServiceClient", "DeleteApplicationsCommand").f(void 0, void 0).ser(se_DeleteApplicationsCommand).de(de_DeleteApplicationsCommand).build() {
2381
+ };
2382
+ __name(_DeleteApplicationsCommand, "DeleteApplicationsCommand");
2383
+ var DeleteApplicationsCommand = _DeleteApplicationsCommand;
2384
+
2385
+ // src/commands/DeleteTagsCommand.ts
2386
+
2387
+
2388
+
2389
+
2390
+ var _DeleteTagsCommand = class _DeleteTagsCommand extends import_smithy_client.Command.classBuilder().ep({
2391
+ ...commonParams
2392
+ }).m(function(Command, cs, config, o) {
2393
+ return [
2394
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2395
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2396
+ ];
2397
+ }).s("AWSPoseidonService_V2015_11_01", "DeleteTags", {}).n("ApplicationDiscoveryServiceClient", "DeleteTagsCommand").f(void 0, void 0).ser(se_DeleteTagsCommand).de(de_DeleteTagsCommand).build() {
2398
+ };
2399
+ __name(_DeleteTagsCommand, "DeleteTagsCommand");
2400
+ var DeleteTagsCommand = _DeleteTagsCommand;
2401
+
2402
+ // src/commands/DescribeAgentsCommand.ts
2403
+
2404
+
2405
+
2406
+
2407
+ var _DescribeAgentsCommand = class _DescribeAgentsCommand extends import_smithy_client.Command.classBuilder().ep({
2408
+ ...commonParams
2409
+ }).m(function(Command, cs, config, o) {
2410
+ return [
2411
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2412
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2413
+ ];
2414
+ }).s("AWSPoseidonService_V2015_11_01", "DescribeAgents", {}).n("ApplicationDiscoveryServiceClient", "DescribeAgentsCommand").f(void 0, DescribeAgentsResponseFilterSensitiveLog).ser(se_DescribeAgentsCommand).de(de_DescribeAgentsCommand).build() {
2415
+ };
2416
+ __name(_DescribeAgentsCommand, "DescribeAgentsCommand");
2417
+ var DescribeAgentsCommand = _DescribeAgentsCommand;
2418
+
2419
+ // src/commands/DescribeBatchDeleteConfigurationTaskCommand.ts
2420
+
2421
+
2422
+
2423
+
2424
+ var _DescribeBatchDeleteConfigurationTaskCommand = class _DescribeBatchDeleteConfigurationTaskCommand extends import_smithy_client.Command.classBuilder().ep({
2425
+ ...commonParams
2426
+ }).m(function(Command, cs, config, o) {
2427
+ return [
2428
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2429
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2430
+ ];
2431
+ }).s("AWSPoseidonService_V2015_11_01", "DescribeBatchDeleteConfigurationTask", {}).n("ApplicationDiscoveryServiceClient", "DescribeBatchDeleteConfigurationTaskCommand").f(void 0, void 0).ser(se_DescribeBatchDeleteConfigurationTaskCommand).de(de_DescribeBatchDeleteConfigurationTaskCommand).build() {
2432
+ };
2433
+ __name(_DescribeBatchDeleteConfigurationTaskCommand, "DescribeBatchDeleteConfigurationTaskCommand");
2434
+ var DescribeBatchDeleteConfigurationTaskCommand = _DescribeBatchDeleteConfigurationTaskCommand;
2435
+
2436
+ // src/commands/DescribeConfigurationsCommand.ts
2437
+
2438
+
2439
+
2440
+
2441
+ var _DescribeConfigurationsCommand = class _DescribeConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
2442
+ ...commonParams
2443
+ }).m(function(Command, cs, config, o) {
2444
+ return [
2445
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2446
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2447
+ ];
2448
+ }).s("AWSPoseidonService_V2015_11_01", "DescribeConfigurations", {}).n("ApplicationDiscoveryServiceClient", "DescribeConfigurationsCommand").f(void 0, void 0).ser(se_DescribeConfigurationsCommand).de(de_DescribeConfigurationsCommand).build() {
2449
+ };
2450
+ __name(_DescribeConfigurationsCommand, "DescribeConfigurationsCommand");
2451
+ var DescribeConfigurationsCommand = _DescribeConfigurationsCommand;
2452
+
2453
+ // src/commands/DescribeContinuousExportsCommand.ts
2454
+
2455
+
2456
+
2457
+
2458
+ var _DescribeContinuousExportsCommand = class _DescribeContinuousExportsCommand extends import_smithy_client.Command.classBuilder().ep({
2459
+ ...commonParams
2460
+ }).m(function(Command, cs, config, o) {
2461
+ return [
2462
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2463
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2464
+ ];
2465
+ }).s("AWSPoseidonService_V2015_11_01", "DescribeContinuousExports", {}).n("ApplicationDiscoveryServiceClient", "DescribeContinuousExportsCommand").f(void 0, void 0).ser(se_DescribeContinuousExportsCommand).de(de_DescribeContinuousExportsCommand).build() {
2466
+ };
2467
+ __name(_DescribeContinuousExportsCommand, "DescribeContinuousExportsCommand");
2468
+ var DescribeContinuousExportsCommand = _DescribeContinuousExportsCommand;
2469
+
2470
+ // src/commands/DescribeExportConfigurationsCommand.ts
2471
+
2472
+
2473
+
2474
+
2475
+ var _DescribeExportConfigurationsCommand = class _DescribeExportConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
2476
+ ...commonParams
2477
+ }).m(function(Command, cs, config, o) {
2478
+ return [
2479
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2480
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2481
+ ];
2482
+ }).s("AWSPoseidonService_V2015_11_01", "DescribeExportConfigurations", {}).n("ApplicationDiscoveryServiceClient", "DescribeExportConfigurationsCommand").f(void 0, void 0).ser(se_DescribeExportConfigurationsCommand).de(de_DescribeExportConfigurationsCommand).build() {
2483
+ };
2484
+ __name(_DescribeExportConfigurationsCommand, "DescribeExportConfigurationsCommand");
2485
+ var DescribeExportConfigurationsCommand = _DescribeExportConfigurationsCommand;
2486
+
2487
+ // src/commands/DescribeExportTasksCommand.ts
2488
+
2489
+
2490
+
2491
+
2492
+ var _DescribeExportTasksCommand = class _DescribeExportTasksCommand extends import_smithy_client.Command.classBuilder().ep({
2493
+ ...commonParams
2494
+ }).m(function(Command, cs, config, o) {
2495
+ return [
2496
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2497
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2498
+ ];
2499
+ }).s("AWSPoseidonService_V2015_11_01", "DescribeExportTasks", {}).n("ApplicationDiscoveryServiceClient", "DescribeExportTasksCommand").f(void 0, void 0).ser(se_DescribeExportTasksCommand).de(de_DescribeExportTasksCommand).build() {
2500
+ };
2501
+ __name(_DescribeExportTasksCommand, "DescribeExportTasksCommand");
2502
+ var DescribeExportTasksCommand = _DescribeExportTasksCommand;
2503
+
2504
+ // src/commands/DescribeImportTasksCommand.ts
2505
+
2506
+
2507
+
2508
+
2509
+ var _DescribeImportTasksCommand = class _DescribeImportTasksCommand extends import_smithy_client.Command.classBuilder().ep({
2510
+ ...commonParams
2511
+ }).m(function(Command, cs, config, o) {
2512
+ return [
2513
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2514
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2515
+ ];
2516
+ }).s("AWSPoseidonService_V2015_11_01", "DescribeImportTasks", {}).n("ApplicationDiscoveryServiceClient", "DescribeImportTasksCommand").f(void 0, void 0).ser(se_DescribeImportTasksCommand).de(de_DescribeImportTasksCommand).build() {
2517
+ };
2518
+ __name(_DescribeImportTasksCommand, "DescribeImportTasksCommand");
2519
+ var DescribeImportTasksCommand = _DescribeImportTasksCommand;
2520
+
2521
+ // src/commands/DescribeTagsCommand.ts
2522
+
2523
+
2524
+
2525
+
2526
+ var _DescribeTagsCommand = class _DescribeTagsCommand extends import_smithy_client.Command.classBuilder().ep({
2527
+ ...commonParams
2528
+ }).m(function(Command, cs, config, o) {
2529
+ return [
2530
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2531
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2532
+ ];
2533
+ }).s("AWSPoseidonService_V2015_11_01", "DescribeTags", {}).n("ApplicationDiscoveryServiceClient", "DescribeTagsCommand").f(void 0, void 0).ser(se_DescribeTagsCommand).de(de_DescribeTagsCommand).build() {
2534
+ };
2535
+ __name(_DescribeTagsCommand, "DescribeTagsCommand");
2536
+ var DescribeTagsCommand = _DescribeTagsCommand;
2537
+
2538
+ // src/commands/DisassociateConfigurationItemsFromApplicationCommand.ts
2539
+
2540
+
2541
+
2542
+
2543
+ var _DisassociateConfigurationItemsFromApplicationCommand = class _DisassociateConfigurationItemsFromApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
2544
+ ...commonParams
2545
+ }).m(function(Command, cs, config, o) {
2546
+ return [
2547
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2548
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2549
+ ];
2550
+ }).s("AWSPoseidonService_V2015_11_01", "DisassociateConfigurationItemsFromApplication", {}).n("ApplicationDiscoveryServiceClient", "DisassociateConfigurationItemsFromApplicationCommand").f(void 0, void 0).ser(se_DisassociateConfigurationItemsFromApplicationCommand).de(de_DisassociateConfigurationItemsFromApplicationCommand).build() {
2551
+ };
2552
+ __name(_DisassociateConfigurationItemsFromApplicationCommand, "DisassociateConfigurationItemsFromApplicationCommand");
2553
+ var DisassociateConfigurationItemsFromApplicationCommand = _DisassociateConfigurationItemsFromApplicationCommand;
2554
+
2555
+ // src/commands/ExportConfigurationsCommand.ts
2556
+
2557
+
2558
+
2559
+
2560
+ var _ExportConfigurationsCommand = class _ExportConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
2561
+ ...commonParams
2562
+ }).m(function(Command, cs, config, o) {
2563
+ return [
2564
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2565
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2566
+ ];
2567
+ }).s("AWSPoseidonService_V2015_11_01", "ExportConfigurations", {}).n("ApplicationDiscoveryServiceClient", "ExportConfigurationsCommand").f(void 0, void 0).ser(se_ExportConfigurationsCommand).de(de_ExportConfigurationsCommand).build() {
2568
+ };
2569
+ __name(_ExportConfigurationsCommand, "ExportConfigurationsCommand");
2570
+ var ExportConfigurationsCommand = _ExportConfigurationsCommand;
2571
+
2572
+ // src/commands/GetDiscoverySummaryCommand.ts
2573
+
2574
+
2575
+
2576
+
2577
+ var _GetDiscoverySummaryCommand = class _GetDiscoverySummaryCommand extends import_smithy_client.Command.classBuilder().ep({
2578
+ ...commonParams
2579
+ }).m(function(Command, cs, config, o) {
2580
+ return [
2581
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2582
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2583
+ ];
2584
+ }).s("AWSPoseidonService_V2015_11_01", "GetDiscoverySummary", {}).n("ApplicationDiscoveryServiceClient", "GetDiscoverySummaryCommand").f(void 0, void 0).ser(se_GetDiscoverySummaryCommand).de(de_GetDiscoverySummaryCommand).build() {
2585
+ };
2586
+ __name(_GetDiscoverySummaryCommand, "GetDiscoverySummaryCommand");
2587
+ var GetDiscoverySummaryCommand = _GetDiscoverySummaryCommand;
2588
+
2589
+ // src/commands/ListConfigurationsCommand.ts
2590
+
2591
+
2592
+
2593
+
2594
+ var _ListConfigurationsCommand = class _ListConfigurationsCommand extends import_smithy_client.Command.classBuilder().ep({
2595
+ ...commonParams
2596
+ }).m(function(Command, cs, config, o) {
2597
+ return [
2598
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2599
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2600
+ ];
2601
+ }).s("AWSPoseidonService_V2015_11_01", "ListConfigurations", {}).n("ApplicationDiscoveryServiceClient", "ListConfigurationsCommand").f(void 0, void 0).ser(se_ListConfigurationsCommand).de(de_ListConfigurationsCommand).build() {
2602
+ };
2603
+ __name(_ListConfigurationsCommand, "ListConfigurationsCommand");
2604
+ var ListConfigurationsCommand = _ListConfigurationsCommand;
2605
+
2606
+ // src/commands/ListServerNeighborsCommand.ts
2607
+
2608
+
2609
+
2610
+
2611
+ var _ListServerNeighborsCommand = class _ListServerNeighborsCommand extends import_smithy_client.Command.classBuilder().ep({
2612
+ ...commonParams
2613
+ }).m(function(Command, cs, config, o) {
2614
+ return [
2615
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2616
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2617
+ ];
2618
+ }).s("AWSPoseidonService_V2015_11_01", "ListServerNeighbors", {}).n("ApplicationDiscoveryServiceClient", "ListServerNeighborsCommand").f(void 0, void 0).ser(se_ListServerNeighborsCommand).de(de_ListServerNeighborsCommand).build() {
2619
+ };
2620
+ __name(_ListServerNeighborsCommand, "ListServerNeighborsCommand");
2621
+ var ListServerNeighborsCommand = _ListServerNeighborsCommand;
2622
+
2623
+ // src/commands/StartBatchDeleteConfigurationTaskCommand.ts
2624
+
2625
+
2626
+
2627
+
2628
+ var _StartBatchDeleteConfigurationTaskCommand = class _StartBatchDeleteConfigurationTaskCommand extends import_smithy_client.Command.classBuilder().ep({
2629
+ ...commonParams
2630
+ }).m(function(Command, cs, config, o) {
2631
+ return [
2632
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2633
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2634
+ ];
2635
+ }).s("AWSPoseidonService_V2015_11_01", "StartBatchDeleteConfigurationTask", {}).n("ApplicationDiscoveryServiceClient", "StartBatchDeleteConfigurationTaskCommand").f(void 0, void 0).ser(se_StartBatchDeleteConfigurationTaskCommand).de(de_StartBatchDeleteConfigurationTaskCommand).build() {
2636
+ };
2637
+ __name(_StartBatchDeleteConfigurationTaskCommand, "StartBatchDeleteConfigurationTaskCommand");
2638
+ var StartBatchDeleteConfigurationTaskCommand = _StartBatchDeleteConfigurationTaskCommand;
2639
+
2640
+ // src/commands/StartContinuousExportCommand.ts
2641
+
2642
+
2643
+
2644
+
2645
+ var _StartContinuousExportCommand = class _StartContinuousExportCommand extends import_smithy_client.Command.classBuilder().ep({
2646
+ ...commonParams
2647
+ }).m(function(Command, cs, config, o) {
2648
+ return [
2649
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2650
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2651
+ ];
2652
+ }).s("AWSPoseidonService_V2015_11_01", "StartContinuousExport", {}).n("ApplicationDiscoveryServiceClient", "StartContinuousExportCommand").f(void 0, void 0).ser(se_StartContinuousExportCommand).de(de_StartContinuousExportCommand).build() {
2653
+ };
2654
+ __name(_StartContinuousExportCommand, "StartContinuousExportCommand");
2655
+ var StartContinuousExportCommand = _StartContinuousExportCommand;
2656
+
2657
+ // src/commands/StartDataCollectionByAgentIdsCommand.ts
2658
+
2659
+
2660
+
2661
+
2662
+ var _StartDataCollectionByAgentIdsCommand = class _StartDataCollectionByAgentIdsCommand extends import_smithy_client.Command.classBuilder().ep({
2663
+ ...commonParams
2664
+ }).m(function(Command, cs, config, o) {
2665
+ return [
2666
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2667
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2668
+ ];
2669
+ }).s("AWSPoseidonService_V2015_11_01", "StartDataCollectionByAgentIds", {}).n("ApplicationDiscoveryServiceClient", "StartDataCollectionByAgentIdsCommand").f(void 0, void 0).ser(se_StartDataCollectionByAgentIdsCommand).de(de_StartDataCollectionByAgentIdsCommand).build() {
2670
+ };
2671
+ __name(_StartDataCollectionByAgentIdsCommand, "StartDataCollectionByAgentIdsCommand");
2672
+ var StartDataCollectionByAgentIdsCommand = _StartDataCollectionByAgentIdsCommand;
2673
+
2674
+ // src/commands/StartExportTaskCommand.ts
2675
+
2676
+
2677
+
2678
+
2679
+ var _StartExportTaskCommand = class _StartExportTaskCommand extends import_smithy_client.Command.classBuilder().ep({
2680
+ ...commonParams
2681
+ }).m(function(Command, cs, config, o) {
2682
+ return [
2683
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2684
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2685
+ ];
2686
+ }).s("AWSPoseidonService_V2015_11_01", "StartExportTask", {}).n("ApplicationDiscoveryServiceClient", "StartExportTaskCommand").f(void 0, void 0).ser(se_StartExportTaskCommand).de(de_StartExportTaskCommand).build() {
2687
+ };
2688
+ __name(_StartExportTaskCommand, "StartExportTaskCommand");
2689
+ var StartExportTaskCommand = _StartExportTaskCommand;
2690
+
2691
+ // src/commands/StartImportTaskCommand.ts
2692
+
2693
+
2694
+
2695
+
2696
+ var _StartImportTaskCommand = class _StartImportTaskCommand extends import_smithy_client.Command.classBuilder().ep({
2697
+ ...commonParams
2698
+ }).m(function(Command, cs, config, o) {
2699
+ return [
2700
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2701
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2702
+ ];
2703
+ }).s("AWSPoseidonService_V2015_11_01", "StartImportTask", {}).n("ApplicationDiscoveryServiceClient", "StartImportTaskCommand").f(void 0, void 0).ser(se_StartImportTaskCommand).de(de_StartImportTaskCommand).build() {
2704
+ };
2705
+ __name(_StartImportTaskCommand, "StartImportTaskCommand");
2706
+ var StartImportTaskCommand = _StartImportTaskCommand;
2707
+
2708
+ // src/commands/StopContinuousExportCommand.ts
2709
+
2710
+
2711
+
2712
+
2713
+ var _StopContinuousExportCommand = class _StopContinuousExportCommand extends import_smithy_client.Command.classBuilder().ep({
2714
+ ...commonParams
2715
+ }).m(function(Command, cs, config, o) {
2716
+ return [
2717
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2718
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2719
+ ];
2720
+ }).s("AWSPoseidonService_V2015_11_01", "StopContinuousExport", {}).n("ApplicationDiscoveryServiceClient", "StopContinuousExportCommand").f(void 0, void 0).ser(se_StopContinuousExportCommand).de(de_StopContinuousExportCommand).build() {
2721
+ };
2722
+ __name(_StopContinuousExportCommand, "StopContinuousExportCommand");
2723
+ var StopContinuousExportCommand = _StopContinuousExportCommand;
2724
+
2725
+ // src/commands/StopDataCollectionByAgentIdsCommand.ts
2726
+
2727
+
2728
+
2729
+
2730
+ var _StopDataCollectionByAgentIdsCommand = class _StopDataCollectionByAgentIdsCommand extends import_smithy_client.Command.classBuilder().ep({
2731
+ ...commonParams
2732
+ }).m(function(Command, cs, config, o) {
2733
+ return [
2734
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2735
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2736
+ ];
2737
+ }).s("AWSPoseidonService_V2015_11_01", "StopDataCollectionByAgentIds", {}).n("ApplicationDiscoveryServiceClient", "StopDataCollectionByAgentIdsCommand").f(void 0, void 0).ser(se_StopDataCollectionByAgentIdsCommand).de(de_StopDataCollectionByAgentIdsCommand).build() {
2738
+ };
2739
+ __name(_StopDataCollectionByAgentIdsCommand, "StopDataCollectionByAgentIdsCommand");
2740
+ var StopDataCollectionByAgentIdsCommand = _StopDataCollectionByAgentIdsCommand;
2741
+
2742
+ // src/commands/UpdateApplicationCommand.ts
2743
+
2744
+
2745
+
2746
+
2747
+ var _UpdateApplicationCommand = class _UpdateApplicationCommand extends import_smithy_client.Command.classBuilder().ep({
2748
+ ...commonParams
2749
+ }).m(function(Command, cs, config, o) {
2750
+ return [
2751
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2752
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2753
+ ];
2754
+ }).s("AWSPoseidonService_V2015_11_01", "UpdateApplication", {}).n("ApplicationDiscoveryServiceClient", "UpdateApplicationCommand").f(void 0, void 0).ser(se_UpdateApplicationCommand).de(de_UpdateApplicationCommand).build() {
2755
+ };
2756
+ __name(_UpdateApplicationCommand, "UpdateApplicationCommand");
2757
+ var UpdateApplicationCommand = _UpdateApplicationCommand;
2758
+
2759
+ // src/ApplicationDiscoveryService.ts
2760
+ var commands = {
2761
+ AssociateConfigurationItemsToApplicationCommand,
2762
+ BatchDeleteAgentsCommand,
2763
+ BatchDeleteImportDataCommand,
2764
+ CreateApplicationCommand,
2765
+ CreateTagsCommand,
2766
+ DeleteApplicationsCommand,
2767
+ DeleteTagsCommand,
2768
+ DescribeAgentsCommand,
2769
+ DescribeBatchDeleteConfigurationTaskCommand,
2770
+ DescribeConfigurationsCommand,
2771
+ DescribeContinuousExportsCommand,
2772
+ DescribeExportConfigurationsCommand,
2773
+ DescribeExportTasksCommand,
2774
+ DescribeImportTasksCommand,
2775
+ DescribeTagsCommand,
2776
+ DisassociateConfigurationItemsFromApplicationCommand,
2777
+ ExportConfigurationsCommand,
2778
+ GetDiscoverySummaryCommand,
2779
+ ListConfigurationsCommand,
2780
+ ListServerNeighborsCommand,
2781
+ StartBatchDeleteConfigurationTaskCommand,
2782
+ StartContinuousExportCommand,
2783
+ StartDataCollectionByAgentIdsCommand,
2784
+ StartExportTaskCommand,
2785
+ StartImportTaskCommand,
2786
+ StopContinuousExportCommand,
2787
+ StopDataCollectionByAgentIdsCommand,
2788
+ UpdateApplicationCommand
2789
+ };
2790
+ var _ApplicationDiscoveryService = class _ApplicationDiscoveryService extends ApplicationDiscoveryServiceClient {
2791
+ };
2792
+ __name(_ApplicationDiscoveryService, "ApplicationDiscoveryService");
2793
+ var ApplicationDiscoveryService = _ApplicationDiscoveryService;
2794
+ (0, import_smithy_client.createAggregatedClient)(commands, ApplicationDiscoveryService);
2795
+
2796
+ // src/pagination/DescribeAgentsPaginator.ts
2797
+ var import_core = require("@smithy/core");
2798
+ var paginateDescribeAgents = (0, import_core.createPaginator)(ApplicationDiscoveryServiceClient, DescribeAgentsCommand, "nextToken", "nextToken", "maxResults");
2799
+
2800
+ // src/pagination/DescribeContinuousExportsPaginator.ts
2801
+
2802
+ var paginateDescribeContinuousExports = (0, import_core.createPaginator)(ApplicationDiscoveryServiceClient, DescribeContinuousExportsCommand, "nextToken", "nextToken", "maxResults");
2803
+
2804
+ // src/pagination/DescribeExportConfigurationsPaginator.ts
2805
+
2806
+ var paginateDescribeExportConfigurations = (0, import_core.createPaginator)(ApplicationDiscoveryServiceClient, DescribeExportConfigurationsCommand, "nextToken", "nextToken", "maxResults");
2807
+
2808
+ // src/pagination/DescribeExportTasksPaginator.ts
2809
+
2810
+ var paginateDescribeExportTasks = (0, import_core.createPaginator)(ApplicationDiscoveryServiceClient, DescribeExportTasksCommand, "nextToken", "nextToken", "maxResults");
2811
+
2812
+ // src/pagination/DescribeImportTasksPaginator.ts
2813
+
2814
+ var paginateDescribeImportTasks = (0, import_core.createPaginator)(ApplicationDiscoveryServiceClient, DescribeImportTasksCommand, "nextToken", "nextToken", "maxResults");
2815
+
2816
+ // src/pagination/DescribeTagsPaginator.ts
2817
+
2818
+ var paginateDescribeTags = (0, import_core.createPaginator)(ApplicationDiscoveryServiceClient, DescribeTagsCommand, "nextToken", "nextToken", "maxResults");
2819
+
2820
+ // src/pagination/ListConfigurationsPaginator.ts
2821
+
2822
+ var paginateListConfigurations = (0, import_core.createPaginator)(ApplicationDiscoveryServiceClient, ListConfigurationsCommand, "nextToken", "nextToken", "maxResults");
2823
+
2824
+ // src/index.ts
2825
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2826
+ // Annotate the CommonJS export names for ESM import in node:
2827
+
2828
+ 0 && (module.exports = {
2829
+ AgentInfoFilterSensitiveLog,
2830
+ AgentNetworkInfoFilterSensitiveLog,
2831
+ AgentStatus,
2832
+ ApplicationDiscoveryService,
2833
+ ApplicationDiscoveryServiceClient,
2834
+ ApplicationDiscoveryServiceServiceException,
2835
+ AssociateConfigurationItemsToApplicationCommand,
2836
+ AuthorizationErrorException,
2837
+ BatchDeleteAgentsCommand,
2838
+ BatchDeleteConfigurationTaskStatus,
2839
+ BatchDeleteImportDataCommand,
2840
+ BatchDeleteImportDataErrorCode,
2841
+ ConfigurationItemType,
2842
+ ConflictErrorException,
2843
+ ContinuousExportStatus,
2844
+ CreateApplicationCommand,
2845
+ CreateTagsCommand,
2846
+ DataSource,
2847
+ DeleteAgentErrorCode,
2848
+ DeleteApplicationsCommand,
2849
+ DeleteTagsCommand,
2850
+ DeletionConfigurationItemType,
2851
+ DescribeAgentsCommand,
2852
+ DescribeAgentsResponseFilterSensitiveLog,
2853
+ DescribeBatchDeleteConfigurationTaskCommand,
2854
+ DescribeConfigurationsCommand,
2855
+ DescribeContinuousExportsCommand,
2856
+ DescribeExportConfigurationsCommand,
2857
+ DescribeExportTasksCommand,
2858
+ DescribeImportTasksCommand,
2859
+ DescribeTagsCommand,
2860
+ DisassociateConfigurationItemsFromApplicationCommand,
2861
+ ExportConfigurationsCommand,
2862
+ ExportDataFormat,
2863
+ ExportPreferences,
2864
+ ExportStatus,
2865
+ GetDiscoverySummaryCommand,
2866
+ HomeRegionNotSetException,
2867
+ ImportStatus,
2868
+ ImportTaskFilterName,
2869
+ InvalidParameterException,
2870
+ InvalidParameterValueException,
2871
+ LimitExceededException,
2872
+ ListConfigurationsCommand,
2873
+ ListServerNeighborsCommand,
2874
+ OfferingClass,
2875
+ OperationNotPermittedException,
2876
+ OrderString,
2877
+ PurchasingOption,
2878
+ ResourceInUseException,
2879
+ ResourceNotFoundException,
2880
+ ServerInternalErrorException,
2881
+ StartBatchDeleteConfigurationTaskCommand,
2882
+ StartContinuousExportCommand,
2883
+ StartDataCollectionByAgentIdsCommand,
2884
+ StartExportTaskCommand,
2885
+ StartImportTaskCommand,
2886
+ StopContinuousExportCommand,
2887
+ StopDataCollectionByAgentIdsCommand,
2888
+ Tenancy,
2889
+ TermLength,
2890
+ UpdateApplicationCommand,
2891
+ __Client,
2892
+ paginateDescribeAgents,
2893
+ paginateDescribeContinuousExports,
2894
+ paginateDescribeExportConfigurations,
2895
+ paginateDescribeExportTasks,
2896
+ paginateDescribeImportTasks,
2897
+ paginateDescribeTags,
2898
+ paginateListConfigurations
2899
+ });
2900
+