@aws-sdk/client-migrationhub-config 3.987.0 → 3.988.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.
package/dist-cjs/index.js CHANGED
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var MigrationHubConfigServiceException = require('./models/MigrationHubConfigServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,243 +113,6 @@ class MigrationHubConfigClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class MigrationHubConfigServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, MigrationHubConfigServiceException.prototype);
117
- }
118
- }
119
-
120
- class AccessDeniedException extends MigrationHubConfigServiceException {
121
- name = "AccessDeniedException";
122
- $fault = "client";
123
- Message;
124
- constructor(opts) {
125
- super({
126
- name: "AccessDeniedException",
127
- $fault: "client",
128
- ...opts,
129
- });
130
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
- this.Message = opts.Message;
132
- }
133
- }
134
- class DryRunOperation extends MigrationHubConfigServiceException {
135
- name = "DryRunOperation";
136
- $fault = "client";
137
- Message;
138
- constructor(opts) {
139
- super({
140
- name: "DryRunOperation",
141
- $fault: "client",
142
- ...opts,
143
- });
144
- Object.setPrototypeOf(this, DryRunOperation.prototype);
145
- this.Message = opts.Message;
146
- }
147
- }
148
- class InternalServerError extends MigrationHubConfigServiceException {
149
- name = "InternalServerError";
150
- $fault = "server";
151
- Message;
152
- constructor(opts) {
153
- super({
154
- name: "InternalServerError",
155
- $fault: "server",
156
- ...opts,
157
- });
158
- Object.setPrototypeOf(this, InternalServerError.prototype);
159
- this.Message = opts.Message;
160
- }
161
- }
162
- class InvalidInputException extends MigrationHubConfigServiceException {
163
- name = "InvalidInputException";
164
- $fault = "client";
165
- Message;
166
- constructor(opts) {
167
- super({
168
- name: "InvalidInputException",
169
- $fault: "client",
170
- ...opts,
171
- });
172
- Object.setPrototypeOf(this, InvalidInputException.prototype);
173
- this.Message = opts.Message;
174
- }
175
- }
176
- class ServiceUnavailableException extends MigrationHubConfigServiceException {
177
- name = "ServiceUnavailableException";
178
- $fault = "server";
179
- Message;
180
- constructor(opts) {
181
- super({
182
- name: "ServiceUnavailableException",
183
- $fault: "server",
184
- ...opts,
185
- });
186
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
187
- this.Message = opts.Message;
188
- }
189
- }
190
- class ThrottlingException extends MigrationHubConfigServiceException {
191
- name = "ThrottlingException";
192
- $fault = "client";
193
- Message;
194
- RetryAfterSeconds;
195
- constructor(opts) {
196
- super({
197
- name: "ThrottlingException",
198
- $fault: "client",
199
- ...opts,
200
- });
201
- Object.setPrototypeOf(this, ThrottlingException.prototype);
202
- this.Message = opts.Message;
203
- this.RetryAfterSeconds = opts.RetryAfterSeconds;
204
- }
205
- }
206
-
207
- const _ADE = "AccessDeniedException";
208
- const _CHRC = "CreateHomeRegionControl";
209
- const _CHRCR = "CreateHomeRegionControlRequest";
210
- const _CHRCRr = "CreateHomeRegionControlResult";
211
- const _CI = "ControlId";
212
- const _DHRC = "DeleteHomeRegionControl";
213
- const _DHRCR = "DeleteHomeRegionControlRequest";
214
- const _DHRCRe = "DeleteHomeRegionControlResult";
215
- const _DHRCRes = "DescribeHomeRegionControlsRequest";
216
- const _DHRCResc = "DescribeHomeRegionControlsResult";
217
- const _DHRCe = "DescribeHomeRegionControls";
218
- const _DR = "DryRun";
219
- const _DRO = "DryRunOperation";
220
- const _GHR = "GetHomeRegion";
221
- const _GHRR = "GetHomeRegionRequest";
222
- const _GHRRe = "GetHomeRegionResult";
223
- const _HR = "HomeRegion";
224
- const _HRC = "HomeRegionControl";
225
- const _HRCo = "HomeRegionControls";
226
- const _I = "Id";
227
- const _IIE = "InvalidInputException";
228
- const _ISE = "InternalServerError";
229
- const _M = "Message";
230
- const _MR = "MaxResults";
231
- const _NT = "NextToken";
232
- const _RA = "Retry-After";
233
- const _RAS = "RetryAfterSeconds";
234
- const _RT = "RequestedTime";
235
- const _SUE = "ServiceUnavailableException";
236
- const _T = "Target";
237
- const _TE = "ThrottlingException";
238
- const _Ty = "Type";
239
- const _c = "client";
240
- const _e = "error";
241
- const _hE = "httpError";
242
- const _hH = "httpHeader";
243
- const _s = "server";
244
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.migrationhubconfig";
245
- const n0 = "com.amazonaws.migrationhubconfig";
246
- var AccessDeniedException$ = [-3, n0, _ADE,
247
- { [_e]: _c },
248
- [_M],
249
- [0]
250
- ];
251
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
252
- var CreateHomeRegionControlRequest$ = [3, n0, _CHRCR,
253
- 0,
254
- [_HR, _T, _DR],
255
- [0, () => Target$, 2], 2
256
- ];
257
- var CreateHomeRegionControlResult$ = [3, n0, _CHRCRr,
258
- 0,
259
- [_HRC],
260
- [() => HomeRegionControl$]
261
- ];
262
- var DeleteHomeRegionControlRequest$ = [3, n0, _DHRCR,
263
- 0,
264
- [_CI],
265
- [0], 1
266
- ];
267
- var DeleteHomeRegionControlResult$ = [3, n0, _DHRCRe,
268
- 0,
269
- [],
270
- []
271
- ];
272
- var DescribeHomeRegionControlsRequest$ = [3, n0, _DHRCRes,
273
- 0,
274
- [_CI, _HR, _T, _MR, _NT],
275
- [0, 0, () => Target$, 1, 0]
276
- ];
277
- var DescribeHomeRegionControlsResult$ = [3, n0, _DHRCResc,
278
- 0,
279
- [_HRCo, _NT],
280
- [() => HomeRegionControls, 0]
281
- ];
282
- var DryRunOperation$ = [-3, n0, _DRO,
283
- { [_e]: _c },
284
- [_M],
285
- [0]
286
- ];
287
- schema.TypeRegistry.for(n0).registerError(DryRunOperation$, DryRunOperation);
288
- var GetHomeRegionRequest$ = [3, n0, _GHRR,
289
- 0,
290
- [],
291
- []
292
- ];
293
- var GetHomeRegionResult$ = [3, n0, _GHRRe,
294
- 0,
295
- [_HR],
296
- [0]
297
- ];
298
- var HomeRegionControl$ = [3, n0, _HRC,
299
- 0,
300
- [_CI, _HR, _T, _RT],
301
- [0, 0, () => Target$, 4]
302
- ];
303
- var InternalServerError$ = [-3, n0, _ISE,
304
- { [_e]: _s },
305
- [_M],
306
- [0]
307
- ];
308
- schema.TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
309
- var InvalidInputException$ = [-3, n0, _IIE,
310
- { [_e]: _c },
311
- [_M],
312
- [0]
313
- ];
314
- schema.TypeRegistry.for(n0).registerError(InvalidInputException$, InvalidInputException);
315
- var ServiceUnavailableException$ = [-3, n0, _SUE,
316
- { [_e]: _s },
317
- [_M],
318
- [0]
319
- ];
320
- schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
321
- var Target$ = [3, n0, _T,
322
- 0,
323
- [_Ty, _I],
324
- [0, 0], 1
325
- ];
326
- var ThrottlingException$ = [-3, n0, _TE,
327
- { [_e]: _c, [_hE]: 429 },
328
- [_M, _RAS],
329
- [0, [1, { [_hH]: _RA }]], 1
330
- ];
331
- schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
332
- var MigrationHubConfigServiceException$ = [-3, _sm, "MigrationHubConfigServiceException", 0, [], []];
333
- schema.TypeRegistry.for(_sm).registerError(MigrationHubConfigServiceException$, MigrationHubConfigServiceException);
334
- var HomeRegionControls = [1, n0, _HRCo,
335
- 0, () => HomeRegionControl$
336
- ];
337
- var CreateHomeRegionControl$ = [9, n0, _CHRC,
338
- 0, () => CreateHomeRegionControlRequest$, () => CreateHomeRegionControlResult$
339
- ];
340
- var DeleteHomeRegionControl$ = [9, n0, _DHRC,
341
- 0, () => DeleteHomeRegionControlRequest$, () => DeleteHomeRegionControlResult$
342
- ];
343
- var DescribeHomeRegionControls$ = [9, n0, _DHRCe,
344
- 0, () => DescribeHomeRegionControlsRequest$, () => DescribeHomeRegionControlsResult$
345
- ];
346
- var GetHomeRegion$ = [9, n0, _GHR,
347
- 0, () => GetHomeRegionRequest$, () => GetHomeRegionResult$
348
- ];
349
-
350
116
  class CreateHomeRegionControlCommand extends smithyClient.Command
