1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class MigrationHubConfig extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: MigrationHubConfig.Types.ClientConfiguration)
|
13 | config: Config & MigrationHubConfig.Types.ClientConfiguration;
|
14 | /**
|
15 | * This API sets up the home region for the calling account only.
|
16 | */
|
17 | createHomeRegionControl(params: MigrationHubConfig.Types.CreateHomeRegionControlRequest, callback?: (err: AWSError, data: MigrationHubConfig.Types.CreateHomeRegionControlResult) => void): Request<MigrationHubConfig.Types.CreateHomeRegionControlResult, AWSError>;
|
18 | /**
|
19 | * This API sets up the home region for the calling account only.
|
20 | */
|
21 | createHomeRegionControl(callback?: (err: AWSError, data: MigrationHubConfig.Types.CreateHomeRegionControlResult) => void): Request<MigrationHubConfig.Types.CreateHomeRegionControlResult, AWSError>;
|
22 | /**
|
23 | * This API permits filtering on the ControlId, HomeRegion, and RegionControlScope fields.
|
24 | */
|
25 | describeHomeRegionControls(params: MigrationHubConfig.Types.DescribeHomeRegionControlsRequest, callback?: (err: AWSError, data: MigrationHubConfig.Types.DescribeHomeRegionControlsResult) => void): Request<MigrationHubConfig.Types.DescribeHomeRegionControlsResult, AWSError>;
|
26 | /**
|
27 | * This API permits filtering on the ControlId, HomeRegion, and RegionControlScope fields.
|
28 | */
|
29 | describeHomeRegionControls(callback?: (err: AWSError, data: MigrationHubConfig.Types.DescribeHomeRegionControlsResult) => void): Request<MigrationHubConfig.Types.DescribeHomeRegionControlsResult, AWSError>;
|
30 | /**
|
31 | * Returns the calling account’s home region, if configured. This API is used by other AWS services to determine the regional endpoint for calling AWS Application Discovery Service and Migration Hub. You must call GetHomeRegion at least once before you call any other AWS Application Discovery Service and AWS Migration Hub APIs, to obtain the account's Migration Hub home region.
|
32 | */
|
33 | getHomeRegion(params: MigrationHubConfig.Types.GetHomeRegionRequest, callback?: (err: AWSError, data: MigrationHubConfig.Types.GetHomeRegionResult) => void): Request<MigrationHubConfig.Types.GetHomeRegionResult, AWSError>;
|
34 | /**
|
35 | * Returns the calling account’s home region, if configured. This API is used by other AWS services to determine the regional endpoint for calling AWS Application Discovery Service and Migration Hub. You must call GetHomeRegion at least once before you call any other AWS Application Discovery Service and AWS Migration Hub APIs, to obtain the account's Migration Hub home region.
|
36 | */
|
37 | getHomeRegion(callback?: (err: AWSError, data: MigrationHubConfig.Types.GetHomeRegionResult) => void): Request<MigrationHubConfig.Types.GetHomeRegionResult, AWSError>;
|
38 | }
|
39 | declare namespace MigrationHubConfig {
|
40 | export type ControlId = string;
|
41 | export interface CreateHomeRegionControlRequest {
|
42 | |
43 |
|
44 |
|
45 | HomeRegion: HomeRegion;
|
46 | |
47 |
|
48 |
|
49 | Target: Target;
|
50 | |
51 |
|
52 |
|
53 | DryRun?: DryRun;
|
54 | }
|
55 | export interface CreateHomeRegionControlResult {
|
56 | |
57 |
|
58 |
|
59 | HomeRegionControl?: HomeRegionControl;
|
60 | }
|
61 | export type DescribeHomeRegionControlsMaxResults = number;
|
62 | export interface DescribeHomeRegionControlsRequest {
|
63 | |
64 |
|
65 |
|
66 | ControlId?: ControlId;
|
67 | |
68 |
|
69 |
|
70 | HomeRegion?: HomeRegion;
|
71 | |
72 |
|
73 |
|
74 | Target?: Target;
|
75 | |
76 |
|
77 |
|
78 | MaxResults?: DescribeHomeRegionControlsMaxResults;
|
79 | |
80 |
|
81 |
|
82 | NextToken?: Token;
|
83 | }
|
84 | export interface DescribeHomeRegionControlsResult {
|
85 | |
86 |
|
87 |
|
88 | HomeRegionControls?: HomeRegionControls;
|
89 | |
90 |
|
91 |
|
92 | NextToken?: Token;
|
93 | }
|
94 | export type DryRun = boolean;
|
95 | export interface GetHomeRegionRequest {
|
96 | }
|
97 | export interface GetHomeRegionResult {
|
98 | |
99 |
|
100 |
|
101 | HomeRegion?: HomeRegion;
|
102 | }
|
103 | export type HomeRegion = string;
|
104 | export interface HomeRegionControl {
|
105 | |
106 |
|
107 |
|
108 | ControlId?: ControlId;
|
109 | |
110 |
|
111 |
|
112 | HomeRegion?: HomeRegion;
|
113 | |
114 |
|
115 |
|
116 | Target?: Target;
|
117 | |
118 |
|
119 |
|
120 | RequestedTime?: RequestedTime;
|
121 | }
|
122 | export type HomeRegionControls = HomeRegionControl[];
|
123 | export type RequestedTime = Date;
|
124 | export interface Target {
|
125 | |
126 |
|
127 |
|
128 | Type: TargetType;
|
129 | |
130 |
|
131 |
|
132 | Id?: TargetId;
|
133 | }
|
134 | export type TargetId = string;
|
135 | export type TargetType = "ACCOUNT"|string;
|
136 | export type Token = string;
|
137 | |
138 |
|
139 |
|
140 | export type apiVersion = "2019-06-30"|"latest"|string;
|
141 | export interface ClientApiVersions {
|
142 | |
143 |
|
144 |
|
145 | apiVersion?: apiVersion;
|
146 | }
|
147 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
148 | |
149 |
|
150 |
|
151 | export import Types = MigrationHubConfig;
|
152 | }
|
153 | export = MigrationHubConfig;
|