@aws-sdk/client-migrationhub-config 3.927.0 → 3.928.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 +225 -270
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/MigrationHubConfigClient.js +2 -0
- package/dist-es/commands/CreateHomeRegionControlCommand.js +3 -9
- package/dist-es/commands/DeleteHomeRegionControlCommand.js +3 -9
- package/dist-es/commands/DescribeHomeRegionControlsCommand.js +3 -9
- package/dist-es/commands/GetHomeRegionCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +198 -0
- package/dist-types/MigrationHubConfigClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +24 -0
- package/dist-types/ts3.4/MigrationHubConfigClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +29 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -228
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -38
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -53
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class MigrationHubConfigClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,14 +110,14 @@ class MigrationHubConfigClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class MigrationHubConfigServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let MigrationHubConfigServiceException$1 = class MigrationHubConfigServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, MigrationHubConfigServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
|
-
class AccessDeniedException extends MigrationHubConfigServiceException {
|
|
120
|
+
let AccessDeniedException$1 = class AccessDeniedException extends MigrationHubConfigServiceException$1 {
|
|
121
121
|
name = "AccessDeniedException";
|
|
122
122
|
$fault = "client";
|
|
123
123
|
Message;
|
|
@@ -130,11 +130,11 @@ class AccessDeniedException extends MigrationHubConfigServiceException {
|
|
|
130
130
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
131
|
this.Message = opts.Message;
|
|
132
132
|
}
|
|
133
|
-
}
|
|
133
|
+
};
|
|
134
134
|
const TargetType = {
|
|
135
135
|
ACCOUNT: "ACCOUNT",
|
|
136
136
|
};
|
|
137
|
-
class DryRunOperation extends MigrationHubConfigServiceException {
|
|
137
|
+
let DryRunOperation$1 = class DryRunOperation extends MigrationHubConfigServiceException$1 {
|
|
138
138
|
name = "DryRunOperation";
|
|
139
139
|
$fault = "client";
|
|
140
140
|
Message;
|
|
@@ -147,8 +147,8 @@ class DryRunOperation extends MigrationHubConfigServiceException {
|
|
|
147
147
|
Object.setPrototypeOf(this, DryRunOperation.prototype);
|
|
148
148
|
this.Message = opts.Message;
|
|
149
149
|
}
|
|
150
|
-
}
|
|
151
|
-
class InternalServerError extends MigrationHubConfigServiceException {
|
|
150
|
+
};
|
|
151
|
+
let InternalServerError$1 = class InternalServerError extends MigrationHubConfigServiceException$1 {
|
|
152
152
|
name = "InternalServerError";
|
|
153
153
|
$fault = "server";
|
|
154
154
|
Message;
|
|
@@ -161,8 +161,8 @@ class InternalServerError extends MigrationHubConfigServiceException {
|
|
|
161
161
|
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
162
162
|
this.Message = opts.Message;
|
|
163
163
|
}
|
|
164
|
-
}
|
|
165
|
-
class InvalidInputException extends MigrationHubConfigServiceException {
|
|
164
|
+
};
|
|
165
|
+
let InvalidInputException$1 = class InvalidInputException extends MigrationHubConfigServiceException$1 {
|
|
166
166
|
name = "InvalidInputException";
|
|
167
167
|
$fault = "client";
|
|
168
168
|
Message;
|
|
@@ -175,8 +175,8 @@ class InvalidInputException extends MigrationHubConfigServiceException {
|
|
|
175
175
|
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
176
176
|
this.Message = opts.Message;
|
|
177
177
|
}
|
|
178
|
-
}
|
|
179
|
-
class ServiceUnavailableException extends MigrationHubConfigServiceException {
|
|
178
|
+
};
|
|
179
|
+
let ServiceUnavailableException$1 = class ServiceUnavailableException extends MigrationHubConfigServiceException$1 {
|
|
180
180
|
name = "ServiceUnavailableException";
|
|
181
181
|
$fault = "server";
|
|
182
182
|
Message;
|
|
@@ -189,8 +189,8 @@ class ServiceUnavailableException extends MigrationHubConfigServiceException {
|
|
|
189
189
|
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
190
190
|
this.Message = opts.Message;
|
|
191
191
|
}
|
|
192
|
-
}
|
|
193
|
-
class ThrottlingException extends MigrationHubConfigServiceException {
|
|
192
|
+
};
|
|
193
|
+
let ThrottlingException$1 = class ThrottlingException extends MigrationHubConfigServiceException$1 {
|
|
194
194
|
name = "ThrottlingException";
|
|
195
195
|
$fault = "client";
|
|
196
196
|
Message;
|
|
@@ -205,242 +205,212 @@ class ThrottlingException extends MigrationHubConfigServiceException {
|
|
|
205
205
|
this.Message = opts.Message;
|
|
206
206
|
this.RetryAfterSeconds = opts.RetryAfterSeconds;
|
|
207
207
|
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
const se_CreateHomeRegionControlCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("CreateHomeRegionControl");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
const se_DeleteHomeRegionControlCommand = async (input, context) => {
|
|
217
|
-
const headers = sharedHeaders("DeleteHomeRegionControl");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
220
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
-
};
|
|
222
|
-
const se_DescribeHomeRegionControlsCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("DescribeHomeRegionControls");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
const se_GetHomeRegionCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("GetHomeRegion");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
const de_CreateHomeRegionControlCommand = async (output, context) => {
|
|
235
|
-
if (output.statusCode >= 300) {
|
|
236
|
-
return de_CommandError(output, context);
|
|
237
|
-
}
|
|
238
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
239
|
-
let contents = {};
|
|
240
|
-
contents = de_CreateHomeRegionControlResult(data);
|
|
241
|
-
const response = {
|
|
242
|
-
$metadata: deserializeMetadata(output),
|
|
243
|
-
...contents,
|
|
244
|
-
};
|
|
245
|
-
return response;
|
|
246
|
-
};
|
|
247
|
-
const de_DeleteHomeRegionControlCommand = async (output, context) => {
|
|
248
|
-
if (output.statusCode >= 300) {
|
|
249
|
-
return de_CommandError(output, context);
|
|
250
|
-
}
|
|
251
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
252
|
-
let contents = {};
|
|
253
|
-
contents = smithyClient._json(data);
|
|
254
|
-
const response = {
|
|
255
|
-
$metadata: deserializeMetadata(output),
|
|
256
|
-
...contents,
|
|
257
|
-
};
|
|
258
|
-
return response;
|
|
259
|
-
};
|
|
260
|
-
const de_DescribeHomeRegionControlsCommand = async (output, context) => {
|
|
261
|
-
if (output.statusCode >= 300) {
|
|
262
|
-
return de_CommandError(output, context);
|
|
263
|
-
}
|
|
264
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
265
|
-
let contents = {};
|
|
266
|
-
contents = de_DescribeHomeRegionControlsResult(data);
|
|
267
|
-
const response = {
|
|
268
|
-
$metadata: deserializeMetadata(output),
|
|
269
|
-
...contents,
|
|
270
|
-
};
|
|
271
|
-
return response;
|
|
272
|
-
};
|
|
273
|
-
const de_GetHomeRegionCommand = async (output, context) => {
|
|
274
|
-
if (output.statusCode >= 300) {
|
|
275
|
-
return de_CommandError(output, context);
|
|
276
|
-
}
|
|
277
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
278
|
-
let contents = {};
|
|
279
|
-
contents = smithyClient._json(data);
|
|
280
|
-
const response = {
|
|
281
|
-
$metadata: deserializeMetadata(output),
|
|
282
|
-
...contents,
|
|
283
|
-
};
|
|
284
|
-
return response;
|
|
285
|
-
};
|
|
286
|
-
const de_CommandError = async (output, context) => {
|
|
287
|
-
const parsedOutput = {
|
|
288
|
-
...output,
|
|
289
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
290
|
-
};
|
|
291
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
292
|
-
switch (errorCode) {
|
|
293
|
-
case "AccessDeniedException":
|
|
294
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
295
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
296
|
-
case "DryRunOperation":
|
|
297
|
-
case "com.amazonaws.migrationhubconfig#DryRunOperation":
|
|
298
|
-
throw await de_DryRunOperationRes(parsedOutput);
|
|
299
|
-
case "InternalServerError":
|
|
300
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
301
|
-
throw await de_InternalServerErrorRes(parsedOutput);
|
|
302
|
-
case "InvalidInputException":
|
|
303
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
304
|
-
throw await de_InvalidInputExceptionRes(parsedOutput);
|
|
305
|
-
case "ServiceUnavailableException":
|
|
306
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
307
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
308
|
-
case "ThrottlingException":
|
|
309
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
310
|
-
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
311
|
-
default:
|
|
312
|
-
const parsedBody = parsedOutput.body;
|
|
313
|
-
return throwDefaultError({
|
|
314
|
-
output,
|
|
315
|
-
parsedBody,
|
|
316
|
-
errorCode,
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
321
|
-
const body = parsedOutput.body;
|
|
322
|
-
const deserialized = smithyClient._json(body);
|
|
323
|
-
const exception = new AccessDeniedException({
|
|
324
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
325
|
-
...deserialized,
|
|
326
|
-
});
|
|
327
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
328
|
-
};
|
|
329
|
-
const de_DryRunOperationRes = async (parsedOutput, context) => {
|
|
330
|
-
const body = parsedOutput.body;
|
|
331
|
-
const deserialized = smithyClient._json(body);
|
|
332
|
-
const exception = new DryRunOperation({
|
|
333
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
334
|
-
...deserialized,
|
|
335
|
-
});
|
|
336
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
337
|
-
};
|
|
338
|
-
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
339
|
-
const body = parsedOutput.body;
|
|
340
|
-
const deserialized = smithyClient._json(body);
|
|
341
|
-
const exception = new InternalServerError({
|
|
342
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
343
|
-
...deserialized,
|
|
344
|
-
});
|
|
345
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
346
|
-
};
|
|
347
|
-
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
348
|
-
const body = parsedOutput.body;
|
|
349
|
-
const deserialized = smithyClient._json(body);
|
|
350
|
-
const exception = new InvalidInputException({
|
|
351
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
352
|
-
...deserialized,
|
|
353
|
-
});
|
|
354
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
355
|
-
};
|
|
356
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
357
|
-
const body = parsedOutput.body;
|
|
358
|
-
const deserialized = smithyClient._json(body);
|
|
359
|
-
const exception = new ServiceUnavailableException({
|
|
360
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
361
|
-
...deserialized,
|
|
362
|
-
});
|
|
363
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
364
|
-
};
|
|
365
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
366
|
-
const body = parsedOutput.body;
|
|
367
|
-
const deserialized = smithyClient._json(body);
|
|
368
|
-
const exception = new ThrottlingException({
|
|
369
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
370
|
-
...deserialized,
|
|
371
|
-
});
|
|
372
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
373
|
-
};
|
|
374
|
-
const de_CreateHomeRegionControlResult = (output, context) => {
|
|
375
|
-
return smithyClient.take(output, {
|
|
376
|
-
HomeRegionControl: (_) => de_HomeRegionControl(_),
|
|
377
|
-
});
|
|
378
|
-
};
|
|
379
|
-
const de_DescribeHomeRegionControlsResult = (output, context) => {
|
|
380
|
-
return smithyClient.take(output, {
|
|
381
|
-
HomeRegionControls: (_) => de_HomeRegionControls(_),
|
|
382
|
-
NextToken: smithyClient.expectString,
|
|
383
|
-
});
|
|
384
|
-
};
|
|
385
|
-
const de_HomeRegionControl = (output, context) => {
|
|
386
|
-
return smithyClient.take(output, {
|
|
387
|
-
ControlId: smithyClient.expectString,
|
|
388
|
-
HomeRegion: smithyClient.expectString,
|
|
389
|
-
RequestedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
390
|
-
Target: smithyClient._json,
|
|
391
|
-
});
|
|
392
|
-
};
|
|
393
|
-
const de_HomeRegionControls = (output, context) => {
|
|
394
|
-
const retVal = (output || [])
|
|
395
|
-
.filter((e) => e != null)
|
|
396
|
-
.map((entry) => {
|
|
397
|
-
return de_HomeRegionControl(entry);
|
|
398
|
-
});
|
|
399
|
-
return retVal;
|
|
400
|
-
};
|
|
401
|
-
const deserializeMetadata = (output) => ({
|
|
402
|
-
httpStatusCode: output.statusCode,
|
|
403
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
404
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
405
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
406
|
-
});
|
|
407
|
-
const throwDefaultError = smithyClient.withBaseException(MigrationHubConfigServiceException);
|
|
408
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
409
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
410
|
-
const contents = {
|
|
411
|
-
protocol,
|
|
412
|
-
hostname,
|
|
413
|
-
port,
|
|
414
|
-
method: "POST",
|
|
415
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
416
|
-
headers,
|
|
417
|
-
};
|
|
418
|
-
if (body !== undefined) {
|
|
419
|
-
contents.body = body;
|
|
420
|
-
}
|
|
421
|
-
return new protocolHttp.HttpRequest(contents);
|
|
422
208
|
};
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
209
|
+
|
|
210
|
+
const _ADE = "AccessDeniedException";
|
|
211
|
+
const _CHRC = "CreateHomeRegionControl";
|
|
212
|
+
const _CHRCR = "CreateHomeRegionControlRequest";
|
|
213
|
+
const _CHRCRr = "CreateHomeRegionControlResult";
|
|
214
|
+
const _CI = "ControlId";
|
|
215
|
+
const _DHRC = "DeleteHomeRegionControl";
|
|
216
|
+
const _DHRCR = "DeleteHomeRegionControlRequest";
|
|
217
|
+
const _DHRCRe = "DeleteHomeRegionControlResult";
|
|
218
|
+
const _DHRCRes = "DescribeHomeRegionControlsRequest";
|
|
219
|
+
const _DHRCResc = "DescribeHomeRegionControlsResult";
|
|
220
|
+
const _DHRCe = "DescribeHomeRegionControls";
|
|
221
|
+
const _DR = "DryRun";
|
|
222
|
+
const _DRO = "DryRunOperation";
|
|
223
|
+
const _GHR = "GetHomeRegion";
|
|
224
|
+
const _GHRR = "GetHomeRegionRequest";
|
|
225
|
+
const _GHRRe = "GetHomeRegionResult";
|
|
226
|
+
const _HR = "HomeRegion";
|
|
227
|
+
const _HRC = "HomeRegionControl";
|
|
228
|
+
const _HRCo = "HomeRegionControls";
|
|
229
|
+
const _I = "Id";
|
|
230
|
+
const _IIE = "InvalidInputException";
|
|
231
|
+
const _ISE = "InternalServerError";
|
|
232
|
+
const _M = "Message";
|
|
233
|
+
const _MR = "MaxResults";
|
|
234
|
+
const _NT = "NextToken";
|
|
235
|
+
const _RA = "Retry-After";
|
|
236
|
+
const _RAS = "RetryAfterSeconds";
|
|
237
|
+
const _RT = "RequestedTime";
|
|
238
|
+
const _SUE = "ServiceUnavailableException";
|
|
239
|
+
const _T = "Target";
|
|
240
|
+
const _TE = "ThrottlingException";
|
|
241
|
+
const _Ty = "Type";
|
|
242
|
+
const _c = "client";
|
|
243
|
+
const _e = "error";
|
|
244
|
+
const _hE = "httpError";
|
|
245
|
+
const _hH = "httpHeader";
|
|
246
|
+
const _s = "server";
|
|
247
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.migrationhubconfig";
|
|
248
|
+
const n0 = "com.amazonaws.migrationhubconfig";
|
|
249
|
+
var AccessDeniedException = [
|
|
250
|
+
-3,
|
|
251
|
+
n0,
|
|
252
|
+
_ADE,
|
|
253
|
+
{
|
|
254
|
+
[_e]: _c,
|
|
255
|
+
},
|
|
256
|
+
[_M],
|
|
257
|
+
[0],
|
|
258
|
+
];
|
|
259
|
+
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
|
260
|
+
var CreateHomeRegionControlRequest = [
|
|
261
|
+
3,
|
|
262
|
+
n0,
|
|
263
|
+
_CHRCR,
|
|
264
|
+
0,
|
|
265
|
+
[_HR, _T, _DR],
|
|
266
|
+
[0, () => Target, 2],
|
|
267
|
+
];
|
|
268
|
+
var CreateHomeRegionControlResult = [
|
|
269
|
+
3,
|
|
270
|
+
n0,
|
|
271
|
+
_CHRCRr,
|
|
272
|
+
0,
|
|
273
|
+
[_HRC],
|
|
274
|
+
[() => HomeRegionControl],
|
|
275
|
+
];
|
|
276
|
+
var DeleteHomeRegionControlRequest = [3, n0, _DHRCR, 0, [_CI], [0]];
|
|
277
|
+
var DeleteHomeRegionControlResult = [3, n0, _DHRCRe, 0, [], []];
|
|
278
|
+
var DescribeHomeRegionControlsRequest = [
|
|
279
|
+
3,
|
|
280
|
+
n0,
|
|
281
|
+
_DHRCRes,
|
|
282
|
+
0,
|
|
283
|
+
[_CI, _HR, _T, _MR, _NT],
|
|
284
|
+
[0, 0, () => Target, 1, 0],
|
|
285
|
+
];
|
|
286
|
+
var DescribeHomeRegionControlsResult = [
|
|
287
|
+
3,
|
|
288
|
+
n0,
|
|
289
|
+
_DHRCResc,
|
|
290
|
+
0,
|
|
291
|
+
[_HRCo, _NT],
|
|
292
|
+
[() => HomeRegionControls, 0],
|
|
293
|
+
];
|
|
294
|
+
var DryRunOperation = [
|
|
295
|
+
-3,
|
|
296
|
+
n0,
|
|
297
|
+
_DRO,
|
|
298
|
+
{
|
|
299
|
+
[_e]: _c,
|
|
300
|
+
},
|
|
301
|
+
[_M],
|
|
302
|
+
[0],
|
|
303
|
+
];
|
|
304
|
+
schema.TypeRegistry.for(n0).registerError(DryRunOperation, DryRunOperation$1);
|
|
305
|
+
var GetHomeRegionRequest = [3, n0, _GHRR, 0, [], []];
|
|
306
|
+
var GetHomeRegionResult = [3, n0, _GHRRe, 0, [_HR], [0]];
|
|
307
|
+
var HomeRegionControl = [3, n0, _HRC, 0, [_CI, _HR, _T, _RT], [0, 0, () => Target, 4]];
|
|
308
|
+
var InternalServerError = [
|
|
309
|
+
-3,
|
|
310
|
+
n0,
|
|
311
|
+
_ISE,
|
|
312
|
+
{
|
|
313
|
+
[_e]: _s,
|
|
314
|
+
},
|
|
315
|
+
[_M],
|
|
316
|
+
[0],
|
|
317
|
+
];
|
|
318
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerError, InternalServerError$1);
|
|
319
|
+
var InvalidInputException = [
|
|
320
|
+
-3,
|
|
321
|
+
n0,
|
|
322
|
+
_IIE,
|
|
323
|
+
{
|
|
324
|
+
[_e]: _c,
|
|
325
|
+
},
|
|
326
|
+
[_M],
|
|
327
|
+
[0],
|
|
328
|
+
];
|
|
329
|
+
schema.TypeRegistry.for(n0).registerError(InvalidInputException, InvalidInputException$1);
|
|
330
|
+
var ServiceUnavailableException = [
|
|
331
|
+
-3,
|
|
332
|
+
n0,
|
|
333
|
+
_SUE,
|
|
334
|
+
{
|
|
335
|
+
[_e]: _s,
|
|
336
|
+
},
|
|
337
|
+
[_M],
|
|
338
|
+
[0],
|
|
339
|
+
];
|
|
340
|
+
schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
|
|
341
|
+
var Target = [3, n0, _T, 0, [_Ty, _I], [0, 0]];
|
|
342
|
+
var ThrottlingException = [
|
|
343
|
+
-3,
|
|
344
|
+
n0,
|
|
345
|
+
_TE,
|
|
346
|
+
{
|
|
347
|
+
[_e]: _c,
|
|
348
|
+
[_hE]: 429,
|
|
349
|
+
},
|
|
350
|
+
[_M, _RAS],
|
|
351
|
+
[
|
|
352
|
+
0,
|
|
353
|
+
[
|
|
354
|
+
1,
|
|
355
|
+
{
|
|
356
|
+
[_hH]: _RA,
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
],
|
|
360
|
+
];
|
|
361
|
+
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
362
|
+
var MigrationHubConfigServiceException = [
|
|
363
|
+
-3,
|
|
364
|
+
_sm,
|
|
365
|
+
"MigrationHubConfigServiceException",
|
|
366
|
+
0,
|
|
367
|
+
[],
|
|
368
|
+
[],
|
|
369
|
+
];
|
|
370
|
+
schema.TypeRegistry.for(_sm).registerError(MigrationHubConfigServiceException, MigrationHubConfigServiceException$1);
|
|
371
|
+
var HomeRegionControls = [1, n0, _HRCo, 0, () => HomeRegionControl];
|
|
372
|
+
var CreateHomeRegionControl = [
|
|
373
|
+
9,
|
|
374
|
+
n0,
|
|
375
|
+
_CHRC,
|
|
376
|
+
0,
|
|
377
|
+
() => CreateHomeRegionControlRequest,
|
|
378
|
+
() => CreateHomeRegionControlResult,
|
|
379
|
+
];
|
|
380
|
+
var DeleteHomeRegionControl = [
|
|
381
|
+
9,
|
|
382
|
+
n0,
|
|
383
|
+
_DHRC,
|
|
384
|
+
0,
|
|
385
|
+
() => DeleteHomeRegionControlRequest,
|
|
386
|
+
() => DeleteHomeRegionControlResult,
|
|
387
|
+
];
|
|
388
|
+
var DescribeHomeRegionControls = [
|
|
389
|
+
9,
|
|
390
|
+
n0,
|
|
391
|
+
_DHRCe,
|
|
392
|
+
0,
|
|
393
|
+
() => DescribeHomeRegionControlsRequest,
|
|
394
|
+
() => DescribeHomeRegionControlsResult,
|
|
395
|
+
];
|
|
396
|
+
var GetHomeRegion = [
|
|
397
|
+
9,
|
|
398
|
+
n0,
|
|
399
|
+
_GHR,
|
|
400
|
+
0,
|
|
401
|
+
() => GetHomeRegionRequest,
|
|
402
|
+
() => GetHomeRegionResult,
|
|
403
|
+
];
|
|
429
404
|
|
|
430
405
|
class CreateHomeRegionControlCommand extends smithyClient.Command
|
|
431
406
|
.classBuilder()
|
|
432
407
|
.ep(commonParams)
|
|
433
408
|
.m(function (Command, cs, config, o) {
|
|
434
|
-
return [
|
|
435
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
436
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
437
|
-
];
|
|
409
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
438
410
|
})
|
|
439
411
|
.s("AWSMigrationHubMultiAccountService", "CreateHomeRegionControl", {})
|
|
440
412
|
.n("MigrationHubConfigClient", "CreateHomeRegionControlCommand")
|
|
441
|
-
.
|
|
442
|
-
.ser(se_CreateHomeRegionControlCommand)
|
|
443
|
-
.de(de_CreateHomeRegionControlCommand)
|
|
413
|
+
.sc(CreateHomeRegionControl)
|
|
444
414
|
.build() {
|
|
445
415
|
}
|
|
446
416
|
|
|
@@ -448,16 +418,11 @@ class DeleteHomeRegionControlCommand extends smithyClient.Command
|
|
|
448
418
|
.classBuilder()
|
|
449
419
|
.ep(commonParams)
|
|
450
420
|
.m(function (Command, cs, config, o) {
|
|
451
|
-
return [
|
|
452
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
453
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
454
|
-
];
|
|
421
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
455
422
|
})
|
|
456
423
|
.s("AWSMigrationHubMultiAccountService", "DeleteHomeRegionControl", {})
|
|
457
424
|
.n("MigrationHubConfigClient", "DeleteHomeRegionControlCommand")
|
|
458
|
-
.
|
|
459
|
-
.ser(se_DeleteHomeRegionControlCommand)
|
|
460
|
-
.de(de_DeleteHomeRegionControlCommand)
|
|
425
|
+
.sc(DeleteHomeRegionControl)
|
|
461
426
|
.build() {
|
|
462
427
|
}
|
|
463
428
|
|
|
@@ -465,16 +430,11 @@ class DescribeHomeRegionControlsCommand extends smithyClient.Command
|
|
|
465
430
|
.classBuilder()
|
|
466
431
|
.ep(commonParams)
|
|
467
432
|
.m(function (Command, cs, config, o) {
|
|
468
|
-
return [
|
|
469
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
470
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
471
|
-
];
|
|
433
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
472
434
|
})
|
|
473
435
|
.s("AWSMigrationHubMultiAccountService", "DescribeHomeRegionControls", {})
|
|
474
436
|
.n("MigrationHubConfigClient", "DescribeHomeRegionControlsCommand")
|
|
475
|
-
.
|
|
476
|
-
.ser(se_DescribeHomeRegionControlsCommand)
|
|
477
|
-
.de(de_DescribeHomeRegionControlsCommand)
|
|
437
|
+
.sc(DescribeHomeRegionControls)
|
|
478
438
|
.build() {
|
|
479
439
|
}
|
|
480
440
|
|
|
@@ -482,16 +442,11 @@ class GetHomeRegionCommand extends smithyClient.Command
|
|
|
482
442
|
.classBuilder()
|
|
483
443
|
.ep(commonParams)
|
|
484
444
|
.m(function (Command, cs, config, o) {
|
|
485
|
-
return [
|
|
486
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
487
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
488
|
-
];
|
|
445
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
489
446
|
})
|
|
490
447
|
.s("AWSMigrationHubMultiAccountService", "GetHomeRegion", {})
|
|
491
448
|
.n("MigrationHubConfigClient", "GetHomeRegionCommand")
|
|
492
|
-
.
|
|
493
|
-
.ser(se_GetHomeRegionCommand)
|
|
494
|
-
.de(de_GetHomeRegionCommand)
|
|
449
|
+
.sc(GetHomeRegion)
|
|
495
450
|
.build() {
|
|
496
451
|
}
|
|
497
452
|
|
|
@@ -515,18 +470,18 @@ Object.defineProperty(exports, "__Client", {
|
|
|
515
470
|
enumerable: true,
|
|
516
471
|
get: function () { return smithyClient.Client; }
|
|
517
472
|
});
|
|
518
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
473
|
+
exports.AccessDeniedException = AccessDeniedException$1;
|
|
519
474
|
exports.CreateHomeRegionControlCommand = CreateHomeRegionControlCommand;
|
|
520
475
|
exports.DeleteHomeRegionControlCommand = DeleteHomeRegionControlCommand;
|
|
521
476
|
exports.DescribeHomeRegionControlsCommand = DescribeHomeRegionControlsCommand;
|
|
522
|
-
exports.DryRunOperation = DryRunOperation;
|
|
477
|
+
exports.DryRunOperation = DryRunOperation$1;
|
|
523
478
|
exports.GetHomeRegionCommand = GetHomeRegionCommand;
|
|
524
|
-
exports.InternalServerError = InternalServerError;
|
|
525
|
-
exports.InvalidInputException = InvalidInputException;
|
|
479
|
+
exports.InternalServerError = InternalServerError$1;
|
|
480
|
+
exports.InvalidInputException = InvalidInputException$1;
|
|
526
481
|
exports.MigrationHubConfig = MigrationHubConfig;
|
|
527
482
|
exports.MigrationHubConfigClient = MigrationHubConfigClient;
|
|
528
|
-
exports.MigrationHubConfigServiceException = MigrationHubConfigServiceException;
|
|
529
|
-
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
483
|
+
exports.MigrationHubConfigServiceException = MigrationHubConfigServiceException$1;
|
|
484
|
+
exports.ServiceUnavailableException = ServiceUnavailableException$1;
|
|
530
485
|
exports.TargetType = TargetType;
|
|
531
|
-
exports.ThrottlingException = ThrottlingException;
|
|
486
|
+
exports.ThrottlingException = ThrottlingException$1;
|
|
532
487
|
exports.paginateDescribeHomeRegionControls = paginateDescribeHomeRegionControls;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
7
8
|
const util_base64_1 = require("@smithy/util-base64");
|
|
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
|
|
|
25
26
|
},
|
|
26
27
|
],
|
|
27
28
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
29
|
+
protocol: config?.protocol ??
|
|
30
|
+
new protocols_1.AwsJson1_1Protocol({
|
|
31
|
+
defaultNamespace: "com.amazonaws.migrationhubconfig",
|
|
32
|
+
serviceTarget: "AWSMigrationHubMultiAccountService",
|
|
33
|
+
awsQueryCompatible: false,
|
|
34
|
+
}),
|
|
28
35
|
serviceId: config?.serviceId ?? "MigrationHub Config",
|
|
29
36
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
30
37
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
|
|
|
4
4
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
5
5
|
import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
|
+
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
7
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
8
9
|
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
9
10
|
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
@@ -28,6 +29,7 @@ export class MigrationHubConfigClient extends __Client {
|
|
|
28
29
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
29
30
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
30
31
|
this.config = _config_8;
|
|
32
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
31
33
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
34
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
33
35
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { CreateHomeRegionControl } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class CreateHomeRegionControlCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AWSMigrationHubMultiAccountService", "CreateHomeRegionControl", {})
|
|
17
13
|
.n("MigrationHubConfigClient", "CreateHomeRegionControlCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_CreateHomeRegionControlCommand)
|
|
20
|
-
.de(de_CreateHomeRegionControlCommand)
|
|
14
|
+
.sc(CreateHomeRegionControl)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|