351
117
  .classBuilder()
352
118
  .ep(commonParams)
@@ -355,7 +121,7 @@ class CreateHomeRegionControlCommand extends smithyClient.Command
355
121
  })
356
122
  .s("AWSMigrationHubMultiAccountService", "CreateHomeRegionControl", {})
357
123
  .n("MigrationHubConfigClient", "CreateHomeRegionControlCommand")
358
- .sc(CreateHomeRegionControl$)
124
+ .sc(schemas_0.CreateHomeRegionControl$)
359
125
  .build() {
360
126
  }
361
127
 
@@ -367,7 +133,7 @@ class DeleteHomeRegionControlCommand extends smithyClient.Command
367
133
  })
368
134
  .s("AWSMigrationHubMultiAccountService", "DeleteHomeRegionControl", {})
369
135
  .n("MigrationHubConfigClient", "DeleteHomeRegionControlCommand")
370
- .sc(DeleteHomeRegionControl$)
136
+ .sc(schemas_0.DeleteHomeRegionControl$)
371
137
  .build() {
372
138
  }
373
139
 
@@ -379,7 +145,7 @@ class DescribeHomeRegionControlsCommand extends smithyClient.Command
379
145
  })
380
146
  .s("AWSMigrationHubMultiAccountService", "DescribeHomeRegionControls", {})
