@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
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
MigrationHubConfigClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../MigrationHubConfigClient";
|
|
19
|
-
import { DescribeHomeRegionControlsRequest, DescribeHomeRegionControlsResult } from "../models/models_0";
|
|
20
|
-
import {
|
|
21
|
-
deserializeAws_json1_1DescribeHomeRegionControlsCommand,
|
|
22
|
-
serializeAws_json1_1DescribeHomeRegionControlsCommand,
|
|
23
|
-
} from "../protocols/Aws_json1_1";
|
|
24
|
-
|
|
25
|
-
export interface DescribeHomeRegionControlsCommandInput extends DescribeHomeRegionControlsRequest {}
|
|
26
|
-
export interface DescribeHomeRegionControlsCommandOutput extends DescribeHomeRegionControlsResult, __MetadataBearer {}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* <p>This API permits filtering on the <code>ControlId</code> and <code>HomeRegion</code>
|
|
30
|
-
* fields.</p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { MigrationHubConfigClient, DescribeHomeRegionControlsCommand } from "@aws-sdk/client-migrationhub-config"; // ES Modules import
|
|
35
|
-
* // const { MigrationHubConfigClient, DescribeHomeRegionControlsCommand } = require("@aws-sdk/client-migrationhub-config"); // CommonJS import
|
|
36
|
-
* const client = new MigrationHubConfigClient(config);
|
|
37
|
-
* const command = new DescribeHomeRegionControlsCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link DescribeHomeRegionControlsCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link DescribeHomeRegionControlsCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link MigrationHubConfigClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class DescribeHomeRegionControlsCommand extends $Command<
|
|
47
|
-
DescribeHomeRegionControlsCommandInput,
|
|
48
|
-
DescribeHomeRegionControlsCommandOutput,
|
|
49
|
-
MigrationHubConfigClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: DescribeHomeRegionControlsCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: MigrationHubConfigClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "MigrationHubConfigClient";
|
|
74
|
-
const commandName = "DescribeHomeRegionControlsCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: DescribeHomeRegionControlsRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: DescribeHomeRegionControlsResult.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: DescribeHomeRegionControlsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_json1_1DescribeHomeRegionControlsCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(
|
|
95
|
-
output: __HttpResponse,
|
|
96
|
-
context: __SerdeContext
|
|
97
|
-
): Promise<DescribeHomeRegionControlsCommandOutput> {
|
|
98
|
-
return deserializeAws_json1_1DescribeHomeRegionControlsCommand(output, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Start section: command_body_extra
|
|
102
|
-
// End section: command_body_extra
|
|
103
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
MigrationHubConfigClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../MigrationHubConfigClient";
|
|
19
|
-
import { GetHomeRegionRequest, GetHomeRegionResult } from "../models/models_0";
|
|
20
|
-
import {
|
|
21
|
-
deserializeAws_json1_1GetHomeRegionCommand,
|
|
22
|
-
serializeAws_json1_1GetHomeRegionCommand,
|
|
23
|
-
} from "../protocols/Aws_json1_1";
|
|
24
|
-
|
|
25
|
-
export interface GetHomeRegionCommandInput extends GetHomeRegionRequest {}
|
|
26
|
-
export interface GetHomeRegionCommandOutput extends GetHomeRegionResult, __MetadataBearer {}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* <p>Returns the calling account’s home region, if configured. This API is used by other AWS
|
|
30
|
-
* services to determine the regional endpoint for calling AWS Application Discovery Service and
|
|
31
|
-
* Migration Hub. You must call <code>GetHomeRegion</code> at least once before you call any
|
|
32
|
-
* other AWS Application Discovery Service and AWS Migration Hub APIs, to obtain the account's
|
|
33
|
-
* Migration Hub home region.</p>
|
|
34
|
-
* @example
|
|
35
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
-
* ```javascript
|
|
37
|
-
* import { MigrationHubConfigClient, GetHomeRegionCommand } from "@aws-sdk/client-migrationhub-config"; // ES Modules import
|
|
38
|
-
* // const { MigrationHubConfigClient, GetHomeRegionCommand } = require("@aws-sdk/client-migrationhub-config"); // CommonJS import
|
|
39
|
-
* const client = new MigrationHubConfigClient(config);
|
|
40
|
-
* const command = new GetHomeRegionCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @see {@link GetHomeRegionCommandInput} for command's `input` shape.
|
|
45
|
-
* @see {@link GetHomeRegionCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link MigrationHubConfigClientResolvedConfig | config} for command's `input` shape.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
export class GetHomeRegionCommand extends $Command<
|
|
50
|
-
GetHomeRegionCommandInput,
|
|
51
|
-
GetHomeRegionCommandOutput,
|
|
52
|
-
MigrationHubConfigClientResolvedConfig
|
|
53
|
-
> {
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
|
-
|
|
57
|
-
constructor(readonly input: GetHomeRegionCommandInput) {
|
|
58
|
-
// Start section: command_constructor
|
|
59
|
-
super();
|
|
60
|
-
// End section: command_constructor
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
resolveMiddleware(
|
|
67
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
68
|
-
configuration: MigrationHubConfigClientResolvedConfig,
|
|
69
|
-
options?: __HttpHandlerOptions
|
|
70
|
-
): Handler<GetHomeRegionCommandInput, GetHomeRegionCommandOutput> {
|
|
71
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
72
|
-
|
|
73
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
74
|
-
|
|
75
|
-
const { logger } = configuration;
|
|
76
|
-
const clientName = "MigrationHubConfigClient";
|
|
77
|
-
const commandName = "GetHomeRegionCommand";
|
|
78
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
79
|
-
logger,
|
|
80
|
-
clientName,
|
|
81
|
-
commandName,
|
|
82
|
-
inputFilterSensitiveLog: GetHomeRegionRequest.filterSensitiveLog,
|
|
83
|
-
outputFilterSensitiveLog: GetHomeRegionResult.filterSensitiveLog,
|
|
84
|
-
};
|
|
85
|
-
const { requestHandler } = configuration;
|
|
86
|
-
return stack.resolve(
|
|
87
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
88
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
89
|
-
handlerExecutionContext
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private serialize(input: GetHomeRegionCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_json1_1GetHomeRegionCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetHomeRegionCommandOutput> {
|
|
98
|
-
return deserializeAws_json1_1GetHomeRegionCommand(output, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Start section: command_body_extra
|
|
102
|
-
// End section: command_body_extra
|
|
103
|
-
}
|
package/src/endpoints.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
|
|
2
|
-
import { RegionInfoProvider } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
const regionHash: RegionHash = {};
|
|
5
|
-
|
|
6
|
-
const partitionHash: PartitionHash = {
|
|
7
|
-
aws: {
|
|
8
|
-
regions: [
|
|
9
|
-
"af-south-1",
|
|
10
|
-
"ap-east-1",
|
|
11
|
-
"ap-northeast-1",
|
|
12
|
-
"ap-northeast-2",
|
|
13
|
-
"ap-northeast-3",
|
|
14
|
-
"ap-south-1",
|
|
15
|
-
"ap-southeast-1",
|
|
16
|
-
"ap-southeast-2",
|
|
17
|
-
"ca-central-1",
|
|
18
|
-
"eu-central-1",
|
|
19
|
-
"eu-north-1",
|
|
20
|
-
"eu-south-1",
|
|
21
|
-
"eu-west-1",
|
|
22
|
-
"eu-west-2",
|
|
23
|
-
"eu-west-3",
|
|
24
|
-
"me-south-1",
|
|
25
|
-
"sa-east-1",
|
|
26
|
-
"us-east-1",
|
|
27
|
-
"us-east-2",
|
|
28
|
-
"us-west-1",
|
|
29
|
-
"us-west-2",
|
|
30
|
-
],
|
|
31
|
-
hostname: "migrationhub-config.{region}.amazonaws.com",
|
|
32
|
-
},
|
|
33
|
-
"aws-cn": {
|
|
34
|
-
regions: ["cn-north-1", "cn-northwest-1"],
|
|
35
|
-
hostname: "migrationhub-config.{region}.amazonaws.com.cn",
|
|
36
|
-
},
|
|
37
|
-
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
39
|
-
hostname: "migrationhub-config.{region}.c2s.ic.gov",
|
|
40
|
-
},
|
|
41
|
-
"aws-iso-b": {
|
|
42
|
-
regions: ["us-isob-east-1"],
|
|
43
|
-
hostname: "migrationhub-config.{region}.sc2s.sgov.gov",
|
|
44
|
-
},
|
|
45
|
-
"aws-us-gov": {
|
|
46
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
47
|
-
hostname: "migrationhub-config.{region}.amazonaws.com",
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
|
|
52
|
-
getRegionInfo(region, {
|
|
53
|
-
...options,
|
|
54
|
-
signingService: "mgh",
|
|
55
|
-
regionHash,
|
|
56
|
-
partitionHash,
|
|
57
|
-
});
|
package/src/index.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./MigrationHubConfigClient";
|
|
2
|
-
export * from "./MigrationHubConfig";
|
|
3
|
-
export * from "./commands/CreateHomeRegionControlCommand";
|
|
4
|
-
export * from "./commands/DescribeHomeRegionControlsCommand";
|
|
5
|
-
export * from "./pagination/DescribeHomeRegionControlsPaginator";
|
|
6
|
-
export * from "./commands/GetHomeRegionCommand";
|
|
7
|
-
export * from "./pagination/Interfaces";
|
|
8
|
-
export * from "./models/index";
|
package/src/models/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
package/src/models/models_0.ts
DELETED
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* <p>You do not have sufficient access to perform this action.</p>
|
|
5
|
-
*/
|
|
6
|
-
export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
|
|
7
|
-
name: "AccessDeniedException";
|
|
8
|
-
$fault: "client";
|
|
9
|
-
Message?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export namespace AccessDeniedException {
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export const filterSensitiveLog = (obj: AccessDeniedException): any => ({
|
|
17
|
-
...obj,
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export enum TargetType {
|
|
22
|
-
ACCOUNT = "ACCOUNT",
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* <p>The target parameter specifies the identifier to which the home region is applied, which
|
|
27
|
-
* is always an <code>ACCOUNT</code>. It applies the home region to the current
|
|
28
|
-
* <code>ACCOUNT</code>.</p>
|
|
29
|
-
*/
|
|
30
|
-
export interface Target {
|
|
31
|
-
/**
|
|
32
|
-
* <p>The target type is always an <code>ACCOUNT</code>.</p>
|
|
33
|
-
*/
|
|
34
|
-
Type: TargetType | string | undefined;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* <p>The <code>TargetID</code> is a 12-character identifier of the <code>ACCOUNT</code> for
|
|
38
|
-
* which the control was created. (This must be the current account.) </p>
|
|
39
|
-
*/
|
|
40
|
-
Id?: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export namespace Target {
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
*/
|
|
47
|
-
export const filterSensitiveLog = (obj: Target): any => ({
|
|
48
|
-
...obj,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface CreateHomeRegionControlRequest {
|
|
53
|
-
/**
|
|
54
|
-
* <p>The name of the home region of the calling account.</p>
|
|
55
|
-
*/
|
|
56
|
-
HomeRegion: string | undefined;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* <p>The account for which this command sets up a home region control. The <code>Target</code>
|
|
60
|
-
* is always of type <code>ACCOUNT</code>.</p>
|
|
61
|
-
*/
|
|
62
|
-
Target: Target | undefined;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* <p>Optional Boolean flag to indicate whether any effect should take place. It tests whether
|
|
66
|
-
* the caller has permission to make the call.</p>
|
|
67
|
-
*/
|
|
68
|
-
DryRun?: boolean;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export namespace CreateHomeRegionControlRequest {
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
export const filterSensitiveLog = (obj: CreateHomeRegionControlRequest): any => ({
|
|
76
|
-
...obj,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* <p>A home region control is an object that specifies the home region for an account, with
|
|
82
|
-
* some additional information. It contains a target (always of type <code>ACCOUNT</code>), an
|
|
83
|
-
* ID, and a time at which the home region was set.</p>
|
|
84
|
-
*/
|
|
85
|
-
export interface HomeRegionControl {
|
|
86
|
-
/**
|
|
87
|
-
* <p>A unique identifier that's generated for each home region control. It's always a string
|
|
88
|
-
* that begins with "hrc-" followed by 12 lowercase letters and numbers.</p>
|
|
89
|
-
*/
|
|
90
|
-
ControlId?: string;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* <p>The AWS Region that's been set as home region. For example, "us-west-2" or "eu-central-1"
|
|
94
|
-
* are valid home regions.</p>
|
|
95
|
-
*/
|
|
96
|
-
HomeRegion?: string;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* <p>The target parameter specifies the identifier to which the home region is applied, which
|
|
100
|
-
* is always an <code>ACCOUNT</code>. It applies the home region to the current
|
|
101
|
-
* <code>ACCOUNT</code>.</p>
|
|
102
|
-
*/
|
|
103
|
-
Target?: Target;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* <p>A timestamp representing the time when the customer called
|
|
107
|
-
* <code>CreateHomeregionControl</code> and set the home region for the account.</p>
|
|
108
|
-
*/
|
|
109
|
-
RequestedTime?: Date;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export namespace HomeRegionControl {
|
|
113
|
-
/**
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
116
|
-
export const filterSensitiveLog = (obj: HomeRegionControl): any => ({
|
|
117
|
-
...obj,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export interface CreateHomeRegionControlResult {
|
|
122
|
-
/**
|
|
123
|
-
* <p>This object is the <code>HomeRegionControl</code> object that's returned by a successful
|
|
124
|
-
* call to <code>CreateHomeRegionControl</code>.</p>
|
|
125
|
-
*/
|
|
126
|
-
HomeRegionControl?: HomeRegionControl;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export namespace CreateHomeRegionControlResult {
|
|
130
|
-
/**
|
|
131
|
-
* @internal
|
|
132
|
-
*/
|
|
133
|
-
export const filterSensitiveLog = (obj: CreateHomeRegionControlResult): any => ({
|
|
134
|
-
...obj,
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* <p>Exception raised to indicate that authorization of an action was successful, when the
|
|
140
|
-
* <code>DryRun</code> flag is set to true.</p>
|
|
141
|
-
*/
|
|
142
|
-
export interface DryRunOperation extends __SmithyException, $MetadataBearer {
|
|
143
|
-
name: "DryRunOperation";
|
|
144
|
-
$fault: "client";
|
|
145
|
-
Message?: string;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export namespace DryRunOperation {
|
|
149
|
-
/**
|
|
150
|
-
* @internal
|
|
151
|
-
*/
|
|
152
|
-
export const filterSensitiveLog = (obj: DryRunOperation): any => ({
|
|
153
|
-
...obj,
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* <p>Exception raised when an internal, configuration, or dependency error is
|
|
159
|
-
* encountered.</p>
|
|
160
|
-
*/
|
|
161
|
-
export interface InternalServerError extends __SmithyException, $MetadataBearer {
|
|
162
|
-
name: "InternalServerError";
|
|
163
|
-
$fault: "server";
|
|
164
|
-
Message?: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export namespace InternalServerError {
|
|
168
|
-
/**
|
|
169
|
-
* @internal
|
|
170
|
-
*/
|
|
171
|
-
export const filterSensitiveLog = (obj: InternalServerError): any => ({
|
|
172
|
-
...obj,
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* <p>Exception raised when the provided input violates a policy constraint or is entered in the
|
|
178
|
-
* wrong format or data type.</p>
|
|
179
|
-
*/
|
|
180
|
-
export interface InvalidInputException extends __SmithyException, $MetadataBearer {
|
|
181
|
-
name: "InvalidInputException";
|
|
182
|
-
$fault: "client";
|
|
183
|
-
Message?: string;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export namespace InvalidInputException {
|
|
187
|
-
/**
|
|
188
|
-
* @internal
|
|
189
|
-
*/
|
|
190
|
-
export const filterSensitiveLog = (obj: InvalidInputException): any => ({
|
|
191
|
-
...obj,
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* <p>Exception raised when a request fails due to temporary unavailability of the
|
|
197
|
-
* service.</p>
|
|
198
|
-
*/
|
|
199
|
-
export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
|
|
200
|
-
name: "ServiceUnavailableException";
|
|
201
|
-
$fault: "server";
|
|
202
|
-
Message?: string;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export namespace ServiceUnavailableException {
|
|
206
|
-
/**
|
|
207
|
-
* @internal
|
|
208
|
-
*/
|
|
209
|
-
export const filterSensitiveLog = (obj: ServiceUnavailableException): any => ({
|
|
210
|
-
...obj,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* <p>The request was denied due to request throttling.</p>
|
|
216
|
-
*/
|
|
217
|
-
export interface ThrottlingException extends __SmithyException, $MetadataBearer {
|
|
218
|
-
name: "ThrottlingException";
|
|
219
|
-
$fault: "client";
|
|
220
|
-
Message: string | undefined;
|
|
221
|
-
/**
|
|
222
|
-
* <p>The number of seconds the caller should wait before retrying.</p>
|
|
223
|
-
*/
|
|
224
|
-
RetryAfterSeconds?: number;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export namespace ThrottlingException {
|
|
228
|
-
/**
|
|
229
|
-
* @internal
|
|
230
|
-
*/
|
|
231
|
-
export const filterSensitiveLog = (obj: ThrottlingException): any => ({
|
|
232
|
-
...obj,
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export interface DescribeHomeRegionControlsRequest {
|
|
237
|
-
/**
|
|
238
|
-
* <p>The <code>ControlID</code> is a unique identifier string of your
|
|
239
|
-
* <code>HomeRegionControl</code> object.</p>
|
|
240
|
-
*/
|
|
241
|
-
ControlId?: string;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* <p>The name of the home region you'd like to view.</p>
|
|
245
|
-
*/
|
|
246
|
-
HomeRegion?: string;
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* <p>The target parameter specifies the identifier to which the home region is applied, which
|
|
250
|
-
* is always of type <code>ACCOUNT</code>. It applies the home region to the current
|
|
251
|
-
* <code>ACCOUNT</code>.</p>
|
|
252
|
-
*/
|
|
253
|
-
Target?: Target;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* <p>The maximum number of filtering results to display per page. </p>
|
|
257
|
-
*/
|
|
258
|
-
MaxResults?: number;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* <p>If a <code>NextToken</code> was returned by a previous call, more results are available.
|
|
262
|
-
* To retrieve the next page of results, make the call again using the returned token in
|
|
263
|
-
* <code>NextToken</code>.</p>
|
|
264
|
-
*/
|
|
265
|
-
NextToken?: string;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export namespace DescribeHomeRegionControlsRequest {
|
|
269
|
-
/**
|
|
270
|
-
* @internal
|
|
271
|
-
*/
|
|
272
|
-
export const filterSensitiveLog = (obj: DescribeHomeRegionControlsRequest): any => ({
|
|
273
|
-
...obj,
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
export interface DescribeHomeRegionControlsResult {
|
|
278
|
-
/**
|
|
279
|
-
* <p>An array that contains your <code>HomeRegionControl</code> objects.</p>
|
|
280
|
-
*/
|
|
281
|
-
HomeRegionControls?: HomeRegionControl[];
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* <p>If a <code>NextToken</code> was returned by a previous call, more results are available.
|
|
285
|
-
* To retrieve the next page of results, make the call again using the returned token in
|
|
286
|
-
* <code>NextToken</code>.</p>
|
|
287
|
-
*/
|
|
288
|
-
NextToken?: string;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
export namespace DescribeHomeRegionControlsResult {
|
|
292
|
-
/**
|
|
293
|
-
* @internal
|
|
294
|
-
*/
|
|
295
|
-
export const filterSensitiveLog = (obj: DescribeHomeRegionControlsResult): any => ({
|
|
296
|
-
...obj,
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export interface GetHomeRegionRequest {}
|
|
301
|
-
|
|
302
|
-
export namespace GetHomeRegionRequest {
|
|
303
|
-
/**
|
|
304
|
-
* @internal
|
|
305
|
-
*/
|
|
306
|
-
export const filterSensitiveLog = (obj: GetHomeRegionRequest): any => ({
|
|
307
|
-
...obj,
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export interface GetHomeRegionResult {
|
|
312
|
-
/**
|
|
313
|
-
* <p>The name of the home region of the calling account.</p>
|
|
314
|
-
*/
|
|
315
|
-
HomeRegion?: string;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export namespace GetHomeRegionResult {
|
|
319
|
-
/**
|
|
320
|
-
* @internal
|
|
321
|
-
*/
|
|
322
|
-
export const filterSensitiveLog = (obj: GetHomeRegionResult): any => ({
|
|
323
|
-
...obj,
|
|
324
|
-
});
|
|
325
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
DescribeHomeRegionControlsCommand,
|
|
5
|
-
DescribeHomeRegionControlsCommandInput,
|
|
6
|
-
DescribeHomeRegionControlsCommandOutput,
|
|
7
|
-
} from "../commands/DescribeHomeRegionControlsCommand";
|
|
8
|
-
import { MigrationHubConfig } from "../MigrationHubConfig";
|
|
9
|
-
import { MigrationHubConfigClient } from "../MigrationHubConfigClient";
|
|
10
|
-
import { MigrationHubConfigPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: MigrationHubConfigClient,
|
|
17
|
-
input: DescribeHomeRegionControlsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<DescribeHomeRegionControlsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new DescribeHomeRegionControlsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: MigrationHubConfig,
|
|
28
|
-
input: DescribeHomeRegionControlsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<DescribeHomeRegionControlsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.describeHomeRegionControls(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateDescribeHomeRegionControls(
|
|
35
|
-
config: MigrationHubConfigPaginationConfiguration,
|
|
36
|
-
input: DescribeHomeRegionControlsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<DescribeHomeRegionControlsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
40
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: DescribeHomeRegionControlsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.NextToken = token;
|
|
45
|
-
input["MaxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof MigrationHubConfig) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof MigrationHubConfigClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected MigrationHubConfig | MigrationHubConfigClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.NextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { MigrationHubConfig } from "../MigrationHubConfig";
|
|
4
|
-
import { MigrationHubConfigClient } from "../MigrationHubConfigClient";
|
|
5
|
-
|
|
6
|
-
export interface MigrationHubConfigPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: MigrationHubConfig | MigrationHubConfigClient;
|
|
8
|
-
}
|