@aws-sdk/client-migration-hub 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 (35) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/MigrationHub.js +77 -70
  4. package/dist-es/MigrationHubClient.js +28 -22
  5. package/dist-es/commands/AssociateCreatedArtifactCommand.js +28 -21
  6. package/dist-es/commands/AssociateDiscoveredResourceCommand.js +28 -21
  7. package/dist-es/commands/CreateProgressUpdateStreamCommand.js +28 -21
  8. package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +28 -21
  9. package/dist-es/commands/DescribeApplicationStateCommand.js +28 -21
  10. package/dist-es/commands/DescribeMigrationTaskCommand.js +28 -21
  11. package/dist-es/commands/DisassociateCreatedArtifactCommand.js +28 -21
  12. package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +28 -21
  13. package/dist-es/commands/ImportMigrationTaskCommand.js +28 -21
  14. package/dist-es/commands/ListApplicationStatesCommand.js +28 -21
  15. package/dist-es/commands/ListCreatedArtifactsCommand.js +28 -21
  16. package/dist-es/commands/ListDiscoveredResourcesCommand.js +28 -21
  17. package/dist-es/commands/ListMigrationTasksCommand.js +28 -21
  18. package/dist-es/commands/ListProgressUpdateStreamsCommand.js +28 -21
  19. package/dist-es/commands/NotifyApplicationStateCommand.js +28 -21
  20. package/dist-es/commands/NotifyMigrationTaskStateCommand.js +28 -21
  21. package/dist-es/commands/PutResourceAttributesCommand.js +28 -21
  22. package/dist-es/endpoints.js +8 -8
  23. package/dist-es/models/MigrationHubServiceException.js +10 -5
  24. package/dist-es/models/models_0.js +164 -247
  25. package/dist-es/pagination/ListApplicationStatesPaginator.js +68 -25
  26. package/dist-es/pagination/ListCreatedArtifactsPaginator.js +68 -25
  27. package/dist-es/pagination/ListDiscoveredResourcesPaginator.js +68 -25
  28. package/dist-es/pagination/ListMigrationTasksPaginator.js +68 -25
  29. package/dist-es/pagination/ListProgressUpdateStreamsPaginator.js +68 -25
  30. package/dist-es/protocols/Aws_json1_1.js +1816 -1415
  31. package/dist-es/runtimeConfig.browser.js +12 -26
  32. package/dist-es/runtimeConfig.js +12 -30
  33. package/dist-es/runtimeConfig.native.js +5 -8
  34. package/dist-es/runtimeConfig.shared.js +11 -8
  35. 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-migration-hub
@@ -1648,10 +1648,10 @@ const deserializeAws_json1_1UnauthorizedOperation = (output, context) => {
1648
1648
  };
1649
1649
  };