381
147
  .n("MigrationHubConfigClient", "DescribeHomeRegionControlsCommand")
382
- .sc(DescribeHomeRegionControls$)
148
+ .sc(schemas_0.DescribeHomeRegionControls$)
383
149
  .build() {
384
150
  }
385
151
 
@@ -391,7 +157,7 @@ class GetHomeRegionCommand extends smithyClient.Command
391
157
  })
392
158
  .s("AWSMigrationHubMultiAccountService", "GetHomeRegion", {})
393
159
  .n("MigrationHubConfigClient", "GetHomeRegionCommand")
394
- .sc(GetHomeRegion$)
160
+ .sc(schemas_0.GetHomeRegion$)
395
161
  .build() {
396
162
  }
397
163
 
@@ -422,39 +188,27 @@ Object.defineProperty(exports, "__Client", {
422
188
  enumerable: true,
423
189
  get: function () { return smithyClient.Client; }
424
190
  });
425
- exports.AccessDeniedException = AccessDeniedException;
426
- exports.AccessDeniedException$ = AccessDeniedException$;
427
- exports.CreateHomeRegionControl$ = CreateHomeRegionControl$;
191
+ Object.defineProperty(exports, "MigrationHubConfigServiceException", {
192
+ enumerable: true,
193
+ get: function () { return MigrationHubConfigServiceException.MigrationHubConfigServiceException; }
194
+ });
428
195
  exports.CreateHomeRegionControlCommand = CreateHomeRegionControlCommand;
429
- exports.CreateHomeRegionControlRequest$ = CreateHomeRegionControlRequest$;
430
- exports.CreateHomeRegionControlResult$ = CreateHomeRegionControlResult$;
431
- exports.DeleteHomeRegionControl$ = DeleteHomeRegionControl$;
432
196
  exports.DeleteHomeRegionControlCommand = DeleteHomeRegionControlCommand;
433
- exports.DeleteHomeRegionControlRequest$ = DeleteHomeRegionControlRequest$;
434
- exports.DeleteHomeRegionControlResult$ = DeleteHomeRegionControlResult$;
435
- exports.DescribeHomeRegionControls$ = DescribeHomeRegionControls$;
436
197
  exports.DescribeHomeRegionControlsCommand = DescribeHomeRegionControlsCommand;
