@aws-sdk/client-migrationhub-config 3.51.0 → 3.54.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/MigrationHubConfigClient.d.ts +2 -2
- 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/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/MigrationHubConfigClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MigrationHubConfigServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +32 -19
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-migrationhub-config
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-migrationhub-config
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-migrationhub-config
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MigrationHubConfigServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./MigrationHubConfig"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./MigrationHubConfigClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./pagination"), exports);
|
|
10
|
+
var MigrationHubConfigServiceException_1 = require("./models/MigrationHubConfigServiceException");
|
|
11
|
+
Object.defineProperty(exports, "MigrationHubConfigServiceException", { enumerable: true, get: function () { return MigrationHubConfigServiceException_1.MigrationHubConfigServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MigrationHubConfigServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class MigrationHubConfigServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, MigrationHubConfigServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.MigrationHubConfigServiceException = MigrationHubConfigServiceException;
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetHomeRegionResult = exports.GetHomeRegionRequest = exports.DescribeHomeRegionControlsResult = exports.DescribeHomeRegionControlsRequest = exports.CreateHomeRegionControlResult = exports.HomeRegionControl = exports.CreateHomeRegionControlRequest = exports.Target = exports.TargetType = void 0;
|
|
3
|
+
exports.GetHomeRegionResult = exports.GetHomeRegionRequest = exports.DescribeHomeRegionControlsResult = exports.DescribeHomeRegionControlsRequest = exports.ThrottlingException = exports.ServiceUnavailableException = exports.InvalidInputException = exports.InternalServerError = exports.DryRunOperation = exports.CreateHomeRegionControlResult = exports.HomeRegionControl = exports.CreateHomeRegionControlRequest = exports.Target = exports.TargetType = exports.AccessDeniedException = void 0;
|
|
4
|
+
const MigrationHubConfigServiceException_1 = require("./MigrationHubConfigServiceException");
|
|
5
|
+
class AccessDeniedException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "AccessDeniedException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "AccessDeniedException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
this.Message = opts.Message;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
4
19
|
var TargetType;
|
|
5
20
|
(function (TargetType) {
|
|
6
21
|
TargetType["ACCOUNT"] = "ACCOUNT";
|
|
@@ -29,6 +44,77 @@ var CreateHomeRegionControlResult;
|
|
|
29
44
|
...obj,
|
|
30
45
|
});
|
|
31
46
|
})(CreateHomeRegionControlResult = exports.CreateHomeRegionControlResult || (exports.CreateHomeRegionControlResult = {}));
|
|
47
|
+
class DryRunOperation extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
48
|
+
constructor(opts) {
|
|
49
|
+
super({
|
|
50
|
+
name: "DryRunOperation",
|
|
51
|
+
$fault: "client",
|
|
52
|
+
...opts,
|
|
53
|
+
});
|
|
54
|
+
this.name = "DryRunOperation";
|
|
55
|
+
this.$fault = "client";
|
|
56
|
+
Object.setPrototypeOf(this, DryRunOperation.prototype);
|
|
57
|
+
this.Message = opts.Message;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.DryRunOperation = DryRunOperation;
|
|
61
|
+
class InternalServerError extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
62
|
+
constructor(opts) {
|
|
63
|
+
super({
|
|
64
|
+
name: "InternalServerError",
|
|
65
|
+
$fault: "server",
|
|
66
|
+
...opts,
|
|
67
|
+
});
|
|
68
|
+
this.name = "InternalServerError";
|
|
69
|
+
this.$fault = "server";
|
|
70
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
71
|
+
this.Message = opts.Message;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.InternalServerError = InternalServerError;
|
|
75
|
+
class InvalidInputException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
76
|
+
constructor(opts) {
|
|
77
|
+
super({
|
|
78
|
+
name: "InvalidInputException",
|
|
79
|
+
$fault: "client",
|
|
80
|
+
...opts,
|
|
81
|
+
});
|
|
82
|
+
this.name = "InvalidInputException";
|
|
83
|
+
this.$fault = "client";
|
|
84
|
+
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
85
|
+
this.Message = opts.Message;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.InvalidInputException = InvalidInputException;
|
|
89
|
+
class ServiceUnavailableException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
90
|
+
constructor(opts) {
|
|
91
|
+
super({
|
|
92
|
+
name: "ServiceUnavailableException",
|
|
93
|
+
$fault: "server",
|
|
94
|
+
...opts,
|
|
95
|
+
});
|
|
96
|
+
this.name = "ServiceUnavailableException";
|
|
97
|
+
this.$fault = "server";
|
|
98
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
99
|
+
this.Message = opts.Message;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
103
|
+
class ThrottlingException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
104
|
+
constructor(opts) {
|
|
105
|
+
super({
|
|
106
|
+
name: "ThrottlingException",
|
|
107
|
+
$fault: "client",
|
|
108
|
+
...opts,
|
|
109
|
+
});
|
|
110
|
+
this.name = "ThrottlingException";
|
|
111
|
+
this.$fault = "client";
|
|
112
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
113
|
+
this.Message = opts.Message;
|
|
114
|
+
this.RetryAfterSeconds = opts.RetryAfterSeconds;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.ThrottlingException = ThrottlingException;
|
|
32
118
|
var DescribeHomeRegionControlsRequest;
|
|
33
119
|
(function (DescribeHomeRegionControlsRequest) {
|
|
34
120
|
DescribeHomeRegionControlsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1GetHomeRegionCommand = exports.deserializeAws_json1_1DescribeHomeRegionControlsCommand = exports.deserializeAws_json1_1CreateHomeRegionControlCommand = exports.serializeAws_json1_1GetHomeRegionCommand = exports.serializeAws_json1_1DescribeHomeRegionControlsCommand = exports.serializeAws_json1_1CreateHomeRegionControlCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const MigrationHubConfigServiceException_1 = require("../models/MigrationHubConfigServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1CreateHomeRegionControlCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -58,67 +60,31 @@ const deserializeAws_json1_1CreateHomeRegionControlCommandError = async (output,
|
|
|
58
60
|
switch (errorCode) {
|
|
59
61
|
case "AccessDeniedException":
|
|
60
62
|
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
61
|
-
|
|
62
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
63
|
-
name: errorCode,
|
|
64
|
-
$metadata: deserializeMetadata(output),
|
|
65
|
-
};
|
|
66
|
-
break;
|
|
63
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
67
64
|
case "DryRunOperation":
|
|
68
65
|
case "com.amazonaws.migrationhubconfig#DryRunOperation":
|
|
69
|
-
|
|
70
|
-
...(await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)),
|
|
71
|
-
name: errorCode,
|
|
72
|
-
$metadata: deserializeMetadata(output),
|
|
73
|
-
};
|
|
74
|
-
break;
|
|
66
|
+
throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
|
|
75
67
|
case "InternalServerError":
|
|
76
68
|
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
77
|
-
|
|
78
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
79
|
-
name: errorCode,
|
|
80
|
-
$metadata: deserializeMetadata(output),
|
|
81
|
-
};
|
|
82
|
-
break;
|
|
69
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
83
70
|
case "InvalidInputException":
|
|
84
71
|
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
85
|
-
|
|
86
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
87
|
-
name: errorCode,
|
|
88
|
-
$metadata: deserializeMetadata(output),
|
|
89
|
-
};
|
|
90
|
-
break;
|
|
72
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
91
73
|
case "ServiceUnavailableException":
|
|
92
74
|
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
93
|
-
|
|
94
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
95
|
-
name: errorCode,
|
|
96
|
-
$metadata: deserializeMetadata(output),
|
|
97
|
-
};
|
|
98
|
-
break;
|
|
75
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
99
76
|
case "ThrottlingException":
|
|
100
77
|
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
101
|
-
|
|
102
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
103
|
-
name: errorCode,
|
|
104
|
-
$metadata: deserializeMetadata(output),
|
|
105
|
-
};
|
|
106
|
-
break;
|
|
78
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
107
79
|
default:
|
|
108
80
|
const parsedBody = parsedOutput.body;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
...parsedBody,
|
|
112
|
-
name: `${errorCode}`,
|
|
113
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
81
|
+
response = new MigrationHubConfigServiceException_1.MigrationHubConfigServiceException({
|
|
82
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
114
83
|
$fault: "client",
|
|
115
84
|
$metadata: deserializeMetadata(output),
|
|
116
|
-
};
|
|
85
|
+
});
|
|
86
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
117
87
|
}
|
|
118
|
-
const message = response.message || response.Message || errorCode;
|
|
119
|
-
response.message = message;
|
|
120
|
-
delete response.Message;
|
|
121
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
122
88
|
};
|
|
123
89
|
const deserializeAws_json1_1DescribeHomeRegionControlsCommand = async (output, context) => {
|
|
124
90
|
if (output.statusCode >= 300) {
|
|
@@ -145,59 +111,28 @@ const deserializeAws_json1_1DescribeHomeRegionControlsCommandError = async (outp
|
|
|
145
111
|
switch (errorCode) {
|
|
146
112
|
case "AccessDeniedException":
|
|
147
113
|
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
148
|
-
|
|
149
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
150
|
-
name: errorCode,
|
|
151
|
-
$metadata: deserializeMetadata(output),
|
|
152
|
-
};
|
|
153
|
-
break;
|
|
114
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
154
115
|
case "InternalServerError":
|
|
155
116
|
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
156
|
-
|
|
157
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
158
|
-
name: errorCode,
|
|
159
|
-
$metadata: deserializeMetadata(output),
|
|
160
|
-
};
|
|
161
|
-
break;
|
|
117
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
162
118
|
case "InvalidInputException":
|
|
163
119
|
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
164
|
-
|
|
165
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
166
|
-
name: errorCode,
|
|
167
|
-
$metadata: deserializeMetadata(output),
|
|
168
|
-
};
|
|
169
|
-
break;
|
|
120
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
170
121
|
case "ServiceUnavailableException":
|
|
171
122
|
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
172
|
-
|
|
173
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
174
|
-
name: errorCode,
|
|
175
|
-
$metadata: deserializeMetadata(output),
|
|
176
|
-
};
|
|
177
|
-
break;
|
|
123
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
178
124
|
case "ThrottlingException":
|
|
179
125
|
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
180
|
-
|
|
181
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
182
|
-
name: errorCode,
|
|
183
|
-
$metadata: deserializeMetadata(output),
|
|
184
|
-
};
|
|
185
|
-
break;
|
|
126
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
186
127
|
default:
|
|
187
128
|
const parsedBody = parsedOutput.body;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
...parsedBody,
|
|
191
|
-
name: `${errorCode}`,
|
|
192
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
129
|
+
response = new MigrationHubConfigServiceException_1.MigrationHubConfigServiceException({
|
|
130
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
193
131
|
$fault: "client",
|
|
194
132
|
$metadata: deserializeMetadata(output),
|
|
195
|
-
};
|
|
133
|
+
});
|
|
134
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
196
135
|
}
|
|
197
|
-
const message = response.message || response.Message || errorCode;
|
|
198
|
-
response.message = message;
|
|
199
|
-
delete response.Message;
|
|
200
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
201
136
|
};
|
|
202
137
|
const deserializeAws_json1_1GetHomeRegionCommand = async (output, context) => {
|
|
203
138
|
if (output.statusCode >= 300) {
|
|
@@ -224,125 +159,82 @@ const deserializeAws_json1_1GetHomeRegionCommandError = async (output, context)
|
|
|
224
159
|
switch (errorCode) {
|
|
225
160
|
case "AccessDeniedException":
|
|
226
161
|
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
227
|
-
|
|
228
|
-
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
229
|
-
name: errorCode,
|
|
230
|
-
$metadata: deserializeMetadata(output),
|
|
231
|
-
};
|
|
232
|
-
break;
|
|
162
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
233
163
|
case "InternalServerError":
|
|
234
164
|
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
235
|
-
|
|
236
|
-
...(await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)),
|
|
237
|
-
name: errorCode,
|
|
238
|
-
$metadata: deserializeMetadata(output),
|
|
239
|
-
};
|
|
240
|
-
break;
|
|
165
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
241
166
|
case "InvalidInputException":
|
|
242
167
|
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
243
|
-
|
|
244
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
245
|
-
name: errorCode,
|
|
246
|
-
$metadata: deserializeMetadata(output),
|
|
247
|
-
};
|
|
248
|
-
break;
|
|
168
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
249
169
|
case "ServiceUnavailableException":
|
|
250
170
|
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
251
|
-
|
|
252
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
253
|
-
name: errorCode,
|
|
254
|
-
$metadata: deserializeMetadata(output),
|
|
255
|
-
};
|
|
256
|
-
break;
|
|
171
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
257
172
|
case "ThrottlingException":
|
|
258
173
|
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
259
|
-
|
|
260
|
-
...(await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
261
|
-
name: errorCode,
|
|
262
|
-
$metadata: deserializeMetadata(output),
|
|
263
|
-
};
|
|
264
|
-
break;
|
|
174
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
265
175
|
default:
|
|
266
176
|
const parsedBody = parsedOutput.body;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
...parsedBody,
|
|
270
|
-
name: `${errorCode}`,
|
|
271
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
177
|
+
response = new MigrationHubConfigServiceException_1.MigrationHubConfigServiceException({
|
|
178
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
272
179
|
$fault: "client",
|
|
273
180
|
$metadata: deserializeMetadata(output),
|
|
274
|
-
};
|
|
181
|
+
});
|
|
182
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
275
183
|
}
|
|
276
|
-
const message = response.message || response.Message || errorCode;
|
|
277
|
-
response.message = message;
|
|
278
|
-
delete response.Message;
|
|
279
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
280
184
|
};
|
|
281
185
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
282
186
|
const body = parsedOutput.body;
|
|
283
187
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
284
|
-
const
|
|
285
|
-
name: "AccessDeniedException",
|
|
286
|
-
$fault: "client",
|
|
188
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
287
189
|
$metadata: deserializeMetadata(parsedOutput),
|
|
288
190
|
...deserialized,
|
|
289
|
-
};
|
|
290
|
-
return
|
|
191
|
+
});
|
|
192
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
291
193
|
};
|
|
292
194
|
const deserializeAws_json1_1DryRunOperationResponse = async (parsedOutput, context) => {
|
|
293
195
|
const body = parsedOutput.body;
|
|
294
196
|
const deserialized = deserializeAws_json1_1DryRunOperation(body, context);
|
|
295
|
-
const
|
|
296
|
-
name: "DryRunOperation",
|
|
297
|
-
$fault: "client",
|
|
197
|
+
const exception = new models_0_1.DryRunOperation({
|
|
298
198
|
$metadata: deserializeMetadata(parsedOutput),
|
|
299
199
|
...deserialized,
|
|
300
|
-
};
|
|
301
|
-
return
|
|
200
|
+
});
|
|
201
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
302
202
|
};
|
|
303
203
|
const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
|
|
304
204
|
const body = parsedOutput.body;
|
|
305
205
|
const deserialized = deserializeAws_json1_1InternalServerError(body, context);
|
|
306
|
-
const
|
|
307
|
-
name: "InternalServerError",
|
|
308
|
-
$fault: "server",
|
|
206
|
+
const exception = new models_0_1.InternalServerError({
|
|
309
207
|
$metadata: deserializeMetadata(parsedOutput),
|
|
310
208
|
...deserialized,
|
|
311
|
-
};
|
|
312
|
-
return
|
|
209
|
+
});
|
|
210
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
313
211
|
};
|
|
314
212
|
const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
315
213
|
const body = parsedOutput.body;
|
|
316
214
|
const deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
317
|
-
const
|
|
318
|
-
name: "InvalidInputException",
|
|
319
|
-
$fault: "client",
|
|
215
|
+
const exception = new models_0_1.InvalidInputException({
|
|
320
216
|
$metadata: deserializeMetadata(parsedOutput),
|
|
321
217
|
...deserialized,
|
|
322
|
-
};
|
|
323
|
-
return
|
|
218
|
+
});
|
|
219
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
324
220
|
};
|
|
325
221
|
const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
326
222
|
const body = parsedOutput.body;
|
|
327
223
|
const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
328
|
-
const
|
|
329
|
-
name: "ServiceUnavailableException",
|
|
330
|
-
$fault: "server",
|
|
224
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
331
225
|
$metadata: deserializeMetadata(parsedOutput),
|
|
332
226
|
...deserialized,
|
|
333
|
-
};
|
|
334
|
-
return
|
|
227
|
+
});
|
|
228
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
335
229
|
};
|
|
336
230
|
const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
337
231
|
const body = parsedOutput.body;
|
|
338
232
|
const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
339
|
-
const
|
|
340
|
-
name: "ThrottlingException",
|
|
341
|
-
$fault: "client",
|
|
233
|
+
const exception = new models_0_1.ThrottlingException({
|
|
342
234
|
$metadata: deserializeMetadata(parsedOutput),
|
|
343
235
|
...deserialized,
|
|
344
|
-
};
|
|
345
|
-
return
|
|
236
|
+
});
|
|
237
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
346
238
|
};
|
|
347
239
|
const serializeAws_json1_1CreateHomeRegionControlRequest = (input, context) => {
|
|
348
240
|
return {
|
|
@@ -414,7 +306,7 @@ const deserializeAws_json1_1HomeRegionControl = (output, context) => {
|
|
|
414
306
|
};
|
|
415
307
|
};
|
|
416
308
|
const deserializeAws_json1_1HomeRegionControls = (output, context) => {
|
|
417
|
-
|
|
309
|
+
const retVal = (output || [])
|
|
418
310
|
.filter((e) => e != null)
|
|
419
311
|
.map((entry) => {
|
|
420
312
|
if (entry === null) {
|
|
@@ -422,6 +314,7 @@ const deserializeAws_json1_1HomeRegionControls = (output, context) => {
|
|
|
422
314
|
}
|
|
423
315
|
return deserializeAws_json1_1HomeRegionControl(entry, context);
|
|
424
316
|
});
|
|
317
|
+
return retVal;
|
|
425
318
|
};
|
|
426
319
|
const deserializeAws_json1_1InternalServerError = (output, context) => {
|
|
427
320
|
return {
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var MigrationHubConfigServiceException = (function (_super) {
|
|
4
|
+
__extends(MigrationHubConfigServiceException, _super);
|
|
5
|
+
function MigrationHubConfigServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, MigrationHubConfigServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return MigrationHubConfigServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { MigrationHubConfigServiceException };
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { MigrationHubConfigServiceException as __BaseException } from "./MigrationHubConfigServiceException";
|
|
3
|
+
var AccessDeniedException = (function (_super) {
|
|
4
|
+
__extends(AccessDeniedException, _super);
|
|
5
|
+
function AccessDeniedException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "AccessDeniedException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
10
|
+
_this.Message = opts.Message;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
return AccessDeniedException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { AccessDeniedException };
|
|
2
16
|
export var TargetType;
|
|
3
17
|
(function (TargetType) {
|
|
4
18
|
TargetType["ACCOUNT"] = "ACCOUNT";
|
|
@@ -19,6 +33,72 @@ export var CreateHomeRegionControlResult;
|
|
|
19
33
|
(function (CreateHomeRegionControlResult) {
|
|
20
34
|
CreateHomeRegionControlResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
21
35
|
})(CreateHomeRegionControlResult || (CreateHomeRegionControlResult = {}));
|
|
36
|
+
var DryRunOperation = (function (_super) {
|
|
37
|
+
__extends(DryRunOperation, _super);
|
|
38
|
+
function DryRunOperation(opts) {
|
|
39
|
+
var _this = _super.call(this, __assign({ name: "DryRunOperation", $fault: "client" }, opts)) || this;
|
|
40
|
+
_this.name = "DryRunOperation";
|
|
41
|
+
_this.$fault = "client";
|
|
42
|
+
Object.setPrototypeOf(_this, DryRunOperation.prototype);
|
|
43
|
+
_this.Message = opts.Message;
|
|
44
|
+
return _this;
|
|
45
|
+
}
|
|
46
|
+
return DryRunOperation;
|
|
47
|
+
}(__BaseException));
|
|
48
|
+
export { DryRunOperation };
|
|
49
|
+
var InternalServerError = (function (_super) {
|
|
50
|
+
__extends(InternalServerError, _super);
|
|
51
|
+
function InternalServerError(opts) {
|
|
52
|
+
var _this = _super.call(this, __assign({ name: "InternalServerError", $fault: "server" }, opts)) || this;
|
|
53
|
+
_this.name = "InternalServerError";
|
|
54
|
+
_this.$fault = "server";
|
|
55
|
+
Object.setPrototypeOf(_this, InternalServerError.prototype);
|
|
56
|
+
_this.Message = opts.Message;
|
|
57
|
+
return _this;
|
|
58
|
+
}
|
|
59
|
+
return InternalServerError;
|
|
60
|
+
}(__BaseException));
|
|
61
|
+
export { InternalServerError };
|
|
62
|
+
var InvalidInputException = (function (_super) {
|
|
63
|
+
__extends(InvalidInputException, _super);
|
|
64
|
+
function InvalidInputException(opts) {
|
|
65
|
+
var _this = _super.call(this, __assign({ name: "InvalidInputException", $fault: "client" }, opts)) || this;
|
|
66
|
+
_this.name = "InvalidInputException";
|
|
67
|
+
_this.$fault = "client";
|
|
68
|
+
Object.setPrototypeOf(_this, InvalidInputException.prototype);
|
|
69
|
+
_this.Message = opts.Message;
|
|
70
|
+
return _this;
|
|
71
|
+
}
|
|
72
|
+
return InvalidInputException;
|
|
73
|
+
}(__BaseException));
|
|
74
|
+
export { InvalidInputException };
|
|
75
|
+
var ServiceUnavailableException = (function (_super) {
|
|
76
|
+
__extends(ServiceUnavailableException, _super);
|
|
77
|
+
function ServiceUnavailableException(opts) {
|
|
78
|
+
var _this = _super.call(this, __assign({ name: "ServiceUnavailableException", $fault: "server" }, opts)) || this;
|
|
79
|
+
_this.name = "ServiceUnavailableException";
|
|
80
|
+
_this.$fault = "server";
|
|
81
|
+
Object.setPrototypeOf(_this, ServiceUnavailableException.prototype);
|
|
82
|
+
_this.Message = opts.Message;
|
|
83
|
+
return _this;
|
|
84
|
+
}
|
|
85
|
+
return ServiceUnavailableException;
|
|
86
|
+
}(__BaseException));
|
|
87
|
+
export { ServiceUnavailableException };
|
|
88
|
+
var ThrottlingException = (function (_super) {
|
|
89
|
+
__extends(ThrottlingException, _super);
|
|
90
|
+
function ThrottlingException(opts) {
|
|
91
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
92
|
+
_this.name = "ThrottlingException";
|
|
93
|
+
_this.$fault = "client";
|
|
94
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
95
|
+
_this.Message = opts.Message;
|
|
96
|
+
_this.RetryAfterSeconds = opts.RetryAfterSeconds;
|
|
97
|
+
return _this;
|
|
98
|
+
}
|
|
99
|
+
return ThrottlingException;
|
|
100
|
+
}(__BaseException));
|
|
101
|
+
export { ThrottlingException };
|
|
22
102
|
export var DescribeHomeRegionControlsRequest;
|
|
23
103
|
(function (DescribeHomeRegionControlsRequest) {
|
|
24
104
|
DescribeHomeRegionControlsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|