@aws-sdk/client-migrationhuborchestrator 3.181.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 +209 -0
- package/dist-cjs/MigrationHubOrchestrator.js +427 -0
- package/dist-cjs/MigrationHubOrchestratorClient.js +37 -0
- package/dist-cjs/commands/CreateWorkflowCommand.js +36 -0
- package/dist-cjs/commands/CreateWorkflowStepCommand.js +36 -0
- package/dist-cjs/commands/CreateWorkflowStepGroupCommand.js +36 -0
- package/dist-cjs/commands/DeleteWorkflowCommand.js +36 -0
- package/dist-cjs/commands/DeleteWorkflowStepCommand.js +36 -0
- package/dist-cjs/commands/DeleteWorkflowStepGroupCommand.js +36 -0
- package/dist-cjs/commands/GetTemplateCommand.js +36 -0
- package/dist-cjs/commands/GetTemplateStepCommand.js +36 -0
- package/dist-cjs/commands/GetTemplateStepGroupCommand.js +36 -0
- package/dist-cjs/commands/GetWorkflowCommand.js +36 -0
- package/dist-cjs/commands/GetWorkflowStepCommand.js +36 -0
- package/dist-cjs/commands/GetWorkflowStepGroupCommand.js +36 -0
- package/dist-cjs/commands/ListPluginsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/ListTemplateStepGroupsCommand.js +36 -0
- package/dist-cjs/commands/ListTemplateStepsCommand.js +36 -0
- package/dist-cjs/commands/ListTemplatesCommand.js +36 -0
- package/dist-cjs/commands/ListWorkflowStepGroupsCommand.js +36 -0
- package/dist-cjs/commands/ListWorkflowStepsCommand.js +36 -0
- package/dist-cjs/commands/ListWorkflowsCommand.js +36 -0
- package/dist-cjs/commands/RetryWorkflowStepCommand.js +36 -0
- package/dist-cjs/commands/StartWorkflowCommand.js +36 -0
- package/dist-cjs/commands/StopWorkflowCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateWorkflowCommand.js +36 -0
- package/dist-cjs/commands/UpdateWorkflowStepCommand.js +36 -0
- package/dist-cjs/commands/UpdateWorkflowStepGroupCommand.js +36 -0
- package/dist-cjs/commands/index.js +31 -0
- package/dist-cjs/endpoints.js +132 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/MigrationHubOrchestratorServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +491 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListPluginsPaginator.js +36 -0
- package/dist-cjs/pagination/ListTemplateStepGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/ListTemplateStepsPaginator.js +36 -0
- package/dist-cjs/pagination/ListTemplatesPaginator.js +36 -0
- package/dist-cjs/pagination/ListWorkflowStepGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/ListWorkflowStepsPaginator.js +36 -0
- package/dist-cjs/pagination/ListWorkflowsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2816 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/MigrationHubOrchestrator.js +430 -0
- package/dist-es/MigrationHubOrchestratorClient.js +39 -0
- package/dist-es/commands/CreateWorkflowCommand.js +39 -0
- package/dist-es/commands/CreateWorkflowStepCommand.js +39 -0
- package/dist-es/commands/CreateWorkflowStepGroupCommand.js +39 -0
- package/dist-es/commands/DeleteWorkflowCommand.js +39 -0
- package/dist-es/commands/DeleteWorkflowStepCommand.js +39 -0
- package/dist-es/commands/DeleteWorkflowStepGroupCommand.js +39 -0
- package/dist-es/commands/GetTemplateCommand.js +39 -0
- package/dist-es/commands/GetTemplateStepCommand.js +39 -0
- package/dist-es/commands/GetTemplateStepGroupCommand.js +39 -0
- package/dist-es/commands/GetWorkflowCommand.js +39 -0
- package/dist-es/commands/GetWorkflowStepCommand.js +39 -0
- package/dist-es/commands/GetWorkflowStepGroupCommand.js +39 -0
- package/dist-es/commands/ListPluginsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/ListTemplateStepGroupsCommand.js +39 -0
- package/dist-es/commands/ListTemplateStepsCommand.js +39 -0
- package/dist-es/commands/ListTemplatesCommand.js +39 -0
- package/dist-es/commands/ListWorkflowStepGroupsCommand.js +39 -0
- package/dist-es/commands/ListWorkflowStepsCommand.js +39 -0
- package/dist-es/commands/ListWorkflowsCommand.js +39 -0
- package/dist-es/commands/RetryWorkflowStepCommand.js +39 -0
- package/dist-es/commands/StartWorkflowCommand.js +39 -0
- package/dist-es/commands/StopWorkflowCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateWorkflowCommand.js +39 -0
- package/dist-es/commands/UpdateWorkflowStepCommand.js +39 -0
- package/dist-es/commands/UpdateWorkflowStepGroupCommand.js +39 -0
- package/dist-es/commands/index.js +28 -0
- package/dist-es/endpoints.js +128 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/MigrationHubOrchestratorServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +261 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListPluginsPaginator.js +75 -0
- package/dist-es/pagination/ListTemplateStepGroupsPaginator.js +75 -0
- package/dist-es/pagination/ListTemplateStepsPaginator.js +75 -0
- package/dist-es/pagination/ListTemplatesPaginator.js +75 -0
- package/dist-es/pagination/ListWorkflowStepGroupsPaginator.js +75 -0
- package/dist-es/pagination/ListWorkflowStepsPaginator.js +75 -0
- package/dist-es/pagination/ListWorkflowsPaginator.js +75 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_restJson1.js +3593 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +30 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/MigrationHubOrchestrator.d.ts +209 -0
- package/dist-types/MigrationHubOrchestratorClient.d.ts +176 -0
- package/dist-types/commands/CreateWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/CreateWorkflowStepCommand.d.ts +35 -0
- package/dist-types/commands/CreateWorkflowStepGroupCommand.d.ts +35 -0
- package/dist-types/commands/DeleteWorkflowCommand.d.ts +36 -0
- package/dist-types/commands/DeleteWorkflowStepCommand.d.ts +36 -0
- package/dist-types/commands/DeleteWorkflowStepGroupCommand.d.ts +35 -0
- package/dist-types/commands/GetTemplateCommand.d.ts +35 -0
- package/dist-types/commands/GetTemplateStepCommand.d.ts +35 -0
- package/dist-types/commands/GetTemplateStepGroupCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkflowStepCommand.d.ts +35 -0
- package/dist-types/commands/GetWorkflowStepGroupCommand.d.ts +35 -0
- package/dist-types/commands/ListPluginsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/ListTemplateStepGroupsCommand.d.ts +35 -0
- package/dist-types/commands/ListTemplateStepsCommand.d.ts +35 -0
- package/dist-types/commands/ListTemplatesCommand.d.ts +35 -0
- package/dist-types/commands/ListWorkflowStepGroupsCommand.d.ts +35 -0
- package/dist-types/commands/ListWorkflowStepsCommand.d.ts +35 -0
- package/dist-types/commands/ListWorkflowsCommand.d.ts +35 -0
- package/dist-types/commands/RetryWorkflowStepCommand.d.ts +35 -0
- package/dist-types/commands/StartWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/StopWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateWorkflowCommand.d.ts +35 -0
- package/dist-types/commands/UpdateWorkflowStepCommand.d.ts +35 -0
- package/dist-types/commands/UpdateWorkflowStepGroupCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +28 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/MigrationHubOrchestratorServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2063 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListPluginsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTemplateStepGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTemplateStepsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTemplatesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWorkflowStepGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWorkflowStepsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWorkflowsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +86 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/MigrationHubOrchestrator.d.ts +480 -0
- package/dist-types/ts3.4/MigrationHubOrchestratorClient.d.ts +273 -0
- package/dist-types/ts3.4/commands/CreateWorkflowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateWorkflowStepCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/CreateWorkflowStepGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowStepCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/DeleteWorkflowStepGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetTemplateCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/GetTemplateStepCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetTemplateStepGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetWorkflowCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetWorkflowStepCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetWorkflowStepGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPluginsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListTemplateStepGroupsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListTemplateStepsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListTemplatesCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListWorkflowStepGroupsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListWorkflowStepsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListWorkflowsCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/RetryWorkflowStepCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/StartWorkflowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/StopWorkflowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateWorkflowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateWorkflowStepCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/UpdateWorkflowStepGroupCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +28 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/MigrationHubOrchestratorServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +880 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListPluginsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplateStepGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplateStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowStepGroupsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +341 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +69 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +69 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +70 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +12 -0
- package/package.json +100 -0
|
@@ -0,0 +1,45 @@
|
|
|
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 smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
|
+
const getRuntimeConfig = (config) => {
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
28
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
29
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
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 : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
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 : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
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
|
+
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
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
39
|
+
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)),
|
|
40
|
+
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)),
|
|
41
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
|
+
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
|
+
const getRuntimeConfig = (config) => {
|
|
22
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
26
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
27
|
+
return {
|
|
28
|
+
...clientSharedValues,
|
|
29
|
+
...config,
|
|
30
|
+
runtime: "node",
|
|
31
|
+
defaultsMode,
|
|
32
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
33
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
34
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
35
|
+
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),
|
|
36
|
+
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 }),
|
|
37
|
+
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),
|
|
38
|
+
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),
|
|
39
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
41
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
42
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
43
|
+
}),
|
|
44
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
45
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
46
|
+
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),
|
|
47
|
+
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),
|
|
48
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
49
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
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 = (0, 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-08-28",
|
|
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 : "MigrationHubOrchestrator",
|
|
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,430 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { CreateWorkflowCommand, } from "./commands/CreateWorkflowCommand";
|
|
3
|
+
import { CreateWorkflowStepCommand, } from "./commands/CreateWorkflowStepCommand";
|
|
4
|
+
import { CreateWorkflowStepGroupCommand, } from "./commands/CreateWorkflowStepGroupCommand";
|
|
5
|
+
import { DeleteWorkflowCommand, } from "./commands/DeleteWorkflowCommand";
|
|
6
|
+
import { DeleteWorkflowStepCommand, } from "./commands/DeleteWorkflowStepCommand";
|
|
7
|
+
import { DeleteWorkflowStepGroupCommand, } from "./commands/DeleteWorkflowStepGroupCommand";
|
|
8
|
+
import { GetTemplateCommand } from "./commands/GetTemplateCommand";
|
|
9
|
+
import { GetTemplateStepCommand, } from "./commands/GetTemplateStepCommand";
|
|
10
|
+
import { GetTemplateStepGroupCommand, } from "./commands/GetTemplateStepGroupCommand";
|
|
11
|
+
import { GetWorkflowCommand } from "./commands/GetWorkflowCommand";
|
|
12
|
+
import { GetWorkflowStepCommand, } from "./commands/GetWorkflowStepCommand";
|
|
13
|
+
import { GetWorkflowStepGroupCommand, } from "./commands/GetWorkflowStepGroupCommand";
|
|
14
|
+
import { ListPluginsCommand } from "./commands/ListPluginsCommand";
|
|
15
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
16
|
+
import { ListTemplatesCommand, } from "./commands/ListTemplatesCommand";
|
|
17
|
+
import { ListTemplateStepGroupsCommand, } from "./commands/ListTemplateStepGroupsCommand";
|
|
18
|
+
import { ListTemplateStepsCommand, } from "./commands/ListTemplateStepsCommand";
|
|
19
|
+
import { ListWorkflowsCommand, } from "./commands/ListWorkflowsCommand";
|
|
20
|
+
import { ListWorkflowStepGroupsCommand, } from "./commands/ListWorkflowStepGroupsCommand";
|
|
21
|
+
import { ListWorkflowStepsCommand, } from "./commands/ListWorkflowStepsCommand";
|
|
22
|
+
import { RetryWorkflowStepCommand, } from "./commands/RetryWorkflowStepCommand";
|
|
23
|
+
import { StartWorkflowCommand, } from "./commands/StartWorkflowCommand";
|
|
24
|
+
import { StopWorkflowCommand, } from "./commands/StopWorkflowCommand";
|
|
25
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
26
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
27
|
+
import { UpdateWorkflowCommand, } from "./commands/UpdateWorkflowCommand";
|
|
28
|
+
import { UpdateWorkflowStepCommand, } from "./commands/UpdateWorkflowStepCommand";
|
|
29
|
+
import { UpdateWorkflowStepGroupCommand, } from "./commands/UpdateWorkflowStepGroupCommand";
|
|
30
|
+
import { MigrationHubOrchestratorClient } from "./MigrationHubOrchestratorClient";
|
|
31
|
+
var MigrationHubOrchestrator = (function (_super) {
|
|
32
|
+
__extends(MigrationHubOrchestrator, _super);
|
|
33
|
+
function MigrationHubOrchestrator() {
|
|
34
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
35
|
+
}
|
|
36
|
+
MigrationHubOrchestrator.prototype.createWorkflow = function (args, optionsOrCb, cb) {
|
|
37
|
+
var command = new CreateWorkflowCommand(args);
|
|
38
|
+
if (typeof optionsOrCb === "function") {
|
|
39
|
+
this.send(command, optionsOrCb);
|
|
40
|
+
}
|
|
41
|
+
else if (typeof cb === "function") {
|
|
42
|
+
if (typeof optionsOrCb !== "object")
|
|
43
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
44
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
return this.send(command, optionsOrCb);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
MigrationHubOrchestrator.prototype.createWorkflowStep = function (args, optionsOrCb, cb) {
|
|
51
|
+
var command = new CreateWorkflowStepCommand(args);
|
|
52
|
+
if (typeof optionsOrCb === "function") {
|
|
53
|
+
this.send(command, optionsOrCb);
|
|
54
|
+
}
|
|
55
|
+
else if (typeof cb === "function") {
|
|
56
|
+
if (typeof optionsOrCb !== "object")
|
|
57
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
58
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return this.send(command, optionsOrCb);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
MigrationHubOrchestrator.prototype.createWorkflowStepGroup = function (args, optionsOrCb, cb) {
|
|
65
|
+
var command = new CreateWorkflowStepGroupCommand(args);
|
|
66
|
+
if (typeof optionsOrCb === "function") {
|
|
67
|
+
this.send(command, optionsOrCb);
|
|
68
|
+
}
|
|
69
|
+
else if (typeof cb === "function") {
|
|
70
|
+
if (typeof optionsOrCb !== "object")
|
|
71
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
72
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
return this.send(command, optionsOrCb);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
MigrationHubOrchestrator.prototype.deleteWorkflow = function (args, optionsOrCb, cb) {
|
|
79
|
+
var command = new DeleteWorkflowCommand(args);
|
|
80
|
+
if (typeof optionsOrCb === "function") {
|
|
81
|
+
this.send(command, optionsOrCb);
|
|
82
|
+
}
|
|
83
|
+
else if (typeof cb === "function") {
|
|
84
|
+
if (typeof optionsOrCb !== "object")
|
|
85
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
86
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
return this.send(command, optionsOrCb);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
MigrationHubOrchestrator.prototype.deleteWorkflowStep = function (args, optionsOrCb, cb) {
|
|
93
|
+
var command = new DeleteWorkflowStepCommand(args);
|
|
94
|
+
if (typeof optionsOrCb === "function") {
|
|
95
|
+
this.send(command, optionsOrCb);
|
|
96
|
+
}
|
|
97
|
+
else if (typeof cb === "function") {
|
|
98
|
+
if (typeof optionsOrCb !== "object")
|
|
99
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
100
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return this.send(command, optionsOrCb);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
MigrationHubOrchestrator.prototype.deleteWorkflowStepGroup = function (args, optionsOrCb, cb) {
|
|
107
|
+
var command = new DeleteWorkflowStepGroupCommand(args);
|
|
108
|
+
if (typeof optionsOrCb === "function") {
|
|
109
|
+
this.send(command, optionsOrCb);
|
|
110
|
+
}
|
|
111
|
+
else if (typeof cb === "function") {
|
|
112
|
+
if (typeof optionsOrCb !== "object")
|
|
113
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
114
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return this.send(command, optionsOrCb);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
MigrationHubOrchestrator.prototype.getTemplate = function (args, optionsOrCb, cb) {
|
|
121
|
+
var command = new GetTemplateCommand(args);
|
|
122
|
+
if (typeof optionsOrCb === "function") {
|
|
123
|
+
this.send(command, optionsOrCb);
|
|
124
|
+
}
|
|
125
|
+
else if (typeof cb === "function") {
|
|
126
|
+
if (typeof optionsOrCb !== "object")
|
|
127
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
128
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
return this.send(command, optionsOrCb);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
MigrationHubOrchestrator.prototype.getTemplateStep = function (args, optionsOrCb, cb) {
|
|
135
|
+
var command = new GetTemplateStepCommand(args);
|
|
136
|
+
if (typeof optionsOrCb === "function") {
|
|
137
|
+
this.send(command, optionsOrCb);
|
|
138
|
+
}
|
|
139
|
+
else if (typeof cb === "function") {
|
|
140
|
+
if (typeof optionsOrCb !== "object")
|
|
141
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
142
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
return this.send(command, optionsOrCb);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
MigrationHubOrchestrator.prototype.getTemplateStepGroup = function (args, optionsOrCb, cb) {
|
|
149
|
+
var command = new GetTemplateStepGroupCommand(args);
|
|
150
|
+
if (typeof optionsOrCb === "function") {
|
|
151
|
+
this.send(command, optionsOrCb);
|
|
152
|
+
}
|
|
153
|
+
else if (typeof cb === "function") {
|
|
154
|
+
if (typeof optionsOrCb !== "object")
|
|
155
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
156
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
return this.send(command, optionsOrCb);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
MigrationHubOrchestrator.prototype.getWorkflow = function (args, optionsOrCb, cb) {
|
|
163
|
+
var command = new GetWorkflowCommand(args);
|
|
164
|
+
if (typeof optionsOrCb === "function") {
|
|
165
|
+
this.send(command, optionsOrCb);
|
|
166
|
+
}
|
|
167
|
+
else if (typeof cb === "function") {
|
|
168
|
+
if (typeof optionsOrCb !== "object")
|
|
169
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
170
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
return this.send(command, optionsOrCb);
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
MigrationHubOrchestrator.prototype.getWorkflowStep = function (args, optionsOrCb, cb) {
|
|
177
|
+
var command = new GetWorkflowStepCommand(args);
|
|
178
|
+
if (typeof optionsOrCb === "function") {
|
|
179
|
+
this.send(command, optionsOrCb);
|
|
180
|
+
}
|
|
181
|
+
else if (typeof cb === "function") {
|
|
182
|
+
if (typeof optionsOrCb !== "object")
|
|
183
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
184
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
return this.send(command, optionsOrCb);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
MigrationHubOrchestrator.prototype.getWorkflowStepGroup = function (args, optionsOrCb, cb) {
|
|
191
|
+
var command = new GetWorkflowStepGroupCommand(args);
|
|
192
|
+
if (typeof optionsOrCb === "function") {
|
|
193
|
+
this.send(command, optionsOrCb);
|
|
194
|
+
}
|
|
195
|
+
else if (typeof cb === "function") {
|
|
196
|
+
if (typeof optionsOrCb !== "object")
|
|
197
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
198
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
return this.send(command, optionsOrCb);
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
MigrationHubOrchestrator.prototype.listPlugins = function (args, optionsOrCb, cb) {
|
|
205
|
+
var command = new ListPluginsCommand(args);
|
|
206
|
+
if (typeof optionsOrCb === "function") {
|
|
207
|
+
this.send(command, optionsOrCb);
|
|
208
|
+
}
|
|
209
|
+
else if (typeof cb === "function") {
|
|
210
|
+
if (typeof optionsOrCb !== "object")
|
|
211
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
212
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
return this.send(command, optionsOrCb);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
MigrationHubOrchestrator.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
219
|
+
var command = new ListTagsForResourceCommand(args);
|
|
220
|
+
if (typeof optionsOrCb === "function") {
|
|
221
|
+
this.send(command, optionsOrCb);
|
|
222
|
+
}
|
|
223
|
+
else if (typeof cb === "function") {
|
|
224
|
+
if (typeof optionsOrCb !== "object")
|
|
225
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
226
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
return this.send(command, optionsOrCb);
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
MigrationHubOrchestrator.prototype.listTemplates = function (args, optionsOrCb, cb) {
|
|
233
|
+
var command = new ListTemplatesCommand(args);
|
|
234
|
+
if (typeof optionsOrCb === "function") {
|
|
235
|
+
this.send(command, optionsOrCb);
|
|
236
|
+
}
|
|
237
|
+
else if (typeof cb === "function") {
|
|
238
|
+
if (typeof optionsOrCb !== "object")
|
|
239
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
240
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
return this.send(command, optionsOrCb);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
MigrationHubOrchestrator.prototype.listTemplateStepGroups = function (args, optionsOrCb, cb) {
|
|
247
|
+
var command = new ListTemplateStepGroupsCommand(args);
|
|
248
|
+
if (typeof optionsOrCb === "function") {
|
|
249
|
+
this.send(command, optionsOrCb);
|
|
250
|
+
}
|
|
251
|
+
else if (typeof cb === "function") {
|
|
252
|
+
if (typeof optionsOrCb !== "object")
|
|
253
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
254
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
return this.send(command, optionsOrCb);
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
MigrationHubOrchestrator.prototype.listTemplateSteps = function (args, optionsOrCb, cb) {
|
|
261
|
+
var command = new ListTemplateStepsCommand(args);
|
|
262
|
+
if (typeof optionsOrCb === "function") {
|
|
263
|
+
this.send(command, optionsOrCb);
|
|
264
|
+
}
|
|
265
|
+
else if (typeof cb === "function") {
|
|
266
|
+
if (typeof optionsOrCb !== "object")
|
|
267
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
268
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
return this.send(command, optionsOrCb);
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
MigrationHubOrchestrator.prototype.listWorkflows = function (args, optionsOrCb, cb) {
|
|
275
|
+
var command = new ListWorkflowsCommand(args);
|
|
276
|
+
if (typeof optionsOrCb === "function") {
|
|
277
|
+
this.send(command, optionsOrCb);
|
|
278
|
+
}
|
|
279
|
+
else if (typeof cb === "function") {
|
|
280
|
+
if (typeof optionsOrCb !== "object")
|
|
281
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
282
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
return this.send(command, optionsOrCb);
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
MigrationHubOrchestrator.prototype.listWorkflowStepGroups = function (args, optionsOrCb, cb) {
|
|
289
|
+
var command = new ListWorkflowStepGroupsCommand(args);
|
|
290
|
+
if (typeof optionsOrCb === "function") {
|
|
291
|
+
this.send(command, optionsOrCb);
|
|
292
|
+
}
|
|
293
|
+
else if (typeof cb === "function") {
|
|
294
|
+
if (typeof optionsOrCb !== "object")
|
|
295
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
296
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
297
|
+
}
|
|
298
|
+
else {
|
|
299
|
+
return this.send(command, optionsOrCb);
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
MigrationHubOrchestrator.prototype.listWorkflowSteps = function (args, optionsOrCb, cb) {
|
|
303
|
+
var command = new ListWorkflowStepsCommand(args);
|
|
304
|
+
if (typeof optionsOrCb === "function") {
|
|
305
|
+
this.send(command, optionsOrCb);
|
|
306
|
+
}
|
|
307
|
+
else if (typeof cb === "function") {
|
|
308
|
+
if (typeof optionsOrCb !== "object")
|
|
309
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
310
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
return this.send(command, optionsOrCb);
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
MigrationHubOrchestrator.prototype.retryWorkflowStep = function (args, optionsOrCb, cb) {
|
|
317
|
+
var command = new RetryWorkflowStepCommand(args);
|
|
318
|
+
if (typeof optionsOrCb === "function") {
|
|
319
|
+
this.send(command, optionsOrCb);
|
|
320
|
+
}
|
|
321
|
+
else if (typeof cb === "function") {
|
|
322
|
+
if (typeof optionsOrCb !== "object")
|
|
323
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
324
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
return this.send(command, optionsOrCb);
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
MigrationHubOrchestrator.prototype.startWorkflow = function (args, optionsOrCb, cb) {
|
|
331
|
+
var command = new StartWorkflowCommand(args);
|
|
332
|
+
if (typeof optionsOrCb === "function") {
|
|
333
|
+
this.send(command, optionsOrCb);
|
|
334
|
+
}
|
|
335
|
+
else if (typeof cb === "function") {
|
|
336
|
+
if (typeof optionsOrCb !== "object")
|
|
337
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
338
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
return this.send(command, optionsOrCb);
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
MigrationHubOrchestrator.prototype.stopWorkflow = function (args, optionsOrCb, cb) {
|
|
345
|
+
var command = new StopWorkflowCommand(args);
|
|
346
|
+
if (typeof optionsOrCb === "function") {
|
|
347
|
+
this.send(command, optionsOrCb);
|
|
348
|
+
}
|
|
349
|
+
else if (typeof cb === "function") {
|
|
350
|
+
if (typeof optionsOrCb !== "object")
|
|
351
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
352
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
355
|
+
return this.send(command, optionsOrCb);
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
MigrationHubOrchestrator.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
359
|
+
var command = new TagResourceCommand(args);
|
|
360
|
+
if (typeof optionsOrCb === "function") {
|
|
361
|
+
this.send(command, optionsOrCb);
|
|
362
|
+
}
|
|
363
|
+
else if (typeof cb === "function") {
|
|
364
|
+
if (typeof optionsOrCb !== "object")
|
|
365
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
366
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
return this.send(command, optionsOrCb);
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
MigrationHubOrchestrator.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
373
|
+
var command = new UntagResourceCommand(args);
|
|
374
|
+
if (typeof optionsOrCb === "function") {
|
|
375
|
+
this.send(command, optionsOrCb);
|
|
376
|
+
}
|
|
377
|
+
else if (typeof cb === "function") {
|
|
378
|
+
if (typeof optionsOrCb !== "object")
|
|
379
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
380
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
return this.send(command, optionsOrCb);
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
MigrationHubOrchestrator.prototype.updateWorkflow = function (args, optionsOrCb, cb) {
|
|
387
|
+
var command = new UpdateWorkflowCommand(args);
|
|
388
|
+
if (typeof optionsOrCb === "function") {
|
|
389
|
+
this.send(command, optionsOrCb);
|
|
390
|
+
}
|
|
391
|
+
else if (typeof cb === "function") {
|
|
392
|
+
if (typeof optionsOrCb !== "object")
|
|
393
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
394
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
395
|
+
}
|
|
396
|
+
else {
|
|
397
|
+
return this.send(command, optionsOrCb);
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
MigrationHubOrchestrator.prototype.updateWorkflowStep = function (args, optionsOrCb, cb) {
|
|
401
|
+
var command = new UpdateWorkflowStepCommand(args);
|
|
402
|
+
if (typeof optionsOrCb === "function") {
|
|
403
|
+
this.send(command, optionsOrCb);
|
|
404
|
+
}
|
|
405
|
+
else if (typeof cb === "function") {
|
|
406
|
+
if (typeof optionsOrCb !== "object")
|
|
407
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
408
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
409
|
+
}
|
|
410
|
+
else {
|
|
411
|
+
return this.send(command, optionsOrCb);
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
MigrationHubOrchestrator.prototype.updateWorkflowStepGroup = function (args, optionsOrCb, cb) {
|
|
415
|
+
var command = new UpdateWorkflowStepGroupCommand(args);
|
|
416
|
+
if (typeof optionsOrCb === "function") {
|
|
417
|
+
this.send(command, optionsOrCb);
|
|
418
|
+
}
|
|
419
|
+
else if (typeof cb === "function") {
|
|
420
|
+
if (typeof optionsOrCb !== "object")
|
|
421
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
422
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
423
|
+
}
|
|
424
|
+
else {
|
|
425
|
+
return this.send(command, optionsOrCb);
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
return MigrationHubOrchestrator;
|
|
429
|
+
}(MigrationHubOrchestratorClient));
|
|
430
|
+
export { MigrationHubOrchestrator };
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
+
var MigrationHubOrchestratorClient = (function (_super) {
|
|
13
|
+
__extends(MigrationHubOrchestratorClient, _super);
|
|
14
|
+
function MigrationHubOrchestratorClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
33
|
+
}
|
|
34
|
+
MigrationHubOrchestratorClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return MigrationHubOrchestratorClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { MigrationHubOrchestratorClient };
|
|
@@ -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 { CreateMigrationWorkflowRequestFilterSensitiveLog, CreateMigrationWorkflowResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1CreateWorkflowCommand, serializeAws_restJson1CreateWorkflowCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var CreateWorkflowCommand = (function (_super) {
|
|
7
|
+
__extends(CreateWorkflowCommand, _super);
|
|
8
|
+
function CreateWorkflowCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateWorkflowCommand.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 = "MigrationHubOrchestratorClient";
|
|
18
|
+
var commandName = "CreateWorkflowCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateMigrationWorkflowRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateMigrationWorkflowResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateWorkflowCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1CreateWorkflowCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateWorkflowCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1CreateWorkflowCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateWorkflowCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateWorkflowCommand };
|