437
- exports.DescribeHomeRegionControlsRequest$ = DescribeHomeRegionControlsRequest$;
438
- exports.DescribeHomeRegionControlsResult$ = DescribeHomeRegionControlsResult$;
439
- exports.DryRunOperation = DryRunOperation;
440
- exports.DryRunOperation$ = DryRunOperation$;
441
- exports.GetHomeRegion$ = GetHomeRegion$;
442
198
  exports.GetHomeRegionCommand = GetHomeRegionCommand;
443
- exports.GetHomeRegionRequest$ = GetHomeRegionRequest$;
444
- exports.GetHomeRegionResult$ = GetHomeRegionResult$;
445
- exports.HomeRegionControl$ = HomeRegionControl$;
446
- exports.InternalServerError = InternalServerError;
447
- exports.InternalServerError$ = InternalServerError$;
448
- exports.InvalidInputException = InvalidInputException;
449
- exports.InvalidInputException$ = InvalidInputException$;
450
199
  exports.MigrationHubConfig = MigrationHubConfig;
451
200
  exports.MigrationHubConfigClient = MigrationHubConfigClient;
452
- exports.MigrationHubConfigServiceException = MigrationHubConfigServiceException;
453
- exports.MigrationHubConfigServiceException$ = MigrationHubConfigServiceException$;
454
- exports.ServiceUnavailableException = ServiceUnavailableException;
455
- exports.ServiceUnavailableException$ = ServiceUnavailableException$;
456
- exports.Target$ = Target$;
457
201
  exports.TargetType = TargetType;
458
- exports.ThrottlingException = ThrottlingException;
459
- exports.ThrottlingException$ = ThrottlingException$;
460
202
  exports.paginateDescribeHomeRegionControls = paginateDescribeHomeRegionControls;
203
+ Object.keys(schemas_0).forEach(function (k) {
204
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
205
+ enumerable: true,
206
+ get: function () { return schemas_0[k]; }
207
+ });
208
+ });
209
+ Object.keys(errors).forEach(function (k) {
210
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
211
+ enumerable: true,
212
+ get: function () { return errors[k]; }
213
+ });
214
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MigrationHubConfigServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class MigrationHubConfigServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, MigrationHubConfigServiceException.prototype);
10
+ }
11
+ }
12
+ exports.MigrationHubConfigServiceException = MigrationHubConfigServiceException;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ThrottlingException = exports.ServiceUnavailableException = exports.InvalidInputException = exports.InternalServerError = exports.DryRunOperation = exports.AccessDeniedException = void 0;
4
+ const MigrationHubConfigServiceException_1 = require("./MigrationHubConfigServiceException");
5
+ class AccessDeniedException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
20
+ class DryRunOperation extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
21
+ name = "DryRunOperation";
22
+ $fault = "client";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "DryRunOperation",
27
+ $fault: "client",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, DryRunOperation.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.DryRunOperation = DryRunOperation;
35
+ class InternalServerError extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
36
+ name = "InternalServerError";
37
+ $fault = "server";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "InternalServerError",
42
+ $fault: "server",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, InternalServerError.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.InternalServerError = InternalServerError;
50
+ class InvalidInputException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
51
+ name = "InvalidInputException";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "InvalidInputException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.InvalidInputException = InvalidInputException;
65
+ class ServiceUnavailableException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
66
+ name = "ServiceUnavailableException";
67
+ $fault = "server";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "ServiceUnavailableException",
72
+ $fault: "server",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ exports.ServiceUnavailableException = ServiceUnavailableException;
80
+ class ThrottlingException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
81
+ name = "ThrottlingException";
82
+ $fault = "client";
83
+ Message;
84
+ RetryAfterSeconds;
85
+ constructor(opts) {
86
+ super({
87
+ name: "ThrottlingException",
88
+ $fault: "client",
89
+ ...opts,
90
+ });
91
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
92
+ this.Message = opts.Message;
93
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
94
+ }
95
+ }
96
+ exports.ThrottlingException = ThrottlingException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2019-06-30",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.migrationhubconfig",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2019-06-30",
33
35
  serviceTarget: "AWSMigrationHubMultiAccountService",
