@aws-sdk/client-migrationhub-config 3.50.0 → 3.53.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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MigrationHubConfigServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +87 -1
- package/dist-cjs/protocols/Aws_json1_1.js +50 -157
- package/dist-es/index.js +1 -0
- package/dist-es/models/MigrationHubConfigServiceException.js +12 -0
- package/dist-es/models/models_0.js +81 -1
- package/dist-es/protocols/Aws_json1_1.js +91 -158
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MigrationHubConfigServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +44 -19
- package/dist-types/ts3.4/MigrationHubConfig.d.ts +20 -0
- package/dist-types/ts3.4/MigrationHubConfigClient.d.ts +76 -0
- package/dist-types/ts3.4/commands/CreateHomeRegionControlCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeHomeRegionControlsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetHomeRegionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/MigrationHubConfigServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +141 -0
- package/dist-types/ts3.4/pagination/DescribeHomeRegionControlsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +11 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { MigrationHubConfigServiceException as __BaseException } from "../models/MigrationHubConfigServiceException";
|
|
5
|
+
import { AccessDeniedException, DryRunOperation, InternalServerError, InvalidInputException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_1CreateHomeRegionControlCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -53,16 +55,16 @@ export var deserializeAws_json1_1CreateHomeRegionControlCommand = function (outp
|
|
|
53
55
|
});
|
|
54
56
|
}); };
|
|
55
57
|
var deserializeAws_json1_1CreateHomeRegionControlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
57
|
-
var
|
|
58
|
-
return __generator(this, function (
|
|
59
|
-
switch (
|
|
58
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
59
|
+
var _c;
|
|
60
|
+
return __generator(this, function (_d) {
|
|
61
|
+
switch (_d.label) {
|
|
60
62
|
case 0:
|
|
61
63
|
_a = [__assign({}, output)];
|
|
62
|
-
|
|
64
|
+
_c = {};
|
|
63
65
|
return [4, parseBody(output.body, context)];
|
|
64
66
|
case 1:
|
|
65
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
67
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
66
68
|
errorCode = "UnknownError";
|
|
67
69
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
68
70
|
_b = errorCode;
|
|
@@ -81,52 +83,26 @@ var deserializeAws_json1_1CreateHomeRegionControlCommandError = function (output
|
|
|
81
83
|
case "com.amazonaws.migrationhubconfig#ThrottlingException": return [3, 12];
|
|
82
84
|
}
|
|
83
85
|
return [3, 14];
|
|
84
|
-
case 2:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
case
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
case 4
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
case
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
case 6:
|
|
97
|
-
_e = [{}];
|
|
98
|
-
return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
99
|
-
case 7:
|
|
100
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
101
|
-
return [3, 15];
|
|
102
|
-
case 8:
|
|
103
|
-
_f = [{}];
|
|
104
|
-
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
105
|
-
case 9:
|
|
106
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
107
|
-
return [3, 15];
|
|
108
|
-
case 10:
|
|
109
|
-
_g = [{}];
|
|
110
|
-
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
111
|
-
case 11:
|
|
112
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
113
|
-
return [3, 15];
|
|
114
|
-
case 12:
|
|
115
|
-
_h = [{}];
|
|
116
|
-
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
117
|
-
case 13:
|
|
118
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
119
|
-
return [3, 15];
|
|
86
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
87
|
+
case 3: throw _d.sent();
|
|
88
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
89
|
+
case 5: throw _d.sent();
|
|
90
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
91
|
+
case 7: throw _d.sent();
|
|
92
|
+
case 8: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
93
|
+
case 9: throw _d.sent();
|
|
94
|
+
case 10: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
95
|
+
case 11: throw _d.sent();
|
|
96
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
97
|
+
case 13: throw _d.sent();
|
|
120
98
|
case 14:
|
|
121
99
|
parsedBody = parsedOutput.body;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
response
|
|
128
|
-
delete response.Message;
|
|
129
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
100
|
+
response = new __BaseException({
|
|
101
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
102
|
+
$fault: "client",
|
|
103
|
+
$metadata: deserializeMetadata(output),
|
|
104
|
+
});
|
|
105
|
+
throw __decorateServiceException(response, parsedBody);
|
|
130
106
|
}
|
|
131
107
|
});
|
|
132
108
|
}); };
|
|
@@ -149,16 +125,16 @@ export var deserializeAws_json1_1DescribeHomeRegionControlsCommand = function (o
|
|
|
149
125
|
});
|
|
150
126
|
}); };
|
|
151
127
|
var deserializeAws_json1_1DescribeHomeRegionControlsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
152
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
153
|
-
var
|
|
154
|
-
return __generator(this, function (
|
|
155
|
-
switch (
|
|
128
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
129
|
+
var _c;
|
|
130
|
+
return __generator(this, function (_d) {
|
|
131
|
+
switch (_d.label) {
|
|
156
132
|
case 0:
|
|
157
133
|
_a = [__assign({}, output)];
|
|
158
|
-
|
|
134
|
+
_c = {};
|
|
159
135
|
return [4, parseBody(output.body, context)];
|
|
160
136
|
case 1:
|
|
161
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
137
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
162
138
|
errorCode = "UnknownError";
|
|
163
139
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
164
140
|
_b = errorCode;
|
|
@@ -175,46 +151,24 @@ var deserializeAws_json1_1DescribeHomeRegionControlsCommandError = function (out
|
|
|
175
151
|
case "com.amazonaws.migrationhubconfig#ThrottlingException": return [3, 10];
|
|
176
152
|
}
|
|
177
153
|
return [3, 12];
|
|
178
|
-
case 2:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
case
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
case 4
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
case
|
|
188
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
189
|
-
return [3, 13];
|
|
190
|
-
case 6:
|
|
191
|
-
_e = [{}];
|
|
192
|
-
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
193
|
-
case 7:
|
|
194
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
195
|
-
return [3, 13];
|
|
196
|
-
case 8:
|
|
197
|
-
_f = [{}];
|
|
198
|
-
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
199
|
-
case 9:
|
|
200
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
201
|
-
return [3, 13];
|
|
202
|
-
case 10:
|
|
203
|
-
_g = [{}];
|
|
204
|
-
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
205
|
-
case 11:
|
|
206
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
207
|
-
return [3, 13];
|
|
154
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
155
|
+
case 3: throw _d.sent();
|
|
156
|
+
case 4: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
157
|
+
case 5: throw _d.sent();
|
|
158
|
+
case 6: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
159
|
+
case 7: throw _d.sent();
|
|
160
|
+
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
161
|
+
case 9: throw _d.sent();
|
|
162
|
+
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
163
|
+
case 11: throw _d.sent();
|
|
208
164
|
case 12:
|
|
209
165
|
parsedBody = parsedOutput.body;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
response
|
|
216
|
-
delete response.Message;
|
|
217
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
166
|
+
response = new __BaseException({
|
|
167
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
168
|
+
$fault: "client",
|
|
169
|
+
$metadata: deserializeMetadata(output),
|
|
170
|
+
});
|
|
171
|
+
throw __decorateServiceException(response, parsedBody);
|
|
218
172
|
}
|
|
219
173
|
});
|
|
220
174
|
}); };
|
|
@@ -237,16 +191,16 @@ export var deserializeAws_json1_1GetHomeRegionCommand = function (output, contex
|
|
|
237
191
|
});
|
|
238
192
|
}); };
|
|
239
193
|
var deserializeAws_json1_1GetHomeRegionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
240
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
241
|
-
var
|
|
242
|
-
return __generator(this, function (
|
|
243
|
-
switch (
|
|
194
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
195
|
+
var _c;
|
|
196
|
+
return __generator(this, function (_d) {
|
|
197
|
+
switch (_d.label) {
|
|
244
198
|
case 0:
|
|
245
199
|
_a = [__assign({}, output)];
|
|
246
|
-
|
|
200
|
+
_c = {};
|
|
247
201
|
return [4, parseBody(output.body, context)];
|
|
248
202
|
case 1:
|
|
249
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
203
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
250
204
|
errorCode = "UnknownError";
|
|
251
205
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
252
206
|
_b = errorCode;
|
|
@@ -263,101 +217,79 @@ var deserializeAws_json1_1GetHomeRegionCommandError = function (output, context)
|
|
|
263
217
|
case "com.amazonaws.migrationhubconfig#ThrottlingException": return [3, 10];
|
|
264
218
|
}
|
|
265
219
|
return [3, 12];
|
|
266
|
-
case 2:
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
case
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
case 4
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
case
|
|
276
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
277
|
-
return [3, 13];
|
|
278
|
-
case 6:
|
|
279
|
-
_e = [{}];
|
|
280
|
-
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
281
|
-
case 7:
|
|
282
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
283
|
-
return [3, 13];
|
|
284
|
-
case 8:
|
|
285
|
-
_f = [{}];
|
|
286
|
-
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
287
|
-
case 9:
|
|
288
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
289
|
-
return [3, 13];
|
|
290
|
-
case 10:
|
|
291
|
-
_g = [{}];
|
|
292
|
-
return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
293
|
-
case 11:
|
|
294
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
295
|
-
return [3, 13];
|
|
220
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
221
|
+
case 3: throw _d.sent();
|
|
222
|
+
case 4: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
223
|
+
case 5: throw _d.sent();
|
|
224
|
+
case 6: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
225
|
+
case 7: throw _d.sent();
|
|
226
|
+
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
227
|
+
case 9: throw _d.sent();
|
|
228
|
+
case 10: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
229
|
+
case 11: throw _d.sent();
|
|
296
230
|
case 12:
|
|
297
231
|
parsedBody = parsedOutput.body;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
response
|
|
304
|
-
delete response.Message;
|
|
305
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
232
|
+
response = new __BaseException({
|
|
233
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
234
|
+
$fault: "client",
|
|
235
|
+
$metadata: deserializeMetadata(output),
|
|
236
|
+
});
|
|
237
|
+
throw __decorateServiceException(response, parsedBody);
|
|
306
238
|
}
|
|
307
239
|
});
|
|
308
240
|
}); };
|
|
309
241
|
var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
310
|
-
var body, deserialized,
|
|
242
|
+
var body, deserialized, exception;
|
|
311
243
|
return __generator(this, function (_a) {
|
|
312
244
|
body = parsedOutput.body;
|
|
313
245
|
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
314
|
-
|
|
315
|
-
return [2,
|
|
246
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
247
|
+
return [2, __decorateServiceException(exception, body)];
|
|
316
248
|
});
|
|
317
249
|
}); };
|
|
318
250
|
var deserializeAws_json1_1DryRunOperationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
319
|
-
var body, deserialized,
|
|
251
|
+
var body, deserialized, exception;
|
|
320
252
|
return __generator(this, function (_a) {
|
|
321
253
|
body = parsedOutput.body;
|
|
322
254
|
deserialized = deserializeAws_json1_1DryRunOperation(body, context);
|
|
323
|
-
|
|
324
|
-
return [2,
|
|
255
|
+
exception = new DryRunOperation(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
256
|
+
return [2, __decorateServiceException(exception, body)];
|
|
325
257
|
});
|
|
326
258
|
}); };
|
|
327
259
|
var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
328
|
-
var body, deserialized,
|
|
260
|
+
var body, deserialized, exception;
|
|
329
261
|
return __generator(this, function (_a) {
|
|
330
262
|
body = parsedOutput.body;
|
|
331
263
|
deserialized = deserializeAws_json1_1InternalServerError(body, context);
|
|
332
|
-
|
|
333
|
-
return [2,
|
|
264
|
+
exception = new InternalServerError(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
265
|
+
return [2, __decorateServiceException(exception, body)];
|
|
334
266
|
});
|
|
335
267
|
}); };
|
|
336
268
|
var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
337
|
-
var body, deserialized,
|
|
269
|
+
var body, deserialized, exception;
|
|
338
270
|
return __generator(this, function (_a) {
|
|
339
271
|
body = parsedOutput.body;
|
|
340
272
|
deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
341
|
-
|
|
342
|
-
return [2,
|
|
273
|
+
exception = new InvalidInputException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
274
|
+
return [2, __decorateServiceException(exception, body)];
|
|
343
275
|
});
|
|
344
276
|
}); };
|
|
345
277
|
var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
346
|
-
var body, deserialized,
|
|
278
|
+
var body, deserialized, exception;
|
|
347
279
|
return __generator(this, function (_a) {
|
|
348
280
|
body = parsedOutput.body;
|
|
349
281
|
deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
350
|
-
|
|
351
|
-
return [2,
|
|
282
|
+
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
283
|
+
return [2, __decorateServiceException(exception, body)];
|
|
352
284
|
});
|
|
353
285
|
}); };
|
|
354
286
|
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
355
|
-
var body, deserialized,
|
|
287
|
+
var body, deserialized, exception;
|
|
356
288
|
return __generator(this, function (_a) {
|
|
357
289
|
body = parsedOutput.body;
|
|
358
290
|
deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
359
|
-
|
|
360
|
-
return [2,
|
|
291
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
292
|
+
return [2, __decorateServiceException(exception, body)];
|
|
361
293
|
});
|
|
362
294
|
}); };
|
|
363
295
|
var serializeAws_json1_1CreateHomeRegionControlRequest = function (input, context) {
|
|
@@ -417,7 +349,7 @@ var deserializeAws_json1_1HomeRegionControl = function (output, context) {
|
|
|
417
349
|
};
|
|
418
350
|
};
|
|
419
351
|
var deserializeAws_json1_1HomeRegionControls = function (output, context) {
|
|
420
|
-
|
|
352
|
+
var retVal = (output || [])
|
|
421
353
|
.filter(function (e) { return e != null; })
|
|
422
354
|
.map(function (entry) {
|
|
423
355
|
if (entry === null) {
|
|
@@ -425,6 +357,7 @@ var deserializeAws_json1_1HomeRegionControls = function (output, context) {
|
|
|
425
357
|
}
|
|
426
358
|
return deserializeAws_json1_1HomeRegionControl(entry, context);
|
|
427
359
|
});
|
|
360
|
+
return retVal;
|
|
428
361
|
};
|
|
429
362
|
var deserializeAws_json1_1InternalServerError = function (output, context) {
|
|
430
363
|
return {
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from MigrationHubConfig service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class MigrationHubConfigServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { MigrationHubConfigServiceException as __BaseException } from "./MigrationHubConfigServiceException";
|
|
2
3
|
/**
|
|
3
4
|
* <p>You do not have sufficient access to perform this action.</p>
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
-
name: "AccessDeniedException";
|
|
7
|
-
$fault: "client";
|
|
6
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
7
|
+
readonly name: "AccessDeniedException";
|
|
8
|
+
readonly $fault: "client";
|
|
8
9
|
Message?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
9
14
|
}
|
|
10
15
|
export declare enum TargetType {
|
|
11
16
|
ACCOUNT = "ACCOUNT"
|
|
@@ -105,49 +110,69 @@ export declare namespace CreateHomeRegionControlResult {
|
|
|
105
110
|
* <p>Exception raised to indicate that authorization of an action was successful, when the
|
|
106
111
|
* <code>DryRun</code> flag is set to true.</p>
|
|
107
112
|
*/
|
|
108
|
-
export
|
|
109
|
-
name: "DryRunOperation";
|
|
110
|
-
$fault: "client";
|
|
113
|
+
export declare class DryRunOperation extends __BaseException {
|
|
114
|
+
readonly name: "DryRunOperation";
|
|
115
|
+
readonly $fault: "client";
|
|
111
116
|
Message?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
constructor(opts: __ExceptionOptionType<DryRunOperation, __BaseException>);
|
|
112
121
|
}
|
|
113
122
|
/**
|
|
114
123
|
* <p>Exception raised when an internal, configuration, or dependency error is
|
|
115
124
|
* encountered.</p>
|
|
116
125
|
*/
|
|
117
|
-
export
|
|
118
|
-
name: "InternalServerError";
|
|
119
|
-
$fault: "server";
|
|
126
|
+
export declare class InternalServerError extends __BaseException {
|
|
127
|
+
readonly name: "InternalServerError";
|
|
128
|
+
readonly $fault: "server";
|
|
120
129
|
Message?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
constructor(opts: __ExceptionOptionType<InternalServerError, __BaseException>);
|
|
121
134
|
}
|
|
122
135
|
/**
|
|
123
136
|
* <p>Exception raised when the provided input violates a policy constraint or is entered in the
|
|
124
137
|
* wrong format or data type.</p>
|
|
125
138
|
*/
|
|
126
|
-
export
|
|
127
|
-
name: "InvalidInputException";
|
|
128
|
-
$fault: "client";
|
|
139
|
+
export declare class InvalidInputException extends __BaseException {
|
|
140
|
+
readonly name: "InvalidInputException";
|
|
141
|
+
readonly $fault: "client";
|
|
129
142
|
Message?: string;
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
*/
|
|
146
|
+
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
130
147
|
}
|
|
131
148
|
/**
|
|
132
149
|
* <p>Exception raised when a request fails due to temporary unavailability of the
|
|
133
150
|
* service.</p>
|
|
134
151
|
*/
|
|
135
|
-
export
|
|
136
|
-
name: "ServiceUnavailableException";
|
|
137
|
-
$fault: "server";
|
|
152
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
153
|
+
readonly name: "ServiceUnavailableException";
|
|
154
|
+
readonly $fault: "server";
|
|
138
155
|
Message?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @internal
|
|
158
|
+
*/
|
|
159
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
139
160
|
}
|
|
140
161
|
/**
|
|
141
162
|
* <p>The request was denied due to request throttling.</p>
|
|
142
163
|
*/
|
|
143
|
-
export
|
|
144
|
-
name: "ThrottlingException";
|
|
145
|
-
$fault: "client";
|
|
164
|
+
export declare class ThrottlingException extends __BaseException {
|
|
165
|
+
readonly name: "ThrottlingException";
|
|
166
|
+
readonly $fault: "client";
|
|
146
167
|
Message: string | undefined;
|
|
147
168
|
/**
|
|
148
169
|
* <p>The number of seconds the caller should wait before retrying.</p>
|
|
149
170
|
*/
|
|
150
171
|
RetryAfterSeconds?: number;
|
|
172
|
+
/**
|
|
173
|
+
* @internal
|
|
174
|
+
*/
|
|
175
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
151
176
|
}
|
|
152
177
|
export interface DescribeHomeRegionControlsRequest {
|
|
153
178
|
/**
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput } from "./commands/CreateHomeRegionControlCommand";
|
|
3
|
+
import { DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput } from "./commands/DescribeHomeRegionControlsCommand";
|
|
4
|
+
import { GetHomeRegionCommandInput, GetHomeRegionCommandOutput } from "./commands/GetHomeRegionCommand";
|
|
5
|
+
import { MigrationHubConfigClient } from "./MigrationHubConfigClient";
|
|
6
|
+
|
|
7
|
+
export declare class MigrationHubConfig extends MigrationHubConfigClient {
|
|
8
|
+
|
|
9
|
+
createHomeRegionControl(args: CreateHomeRegionControlCommandInput, options?: __HttpHandlerOptions): Promise<CreateHomeRegionControlCommandOutput>;
|
|
10
|
+
createHomeRegionControl(args: CreateHomeRegionControlCommandInput, cb: (err: any, data?: CreateHomeRegionControlCommandOutput) => void): void;
|
|
11
|
+
createHomeRegionControl(args: CreateHomeRegionControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateHomeRegionControlCommandOutput) => void): void;
|
|
12
|
+
|
|
13
|
+
describeHomeRegionControls(args: DescribeHomeRegionControlsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeHomeRegionControlsCommandOutput>;
|
|
14
|
+
describeHomeRegionControls(args: DescribeHomeRegionControlsCommandInput, cb: (err: any, data?: DescribeHomeRegionControlsCommandOutput) => void): void;
|
|
15
|
+
describeHomeRegionControls(args: DescribeHomeRegionControlsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeHomeRegionControlsCommandOutput) => void): void;
|
|
16
|
+
|
|
17
|
+
getHomeRegion(args: GetHomeRegionCommandInput, options?: __HttpHandlerOptions): Promise<GetHomeRegionCommandOutput>;
|
|
18
|
+
getHomeRegion(args: GetHomeRegionCommandInput, cb: (err: any, data?: GetHomeRegionCommandOutput) => void): void;
|
|
19
|
+
getHomeRegion(args: GetHomeRegionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetHomeRegionCommandOutput) => void): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput } from "./commands/CreateHomeRegionControlCommand";
|
|
10
|
+
import { DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput } from "./commands/DescribeHomeRegionControlsCommand";
|
|
11
|
+
import { GetHomeRegionCommandInput, GetHomeRegionCommandOutput } from "./commands/GetHomeRegionCommand";
|
|
12
|
+
export declare type ServiceInputTypes = CreateHomeRegionControlCommandInput | DescribeHomeRegionControlsCommandInput | GetHomeRegionCommandInput;
|
|
13
|
+
export declare type ServiceOutputTypes = CreateHomeRegionControlCommandOutput | DescribeHomeRegionControlsCommandOutput | GetHomeRegionCommandOutput;
|
|
14
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
15
|
+
|
|
16
|
+
requestHandler?: __HttpHandler;
|
|
17
|
+
|
|
18
|
+
sha256?: __HashConstructor;
|
|
19
|
+
|
|
20
|
+
urlParser?: __UrlParser;
|
|
21
|
+
|
|
22
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
23
|
+
|
|
24
|
+
streamCollector?: __StreamCollector;
|
|
25
|
+
|
|
26
|
+
base64Decoder?: __Decoder;
|
|
27
|
+
|
|
28
|
+
base64Encoder?: __Encoder;
|
|
29
|
+
|
|
30
|
+
utf8Decoder?: __Decoder;
|
|
31
|
+
|
|
32
|
+
utf8Encoder?: __Encoder;
|
|
33
|
+
|
|
34
|
+
runtime?: string;
|
|
35
|
+
|
|
36
|
+
disableHostPrefix?: boolean;
|
|
37
|
+
|
|
38
|
+
maxAttempts?: number | __Provider<number>;
|
|
39
|
+
|
|
40
|
+
retryMode?: string | __Provider<string>;
|
|
41
|
+
|
|
42
|
+
logger?: __Logger;
|
|
43
|
+
|
|
44
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
45
|
+
|
|
46
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
47
|
+
|
|
48
|
+
serviceId?: string;
|
|
49
|
+
|
|
50
|
+
region?: string | __Provider<string>;
|
|
51
|
+
|
|
52
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
53
|
+
|
|
54
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
55
|
+
|
|
56
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
57
|
+
|
|
58
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
59
|
+
}
|
|
60
|
+
declare type MigrationHubConfigClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
61
|
+
|
|
62
|
+
export interface MigrationHubConfigClientConfig extends MigrationHubConfigClientConfigType {
|
|
63
|
+
}
|
|
64
|
+
declare type MigrationHubConfigClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
65
|
+
|
|
66
|
+
export interface MigrationHubConfigClientResolvedConfig extends MigrationHubConfigClientResolvedConfigType {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare class MigrationHubConfigClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, MigrationHubConfigClientResolvedConfig> {
|
|
70
|
+
|
|
71
|
+
readonly config: MigrationHubConfigClientResolvedConfig;
|
|
72
|
+
constructor(configuration: MigrationHubConfigClientConfig);
|
|
73
|
+
|
|
74
|
+
destroy(): void;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { MigrationHubConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubConfigClient";
|
|
4
|
+
import { CreateHomeRegionControlRequest, CreateHomeRegionControlResult } from "../models/models_0";
|
|
5
|
+
export interface CreateHomeRegionControlCommandInput extends CreateHomeRegionControlRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateHomeRegionControlCommandOutput extends CreateHomeRegionControlResult, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class CreateHomeRegionControlCommand extends $Command<CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput, MigrationHubConfigClientResolvedConfig> {
|
|
11
|
+
readonly input: CreateHomeRegionControlCommandInput;
|
|
12
|
+
constructor(input: CreateHomeRegionControlCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubConfigClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { MigrationHubConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubConfigClient";
|
|
4
|
+
import { DescribeHomeRegionControlsRequest, DescribeHomeRegionControlsResult } from "../models/models_0";
|
|
5
|
+
export interface DescribeHomeRegionControlsCommandInput extends DescribeHomeRegionControlsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface DescribeHomeRegionControlsCommandOutput extends DescribeHomeRegionControlsResult, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class DescribeHomeRegionControlsCommand extends $Command<DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput, MigrationHubConfigClientResolvedConfig> {
|
|
11
|
+
readonly input: DescribeHomeRegionControlsCommandInput;
|
|
12
|
+
constructor(input: DescribeHomeRegionControlsCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubConfigClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|