@aws-sdk/client-migrationhub-config 3.503.1 → 3.507.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 +9 -102
- package/dist-es/protocols/Aws_json1_1.js +8 -101
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -293,7 +293,7 @@ var se_GetHomeRegionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
293
293
|
}, "se_GetHomeRegionCommand");
|
|
294
294
|
var de_CreateHomeRegionControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
295
295
|
if (output.statusCode >= 300) {
|
|
296
|
-
return
|
|
296
|
+
return de_CommandError(output, context);
|
|
297
297
|
}
|
|
298
298
|
const data = await parseBody(output.body, context);
|
|
299
299
|
let contents = {};
|
|
@@ -304,43 +304,9 @@ var de_CreateHomeRegionControlCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
304
304
|
};
|
|
305
305
|
return response;
|
|
306
306
|
}, "de_CreateHomeRegionControlCommand");
|
|
307
|
-
var de_CreateHomeRegionControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
308
|
-
const parsedOutput = {
|
|
309
|
-
...output,
|
|
310
|
-
body: await parseErrorBody(output.body, context)
|
|
311
|
-
};
|
|
312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
313
|
-
switch (errorCode) {
|
|
314
|
-
case "AccessDeniedException":
|
|
315
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
316
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
317
|
-
case "DryRunOperation":
|
|
318
|
-
case "com.amazonaws.migrationhubconfig#DryRunOperation":
|
|
319
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
320
|
-
case "InternalServerError":
|
|
321
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
322
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
323
|
-
case "InvalidInputException":
|
|
324
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
325
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
326
|
-
case "ServiceUnavailableException":
|
|
327
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
328
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
329
|
-
case "ThrottlingException":
|
|
330
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
331
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
332
|
-
default:
|
|
333
|
-
const parsedBody = parsedOutput.body;
|
|
334
|
-
return throwDefaultError({
|
|
335
|
-
output,
|
|
336
|
-
parsedBody,
|
|
337
|
-
errorCode
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
}, "de_CreateHomeRegionControlCommandError");
|
|
341
307
|
var de_DeleteHomeRegionControlCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
342
308
|
if (output.statusCode >= 300) {
|
|
343
|
-
return
|
|
309
|
+
return de_CommandError(output, context);
|
|
344
310
|
}
|
|
345
311
|
const data = await parseBody(output.body, context);
|
|
346
312
|
let contents = {};
|
|
@@ -351,40 +317,9 @@ var de_DeleteHomeRegionControlCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
351
317
|
};
|
|
352
318
|
return response;
|
|
353
319
|
}, "de_DeleteHomeRegionControlCommand");
|
|
354
|
-
var de_DeleteHomeRegionControlCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
355
|
-
const parsedOutput = {
|
|
356
|
-
...output,
|
|
357
|
-
body: await parseErrorBody(output.body, context)
|
|
358
|
-
};
|
|
359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
360
|
-
switch (errorCode) {
|
|
361
|
-
case "AccessDeniedException":
|
|
362
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
363
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
364
|
-
case "InternalServerError":
|
|
365
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
366
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
367
|
-
case "InvalidInputException":
|
|
368
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
369
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
370
|
-
case "ServiceUnavailableException":
|
|
371
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
372
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
373
|
-
case "ThrottlingException":
|
|
374
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
375
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
376
|
-
default:
|
|
377
|
-
const parsedBody = parsedOutput.body;
|
|
378
|
-
return throwDefaultError({
|
|
379
|
-
output,
|
|
380
|
-
parsedBody,
|
|
381
|
-
errorCode
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
}, "de_DeleteHomeRegionControlCommandError");
|
|
385
320
|
var de_DescribeHomeRegionControlsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
386
321
|
if (output.statusCode >= 300) {
|
|
387
|
-
return
|
|
322
|
+
return de_CommandError(output, context);
|
|
388
323
|
}
|
|
389
324
|
const data = await parseBody(output.body, context);
|
|
390
325
|
let contents = {};
|
|
@@ -395,40 +330,9 @@ var de_DescribeHomeRegionControlsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
395
330
|
};
|
|
396
331
|
return response;
|
|
397
332
|
}, "de_DescribeHomeRegionControlsCommand");
|
|
398
|
-
var de_DescribeHomeRegionControlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
399
|
-
const parsedOutput = {
|
|
400
|
-
...output,
|
|
401
|
-
body: await parseErrorBody(output.body, context)
|
|
402
|
-
};
|
|
403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
404
|
-
switch (errorCode) {
|
|
405
|
-
case "AccessDeniedException":
|
|
406
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
407
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
408
|
-
case "InternalServerError":
|
|
409
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
410
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
411
|
-
case "InvalidInputException":
|
|
412
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
413
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
414
|
-
case "ServiceUnavailableException":
|
|
415
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
416
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
417
|
-
case "ThrottlingException":
|
|
418
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
419
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
420
|
-
default:
|
|
421
|
-
const parsedBody = parsedOutput.body;
|
|
422
|
-
return throwDefaultError({
|
|
423
|
-
output,
|
|
424
|
-
parsedBody,
|
|
425
|
-
errorCode
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
}, "de_DescribeHomeRegionControlsCommandError");
|
|
429
333
|
var de_GetHomeRegionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
430
334
|
if (output.statusCode >= 300) {
|
|
431
|
-
return
|
|
335
|
+
return de_CommandError(output, context);
|
|
432
336
|
}
|
|
433
337
|
const data = await parseBody(output.body, context);
|
|
434
338
|
let contents = {};
|
|
@@ -439,7 +343,7 @@ var de_GetHomeRegionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
439
343
|
};
|
|
440
344
|
return response;
|
|
441
345
|
}, "de_GetHomeRegionCommand");
|
|
442
|
-
var
|
|
346
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
443
347
|
const parsedOutput = {
|
|
444
348
|
...output,
|
|
445
349
|
body: await parseErrorBody(output.body, context)
|
|
@@ -449,6 +353,9 @@ var de_GetHomeRegionCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
449
353
|
case "AccessDeniedException":
|
|
450
354
|
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
451
355
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
356
|
+
case "DryRunOperation":
|
|
357
|
+
case "com.amazonaws.migrationhubconfig#DryRunOperation":
|
|
358
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
452
359
|
case "InternalServerError":
|
|
453
360
|
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
454
361
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
@@ -469,7 +376,7 @@ var de_GetHomeRegionCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
469
376
|
errorCode
|
|
470
377
|
});
|
|
471
378
|
}
|
|
472
|
-
}, "
|
|
379
|
+
}, "de_CommandError");
|
|
473
380
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
474
381
|
const body = parsedOutput.body;
|
|
475
382
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -28,7 +28,7 @@ export const se_GetHomeRegionCommand = async (input, context) => {
|
|
|
28
28
|
};
|
|
29
29
|
export const de_CreateHomeRegionControlCommand = async (output, context) => {
|
|
30
30
|
if (output.statusCode >= 300) {
|
|
31
|
-
return
|
|
31
|
+
return de_CommandError(output, context);
|
|
32
32
|
}
|
|
33
33
|
const data = await parseBody(output.body, context);
|
|
34
34
|
let contents = {};
|
|
@@ -39,43 +39,9 @@ export const de_CreateHomeRegionControlCommand = async (output, context) => {
|
|
|
39
39
|
};
|
|
40
40
|
return response;
|
|
41
41
|
};
|
|
42
|
-
const de_CreateHomeRegionControlCommandError = async (output, context) => {
|
|
43
|
-
const parsedOutput = {
|
|
44
|
-
...output,
|
|
45
|
-
body: await parseErrorBody(output.body, context),
|
|
46
|
-
};
|
|
47
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
48
|
-
switch (errorCode) {
|
|
49
|
-
case "AccessDeniedException":
|
|
50
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
51
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
52
|
-
case "DryRunOperation":
|
|
53
|
-
case "com.amazonaws.migrationhubconfig#DryRunOperation":
|
|
54
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
55
|
-
case "InternalServerError":
|
|
56
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
57
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
58
|
-
case "InvalidInputException":
|
|
59
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
60
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
61
|
-
case "ServiceUnavailableException":
|
|
62
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
63
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
64
|
-
case "ThrottlingException":
|
|
65
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
66
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
67
|
-
default:
|
|
68
|
-
const parsedBody = parsedOutput.body;
|
|
69
|
-
return throwDefaultError({
|
|
70
|
-
output,
|
|
71
|
-
parsedBody,
|
|
72
|
-
errorCode,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
42
|
export const de_DeleteHomeRegionControlCommand = async (output, context) => {
|
|
77
43
|
if (output.statusCode >= 300) {
|
|
78
|
-
return
|
|
44
|
+
return de_CommandError(output, context);
|
|
79
45
|
}
|
|
80
46
|
const data = await parseBody(output.body, context);
|
|
81
47
|
let contents = {};
|
|
@@ -86,40 +52,9 @@ export const de_DeleteHomeRegionControlCommand = async (output, context) => {
|
|
|
86
52
|
};
|
|
87
53
|
return response;
|
|
88
54
|
};
|
|
89
|
-
const de_DeleteHomeRegionControlCommandError = async (output, context) => {
|
|
90
|
-
const parsedOutput = {
|
|
91
|
-
...output,
|
|
92
|
-
body: await parseErrorBody(output.body, context),
|
|
93
|
-
};
|
|
94
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
95
|
-
switch (errorCode) {
|
|
96
|
-
case "AccessDeniedException":
|
|
97
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
98
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
99
|
-
case "InternalServerError":
|
|
100
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
101
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
102
|
-
case "InvalidInputException":
|
|
103
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
104
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
105
|
-
case "ServiceUnavailableException":
|
|
106
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
107
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
108
|
-
case "ThrottlingException":
|
|
109
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
110
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
111
|
-
default:
|
|
112
|
-
const parsedBody = parsedOutput.body;
|
|
113
|
-
return throwDefaultError({
|
|
114
|
-
output,
|
|
115
|
-
parsedBody,
|
|
116
|
-
errorCode,
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
55
|
export const de_DescribeHomeRegionControlsCommand = async (output, context) => {
|
|
121
56
|
if (output.statusCode >= 300) {
|
|
122
|
-
return
|
|
57
|
+
return de_CommandError(output, context);
|
|
123
58
|
}
|
|
124
59
|
const data = await parseBody(output.body, context);
|
|
125
60
|
let contents = {};
|
|
@@ -130,40 +65,9 @@ export const de_DescribeHomeRegionControlsCommand = async (output, context) => {
|
|
|
130
65
|
};
|
|
131
66
|
return response;
|
|
132
67
|
};
|
|
133
|
-
const de_DescribeHomeRegionControlsCommandError = async (output, context) => {
|
|
134
|
-
const parsedOutput = {
|
|
135
|
-
...output,
|
|
136
|
-
body: await parseErrorBody(output.body, context),
|
|
137
|
-
};
|
|
138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
139
|
-
switch (errorCode) {
|
|
140
|
-
case "AccessDeniedException":
|
|
141
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
142
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
143
|
-
case "InternalServerError":
|
|
144
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
145
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
146
|
-
case "InvalidInputException":
|
|
147
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
148
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
149
|
-
case "ServiceUnavailableException":
|
|
150
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
151
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
152
|
-
case "ThrottlingException":
|
|
153
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
154
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
155
|
-
default:
|
|
156
|
-
const parsedBody = parsedOutput.body;
|
|
157
|
-
return throwDefaultError({
|
|
158
|
-
output,
|
|
159
|
-
parsedBody,
|
|
160
|
-
errorCode,
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
68
|
export const de_GetHomeRegionCommand = async (output, context) => {
|
|
165
69
|
if (output.statusCode >= 300) {
|
|
166
|
-
return
|
|
70
|
+
return de_CommandError(output, context);
|
|
167
71
|
}
|
|
168
72
|
const data = await parseBody(output.body, context);
|
|
169
73
|
let contents = {};
|
|
@@ -174,7 +78,7 @@ export const de_GetHomeRegionCommand = async (output, context) => {
|
|
|
174
78
|
};
|
|
175
79
|
return response;
|
|
176
80
|
};
|
|
177
|
-
const
|
|
81
|
+
const de_CommandError = async (output, context) => {
|
|
178
82
|
const parsedOutput = {
|
|
179
83
|
...output,
|
|
180
84
|
body: await parseErrorBody(output.body, context),
|
|
@@ -184,6 +88,9 @@ const de_GetHomeRegionCommandError = async (output, context) => {
|
|
|
184
88
|
case "AccessDeniedException":
|
|
185
89
|
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
186
90
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
91
|
+
case "DryRunOperation":
|
|
92
|
+
case "com.amazonaws.migrationhubconfig#DryRunOperation":
|
|
93
|
+
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
187
94
|
case "InternalServerError":
|
|
188
95
|
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
189
96
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
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.
|
|
4
|
+
"version": "3.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-migrationhub-config",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|