1650
1650
  const deserializeMetadata = (output) => {
1651
- var _a;
1651
+ var _a, _b;
1652
1652
  return ({
1653
1653
  httpStatusCode: output.statusCode,
1654
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1654
+ 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"],
1655
1655
  extendedRequestId: output.headers["x-amz-id-2"],
1656
1656
  cfId: output.headers["x-amz-cf-id"],
1657
1657
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AssociateCreatedArtifactCommand, } from "./commands/AssociateCreatedArtifactCommand";
2
3
  import { AssociateDiscoveredResourceCommand, } from "./commands/AssociateDiscoveredResourceCommand";
3
4
  import { CreateProgressUpdateStreamCommand, } from "./commands/CreateProgressUpdateStreamCommand";
@@ -16,243 +17,249 @@ import { NotifyApplicationStateCommand, } from "./commands/NotifyApplicationStat
16
17
  import { NotifyMigrationTaskStateCommand, } from "./commands/NotifyMigrationTaskStateCommand";
17
18
  import { PutResourceAttributesCommand, } from "./commands/PutResourceAttributesCommand";
18
19
  import { MigrationHubClient } from "./MigrationHubClient";
19
- export class MigrationHub extends MigrationHubClient {
20
- associateCreatedArtifact(args, optionsOrCb, cb) {
21
- const command = new AssociateCreatedArtifactCommand(args);
20
+ var MigrationHub = (function (_super) {
21
+ __extends(MigrationHub, _super);
22
+ function MigrationHub() {
23
+ return _super !== null && _super.apply(this, arguments) || this;
24
+ }
25
+ MigrationHub.prototype.associateCreatedArtifact = function (args, optionsOrCb, cb) {
26
+ var command = new AssociateCreatedArtifactCommand(args);
22
27
  if (typeof optionsOrCb === "function") {
23
28
  this.send(command, optionsOrCb);
24
29
  }
25
30
  else if (typeof cb === "function") {
26
31
  if (typeof optionsOrCb !== "object")
27
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
32
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
28
33
  this.send(command, optionsOrCb || {}, cb);
29
34
  }
30
35
  else {
31
36
  return this.send(command, optionsOrCb);
32
37
  }
33
- }
34
- associateDiscoveredResource(args, optionsOrCb, cb) {
35
- const command = new AssociateDiscoveredResourceCommand(args);
38
+ };
39
+ MigrationHub.prototype.associateDiscoveredResource = function (args, optionsOrCb, cb) {
40
+ var command = new AssociateDiscoveredResourceCommand(args);
36
41
  if (typeof optionsOrCb === "function") {
37
42
  this.send(command, optionsOrCb);
38
43
  }
39
44
  else if (typeof cb === "function") {
40
45
  if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
42
47
  this.send(command, optionsOrCb || {}, cb);
43
48
  }
44
49
  else {
45
50
  return this.send(command, optionsOrCb);
46
51
  }
47
- }
48
- createProgressUpdateStream(args, optionsOrCb, cb) {
49
- const command = new CreateProgressUpdateStreamCommand(args);
52
+ };
53
+ MigrationHub.prototype.createProgressUpdateStream = function (args, optionsOrCb, cb) {
54
+ var command = new CreateProgressUpdateStreamCommand(args);
50
55
  if (typeof optionsOrCb === "function") {
51
56
  this.send(command, optionsOrCb);
52
57
  }
53
58
  else if (typeof cb === "function") {
54
59
  if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
56
61
  this.send(command, optionsOrCb || {}, cb);
57
62
  }
58
63
  else {
59
64
  return this.send(command, optionsOrCb);
60
65
  }
61
- }
62
- deleteProgressUpdateStream(args, optionsOrCb, cb) {
63
- const command = new DeleteProgressUpdateStreamCommand(args);
66
+ };
67
+ MigrationHub.prototype.deleteProgressUpdateStream = function (args, optionsOrCb, cb) {
68
+ var command = new DeleteProgressUpdateStreamCommand(args);
64
69
  if (typeof optionsOrCb === "function") {
65
70
  this.send(command, optionsOrCb);
66
71
  }
67
72
  else if (typeof cb === "function") {
68
73
  if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
70
75
  this.send(command, optionsOrCb || {}, cb);
71
76
  }
72
77
  else {
73
78
  return this.send(command, optionsOrCb);
74
79
  }
75
- }
76
- describeApplicationState(args, optionsOrCb, cb) {
77
- const command = new DescribeApplicationStateCommand(args);
80
+ };
81
+ MigrationHub.prototype.describeApplicationState = function (args, optionsOrCb, cb) {
82
+ var command = new DescribeApplicationStateCommand(args);
78
83
  if (typeof optionsOrCb === "function") {
79
84
  this.send(command, optionsOrCb);
80
85
  }
81
86
  else if (typeof cb === "function") {
82
87
  if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
84
89
  this.send(command, optionsOrCb || {}, cb);
85
90
  }
86
91
  else {
87
92
  return this.send(command, optionsOrCb);
88
93
  }
89
- }
90
- describeMigrationTask(args, optionsOrCb, cb) {
91
- const command = new DescribeMigrationTaskCommand(args);
94
+ };
95
+ MigrationHub.prototype.describeMigrationTask = function (args, optionsOrCb, cb) {
96
+ var command = new DescribeMigrationTaskCommand(args);
92
97
  if (typeof optionsOrCb === "function") {
93
98
  this.send(command, optionsOrCb);
94
99
  }
95
100
  else if (typeof cb === "function") {
96
101
  if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
98
103
  this.send(command, optionsOrCb || {}, cb);
99
104
  }
100
105
  else {
101
106
  return this.send(command, optionsOrCb);
102
107
  }
103
- }
104
- disassociateCreatedArtifact(args, optionsOrCb, cb) {
105
- const command = new DisassociateCreatedArtifactCommand(args);
108
+ };
109
+ MigrationHub.prototype.disassociateCreatedArtifact = function (args, optionsOrCb, cb) {
110
+ var command = new DisassociateCreatedArtifactCommand(args);
106
111
  if (typeof optionsOrCb === "function") {
107
112
  this.send(command, optionsOrCb);
108
113
  }
109
114
  else if (typeof cb === "function") {
110
115
  if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
112
117
  this.send(command, optionsOrCb || {}, cb);
113
118
  }
114
119
  else {
115
120
  return this.send(command, optionsOrCb);
116
121
  }
117
- }
118
- disassociateDiscoveredResource(args, optionsOrCb, cb) {
119
- const command = new DisassociateDiscoveredResourceCommand(args);
122
+ };
123
+ MigrationHub.prototype.disassociateDiscoveredResource = function (args, optionsOrCb, cb) {
124
+ var command = new DisassociateDiscoveredResourceCommand(args);
120
125
  if (typeof optionsOrCb === "function") {
121
126
  this.send(command, optionsOrCb);
122
127
  }
123
128
  else if (typeof cb === "function") {
124
129
  if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
126
131
  this.send(command, optionsOrCb || {}, cb);
127
132
  }
128
133
  else {
129
134
  return this.send(command, optionsOrCb);
130
135
  }
131
- }
132
- importMigrationTask(args, optionsOrCb, cb) {
133
- const command = new ImportMigrationTaskCommand(args);
136
+ };
137
+ MigrationHub.prototype.importMigrationTask = function (args, optionsOrCb, cb) {
138
+ var command = new ImportMigrationTaskCommand(args);
134
139
  if (typeof optionsOrCb === "function") {
135
140
  this.send(command, optionsOrCb);
136
141
  }
137
142
  else if (typeof cb === "function") {
138
143
  if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
140
145
  this.send(command, optionsOrCb || {}, cb);
141
146
  }
142
147
  else {
143
148
  return this.send(command, optionsOrCb);
144
149
  }
145
- }
146
- listApplicationStates(args, optionsOrCb, cb) {
147
- const command = new ListApplicationStatesCommand(args);
150
+ };
151
+ MigrationHub.prototype.listApplicationStates = function (args, optionsOrCb, cb) {
152
+ var command = new ListApplicationStatesCommand(args);
148
153
  if (typeof optionsOrCb === "function") {
149
154
  this.send(command, optionsOrCb);
150
155
  }
151
156
  else if (typeof cb === "function") {
152
157
  if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
154
159
  this.send(command, optionsOrCb || {}, cb);
155
160
  }
156
161
  else {
157
162
  return this.send(command, optionsOrCb);
158
163
  }
159
- }
160
- listCreatedArtifacts(args, optionsOrCb, cb) {
161
- const command = new ListCreatedArtifactsCommand(args);
164
+ };
165
+ MigrationHub.prototype.listCreatedArtifacts = function (args, optionsOrCb, cb) {
166
+ var command = new ListCreatedArtifactsCommand(args);
162
167
  if (typeof optionsOrCb === "function") {
163
168
  this.send(command, optionsOrCb);
164
169
  }
165
170
  else if (typeof cb === "function") {
166
171
  if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
168
173
  this.send(command, optionsOrCb || {}, cb);
169
174
  }
170
175
  else {
171
176
  return this.send(command, optionsOrCb);
172
177
  }
173
- }
174
- listDiscoveredResources(args, optionsOrCb, cb) {
175
- const command = new ListDiscoveredResourcesCommand(args);
178
+ };
179
+ MigrationHub.prototype.listDiscoveredResources = function (args, optionsOrCb, cb) {
180
+ var command = new ListDiscoveredResourcesCommand(args);
176
181
  if (typeof optionsOrCb === "function") {
177
182
  this.send(command, optionsOrCb);
178
183
  }
179
184
  else if (typeof cb === "function") {
180
185
  if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
182
187
  this.send(command, optionsOrCb || {}, cb);
183
188
  }
184
189
  else {
185
190
  return this.send(command, optionsOrCb);
186
191
  }
187
- }
188
- listMigrationTasks(args, optionsOrCb, cb) {
189
- const command = new ListMigrationTasksCommand(args);
192
+ };
193
+ MigrationHub.prototype.listMigrationTasks = function (args, optionsOrCb, cb) {
194
+ var command = new ListMigrationTasksCommand(args);
190
195
  if (typeof optionsOrCb === "function") {
191
196
  this.send(command, optionsOrCb);
192
197
  }
193
198
  else if (typeof cb === "function") {
194
199
  if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
196
201
  this.send(command, optionsOrCb || {}, cb);
197
202
  }
198
203
  else {
199
204
  return this.send(command, optionsOrCb);
200
205
  }
201
- }
202
- listProgressUpdateStreams(args, optionsOrCb, cb) {
203
- const command = new ListProgressUpdateStreamsCommand(args);
206
+ };
207
+ MigrationHub.prototype.listProgressUpdateStreams = function (args, optionsOrCb, cb) {
208
+ var command = new ListProgressUpdateStreamsCommand(args);
204
209
  if (typeof optionsOrCb === "function") {
205
210
  this.send(command, optionsOrCb);
206
211
  }
207
212
  else if (typeof cb === "function") {
208
213
  if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
210
215
  this.send(command, optionsOrCb || {}, cb);
211
216
  }
212
217
  else {
213
218
  return this.send(command, optionsOrCb);
214
219
  }
215
- }
216
- notifyApplicationState(args, optionsOrCb, cb) {
217
- const command = new NotifyApplicationStateCommand(args);
220
+ };
221
+ MigrationHub.prototype.notifyApplicationState = function (args, optionsOrCb, cb) {
222
+ var command = new NotifyApplicationStateCommand(args);
218
223
  if (typeof optionsOrCb === "function") {
219
224
  this.send(command, optionsOrCb);
220
225
  }
221
226
  else if (typeof cb === "function") {
222
227
  if (typeof optionsOrCb !== "object")
223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
224
229
  this.send(command, optionsOrCb || {}, cb);
225
230
  }
226
231
  else {
227
232
  return this.send(command, optionsOrCb);
228
233
  }
229
- }
230
- notifyMigrationTaskState(args, optionsOrCb, cb) {
231
- const command = new NotifyMigrationTaskStateCommand(args);
234
+ };
235
+ MigrationHub.prototype.notifyMigrationTaskState = function (args, optionsOrCb, cb) {
236
+ var command = new NotifyMigrationTaskStateCommand(args);
232
237
  if (typeof optionsOrCb === "function") {
233
238
  this.send(command, optionsOrCb);
234
239
  }
235
240
  else if (typeof cb === "function") {
236
241
  if (typeof optionsOrCb !== "object")
237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
238
243
  this.send(command, optionsOrCb || {}, cb);
239
244
  }
240
245
  else {
241
246
  return this.send(command, optionsOrCb);
242
247
  }
243
- }
244
- putResourceAttributes(args, optionsOrCb, cb) {
245
- const command = new PutResourceAttributesCommand(args);
248
+ };
249
+ MigrationHub.prototype.putResourceAttributes = function (args, optionsOrCb, cb) {
250
+ var command = new PutResourceAttributesCommand(args);
246
251
  if (typeof optionsOrCb === "function") {
247
252
  this.send(command, optionsOrCb);
248
253
  }
249
254
  else if (typeof cb === "function") {
250
255
  if (typeof optionsOrCb !== "object")
251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
256
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
252
257
  this.send(command, optionsOrCb || {}, cb);
253
258
  }
254
259
  else {
255
260
  return this.send(command, optionsOrCb);
256
261
  }
257
- }
258
- }
262
+ };
263
+ return MigrationHub;
264
+ }(MigrationHubClient));
265
+ export { MigrationHub };
@@ -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 MigrationHubClient 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 MigrationHubClient = (function (_super) {
13
+ __extends(MigrationHubClient, _super);
14
+ function MigrationHubClient(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
+ MigrationHubClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return MigrationHubClient;
38
+ }(__Client));
39
+ export { MigrationHubClient };
@@ -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 { AssociateCreatedArtifactRequestFilterSensitiveLog, AssociateCreatedArtifactResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1AssociateCreatedArtifactCommand, serializeAws_json1_1AssociateCreatedArtifactCommand, } from "../protocols/Aws_json1_1";
5
- export class AssociateCreatedArtifactCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var AssociateCreatedArtifactCommand = (function (_super) {
7
+ __extends(AssociateCreatedArtifactCommand, _super);
8
+ function AssociateCreatedArtifactCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ AssociateCreatedArtifactCommand.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 = "MigrationHubClient";
15
- const commandName = "AssociateCreatedArtifactCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MigrationHubClient";
18
+ var commandName = "AssociateCreatedArtifactCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: AssociateCreatedArtifactRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: AssociateCreatedArtifactResultFilterSensitiveLog,
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
+ AssociateCreatedArtifactCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1AssociateCreatedArtifactCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ AssociateCreatedArtifactCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1AssociateCreatedArtifactCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return AssociateCreatedArtifactCommand;
38
+ }($Command));
39
+ export { AssociateCreatedArtifactCommand };
@@ -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 { AssociateDiscoveredResourceRequestFilterSensitiveLog, AssociateDiscoveredResourceResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1AssociateDiscoveredResourceCommand, serializeAws_json1_1AssociateDiscoveredResourceCommand, } from "../protocols/Aws_json1_1";
5
- export class AssociateDiscoveredResourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var AssociateDiscoveredResourceCommand = (function (_super) {
7
+ __extends(AssociateDiscoveredResourceCommand, _super);
8
+ function AssociateDiscoveredResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ AssociateDiscoveredResourceCommand.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 = "MigrationHubClient";
15
- const commandName = "AssociateDiscoveredResourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MigrationHubClient";
18
+ var commandName = "AssociateDiscoveredResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: AssociateDiscoveredResourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: AssociateDiscoveredResourceResultFilterSensitiveLog,
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
+ AssociateDiscoveredResourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1AssociateDiscoveredResourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ AssociateDiscoveredResourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1AssociateDiscoveredResourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return AssociateDiscoveredResourceCommand;
38
+ }($Command));
39
+ export { AssociateDiscoveredResourceCommand };
@@ -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 { CreateProgressUpdateStreamRequestFilterSensitiveLog, CreateProgressUpdateStreamResultFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateProgressUpdateStreamCommand, serializeAws_json1_1CreateProgressUpdateStreamCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateProgressUpdateStreamCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateProgressUpdateStreamCommand = (function (_super) {
7
+ __extends(CreateProgressUpdateStreamCommand, _super);
8
+ function CreateProgressUpdateStreamCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateProgressUpdateStreamCommand.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 = "MigrationHubClient";
15
- const commandName = "CreateProgressUpdateStreamCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MigrationHubClient";
18
+ var commandName = "CreateProgressUpdateStreamCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateProgressUpdateStreamRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateProgressUpdateStreamResultFilterSensitiveLog,
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
+ CreateProgressUpdateStreamCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateProgressUpdateStreamCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateProgressUpdateStreamCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateProgressUpdateStreamCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateProgressUpdateStreamCommand;
38
+ }($Command));
39
+ export { CreateProgressUpdateStreamCommand };