@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,17 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
+
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
|
+
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
9
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
10
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
export var getRuntimeConfig = function (config) {
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
15
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
3
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
|
+
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
+
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
|
+
export var getRuntimeConfig = function (config) {
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
+
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
+
export var getRuntimeConfig = function (config) {
|
|
5
|
+
var _a;
|
|
6
|
+
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
7
|
+
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
|
|
8
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
|
+
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
+
export var getRuntimeConfig = function (config) {
|
|
4
|
+
var _a, _b, _c, _d, _e;
|
|
5
|
+
return ({
|
|
6
|
+
apiVersion: "2021-10-26",
|
|
7
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
8
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
9
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
|
|
10
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Migration Hub Refactor Spaces",
|
|
11
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
12
|
+
});
|
|
13
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
|
|
3
|
+
import { CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput } from "./commands/CreateEnvironmentCommand";
|
|
4
|
+
import { CreateRouteCommandInput, CreateRouteCommandOutput } from "./commands/CreateRouteCommand";
|
|
5
|
+
import { CreateServiceCommandInput, CreateServiceCommandOutput } from "./commands/CreateServiceCommand";
|
|
6
|
+
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
|
|
7
|
+
import { DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput } from "./commands/DeleteEnvironmentCommand";
|
|
8
|
+
import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
9
|
+
import { DeleteRouteCommandInput, DeleteRouteCommandOutput } from "./commands/DeleteRouteCommand";
|
|
10
|
+
import { DeleteServiceCommandInput, DeleteServiceCommandOutput } from "./commands/DeleteServiceCommand";
|
|
11
|
+
import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
|
|
12
|
+
import { GetEnvironmentCommandInput, GetEnvironmentCommandOutput } from "./commands/GetEnvironmentCommand";
|
|
13
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
14
|
+
import { GetRouteCommandInput, GetRouteCommandOutput } from "./commands/GetRouteCommand";
|
|
15
|
+
import { GetServiceCommandInput, GetServiceCommandOutput } from "./commands/GetServiceCommand";
|
|
16
|
+
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
|
|
17
|
+
import { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "./commands/ListEnvironmentsCommand";
|
|
18
|
+
import { ListEnvironmentVpcsCommandInput, ListEnvironmentVpcsCommandOutput } from "./commands/ListEnvironmentVpcsCommand";
|
|
19
|
+
import { ListRoutesCommandInput, ListRoutesCommandOutput } from "./commands/ListRoutesCommand";
|
|
20
|
+
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
21
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
22
|
+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
23
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
24
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
25
|
+
import { MigrationHubRefactorSpacesClient } from "./MigrationHubRefactorSpacesClient";
|
|
26
|
+
/**
|
|
27
|
+
* <fullname>Amazon Web Services Migration Hub Refactor Spaces</fullname>
|
|
28
|
+
*
|
|
29
|
+
* <p>This API reference provides descriptions, syntax, and other details about each of the
|
|
30
|
+
* actions and data types for Amazon Web Services Migration Hub Refactor Spaces (Refactor Spaces). The topic for each action shows the API
|
|
31
|
+
* request parameters and the response. Alternatively, you can use one of the Amazon Web Services SDKs to
|
|
32
|
+
* access an API that is tailored to the programming language or platform that you're using. For
|
|
33
|
+
* more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon Web Services SDKs</a>.</p>
|
|
34
|
+
*/
|
|
35
|
+
export declare class MigrationHubRefactorSpaces extends MigrationHubRefactorSpacesClient {
|
|
36
|
+
/**
|
|
37
|
+
* <p>Creates an Amazon Web Services Migration Hub Refactor Spaces application. The account that owns the environment also owns the
|
|
38
|
+
* applications created inside the environment, regardless of the account that creates the
|
|
39
|
+
* application. Refactor Spaces provisions the Amazon API Gateway and Network Load Balancer for
|
|
40
|
+
* the application proxy inside your account.</p>
|
|
41
|
+
*/
|
|
42
|
+
createApplication(args: CreateApplicationCommandInput, options?: __HttpHandlerOptions): Promise<CreateApplicationCommandOutput>;
|
|
43
|
+
createApplication(args: CreateApplicationCommandInput, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
|
|
44
|
+
createApplication(args: CreateApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateApplicationCommandOutput) => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* <p>Creates an Amazon Web Services Migration Hub Refactor Spaces environment. The caller owns the environment resource, and they
|
|
47
|
+
* are referred to as the <i>environment owner</i>. The environment owner has
|
|
48
|
+
* cross-account visibility and control of Refactor Spaces resources that are added to the environment
|
|
49
|
+
* by other accounts that the environment is shared with. When creating an environment, Refactor Spaces
|
|
50
|
+
* provisions a transit gateway in your account.</p>
|
|
51
|
+
*/
|
|
52
|
+
createEnvironment(args: CreateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<CreateEnvironmentCommandOutput>;
|
|
53
|
+
createEnvironment(args: CreateEnvironmentCommandInput, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
|
|
54
|
+
createEnvironment(args: CreateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEnvironmentCommandOutput) => void): void;
|
|
55
|
+
/**
|
|
56
|
+
* <p>Creates an Amazon Web Services Migration Hub Refactor Spaces route. The account owner of the service resource is always the
|
|
57
|
+
* environment owner, regardless of which account creates the route. Routes target a service in
|
|
58
|
+
* the application. If an application does not have any routes, then the first route must be
|
|
59
|
+
* created as a <code>DEFAULT</code>
|
|
60
|
+
* <code>RouteType</code>.</p>
|
|
61
|
+
* <p>When you create a route, Refactor Spaces configures the Amazon API Gateway to send traffic
|
|
62
|
+
* to the target service as follows:</p>
|
|
63
|
+
* <ul>
|
|
64
|
+
* <li>
|
|
65
|
+
* <p>If the service has a URL endpoint, and the endpoint resolves to a private IP address,
|
|
66
|
+
* Refactor Spaces routes traffic using the API Gateway VPC link. </p>
|
|
67
|
+
* </li>
|
|
68
|
+
* <li>
|
|
69
|
+
* <p>If the service has a URL endpoint, and the endpoint resolves to a public IP address,
|
|
70
|
+
* Refactor Spaces routes traffic over the public internet.</p>
|
|
71
|
+
* </li>
|
|
72
|
+
* <li>
|
|
73
|
+
* <p>If the service has an Lambda function endpoint, then Refactor Spaces uses
|
|
74
|
+
* the API Gateway
|
|
75
|
+
* Lambda integration.</p>
|
|
76
|
+
* </li>
|
|
77
|
+
* </ul>
|
|
78
|
+
* <p>A health check is performed on the service when the route is created. If the health check
|
|
79
|
+
* fails, the route transitions to <code>FAILED</code>, and no traffic is sent to the service.</p>
|
|
80
|
+
* <p>For Lambda functions, the Lambda function state is checked. If
|
|
81
|
+
* the function is not active, the function configuration is updated so that Lambda
|
|
82
|
+
* resources are provisioned. If the Lambda state is <code>Failed</code>, then the
|
|
83
|
+
* route creation fails. For more information, see the <a href="https://docs.aws.amazon.com/lambda/latest/dg/API_GetFunctionConfiguration.html#SSS-GetFunctionConfiguration-response-State">GetFunctionConfiguration's State response parameter</a> in the <i>Lambda Developer Guide</i>.</p>
|
|
84
|
+
* <p>For public URLs, a connection is opened to the public endpoint. If the URL is not reachable,
|
|
85
|
+
* the health check fails. For private URLs, a target group is created and the target group
|
|
86
|
+
* health check is run.</p>
|
|
87
|
+
* <p>The <code>HealthCheckProtocol</code>, <code>HealthCheckPort</code>, and
|
|
88
|
+
* <code>HealthCheckPath</code> are the same protocol, port, and path specified in the URL or
|
|
89
|
+
* health URL, if used. All other settings use the default values, as described in <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-health-checks.html">Health checks
|
|
90
|
+
* for your target groups</a>. The health check is considered successful if at least one
|
|
91
|
+
* target within the target group transitions to a healthy state.</p>
|
|
92
|
+
*/
|
|
93
|
+
createRoute(args: CreateRouteCommandInput, options?: __HttpHandlerOptions): Promise<CreateRouteCommandOutput>;
|
|
94
|
+
createRoute(args: CreateRouteCommandInput, cb: (err: any, data?: CreateRouteCommandOutput) => void): void;
|
|
95
|
+
createRoute(args: CreateRouteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRouteCommandOutput) => void): void;
|
|
96
|
+
/**
|
|
97
|
+
* <p>Creates an Amazon Web Services Migration Hub Refactor Spaces service. The account owner of the service is always the
|
|
98
|
+
* environment owner, regardless of which account in the environment creates the service.
|
|
99
|
+
* Services have either a URL endpoint in a virtual private cloud (VPC), or a Lambda
|
|
100
|
+
* function endpoint.</p>
|
|
101
|
+
* <important>
|
|
102
|
+
* <p>If an Amazon Web Services resourceis launched in a service VPC, and you want it to be
|
|
103
|
+
* accessible to all of an environment’s services with VPCs and routes, apply the
|
|
104
|
+
* <code>RefactorSpacesSecurityGroup</code> to the resource. Alternatively, to add more
|
|
105
|
+
* cross-account constraints, apply your own security group.</p>
|
|
106
|
+
* </important>
|
|
107
|
+
*/
|
|
108
|
+
createService(args: CreateServiceCommandInput, options?: __HttpHandlerOptions): Promise<CreateServiceCommandOutput>;
|
|
109
|
+
createService(args: CreateServiceCommandInput, cb: (err: any, data?: CreateServiceCommandOutput) => void): void;
|
|
110
|
+
createService(args: CreateServiceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateServiceCommandOutput) => void): void;
|
|
111
|
+
/**
|
|
112
|
+
* <p>Deletes an Amazon Web Services Migration Hub Refactor Spaces application. Before you can delete an application, you must first
|
|
113
|
+
* delete any services or routes within the application.</p>
|
|
114
|
+
*/
|
|
115
|
+
deleteApplication(args: DeleteApplicationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteApplicationCommandOutput>;
|
|
116
|
+
deleteApplication(args: DeleteApplicationCommandInput, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
117
|
+
deleteApplication(args: DeleteApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteApplicationCommandOutput) => void): void;
|
|
118
|
+
/**
|
|
119
|
+
* <p>Deletes an Amazon Web Services Migration Hub Refactor Spaces environment. Before you can delete an environment, you must first
|
|
120
|
+
* delete any applications and services within the environment.</p>
|
|
121
|
+
*/
|
|
122
|
+
deleteEnvironment(args: DeleteEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEnvironmentCommandOutput>;
|
|
123
|
+
deleteEnvironment(args: DeleteEnvironmentCommandInput, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
|
|
124
|
+
deleteEnvironment(args: DeleteEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEnvironmentCommandOutput) => void): void;
|
|
125
|
+
/**
|
|
126
|
+
* <p>Deletes the resource policy set for the environment. </p>
|
|
127
|
+
*/
|
|
128
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
|
|
129
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
130
|
+
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
131
|
+
/**
|
|
132
|
+
* <p>Deletes an Amazon Web Services Migration Hub Refactor Spaces route.</p>
|
|
133
|
+
*/
|
|
134
|
+
deleteRoute(args: DeleteRouteCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRouteCommandOutput>;
|
|
135
|
+
deleteRoute(args: DeleteRouteCommandInput, cb: (err: any, data?: DeleteRouteCommandOutput) => void): void;
|
|
136
|
+
deleteRoute(args: DeleteRouteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRouteCommandOutput) => void): void;
|
|
137
|
+
/**
|
|
138
|
+
* <p>Deletes an Amazon Web Services Migration Hub Refactor Spaces service. </p>
|
|
139
|
+
*/
|
|
140
|
+
deleteService(args: DeleteServiceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteServiceCommandOutput>;
|
|
141
|
+
deleteService(args: DeleteServiceCommandInput, cb: (err: any, data?: DeleteServiceCommandOutput) => void): void;
|
|
142
|
+
deleteService(args: DeleteServiceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteServiceCommandOutput) => void): void;
|
|
143
|
+
/**
|
|
144
|
+
* <p>Gets an Amazon Web Services Migration Hub Refactor Spaces application.</p>
|
|
145
|
+
*/
|
|
146
|
+
getApplication(args: GetApplicationCommandInput, options?: __HttpHandlerOptions): Promise<GetApplicationCommandOutput>;
|
|
147
|
+
getApplication(args: GetApplicationCommandInput, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
|
|
148
|
+
getApplication(args: GetApplicationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetApplicationCommandOutput) => void): void;
|
|
149
|
+
/**
|
|
150
|
+
* <p>Gets an Amazon Web Services Migration Hub Refactor Spaces environment.</p>
|
|
151
|
+
*/
|
|
152
|
+
getEnvironment(args: GetEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<GetEnvironmentCommandOutput>;
|
|
153
|
+
getEnvironment(args: GetEnvironmentCommandInput, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
|
|
154
|
+
getEnvironment(args: GetEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnvironmentCommandOutput) => void): void;
|
|
155
|
+
/**
|
|
156
|
+
* <p>Gets the resource-based permission policy that is set for the given environment. </p>
|
|
157
|
+
*/
|
|
158
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
|
|
159
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
160
|
+
getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
161
|
+
/**
|
|
162
|
+
* <p>Gets an Amazon Web Services Migration Hub Refactor Spaces route.</p>
|
|
163
|
+
*/
|
|
164
|
+
getRoute(args: GetRouteCommandInput, options?: __HttpHandlerOptions): Promise<GetRouteCommandOutput>;
|
|
165
|
+
getRoute(args: GetRouteCommandInput, cb: (err: any, data?: GetRouteCommandOutput) => void): void;
|
|
166
|
+
getRoute(args: GetRouteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRouteCommandOutput) => void): void;
|
|
167
|
+
/**
|
|
168
|
+
* <p>Gets an Amazon Web Services Migration Hub Refactor Spaces service. </p>
|
|
169
|
+
*/
|
|
170
|
+
getService(args: GetServiceCommandInput, options?: __HttpHandlerOptions): Promise<GetServiceCommandOutput>;
|
|
171
|
+
getService(args: GetServiceCommandInput, cb: (err: any, data?: GetServiceCommandOutput) => void): void;
|
|
172
|
+
getService(args: GetServiceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetServiceCommandOutput) => void): void;
|
|
173
|
+
/**
|
|
174
|
+
* <p>Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment. </p>
|
|
175
|
+
*/
|
|
176
|
+
listApplications(args: ListApplicationsCommandInput, options?: __HttpHandlerOptions): Promise<ListApplicationsCommandOutput>;
|
|
177
|
+
listApplications(args: ListApplicationsCommandInput, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
|
|
178
|
+
listApplications(args: ListApplicationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListApplicationsCommandOutput) => void): void;
|
|
179
|
+
/**
|
|
180
|
+
* <p>Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller
|
|
181
|
+
* account. </p>
|
|
182
|
+
*/
|
|
183
|
+
listEnvironments(args: ListEnvironmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListEnvironmentsCommandOutput>;
|
|
184
|
+
listEnvironments(args: ListEnvironmentsCommandInput, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
|
|
185
|
+
listEnvironments(args: ListEnvironmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnvironmentsCommandOutput) => void): void;
|
|
186
|
+
/**
|
|
187
|
+
* <p>Lists all the virtual private clouds (VPCs) that are part of an Amazon Web Services Migration Hub Refactor Spaces environment. </p>
|
|
188
|
+
*/
|
|
189
|
+
listEnvironmentVpcs(args: ListEnvironmentVpcsCommandInput, options?: __HttpHandlerOptions): Promise<ListEnvironmentVpcsCommandOutput>;
|
|
190
|
+
listEnvironmentVpcs(args: ListEnvironmentVpcsCommandInput, cb: (err: any, data?: ListEnvironmentVpcsCommandOutput) => void): void;
|
|
191
|
+
listEnvironmentVpcs(args: ListEnvironmentVpcsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnvironmentVpcsCommandOutput) => void): void;
|
|
192
|
+
/**
|
|
193
|
+
* <p>Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application. </p>
|
|
194
|
+
*/
|
|
195
|
+
listRoutes(args: ListRoutesCommandInput, options?: __HttpHandlerOptions): Promise<ListRoutesCommandOutput>;
|
|
196
|
+
listRoutes(args: ListRoutesCommandInput, cb: (err: any, data?: ListRoutesCommandOutput) => void): void;
|
|
197
|
+
listRoutes(args: ListRoutesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRoutesCommandOutput) => void): void;
|
|
198
|
+
/**
|
|
199
|
+
* <p>Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application. </p>
|
|
200
|
+
*/
|
|
201
|
+
listServices(args: ListServicesCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesCommandOutput>;
|
|
202
|
+
listServices(args: ListServicesCommandInput, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
203
|
+
listServices(args: ListServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
204
|
+
/**
|
|
205
|
+
* <p>Lists the tags of a resource. The caller account must be the same as the resource’s
|
|
206
|
+
* <code>OwnerAccountId</code>. Listing tags in other accounts is not supported. </p>
|
|
207
|
+
*/
|
|
208
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
209
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
210
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
211
|
+
/**
|
|
212
|
+
* <p>Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment. The policy
|
|
213
|
+
* must contain the same actions and condition statements as the
|
|
214
|
+
* <code>arn:aws:ram::aws:permission/AWSRAMDefaultPermissionRefactorSpacesEnvironment</code>
|
|
215
|
+
* permission in Resource Access Manager. The policy must not contain new lines or blank lines. </p>
|
|
216
|
+
*/
|
|
217
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
|
|
218
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
219
|
+
putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
220
|
+
/**
|
|
221
|
+
* <p>Removes the tags of a given resource. Tags are metadata which can be used to manage a
|
|
222
|
+
* resource. To tag a resource, the caller account must be the same as the resource’s
|
|
223
|
+
* <code>OwnerAccountId</code>. Tagging resources in other accounts is not supported.</p>
|
|
224
|
+
* <note>
|
|
225
|
+
* <p>Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated resources, such as an
|
|
226
|
+
* environment’s transit gateway.</p>
|
|
227
|
+
* </note>
|
|
228
|
+
*/
|
|
229
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
230
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
231
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
232
|
+
/**
|
|
233
|
+
* <p>Adds to or modifies the tags of the given resource. Tags are metadata which can be used to
|
|
234
|
+
* manage a resource. To untag a resource, the caller account must be the same as the resource’s
|
|
235
|
+
* <code>OwnerAccountId</code>. Untagging resources across accounts is not supported. </p>
|
|
236
|
+
*/
|
|
237
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
238
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
239
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
240
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
3
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
4
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
+
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
+
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
|
+
import { CreateApplicationCommandInput, CreateApplicationCommandOutput } from "./commands/CreateApplicationCommand";
|
|
10
|
+
import { CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput } from "./commands/CreateEnvironmentCommand";
|
|
11
|
+
import { CreateRouteCommandInput, CreateRouteCommandOutput } from "./commands/CreateRouteCommand";
|
|
12
|
+
import { CreateServiceCommandInput, CreateServiceCommandOutput } from "./commands/CreateServiceCommand";
|
|
13
|
+
import { DeleteApplicationCommandInput, DeleteApplicationCommandOutput } from "./commands/DeleteApplicationCommand";
|
|
14
|
+
import { DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput } from "./commands/DeleteEnvironmentCommand";
|
|
15
|
+
import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
|
|
16
|
+
import { DeleteRouteCommandInput, DeleteRouteCommandOutput } from "./commands/DeleteRouteCommand";
|
|
17
|
+
import { DeleteServiceCommandInput, DeleteServiceCommandOutput } from "./commands/DeleteServiceCommand";
|
|
18
|
+
import { GetApplicationCommandInput, GetApplicationCommandOutput } from "./commands/GetApplicationCommand";
|
|
19
|
+
import { GetEnvironmentCommandInput, GetEnvironmentCommandOutput } from "./commands/GetEnvironmentCommand";
|
|
20
|
+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
21
|
+
import { GetRouteCommandInput, GetRouteCommandOutput } from "./commands/GetRouteCommand";
|
|
22
|
+
import { GetServiceCommandInput, GetServiceCommandOutput } from "./commands/GetServiceCommand";
|
|
23
|
+
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
|
|
24
|
+
import { ListEnvironmentsCommandInput, ListEnvironmentsCommandOutput } from "./commands/ListEnvironmentsCommand";
|
|
25
|
+
import { ListEnvironmentVpcsCommandInput, ListEnvironmentVpcsCommandOutput } from "./commands/ListEnvironmentVpcsCommand";
|
|
26
|
+
import { ListRoutesCommandInput, ListRoutesCommandOutput } from "./commands/ListRoutesCommand";
|
|
27
|
+
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
28
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
29
|
+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
30
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
31
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
32
|
+
export declare type ServiceInputTypes = CreateApplicationCommandInput | CreateEnvironmentCommandInput | CreateRouteCommandInput | CreateServiceCommandInput | DeleteApplicationCommandInput | DeleteEnvironmentCommandInput | DeleteResourcePolicyCommandInput | DeleteRouteCommandInput | DeleteServiceCommandInput | GetApplicationCommandInput | GetEnvironmentCommandInput | GetResourcePolicyCommandInput | GetRouteCommandInput | GetServiceCommandInput | ListApplicationsCommandInput | ListEnvironmentVpcsCommandInput | ListEnvironmentsCommandInput | ListRoutesCommandInput | ListServicesCommandInput | ListTagsForResourceCommandInput | PutResourcePolicyCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
33
|
+
export declare type ServiceOutputTypes = CreateApplicationCommandOutput | CreateEnvironmentCommandOutput | CreateRouteCommandOutput | CreateServiceCommandOutput | DeleteApplicationCommandOutput | DeleteEnvironmentCommandOutput | DeleteResourcePolicyCommandOutput | DeleteRouteCommandOutput | DeleteServiceCommandOutput | GetApplicationCommandOutput | GetEnvironmentCommandOutput | GetResourcePolicyCommandOutput | GetRouteCommandOutput | GetServiceCommandOutput | ListApplicationsCommandOutput | ListEnvironmentVpcsCommandOutput | ListEnvironmentsCommandOutput | ListRoutesCommandOutput | ListServicesCommandOutput | ListTagsForResourceCommandOutput | PutResourcePolicyCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
34
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
35
|
+
/**
|
|
36
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
37
|
+
*/
|
|
38
|
+
requestHandler?: __HttpHandler;
|
|
39
|
+
/**
|
|
40
|
+
* A constructor for a class implementing the {@link __Hash} interface
|
|
41
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
sha256?: __HashConstructor;
|
|
45
|
+
/**
|
|
46
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
urlParser?: __UrlParser;
|
|
50
|
+
/**
|
|
51
|
+
* A function that can calculate the length of a request body.
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
bodyLengthChecker?: (body: any) => number | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* A function that converts a stream into an array of bytes.
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
streamCollector?: __StreamCollector;
|
|
60
|
+
/**
|
|
61
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
base64Decoder?: __Decoder;
|
|
65
|
+
/**
|
|
66
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
base64Encoder?: __Encoder;
|
|
70
|
+
/**
|
|
71
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
utf8Decoder?: __Decoder;
|
|
75
|
+
/**
|
|
76
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
utf8Encoder?: __Encoder;
|
|
80
|
+
/**
|
|
81
|
+
* The runtime environment.
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
runtime?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
87
|
+
* trait of an operation.
|
|
88
|
+
*/
|
|
89
|
+
disableHostPrefix?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
92
|
+
*/
|
|
93
|
+
maxAttempts?: number | __Provider<number>;
|
|
94
|
+
/**
|
|
95
|
+
* Specifies which retry algorithm to use.
|
|
96
|
+
*/
|
|
97
|
+
retryMode?: string | __Provider<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Optional logger for logging debug/info/warn/error.
|
|
100
|
+
*/
|
|
101
|
+
logger?: __Logger;
|
|
102
|
+
/**
|
|
103
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
104
|
+
*/
|
|
105
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* Enables FIPS compatible endpoints.
|
|
108
|
+
*/
|
|
109
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
110
|
+
/**
|
|
111
|
+
* Unique service identifier.
|
|
112
|
+
* @internal
|
|
113
|
+
*/
|
|
114
|
+
serviceId?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The AWS region to which this client will send requests
|
|
117
|
+
*/
|
|
118
|
+
region?: string | __Provider<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Default credentials provider; Not available in browser runtime.
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
124
|
+
/**
|
|
125
|
+
* Fetch related hostname, signing name or signing region with given region.
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
regionInfoProvider?: RegionInfoProvider;
|
|
129
|
+
/**
|
|
130
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
134
|
+
}
|
|
135
|
+
declare type MigrationHubRefactorSpacesClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
136
|
+
/**
|
|
137
|
+
* The configuration interface of MigrationHubRefactorSpacesClient class constructor that set the region, credentials and other options.
|
|
138
|
+
*/
|
|
139
|
+
export interface MigrationHubRefactorSpacesClientConfig extends MigrationHubRefactorSpacesClientConfigType {
|
|
140
|
+
}
|
|
141
|
+
declare type MigrationHubRefactorSpacesClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
142
|
+
/**
|
|
143
|
+
* The resolved configuration interface of MigrationHubRefactorSpacesClient class. This is resolved and normalized from the {@link MigrationHubRefactorSpacesClientConfig | constructor configuration interface}.
|
|
144
|
+
*/
|
|
145
|
+
export interface MigrationHubRefactorSpacesClientResolvedConfig extends MigrationHubRefactorSpacesClientResolvedConfigType {
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* <fullname>Amazon Web Services Migration Hub Refactor Spaces</fullname>
|
|
149
|
+
*
|
|
150
|
+
* <p>This API reference provides descriptions, syntax, and other details about each of the
|
|
151
|
+
* actions and data types for Amazon Web Services Migration Hub Refactor Spaces (Refactor Spaces). The topic for each action shows the API
|
|
152
|
+
* request parameters and the response. Alternatively, you can use one of the Amazon Web Services SDKs to
|
|
153
|
+
* access an API that is tailored to the programming language or platform that you're using. For
|
|
154
|
+
* more information, see <a href="http://aws.amazon.com/tools/#SDKs">Amazon Web Services SDKs</a>.</p>
|
|
155
|
+
*/
|
|
156
|
+
export declare class MigrationHubRefactorSpacesClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, MigrationHubRefactorSpacesClientResolvedConfig> {
|
|
157
|
+
/**
|
|
158
|
+
* The resolved configuration of MigrationHubRefactorSpacesClient class. This is resolved and normalized from the {@link MigrationHubRefactorSpacesClientConfig | constructor configuration interface}.
|
|
159
|
+
*/
|
|
160
|
+
readonly config: MigrationHubRefactorSpacesClientResolvedConfig;
|
|
161
|
+
constructor(configuration: MigrationHubRefactorSpacesClientConfig);
|
|
162
|
+
/**
|
|
163
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
164
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
165
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
166
|
+
*/
|
|
167
|
+
destroy(): void;
|
|
168
|
+
}
|
|
169
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { MigrationHubRefactorSpacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubRefactorSpacesClient";
|
|
4
|
+
import { CreateApplicationRequest, CreateApplicationResponse } from "../models/models_0";
|
|
5
|
+
export interface CreateApplicationCommandInput extends CreateApplicationRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateApplicationCommandOutput extends CreateApplicationResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Creates an Amazon Web Services Migration Hub Refactor Spaces application. The account that owns the environment also owns the
|
|
11
|
+
* applications created inside the environment, regardless of the account that creates the
|
|
12
|
+
* application. Refactor Spaces provisions the Amazon API Gateway and Network Load Balancer for
|
|
13
|
+
* the application proxy inside your account.</p>
|
|
14
|
+
* @example
|
|
15
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
+
* ```javascript
|
|
17
|
+
* import { MigrationHubRefactorSpacesClient, CreateApplicationCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import
|
|
18
|
+
* // const { MigrationHubRefactorSpacesClient, CreateApplicationCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import
|
|
19
|
+
* const client = new MigrationHubRefactorSpacesClient(config);
|
|
20
|
+
* const command = new CreateApplicationCommand(input);
|
|
21
|
+
* const response = await client.send(command);
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @see {@link CreateApplicationCommandInput} for command's `input` shape.
|
|
25
|
+
* @see {@link CreateApplicationCommandOutput} for command's `response` shape.
|
|
26
|
+
* @see {@link MigrationHubRefactorSpacesClientResolvedConfig | config} for MigrationHubRefactorSpacesClient's `config` shape.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class CreateApplicationCommand extends $Command<CreateApplicationCommandInput, CreateApplicationCommandOutput, MigrationHubRefactorSpacesClientResolvedConfig> {
|
|
30
|
+
readonly input: CreateApplicationCommandInput;
|
|
31
|
+
constructor(input: CreateApplicationCommandInput);
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubRefactorSpacesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateApplicationCommandInput, CreateApplicationCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { MigrationHubRefactorSpacesClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MigrationHubRefactorSpacesClient";
|
|
4
|
+
import { CreateEnvironmentRequest, CreateEnvironmentResponse } from "../models/models_0";
|
|
5
|
+
export interface CreateEnvironmentCommandInput extends CreateEnvironmentRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateEnvironmentCommandOutput extends CreateEnvironmentResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Creates an Amazon Web Services Migration Hub Refactor Spaces environment. The caller owns the environment resource, and they
|
|
11
|
+
* are referred to as the <i>environment owner</i>. The environment owner has
|
|
12
|
+
* cross-account visibility and control of Refactor Spaces resources that are added to the environment
|
|
13
|
+
* by other accounts that the environment is shared with. When creating an environment, Refactor Spaces
|
|
14
|
+
* provisions a transit gateway in your account.</p>
|
|
15
|
+
* @example
|
|
16
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
+
* ```javascript
|
|
18
|
+
* import { MigrationHubRefactorSpacesClient, CreateEnvironmentCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import
|
|
19
|
+
* // const { MigrationHubRefactorSpacesClient, CreateEnvironmentCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import
|
|
20
|
+
* const client = new MigrationHubRefactorSpacesClient(config);
|
|
21
|
+
* const command = new CreateEnvironmentCommand(input);
|
|
22
|
+
* const response = await client.send(command);
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @see {@link CreateEnvironmentCommandInput} for command's `input` shape.
|
|
26
|
+
* @see {@link CreateEnvironmentCommandOutput} for command's `response` shape.
|
|
27
|
+
* @see {@link MigrationHubRefactorSpacesClientResolvedConfig | config} for MigrationHubRefactorSpacesClient's `config` shape.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class CreateEnvironmentCommand extends $Command<CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput, MigrationHubRefactorSpacesClientResolvedConfig> {
|
|
31
|
+
readonly input: CreateEnvironmentCommandInput;
|
|
32
|
+
constructor(input: CreateEnvironmentCommandInput);
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubRefactorSpacesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateEnvironmentCommandInput, CreateEnvironmentCommandOutput>;
|
|
37
|
+
private serialize;
|
|
38
|
+
private deserialize;
|
|
39
|
+
}
|