@aws-sdk/client-migrationhub-config 3.35.0 → 3.38.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 +47 -0
- package/dist-cjs/MigrationHubConfig.js +0 -29
- package/dist-cjs/MigrationHubConfigClient.js +0 -34
- package/dist-cjs/commands/CreateHomeRegionControlCommand.js +0 -25
- package/dist-cjs/commands/DescribeHomeRegionControlsCommand.js +0 -26
- package/dist-cjs/commands/GetHomeRegionCommand.js +0 -29
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -8
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -43
- package/dist-cjs/pagination/DescribeHomeRegionControlsPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/MigrationHubConfig.js +0 -1
- package/dist-es/MigrationHubConfigClient.js +0 -1
- package/dist-es/commands/CreateHomeRegionControlCommand.js +0 -1
- package/dist-es/commands/DescribeHomeRegionControlsCommand.js +0 -1
- package/dist-es/commands/GetHomeRegionCommand.js +0 -1
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -8
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeHomeRegionControlsPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/index.d.ts +4 -7
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/MigrationHubConfig.d.ts +4 -42
- package/dist-types/ts3.4/MigrationHubConfigClient.d.ts +24 -114
- package/dist-types/ts3.4/commands/CreateHomeRegionControlCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeHomeRegionControlsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetHomeRegionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/index.d.ts +4 -7
- package/dist-types/ts3.4/models/models_0.d.ts +41 -147
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/MigrationHubConfig.js.map +0 -1
- package/dist-cjs/MigrationHubConfigClient.js.map +0 -1
- package/dist-cjs/commands/CreateHomeRegionControlCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeHomeRegionControlsCommand.js.map +0 -1
- package/dist-cjs/commands/GetHomeRegionCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeHomeRegionControlsPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/MigrationHubConfig.js.map +0 -1
- package/dist-es/MigrationHubConfigClient.js.map +0 -1
- package/dist-es/commands/CreateHomeRegionControlCommand.js.map +0 -1
- package/dist-es/commands/DescribeHomeRegionControlsCommand.js.map +0 -1
- package/dist-es/commands/GetHomeRegionCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeHomeRegionControlsPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/MigrationHubConfig.ts +0 -149
- package/src/MigrationHubConfigClient.ts +0 -276
- package/src/commands/CreateHomeRegionControlCommand.ts +0 -99
- package/src/commands/DescribeHomeRegionControlsCommand.ts +0 -103
- package/src/commands/GetHomeRegionCommand.ts +0 -103
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -8
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -325
- package/src/pagination/DescribeHomeRegionControlsPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/protocols/Aws_json1_1.ts +0 -663
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/dist-es/endpoints.js
CHANGED
|
@@ -33,7 +33,7 @@ var partitionHash = {
|
|
|
33
33
|
hostname: "migrationhub-config.{region}.amazonaws.com.cn",
|
|
34
34
|
},
|
|
35
35
|
"aws-iso": {
|
|
36
|
-
regions: ["us-iso-east-1"],
|
|
36
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
37
37
|
hostname: "migrationhub-config.{region}.c2s.ic.gov",
|
|
38
38
|
},
|
|
39
39
|
"aws-iso-b": {
|
|
@@ -50,4 +50,3 @@ export var defaultRegionInfoProvider = function (region, options) { return __awa
|
|
|
50
50
|
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "mgh", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
51
51
|
});
|
|
52
52
|
}); };
|
|
53
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-es/index.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
export * from "./MigrationHubConfigClient";
|
|
2
1
|
export * from "./MigrationHubConfig";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./pagination/Interfaces";
|
|
8
|
-
export * from "./models/index";
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
2
|
+
export * from "./MigrationHubConfigClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|
package/dist-es/models/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
2
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
4
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
4
5
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
@@ -7,11 +8,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
|
7
8
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
8
9
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
9
10
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
10
|
-
import packageInfo from "../package.json";
|
|
11
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
12
|
export var getRuntimeConfig = function (config) {
|
|
13
13
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
14
14
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
15
|
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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
+
import packageInfo from "../package.json";
|
|
2
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
@@ -6,17 +7,15 @@ import { Hash } from "@aws-sdk/hash-node";
|
|
|
6
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
9
|
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
|
-
import packageInfo from "../package.json";
|
|
15
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
16
|
export var getRuntimeConfig = function (config) {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
18
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -6,4 +6,3 @@ export var getRuntimeConfig = function (config) {
|
|
|
6
6
|
var browserDefaults = getBrowserRuntimeConfig(config);
|
|
7
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
8
|
};
|
|
9
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
export * from "./MigrationHubConfigClient";
|
|
2
1
|
export * from "./MigrationHubConfig";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./pagination/Interfaces";
|
|
8
|
-
export * from "./models/index";
|
|
2
|
+
export * from "./MigrationHubConfigClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|
|
@@ -3,55 +3,17 @@ import { CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutp
|
|
|
3
3
|
import { DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput } from "./commands/DescribeHomeRegionControlsCommand";
|
|
4
4
|
import { GetHomeRegionCommandInput, GetHomeRegionCommandOutput } from "./commands/GetHomeRegionCommand";
|
|
5
5
|
import { MigrationHubConfigClient } from "./MigrationHubConfigClient";
|
|
6
|
-
|
|
7
|
-
* <p>The AWS Migration Hub home region APIs are available specifically for working with your
|
|
8
|
-
* Migration Hub home region. You can use these APIs to determine a home region, as well as to
|
|
9
|
-
* create and work with controls that describe the home region.</p>
|
|
10
|
-
*
|
|
11
|
-
* <ul>
|
|
12
|
-
* <li>
|
|
13
|
-
* <p>You must make API calls for write actions (create, notify, associate, disassociate,
|
|
14
|
-
* import, or put) while in your home region, or a <code>HomeRegionNotSetException</code>
|
|
15
|
-
* error is returned.</p>
|
|
16
|
-
* </li>
|
|
17
|
-
* <li>
|
|
18
|
-
* <p>API calls for read actions (list, describe, stop, and delete) are permitted outside of
|
|
19
|
-
* your home region.</p>
|
|
20
|
-
* </li>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>If you call a write API outside the home region, an <code>InvalidInputException</code>
|
|
23
|
-
* is returned.</p>
|
|
24
|
-
* </li>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>You can call <code>GetHomeRegion</code> action to obtain the account's Migration Hub
|
|
27
|
-
* home region.</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* </ul>
|
|
30
|
-
*
|
|
31
|
-
* <p>For specific API usage, see the sections that follow in this AWS Migration Hub Home Region
|
|
32
|
-
* API reference. </p>
|
|
33
|
-
*/
|
|
6
|
+
|
|
34
7
|
export declare class MigrationHubConfig extends MigrationHubConfigClient {
|
|
35
|
-
|
|
36
|
-
* <p>This API sets up the home region for the calling account only.</p>
|
|
37
|
-
*/
|
|
8
|
+
|
|
38
9
|
createHomeRegionControl(args: CreateHomeRegionControlCommandInput, options?: __HttpHandlerOptions): Promise<CreateHomeRegionControlCommandOutput>;
|
|
39
10
|
createHomeRegionControl(args: CreateHomeRegionControlCommandInput, cb: (err: any, data?: CreateHomeRegionControlCommandOutput) => void): void;
|
|
40
11
|
createHomeRegionControl(args: CreateHomeRegionControlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateHomeRegionControlCommandOutput) => void): void;
|
|
41
|
-
|
|
42
|
-
* <p>This API permits filtering on the <code>ControlId</code> and <code>HomeRegion</code>
|
|
43
|
-
* fields.</p>
|
|
44
|
-
*/
|
|
12
|
+
|
|
45
13
|
describeHomeRegionControls(args: DescribeHomeRegionControlsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeHomeRegionControlsCommandOutput>;
|
|
46
14
|
describeHomeRegionControls(args: DescribeHomeRegionControlsCommandInput, cb: (err: any, data?: DescribeHomeRegionControlsCommandOutput) => void): void;
|
|
47
15
|
describeHomeRegionControls(args: DescribeHomeRegionControlsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeHomeRegionControlsCommandOutput) => void): void;
|
|
48
|
-
|
|
49
|
-
* <p>Returns the calling account’s home region, if configured. This API is used by other AWS
|
|
50
|
-
* services to determine the regional endpoint for calling AWS Application Discovery Service and
|
|
51
|
-
* Migration Hub. You must call <code>GetHomeRegion</code> at least once before you call any
|
|
52
|
-
* other AWS Application Discovery Service and AWS Migration Hub APIs, to obtain the account's
|
|
53
|
-
* Migration Hub home region.</p>
|
|
54
|
-
*/
|
|
16
|
+
|
|
55
17
|
getHomeRegion(args: GetHomeRegionCommandInput, options?: __HttpHandlerOptions): Promise<GetHomeRegionCommandOutput>;
|
|
56
18
|
getHomeRegion(args: GetHomeRegionCommandInput, cb: (err: any, data?: GetHomeRegionCommandOutput) => void): void;
|
|
57
19
|
getHomeRegion(args: GetHomeRegionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetHomeRegionCommandOutput) => void): void;
|
|
@@ -12,149 +12,59 @@ import { GetHomeRegionCommandInput, GetHomeRegionCommandOutput } from "./command
|
|
|
12
12
|
export declare type ServiceInputTypes = CreateHomeRegionControlCommandInput | DescribeHomeRegionControlsCommandInput | GetHomeRegionCommandInput;
|
|
13
13
|
export declare type ServiceOutputTypes = CreateHomeRegionControlCommandOutput | DescribeHomeRegionControlsCommandOutput | GetHomeRegionCommandOutput;
|
|
14
14
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
15
|
-
|
|
16
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
17
|
-
*/
|
|
15
|
+
|
|
18
16
|
requestHandler?: __HttpHandler;
|
|
19
|
-
|
|
20
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
21
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
17
|
+
|
|
24
18
|
sha256?: __HashConstructor;
|
|
25
|
-
|
|
26
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
19
|
+
|
|
29
20
|
urlParser?: __UrlParser;
|
|
30
|
-
|
|
31
|
-
* A function that can calculate the length of a request body.
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
21
|
+
|
|
34
22
|
bodyLengthChecker?: (body: any) => number | undefined;
|
|
35
|
-
|
|
36
|
-
* A function that converts a stream into an array of bytes.
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
23
|
+
|
|
39
24
|
streamCollector?: __StreamCollector;
|
|
40
|
-
|
|
41
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
25
|
+
|
|
44
26
|
base64Decoder?: __Decoder;
|
|
45
|
-
|
|
46
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
27
|
+
|
|
49
28
|
base64Encoder?: __Encoder;
|
|
50
|
-
|
|
51
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
29
|
+
|
|
54
30
|
utf8Decoder?: __Decoder;
|
|
55
|
-
|
|
56
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
31
|
+
|
|
59
32
|
utf8Encoder?: __Encoder;
|
|
60
|
-
|
|
61
|
-
* The runtime environment.
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
33
|
+
|
|
64
34
|
runtime?: string;
|
|
65
|
-
|
|
66
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
67
|
-
* trait of an operation.
|
|
68
|
-
*/
|
|
35
|
+
|
|
69
36
|
disableHostPrefix?: boolean;
|
|
70
|
-
|
|
71
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
72
|
-
*/
|
|
37
|
+
|
|
73
38
|
maxAttempts?: number | __Provider<number>;
|
|
74
|
-
|
|
75
|
-
* Specifies which retry algorithm to use.
|
|
76
|
-
*/
|
|
39
|
+
|
|
77
40
|
retryMode?: string | __Provider<string>;
|
|
78
|
-
|
|
79
|
-
* Optional logger for logging debug/info/warn/error.
|
|
80
|
-
*/
|
|
41
|
+
|
|
81
42
|
logger?: __Logger;
|
|
82
|
-
|
|
83
|
-
* Unique service identifier.
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
43
|
+
|
|
86
44
|
serviceId?: string;
|
|
87
|
-
|
|
88
|
-
* The AWS region to which this client will send requests
|
|
89
|
-
*/
|
|
45
|
+
|
|
90
46
|
region?: string | __Provider<string>;
|
|
91
|
-
|
|
92
|
-
* Default credentials provider; Not available in browser runtime.
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
47
|
+
|
|
95
48
|
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
96
|
-
|
|
97
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
98
|
-
* @internal
|
|
99
|
-
*/
|
|
49
|
+
|
|
100
50
|
regionInfoProvider?: RegionInfoProvider;
|
|
101
|
-
|
|
102
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
103
|
-
* @internal
|
|
104
|
-
*/
|
|
51
|
+
|
|
105
52
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
106
53
|
}
|
|
107
54
|
declare type MigrationHubConfigClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
108
|
-
|
|
109
|
-
* The configuration interface of MigrationHubConfigClient class constructor that set the region, credentials and other options.
|
|
110
|
-
*/
|
|
55
|
+
|
|
111
56
|
export interface MigrationHubConfigClientConfig extends MigrationHubConfigClientConfigType {
|
|
112
57
|
}
|
|
113
58
|
declare type MigrationHubConfigClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
|
|
114
|
-
|
|
115
|
-
* The resolved configuration interface of MigrationHubConfigClient class. This is resolved and normalized from the {@link MigrationHubConfigClientConfig | constructor configuration interface}.
|
|
116
|
-
*/
|
|
59
|
+
|
|
117
60
|
export interface MigrationHubConfigClientResolvedConfig extends MigrationHubConfigClientResolvedConfigType {
|
|
118
61
|
}
|
|
119
|
-
|
|
120
|
-
* <p>The AWS Migration Hub home region APIs are available specifically for working with your
|
|
121
|
-
* Migration Hub home region. You can use these APIs to determine a home region, as well as to
|
|
122
|
-
* create and work with controls that describe the home region.</p>
|
|
123
|
-
*
|
|
124
|
-
* <ul>
|
|
125
|
-
* <li>
|
|
126
|
-
* <p>You must make API calls for write actions (create, notify, associate, disassociate,
|
|
127
|
-
* import, or put) while in your home region, or a <code>HomeRegionNotSetException</code>
|
|
128
|
-
* error is returned.</p>
|
|
129
|
-
* </li>
|
|
130
|
-
* <li>
|
|
131
|
-
* <p>API calls for read actions (list, describe, stop, and delete) are permitted outside of
|
|
132
|
-
* your home region.</p>
|
|
133
|
-
* </li>
|
|
134
|
-
* <li>
|
|
135
|
-
* <p>If you call a write API outside the home region, an <code>InvalidInputException</code>
|
|
136
|
-
* is returned.</p>
|
|
137
|
-
* </li>
|
|
138
|
-
* <li>
|
|
139
|
-
* <p>You can call <code>GetHomeRegion</code> action to obtain the account's Migration Hub
|
|
140
|
-
* home region.</p>
|
|
141
|
-
* </li>
|
|
142
|
-
* </ul>
|
|
143
|
-
*
|
|
144
|
-
* <p>For specific API usage, see the sections that follow in this AWS Migration Hub Home Region
|
|
145
|
-
* API reference. </p>
|
|
146
|
-
*/
|
|
62
|
+
|
|
147
63
|
export declare class MigrationHubConfigClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, MigrationHubConfigClientResolvedConfig> {
|
|
148
|
-
|
|
149
|
-
* The resolved configuration of MigrationHubConfigClient class. This is resolved and normalized from the {@link MigrationHubConfigClientConfig | constructor configuration interface}.
|
|
150
|
-
*/
|
|
64
|
+
|
|
151
65
|
readonly config: MigrationHubConfigClientResolvedConfig;
|
|
152
66
|
constructor(configuration: MigrationHubConfigClientConfig);
|
|
153
|
-
|
|
154
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
155
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
156
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
157
|
-
*/
|
|
67
|
+
|
|
158
68
|
destroy(): void;
|
|
159
69
|
}
|
|
160
70
|
export {};
|
|
@@ -6,29 +6,11 @@ export interface CreateHomeRegionControlCommandInput extends CreateHomeRegionCon
|
|
|
6
6
|
}
|
|
7
7
|
export interface CreateHomeRegionControlCommandOutput extends CreateHomeRegionControlResult, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>This API sets up the home region for the calling account only.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { MigrationHubConfigClient, CreateHomeRegionControlCommand } from "@aws-sdk/client-migrationhub-config"; // ES Modules import
|
|
15
|
-
* // const { MigrationHubConfigClient, CreateHomeRegionControlCommand } = require("@aws-sdk/client-migrationhub-config"); // CommonJS import
|
|
16
|
-
* const client = new MigrationHubConfigClient(config);
|
|
17
|
-
* const command = new CreateHomeRegionControlCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link CreateHomeRegionControlCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link CreateHomeRegionControlCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link MigrationHubConfigClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
9
|
+
|
|
26
10
|
export declare class CreateHomeRegionControlCommand extends $Command<CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput, MigrationHubConfigClientResolvedConfig> {
|
|
27
11
|
readonly input: CreateHomeRegionControlCommandInput;
|
|
28
12
|
constructor(input: CreateHomeRegionControlCommandInput);
|
|
29
|
-
|
|
30
|
-
* @internal
|
|
31
|
-
*/
|
|
13
|
+
|
|
32
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubConfigClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput>;
|
|
33
15
|
private serialize;
|
|
34
16
|
private deserialize;
|
|
@@ -6,30 +6,11 @@ export interface DescribeHomeRegionControlsCommandInput extends DescribeHomeRegi
|
|
|
6
6
|
}
|
|
7
7
|
export interface DescribeHomeRegionControlsCommandOutput extends DescribeHomeRegionControlsResult, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>This API permits filtering on the <code>ControlId</code> and <code>HomeRegion</code>
|
|
11
|
-
* fields.</p>
|
|
12
|
-
* @example
|
|
13
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
-
* ```javascript
|
|
15
|
-
* import { MigrationHubConfigClient, DescribeHomeRegionControlsCommand } from "@aws-sdk/client-migrationhub-config"; // ES Modules import
|
|
16
|
-
* // const { MigrationHubConfigClient, DescribeHomeRegionControlsCommand } = require("@aws-sdk/client-migrationhub-config"); // CommonJS import
|
|
17
|
-
* const client = new MigrationHubConfigClient(config);
|
|
18
|
-
* const command = new DescribeHomeRegionControlsCommand(input);
|
|
19
|
-
* const response = await client.send(command);
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @see {@link DescribeHomeRegionControlsCommandInput} for command's `input` shape.
|
|
23
|
-
* @see {@link DescribeHomeRegionControlsCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link MigrationHubConfigClientResolvedConfig | config} for command's `input` shape.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
9
|
+
|
|
27
10
|
export declare class DescribeHomeRegionControlsCommand extends $Command<DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput, MigrationHubConfigClientResolvedConfig> {
|
|
28
11
|
readonly input: DescribeHomeRegionControlsCommandInput;
|
|
29
12
|
constructor(input: DescribeHomeRegionControlsCommandInput);
|
|
30
|
-
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
13
|
+
|
|
33
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubConfigClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput>;
|
|
34
15
|
private serialize;
|
|
35
16
|
private deserialize;
|
|
@@ -6,33 +6,11 @@ export interface GetHomeRegionCommandInput extends GetHomeRegionRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetHomeRegionCommandOutput extends GetHomeRegionResult, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Returns the calling account’s home region, if configured. This API is used by other AWS
|
|
11
|
-
* services to determine the regional endpoint for calling AWS Application Discovery Service and
|
|
12
|
-
* Migration Hub. You must call <code>GetHomeRegion</code> at least once before you call any
|
|
13
|
-
* other AWS Application Discovery Service and AWS Migration Hub APIs, to obtain the account's
|
|
14
|
-
* Migration Hub home region.</p>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { MigrationHubConfigClient, GetHomeRegionCommand } from "@aws-sdk/client-migrationhub-config"; // ES Modules import
|
|
19
|
-
* // const { MigrationHubConfigClient, GetHomeRegionCommand } = require("@aws-sdk/client-migrationhub-config"); // CommonJS import
|
|
20
|
-
* const client = new MigrationHubConfigClient(config);
|
|
21
|
-
* const command = new GetHomeRegionCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link GetHomeRegionCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link GetHomeRegionCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link MigrationHubConfigClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
9
|
+
|
|
30
10
|
export declare class GetHomeRegionCommand extends $Command<GetHomeRegionCommandInput, GetHomeRegionCommandOutput, MigrationHubConfigClientResolvedConfig> {
|
|
31
11
|
readonly input: GetHomeRegionCommandInput;
|
|
32
12
|
constructor(input: GetHomeRegionCommandInput);
|
|
33
|
-
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
13
|
+
|
|
36
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MigrationHubConfigClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetHomeRegionCommandInput, GetHomeRegionCommandOutput>;
|
|
37
15
|
private serialize;
|
|
38
16
|
private deserialize;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
export * from "./MigrationHubConfigClient";
|
|
2
1
|
export * from "./MigrationHubConfig";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./pagination/Interfaces";
|
|
8
|
-
export * from "./models/index";
|
|
2
|
+
export * from "./MigrationHubConfigClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
5
|
+
export * from "./pagination";
|