migrationhubconfig.d.ts
7.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class MigrationHubConfig extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: MigrationHubConfig.Types.ClientConfiguration)
config: Config & MigrationHubConfig.Types.ClientConfiguration;
/**
* This API sets up the home region for the calling account only.
*/
createHomeRegionControl(params: MigrationHubConfig.Types.CreateHomeRegionControlRequest, callback?: (err: AWSError, data: MigrationHubConfig.Types.CreateHomeRegionControlResult) => void): Request<MigrationHubConfig.Types.CreateHomeRegionControlResult, AWSError>;
/**
* This API sets up the home region for the calling account only.
*/
createHomeRegionControl(callback?: (err: AWSError, data: MigrationHubConfig.Types.CreateHomeRegionControlResult) => void): Request<MigrationHubConfig.Types.CreateHomeRegionControlResult, AWSError>;
/**
* This API permits filtering on the ControlId, HomeRegion, and RegionControlScope fields.
*/
describeHomeRegionControls(params: MigrationHubConfig.Types.DescribeHomeRegionControlsRequest, callback?: (err: AWSError, data: MigrationHubConfig.Types.DescribeHomeRegionControlsResult) => void): Request<MigrationHubConfig.Types.DescribeHomeRegionControlsResult, AWSError>;
/**
* This API permits filtering on the ControlId, HomeRegion, and RegionControlScope fields.
*/
describeHomeRegionControls(callback?: (err: AWSError, data: MigrationHubConfig.Types.DescribeHomeRegionControlsResult) => void): Request<MigrationHubConfig.Types.DescribeHomeRegionControlsResult, AWSError>;
/**
* 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.
*/
getHomeRegion(params: MigrationHubConfig.Types.GetHomeRegionRequest, callback?: (err: AWSError, data: MigrationHubConfig.Types.GetHomeRegionResult) => void): Request<MigrationHubConfig.Types.GetHomeRegionResult, AWSError>;
/**
* 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.
*/
getHomeRegion(callback?: (err: AWSError, data: MigrationHubConfig.Types.GetHomeRegionResult) => void): Request<MigrationHubConfig.Types.GetHomeRegionResult, AWSError>;
}
declare namespace MigrationHubConfig {
export type ControlId = string;
export interface CreateHomeRegionControlRequest {
/**
* The name of the home region of the calling account.
*/
HomeRegion: HomeRegion;
/**
* The account for which this command sets up a home region control. The Target is always of type ACCOUNT.
*/
Target: Target;
/**
* Optional Boolean flag to indicate whether any effect should take place. It tests whether the caller has permission to make the call.
*/
DryRun?: DryRun;
}
export interface CreateHomeRegionControlResult {
/**
* This object is the HomeRegionControl object that's returned by a successful call to CreateHomeRegionControl.
*/
HomeRegionControl?: HomeRegionControl;
}
export type DescribeHomeRegionControlsMaxResults = number;
export interface DescribeHomeRegionControlsRequest {
/**
* The ControlID is a unique identifier string of your HomeRegionControl object.
*/
ControlId?: ControlId;
/**
* The name of the home region you'd like to view.
*/
HomeRegion?: HomeRegion;
/**
* The target parameter specifies the identifier to which the home region is applied, which is always of type ACCOUNT. It applies the home region to the current ACCOUNT.
*/
Target?: Target;
/**
* The maximum number of filtering results to display per page.
*/
MaxResults?: DescribeHomeRegionControlsMaxResults;
/**
* If a NextToken was returned by a previous call, more results are available. To retrieve the next page of results, make the call again using the returned token in NextToken.
*/
NextToken?: Token;
}
export interface DescribeHomeRegionControlsResult {
/**
* An array that contains your HomeRegionControl objects.
*/
HomeRegionControls?: HomeRegionControls;
/**
* If a NextToken was returned by a previous call, more results are available. To retrieve the next page of results, make the call again using the returned token in NextToken.
*/
NextToken?: Token;
}
export type DryRun = boolean;
export interface GetHomeRegionRequest {
}
export interface GetHomeRegionResult {
/**
* The name of the home region of the calling account.
*/
HomeRegion?: HomeRegion;
}
export type HomeRegion = string;
export interface HomeRegionControl {
/**
* A unique identifier that's generated for each home region control. It's always a string that begins with "hrc-" followed by 12 lowercase letters and numbers.
*/
ControlId?: ControlId;
/**
* The AWS Region that's been set as home region. For example, "us-west-2" or "eu-central-1" are valid home regions.
*/
HomeRegion?: HomeRegion;
/**
* The target parameter specifies the identifier to which the home region is applied, which is always an ACCOUNT. It applies the home region to the current ACCOUNT.
*/
Target?: Target;
/**
* A timestamp representing the time when the customer called CreateHomeregionControl and set the home region for the account.
*/
RequestedTime?: RequestedTime;
}
export type HomeRegionControls = HomeRegionControl[];
export type RequestedTime = Date;
export interface Target {
/**
* The target type is always an ACCOUNT.
*/
Type: TargetType;
/**
* The TargetID is a 12-character identifier of the ACCOUNT for which the control was created. (This must be the current account.)
*/
Id?: TargetId;
}
export type TargetId = string;
export type TargetType = "ACCOUNT"|string;
export type Token = string;
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2019-06-30"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the MigrationHubConfig client.
*/
export import Types = MigrationHubConfig;
}
export = MigrationHubConfig;