34
36
  },
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetHomeRegion$ = exports.DescribeHomeRegionControls$ = exports.DeleteHomeRegionControl$ = exports.CreateHomeRegionControl$ = exports.Target$ = exports.HomeRegionControl$ = exports.GetHomeRegionResult$ = exports.GetHomeRegionRequest$ = exports.DescribeHomeRegionControlsResult$ = exports.DescribeHomeRegionControlsRequest$ = exports.DeleteHomeRegionControlResult$ = exports.DeleteHomeRegionControlRequest$ = exports.CreateHomeRegionControlResult$ = exports.CreateHomeRegionControlRequest$ = exports.errorTypeRegistries = exports.ThrottlingException$ = exports.ServiceUnavailableException$ = exports.InvalidInputException$ = exports.InternalServerError$ = exports.DryRunOperation$ = exports.AccessDeniedException$ = exports.MigrationHubConfigServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _CHRC = "CreateHomeRegionControl";
6
+ const _CHRCR = "CreateHomeRegionControlRequest";
7
+ const _CHRCRr = "CreateHomeRegionControlResult";
8
+ const _CI = "ControlId";
9
+ const _DHRC = "DeleteHomeRegionControl";
10
+ const _DHRCR = "DeleteHomeRegionControlRequest";
11
+ const _DHRCRe = "DeleteHomeRegionControlResult";
12
+ const _DHRCRes = "DescribeHomeRegionControlsRequest";
13
+ const _DHRCResc = "DescribeHomeRegionControlsResult";
14
+ const _DHRCe = "DescribeHomeRegionControls";
15
+ const _DR = "DryRun";
16
+ const _DRO = "DryRunOperation";
17
+ const _GHR = "GetHomeRegion";
18
+ const _GHRR = "GetHomeRegionRequest";
19
+ const _GHRRe = "GetHomeRegionResult";
20
+ const _HR = "HomeRegion";
21
+ const _HRC = "HomeRegionControl";
22
+ const _HRCo = "HomeRegionControls";
23
+ const _I = "Id";
24
+ const _IIE = "InvalidInputException";
25
+ const _ISE = "InternalServerError";
26
+ const _M = "Message";
27
+ const _MR = "MaxResults";
28
+ const _NT = "NextToken";
29
+ const _RA = "Retry-After";
30
+ const _RAS = "RetryAfterSeconds";
31
+ const _RT = "RequestedTime";
32
+ const _SUE = "ServiceUnavailableException";
33
+ const _T = "Target";
34
+ const _TE = "ThrottlingException";
35
+ const _Ty = "Type";
36
+ const _c = "client";
37
+ const _e = "error";
38
+ const _hE = "httpError";
39
+ const _hH = "httpHeader";
40
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.migrationhubconfig";
41
+ const _se = "server";
42
+ const n0 = "com.amazonaws.migrationhubconfig";
43
+ const schema_1 = require("@smithy/core/schema");
44
+ const errors_1 = require("../models/errors");
45
+ const MigrationHubConfigServiceException_1 = require("../models/MigrationHubConfigServiceException");
46
+ const _s_registry = schema_1.TypeRegistry.for(_s);
47
+ exports.MigrationHubConfigServiceException$ = [-3, _s, "MigrationHubConfigServiceException", 0, [], []];
48
+ _s_registry.registerError(exports.MigrationHubConfigServiceException$, MigrationHubConfigServiceException_1.MigrationHubConfigServiceException);
49
+ const n0_registry = schema_1.TypeRegistry.for(n0);
50
+ exports.AccessDeniedException$ = [-3, n0, _ADE,
51
+ { [_e]: _c },
52
+ [_M],
53
+ [0]
54
+ ];
55
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
56
+ exports.DryRunOperation$ = [-3, n0, _DRO,
57
+ { [_e]: _c },
58
+ [_M],
59
+ [0]
60
+ ];
61
+ n0_registry.registerError(exports.DryRunOperation$, errors_1.DryRunOperation);
62
+ exports.InternalServerError$ = [-3, n0, _ISE,
63
+ { [_e]: _se },
64
+ [_M],
65
+ [0]
66
+ ];
67
+ n0_registry.registerError(exports.InternalServerError$, errors_1.InternalServerError);
68
+ exports.InvalidInputException$ = [-3, n0, _IIE,
69
+ { [_e]: _c },
70
+ [_M],
71
+ [0]
72
+ ];
73
+ n0_registry.registerError(exports.InvalidInputException$, errors_1.InvalidInputException);
74
+ exports.ServiceUnavailableException$ = [-3, n0, _SUE,
75
+ { [_e]: _se },
76
+ [_M],
77
+ [0]
78
+ ];
79
+ n0_registry.registerError(exports.ServiceUnavailableException$, errors_1.ServiceUnavailableException);
80
+ exports.ThrottlingException$ = [-3, n0, _TE,
81
+ { [_e]: _c, [_hE]: 429 },
82
+ [_M, _RAS],
83
+ [0, [1, { [_hH]: _RA }]], 1
84
+ ];
85
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
86
+ exports.errorTypeRegistries = [
87
+ _s_registry,
88
+ n0_registry,
89
+ ];
90
+ exports.CreateHomeRegionControlRequest$ = [3, n0, _CHRCR,
91
+ 0,
92
+ [_HR, _T, _DR],
93
+ [0, () => exports.Target$, 2], 2
94
+ ];
95
+ exports.CreateHomeRegionControlResult$ = [3, n0, _CHRCRr,
96
+ 0,
97
+ [_HRC],
98
+ [() => exports.HomeRegionControl$]
99
+ ];
100
+ exports.DeleteHomeRegionControlRequest$ = [3, n0, _DHRCR,
101
+ 0,
102
+ [_CI],
103
+ [0], 1
104
+ ];
105
+ exports.DeleteHomeRegionControlResult$ = [3, n0, _DHRCRe,
106
+ 0,
107
+ [],
108
+ []
109
+ ];
110
+ exports.DescribeHomeRegionControlsRequest$ = [3, n0, _DHRCRes,
111
+ 0,
112
+ [_CI, _HR, _T, _MR, _NT],
113
+ [0, 0, () => exports.Target$, 1, 0]
114
+ ];
115
+ exports.DescribeHomeRegionControlsResult$ = [3, n0, _DHRCResc,
116
+ 0,
117
+ [_HRCo, _NT],
118
+ [() => HomeRegionControls, 0]
119
+ ];
120
+ exports.GetHomeRegionRequest$ = [3, n0, _GHRR,
121
+ 0,
122
+ [],
123
+ []
124
+ ];
125
+ exports.GetHomeRegionResult$ = [3, n0, _GHRRe,
126
+ 0,
127
+ [_HR],
128
+ [0]
129
+ ];
130
+ exports.HomeRegionControl$ = [3, n0, _HRC,
131
+ 0,
132
+ [_CI, _HR, _T, _RT],
133
+ [0, 0, () => exports.Target$, 4]
134
+ ];
135
+ exports.Target$ = [3, n0, _T,
136
+ 0,
137
+ [_Ty, _I],
138
+ [0, 0], 1
139
+ ];
140
+ var HomeRegionControls = [1, n0, _HRCo,
141
+ 0, () => exports.HomeRegionControl$
142
+ ];
143
+ exports.CreateHomeRegionControl$ = [9, n0, _CHRC,
144
+ 0, () => exports.CreateHomeRegionControlRequest$, () => exports.CreateHomeRegionControlResult$
145
+ ];
146
+ exports.DeleteHomeRegionControl$ = [9, n0, _DHRC,
147
+ 0, () => exports.DeleteHomeRegionControlRequest$, () => exports.DeleteHomeRegionControlResult$
148
+ ];
149
+ exports.DescribeHomeRegionControls$ = [9, n0, _DHRCe,
150
+ 0, () => exports.DescribeHomeRegionControlsRequest$, () => exports.DescribeHomeRegionControlsResult$
151
+ ];
152
+ exports.GetHomeRegion$ = [9, n0, _GHR,
153
+ 0, () => exports.GetHomeRegionRequest$, () => exports.GetHomeRegionResult$
154
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultMigrationHubConfigHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2019-06-30",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.migrationhubconfig",
30
+ errorTypeRegistries,
29
31
  version: "2019-06-30",
30
32
  serviceTarget: "AWSMigrationHubMultiAccountService",
31
33
  },
