@aws-sdk/client-migration-hub-refactor-spaces 3.43.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 +11 -0
- package/LICENSE +201 -0
- package/README.md +215 -0
- package/dist-cjs/MigrationHubRefactorSpaces.js +352 -0
- package/dist-cjs/MigrationHubRefactorSpacesClient.js +35 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
- package/dist-cjs/commands/CreateEnvironmentCommand.js +36 -0
- package/dist-cjs/commands/CreateRouteCommand.js +36 -0
- package/dist-cjs/commands/CreateServiceCommand.js +36 -0
- package/dist-cjs/commands/DeleteApplicationCommand.js +36 -0
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +36 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/DeleteRouteCommand.js +36 -0
- package/dist-cjs/commands/DeleteServiceCommand.js +36 -0
- package/dist-cjs/commands/GetApplicationCommand.js +36 -0
- package/dist-cjs/commands/GetEnvironmentCommand.js +36 -0
- package/dist-cjs/commands/GetResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/GetRouteCommand.js +36 -0
- package/dist-cjs/commands/GetServiceCommand.js +36 -0
- package/dist-cjs/commands/ListApplicationsCommand.js +36 -0
- package/dist-cjs/commands/ListEnvironmentVpcsCommand.js +36 -0
- package/dist-cjs/commands/ListEnvironmentsCommand.js +36 -0
- package/dist-cjs/commands/ListRoutesCommand.js +36 -0
- package/dist-cjs/commands/ListServicesCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +26 -0
- package/dist-cjs/endpoints.js +130 -0
- package/dist-cjs/index.js +8 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +561 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListApplicationsPaginator.js +35 -0
- package/dist-cjs/pagination/ListEnvironmentVpcsPaginator.js +35 -0
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +35 -0
- package/dist-cjs/pagination/ListRoutesPaginator.js +35 -0
- package/dist-cjs/pagination/ListServicesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +3834 -0
- package/dist-cjs/runtimeConfig.browser.js +40 -0
- package/dist-cjs/runtimeConfig.js +44 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/MigrationHubRefactorSpaces.js +355 -0
- package/dist-es/MigrationHubRefactorSpacesClient.js +37 -0
- package/dist-es/commands/CreateApplicationCommand.js +39 -0
- package/dist-es/commands/CreateEnvironmentCommand.js +39 -0
- package/dist-es/commands/CreateRouteCommand.js +39 -0
- package/dist-es/commands/CreateServiceCommand.js +39 -0
- package/dist-es/commands/DeleteApplicationCommand.js +39 -0
- package/dist-es/commands/DeleteEnvironmentCommand.js +39 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +39 -0
- package/dist-es/commands/DeleteRouteCommand.js +39 -0
- package/dist-es/commands/DeleteServiceCommand.js +39 -0
- package/dist-es/commands/GetApplicationCommand.js +39 -0
- package/dist-es/commands/GetEnvironmentCommand.js +39 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +39 -0
- package/dist-es/commands/GetRouteCommand.js +39 -0
- package/dist-es/commands/GetServiceCommand.js +39 -0
- package/dist-es/commands/ListApplicationsCommand.js +39 -0
- package/dist-es/commands/ListEnvironmentVpcsCommand.js +39 -0
- package/dist-es/commands/ListEnvironmentsCommand.js +39 -0
- package/dist-es/commands/ListRoutesCommand.js +39 -0
- package/dist-es/commands/ListServicesCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/endpoints.js +126 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +395 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListApplicationsPaginator.js +74 -0
- package/dist-es/pagination/ListEnvironmentVpcsPaginator.js +74 -0
- package/dist-es/pagination/ListEnvironmentsPaginator.js +74 -0
- package/dist-es/pagination/ListRoutesPaginator.js +74 -0
- package/dist-es/pagination/ListServicesPaginator.js +74 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +4225 -0
- package/dist-es/runtimeConfig.browser.js +17 -0
- package/dist-es/runtimeConfig.js +21 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/MigrationHubRefactorSpaces.d.ts +240 -0
- package/dist-types/MigrationHubRefactorSpacesClient.d.ts +169 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +38 -0
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +39 -0
- package/dist-types/commands/CreateRouteCommand.d.ts +70 -0
- package/dist-types/commands/CreateServiceCommand.d.ts +44 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +36 -0
- package/dist-types/commands/DeleteEnvironmentCommand.d.ts +36 -0
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +35 -0
- package/dist-types/commands/DeleteRouteCommand.d.ts +35 -0
- package/dist-types/commands/DeleteServiceCommand.d.ts +35 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +35 -0
- package/dist-types/commands/GetEnvironmentCommand.d.ts +35 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +35 -0
- package/dist-types/commands/GetRouteCommand.d.ts +35 -0
- package/dist-types/commands/GetServiceCommand.d.ts +35 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +35 -0
- package/dist-types/commands/ListEnvironmentVpcsCommand.d.ts +35 -0
- package/dist-types/commands/ListEnvironmentsCommand.d.ts +36 -0
- package/dist-types/commands/ListRoutesCommand.d.ts +35 -0
- package/dist-types/commands/ListServicesCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +36 -0
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +38 -0
- package/dist-types/commands/TagResourceCommand.d.ts +41 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2193 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListEnvironmentVpcsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListRoutesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListServicesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +71 -0
- package/dist-types/runtimeConfig.browser.d.ts +39 -0
- package/dist-types/runtimeConfig.d.ts +39 -0
- package/dist-types/runtimeConfig.native.d.ts +38 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/MigrationHubRefactorSpaces.d.ts +120 -0
- package/dist-types/ts3.4/MigrationHubRefactorSpacesClient.d.ts +94 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEnvironmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateRouteCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateServiceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteRouteCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteServiceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRouteCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetServiceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEnvironmentVpcsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRoutesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1267 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListEnvironmentVpcsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListRoutesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListServicesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +71 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +96 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
|
+
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
12
|
+
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
13
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
|
+
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const getRuntimeConfig = (config) => {
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
+
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
|
+
return {
|
|
20
|
+
...clientSharedValues,
|
|
21
|
+
...config,
|
|
22
|
+
runtime: "browser",
|
|
23
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
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 }),
|
|
28
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
32
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
|
+
const hash_node_1 = require("@aws-sdk/hash-node");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
|
+
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
+
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
|
+
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
|
+
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const getRuntimeConfig = (config) => {
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
+
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
|
+
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "node",
|
|
27
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
30
|
+
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),
|
|
31
|
+
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 }),
|
|
32
|
+
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),
|
|
33
|
+
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),
|
|
34
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
36
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
+
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),
|
|
39
|
+
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),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a;
|
|
8
|
+
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
9
|
+
return {
|
|
10
|
+
...browserDefaults,
|
|
11
|
+
...config,
|
|
12
|
+
runtime: "react-native",
|
|
13
|
+
sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a, _b, _c, _d, _e;
|
|
8
|
+
return ({
|
|
9
|
+
apiVersion: "2021-10-26",
|
|
10
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
12
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
|
|
13
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Migration Hub Refactor Spaces",
|
|
14
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
|
|
3
|
+
import { CreateEnvironmentCommand, } from "./commands/CreateEnvironmentCommand";
|
|
4
|
+
import { CreateRouteCommand } from "./commands/CreateRouteCommand";
|
|
5
|
+
import { CreateServiceCommand, } from "./commands/CreateServiceCommand";
|
|
6
|
+
import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
|
|
7
|
+
import { DeleteEnvironmentCommand, } from "./commands/DeleteEnvironmentCommand";
|
|
8
|
+
import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
|
|
9
|
+
import { DeleteRouteCommand } from "./commands/DeleteRouteCommand";
|
|
10
|
+
import { DeleteServiceCommand, } from "./commands/DeleteServiceCommand";
|
|
11
|
+
import { GetApplicationCommand, } from "./commands/GetApplicationCommand";
|
|
12
|
+
import { GetEnvironmentCommand, } from "./commands/GetEnvironmentCommand";
|
|
13
|
+
import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
|
|
14
|
+
import { GetRouteCommand } from "./commands/GetRouteCommand";
|
|
15
|
+
import { GetServiceCommand } from "./commands/GetServiceCommand";
|
|
16
|
+
import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
|
|
17
|
+
import { ListEnvironmentsCommand, } from "./commands/ListEnvironmentsCommand";
|
|
18
|
+
import { ListEnvironmentVpcsCommand, } from "./commands/ListEnvironmentVpcsCommand";
|
|
19
|
+
import { ListRoutesCommand } from "./commands/ListRoutesCommand";
|
|
20
|
+
import { ListServicesCommand, } from "./commands/ListServicesCommand";
|
|
21
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
22
|
+
import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
23
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
24
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
25
|
+
import { MigrationHubRefactorSpacesClient } from "./MigrationHubRefactorSpacesClient";
|
|
26
|
+
var MigrationHubRefactorSpaces = (function (_super) {
|
|
27
|
+
__extends(MigrationHubRefactorSpaces, _super);
|
|
28
|
+
function MigrationHubRefactorSpaces() {
|
|
29
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
+
}
|
|
31
|
+
MigrationHubRefactorSpaces.prototype.createApplication = function (args, optionsOrCb, cb) {
|
|
32
|
+
var command = new CreateApplicationCommand(args);
|
|
33
|
+
if (typeof optionsOrCb === "function") {
|
|
34
|
+
this.send(command, optionsOrCb);
|
|
35
|
+
}
|
|
36
|
+
else if (typeof cb === "function") {
|
|
37
|
+
if (typeof optionsOrCb !== "object")
|
|
38
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
39
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
return this.send(command, optionsOrCb);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
MigrationHubRefactorSpaces.prototype.createEnvironment = function (args, optionsOrCb, cb) {
|
|
46
|
+
var command = new CreateEnvironmentCommand(args);
|
|
47
|
+
if (typeof optionsOrCb === "function") {
|
|
48
|
+
this.send(command, optionsOrCb);
|
|
49
|
+
}
|
|
50
|
+
else if (typeof cb === "function") {
|
|
51
|
+
if (typeof optionsOrCb !== "object")
|
|
52
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
53
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return this.send(command, optionsOrCb);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
MigrationHubRefactorSpaces.prototype.createRoute = function (args, optionsOrCb, cb) {
|
|
60
|
+
var command = new CreateRouteCommand(args);
|
|
61
|
+
if (typeof optionsOrCb === "function") {
|
|
62
|
+
this.send(command, optionsOrCb);
|
|
63
|
+
}
|
|
64
|
+
else if (typeof cb === "function") {
|
|
65
|
+
if (typeof optionsOrCb !== "object")
|
|
66
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
67
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
return this.send(command, optionsOrCb);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
MigrationHubRefactorSpaces.prototype.createService = function (args, optionsOrCb, cb) {
|
|
74
|
+
var command = new CreateServiceCommand(args);
|
|
75
|
+
if (typeof optionsOrCb === "function") {
|
|
76
|
+
this.send(command, optionsOrCb);
|
|
77
|
+
}
|
|
78
|
+
else if (typeof cb === "function") {
|
|
79
|
+
if (typeof optionsOrCb !== "object")
|
|
80
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
81
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
return this.send(command, optionsOrCb);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
MigrationHubRefactorSpaces.prototype.deleteApplication = function (args, optionsOrCb, cb) {
|
|
88
|
+
var command = new DeleteApplicationCommand(args);
|
|
89
|
+
if (typeof optionsOrCb === "function") {
|
|
90
|
+
this.send(command, optionsOrCb);
|
|
91
|
+
}
|
|
92
|
+
else if (typeof cb === "function") {
|
|
93
|
+
if (typeof optionsOrCb !== "object")
|
|
94
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
95
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
return this.send(command, optionsOrCb);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
MigrationHubRefactorSpaces.prototype.deleteEnvironment = function (args, optionsOrCb, cb) {
|
|
102
|
+
var command = new DeleteEnvironmentCommand(args);
|
|
103
|
+
if (typeof optionsOrCb === "function") {
|
|
104
|
+
this.send(command, optionsOrCb);
|
|
105
|
+
}
|
|
106
|
+
else if (typeof cb === "function") {
|
|
107
|
+
if (typeof optionsOrCb !== "object")
|
|
108
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
109
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
return this.send(command, optionsOrCb);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
MigrationHubRefactorSpaces.prototype.deleteResourcePolicy = function (args, optionsOrCb, cb) {
|
|
116
|
+
var command = new DeleteResourcePolicyCommand(args);
|
|
117
|
+
if (typeof optionsOrCb === "function") {
|
|
118
|
+
this.send(command, optionsOrCb);
|
|
119
|
+
}
|
|
120
|
+
else if (typeof cb === "function") {
|
|
121
|
+
if (typeof optionsOrCb !== "object")
|
|
122
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
123
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
return this.send(command, optionsOrCb);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
MigrationHubRefactorSpaces.prototype.deleteRoute = function (args, optionsOrCb, cb) {
|
|
130
|
+
var command = new DeleteRouteCommand(args);
|
|
131
|
+
if (typeof optionsOrCb === "function") {
|
|
132
|
+
this.send(command, optionsOrCb);
|
|
133
|
+
}
|
|
134
|
+
else if (typeof cb === "function") {
|
|
135
|
+
if (typeof optionsOrCb !== "object")
|
|
136
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
137
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
return this.send(command, optionsOrCb);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
MigrationHubRefactorSpaces.prototype.deleteService = function (args, optionsOrCb, cb) {
|
|
144
|
+
var command = new DeleteServiceCommand(args);
|
|
145
|
+
if (typeof optionsOrCb === "function") {
|
|
146
|
+
this.send(command, optionsOrCb);
|
|
147
|
+
}
|
|
148
|
+
else if (typeof cb === "function") {
|
|
149
|
+
if (typeof optionsOrCb !== "object")
|
|
150
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
151
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
return this.send(command, optionsOrCb);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
MigrationHubRefactorSpaces.prototype.getApplication = function (args, optionsOrCb, cb) {
|
|
158
|
+
var command = new GetApplicationCommand(args);
|
|
159
|
+
if (typeof optionsOrCb === "function") {
|
|
160
|
+
this.send(command, optionsOrCb);
|
|
161
|
+
}
|
|
162
|
+
else if (typeof cb === "function") {
|
|
163
|
+
if (typeof optionsOrCb !== "object")
|
|
164
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
165
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
return this.send(command, optionsOrCb);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
MigrationHubRefactorSpaces.prototype.getEnvironment = function (args, optionsOrCb, cb) {
|
|
172
|
+
var command = new GetEnvironmentCommand(args);
|
|
173
|
+
if (typeof optionsOrCb === "function") {
|
|
174
|
+
this.send(command, optionsOrCb);
|
|
175
|
+
}
|
|
176
|
+
else if (typeof cb === "function") {
|
|
177
|
+
if (typeof optionsOrCb !== "object")
|
|
178
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
179
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
return this.send(command, optionsOrCb);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
MigrationHubRefactorSpaces.prototype.getResourcePolicy = function (args, optionsOrCb, cb) {
|
|
186
|
+
var command = new GetResourcePolicyCommand(args);
|
|
187
|
+
if (typeof optionsOrCb === "function") {
|
|
188
|
+
this.send(command, optionsOrCb);
|
|
189
|
+
}
|
|
190
|
+
else if (typeof cb === "function") {
|
|
191
|
+
if (typeof optionsOrCb !== "object")
|
|
192
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
193
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
return this.send(command, optionsOrCb);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
MigrationHubRefactorSpaces.prototype.getRoute = function (args, optionsOrCb, cb) {
|
|
200
|
+
var command = new GetRouteCommand(args);
|
|
201
|
+
if (typeof optionsOrCb === "function") {
|
|
202
|
+
this.send(command, optionsOrCb);
|
|
203
|
+
}
|
|
204
|
+
else if (typeof cb === "function") {
|
|
205
|
+
if (typeof optionsOrCb !== "object")
|
|
206
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
207
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
return this.send(command, optionsOrCb);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
MigrationHubRefactorSpaces.prototype.getService = function (args, optionsOrCb, cb) {
|
|
214
|
+
var command = new GetServiceCommand(args);
|
|
215
|
+
if (typeof optionsOrCb === "function") {
|
|
216
|
+
this.send(command, optionsOrCb);
|
|
217
|
+
}
|
|
218
|
+
else if (typeof cb === "function") {
|
|
219
|
+
if (typeof optionsOrCb !== "object")
|
|
220
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
221
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
return this.send(command, optionsOrCb);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
MigrationHubRefactorSpaces.prototype.listApplications = function (args, optionsOrCb, cb) {
|
|
228
|
+
var command = new ListApplicationsCommand(args);
|
|
229
|
+
if (typeof optionsOrCb === "function") {
|
|
230
|
+
this.send(command, optionsOrCb);
|
|
231
|
+
}
|
|
232
|
+
else if (typeof cb === "function") {
|
|
233
|
+
if (typeof optionsOrCb !== "object")
|
|
234
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
235
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
return this.send(command, optionsOrCb);
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
MigrationHubRefactorSpaces.prototype.listEnvironments = function (args, optionsOrCb, cb) {
|
|
242
|
+
var command = new ListEnvironmentsCommand(args);
|
|
243
|
+
if (typeof optionsOrCb === "function") {
|
|
244
|
+
this.send(command, optionsOrCb);
|
|
245
|
+
}
|
|
246
|
+
else if (typeof cb === "function") {
|
|
247
|
+
if (typeof optionsOrCb !== "object")
|
|
248
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
249
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
return this.send(command, optionsOrCb);
|
|
253
|
+
}
|
|
254
|
+
};
|
|
255
|
+
MigrationHubRefactorSpaces.prototype.listEnvironmentVpcs = function (args, optionsOrCb, cb) {
|
|
256
|
+
var command = new ListEnvironmentVpcsCommand(args);
|
|
257
|
+
if (typeof optionsOrCb === "function") {
|
|
258
|
+
this.send(command, optionsOrCb);
|
|
259
|
+
}
|
|
260
|
+
else if (typeof cb === "function") {
|
|
261
|
+
if (typeof optionsOrCb !== "object")
|
|
262
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
263
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
return this.send(command, optionsOrCb);
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
MigrationHubRefactorSpaces.prototype.listRoutes = function (args, optionsOrCb, cb) {
|
|
270
|
+
var command = new ListRoutesCommand(args);
|
|
271
|
+
if (typeof optionsOrCb === "function") {
|
|
272
|
+
this.send(command, optionsOrCb);
|
|
273
|
+
}
|
|
274
|
+
else if (typeof cb === "function") {
|
|
275
|
+
if (typeof optionsOrCb !== "object")
|
|
276
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
277
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
return this.send(command, optionsOrCb);
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
MigrationHubRefactorSpaces.prototype.listServices = function (args, optionsOrCb, cb) {
|
|
284
|
+
var command = new ListServicesCommand(args);
|
|
285
|
+
if (typeof optionsOrCb === "function") {
|
|
286
|
+
this.send(command, optionsOrCb);
|
|
287
|
+
}
|
|
288
|
+
else if (typeof cb === "function") {
|
|
289
|
+
if (typeof optionsOrCb !== "object")
|
|
290
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
291
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
return this.send(command, optionsOrCb);
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
MigrationHubRefactorSpaces.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
298
|
+
var command = new ListTagsForResourceCommand(args);
|
|
299
|
+
if (typeof optionsOrCb === "function") {
|
|
300
|
+
this.send(command, optionsOrCb);
|
|
301
|
+
}
|
|
302
|
+
else if (typeof cb === "function") {
|
|
303
|
+
if (typeof optionsOrCb !== "object")
|
|
304
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
305
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
306
|
+
}
|
|
307
|
+
else {
|
|
308
|
+
return this.send(command, optionsOrCb);
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
MigrationHubRefactorSpaces.prototype.putResourcePolicy = function (args, optionsOrCb, cb) {
|
|
312
|
+
var command = new PutResourcePolicyCommand(args);
|
|
313
|
+
if (typeof optionsOrCb === "function") {
|
|
314
|
+
this.send(command, optionsOrCb);
|
|
315
|
+
}
|
|
316
|
+
else if (typeof cb === "function") {
|
|
317
|
+
if (typeof optionsOrCb !== "object")
|
|
318
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
319
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
return this.send(command, optionsOrCb);
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
MigrationHubRefactorSpaces.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
326
|
+
var command = new TagResourceCommand(args);
|
|
327
|
+
if (typeof optionsOrCb === "function") {
|
|
328
|
+
this.send(command, optionsOrCb);
|
|
329
|
+
}
|
|
330
|
+
else if (typeof cb === "function") {
|
|
331
|
+
if (typeof optionsOrCb !== "object")
|
|
332
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
333
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
return this.send(command, optionsOrCb);
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
MigrationHubRefactorSpaces.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
340
|
+
var command = new UntagResourceCommand(args);
|
|
341
|
+
if (typeof optionsOrCb === "function") {
|
|
342
|
+
this.send(command, optionsOrCb);
|
|
343
|
+
}
|
|
344
|
+
else if (typeof cb === "function") {
|
|
345
|
+
if (typeof optionsOrCb !== "object")
|
|
346
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
347
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
return this.send(command, optionsOrCb);
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
return MigrationHubRefactorSpaces;
|
|
354
|
+
}(MigrationHubRefactorSpacesClient));
|
|
355
|
+
export { MigrationHubRefactorSpaces };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
+
var MigrationHubRefactorSpacesClient = (function (_super) {
|
|
12
|
+
__extends(MigrationHubRefactorSpacesClient, _super);
|
|
13
|
+
function MigrationHubRefactorSpacesClient(configuration) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
17
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
18
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
19
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
20
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
21
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
22
|
+
_this = _super.call(this, _config_6) || this;
|
|
23
|
+
_this.config = _config_6;
|
|
24
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
25
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
MigrationHubRefactorSpacesClient.prototype.destroy = function () {
|
|
33
|
+
_super.prototype.destroy.call(this);
|
|
34
|
+
};
|
|
35
|
+
return MigrationHubRefactorSpacesClient;
|
|
36
|
+
}(__Client));
|
|
37
|
+
export { MigrationHubRefactorSpacesClient };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateApplicationRequest, CreateApplicationResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateApplicationCommand, serializeAws_restJson1CreateApplicationCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateApplicationCommand = (function (_super) {
|
|
7
|
+
__extends(CreateApplicationCommand, _super);
|
|
8
|
+
function CreateApplicationCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateApplicationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MigrationHubRefactorSpacesClient";
|
|
18
|
+
var commandName = "CreateApplicationCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateApplicationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateApplicationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateApplicationCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateApplicationCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateApplicationCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateApplicationCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateApplicationCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateApplicationCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateEnvironmentRequest, CreateEnvironmentResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateEnvironmentCommand, serializeAws_restJson1CreateEnvironmentCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateEnvironmentCommand = (function (_super) {
|
|
7
|
+
__extends(CreateEnvironmentCommand, _super);
|
|
8
|
+
function CreateEnvironmentCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateEnvironmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MigrationHubRefactorSpacesClient";
|
|
18
|
+
var commandName = "CreateEnvironmentCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateEnvironmentRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateEnvironmentResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateEnvironmentCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateEnvironmentCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateEnvironmentCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateEnvironmentCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateEnvironmentCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateEnvironmentCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateRouteRequest, CreateRouteResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateRouteCommand, serializeAws_restJson1CreateRouteCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateRouteCommand = (function (_super) {
|
|
7
|
+
__extends(CreateRouteCommand, _super);
|
|
8
|
+
function CreateRouteCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateRouteCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "MigrationHubRefactorSpacesClient";
|
|
18
|
+
var commandName = "CreateRouteCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateRouteRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateRouteResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateRouteCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateRouteCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateRouteCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateRouteCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateRouteCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateRouteCommand };
|