@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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
12
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
46
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
47
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
7
54
|
|
|
8
55
|
|
|
@@ -5,34 +5,6 @@ const CreateHomeRegionControlCommand_1 = require("./commands/CreateHomeRegionCon
|
|
|
5
5
|
const DescribeHomeRegionControlsCommand_1 = require("./commands/DescribeHomeRegionControlsCommand");
|
|
6
6
|
const GetHomeRegionCommand_1 = require("./commands/GetHomeRegionCommand");
|
|
7
7
|
const MigrationHubConfigClient_1 = require("./MigrationHubConfigClient");
|
|
8
|
-
/**
|
|
9
|
-
* <p>The AWS Migration Hub home region APIs are available specifically for working with your
|
|
10
|
-
* Migration Hub home region. You can use these APIs to determine a home region, as well as to
|
|
11
|
-
* create and work with controls that describe the home region.</p>
|
|
12
|
-
*
|
|
13
|
-
* <ul>
|
|
14
|
-
* <li>
|
|
15
|
-
* <p>You must make API calls for write actions (create, notify, associate, disassociate,
|
|
16
|
-
* import, or put) while in your home region, or a <code>HomeRegionNotSetException</code>
|
|
17
|
-
* error is returned.</p>
|
|
18
|
-
* </li>
|
|
19
|
-
* <li>
|
|
20
|
-
* <p>API calls for read actions (list, describe, stop, and delete) are permitted outside of
|
|
21
|
-
* your home region.</p>
|
|
22
|
-
* </li>
|
|
23
|
-
* <li>
|
|
24
|
-
* <p>If you call a write API outside the home region, an <code>InvalidInputException</code>
|
|
25
|
-
* is returned.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>You can call <code>GetHomeRegion</code> action to obtain the account's Migration Hub
|
|
29
|
-
* home region.</p>
|
|
30
|
-
* </li>
|
|
31
|
-
* </ul>
|
|
32
|
-
*
|
|
33
|
-
* <p>For specific API usage, see the sections that follow in this AWS Migration Hub Home Region
|
|
34
|
-
* API reference. </p>
|
|
35
|
-
*/
|
|
36
8
|
class MigrationHubConfig extends MigrationHubConfigClient_1.MigrationHubConfigClient {
|
|
37
9
|
createHomeRegionControl(args, optionsOrCb, cb) {
|
|
38
10
|
const command = new CreateHomeRegionControlCommand_1.CreateHomeRegionControlCommand(args);
|
|
@@ -78,4 +50,3 @@ class MigrationHubConfig extends MigrationHubConfigClient_1.MigrationHubConfigCl
|
|
|
78
50
|
}
|
|
79
51
|
}
|
|
80
52
|
exports.MigrationHubConfig = MigrationHubConfig;
|
|
81
|
-
//# sourceMappingURL=MigrationHubConfig.js.map
|
|
@@ -10,34 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* <p>The AWS Migration Hub home region APIs are available specifically for working with your
|
|
15
|
-
* Migration Hub home region. You can use these APIs to determine a home region, as well as to
|
|
16
|
-
* create and work with controls that describe the home region.</p>
|
|
17
|
-
*
|
|
18
|
-
* <ul>
|
|
19
|
-
* <li>
|
|
20
|
-
* <p>You must make API calls for write actions (create, notify, associate, disassociate,
|
|
21
|
-
* import, or put) while in your home region, or a <code>HomeRegionNotSetException</code>
|
|
22
|
-
* error is returned.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>API calls for read actions (list, describe, stop, and delete) are permitted outside of
|
|
26
|
-
* your home region.</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>If you call a write API outside the home region, an <code>InvalidInputException</code>
|
|
30
|
-
* is returned.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>You can call <code>GetHomeRegion</code> action to obtain the account's Migration Hub
|
|
34
|
-
* home region.</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* </ul>
|
|
37
|
-
*
|
|
38
|
-
* <p>For specific API usage, see the sections that follow in this AWS Migration Hub Home Region
|
|
39
|
-
* API reference. </p>
|
|
40
|
-
*/
|
|
41
13
|
class MigrationHubConfigClient extends smithy_client_1.Client {
|
|
42
14
|
constructor(configuration) {
|
|
43
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -56,14 +28,8 @@ class MigrationHubConfigClient extends smithy_client_1.Client {
|
|
|
56
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
57
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
58
30
|
}
|
|
59
|
-
/**
|
|
60
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
61
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
62
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
63
|
-
*/
|
|
64
31
|
destroy() {
|
|
65
32
|
super.destroy();
|
|
66
33
|
}
|
|
67
34
|
}
|
|
68
35
|
exports.MigrationHubConfigClient = MigrationHubConfigClient;
|
|
69
|
-
//# sourceMappingURL=MigrationHubConfigClient.js.map
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>This API sets up the home region for the calling account only.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { MigrationHubConfigClient, CreateHomeRegionControlCommand } from "@aws-sdk/client-migrationhub-config"; // ES Modules import
|
|
14
|
-
* // const { MigrationHubConfigClient, CreateHomeRegionControlCommand } = require("@aws-sdk/client-migrationhub-config"); // CommonJS import
|
|
15
|
-
* const client = new MigrationHubConfigClient(config);
|
|
16
|
-
* const command = new CreateHomeRegionControlCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link CreateHomeRegionControlCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link CreateHomeRegionControlCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link MigrationHubConfigClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class CreateHomeRegionControlCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class CreateHomeRegionControlCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.CreateHomeRegionControlCommand = CreateHomeRegionControlCommand;
|
|
61
|
-
//# sourceMappingURL=CreateHomeRegionControlCommand.js.map
|
|
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>This API permits filtering on the <code>ControlId</code> and <code>HomeRegion</code>
|
|
10
|
-
* fields.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { MigrationHubConfigClient, DescribeHomeRegionControlsCommand } from "@aws-sdk/client-migrationhub-config"; // ES Modules import
|
|
15
|
-
* // const { MigrationHubConfigClient, DescribeHomeRegionControlsCommand } = require("@aws-sdk/client-migrationhub-config"); // CommonJS import
|
|
16
|
-
* const client = new MigrationHubConfigClient(config);
|
|
17
|
-
* const command = new DescribeHomeRegionControlsCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DescribeHomeRegionControlsCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DescribeHomeRegionControlsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link MigrationHubConfigClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class DescribeHomeRegionControlsCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -59,4 +34,3 @@ class DescribeHomeRegionControlsCommand extends smithy_client_1.Command {
|
|
|
59
34
|
}
|
|
60
35
|
}
|
|
61
36
|
exports.DescribeHomeRegionControlsCommand = DescribeHomeRegionControlsCommand;
|
|
62
|
-
//# sourceMappingURL=DescribeHomeRegionControlsCommand.js.map
|
|
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Returns the calling account’s home region, if configured. This API is used by other AWS
|
|
10
|
-
* services to determine the regional endpoint for calling AWS Application Discovery Service and
|
|
11
|
-
* Migration Hub. You must call <code>GetHomeRegion</code> at least once before you call any
|
|
12
|
-
* other AWS Application Discovery Service and AWS Migration Hub APIs, to obtain the account's
|
|
13
|
-
* Migration Hub home region.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { MigrationHubConfigClient, GetHomeRegionCommand } from "@aws-sdk/client-migrationhub-config"; // ES Modules import
|
|
18
|
-
* // const { MigrationHubConfigClient, GetHomeRegionCommand } = require("@aws-sdk/client-migrationhub-config"); // CommonJS import
|
|
19
|
-
* const client = new MigrationHubConfigClient(config);
|
|
20
|
-
* const command = new GetHomeRegionCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link GetHomeRegionCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link GetHomeRegionCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link MigrationHubConfigClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
8
|
class GetHomeRegionCommand extends smithy_client_1.Command {
|
|
30
|
-
// Start section: command_properties
|
|
31
|
-
// End section: command_properties
|
|
32
9
|
constructor(input) {
|
|
33
|
-
// Start section: command_constructor
|
|
34
10
|
super();
|
|
35
11
|
this.input = input;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -62,4 +34,3 @@ class GetHomeRegionCommand extends smithy_client_1.Command {
|
|
|
62
34
|
}
|
|
63
35
|
}
|
|
64
36
|
exports.GetHomeRegionCommand = GetHomeRegionCommand;
|
|
65
|
-
//# sourceMappingURL=GetHomeRegionCommand.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CreateHomeRegionControlCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DescribeHomeRegionControlsCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./GetHomeRegionCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -35,7 +35,7 @@ const partitionHash = {
|
|
|
35
35
|
hostname: "migrationhub-config.{region}.amazonaws.com.cn",
|
|
36
36
|
},
|
|
37
37
|
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
38
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
39
39
|
hostname: "migrationhub-config.{region}.c2s.ic.gov",
|
|
40
40
|
},
|
|
41
41
|
"aws-iso-b": {
|
|
@@ -54,4 +54,3 @@ const defaultRegionInfoProvider = async (region, options) => config_resolver_1.g
|
|
|
54
54
|
partitionHash,
|
|
55
55
|
});
|
|
56
56
|
exports.defaultRegionInfoProvider = defaultRegionInfoProvider;
|
|
57
|
-
//# sourceMappingURL=endpoints.js.map
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./MigrationHubConfigClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./MigrationHubConfig"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./
|
|
10
|
-
tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
tslib_1.__exportStar(require("./MigrationHubConfigClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetHomeRegionResult = exports.GetHomeRegionRequest = exports.DescribeHomeRegionControlsResult = exports.DescribeHomeRegionControlsRequest = exports.ThrottlingException = exports.ServiceUnavailableException = exports.InvalidInputException = exports.InternalServerError = exports.DryRunOperation = exports.CreateHomeRegionControlResult = exports.HomeRegionControl = exports.CreateHomeRegionControlRequest = exports.Target = exports.TargetType = exports.AccessDeniedException = void 0;
|
|
4
4
|
var AccessDeniedException;
|
|
5
5
|
(function (AccessDeniedException) {
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
AccessDeniedException.filterSensitiveLog = (obj) => ({
|
|
10
7
|
...obj,
|
|
11
8
|
});
|
|
@@ -16,119 +13,79 @@ var TargetType;
|
|
|
16
13
|
})(TargetType = exports.TargetType || (exports.TargetType = {}));
|
|
17
14
|
var Target;
|
|
18
15
|
(function (Target) {
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
16
|
Target.filterSensitiveLog = (obj) => ({
|
|
23
17
|
...obj,
|
|
24
18
|
});
|
|
25
19
|
})(Target = exports.Target || (exports.Target = {}));
|
|
26
20
|
var CreateHomeRegionControlRequest;
|
|
27
21
|
(function (CreateHomeRegionControlRequest) {
|
|
28
|
-
/**
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
22
|
CreateHomeRegionControlRequest.filterSensitiveLog = (obj) => ({
|
|
32
23
|
...obj,
|
|
33
24
|
});
|
|
34
25
|
})(CreateHomeRegionControlRequest = exports.CreateHomeRegionControlRequest || (exports.CreateHomeRegionControlRequest = {}));
|
|
35
26
|
var HomeRegionControl;
|
|
36
27
|
(function (HomeRegionControl) {
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
28
|
HomeRegionControl.filterSensitiveLog = (obj) => ({
|
|
41
29
|
...obj,
|
|
42
30
|
});
|
|
43
31
|
})(HomeRegionControl = exports.HomeRegionControl || (exports.HomeRegionControl = {}));
|
|
44
32
|
var CreateHomeRegionControlResult;
|
|
45
33
|
(function (CreateHomeRegionControlResult) {
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
34
|
CreateHomeRegionControlResult.filterSensitiveLog = (obj) => ({
|
|
50
35
|
...obj,
|
|
51
36
|
});
|
|
52
37
|
})(CreateHomeRegionControlResult = exports.CreateHomeRegionControlResult || (exports.CreateHomeRegionControlResult = {}));
|
|
53
38
|
var DryRunOperation;
|
|
54
39
|
(function (DryRunOperation) {
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
40
|
DryRunOperation.filterSensitiveLog = (obj) => ({
|
|
59
41
|
...obj,
|
|
60
42
|
});
|
|
61
43
|
})(DryRunOperation = exports.DryRunOperation || (exports.DryRunOperation = {}));
|
|
62
44
|
var InternalServerError;
|
|
63
45
|
(function (InternalServerError) {
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
46
|
InternalServerError.filterSensitiveLog = (obj) => ({
|
|
68
47
|
...obj,
|
|
69
48
|
});
|
|
70
49
|
})(InternalServerError = exports.InternalServerError || (exports.InternalServerError = {}));
|
|
71
50
|
var InvalidInputException;
|
|
72
51
|
(function (InvalidInputException) {
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
52
|
InvalidInputException.filterSensitiveLog = (obj) => ({
|
|
77
53
|
...obj,
|
|
78
54
|
});
|
|
79
55
|
})(InvalidInputException = exports.InvalidInputException || (exports.InvalidInputException = {}));
|
|
80
56
|
var ServiceUnavailableException;
|
|
81
57
|
(function (ServiceUnavailableException) {
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
58
|
ServiceUnavailableException.filterSensitiveLog = (obj) => ({
|
|
86
59
|
...obj,
|
|
87
60
|
});
|
|
88
61
|
})(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
|
|
89
62
|
var ThrottlingException;
|
|
90
63
|
(function (ThrottlingException) {
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
*/
|
|
94
64
|
ThrottlingException.filterSensitiveLog = (obj) => ({
|
|
95
65
|
...obj,
|
|
96
66
|
});
|
|
97
67
|
})(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
|
|
98
68
|
var DescribeHomeRegionControlsRequest;
|
|
99
69
|
(function (DescribeHomeRegionControlsRequest) {
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
103
70
|
DescribeHomeRegionControlsRequest.filterSensitiveLog = (obj) => ({
|
|
104
71
|
...obj,
|
|
105
72
|
});
|
|
106
73
|
})(DescribeHomeRegionControlsRequest = exports.DescribeHomeRegionControlsRequest || (exports.DescribeHomeRegionControlsRequest = {}));
|
|
107
74
|
var DescribeHomeRegionControlsResult;
|
|
108
75
|
(function (DescribeHomeRegionControlsResult) {
|
|
109
|
-
/**
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
112
76
|
DescribeHomeRegionControlsResult.filterSensitiveLog = (obj) => ({
|
|
113
77
|
...obj,
|
|
114
78
|
});
|
|
115
79
|
})(DescribeHomeRegionControlsResult = exports.DescribeHomeRegionControlsResult || (exports.DescribeHomeRegionControlsResult = {}));
|
|
116
80
|
var GetHomeRegionRequest;
|
|
117
81
|
(function (GetHomeRegionRequest) {
|
|
118
|
-
/**
|
|
119
|
-
* @internal
|
|
120
|
-
*/
|
|
121
82
|
GetHomeRegionRequest.filterSensitiveLog = (obj) => ({
|
|
122
83
|
...obj,
|
|
123
84
|
});
|
|
124
85
|
})(GetHomeRegionRequest = exports.GetHomeRegionRequest || (exports.GetHomeRegionRequest = {}));
|
|
125
86
|
var GetHomeRegionResult;
|
|
126
87
|
(function (GetHomeRegionResult) {
|
|
127
|
-
/**
|
|
128
|
-
* @internal
|
|
129
|
-
*/
|
|
130
88
|
GetHomeRegionResult.filterSensitiveLog = (obj) => ({
|
|
131
89
|
...obj,
|
|
132
90
|
});
|
|
133
91
|
})(GetHomeRegionResult = exports.GetHomeRegionResult || (exports.GetHomeRegionResult = {}));
|
|
134
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -4,22 +4,13 @@ exports.paginateDescribeHomeRegionControls = void 0;
|
|
|
4
4
|
const DescribeHomeRegionControlsCommand_1 = require("../commands/DescribeHomeRegionControlsCommand");
|
|
5
5
|
const MigrationHubConfig_1 = require("../MigrationHubConfig");
|
|
6
6
|
const MigrationHubConfigClient_1 = require("../MigrationHubConfigClient");
|
|
7
|
-
/**
|
|
8
|
-
* @private
|
|
9
|
-
*/
|
|
10
7
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
11
|
-
// @ts-ignore
|
|
12
8
|
return await client.send(new DescribeHomeRegionControlsCommand_1.DescribeHomeRegionControlsCommand(input), ...args);
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
10
|
const makePagedRequest = async (client, input, ...args) => {
|
|
18
|
-
// @ts-ignore
|
|
19
11
|
return await client.describeHomeRegionControls(input, ...args);
|
|
20
12
|
};
|
|
21
13
|
async function* paginateDescribeHomeRegionControls(config, input, ...additionalArguments) {
|
|
22
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
23
14
|
let token = config.startingToken || undefined;
|
|
24
15
|
let hasNext = true;
|
|
25
16
|
let page;
|
|
@@ -39,8 +30,6 @@ async function* paginateDescribeHomeRegionControls(config, input, ...additionalA
|
|
|
39
30
|
token = page.NextToken;
|
|
40
31
|
hasNext = !!token;
|
|
41
32
|
}
|
|
42
|
-
// @ts-ignore
|
|
43
33
|
return undefined;
|
|
44
34
|
}
|
|
45
35
|
exports.paginateDescribeHomeRegionControls = paginateDescribeHomeRegionControls;
|
|
46
|
-
//# sourceMappingURL=DescribeHomeRegionControlsPaginator.js.map
|
|
@@ -459,14 +459,12 @@ const deserializeMetadata = (output) => {
|
|
|
459
459
|
cfId: output.headers["x-amz-cf-id"],
|
|
460
460
|
});
|
|
461
461
|
};
|
|
462
|
-
// Collect low-level response body stream to Uint8Array.
|
|
463
462
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
464
463
|
if (streamBody instanceof Uint8Array) {
|
|
465
464
|
return Promise.resolve(streamBody);
|
|
466
465
|
}
|
|
467
466
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
468
467
|
};
|
|
469
|
-
// Encode Uint8Array data into string with utf-8.
|
|
470
468
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
471
469
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
472
470
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -492,9 +490,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
492
490
|
}
|
|
493
491
|
return {};
|
|
494
492
|
});
|
|
495
|
-
/**
|
|
496
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
497
|
-
*/
|
|
498
493
|
const loadRestJsonErrorCode = (output, data) => {
|
|
499
494
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
500
495
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -519,4 +514,3 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
519
514
|
}
|
|
520
515
|
return "";
|
|
521
516
|
};
|
|
522
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
5
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
6
7
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
7
8
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -10,12 +11,7 @@ const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
|
10
11
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
11
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
12
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
13
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
14
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
15
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
*/
|
|
19
15
|
const getRuntimeConfig = (config) => {
|
|
20
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
21
17
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
@@ -39,4 +35,3 @@ const getRuntimeConfig = (config) => {
|
|
|
39
35
|
};
|
|
40
36
|
};
|
|
41
37
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
42
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
5
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
6
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -9,17 +10,12 @@ const hash_node_1 = require("@aws-sdk/hash-node");
|
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
10
11
|
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
11
12
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
12
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
13
|
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
14
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
-
// @ts-ignore: package.json will be imported from dist folders
|
|
18
|
-
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
19
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
20
|
-
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
23
19
|
const getRuntimeConfig = (config) => {
|
|
24
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
25
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -44,4 +40,3 @@ const getRuntimeConfig = (config) => {
|
|
|
44
40
|
};
|
|
45
41
|
};
|
|
46
42
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
47
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a;
|
|
11
8
|
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
|
|
|
17
14
|
};
|
|
18
15
|
};
|
|
19
16
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
20
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpoints_1 = require("./endpoints");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a, _b, _c, _d, _e;
|
|
11
8
|
return ({
|
|
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
|
|
|
18
15
|
});
|
|
19
16
|
};
|
|
20
17
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
21
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|