@aws-sdk/client-application-discovery-service 3.183.0 → 3.185.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 (40) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/ApplicationDiscoveryService.js +109 -102
  4. package/dist-es/ApplicationDiscoveryServiceClient.js +28 -22
  5. package/dist-es/commands/AssociateConfigurationItemsToApplicationCommand.js +28 -21
  6. package/dist-es/commands/BatchDeleteImportDataCommand.js +28 -21
  7. package/dist-es/commands/CreateApplicationCommand.js +28 -21
  8. package/dist-es/commands/CreateTagsCommand.js +28 -21
  9. package/dist-es/commands/DeleteApplicationsCommand.js +28 -21
  10. package/dist-es/commands/DeleteTagsCommand.js +28 -21
  11. package/dist-es/commands/DescribeAgentsCommand.js +28 -21
  12. package/dist-es/commands/DescribeConfigurationsCommand.js +28 -21
  13. package/dist-es/commands/DescribeContinuousExportsCommand.js +28 -21
  14. package/dist-es/commands/DescribeExportConfigurationsCommand.js +28 -21
  15. package/dist-es/commands/DescribeExportTasksCommand.js +28 -21
  16. package/dist-es/commands/DescribeImportTasksCommand.js +28 -21
  17. package/dist-es/commands/DescribeTagsCommand.js +28 -21
  18. package/dist-es/commands/DisassociateConfigurationItemsFromApplicationCommand.js +28 -21
  19. package/dist-es/commands/ExportConfigurationsCommand.js +29 -22
  20. package/dist-es/commands/GetDiscoverySummaryCommand.js +28 -21
  21. package/dist-es/commands/ListConfigurationsCommand.js +28 -21
  22. package/dist-es/commands/ListServerNeighborsCommand.js +28 -21
  23. package/dist-es/commands/StartContinuousExportCommand.js +28 -21
  24. package/dist-es/commands/StartDataCollectionByAgentIdsCommand.js +28 -21
  25. package/dist-es/commands/StartExportTaskCommand.js +28 -21
  26. package/dist-es/commands/StartImportTaskCommand.js +28 -21
  27. package/dist-es/commands/StopContinuousExportCommand.js +28 -21
  28. package/dist-es/commands/StopDataCollectionByAgentIdsCommand.js +28 -21
  29. package/dist-es/commands/UpdateApplicationCommand.js +28 -21
  30. package/dist-es/endpoints.js +8 -8
  31. package/dist-es/models/ApplicationDiscoveryServiceServiceException.js +10 -5
  32. package/dist-es/models/models_0.js +168 -303
  33. package/dist-es/pagination/DescribeContinuousExportsPaginator.js +68 -25
  34. package/dist-es/pagination/DescribeImportTasksPaginator.js +68 -25
  35. package/dist-es/protocols/Aws_json1_1.js +2390 -1849
  36. package/dist-es/runtimeConfig.browser.js +12 -26
  37. package/dist-es/runtimeConfig.js +12 -30
  38. package/dist-es/runtimeConfig.native.js +5 -8
  39. package/dist-es/runtimeConfig.shared.js +11 -8
  40. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-application-discovery-service
@@ -2353,10 +2353,10 @@ const deserializeAws_json1_1UpdateApplicationResponse = (output, context) => {
2353
2353
  return {};
2354
2354
  };
