@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.
Files changed (126) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/MigrationHubConfig.js +1 -30
  3. package/dist-cjs/MigrationHubConfigClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/CreateHomeRegionControlCommand.js +2 -27
  5. package/{dist/cjs → dist-cjs}/commands/DescribeHomeRegionControlsCommand.js +2 -28
  6. package/{dist/cjs → dist-cjs}/commands/GetHomeRegionCommand.js +2 -31
  7. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  8. package/{dist/cjs → dist-cjs}/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -43
  11. package/{dist/cjs → dist-cjs}/pagination/DescribeHomeRegionControlsPaginator.js +1 -12
  12. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  13. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  14. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  18. package/{dist/es → dist-es}/MigrationHubConfig.js +1 -2
  19. package/{dist/es → dist-es}/MigrationHubConfigClient.js +1 -2
  20. package/{dist/es → dist-es}/commands/CreateHomeRegionControlCommand.js +2 -3
  21. package/{dist/es → dist-es}/commands/DescribeHomeRegionControlsCommand.js +2 -3
  22. package/{dist/es → dist-es}/commands/GetHomeRegionCommand.js +2 -3
  23. package/{dist/es → dist-es}/endpoints.js +1 -2
  24. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  25. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  26. package/{dist/es → dist-es}/models/models_0.js +0 -1
  27. package/{dist/es → dist-es}/pagination/DescribeHomeRegionControlsPaginator.js +1 -2
  28. package/dist-es/pagination/Interfaces.js +1 -0
  29. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
  30. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  31. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  32. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  33. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  34. package/{dist/types → dist-types}/MigrationHubConfig.d.ts +2 -2
  35. package/{dist/types → dist-types}/MigrationHubConfigClient.d.ts +4 -4
  36. package/{dist/types → dist-types}/commands/CreateHomeRegionControlCommand.d.ts +2 -2
  37. package/{dist/types → dist-types}/commands/DescribeHomeRegionControlsCommand.d.ts +2 -2
  38. package/{dist/types → dist-types}/commands/GetHomeRegionCommand.d.ts +2 -2
  39. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  40. package/{index.ts → dist-types/index.d.ts} +0 -0
  41. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  42. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  43. package/{dist/types → dist-types}/pagination/DescribeHomeRegionControlsPaginator.d.ts +1 -1
  44. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  45. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  46. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  47. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  48. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  49. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  50. package/dist-types/ts3.4/MigrationHubConfig.d.ts +20 -0
  51. package/dist-types/ts3.4/MigrationHubConfigClient.d.ts +70 -0
  52. package/{dist/types → dist-types}/ts3.4/commands/CreateHomeRegionControlCommand.d.ts +4 -22
  53. package/{dist/types → dist-types}/ts3.4/commands/DescribeHomeRegionControlsCommand.d.ts +4 -23
  54. package/dist-types/ts3.4/commands/GetHomeRegionCommand.d.ts +17 -0
  55. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  56. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  57. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  58. package/dist-types/ts3.4/models/models_0.d.ts +152 -0
  59. package/{dist/types → dist-types}/ts3.4/pagination/DescribeHomeRegionControlsPaginator.d.ts +1 -1
  60. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  61. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  62. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  63. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  64. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  65. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  66. package/package.json +45 -42
  67. package/MigrationHubConfig.ts +0 -148
  68. package/MigrationHubConfigClient.ts +0 -275
  69. package/commands/CreateHomeRegionControlCommand.ts +0 -98
  70. package/commands/DescribeHomeRegionControlsCommand.ts +0 -102
  71. package/commands/GetHomeRegionCommand.ts +0 -102
  72. package/dist/cjs/MigrationHubConfig.js.map +0 -1
  73. package/dist/cjs/MigrationHubConfigClient.js +0 -69
  74. package/dist/cjs/MigrationHubConfigClient.js.map +0 -1
  75. package/dist/cjs/commands/CreateHomeRegionControlCommand.js.map +0 -1
  76. package/dist/cjs/commands/DescribeHomeRegionControlsCommand.js.map +0 -1
  77. package/dist/cjs/commands/GetHomeRegionCommand.js.map +0 -1
  78. package/dist/cjs/endpoints.js.map +0 -1
  79. package/dist/cjs/index.js.map +0 -1
  80. package/dist/cjs/models/index.js.map +0 -1
  81. package/dist/cjs/models/models_0.js.map +0 -1
  82. package/dist/cjs/package.json +0 -91
  83. package/dist/cjs/pagination/DescribeHomeRegionControlsPaginator.js.map +0 -1
  84. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  85. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  86. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  87. package/dist/cjs/runtimeConfig.js.map +0 -1
  88. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  89. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  90. package/dist/es/MigrationHubConfig.js.map +0 -1
  91. package/dist/es/MigrationHubConfigClient.js.map +0 -1
  92. package/dist/es/commands/CreateHomeRegionControlCommand.js.map +0 -1
  93. package/dist/es/commands/DescribeHomeRegionControlsCommand.js.map +0 -1
  94. package/dist/es/commands/GetHomeRegionCommand.js.map +0 -1
  95. package/dist/es/endpoints.js.map +0 -1
  96. package/dist/es/index.js +0 -9
  97. package/dist/es/index.js.map +0 -1
  98. package/dist/es/models/index.js +0 -2
  99. package/dist/es/models/index.js.map +0 -1
  100. package/dist/es/models/models_0.js.map +0 -1
  101. package/dist/es/package.json +0 -91
  102. package/dist/es/pagination/DescribeHomeRegionControlsPaginator.js.map +0 -1
  103. package/dist/es/pagination/Interfaces.js +0 -2
  104. package/dist/es/pagination/Interfaces.js.map +0 -1
  105. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  106. package/dist/es/runtimeConfig.browser.js.map +0 -1
  107. package/dist/es/runtimeConfig.js.map +0 -1
  108. package/dist/es/runtimeConfig.native.js.map +0 -1
  109. package/dist/es/runtimeConfig.shared.js.map +0 -1
  110. package/dist/types/ts3.4/MigrationHubConfig.d.ts +0 -58
  111. package/dist/types/ts3.4/MigrationHubConfigClient.d.ts +0 -160
  112. package/dist/types/ts3.4/commands/GetHomeRegionCommand.d.ts +0 -39
  113. package/dist/types/ts3.4/models/models_0.d.ts +0 -258
  114. package/endpoints.ts +0 -57
  115. package/jest.config.js +0 -4
  116. package/models/models_0.ts +0 -325
  117. package/pagination/DescribeHomeRegionControlsPaginator.ts +0 -58
  118. package/pagination/Interfaces.ts +0 -7
  119. package/protocols/Aws_json1_1.ts +0 -662
  120. package/runtimeConfig.browser.ts +0 -40
  121. package/runtimeConfig.native.ts +0 -16
  122. package/runtimeConfig.shared.ts +0 -16
  123. package/runtimeConfig.ts +0 -45
  124. package/tsconfig.es.json +0 -10
  125. package/tsconfig.json +0 -31
  126. package/tsconfig.types.json +0 -8
