@aws-sdk/client-migrationhub-config 3.34.0 → 3.37.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 → dist-cjs}/MigrationHubConfig.js +1 -30
- package/dist-cjs/MigrationHubConfigClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/CreateHomeRegionControlCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeHomeRegionControlsCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/GetHomeRegionCommand.js +2 -31
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -43
- package/{dist/cjs → dist-cjs}/pagination/DescribeHomeRegionControlsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/MigrationHubConfig.js +1 -2
- package/{dist/es → dist-es}/MigrationHubConfigClient.js +1 -2
- package/{dist/es → dist-es}/commands/CreateHomeRegionControlCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeHomeRegionControlsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetHomeRegionCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/{dist/es → dist-es}/pagination/DescribeHomeRegionControlsPaginator.js +1 -2
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/MigrationHubConfig.d.ts +2 -2
- package/{dist/types → dist-types}/MigrationHubConfigClient.d.ts +4 -4
- package/{dist/types → dist-types}/commands/CreateHomeRegionControlCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeHomeRegionControlsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetHomeRegionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeHomeRegionControlsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/MigrationHubConfig.d.ts +20 -0
- package/dist-types/ts3.4/MigrationHubConfigClient.d.ts +70 -0
- package/{dist/types → dist-types}/ts3.4/commands/CreateHomeRegionControlCommand.d.ts +4 -22
- package/{dist/types → dist-types}/ts3.4/commands/DescribeHomeRegionControlsCommand.d.ts +4 -23
- package/dist-types/ts3.4/commands/GetHomeRegionCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +152 -0
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeHomeRegionControlsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/MigrationHubConfig.ts +0 -148
- package/MigrationHubConfigClient.ts +0 -275
- package/commands/CreateHomeRegionControlCommand.ts +0 -98
- package/commands/DescribeHomeRegionControlsCommand.ts +0 -102
- package/commands/GetHomeRegionCommand.ts +0 -102
- package/dist/cjs/MigrationHubConfig.js.map +0 -1
- package/dist/cjs/MigrationHubConfigClient.js +0 -69
- 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/package.json +0 -91
- 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 +0 -9
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/DescribeHomeRegionControlsPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- 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/dist/types/ts3.4/MigrationHubConfig.d.ts +0 -58
- package/dist/types/ts3.4/MigrationHubConfigClient.d.ts +0 -160
- package/dist/types/ts3.4/commands/GetHomeRegionCommand.d.ts +0 -39
- package/dist/types/ts3.4/models/models_0.d.ts +0 -258
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -325
- package/pagination/DescribeHomeRegionControlsPaginator.ts +0 -58
- package/pagination/Interfaces.ts +0 -7
- package/protocols/Aws_json1_1.ts +0 -662
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
1
3
|
import { CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput } from "../commands/CreateHomeRegionControlCommand";
|
|
2
4
|
import { DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput } from "../commands/DescribeHomeRegionControlsCommand";
|
|
3
5
|
import { GetHomeRegionCommandInput, GetHomeRegionCommandOutput } from "../commands/GetHomeRegionCommand";
|
|
4
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
6
6
|
export declare const serializeAws_json1_1CreateHomeRegionControlCommand: (input: CreateHomeRegionControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
7
7
|
export declare const serializeAws_json1_1DescribeHomeRegionControlsCommand: (input: DescribeHomeRegionControlsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
8
8
|
export declare const serializeAws_json1_1GetHomeRegionCommand: (input: GetHomeRegionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { MigrationHubConfigClientConfig } from "./MigrationHubConfigClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: MigrationHubConfigClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { MigrationHubConfigClientConfig } from "./MigrationHubConfigClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: MigrationHubConfigClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
7
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
8
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/client-sts/dist
|
|
9
|
+
credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
12
10
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
11
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
12
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
2
|
import { MigrationHubConfigClientConfig } from "./MigrationHubConfigClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: MigrationHubConfigClientConfig) => {
|
|
7
5
|
apiVersion: string;
|
|
8
6
|
disableHostPrefix: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-migrationhub-config",
|
|
3
3
|
"description": "AWS SDK for JavaScript Migrationhub Config Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.37.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -11,54 +11,48 @@
|
|
|
11
11
|
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
12
|
"clean:dist": "rimraf ./dist",
|
|
13
13
|
"clean:docs": "rimraf ./docs",
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist
|
|
14
|
+
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
15
|
"test": "exit 0"
|
|
16
16
|
},
|
|
17
|
-
"main": "./dist
|
|
18
|
-
"types": "./dist
|
|
19
|
-
"module": "./dist
|
|
20
|
-
"browser": {
|
|
21
|
-
"./runtimeConfig": "./runtimeConfig.browser"
|
|
22
|
-
},
|
|
23
|
-
"react-native": {
|
|
24
|
-
"./runtimeConfig": "./runtimeConfig.native"
|
|
25
|
-
},
|
|
17
|
+
"main": "./dist-cjs/index.js",
|
|
18
|
+
"types": "./dist-types/index.d.ts",
|
|
19
|
+
"module": "./dist-es/index.js",
|
|
26
20
|
"sideEffects": false,
|
|
27
21
|
"dependencies": {
|
|
28
22
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
23
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.37.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.37.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.37.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.37.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.37.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.37.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.37.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.37.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.37.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.37.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.37.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.37.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.37.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.37.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.37.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.37.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.37.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.37.0",
|
|
42
|
+
"@aws-sdk/types": "3.37.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.37.0",
|
|
44
|
+
"@aws-sdk/util-base64-browser": "3.37.0",
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.37.0",
|
|
46
|
+
"@aws-sdk/util-body-length-browser": "3.37.0",
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.37.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.37.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.37.0",
|
|
50
|
+
"@aws-sdk/util-utf8-browser": "3.37.0",
|
|
51
|
+
"@aws-sdk/util-utf8-node": "3.37.0",
|
|
58
52
|
"tslib": "^2.3.0"
|
|
59
53
|
},
|
|
60
54
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/client-documentation-generator": "3.37.0",
|
|
62
56
|
"@types/node": "^12.7.5",
|
|
63
57
|
"downlevel-dts": "0.7.0",
|
|
64
58
|
"jest": "^26.1.0",
|
|
@@ -72,16 +66,25 @@
|
|
|
72
66
|
},
|
|
73
67
|
"typesVersions": {
|
|
74
68
|
"<4.0": {
|
|
75
|
-
"dist
|
|
76
|
-
"dist
|
|
69
|
+
"dist-types/*": [
|
|
70
|
+
"dist-types/ts3.4/*"
|
|
77
71
|
]
|
|
78
72
|
}
|
|
79
73
|
},
|
|
74
|
+
"files": [
|
|
75
|
+
"dist-*"
|
|
76
|
+
],
|
|
80
77
|
"author": {
|
|
81
78
|
"name": "AWS SDK for JavaScript Team",
|
|
82
79
|
"url": "https://aws.amazon.com/javascript/"
|
|
83
80
|
},
|
|
84
81
|
"license": "Apache-2.0",
|
|
82
|
+
"browser": {
|
|
83
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
84
|
+
},
|
|
85
|
+
"react-native": {
|
|
86
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
87
|
+
},
|
|
85
88
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-migrationhub-config",
|
|
86
89
|
"repository": {
|
|
87
90
|
"type": "git",
|
package/MigrationHubConfig.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { MigrationHubConfigClient } from "./MigrationHubConfigClient";
|
|
2
|
-
import {
|
|
3
|
-
CreateHomeRegionControlCommand,
|
|
4
|
-
CreateHomeRegionControlCommandInput,
|
|
5
|
-
CreateHomeRegionControlCommandOutput,
|
|
6
|
-
} from "./commands/CreateHomeRegionControlCommand";
|
|
7
|
-
import {
|
|
8
|
-
DescribeHomeRegionControlsCommand,
|
|
9
|
-
DescribeHomeRegionControlsCommandInput,
|
|
10
|
-
DescribeHomeRegionControlsCommandOutput,
|
|
11
|
-
} from "./commands/DescribeHomeRegionControlsCommand";
|
|
12
|
-
import {
|
|
13
|
-
GetHomeRegionCommand,
|
|
14
|
-
GetHomeRegionCommandInput,
|
|
15
|
-
GetHomeRegionCommandOutput,
|
|
16
|
-
} from "./commands/GetHomeRegionCommand";
|
|
17
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* <p>The AWS Migration Hub home region APIs are available specifically for working with your
|
|
21
|
-
* Migration Hub home region. You can use these APIs to determine a home region, as well as to
|
|
22
|
-
* create and work with controls that describe the home region.</p>
|
|
23
|
-
*
|
|
24
|
-
* <ul>
|
|
25
|
-
* <li>
|
|
26
|
-
* <p>You must make API calls for write actions (create, notify, associate, disassociate,
|
|
27
|
-
* import, or put) while in your home region, or a <code>HomeRegionNotSetException</code>
|
|
28
|
-
* error is returned.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>API calls for read actions (list, describe, stop, and delete) are permitted outside of
|
|
32
|
-
* your home region.</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>If you call a write API outside the home region, an <code>InvalidInputException</code>
|
|
36
|
-
* is returned.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>You can call <code>GetHomeRegion</code> action to obtain the account's Migration Hub
|
|
40
|
-
* home region.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* </ul>
|
|
43
|
-
*
|
|
44
|
-
* <p>For specific API usage, see the sections that follow in this AWS Migration Hub Home Region
|
|
45
|
-
* API reference. </p>
|
|
46
|
-
*/
|
|
47
|
-
export class MigrationHubConfig extends MigrationHubConfigClient {
|
|
48
|
-
/**
|
|
49
|
-
* <p>This API sets up the home region for the calling account only.</p>
|
|
50
|
-
*/
|
|
51
|
-
public createHomeRegionControl(
|
|
52
|
-
args: CreateHomeRegionControlCommandInput,
|
|
53
|
-
options?: __HttpHandlerOptions
|
|
54
|
-
): Promise<CreateHomeRegionControlCommandOutput>;
|
|
55
|
-
public createHomeRegionControl(
|
|
56
|
-
args: CreateHomeRegionControlCommandInput,
|
|
57
|
-
cb: (err: any, data?: CreateHomeRegionControlCommandOutput) => void
|
|
58
|
-
): void;
|
|
59
|
-
public createHomeRegionControl(
|
|
60
|
-
args: CreateHomeRegionControlCommandInput,
|
|
61
|
-
options: __HttpHandlerOptions,
|
|
62
|
-
cb: (err: any, data?: CreateHomeRegionControlCommandOutput) => void
|
|
63
|
-
): void;
|
|
64
|
-
public createHomeRegionControl(
|
|
65
|
-
args: CreateHomeRegionControlCommandInput,
|
|
66
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateHomeRegionControlCommandOutput) => void),
|
|
67
|
-
cb?: (err: any, data?: CreateHomeRegionControlCommandOutput) => void
|
|
68
|
-
): Promise<CreateHomeRegionControlCommandOutput> | void {
|
|
69
|
-
const command = new CreateHomeRegionControlCommand(args);
|
|
70
|
-
if (typeof optionsOrCb === "function") {
|
|
71
|
-
this.send(command, optionsOrCb);
|
|
72
|
-
} else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
74
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
75
|
-
} else {
|
|
76
|
-
return this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* <p>This API permits filtering on the <code>ControlId</code> and <code>HomeRegion</code>
|
|
82
|
-
* fields.</p>
|
|
83
|
-
*/
|
|
84
|
-
public describeHomeRegionControls(
|
|
85
|
-
args: DescribeHomeRegionControlsCommandInput,
|
|
86
|
-
options?: __HttpHandlerOptions
|
|
87
|
-
): Promise<DescribeHomeRegionControlsCommandOutput>;
|
|
88
|
-
public describeHomeRegionControls(
|
|
89
|
-
args: DescribeHomeRegionControlsCommandInput,
|
|
90
|
-
cb: (err: any, data?: DescribeHomeRegionControlsCommandOutput) => void
|
|
91
|
-
): void;
|
|
92
|
-
public describeHomeRegionControls(
|
|
93
|
-
args: DescribeHomeRegionControlsCommandInput,
|
|
94
|
-
options: __HttpHandlerOptions,
|
|
95
|
-
cb: (err: any, data?: DescribeHomeRegionControlsCommandOutput) => void
|
|
96
|
-
): void;
|
|
97
|
-
public describeHomeRegionControls(
|
|
98
|
-
args: DescribeHomeRegionControlsCommandInput,
|
|
99
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeHomeRegionControlsCommandOutput) => void),
|
|
100
|
-
cb?: (err: any, data?: DescribeHomeRegionControlsCommandOutput) => void
|
|
101
|
-
): Promise<DescribeHomeRegionControlsCommandOutput> | void {
|
|
102
|
-
const command = new DescribeHomeRegionControlsCommand(args);
|
|
103
|
-
if (typeof optionsOrCb === "function") {
|
|
104
|
-
this.send(command, optionsOrCb);
|
|
105
|
-
} else if (typeof cb === "function") {
|
|
106
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
} else {
|
|
109
|
-
return this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* <p>Returns the calling account’s home region, if configured. This API is used by other AWS
|
|
115
|
-
* services to determine the regional endpoint for calling AWS Application Discovery Service and
|
|
116
|
-
* Migration Hub. You must call <code>GetHomeRegion</code> at least once before you call any
|
|
117
|
-
* other AWS Application Discovery Service and AWS Migration Hub APIs, to obtain the account's
|
|
118
|
-
* Migration Hub home region.</p>
|
|
119
|
-
*/
|
|
120
|
-
public getHomeRegion(
|
|
121
|
-
args: GetHomeRegionCommandInput,
|
|
122
|
-
options?: __HttpHandlerOptions
|
|
123
|
-
): Promise<GetHomeRegionCommandOutput>;
|
|
124
|
-
public getHomeRegion(
|
|
125
|
-
args: GetHomeRegionCommandInput,
|
|
126
|
-
cb: (err: any, data?: GetHomeRegionCommandOutput) => void
|
|
127
|
-
): void;
|
|
128
|
-
public getHomeRegion(
|
|
129
|
-
args: GetHomeRegionCommandInput,
|
|
130
|
-
options: __HttpHandlerOptions,
|
|
131
|
-
cb: (err: any, data?: GetHomeRegionCommandOutput) => void
|
|
132
|
-
): void;
|
|
133
|
-
public getHomeRegion(
|
|
134
|
-
args: GetHomeRegionCommandInput,
|
|
135
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetHomeRegionCommandOutput) => void),
|
|
136
|
-
cb?: (err: any, data?: GetHomeRegionCommandOutput) => void
|
|
137
|
-
): Promise<GetHomeRegionCommandOutput> | void {
|
|
138
|
-
const command = new GetHomeRegionCommand(args);
|
|
139
|
-
if (typeof optionsOrCb === "function") {
|
|
140
|
-
this.send(command, optionsOrCb);
|
|
141
|
-
} else if (typeof cb === "function") {
|
|
142
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
143
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
144
|
-
} else {
|
|
145
|
-
return this.send(command, optionsOrCb);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CreateHomeRegionControlCommandInput,
|
|
3
|
-
CreateHomeRegionControlCommandOutput,
|
|
4
|
-
} from "./commands/CreateHomeRegionControlCommand";
|
|
5
|
-
import {
|
|
6
|
-
DescribeHomeRegionControlsCommandInput,
|
|
7
|
-
DescribeHomeRegionControlsCommandOutput,
|
|
8
|
-
} from "./commands/DescribeHomeRegionControlsCommand";
|
|
9
|
-
import { GetHomeRegionCommandInput, GetHomeRegionCommandOutput } from "./commands/GetHomeRegionCommand";
|
|
10
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
import {
|
|
12
|
-
EndpointsInputConfig,
|
|
13
|
-
EndpointsResolvedConfig,
|
|
14
|
-
RegionInputConfig,
|
|
15
|
-
RegionResolvedConfig,
|
|
16
|
-
resolveEndpointsConfig,
|
|
17
|
-
resolveRegionConfig,
|
|
18
|
-
} from "@aws-sdk/config-resolver";
|
|
19
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
20
|
-
import {
|
|
21
|
-
HostHeaderInputConfig,
|
|
22
|
-
HostHeaderResolvedConfig,
|
|
23
|
-
getHostHeaderPlugin,
|
|
24
|
-
resolveHostHeaderConfig,
|
|
25
|
-
} from "@aws-sdk/middleware-host-header";
|
|
26
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
27
|
-
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
28
|
-
import {
|
|
29
|
-
AwsAuthInputConfig,
|
|
30
|
-
AwsAuthResolvedConfig,
|
|
31
|
-
getAwsAuthPlugin,
|
|
32
|
-
resolveAwsAuthConfig,
|
|
33
|
-
} from "@aws-sdk/middleware-signing";
|
|
34
|
-
import {
|
|
35
|
-
UserAgentInputConfig,
|
|
36
|
-
UserAgentResolvedConfig,
|
|
37
|
-
getUserAgentPlugin,
|
|
38
|
-
resolveUserAgentConfig,
|
|
39
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
40
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
41
|
-
import {
|
|
42
|
-
Client as __Client,
|
|
43
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
44
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
45
|
-
} from "@aws-sdk/smithy-client";
|
|
46
|
-
import {
|
|
47
|
-
Provider,
|
|
48
|
-
RegionInfoProvider,
|
|
49
|
-
Credentials as __Credentials,
|
|
50
|
-
Decoder as __Decoder,
|
|
51
|
-
Encoder as __Encoder,
|
|
52
|
-
Hash as __Hash,
|
|
53
|
-
HashConstructor as __HashConstructor,
|
|
54
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
55
|
-
Logger as __Logger,
|
|
56
|
-
Provider as __Provider,
|
|
57
|
-
StreamCollector as __StreamCollector,
|
|
58
|
-
UrlParser as __UrlParser,
|
|
59
|
-
UserAgent as __UserAgent,
|
|
60
|
-
} from "@aws-sdk/types";
|
|
61
|
-
|
|
62
|
-
export type ServiceInputTypes =
|
|
63
|
-
| CreateHomeRegionControlCommandInput
|
|
64
|
-
| DescribeHomeRegionControlsCommandInput
|
|
65
|
-
| GetHomeRegionCommandInput;
|
|
66
|
-
|
|
67
|
-
export type ServiceOutputTypes =
|
|
68
|
-
| CreateHomeRegionControlCommandOutput
|
|
69
|
-
| DescribeHomeRegionControlsCommandOutput
|
|
70
|
-
| GetHomeRegionCommandOutput;
|
|
71
|
-
|
|
72
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
73
|
-
/**
|
|
74
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
75
|
-
*/
|
|
76
|
-
requestHandler?: __HttpHandler;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
80
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
sha256?: __HashConstructor;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
87
|
-
* @internal
|
|
88
|
-
*/
|
|
89
|
-
urlParser?: __UrlParser;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* A function that can calculate the length of a request body.
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* A function that converts a stream into an array of bytes.
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
streamCollector?: __StreamCollector;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
105
|
-
* @internal
|
|
106
|
-
*/
|
|
107
|
-
base64Decoder?: __Decoder;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
111
|
-
* @internal
|
|
112
|
-
*/
|
|
113
|
-
base64Encoder?: __Encoder;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
117
|
-
* @internal
|
|
118
|
-
*/
|
|
119
|
-
utf8Decoder?: __Decoder;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
123
|
-
* @internal
|
|
124
|
-
*/
|
|
125
|
-
utf8Encoder?: __Encoder;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* The runtime environment.
|
|
129
|
-
* @internal
|
|
130
|
-
*/
|
|
131
|
-
runtime?: string;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
135
|
-
* trait of an operation.
|
|
136
|
-
*/
|
|
137
|
-
disableHostPrefix?: boolean;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
141
|
-
*/
|
|
142
|
-
maxAttempts?: number | __Provider<number>;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Specifies which retry algorithm to use.
|
|
146
|
-
*/
|
|
147
|
-
retryMode?: string | __Provider<string>;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Optional logger for logging debug/info/warn/error.
|
|
151
|
-
*/
|
|
152
|
-
logger?: __Logger;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Unique service identifier.
|
|
156
|
-
* @internal
|
|
157
|
-
*/
|
|
158
|
-
serviceId?: string;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* The AWS region to which this client will send requests
|
|
162
|
-
*/
|
|
163
|
-
region?: string | __Provider<string>;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Default credentials provider; Not available in browser runtime.
|
|
167
|
-
* @internal
|
|
168
|
-
*/
|
|
169
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
173
|
-
* @internal
|
|
174
|
-
*/
|
|
175
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
179
|
-
* @internal
|
|
180
|
-
*/
|
|
181
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
type MigrationHubConfigClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
185
|
-
ClientDefaults &
|
|
186
|
-
RegionInputConfig &
|
|
187
|
-
EndpointsInputConfig &
|
|
188
|
-
RetryInputConfig &
|
|
189
|
-
HostHeaderInputConfig &
|
|
190
|
-
AwsAuthInputConfig &
|
|
191
|
-
UserAgentInputConfig;
|
|
192
|
-
/**
|
|
193
|
-
* The configuration interface of MigrationHubConfigClient class constructor that set the region, credentials and other options.
|
|
194
|
-
*/
|
|
195
|
-
export interface MigrationHubConfigClientConfig extends MigrationHubConfigClientConfigType {}
|
|
196
|
-
|
|
197
|
-
type MigrationHubConfigClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
198
|
-
Required<ClientDefaults> &
|
|
199
|
-
RegionResolvedConfig &
|
|
200
|
-
EndpointsResolvedConfig &
|
|
201
|
-
RetryResolvedConfig &
|
|
202
|
-
HostHeaderResolvedConfig &
|
|
203
|
-
AwsAuthResolvedConfig &
|
|
204
|
-
UserAgentResolvedConfig;
|
|
205
|
-
/**
|
|
206
|
-
* The resolved configuration interface of MigrationHubConfigClient class. This is resolved and normalized from the {@link MigrationHubConfigClientConfig | constructor configuration interface}.
|
|
207
|
-
*/
|
|
208
|
-
export interface MigrationHubConfigClientResolvedConfig extends MigrationHubConfigClientResolvedConfigType {}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* <p>The AWS Migration Hub home region APIs are available specifically for working with your
|
|
212
|
-
* Migration Hub home region. You can use these APIs to determine a home region, as well as to
|
|
213
|
-
* create and work with controls that describe the home region.</p>
|
|
214
|
-
*
|
|
215
|
-
* <ul>
|
|
216
|
-
* <li>
|
|
217
|
-
* <p>You must make API calls for write actions (create, notify, associate, disassociate,
|
|
218
|
-
* import, or put) while in your home region, or a <code>HomeRegionNotSetException</code>
|
|
219
|
-
* error is returned.</p>
|
|
220
|
-
* </li>
|
|
221
|
-
* <li>
|
|
222
|
-
* <p>API calls for read actions (list, describe, stop, and delete) are permitted outside of
|
|
223
|
-
* your home region.</p>
|
|
224
|
-
* </li>
|
|
225
|
-
* <li>
|
|
226
|
-
* <p>If you call a write API outside the home region, an <code>InvalidInputException</code>
|
|
227
|
-
* is returned.</p>
|
|
228
|
-
* </li>
|
|
229
|
-
* <li>
|
|
230
|
-
* <p>You can call <code>GetHomeRegion</code> action to obtain the account's Migration Hub
|
|
231
|
-
* home region.</p>
|
|
232
|
-
* </li>
|
|
233
|
-
* </ul>
|
|
234
|
-
*
|
|
235
|
-
* <p>For specific API usage, see the sections that follow in this AWS Migration Hub Home Region
|
|
236
|
-
* API reference. </p>
|
|
237
|
-
*/
|
|
238
|
-
export class MigrationHubConfigClient extends __Client<
|
|
239
|
-
__HttpHandlerOptions,
|
|
240
|
-
ServiceInputTypes,
|
|
241
|
-
ServiceOutputTypes,
|
|
242
|
-
MigrationHubConfigClientResolvedConfig
|
|
243
|
-
> {
|
|
244
|
-
/**
|
|
245
|
-
* The resolved configuration of MigrationHubConfigClient class. This is resolved and normalized from the {@link MigrationHubConfigClientConfig | constructor configuration interface}.
|
|
246
|
-
*/
|
|
247
|
-
readonly config: MigrationHubConfigClientResolvedConfig;
|
|
248
|
-
|
|
249
|
-
constructor(configuration: MigrationHubConfigClientConfig) {
|
|
250
|
-
let _config_0 = __getRuntimeConfig(configuration);
|
|
251
|
-
let _config_1 = resolveRegionConfig(_config_0);
|
|
252
|
-
let _config_2 = resolveEndpointsConfig(_config_1);
|
|
253
|
-
let _config_3 = resolveRetryConfig(_config_2);
|
|
254
|
-
let _config_4 = resolveHostHeaderConfig(_config_3);
|
|
255
|
-
let _config_5 = resolveAwsAuthConfig(_config_4);
|
|
256
|
-
let _config_6 = resolveUserAgentConfig(_config_5);
|
|
257
|
-
super(_config_6);
|
|
258
|
-
this.config = _config_6;
|
|
259
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
260
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
261
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
262
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
263
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
264
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
269
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
270
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
271
|
-
*/
|
|
272
|
-
destroy(): void {
|
|
273
|
-
super.destroy();
|
|
274
|
-
}
|
|
275
|
-
}
|