@@ -34,18 +34,56 @@ const _c = "client";
34
34
  const _e = "error";
35
35
  const _hE = "httpError";
36
36
  const _hH = "httpHeader";
37
- const _s = "server";
38
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.migrationhubconfig";
37
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.migrationhubconfig";
38
+ const _se = "server";
39
39
  const n0 = "com.amazonaws.migrationhubconfig";
40
40
  import { TypeRegistry } from "@smithy/core/schema";
41
41
  import { AccessDeniedException, DryRunOperation, InternalServerError, InvalidInputException, ServiceUnavailableException, ThrottlingException, } from "../models/errors";
42
42
  import { MigrationHubConfigServiceException } from "../models/MigrationHubConfigServiceException";
43
+ const _s_registry = TypeRegistry.for(_s);
44
+ export var MigrationHubConfigServiceException$ = [-3, _s, "MigrationHubConfigServiceException", 0, [], []];
45
+ _s_registry.registerError(MigrationHubConfigServiceException$, MigrationHubConfigServiceException);
46
+ const n0_registry = TypeRegistry.for(n0);
43
47
  export var AccessDeniedException$ = [-3, n0, _ADE,
44
48
  { [_e]: _c },
45
49
  [_M],
46
50
  [0]
47
51
  ];
48
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
52
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
53
+ export var DryRunOperation$ = [-3, n0, _DRO,
54
+ { [_e]: _c },
55
+ [_M],
56
+ [0]
57
+ ];
58
+ n0_registry.registerError(DryRunOperation$, DryRunOperation);
59
+ export var InternalServerError$ = [-3, n0, _ISE,
60
+ { [_e]: _se },
61
+ [_M],
62
+ [0]
63
+ ];
64
+ n0_registry.registerError(InternalServerError$, InternalServerError);
65
+ export var InvalidInputException$ = [-3, n0, _IIE,
66
+ { [_e]: _c },
67
+ [_M],
68
+ [0]
69
+ ];
70
+ n0_registry.registerError(InvalidInputException$, InvalidInputException);
71
+ export var ServiceUnavailableException$ = [-3, n0, _SUE,
72
+ { [_e]: _se },
73
+ [_M],
74
+ [0]
75
+ ];
76
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
77
+ export var ThrottlingException$ = [-3, n0, _TE,
78
+ { [_e]: _c, [_hE]: 429 },
79
+ [_M, _RAS],
80
+ [0, [1, { [_hH]: _RA }]], 1
81
+ ];
82
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
83
+ export const errorTypeRegistries = [
84
+ _s_registry,
85
+ n0_registry,
86
+ ];
49
87
  export var CreateHomeRegionControlRequest$ = [3, n0, _CHRCR,
50
88
  0,
51
89
  [_HR, _T, _DR],
@@ -76,12 +114,6 @@ export var DescribeHomeRegionControlsResult$ = [3, n0, _DHRCResc,
76
114
  [_HRCo, _NT],
77
115
  [() => HomeRegionControls, 0]
78
116
  ];
79
- export var DryRunOperation$ = [-3, n0, _DRO,
80
- { [_e]: _c },
81
- [_M],
82
- [0]
83
- ];
84
- TypeRegistry.for(n0).registerError(DryRunOperation$, DryRunOperation);
85
117
  export var GetHomeRegionRequest$ = [3, n0, _GHRR,
86
118
  0,
87
119
  [],
@@ -97,37 +129,11 @@ export var HomeRegionControl$ = [3, n0, _HRC,
97
129
  [_CI, _HR, _T, _RT],
98
130
  [0, 0, () => Target$, 4]
99
131
  ];
100
- export var InternalServerError$ = [-3, n0, _ISE,
101
- { [_e]: _s },
102
- [_M],
103
- [0]
104
- ];
105
- TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
106
- export var InvalidInputException$ = [-3, n0, _IIE,
107
- { [_e]: _c },
108
- [_M],
109
- [0]
110
- ];
111
- TypeRegistry.for(n0).registerError(InvalidInputException$, InvalidInputException);
112
- export var ServiceUnavailableException$ = [-3, n0, _SUE,
113
- { [_e]: _s },
114
- [_M],
115
- [0]
116
- ];
117
- TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
118
132
  export var Target$ = [3, n0, _T,
119
133
  0,
120
134
  [_Ty, _I],
121
135
  [0, 0], 1
122
136
  ];
123
- export var ThrottlingException$ = [-3, n0, _TE,
124
- { [_e]: _c, [_hE]: 429 },
125
- [_M, _RAS],
126
- [0, [1, { [_hH]: _RA }]], 1
127
- ];
128
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
129
- export var MigrationHubConfigServiceException$ = [-3, _sm, "MigrationHubConfigServiceException", 0, [], []];
130
- TypeRegistry.for(_sm).registerError(MigrationHubConfigServiceException$, MigrationHubConfigServiceException);
131
137
  var HomeRegionControls = [1, n0, _HRCo,
132
138
  0, () => HomeRegionControl$
133
139
  ];
@@ -1,21 +1,28 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var MigrationHubConfigServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var DryRunOperation$: StaticErrorSchema;
6
+ export declare var InternalServerError$: StaticErrorSchema;
7
+ export declare var InvalidInputException$: StaticErrorSchema;
8
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
9
+ export declare var ThrottlingException$: StaticErrorSchema;
10
+ /**
11
+ * TypeRegistry instances containing modeled errors.
12
+ * @internal
13
+ *
14
+ */
15
+ export declare const errorTypeRegistries: TypeRegistry[];
3
16
  export declare var CreateHomeRegionControlRequest$: StaticStructureSchema;
4
17
  export declare var CreateHomeRegionControlResult$: StaticStructureSchema;
5
18
  export declare var DeleteHomeRegionControlRequest$: StaticStructureSchema;
6
19
  export declare var DeleteHomeRegionControlResult$: StaticStructureSchema;
7
20
  export declare var DescribeHomeRegionControlsRequest$: StaticStructureSchema;
8
21
  export declare var DescribeHomeRegionControlsResult$: StaticStructureSchema;
9
- export declare var DryRunOperation$: StaticErrorSchema;
10
22
  export declare var GetHomeRegionRequest$: StaticStructureSchema;
11
23
  export declare var GetHomeRegionResult$: StaticStructureSchema;
12
24
  export declare var HomeRegionControl$: StaticStructureSchema;
13
- export declare var InternalServerError$: StaticErrorSchema;
14
- export declare var InvalidInputException$: StaticErrorSchema;
15
- export declare var ServiceUnavailableException$: StaticErrorSchema;
16
25
  export declare var Target$: StaticStructureSchema;
17
- export declare var ThrottlingException$: StaticErrorSchema;
18
- export declare var MigrationHubConfigServiceException$: StaticErrorSchema;
19
26
  export declare var CreateHomeRegionControl$: StaticOperationSchema;
20
27
  export declare var DeleteHomeRegionControl$: StaticOperationSchema;
21
28
  export declare var DescribeHomeRegionControls$: StaticOperationSchema;
@@ -1,25 +1,27 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var MigrationHubConfigServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var DryRunOperation$: StaticErrorSchema;
10
+ export declare var InternalServerError$: StaticErrorSchema;
11
+ export declare var InvalidInputException$: StaticErrorSchema;
12
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
13
+ export declare var ThrottlingException$: StaticErrorSchema;
14
+ export declare const errorTypeRegistries: TypeRegistry[];
7
15
  export declare var CreateHomeRegionControlRequest$: StaticStructureSchema;
8
16
  export declare var CreateHomeRegionControlResult$: StaticStructureSchema;
9
17
  export declare var DeleteHomeRegionControlRequest$: StaticStructureSchema;
10
18
  export declare var DeleteHomeRegionControlResult$: StaticStructureSchema;
11
19
  export declare var DescribeHomeRegionControlsRequest$: StaticStructureSchema;
12
20
  export declare var DescribeHomeRegionControlsResult$: StaticStructureSchema;
13
- export declare var DryRunOperation$: StaticErrorSchema;
14
21
  export declare var GetHomeRegionRequest$: StaticStructureSchema;
15
22
  export declare var GetHomeRegionResult$: StaticStructureSchema;
16
23
  export declare var HomeRegionControl$: StaticStructureSchema;
17
- export declare var InternalServerError$: StaticErrorSchema;
18
- export declare var InvalidInputException$: StaticErrorSchema;
19
- export declare var ServiceUnavailableException$: StaticErrorSchema;
20
24
  export declare var Target$: StaticStructureSchema;
21
- export declare var ThrottlingException$: StaticErrorSchema;
22
- export declare var MigrationHubConfigServiceException$: StaticErrorSchema;
23
25
  export declare var CreateHomeRegionControl$: StaticOperationSchema;
24
26
  export declare var DeleteHomeRegionControl$: StaticOperationSchema;
25
27
  export declare var DescribeHomeRegionControls$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migrationhub-config",
3
3
  "description": "AWS SDK for JavaScript Migrationhub Config Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-migrationhub-config",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",