2355
2355
  const deserializeMetadata = (output) => {
2356
- var _a;
2356
+ var _a, _b;
2357
2357
  return ({
2358
2358
  httpStatusCode: output.statusCode,
2359
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2359
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2360
2360
  extendedRequestId: output.headers["x-amz-id-2"],
2361
2361
  cfId: output.headers["x-amz-cf-id"],
2362
2362
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { ApplicationDiscoveryServiceClient } from "./ApplicationDiscoveryServiceClient";
2
3
  import { AssociateConfigurationItemsToApplicationCommand, } from "./commands/AssociateConfigurationItemsToApplicationCommand";
3
4
  import { BatchDeleteImportDataCommand, } from "./commands/BatchDeleteImportDataCommand";
@@ -24,355 +25,361 @@ import { StartImportTaskCommand, } from "./commands/StartImportTaskCommand";
24
25
  import { StopContinuousExportCommand, } from "./commands/StopContinuousExportCommand";
25
26
  import { StopDataCollectionByAgentIdsCommand, } from "./commands/StopDataCollectionByAgentIdsCommand";
26
27
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
27
- export class ApplicationDiscoveryService extends ApplicationDiscoveryServiceClient {
28
- associateConfigurationItemsToApplication(args, optionsOrCb, cb) {
29
- const command = new AssociateConfigurationItemsToApplicationCommand(args);
28
+ var ApplicationDiscoveryService = (function (_super) {
29
+ __extends(ApplicationDiscoveryService, _super);
30
+ function ApplicationDiscoveryService() {
31
+ return _super !== null && _super.apply(this, arguments) || this;
32
+ }
33
+ ApplicationDiscoveryService.prototype.associateConfigurationItemsToApplication = function (args, optionsOrCb, cb) {
34
+ var command = new AssociateConfigurationItemsToApplicationCommand(args);
30
35
  if (typeof optionsOrCb === "function") {
31
36
  this.send(command, optionsOrCb);
32
37
  }
33
38
  else if (typeof cb === "function") {
34
39
  if (typeof optionsOrCb !== "object")
35
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
36
41
  this.send(command, optionsOrCb || {}, cb);
37
42
  }
38
43
  else {
39
44
  return this.send(command, optionsOrCb);
40
45
  }
41
- }
42
- batchDeleteImportData(args, optionsOrCb, cb) {
43
- const command = new BatchDeleteImportDataCommand(args);
46
+ };
47
+ ApplicationDiscoveryService.prototype.batchDeleteImportData = function (args, optionsOrCb, cb) {
48
+ var command = new BatchDeleteImportDataCommand(args);
44
49
  if (typeof optionsOrCb === "function") {
45
50
  this.send(command, optionsOrCb);
46
51
  }
47
52
  else if (typeof cb === "function") {
48
53
  if (typeof optionsOrCb !== "object")
49
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
50
55
  this.send(command, optionsOrCb || {}, cb);
51
56
  }
52
57
  else {
53
58
  return this.send(command, optionsOrCb);
54
59
  }
55
- }
56
- createApplication(args, optionsOrCb, cb) {
57
- const command = new CreateApplicationCommand(args);
60
+ };
61
+ ApplicationDiscoveryService.prototype.createApplication = function (args, optionsOrCb, cb) {
62
+ var command = new CreateApplicationCommand(args);
58
63
  if (typeof optionsOrCb === "function") {
59
64
  this.send(command, optionsOrCb);
60
65
  }
61
66
  else if (typeof cb === "function") {
62
67
  if (typeof optionsOrCb !== "object")
63
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
64
69
  this.send(command, optionsOrCb || {}, cb);
65
70
  }
66
71
  else {
67
72
  return this.send(command, optionsOrCb);
68
73
  }
69
- }
70
- createTags(args, optionsOrCb, cb) {
71
- const command = new CreateTagsCommand(args);
74
+ };
75
+ ApplicationDiscoveryService.prototype.createTags = function (args, optionsOrCb, cb) {
76
+ var command = new CreateTagsCommand(args);
72
77
  if (typeof optionsOrCb === "function") {
73
78
  this.send(command, optionsOrCb);
74
79
  }
75
80
  else if (typeof cb === "function") {
76
81
  if (typeof optionsOrCb !== "object")
77
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
78
83
  this.send(command, optionsOrCb || {}, cb);
79
84
  }
80
85
  else {
81
86
  return this.send(command, optionsOrCb);
82
87
  }
83
- }
84
- deleteApplications(args, optionsOrCb, cb) {
85
- const command = new DeleteApplicationsCommand(args);
88
+ };
89
+ ApplicationDiscoveryService.prototype.deleteApplications = function (args, optionsOrCb, cb) {
90
+ var command = new DeleteApplicationsCommand(args);
86
91
  if (typeof optionsOrCb === "function") {
87
92
  this.send(command, optionsOrCb);
88
93
  }
89
94
  else if (typeof cb === "function") {
90
95
  if (typeof optionsOrCb !== "object")
91
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
92
97
  this.send(command, optionsOrCb || {}, cb);
93
98
  }
94
99
  else {
95
100
  return this.send(command, optionsOrCb);
96
101
  }
97
- }
98
- deleteTags(args, optionsOrCb, cb) {
99
- const command = new DeleteTagsCommand(args);
102
+ };
103
+ ApplicationDiscoveryService.prototype.deleteTags = function (args, optionsOrCb, cb) {
104
+ var command = new DeleteTagsCommand(args);
100
105
  if (typeof optionsOrCb === "function") {
101
106
  this.send(command, optionsOrCb);
102
107
  }
103
108
  else if (typeof cb === "function") {
104
109
  if (typeof optionsOrCb !== "object")
105
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
106
111
  this.send(command, optionsOrCb || {}, cb);
107
112
  }
108
113
  else {
109
114
  return this.send(command, optionsOrCb);
110
115
  }
111
- }
112
- describeAgents(args, optionsOrCb, cb) {
113
- const command = new DescribeAgentsCommand(args);
116
+ };
117
+ ApplicationDiscoveryService.prototype.describeAgents = function (args, optionsOrCb, cb) {
118
+ var command = new DescribeAgentsCommand(args);
114
119
  if (typeof optionsOrCb === "function") {
115
120
  this.send(command, optionsOrCb);
116
121
  }
117
122
  else if (typeof cb === "function") {
118
123
  if (typeof optionsOrCb !== "object")
119
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
120
125
  this.send(command, optionsOrCb || {}, cb);
121
126
  }
122
127
  else {
123
128
  return this.send(command, optionsOrCb);
124
129
  }
125
- }
126
- describeConfigurations(args, optionsOrCb, cb) {
127
- const command = new DescribeConfigurationsCommand(args);
130
+ };
131
+ ApplicationDiscoveryService.prototype.describeConfigurations = function (args, optionsOrCb, cb) {
132
+ var command = new DescribeConfigurationsCommand(args);
128
133
  if (typeof optionsOrCb === "function") {
129
134
  this.send(command, optionsOrCb);
130
135
  }
131
136
  else if (typeof cb === "function") {
132
137
  if (typeof optionsOrCb !== "object")
133
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
134
139
  this.send(command, optionsOrCb || {}, cb);
135
140
  }
136
141
  else {
137
142
  return this.send(command, optionsOrCb);
138
143
  }
139
- }
140
- describeContinuousExports(args, optionsOrCb, cb) {
141
- const command = new DescribeContinuousExportsCommand(args);
144
+ };
145
+ ApplicationDiscoveryService.prototype.describeContinuousExports = function (args, optionsOrCb, cb) {
146
+ var command = new DescribeContinuousExportsCommand(args);
142
147
  if (typeof optionsOrCb === "function") {
143
148
  this.send(command, optionsOrCb);
144
149
  }
145
150
  else if (typeof cb === "function") {
146
151
  if (typeof optionsOrCb !== "object")
147
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
148
153
  this.send(command, optionsOrCb || {}, cb);
149
154
  }
150
155
  else {
151
156
  return this.send(command, optionsOrCb);
152
157
  }
153
- }
154
- describeExportConfigurations(args, optionsOrCb, cb) {
155
- const command = new DescribeExportConfigurationsCommand(args);
158
+ };
159
+ ApplicationDiscoveryService.prototype.describeExportConfigurations = function (args, optionsOrCb, cb) {
160
+ var command = new DescribeExportConfigurationsCommand(args);
156
161
  if (typeof optionsOrCb === "function") {
157
162
  this.send(command, optionsOrCb);
158
163
  }
159
164
  else if (typeof cb === "function") {
160
165
  if (typeof optionsOrCb !== "object")
161
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
162
167
  this.send(command, optionsOrCb || {}, cb);
163
168
  }
164
169
  else {
165
170
  return this.send(command, optionsOrCb);
166
171
  }
167
- }
168
- describeExportTasks(args, optionsOrCb, cb) {
169
- const command = new DescribeExportTasksCommand(args);
172
+ };
173
+ ApplicationDiscoveryService.prototype.describeExportTasks = function (args, optionsOrCb, cb) {
174
+ var command = new DescribeExportTasksCommand(args);
170
175
  if (typeof optionsOrCb === "function") {
171
176
  this.send(command, optionsOrCb);
172
177
  }
173
178
  else if (typeof cb === "function") {
174
179
  if (typeof optionsOrCb !== "object")
175
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
176
181
  this.send(command, optionsOrCb || {}, cb);
177
182
  }
178
183
  else {
179
184
  return this.send(command, optionsOrCb);
180
185
  }
181
- }
182
- describeImportTasks(args, optionsOrCb, cb) {
183
- const command = new DescribeImportTasksCommand(args);
186
+ };
187
+ ApplicationDiscoveryService.prototype.describeImportTasks = function (args, optionsOrCb, cb) {
188
+ var command = new DescribeImportTasksCommand(args);
184
189
  if (typeof optionsOrCb === "function") {
185
190
  this.send(command, optionsOrCb);
186
191
  }
187
192
  else if (typeof cb === "function") {
188
193
  if (typeof optionsOrCb !== "object")
189
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
190
195
  this.send(command, optionsOrCb || {}, cb);
191
196
  }
192
197
  else {
193
198
  return this.send(command, optionsOrCb);
194
199
  }
195
- }
196
- describeTags(args, optionsOrCb, cb) {
197
- const command = new DescribeTagsCommand(args);
200
+ };
201
+ ApplicationDiscoveryService.prototype.describeTags = function (args, optionsOrCb, cb) {
202
+ var command = new DescribeTagsCommand(args);
198
203
  if (typeof optionsOrCb === "function") {
199
204
  this.send(command, optionsOrCb);
200
205
  }
201
206
  else if (typeof cb === "function") {
202
207
  if (typeof optionsOrCb !== "object")
203
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
204
209
  this.send(command, optionsOrCb || {}, cb);
205
210
  }
206
211
  else {
207
212
  return this.send(command, optionsOrCb);
208
213
  }
209
- }
210
- disassociateConfigurationItemsFromApplication(args, optionsOrCb, cb) {
211
- const command = new DisassociateConfigurationItemsFromApplicationCommand(args);
214
+ };
215
+ ApplicationDiscoveryService.prototype.disassociateConfigurationItemsFromApplication = function (args, optionsOrCb, cb) {
216
+ var command = new DisassociateConfigurationItemsFromApplicationCommand(args);
212
217
  if (typeof optionsOrCb === "function") {
213
218
  this.send(command, optionsOrCb);
214
219
  }
215
220
  else if (typeof cb === "function") {
216
221
  if (typeof optionsOrCb !== "object")
217
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
218
223
  this.send(command, optionsOrCb || {}, cb);
219
224
  }
220
225
  else {
221
226
  return this.send(command, optionsOrCb);
222
227
  }
223
- }
224
- exportConfigurations(args, optionsOrCb, cb) {
225
- const command = new ExportConfigurationsCommand(args);
228
+ };
229
+ ApplicationDiscoveryService.prototype.exportConfigurations = function (args, optionsOrCb, cb) {
230
+ var command = new ExportConfigurationsCommand(args);
226
231
  if (typeof optionsOrCb === "function") {
227
232
  this.send(command, optionsOrCb);
228
233
  }
229
234
  else if (typeof cb === "function") {
230
235
  if (typeof optionsOrCb !== "object")
231
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
232
237
  this.send(command, optionsOrCb || {}, cb);
233
238
  }
234
239
  else {
235
240
  return this.send(command, optionsOrCb);
236
241
  }
237
- }
238
- getDiscoverySummary(args, optionsOrCb, cb) {
239
- const command = new GetDiscoverySummaryCommand(args);
242
+ };
243
+ ApplicationDiscoveryService.prototype.getDiscoverySummary = function (args, optionsOrCb, cb) {
244
+ var command = new GetDiscoverySummaryCommand(args);
240
245
  if (typeof optionsOrCb === "function") {
241
246
  this.send(command, optionsOrCb);
242
247
  }
243
248
  else if (typeof cb === "function") {
244
249
  if (typeof optionsOrCb !== "object")
245
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
246
251
  this.send(command, optionsOrCb || {}, cb);
247
252
  }
248
253
  else {
249
254
  return this.send(command, optionsOrCb);
250
255
  }
251
- }
252
- listConfigurations(args, optionsOrCb, cb) {
253
- const command = new ListConfigurationsCommand(args);
256
+ };
257
+ ApplicationDiscoveryService.prototype.listConfigurations = function (args, optionsOrCb, cb) {
258
+ var command = new ListConfigurationsCommand(args);
254
259
  if (typeof optionsOrCb === "function") {
255
260
  this.send(command, optionsOrCb);
256
261
  }
257
262
  else if (typeof cb === "function") {
258
263
  if (typeof optionsOrCb !== "object")
259
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
260
265
  this.send(command, optionsOrCb || {}, cb);
261
266
  }
262
267
  else {
263
268
  return this.send(command, optionsOrCb);
264
269
  }
265
- }
266
- listServerNeighbors(args, optionsOrCb, cb) {
267
- const command = new ListServerNeighborsCommand(args);
270
+ };
271
+ ApplicationDiscoveryService.prototype.listServerNeighbors = function (args, optionsOrCb, cb) {
272
+ var command = new ListServerNeighborsCommand(args);
268
273
  if (typeof optionsOrCb === "function") {
269
274
  this.send(command, optionsOrCb);
270
275
  }
271
276
  else if (typeof cb === "function") {
272
277
  if (typeof optionsOrCb !== "object")
273
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
274
279
  this.send(command, optionsOrCb || {}, cb);
275
280
  }
276
281
  else {
277
282
  return this.send(command, optionsOrCb);
278
283
  }
279
- }
280
- startContinuousExport(args, optionsOrCb, cb) {
281
- const command = new StartContinuousExportCommand(args);
284
+ };
285
+ ApplicationDiscoveryService.prototype.startContinuousExport = function (args, optionsOrCb, cb) {
286
+ var command = new StartContinuousExportCommand(args);
282
287
  if (typeof optionsOrCb === "function") {
283
288
  this.send(command, optionsOrCb);
284
289
  }
285
290
  else if (typeof cb === "function") {
286
291
  if (typeof optionsOrCb !== "object")
287
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
288
293
  this.send(command, optionsOrCb || {}, cb);
289
294
  }
290
295
  else {
291
296
  return this.send(command, optionsOrCb);
292
297
  }
293
- }
294
- startDataCollectionByAgentIds(args, optionsOrCb, cb) {
295
- const command = new StartDataCollectionByAgentIdsCommand(args);
298
+ };
299
+ ApplicationDiscoveryService.prototype.startDataCollectionByAgentIds = function (args, optionsOrCb, cb) {
300
+ var command = new StartDataCollectionByAgentIdsCommand(args);
296
301
  if (typeof optionsOrCb === "function") {
297
302
  this.send(command, optionsOrCb);
298
303
  }
299
304
  else if (typeof cb === "function") {
300
305
  if (typeof optionsOrCb !== "object")
301
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
302
307
  this.send(command, optionsOrCb || {}, cb);
303
308
  }
304
309
  else {
305
310
  return this.send(command, optionsOrCb);
306
311
  }
307
- }
308
- startExportTask(args, optionsOrCb, cb) {
309
- const command = new StartExportTaskCommand(args);
312
+ };
313
+ ApplicationDiscoveryService.prototype.startExportTask = function (args, optionsOrCb, cb) {
314
+ var command = new StartExportTaskCommand(args);
310
315
  if (typeof optionsOrCb === "function") {
311
316
  this.send(command, optionsOrCb);
312
317
  }
313
318
  else if (typeof cb === "function") {
314
319
  if (typeof optionsOrCb !== "object")
315
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
316
321
  this.send(command, optionsOrCb || {}, cb);
317
322
  }
318
323
  else {
319
324
  return this.send(command, optionsOrCb);
320
325
  }
321
- }
322
- startImportTask(args, optionsOrCb, cb) {
323
- const command = new StartImportTaskCommand(args);
326
+ };
327
+ ApplicationDiscoveryService.prototype.startImportTask = function (args, optionsOrCb, cb) {
328
+ var command = new StartImportTaskCommand(args);
324
329
  if (typeof optionsOrCb === "function") {
325
330
  this.send(command, optionsOrCb);
326
331
  }
327
332
  else if (typeof cb === "function") {
328
333
  if (typeof optionsOrCb !== "object")
329
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
330
335
  this.send(command, optionsOrCb || {}, cb);
331
336
  }
332
337
  else {
333
338
  return this.send(command, optionsOrCb);
334
339
  }
335
- }
336
- stopContinuousExport(args, optionsOrCb, cb) {
337
- const command = new StopContinuousExportCommand(args);
340
+ };
341
+ ApplicationDiscoveryService.prototype.stopContinuousExport = function (args, optionsOrCb, cb) {
342
+ var command = new StopContinuousExportCommand(args);
338
343
  if (typeof optionsOrCb === "function") {
339
344
  this.send(command, optionsOrCb);
340
345
  }
341
346
  else if (typeof cb === "function") {
342
347
  if (typeof optionsOrCb !== "object")
343
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
344
349
  this.send(command, optionsOrCb || {}, cb);
345
350
  }
346
351
  else {
347
352
  return this.send(command, optionsOrCb);
348
353
  }
349
- }
350
- stopDataCollectionByAgentIds(args, optionsOrCb, cb) {
351
- const command = new StopDataCollectionByAgentIdsCommand(args);
354
+ };
355
+ ApplicationDiscoveryService.prototype.stopDataCollectionByAgentIds = function (args, optionsOrCb, cb) {
356
+ var command = new StopDataCollectionByAgentIdsCommand(args);
352
357
  if (typeof optionsOrCb === "function") {
353
358
  this.send(command, optionsOrCb);
354
359
  }
355
360
  else if (typeof cb === "function") {
356
361
  if (typeof optionsOrCb !== "object")
357
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
358
363
  this.send(command, optionsOrCb || {}, cb);
359
364
  }
360
365
  else {
361
366
  return this.send(command, optionsOrCb);
362
367
  }
363
- }
364
- updateApplication(args, optionsOrCb, cb) {
365
- const command = new UpdateApplicationCommand(args);
368
+ };
369
+ ApplicationDiscoveryService.prototype.updateApplication = function (args, optionsOrCb, cb) {
370
+ var command = new UpdateApplicationCommand(args);
366
371
  if (typeof optionsOrCb === "function") {
367
372
  this.send(command, optionsOrCb);
368
373
  }
369
374
  else if (typeof cb === "function") {
370
375
  if (typeof optionsOrCb !== "object")
371
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
372
377
  this.send(command, optionsOrCb || {}, cb);
373
378
  }
374
379
  else {
375
380
  return this.send(command, optionsOrCb);
376
381
  }
377
- }
378
- }
382
+ };
383
+ return ApplicationDiscoveryService;
384
+ }(ApplicationDiscoveryServiceClient));
385
+ export { ApplicationDiscoveryService };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class ApplicationDiscoveryServiceClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var ApplicationDiscoveryServiceClient = (function (_super) {
13
+ __extends(ApplicationDiscoveryServiceClient, _super);
14
+ function ApplicationDiscoveryServiceClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ ApplicationDiscoveryServiceClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return ApplicationDiscoveryServiceClient;
38
+ }(__Client));
39
+ export { ApplicationDiscoveryServiceClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { AssociateConfigurationItemsToApplicationRequestFilterSensitiveLog, AssociateConfigurationItemsToApplicationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1AssociateConfigurationItemsToApplicationCommand, serializeAws_json1_1AssociateConfigurationItemsToApplicationCommand, } from "../protocols/Aws_json1_1";
5
- export class AssociateConfigurationItemsToApplicationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var AssociateConfigurationItemsToApplicationCommand = (function (_super) {
7
+ __extends(AssociateConfigurationItemsToApplicationCommand, _super);
8
+ function AssociateConfigurationItemsToApplicationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ AssociateConfigurationItemsToApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ApplicationDiscoveryServiceClient";
15
- const commandName = "AssociateConfigurationItemsToApplicationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ApplicationDiscoveryServiceClient";
18
+ var commandName = "AssociateConfigurationItemsToApplicationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: AssociateConfigurationItemsToApplicationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: AssociateConfigurationItemsToApplicationResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ AssociateConfigurationItemsToApplicationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1AssociateConfigurationItemsToApplicationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ AssociateConfigurationItemsToApplicationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1AssociateConfigurationItemsToApplicationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return AssociateConfigurationItemsToApplicationCommand;
38
+ }($Command));
39
+ export { AssociateConfigurationItemsToApplicationCommand };