@aws-sdk/client-migrationhub-config 3.141.0 → 3.150.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/protocols/Aws_json1_1.js +15 -24
- package/dist-es/protocols/Aws_json1_1.js +25 -25
- package/package.json +11 -6
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.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-migrationhub-config
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-migrationhub-config
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -54,7 +54,6 @@ const deserializeAws_json1_1CreateHomeRegionControlCommandError = async (output,
|
|
|
54
54
|
...output,
|
|
55
55
|
body: await parseBody(output.body, context),
|
|
56
56
|
};
|
|
57
|
-
let response;
|
|
58
57
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
59
58
|
switch (errorCode) {
|
|
60
59
|
case "AccessDeniedException":
|
|
@@ -77,14 +76,12 @@ const deserializeAws_json1_1CreateHomeRegionControlCommandError = async (output,
|
|
|
77
76
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
78
77
|
default:
|
|
79
78
|
const parsedBody = parsedOutput.body;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
$metadata,
|
|
79
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
80
|
+
output,
|
|
81
|
+
parsedBody,
|
|
82
|
+
exceptionCtor: MigrationHubConfigServiceException_1.MigrationHubConfigServiceException,
|
|
83
|
+
errorCode,
|
|
86
84
|
});
|
|
87
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
88
85
|
}
|
|
89
86
|
};
|
|
90
87
|
const deserializeAws_json1_1DescribeHomeRegionControlsCommand = async (output, context) => {
|
|
@@ -106,7 +103,6 @@ const deserializeAws_json1_1DescribeHomeRegionControlsCommandError = async (outp
|
|
|
106
103
|
...output,
|
|
107
104
|
body: await parseBody(output.body, context),
|
|
108
105
|
};
|
|
109
|
-
let response;
|
|
110
106
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
111
107
|
switch (errorCode) {
|
|
112
108
|
case "AccessDeniedException":
|
|
@@ -126,14 +122,12 @@ const deserializeAws_json1_1DescribeHomeRegionControlsCommandError = async (outp
|
|
|
126
122
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
127
123
|
default:
|
|
128
124
|
const parsedBody = parsedOutput.body;
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
$metadata,
|
|
125
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
126
|
+
output,
|
|
127
|
+
parsedBody,
|
|
128
|
+
exceptionCtor: MigrationHubConfigServiceException_1.MigrationHubConfigServiceException,
|
|
129
|
+
errorCode,
|
|
135
130
|
});
|
|
136
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
137
131
|
}
|
|
138
132
|
};
|
|
139
133
|
const deserializeAws_json1_1GetHomeRegionCommand = async (output, context) => {
|
|
@@ -155,7 +149,6 @@ const deserializeAws_json1_1GetHomeRegionCommandError = async (output, context)
|
|
|
155
149
|
...output,
|
|
156
150
|
body: await parseBody(output.body, context),
|
|
157
151
|
};
|
|
158
|
-
let response;
|
|
159
152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
160
153
|
switch (errorCode) {
|
|
161
154
|
case "AccessDeniedException":
|
|
@@ -175,14 +168,12 @@ const deserializeAws_json1_1GetHomeRegionCommandError = async (output, context)
|
|
|
175
168
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
176
169
|
default:
|
|
177
170
|
const parsedBody = parsedOutput.body;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
$metadata,
|
|
171
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
172
|
+
output,
|
|
173
|
+
parsedBody,
|
|
174
|
+
exceptionCtor: MigrationHubConfigServiceException_1.MigrationHubConfigServiceException,
|
|
175
|
+
errorCode,
|
|
184
176
|
});
|
|
185
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
186
177
|
}
|
|
187
178
|
};
|
|
188
179
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
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";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { MigrationHubConfigServiceException as __BaseException } from "../models/MigrationHubConfigServiceException";
|
|
5
5
|
import { AccessDeniedException, DryRunOperation, InternalServerError, InvalidInputException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_json1_1CreateHomeRegionControlCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -55,7 +55,7 @@ export var deserializeAws_json1_1CreateHomeRegionControlCommand = function (outp
|
|
|
55
55
|
});
|
|
56
56
|
}); };
|
|
57
57
|
var deserializeAws_json1_1CreateHomeRegionControlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
58
|
-
var parsedOutput, _a,
|
|
58
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
59
59
|
var _c;
|
|
60
60
|
return __generator(this, function (_d) {
|
|
61
61
|
switch (_d.label) {
|
|
@@ -96,14 +96,14 @@ var deserializeAws_json1_1CreateHomeRegionControlCommandError = function (output
|
|
|
96
96
|
case 13: throw _d.sent();
|
|
97
97
|
case 14:
|
|
98
98
|
parsedBody = parsedOutput.body;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
$metadata: $metadata,
|
|
99
|
+
throwDefaultError({
|
|
100
|
+
output: output,
|
|
101
|
+
parsedBody: parsedBody,
|
|
102
|
+
exceptionCtor: __BaseException,
|
|
103
|
+
errorCode: errorCode,
|
|
105
104
|
});
|
|
106
|
-
|
|
105
|
+
_d.label = 15;
|
|
106
|
+
case 15: return [2];
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
}); };
|
|
@@ -126,7 +126,7 @@ export var deserializeAws_json1_1DescribeHomeRegionControlsCommand = function (o
|
|
|
126
126
|
});
|
|
127
127
|
}); };
|
|
128
128
|
var deserializeAws_json1_1DescribeHomeRegionControlsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
129
|
-
var parsedOutput, _a,
|
|
129
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
130
130
|
var _c;
|
|
131
131
|
return __generator(this, function (_d) {
|
|
132
132
|
switch (_d.label) {
|
|
@@ -163,14 +163,14 @@ var deserializeAws_json1_1DescribeHomeRegionControlsCommandError = function (out
|
|
|
163
163
|
case 11: throw _d.sent();
|
|
164
164
|
case 12:
|
|
165
165
|
parsedBody = parsedOutput.body;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
$metadata: $metadata,
|
|
166
|
+
throwDefaultError({
|
|
167
|
+
output: output,
|
|
168
|
+
parsedBody: parsedBody,
|
|
169
|
+
exceptionCtor: __BaseException,
|
|
170
|
+
errorCode: errorCode,
|
|
172
171
|
});
|
|
173
|
-
|
|
172
|
+
_d.label = 13;
|
|
173
|
+
case 13: return [2];
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
176
|
}); };
|
|
@@ -193,7 +193,7 @@ export var deserializeAws_json1_1GetHomeRegionCommand = function (output, contex
|
|
|
193
193
|
});
|
|
194
194
|
}); };
|
|
195
195
|
var deserializeAws_json1_1GetHomeRegionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
196
|
-
var parsedOutput, _a,
|
|
196
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
197
197
|
var _c;
|
|
198
198
|
return __generator(this, function (_d) {
|
|
199
199
|
switch (_d.label) {
|
|
@@ -230,14 +230,14 @@ var deserializeAws_json1_1GetHomeRegionCommandError = function (output, context)
|
|
|
230
230
|
case 11: throw _d.sent();
|
|
231
231
|
case 12:
|
|
232
232
|
parsedBody = parsedOutput.body;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
$metadata: $metadata,
|
|
233
|
+
throwDefaultError({
|
|
234
|
+
output: output,
|
|
235
|
+
parsedBody: parsedBody,
|
|
236
|
+
exceptionCtor: __BaseException,
|
|
237
|
+
errorCode: errorCode,
|
|
239
238
|
});
|
|
240
|
-
|
|
239
|
+
_d.label = 13;
|
|
240
|
+
case 13: return [2];
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
}); };
|
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.150.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.150.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.150.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
@@ -61,6 +61,11 @@
|
|
|
61
61
|
"typedoc": "0.19.2",
|
|
62
62
|
"typescript": "~4.6.2"
|
|
63
63
|
},
|
|
64
|
+
"overrides": {
|
|
65
|
+
"typedoc": {
|
|
66
|
+
"typescript": "~4.6.2"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
64
69
|
"engines": {
|
|
65
70
|
"node": ">=12.0.0"
|
|
66
71
|
},
|