@@ -1,258 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- /**
3
- * <p>You do not have sufficient access to perform this action.</p>
4
- */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
8
- Message?: string;
9
- }
10
- export declare namespace AccessDeniedException {
11
- /**
12
- * @internal
13
- */
14
- const filterSensitiveLog: (obj: AccessDeniedException) => any;
15
- }
16
- export declare enum TargetType {
17
- ACCOUNT = "ACCOUNT"
18
- }
19
- /**
20
- * <p>The target parameter specifies the identifier to which the home region is applied, which
21
- * is always an <code>ACCOUNT</code>. It applies the home region to the current
22
- * <code>ACCOUNT</code>.</p>
23
- */
24
- export interface Target {
25
- /**
26
- * <p>The target type is always an <code>ACCOUNT</code>.</p>
27
- */
28
- Type: TargetType | string | undefined;
29
- /**
30
- * <p>The <code>TargetID</code> is a 12-character identifier of the <code>ACCOUNT</code> for
31
- * which the control was created. (This must be the current account.) </p>
32
- */
33
- Id?: string;
34
- }
35
- export declare namespace Target {
36
- /**
37
- * @internal
38
- */
39
- const filterSensitiveLog: (obj: Target) => any;
40
- }
41
- export interface CreateHomeRegionControlRequest {
42
- /**
43
- * <p>The name of the home region of the calling account.</p>
44
- */
45
- HomeRegion: string | undefined;
46
- /**
47
- * <p>The account for which this command sets up a home region control. The <code>Target</code>
48
- * is always of type <code>ACCOUNT</code>.</p>
49
- */
50
- Target: Target | undefined;
51
- /**
52
- * <p>Optional Boolean flag to indicate whether any effect should take place. It tests whether
53
- * the caller has permission to make the call.</p>
54
- */
55
- DryRun?: boolean;
56
- }
57
- export declare namespace CreateHomeRegionControlRequest {
58
- /**
59
- * @internal
60
- */
61
- const filterSensitiveLog: (obj: CreateHomeRegionControlRequest) => any;
62
- }
63
- /**
64
- * <p>A home region control is an object that specifies the home region for an account, with
65
- * some additional information. It contains a target (always of type <code>ACCOUNT</code>), an
66
- * ID, and a time at which the home region was set.</p>
67
- */
68
- export interface HomeRegionControl {
69
- /**
70
- * <p>A unique identifier that's generated for each home region control. It's always a string
71
- * that begins with "hrc-" followed by 12 lowercase letters and numbers.</p>
72
- */
73
- ControlId?: string;
74
- /**
75
- * <p>The AWS Region that's been set as home region. For example, "us-west-2" or "eu-central-1"
76
- * are valid home regions.</p>
77
- */
78
- HomeRegion?: string;
79
- /**
80
- * <p>The target parameter specifies the identifier to which the home region is applied, which
81
- * is always an <code>ACCOUNT</code>. It applies the home region to the current
82
- * <code>ACCOUNT</code>.</p>
83
- */
84
- Target?: Target;
85
- /**
86
- * <p>A timestamp representing the time when the customer called
87
- * <code>CreateHomeregionControl</code> and set the home region for the account.</p>
88
- */
89
- RequestedTime?: Date;
90
- }
91
- export declare namespace HomeRegionControl {
92
- /**
93
- * @internal
94
- */
95
- const filterSensitiveLog: (obj: HomeRegionControl) => any;
96
- }
97
- export interface CreateHomeRegionControlResult {
98
- /**
99
- * <p>This object is the <code>HomeRegionControl</code> object that's returned by a successful
100
- * call to <code>CreateHomeRegionControl</code>.</p>
101
- */
102
- HomeRegionControl?: HomeRegionControl;
103
- }
104
- export declare namespace CreateHomeRegionControlResult {
105
- /**
106
- * @internal
107
- */
108
- const filterSensitiveLog: (obj: CreateHomeRegionControlResult) => any;
109
- }
110
- /**
111
- * <p>Exception raised to indicate that authorization of an action was successful, when the
112
- * <code>DryRun</code> flag is set to true.</p>
113
- */
114
- export interface DryRunOperation extends __SmithyException, $MetadataBearer {
115
- name: "DryRunOperation";
116
- $fault: "client";
117
- Message?: string;
118
- }
119
- export declare namespace DryRunOperation {
120
- /**
121
- * @internal
122
- */
123
- const filterSensitiveLog: (obj: DryRunOperation) => any;
124
- }
125
- /**
126
- * <p>Exception raised when an internal, configuration, or dependency error is
127
- * encountered.</p>
128
- */
129
- export interface InternalServerError extends __SmithyException, $MetadataBearer {
130
- name: "InternalServerError";
131
- $fault: "server";
132
- Message?: string;
133
- }
134
- export declare namespace InternalServerError {
135
- /**
136
- * @internal
137
- */
138
- const filterSensitiveLog: (obj: InternalServerError) => any;
139
- }
140
- /**
141
- * <p>Exception raised when the provided input violates a policy constraint or is entered in the
142
- * wrong format or data type.</p>
143
- */
144
- export interface InvalidInputException extends __SmithyException, $MetadataBearer {
145
- name: "InvalidInputException";
146
- $fault: "client";
147
- Message?: string;
148
- }
149
- export declare namespace InvalidInputException {
150
- /**
151
- * @internal
152
- */
153
- const filterSensitiveLog: (obj: InvalidInputException) => any;
154
- }
155
- /**
156
- * <p>Exception raised when a request fails due to temporary unavailability of the
157
- * service.</p>
158
- */
159
- export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
160
- name: "ServiceUnavailableException";
161
- $fault: "server";
162
- Message?: string;
163
- }
164
- export declare namespace ServiceUnavailableException {
165
- /**
166
- * @internal
167
- */
168
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
169
- }
170
- /**
171
- * <p>The request was denied due to request throttling.</p>
172
- */
173
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
174
- name: "ThrottlingException";
175
- $fault: "client";
176
- Message: string | undefined;
177
- /**
178
- * <p>The number of seconds the caller should wait before retrying.</p>
179
- */
180
- RetryAfterSeconds?: number;
181
- }
182
- export declare namespace ThrottlingException {
183
- /**
184
- * @internal
185
- */
186
- const filterSensitiveLog: (obj: ThrottlingException) => any;
187
- }
188
- export interface DescribeHomeRegionControlsRequest {
189
- /**
190
- * <p>The <code>ControlID</code> is a unique identifier string of your
191
- * <code>HomeRegionControl</code> object.</p>
192
- */
193
- ControlId?: string;
194
- /**
195
- * <p>The name of the home region you'd like to view.</p>
196
- */
197
- HomeRegion?: string;
198
- /**
199
- * <p>The target parameter specifies the identifier to which the home region is applied, which
200
- * is always of type <code>ACCOUNT</code>. It applies the home region to the current
201
- * <code>ACCOUNT</code>.</p>
202
- */
203
- Target?: Target;
204
- /**
205
- * <p>The maximum number of filtering results to display per page. </p>
206
- */
207
- MaxResults?: number;
208
- /**
209
- * <p>If a <code>NextToken</code> was returned by a previous call, more results are available.
210
- * To retrieve the next page of results, make the call again using the returned token in
211
- * <code>NextToken</code>.</p>
212
- */
213
- NextToken?: string;
214
- }
215
- export declare namespace DescribeHomeRegionControlsRequest {
216
- /**
217
- * @internal
218
- */
219
- const filterSensitiveLog: (obj: DescribeHomeRegionControlsRequest) => any;
220
- }
221
- export interface DescribeHomeRegionControlsResult {
222
- /**
223
- * <p>An array that contains your <code>HomeRegionControl</code> objects.</p>
224
- */
225
- HomeRegionControls?: HomeRegionControl[];
226
- /**
227
- * <p>If a <code>NextToken</code> was returned by a previous call, more results are available.
228
- * To retrieve the next page of results, make the call again using the returned token in
229
- * <code>NextToken</code>.</p>
230
- */
231
- NextToken?: string;
232
- }
233
- export declare namespace DescribeHomeRegionControlsResult {
234
- /**
235
- * @internal
236
- */
237
- const filterSensitiveLog: (obj: DescribeHomeRegionControlsResult) => any;
238
- }
239
- export interface GetHomeRegionRequest {
240
- }
241
- export declare namespace GetHomeRegionRequest {
242
- /**
243
- * @internal
244
- */
245
- const filterSensitiveLog: (obj: GetHomeRegionRequest) => any;
246
- }
247
- export interface GetHomeRegionResult {
248
- /**
249
- * <p>The name of the home region of the calling account.</p>
250
- */
251
- HomeRegion?: string;
252
- }
253
- export declare namespace GetHomeRegionResult {
254
- /**
255
- * @internal
256
- */
257
- const filterSensitiveLog: (obj: GetHomeRegionResult) => any;
258
- }
package/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } 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/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: "ts-jest",
3
- testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
4
- };
@@ -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,58 +0,0 @@
1
- import { MigrationHubConfig } from "../MigrationHubConfig";
2
- import { MigrationHubConfigClient } from "../MigrationHubConfigClient";
3
- import {
4
- DescribeHomeRegionControlsCommand,
5
- DescribeHomeRegionControlsCommandInput,
6
- DescribeHomeRegionControlsCommandOutput,
7
- } from "../commands/DescribeHomeRegionControlsCommand";
8
- import { MigrationHubConfigPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
-
11
- /**
12
- * @private
13
- */
14
- const makePagedClientRequest = async (
15
- client: MigrationHubConfigClient,
16
- input: DescribeHomeRegionControlsCommandInput,
17
- ...args: any
18
- ): Promise<DescribeHomeRegionControlsCommandOutput> => {
19
- // @ts-ignore
20
- return await client.send(new DescribeHomeRegionControlsCommand(input), ...args);
21
- };
22
- /**
23
- * @private
24
- */
25
- const makePagedRequest = async (
26
- client: MigrationHubConfig,
27
- input: DescribeHomeRegionControlsCommandInput,
28
- ...args: any
29
- ): Promise<DescribeHomeRegionControlsCommandOutput> => {
30
- // @ts-ignore
31
- return await client.describeHomeRegionControls(input, ...args);
32
- };
33
- export async function* paginateDescribeHomeRegionControls(
34
- config: MigrationHubConfigPaginationConfiguration,
35
- input: DescribeHomeRegionControlsCommandInput,
36
- ...additionalArguments: any
37
- ): Paginator<DescribeHomeRegionControlsCommandOutput> {
38
- // ToDo: replace with actual type instead of typeof input.NextToken
39
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
40
- let hasNext = true;
41
- let page: DescribeHomeRegionControlsCommandOutput;
42
- while (hasNext) {
43
- input.NextToken = token;
44
- input["MaxResults"] = config.pageSize;
45
- if (config.client instanceof MigrationHubConfig) {
46
- page = await makePagedRequest(config.client, input, ...additionalArguments);
47
- } else if (config.client instanceof MigrationHubConfigClient) {
48
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
49
- } else {
50
- throw new Error("Invalid client, expected MigrationHubConfig | MigrationHubConfigClient");
51
- }
52
- yield page;
53
- token = page.NextToken;
54
- hasNext = !!token;
55
- }
56
- // @ts-ignore
57
- return undefined;
58
- }