@aws-sdk/client-migrationhub-config 3.490.0 → 3.495.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/MigrationHubConfig.js +1 -19
- package/dist-cjs/MigrationHubConfigClient.js +1 -43
- package/dist-cjs/commands/CreateHomeRegionControlCommand.js +1 -28
- package/dist-cjs/commands/DeleteHomeRegionControlCommand.js +1 -28
- package/dist-cjs/commands/DescribeHomeRegionControlsCommand.js +1 -28
- package/dist-cjs/commands/GetHomeRegionCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -7
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +726 -11
- package/dist-cjs/models/MigrationHubConfigServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -92
- package/dist-cjs/pagination/DescribeHomeRegionControlsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_json1_1.js +1 -371
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MigrationHubConfigServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class MigrationHubConfigServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, MigrationHubConfigServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.MigrationHubConfigServiceException = MigrationHubConfigServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,92 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThrottlingException = exports.ServiceUnavailableException = exports.InvalidInputException = exports.InternalServerError = exports.DryRunOperation = 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;
|
|
19
|
-
exports.TargetType = {
|
|
20
|
-
ACCOUNT: "ACCOUNT",
|
|
21
|
-
};
|
|
22
|
-
class DryRunOperation extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
23
|
-
constructor(opts) {
|
|
24
|
-
super({
|
|
25
|
-
name: "DryRunOperation",
|
|
26
|
-
$fault: "client",
|
|
27
|
-
...opts,
|
|
28
|
-
});
|
|
29
|
-
this.name = "DryRunOperation";
|
|
30
|
-
this.$fault = "client";
|
|
31
|
-
Object.setPrototypeOf(this, DryRunOperation.prototype);
|
|
32
|
-
this.Message = opts.Message;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.DryRunOperation = DryRunOperation;
|
|
36
|
-
class InternalServerError extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
37
|
-
constructor(opts) {
|
|
38
|
-
super({
|
|
39
|
-
name: "InternalServerError",
|
|
40
|
-
$fault: "server",
|
|
41
|
-
...opts,
|
|
42
|
-
});
|
|
43
|
-
this.name = "InternalServerError";
|
|
44
|
-
this.$fault = "server";
|
|
45
|
-
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
46
|
-
this.Message = opts.Message;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.InternalServerError = InternalServerError;
|
|
50
|
-
class InvalidInputException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
51
|
-
constructor(opts) {
|
|
52
|
-
super({
|
|
53
|
-
name: "InvalidInputException",
|
|
54
|
-
$fault: "client",
|
|
55
|
-
...opts,
|
|
56
|
-
});
|
|
57
|
-
this.name = "InvalidInputException";
|
|
58
|
-
this.$fault = "client";
|
|
59
|
-
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
60
|
-
this.Message = opts.Message;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
exports.InvalidInputException = InvalidInputException;
|
|
64
|
-
class ServiceUnavailableException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
65
|
-
constructor(opts) {
|
|
66
|
-
super({
|
|
67
|
-
name: "ServiceUnavailableException",
|
|
68
|
-
$fault: "server",
|
|
69
|
-
...opts,
|
|
70
|
-
});
|
|
71
|
-
this.name = "ServiceUnavailableException";
|
|
72
|
-
this.$fault = "server";
|
|
73
|
-
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
74
|
-
this.Message = opts.Message;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
78
|
-
class ThrottlingException extends MigrationHubConfigServiceException_1.MigrationHubConfigServiceException {
|
|
79
|
-
constructor(opts) {
|
|
80
|
-
super({
|
|
81
|
-
name: "ThrottlingException",
|
|
82
|
-
$fault: "client",
|
|
83
|
-
...opts,
|
|
84
|
-
});
|
|
85
|
-
this.name = "ThrottlingException";
|
|
86
|
-
this.$fault = "client";
|
|
87
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
88
|
-
this.Message = opts.Message;
|
|
89
|
-
this.RetryAfterSeconds = opts.RetryAfterSeconds;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
exports.ThrottlingException = ThrottlingException;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateDescribeHomeRegionControls = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const DescribeHomeRegionControlsCommand_1 = require("../commands/DescribeHomeRegionControlsCommand");
|
|
6
|
-
const MigrationHubConfigClient_1 = require("../MigrationHubConfigClient");
|
|
7
|
-
exports.paginateDescribeHomeRegionControls = (0, core_1.createPaginator)(MigrationHubConfigClient_1.MigrationHubConfigClient, DescribeHomeRegionControlsCommand_1.DescribeHomeRegionControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./DescribeHomeRegionControlsPaginator"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,371 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_GetHomeRegionCommand = exports.de_DescribeHomeRegionControlsCommand = exports.de_DeleteHomeRegionControlCommand = exports.de_CreateHomeRegionControlCommand = exports.se_GetHomeRegionCommand = exports.se_DescribeHomeRegionControlsCommand = exports.se_DeleteHomeRegionControlCommand = exports.se_CreateHomeRegionControlCommand = void 0;
|
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const MigrationHubConfigServiceException_1 = require("../models/MigrationHubConfigServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_CreateHomeRegionControlCommand = async (input, context) => {
|
|
9
|
-
const headers = sharedHeaders("CreateHomeRegionControl");
|
|
10
|
-
let body;
|
|
11
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
12
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
-
};
|
|
14
|
-
exports.se_CreateHomeRegionControlCommand = se_CreateHomeRegionControlCommand;
|
|
15
|
-
const se_DeleteHomeRegionControlCommand = async (input, context) => {
|
|
16
|
-
const headers = sharedHeaders("DeleteHomeRegionControl");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
19
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
|
-
};
|
|
21
|
-
exports.se_DeleteHomeRegionControlCommand = se_DeleteHomeRegionControlCommand;
|
|
22
|
-
const se_DescribeHomeRegionControlsCommand = async (input, context) => {
|
|
23
|
-
const headers = sharedHeaders("DescribeHomeRegionControls");
|
|
24
|
-
let body;
|
|
25
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
|
-
};
|
|
28
|
-
exports.se_DescribeHomeRegionControlsCommand = se_DescribeHomeRegionControlsCommand;
|
|
29
|
-
const se_GetHomeRegionCommand = async (input, context) => {
|
|
30
|
-
const headers = sharedHeaders("GetHomeRegion");
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
33
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
|
-
};
|
|
35
|
-
exports.se_GetHomeRegionCommand = se_GetHomeRegionCommand;
|
|
36
|
-
const de_CreateHomeRegionControlCommand = async (output, context) => {
|
|
37
|
-
if (output.statusCode >= 300) {
|
|
38
|
-
return de_CreateHomeRegionControlCommandError(output, context);
|
|
39
|
-
}
|
|
40
|
-
const data = await parseBody(output.body, context);
|
|
41
|
-
let contents = {};
|
|
42
|
-
contents = de_CreateHomeRegionControlResult(data, context);
|
|
43
|
-
const response = {
|
|
44
|
-
$metadata: deserializeMetadata(output),
|
|
45
|
-
...contents,
|
|
46
|
-
};
|
|
47
|
-
return response;
|
|
48
|
-
};
|
|
49
|
-
exports.de_CreateHomeRegionControlCommand = de_CreateHomeRegionControlCommand;
|
|
50
|
-
const de_CreateHomeRegionControlCommandError = async (output, context) => {
|
|
51
|
-
const parsedOutput = {
|
|
52
|
-
...output,
|
|
53
|
-
body: await parseErrorBody(output.body, context),
|
|
54
|
-
};
|
|
55
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
56
|
-
switch (errorCode) {
|
|
57
|
-
case "AccessDeniedException":
|
|
58
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
59
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
60
|
-
case "DryRunOperation":
|
|
61
|
-
case "com.amazonaws.migrationhubconfig#DryRunOperation":
|
|
62
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
63
|
-
case "InternalServerError":
|
|
64
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
65
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
66
|
-
case "InvalidInputException":
|
|
67
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
68
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
69
|
-
case "ServiceUnavailableException":
|
|
70
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
71
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
72
|
-
case "ThrottlingException":
|
|
73
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
74
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
75
|
-
default:
|
|
76
|
-
const parsedBody = parsedOutput.body;
|
|
77
|
-
return throwDefaultError({
|
|
78
|
-
output,
|
|
79
|
-
parsedBody,
|
|
80
|
-
errorCode,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
const de_DeleteHomeRegionControlCommand = async (output, context) => {
|
|
85
|
-
if (output.statusCode >= 300) {
|
|
86
|
-
return de_DeleteHomeRegionControlCommandError(output, context);
|
|
87
|
-
}
|
|
88
|
-
const data = await parseBody(output.body, context);
|
|
89
|
-
let contents = {};
|
|
90
|
-
contents = (0, smithy_client_1._json)(data);
|
|
91
|
-
const response = {
|
|
92
|
-
$metadata: deserializeMetadata(output),
|
|
93
|
-
...contents,
|
|
94
|
-
};
|
|
95
|
-
return response;
|
|
96
|
-
};
|
|
97
|
-
exports.de_DeleteHomeRegionControlCommand = de_DeleteHomeRegionControlCommand;
|
|
98
|
-
const de_DeleteHomeRegionControlCommandError = async (output, context) => {
|
|
99
|
-
const parsedOutput = {
|
|
100
|
-
...output,
|
|
101
|
-
body: await parseErrorBody(output.body, context),
|
|
102
|
-
};
|
|
103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
104
|
-
switch (errorCode) {
|
|
105
|
-
case "AccessDeniedException":
|
|
106
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
107
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
108
|
-
case "InternalServerError":
|
|
109
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
110
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
111
|
-
case "InvalidInputException":
|
|
112
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
113
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
114
|
-
case "ServiceUnavailableException":
|
|
115
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
116
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
117
|
-
case "ThrottlingException":
|
|
118
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
119
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
120
|
-
default:
|
|
121
|
-
const parsedBody = parsedOutput.body;
|
|
122
|
-
return throwDefaultError({
|
|
123
|
-
output,
|
|
124
|
-
parsedBody,
|
|
125
|
-
errorCode,
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
const de_DescribeHomeRegionControlsCommand = async (output, context) => {
|
|
130
|
-
if (output.statusCode >= 300) {
|
|
131
|
-
return de_DescribeHomeRegionControlsCommandError(output, context);
|
|
132
|
-
}
|
|
133
|
-
const data = await parseBody(output.body, context);
|
|
134
|
-
let contents = {};
|
|
135
|
-
contents = de_DescribeHomeRegionControlsResult(data, context);
|
|
136
|
-
const response = {
|
|
137
|
-
$metadata: deserializeMetadata(output),
|
|
138
|
-
...contents,
|
|
139
|
-
};
|
|
140
|
-
return response;
|
|
141
|
-
};
|
|
142
|
-
exports.de_DescribeHomeRegionControlsCommand = de_DescribeHomeRegionControlsCommand;
|
|
143
|
-
const de_DescribeHomeRegionControlsCommandError = async (output, context) => {
|
|
144
|
-
const parsedOutput = {
|
|
145
|
-
...output,
|
|
146
|
-
body: await parseErrorBody(output.body, context),
|
|
147
|
-
};
|
|
148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
149
|
-
switch (errorCode) {
|
|
150
|
-
case "AccessDeniedException":
|
|
151
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
152
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
153
|
-
case "InternalServerError":
|
|
154
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
155
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
156
|
-
case "InvalidInputException":
|
|
157
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
158
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
159
|
-
case "ServiceUnavailableException":
|
|
160
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
161
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
162
|
-
case "ThrottlingException":
|
|
163
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
164
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
165
|
-
default:
|
|
166
|
-
const parsedBody = parsedOutput.body;
|
|
167
|
-
return throwDefaultError({
|
|
168
|
-
output,
|
|
169
|
-
parsedBody,
|
|
170
|
-
errorCode,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
const de_GetHomeRegionCommand = async (output, context) => {
|
|
175
|
-
if (output.statusCode >= 300) {
|
|
176
|
-
return de_GetHomeRegionCommandError(output, context);
|
|
177
|
-
}
|
|
178
|
-
const data = await parseBody(output.body, context);
|
|
179
|
-
let contents = {};
|
|
180
|
-
contents = (0, smithy_client_1._json)(data);
|
|
181
|
-
const response = {
|
|
182
|
-
$metadata: deserializeMetadata(output),
|
|
183
|
-
...contents,
|
|
184
|
-
};
|
|
185
|
-
return response;
|
|
186
|
-
};
|
|
187
|
-
exports.de_GetHomeRegionCommand = de_GetHomeRegionCommand;
|
|
188
|
-
const de_GetHomeRegionCommandError = async (output, context) => {
|
|
189
|
-
const parsedOutput = {
|
|
190
|
-
...output,
|
|
191
|
-
body: await parseErrorBody(output.body, context),
|
|
192
|
-
};
|
|
193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
194
|
-
switch (errorCode) {
|
|
195
|
-
case "AccessDeniedException":
|
|
196
|
-
case "com.amazonaws.migrationhubconfig#AccessDeniedException":
|
|
197
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
198
|
-
case "InternalServerError":
|
|
199
|
-
case "com.amazonaws.migrationhubconfig#InternalServerError":
|
|
200
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
201
|
-
case "InvalidInputException":
|
|
202
|
-
case "com.amazonaws.migrationhubconfig#InvalidInputException":
|
|
203
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
204
|
-
case "ServiceUnavailableException":
|
|
205
|
-
case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
|
|
206
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
207
|
-
case "ThrottlingException":
|
|
208
|
-
case "com.amazonaws.migrationhubconfig#ThrottlingException":
|
|
209
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
210
|
-
default:
|
|
211
|
-
const parsedBody = parsedOutput.body;
|
|
212
|
-
return throwDefaultError({
|
|
213
|
-
output,
|
|
214
|
-
parsedBody,
|
|
215
|
-
errorCode,
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
220
|
-
const body = parsedOutput.body;
|
|
221
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
222
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
223
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
224
|
-
...deserialized,
|
|
225
|
-
});
|
|
226
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
227
|
-
};
|
|
228
|
-
const de_DryRunOperationRes = async (parsedOutput, context) => {
|
|
229
|
-
const body = parsedOutput.body;
|
|
230
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
231
|
-
const exception = new models_0_1.DryRunOperation({
|
|
232
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
233
|
-
...deserialized,
|
|
234
|
-
});
|
|
235
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
236
|
-
};
|
|
237
|
-
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
238
|
-
const body = parsedOutput.body;
|
|
239
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
240
|
-
const exception = new models_0_1.InternalServerError({
|
|
241
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
242
|
-
...deserialized,
|
|
243
|
-
});
|
|
244
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
245
|
-
};
|
|
246
|
-
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
247
|
-
const body = parsedOutput.body;
|
|
248
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
249
|
-
const exception = new models_0_1.InvalidInputException({
|
|
250
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
251
|
-
...deserialized,
|
|
252
|
-
});
|
|
253
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
254
|
-
};
|
|
255
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
256
|
-
const body = parsedOutput.body;
|
|
257
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
258
|
-
const exception = new models_0_1.ServiceUnavailableException({
|
|
259
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
260
|
-
...deserialized,
|
|
261
|
-
});
|
|
262
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
263
|
-
};
|
|
264
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
265
|
-
const body = parsedOutput.body;
|
|
266
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
267
|
-
const exception = new models_0_1.ThrottlingException({
|
|
268
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
269
|
-
...deserialized,
|
|
270
|
-
});
|
|
271
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
272
|
-
};
|
|
273
|
-
const de_CreateHomeRegionControlResult = (output, context) => {
|
|
274
|
-
return (0, smithy_client_1.take)(output, {
|
|
275
|
-
HomeRegionControl: (_) => de_HomeRegionControl(_, context),
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
const de_DescribeHomeRegionControlsResult = (output, context) => {
|
|
279
|
-
return (0, smithy_client_1.take)(output, {
|
|
280
|
-
HomeRegionControls: (_) => de_HomeRegionControls(_, context),
|
|
281
|
-
NextToken: smithy_client_1.expectString,
|
|
282
|
-
});
|
|
283
|
-
};
|
|
284
|
-
const de_HomeRegionControl = (output, context) => {
|
|
285
|
-
return (0, smithy_client_1.take)(output, {
|
|
286
|
-
ControlId: smithy_client_1.expectString,
|
|
287
|
-
HomeRegion: smithy_client_1.expectString,
|
|
288
|
-
RequestedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
289
|
-
Target: smithy_client_1._json,
|
|
290
|
-
});
|
|
291
|
-
};
|
|
292
|
-
const de_HomeRegionControls = (output, context) => {
|
|
293
|
-
const retVal = (output || [])
|
|
294
|
-
.filter((e) => e != null)
|
|
295
|
-
.map((entry) => {
|
|
296
|
-
return de_HomeRegionControl(entry, context);
|
|
297
|
-
});
|
|
298
|
-
return retVal;
|
|
299
|
-
};
|
|
300
|
-
const deserializeMetadata = (output) => ({
|
|
301
|
-
httpStatusCode: output.statusCode,
|
|
302
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
303
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
304
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
305
|
-
});
|
|
306
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
307
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(MigrationHubConfigServiceException_1.MigrationHubConfigServiceException);
|
|
308
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
309
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
310
|
-
const contents = {
|
|
311
|
-
protocol,
|
|
312
|
-
hostname,
|
|
313
|
-
port,
|
|
314
|
-
method: "POST",
|
|
315
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
316
|
-
headers,
|
|
317
|
-
};
|
|
318
|
-
if (resolvedHostname !== undefined) {
|
|
319
|
-
contents.hostname = resolvedHostname;
|
|
320
|
-
}
|
|
321
|
-
if (body !== undefined) {
|
|
322
|
-
contents.body = body;
|
|
323
|
-
}
|
|
324
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
325
|
-
};
|
|
326
|
-
function sharedHeaders(operation) {
|
|
327
|
-
return {
|
|
328
|
-
"content-type": "application/x-amz-json-1.1",
|
|
329
|
-
"x-amz-target": `AWSMigrationHubMultiAccountService.${operation}`,
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
333
|
-
if (encoded.length) {
|
|
334
|
-
return JSON.parse(encoded);
|
|
335
|
-
}
|
|
336
|
-
return {};
|
|
337
|
-
});
|
|
338
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
339
|
-
const value = await parseBody(errorBody, context);
|
|
340
|
-
value.message = value.message ?? value.Message;
|
|
341
|
-
return value;
|
|
342
|
-
};
|
|
343
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
344
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
345
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
346
|
-
let cleanValue = rawValue;
|
|
347
|
-
if (typeof cleanValue === "number") {
|
|
348
|
-
cleanValue = cleanValue.toString();
|
|
349
|
-
}
|
|
350
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
351
|
-
cleanValue = cleanValue.split(",")[0];
|
|
352
|
-
}
|
|
353
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
354
|
-
cleanValue = cleanValue.split(":")[0];
|
|
355
|
-
}
|
|
356
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
357
|
-
cleanValue = cleanValue.split("#")[1];
|
|
358
|
-
}
|
|
359
|
-
return cleanValue;
|
|
360
|
-
};
|
|
361
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
362
|
-
if (headerKey !== undefined) {
|
|
363
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
364
|
-
}
|
|
365
|
-
if (data.code !== undefined) {
|
|
366
|
-
return sanitizeErrorCode(data.code);
|
|
367
|
-
}
|
|
368
|
-
if (data["__type"] !== undefined) {
|
|
369
|
-
return sanitizeErrorCode(data["__type"]);
|
|
370
|
-
}
|
|
371
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-migrationhub-config",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,47 +20,47 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0
|
|
44
|
-
"@smithy/middleware-serde": "^2.0
|
|
45
|
-
"@smithy/middleware-stack": "^2.0
|
|
46
|
-
"@smithy/node-config-provider": "^2.
|
|
47
|
-
"@smithy/node-http-handler": "^2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0
|
|
49
|
-
"@smithy/smithy-client": "^2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0
|
|
52
|
-
"@smithy/util-base64": "^2.0
|
|
53
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
54
|
-
"@smithy/util-body-length-node": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
57
|
-
"@smithy/util-endpoints": "^1.0
|
|
58
|
-
"@smithy/util-retry": "^2.0
|
|
59
|
-
"@smithy/util-utf8": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
47
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
49
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
50
|
+
"@smithy/types": "^2.9.0",
|
|
51
|
+
"@smithy/url-parser": "^2.1.0",
|
|
52
|
+
"@smithy/util-base64": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
58
|
+
"@smithy/util-retry": "^2.1.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
60
60
|
"tslib": "^2.5.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
63
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
64
64
|
"@tsconfig/node14": "1.0.3",
|
|
65
65
|
"@types/node": "^14.14.31",
|
|
66
66
|
"concurrently": "7.0.0",
|