@aws-sdk/client-migrationhubstrategy 3.54.1 → 3.58.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 +24 -0
- package/dist-cjs/MigrationHubStrategyClient.js +13 -13
- package/dist-cjs/commands/GetApplicationComponentDetailsCommand.js +3 -3
- package/dist-cjs/commands/GetApplicationComponentStrategiesCommand.js +3 -3
- package/dist-cjs/commands/GetAssessmentCommand.js +3 -3
- package/dist-cjs/commands/GetImportFileTaskCommand.js +3 -3
- package/dist-cjs/commands/GetPortfolioPreferencesCommand.js +3 -3
- package/dist-cjs/commands/GetPortfolioSummaryCommand.js +3 -3
- package/dist-cjs/commands/GetRecommendationReportDetailsCommand.js +3 -3
- package/dist-cjs/commands/GetServerDetailsCommand.js +3 -3
- package/dist-cjs/commands/GetServerStrategiesCommand.js +3 -3
- package/dist-cjs/commands/ListApplicationComponentsCommand.js +3 -3
- package/dist-cjs/commands/ListCollectorsCommand.js +3 -3
- package/dist-cjs/commands/ListImportFileTaskCommand.js +3 -3
- package/dist-cjs/commands/ListServersCommand.js +3 -3
- package/dist-cjs/commands/PutPortfolioPreferencesCommand.js +3 -3
- package/dist-cjs/commands/StartAssessmentCommand.js +3 -3
- package/dist-cjs/commands/StartImportFileTaskCommand.js +3 -3
- package/dist-cjs/commands/StartRecommendationReportGenerationCommand.js +3 -3
- package/dist-cjs/commands/StopAssessmentCommand.js +3 -3
- package/dist-cjs/commands/UpdateApplicationComponentConfigCommand.js +3 -3
- package/dist-cjs/commands/UpdateServerConfigCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +185 -185
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/MigrationHubStrategy.js +20 -20
- package/dist-es/pagination/GetServerDetailsPaginator.js +4 -4
- package/dist-es/pagination/ListApplicationComponentsPaginator.js +4 -4
- package/dist-es/pagination/ListCollectorsPaginator.js +4 -4
- package/dist-es/pagination/ListImportFileTaskPaginator.js +4 -4
- package/dist-es/pagination/ListServersPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +20 -20
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
|
@@ -32,7 +32,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
32
32
|
}
|
|
33
33
|
else if (typeof cb === "function") {
|
|
34
34
|
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error("Expect http options but get "
|
|
35
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
36
36
|
this.send(command, optionsOrCb || {}, cb);
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
@@ -46,7 +46,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
46
46
|
}
|
|
47
47
|
else if (typeof cb === "function") {
|
|
48
48
|
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error("Expect http options but get "
|
|
49
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
50
50
|
this.send(command, optionsOrCb || {}, cb);
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
@@ -60,7 +60,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
60
60
|
}
|
|
61
61
|
else if (typeof cb === "function") {
|
|
62
62
|
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error("Expect http options but get "
|
|
63
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
64
64
|
this.send(command, optionsOrCb || {}, cb);
|
|
65
65
|
}
|
|
66
66
|
else {
|
|
@@ -74,7 +74,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
74
74
|
}
|
|
75
75
|
else if (typeof cb === "function") {
|
|
76
76
|
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error("Expect http options but get "
|
|
77
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
78
78
|
this.send(command, optionsOrCb || {}, cb);
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
@@ -88,7 +88,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
88
88
|
}
|
|
89
89
|
else if (typeof cb === "function") {
|
|
90
90
|
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error("Expect http options but get "
|
|
91
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
92
92
|
this.send(command, optionsOrCb || {}, cb);
|
|
93
93
|
}
|
|
94
94
|
else {
|
|
@@ -102,7 +102,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
102
102
|
}
|
|
103
103
|
else if (typeof cb === "function") {
|
|
104
104
|
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error("Expect http options but get "
|
|
105
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
106
106
|
this.send(command, optionsOrCb || {}, cb);
|
|
107
107
|
}
|
|
108
108
|
else {
|
|
@@ -116,7 +116,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
116
116
|
}
|
|
117
117
|
else if (typeof cb === "function") {
|
|
118
118
|
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error("Expect http options but get "
|
|
119
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
120
120
|
this.send(command, optionsOrCb || {}, cb);
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
@@ -130,7 +130,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
130
130
|
}
|
|
131
131
|
else if (typeof cb === "function") {
|
|
132
132
|
if (typeof optionsOrCb !== "object")
|
|
133
|
-
throw new Error("Expect http options but get "
|
|
133
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
134
134
|
this.send(command, optionsOrCb || {}, cb);
|
|
135
135
|
}
|
|
136
136
|
else {
|
|
@@ -144,7 +144,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
144
144
|
}
|
|
145
145
|
else if (typeof cb === "function") {
|
|
146
146
|
if (typeof optionsOrCb !== "object")
|
|
147
|
-
throw new Error("Expect http options but get "
|
|
147
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
148
148
|
this.send(command, optionsOrCb || {}, cb);
|
|
149
149
|
}
|
|
150
150
|
else {
|
|
@@ -158,7 +158,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
158
158
|
}
|
|
159
159
|
else if (typeof cb === "function") {
|
|
160
160
|
if (typeof optionsOrCb !== "object")
|
|
161
|
-
throw new Error("Expect http options but get "
|
|
161
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
162
162
|
this.send(command, optionsOrCb || {}, cb);
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
@@ -172,7 +172,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
172
172
|
}
|
|
173
173
|
else if (typeof cb === "function") {
|
|
174
174
|
if (typeof optionsOrCb !== "object")
|
|
175
|
-
throw new Error("Expect http options but get "
|
|
175
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
176
176
|
this.send(command, optionsOrCb || {}, cb);
|
|
177
177
|
}
|
|
178
178
|
else {
|
|
@@ -186,7 +186,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
186
186
|
}
|
|
187
187
|
else if (typeof cb === "function") {
|
|
188
188
|
if (typeof optionsOrCb !== "object")
|
|
189
|
-
throw new Error("Expect http options but get "
|
|
189
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
190
190
|
this.send(command, optionsOrCb || {}, cb);
|
|
191
191
|
}
|
|
192
192
|
else {
|
|
@@ -200,7 +200,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
200
200
|
}
|
|
201
201
|
else if (typeof cb === "function") {
|
|
202
202
|
if (typeof optionsOrCb !== "object")
|
|
203
|
-
throw new Error("Expect http options but get "
|
|
203
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
204
204
|
this.send(command, optionsOrCb || {}, cb);
|
|
205
205
|
}
|
|
206
206
|
else {
|
|
@@ -214,7 +214,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
214
214
|
}
|
|
215
215
|
else if (typeof cb === "function") {
|
|
216
216
|
if (typeof optionsOrCb !== "object")
|
|
217
|
-
throw new Error("Expect http options but get "
|
|
217
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
218
218
|
this.send(command, optionsOrCb || {}, cb);
|
|
219
219
|
}
|
|
220
220
|
else {
|
|
@@ -228,7 +228,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
228
228
|
}
|
|
229
229
|
else if (typeof cb === "function") {
|
|
230
230
|
if (typeof optionsOrCb !== "object")
|
|
231
|
-
throw new Error("Expect http options but get "
|
|
231
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
232
232
|
this.send(command, optionsOrCb || {}, cb);
|
|
233
233
|
}
|
|
234
234
|
else {
|
|
@@ -242,7 +242,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
242
242
|
}
|
|
243
243
|
else if (typeof cb === "function") {
|
|
244
244
|
if (typeof optionsOrCb !== "object")
|
|
245
|
-
throw new Error("Expect http options but get "
|
|
245
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
246
246
|
this.send(command, optionsOrCb || {}, cb);
|
|
247
247
|
}
|
|
248
248
|
else {
|
|
@@ -256,7 +256,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
256
256
|
}
|
|
257
257
|
else if (typeof cb === "function") {
|
|
258
258
|
if (typeof optionsOrCb !== "object")
|
|
259
|
-
throw new Error("Expect http options but get "
|
|
259
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
260
260
|
this.send(command, optionsOrCb || {}, cb);
|
|
261
261
|
}
|
|
262
262
|
else {
|
|
@@ -270,7 +270,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
270
270
|
}
|
|
271
271
|
else if (typeof cb === "function") {
|
|
272
272
|
if (typeof optionsOrCb !== "object")
|
|
273
|
-
throw new Error("Expect http options but get "
|
|
273
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
274
274
|
this.send(command, optionsOrCb || {}, cb);
|
|
275
275
|
}
|
|
276
276
|
else {
|
|
@@ -284,7 +284,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
284
284
|
}
|
|
285
285
|
else if (typeof cb === "function") {
|
|
286
286
|
if (typeof optionsOrCb !== "object")
|
|
287
|
-
throw new Error("Expect http options but get "
|
|
287
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
288
288
|
this.send(command, optionsOrCb || {}, cb);
|
|
289
289
|
}
|
|
290
290
|
else {
|
|
@@ -298,7 +298,7 @@ var MigrationHubStrategy = (function (_super) {
|
|
|
298
298
|
}
|
|
299
299
|
else if (typeof cb === "function") {
|
|
300
300
|
if (typeof optionsOrCb !== "object")
|
|
301
|
-
throw new Error("Expect http options but get "
|
|
301
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
302
302
|
this.send(command, optionsOrCb || {}, cb);
|
|
303
303
|
}
|
|
304
304
|
else {
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new GetServerDetailsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetServerDetailsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.getServerDetails.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.getServerDetails.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateGetServerDetails(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MigrationHubStrategy)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MigrationHubStrategyClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListApplicationComponentsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListApplicationComponentsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listApplicationComponents.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listApplicationComponents.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListApplicationComponents(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MigrationHubStrategy)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MigrationHubStrategyClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListCollectorsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListCollectorsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listCollectors.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listCollectors.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListCollectors(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MigrationHubStrategy)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MigrationHubStrategyClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListImportFileTaskCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListImportFileTaskCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listImportFileTask.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listImportFileTask.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListImportFileTask(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MigrationHubStrategy)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MigrationHubStrategyClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListServersCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListServersCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listServers.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listServers.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListServers(config, input) {
|
|
|
48
48
|
input.nextToken = token;
|
|
49
49
|
input["maxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof MigrationHubStrategy)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof MigrationHubStrategyClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -11,7 +11,7 @@ export var serializeAws_restJson1GetApplicationComponentDetailsCommand = functio
|
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
|
-
resolvedPath = ""
|
|
14
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
15
15
|
"/get-applicationcomponent-details/{applicationComponentId}";
|
|
16
16
|
if (input.applicationComponentId !== undefined) {
|
|
17
17
|
labelValue = input.applicationComponentId;
|
|
@@ -43,7 +43,7 @@ export var serializeAws_restJson1GetApplicationComponentStrategiesCommand = func
|
|
|
43
43
|
case 1:
|
|
44
44
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
45
45
|
headers = {};
|
|
46
|
-
resolvedPath = ""
|
|
46
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
47
47
|
"/get-applicationcomponent-strategies/{applicationComponentId}";
|
|
48
48
|
if (input.applicationComponentId !== undefined) {
|
|
49
49
|
labelValue = input.applicationComponentId;
|
|
@@ -75,7 +75,7 @@ export var serializeAws_restJson1GetAssessmentCommand = function (input, context
|
|
|
75
75
|
case 1:
|
|
76
76
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
77
77
|
headers = {};
|
|
78
|
-
resolvedPath = ""
|
|
78
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-assessment/{id}";
|
|
79
79
|
if (input.id !== undefined) {
|
|
80
80
|
labelValue = input.id;
|
|
81
81
|
if (labelValue.length <= 0) {
|
|
@@ -106,7 +106,7 @@ export var serializeAws_restJson1GetImportFileTaskCommand = function (input, con
|
|
|
106
106
|
case 1:
|
|
107
107
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
108
108
|
headers = {};
|
|
109
|
-
resolvedPath = ""
|
|
109
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-import-file-task/{id}";
|
|
110
110
|
if (input.id !== undefined) {
|
|
111
111
|
labelValue = input.id;
|
|
112
112
|
if (labelValue.length <= 0) {
|
|
@@ -139,7 +139,7 @@ export var serializeAws_restJson1GetPortfolioPreferencesCommand = function (inpu
|
|
|
139
139
|
headers = {
|
|
140
140
|
"content-type": "application/json",
|
|
141
141
|
};
|
|
142
|
-
resolvedPath = ""
|
|
142
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-portfolio-preferences";
|
|
143
143
|
body = "";
|
|
144
144
|
return [2, new __HttpRequest({
|
|
145
145
|
protocol: protocol,
|
|
@@ -163,7 +163,7 @@ export var serializeAws_restJson1GetPortfolioSummaryCommand = function (input, c
|
|
|
163
163
|
headers = {
|
|
164
164
|
"content-type": "application/json",
|
|
165
165
|
};
|
|
166
|
-
resolvedPath = ""
|
|
166
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-portfolio-summary";
|
|
167
167
|
body = "";
|
|
168
168
|
return [2, new __HttpRequest({
|
|
169
169
|
protocol: protocol,
|
|
@@ -185,7 +185,7 @@ export var serializeAws_restJson1GetRecommendationReportDetailsCommand = functio
|
|
|
185
185
|
case 1:
|
|
186
186
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
187
187
|
headers = {};
|
|
188
|
-
resolvedPath = ""
|
|
188
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-recommendation-report-details/{id}";
|
|
189
189
|
if (input.id !== undefined) {
|
|
190
190
|
labelValue = input.id;
|
|
191
191
|
if (labelValue.length <= 0) {
|
|
@@ -216,7 +216,7 @@ export var serializeAws_restJson1GetServerDetailsCommand = function (input, cont
|
|
|
216
216
|
case 1:
|
|
217
217
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
218
218
|
headers = {};
|
|
219
|
-
resolvedPath = ""
|
|
219
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-server-details/{serverId}";
|
|
220
220
|
if (input.serverId !== undefined) {
|
|
221
221
|
labelValue = input.serverId;
|
|
222
222
|
if (labelValue.length <= 0) {
|
|
@@ -249,7 +249,7 @@ export var serializeAws_restJson1GetServerStrategiesCommand = function (input, c
|
|
|
249
249
|
case 1:
|
|
250
250
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
251
251
|
headers = {};
|
|
252
|
-
resolvedPath = ""
|
|
252
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-server-strategies/{serverId}";
|
|
253
253
|
if (input.serverId !== undefined) {
|
|
254
254
|
labelValue = input.serverId;
|
|
255
255
|
if (labelValue.length <= 0) {
|
|
@@ -282,7 +282,7 @@ export var serializeAws_restJson1ListApplicationComponentsCommand = function (in
|
|
|
282
282
|
headers = {
|
|
283
283
|
"content-type": "application/json",
|
|
284
284
|
};
|
|
285
|
-
resolvedPath = ""
|
|
285
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-applicationcomponents";
|
|
286
286
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentCriteria !== undefined &&
|
|
287
287
|
input.applicationComponentCriteria !== null && {
|
|
288
288
|
applicationComponentCriteria: input.applicationComponentCriteria,
|
|
@@ -308,7 +308,7 @@ export var serializeAws_restJson1ListCollectorsCommand = function (input, contex
|
|
|
308
308
|
case 1:
|
|
309
309
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
310
310
|
headers = {};
|
|
311
|
-
resolvedPath = ""
|
|
311
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-collectors";
|
|
312
312
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
313
313
|
return [2, new __HttpRequest({
|
|
314
314
|
protocol: protocol,
|
|
@@ -331,7 +331,7 @@ export var serializeAws_restJson1ListImportFileTaskCommand = function (input, co
|
|
|
331
331
|
case 1:
|
|
332
332
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
333
333
|
headers = {};
|
|
334
|
-
resolvedPath = ""
|
|
334
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-import-file-task";
|
|
335
335
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
336
336
|
return [2, new __HttpRequest({
|
|
337
337
|
protocol: protocol,
|
|
@@ -356,7 +356,7 @@ export var serializeAws_restJson1ListServersCommand = function (input, context)
|
|
|
356
356
|
headers = {
|
|
357
357
|
"content-type": "application/json",
|
|
358
358
|
};
|
|
359
|
-
resolvedPath = ""
|
|
359
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-servers";
|
|
360
360
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filterValue !== undefined && input.filterValue !== null && { filterValue: input.filterValue })), (input.groupIdFilter !== undefined &&
|
|
361
361
|
input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.serverCriteria !== undefined &&
|
|
362
362
|
input.serverCriteria !== null && { serverCriteria: input.serverCriteria })), (input.sort !== undefined && input.sort !== null && { sort: input.sort })));
|
|
@@ -382,7 +382,7 @@ export var serializeAws_restJson1PutPortfolioPreferencesCommand = function (inpu
|
|
|
382
382
|
headers = {
|
|
383
383
|
"content-type": "application/json",
|
|
384
384
|
};
|
|
385
|
-
resolvedPath = ""
|
|
385
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/put-portfolio-preferences";
|
|
386
386
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.applicationPreferences !== undefined &&
|
|
387
387
|
input.applicationPreferences !== null && {
|
|
388
388
|
applicationPreferences: serializeAws_restJson1ApplicationPreferences(input.applicationPreferences, context),
|
|
@@ -415,7 +415,7 @@ export var serializeAws_restJson1StartAssessmentCommand = function (input, conte
|
|
|
415
415
|
headers = {
|
|
416
416
|
"content-type": "application/json",
|
|
417
417
|
};
|
|
418
|
-
resolvedPath = ""
|
|
418
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-assessment";
|
|
419
419
|
body = JSON.stringify(__assign(__assign({}, (input.s3bucketForAnalysisData !== undefined &&
|
|
420
420
|
input.s3bucketForAnalysisData !== null && { s3bucketForAnalysisData: input.s3bucketForAnalysisData })), (input.s3bucketForReportData !== undefined &&
|
|
421
421
|
input.s3bucketForReportData !== null && { s3bucketForReportData: input.s3bucketForReportData })));
|
|
@@ -441,7 +441,7 @@ export var serializeAws_restJson1StartImportFileTaskCommand = function (input, c
|
|
|
441
441
|
headers = {
|
|
442
442
|
"content-type": "application/json",
|
|
443
443
|
};
|
|
444
|
-
resolvedPath = ""
|
|
444
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-import-file-task";
|
|
445
445
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.dataSourceType !== undefined &&
|
|
446
446
|
input.dataSourceType !== null && { dataSourceType: input.dataSourceType })), (input.groupId !== undefined &&
|
|
447
447
|
input.groupId !== null && { groupId: serializeAws_restJson1GroupIds(input.groupId, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.s3bucketForReportData !== undefined &&
|
|
@@ -468,7 +468,7 @@ export var serializeAws_restJson1StartRecommendationReportGenerationCommand = fu
|
|
|
468
468
|
headers = {
|
|
469
469
|
"content-type": "application/json",
|
|
470
470
|
};
|
|
471
|
-
resolvedPath = ""
|
|
471
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/start-recommendation-report-generation";
|
|
472
472
|
body = JSON.stringify(__assign(__assign({}, (input.groupIdFilter !== undefined &&
|
|
473
473
|
input.groupIdFilter !== null && { groupIdFilter: serializeAws_restJson1GroupIds(input.groupIdFilter, context) })), (input.outputFormat !== undefined && input.outputFormat !== null && { outputFormat: input.outputFormat })));
|
|
474
474
|
return [2, new __HttpRequest({
|
|
@@ -493,7 +493,7 @@ export var serializeAws_restJson1StopAssessmentCommand = function (input, contex
|
|
|
493
493
|
headers = {
|
|
494
494
|
"content-type": "application/json",
|
|
495
495
|
};
|
|
496
|
-
resolvedPath = ""
|
|
496
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/stop-assessment";
|
|
497
497
|
body = JSON.stringify(__assign({}, (input.assessmentId !== undefined && input.assessmentId !== null && { assessmentId: input.assessmentId })));
|
|
498
498
|
return [2, new __HttpRequest({
|
|
499
499
|
protocol: protocol,
|
|
@@ -517,7 +517,7 @@ export var serializeAws_restJson1UpdateApplicationComponentConfigCommand = funct
|
|
|
517
517
|
headers = {
|
|
518
518
|
"content-type": "application/json",
|
|
519
519
|
};
|
|
520
|
-
resolvedPath = ""
|
|
520
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-applicationcomponent-config";
|
|
521
521
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.applicationComponentId !== undefined &&
|
|
522
522
|
input.applicationComponentId !== null && { applicationComponentId: input.applicationComponentId })), (input.inclusionStatus !== undefined &&
|
|
523
523
|
input.inclusionStatus !== null && { inclusionStatus: input.inclusionStatus })), (input.secretsManagerKey !== undefined &&
|
|
@@ -550,7 +550,7 @@ export var serializeAws_restJson1UpdateServerConfigCommand = function (input, co
|
|
|
550
550
|
headers = {
|
|
551
551
|
"content-type": "application/json",
|
|
552
552
|
};
|
|
553
|
-
resolvedPath = ""
|
|
553
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-server-config";
|
|
554
554
|
body = JSON.stringify(__assign(__assign({}, (input.serverId !== undefined && input.serverId !== null && { serverId: input.serverId })), (input.strategyOption !== undefined &&
|
|
555
555
|
input.strategyOption !== null && {
|
|
556
556
|
strategyOption: serializeAws_restJson1StrategyOption(input.strategyOption, context),
|