@aws-sdk/client-migration-hub-refactor-spaces 3.43.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 (172) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +215 -0
  4. package/dist-cjs/MigrationHubRefactorSpaces.js +352 -0
  5. package/dist-cjs/MigrationHubRefactorSpacesClient.js +35 -0
  6. package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
  7. package/dist-cjs/commands/CreateEnvironmentCommand.js +36 -0
  8. package/dist-cjs/commands/CreateRouteCommand.js +36 -0
  9. package/dist-cjs/commands/CreateServiceCommand.js +36 -0
  10. package/dist-cjs/commands/DeleteApplicationCommand.js +36 -0
  11. package/dist-cjs/commands/DeleteEnvironmentCommand.js +36 -0
  12. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +36 -0
  13. package/dist-cjs/commands/DeleteRouteCommand.js +36 -0
  14. package/dist-cjs/commands/DeleteServiceCommand.js +36 -0
  15. package/dist-cjs/commands/GetApplicationCommand.js +36 -0
  16. package/dist-cjs/commands/GetEnvironmentCommand.js +36 -0
  17. package/dist-cjs/commands/GetResourcePolicyCommand.js +36 -0
  18. package/dist-cjs/commands/GetRouteCommand.js +36 -0
  19. package/dist-cjs/commands/GetServiceCommand.js +36 -0
  20. package/dist-cjs/commands/ListApplicationsCommand.js +36 -0
  21. package/dist-cjs/commands/ListEnvironmentVpcsCommand.js +36 -0
  22. package/dist-cjs/commands/ListEnvironmentsCommand.js +36 -0
  23. package/dist-cjs/commands/ListRoutesCommand.js +36 -0
  24. package/dist-cjs/commands/ListServicesCommand.js +36 -0
  25. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  26. package/dist-cjs/commands/PutResourcePolicyCommand.js +36 -0
  27. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  28. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  29. package/dist-cjs/commands/index.js +26 -0
  30. package/dist-cjs/endpoints.js +130 -0
  31. package/dist-cjs/index.js +8 -0
  32. package/dist-cjs/models/index.js +4 -0
  33. package/dist-cjs/models/models_0.js +561 -0
  34. package/dist-cjs/pagination/Interfaces.js +2 -0
  35. package/dist-cjs/pagination/ListApplicationsPaginator.js +35 -0
  36. package/dist-cjs/pagination/ListEnvironmentVpcsPaginator.js +35 -0
  37. package/dist-cjs/pagination/ListEnvironmentsPaginator.js +35 -0
  38. package/dist-cjs/pagination/ListRoutesPaginator.js +35 -0
  39. package/dist-cjs/pagination/ListServicesPaginator.js +35 -0
  40. package/dist-cjs/pagination/index.js +9 -0
  41. package/dist-cjs/protocols/Aws_restJson1.js +3834 -0
  42. package/dist-cjs/runtimeConfig.browser.js +40 -0
  43. package/dist-cjs/runtimeConfig.js +44 -0
  44. package/dist-cjs/runtimeConfig.native.js +16 -0
  45. package/dist-cjs/runtimeConfig.shared.js +17 -0
  46. package/dist-es/MigrationHubRefactorSpaces.js +355 -0
  47. package/dist-es/MigrationHubRefactorSpacesClient.js +37 -0
  48. package/dist-es/commands/CreateApplicationCommand.js +39 -0
  49. package/dist-es/commands/CreateEnvironmentCommand.js +39 -0
  50. package/dist-es/commands/CreateRouteCommand.js +39 -0
  51. package/dist-es/commands/CreateServiceCommand.js +39 -0
  52. package/dist-es/commands/DeleteApplicationCommand.js +39 -0
  53. package/dist-es/commands/DeleteEnvironmentCommand.js +39 -0
  54. package/dist-es/commands/DeleteResourcePolicyCommand.js +39 -0
  55. package/dist-es/commands/DeleteRouteCommand.js +39 -0
  56. package/dist-es/commands/DeleteServiceCommand.js +39 -0
  57. package/dist-es/commands/GetApplicationCommand.js +39 -0
  58. package/dist-es/commands/GetEnvironmentCommand.js +39 -0
  59. package/dist-es/commands/GetResourcePolicyCommand.js +39 -0
  60. package/dist-es/commands/GetRouteCommand.js +39 -0
  61. package/dist-es/commands/GetServiceCommand.js +39 -0
  62. package/dist-es/commands/ListApplicationsCommand.js +39 -0
  63. package/dist-es/commands/ListEnvironmentVpcsCommand.js +39 -0
  64. package/dist-es/commands/ListEnvironmentsCommand.js +39 -0
  65. package/dist-es/commands/ListRoutesCommand.js +39 -0
  66. package/dist-es/commands/ListServicesCommand.js +39 -0
  67. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  68. package/dist-es/commands/PutResourcePolicyCommand.js +39 -0
  69. package/dist-es/commands/TagResourceCommand.js +39 -0
  70. package/dist-es/commands/UntagResourceCommand.js +39 -0
  71. package/dist-es/commands/index.js +23 -0
  72. package/dist-es/endpoints.js +126 -0
  73. package/dist-es/index.js +5 -0
  74. package/dist-es/models/index.js +1 -0
  75. package/dist-es/models/models_0.js +395 -0
  76. package/dist-es/pagination/Interfaces.js +1 -0
  77. package/dist-es/pagination/ListApplicationsPaginator.js +74 -0
  78. package/dist-es/pagination/ListEnvironmentVpcsPaginator.js +74 -0
  79. package/dist-es/pagination/ListEnvironmentsPaginator.js +74 -0
  80. package/dist-es/pagination/ListRoutesPaginator.js +74 -0
  81. package/dist-es/pagination/ListServicesPaginator.js +74 -0
  82. package/dist-es/pagination/index.js +6 -0
  83. package/dist-es/protocols/Aws_restJson1.js +4225 -0
  84. package/dist-es/runtimeConfig.browser.js +17 -0
  85. package/dist-es/runtimeConfig.js +21 -0
  86. package/dist-es/runtimeConfig.native.js +8 -0
  87. package/dist-es/runtimeConfig.shared.js +13 -0
  88. package/dist-types/MigrationHubRefactorSpaces.d.ts +240 -0
  89. package/dist-types/MigrationHubRefactorSpacesClient.d.ts +169 -0
  90. package/dist-types/commands/CreateApplicationCommand.d.ts +38 -0
  91. package/dist-types/commands/CreateEnvironmentCommand.d.ts +39 -0
  92. package/dist-types/commands/CreateRouteCommand.d.ts +70 -0
  93. package/dist-types/commands/CreateServiceCommand.d.ts +44 -0
  94. package/dist-types/commands/DeleteApplicationCommand.d.ts +36 -0
  95. package/dist-types/commands/DeleteEnvironmentCommand.d.ts +36 -0
  96. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +35 -0
  97. package/dist-types/commands/DeleteRouteCommand.d.ts +35 -0
  98. package/dist-types/commands/DeleteServiceCommand.d.ts +35 -0
  99. package/dist-types/commands/GetApplicationCommand.d.ts +35 -0
  100. package/dist-types/commands/GetEnvironmentCommand.d.ts +35 -0
  101. package/dist-types/commands/GetResourcePolicyCommand.d.ts +35 -0
  102. package/dist-types/commands/GetRouteCommand.d.ts +35 -0
  103. package/dist-types/commands/GetServiceCommand.d.ts +35 -0
  104. package/dist-types/commands/ListApplicationsCommand.d.ts +35 -0
  105. package/dist-types/commands/ListEnvironmentVpcsCommand.d.ts +35 -0
  106. package/dist-types/commands/ListEnvironmentsCommand.d.ts +36 -0
  107. package/dist-types/commands/ListRoutesCommand.d.ts +35 -0
  108. package/dist-types/commands/ListServicesCommand.d.ts +35 -0
  109. package/dist-types/commands/ListTagsForResourceCommand.d.ts +36 -0
  110. package/dist-types/commands/PutResourcePolicyCommand.d.ts +38 -0
  111. package/dist-types/commands/TagResourceCommand.d.ts +41 -0
  112. package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
  113. package/dist-types/commands/index.d.ts +23 -0
  114. package/dist-types/endpoints.d.ts +2 -0
  115. package/dist-types/index.d.ts +5 -0
  116. package/dist-types/models/index.d.ts +1 -0
  117. package/dist-types/models/models_0.d.ts +2193 -0
  118. package/dist-types/pagination/Interfaces.d.ts +6 -0
  119. package/dist-types/pagination/ListApplicationsPaginator.d.ts +4 -0
  120. package/dist-types/pagination/ListEnvironmentVpcsPaginator.d.ts +4 -0
  121. package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +4 -0
  122. package/dist-types/pagination/ListRoutesPaginator.d.ts +4 -0
  123. package/dist-types/pagination/ListServicesPaginator.d.ts +4 -0
  124. package/dist-types/pagination/index.d.ts +6 -0
  125. package/dist-types/protocols/Aws_restJson1.d.ts +71 -0
  126. package/dist-types/runtimeConfig.browser.d.ts +39 -0
  127. package/dist-types/runtimeConfig.d.ts +39 -0
  128. package/dist-types/runtimeConfig.native.d.ts +38 -0
  129. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  130. package/dist-types/ts3.4/MigrationHubRefactorSpaces.d.ts +120 -0
  131. package/dist-types/ts3.4/MigrationHubRefactorSpacesClient.d.ts +94 -0
  132. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
  133. package/dist-types/ts3.4/commands/CreateEnvironmentCommand.d.ts +17 -0
  134. package/dist-types/ts3.4/commands/CreateRouteCommand.d.ts +17 -0
  135. package/dist-types/ts3.4/commands/CreateServiceCommand.d.ts +17 -0
  136. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
  137. package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +17 -0
  138. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +17 -0
  139. package/dist-types/ts3.4/commands/DeleteRouteCommand.d.ts +17 -0
  140. package/dist-types/ts3.4/commands/DeleteServiceCommand.d.ts +17 -0
  141. package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +17 -0
  142. package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +17 -0
  143. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +17 -0
  144. package/dist-types/ts3.4/commands/GetRouteCommand.d.ts +17 -0
  145. package/dist-types/ts3.4/commands/GetServiceCommand.d.ts +17 -0
  146. package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +17 -0
  147. package/dist-types/ts3.4/commands/ListEnvironmentVpcsCommand.d.ts +17 -0
  148. package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +17 -0
  149. package/dist-types/ts3.4/commands/ListRoutesCommand.d.ts +17 -0
  150. package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +17 -0
  151. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  152. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +17 -0
  153. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  154. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  155. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  156. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  157. package/dist-types/ts3.4/index.d.ts +5 -0
  158. package/dist-types/ts3.4/models/index.d.ts +1 -0
  159. package/dist-types/ts3.4/models/models_0.d.ts +1267 -0
  160. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  161. package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +4 -0
  162. package/dist-types/ts3.4/pagination/ListEnvironmentVpcsPaginator.d.ts +4 -0
  163. package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +4 -0
  164. package/dist-types/ts3.4/pagination/ListRoutesPaginator.d.ts +4 -0
  165. package/dist-types/ts3.4/pagination/ListServicesPaginator.d.ts +4 -0
  166. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  167. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +71 -0
  168. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
  169. package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
  170. package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
  171. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  172. package/package.json +96 -0
@@ -0,0 +1,352 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MigrationHubRefactorSpaces = void 0;
4
+ const CreateApplicationCommand_1 = require("./commands/CreateApplicationCommand");
5
+ const CreateEnvironmentCommand_1 = require("./commands/CreateEnvironmentCommand");
6
+ const CreateRouteCommand_1 = require("./commands/CreateRouteCommand");
7
+ const CreateServiceCommand_1 = require("./commands/CreateServiceCommand");
8
+ const DeleteApplicationCommand_1 = require("./commands/DeleteApplicationCommand");
9
+ const DeleteEnvironmentCommand_1 = require("./commands/DeleteEnvironmentCommand");
10
+ const DeleteResourcePolicyCommand_1 = require("./commands/DeleteResourcePolicyCommand");
11
+ const DeleteRouteCommand_1 = require("./commands/DeleteRouteCommand");
12
+ const DeleteServiceCommand_1 = require("./commands/DeleteServiceCommand");
13
+ const GetApplicationCommand_1 = require("./commands/GetApplicationCommand");
14
+ const GetEnvironmentCommand_1 = require("./commands/GetEnvironmentCommand");
15
+ const GetResourcePolicyCommand_1 = require("./commands/GetResourcePolicyCommand");
16
+ const GetRouteCommand_1 = require("./commands/GetRouteCommand");
17
+ const GetServiceCommand_1 = require("./commands/GetServiceCommand");
18
+ const ListApplicationsCommand_1 = require("./commands/ListApplicationsCommand");
19
+ const ListEnvironmentsCommand_1 = require("./commands/ListEnvironmentsCommand");
20
+ const ListEnvironmentVpcsCommand_1 = require("./commands/ListEnvironmentVpcsCommand");
21
+ const ListRoutesCommand_1 = require("./commands/ListRoutesCommand");
22
+ const ListServicesCommand_1 = require("./commands/ListServicesCommand");
23
+ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
24
+ const PutResourcePolicyCommand_1 = require("./commands/PutResourcePolicyCommand");
25
+ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
26
+ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
27
+ const MigrationHubRefactorSpacesClient_1 = require("./MigrationHubRefactorSpacesClient");
28
+ class MigrationHubRefactorSpaces extends MigrationHubRefactorSpacesClient_1.MigrationHubRefactorSpacesClient {
29
+ createApplication(args, optionsOrCb, cb) {
30
+ const command = new CreateApplicationCommand_1.CreateApplicationCommand(args);
31
+ if (typeof optionsOrCb === "function") {
32
+ this.send(command, optionsOrCb);
33
+ }
34
+ else if (typeof cb === "function") {
35
+ if (typeof optionsOrCb !== "object")
36
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
+ this.send(command, optionsOrCb || {}, cb);
38
+ }
39
+ else {
40
+ return this.send(command, optionsOrCb);
41
+ }
42
+ }
43
+ createEnvironment(args, optionsOrCb, cb) {
44
+ const command = new CreateEnvironmentCommand_1.CreateEnvironmentCommand(args);
45
+ if (typeof optionsOrCb === "function") {
46
+ this.send(command, optionsOrCb);
47
+ }
48
+ else if (typeof cb === "function") {
49
+ if (typeof optionsOrCb !== "object")
50
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
+ this.send(command, optionsOrCb || {}, cb);
52
+ }
53
+ else {
54
+ return this.send(command, optionsOrCb);
55
+ }
56
+ }
57
+ createRoute(args, optionsOrCb, cb) {
58
+ const command = new CreateRouteCommand_1.CreateRouteCommand(args);
59
+ if (typeof optionsOrCb === "function") {
60
+ this.send(command, optionsOrCb);
61
+ }
62
+ else if (typeof cb === "function") {
63
+ if (typeof optionsOrCb !== "object")
64
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
+ this.send(command, optionsOrCb || {}, cb);
66
+ }
67
+ else {
68
+ return this.send(command, optionsOrCb);
69
+ }
70
+ }
71
+ createService(args, optionsOrCb, cb) {
72
+ const command = new CreateServiceCommand_1.CreateServiceCommand(args);
73
+ if (typeof optionsOrCb === "function") {
74
+ this.send(command, optionsOrCb);
75
+ }
76
+ else if (typeof cb === "function") {
77
+ if (typeof optionsOrCb !== "object")
78
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
+ this.send(command, optionsOrCb || {}, cb);
80
+ }
81
+ else {
82
+ return this.send(command, optionsOrCb);
83
+ }
84
+ }
85
+ deleteApplication(args, optionsOrCb, cb) {
86
+ const command = new DeleteApplicationCommand_1.DeleteApplicationCommand(args);
87
+ if (typeof optionsOrCb === "function") {
88
+ this.send(command, optionsOrCb);
89
+ }
90
+ else if (typeof cb === "function") {
91
+ if (typeof optionsOrCb !== "object")
92
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
+ this.send(command, optionsOrCb || {}, cb);
94
+ }
95
+ else {
96
+ return this.send(command, optionsOrCb);
97
+ }
98
+ }
99
+ deleteEnvironment(args, optionsOrCb, cb) {
100
+ const command = new DeleteEnvironmentCommand_1.DeleteEnvironmentCommand(args);
101
+ if (typeof optionsOrCb === "function") {
102
+ this.send(command, optionsOrCb);
103
+ }
104
+ else if (typeof cb === "function") {
105
+ if (typeof optionsOrCb !== "object")
106
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
+ this.send(command, optionsOrCb || {}, cb);
108
+ }
109
+ else {
110
+ return this.send(command, optionsOrCb);
111
+ }
112
+ }
113
+ deleteResourcePolicy(args, optionsOrCb, cb) {
114
+ const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
115
+ if (typeof optionsOrCb === "function") {
116
+ this.send(command, optionsOrCb);
117
+ }
118
+ else if (typeof cb === "function") {
119
+ if (typeof optionsOrCb !== "object")
120
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
+ this.send(command, optionsOrCb || {}, cb);
122
+ }
123
+ else {
124
+ return this.send(command, optionsOrCb);
125
+ }
126
+ }
127
+ deleteRoute(args, optionsOrCb, cb) {
128
+ const command = new DeleteRouteCommand_1.DeleteRouteCommand(args);
129
+ if (typeof optionsOrCb === "function") {
130
+ this.send(command, optionsOrCb);
131
+ }
132
+ else if (typeof cb === "function") {
133
+ if (typeof optionsOrCb !== "object")
134
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
+ this.send(command, optionsOrCb || {}, cb);
136
+ }
137
+ else {
138
+ return this.send(command, optionsOrCb);
139
+ }
140
+ }
141
+ deleteService(args, optionsOrCb, cb) {
142
+ const command = new DeleteServiceCommand_1.DeleteServiceCommand(args);
143
+ if (typeof optionsOrCb === "function") {
144
+ this.send(command, optionsOrCb);
145
+ }
146
+ else if (typeof cb === "function") {
147
+ if (typeof optionsOrCb !== "object")
148
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
+ this.send(command, optionsOrCb || {}, cb);
150
+ }
151
+ else {
152
+ return this.send(command, optionsOrCb);
153
+ }
154
+ }
155
+ getApplication(args, optionsOrCb, cb) {
156
+ const command = new GetApplicationCommand_1.GetApplicationCommand(args);
157
+ if (typeof optionsOrCb === "function") {
158
+ this.send(command, optionsOrCb);
159
+ }
160
+ else if (typeof cb === "function") {
161
+ if (typeof optionsOrCb !== "object")
162
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
+ this.send(command, optionsOrCb || {}, cb);
164
+ }
165
+ else {
166
+ return this.send(command, optionsOrCb);
167
+ }
168
+ }
169
+ getEnvironment(args, optionsOrCb, cb) {
170
+ const command = new GetEnvironmentCommand_1.GetEnvironmentCommand(args);
171
+ if (typeof optionsOrCb === "function") {
172
+ this.send(command, optionsOrCb);
173
+ }
174
+ else if (typeof cb === "function") {
175
+ if (typeof optionsOrCb !== "object")
176
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
+ this.send(command, optionsOrCb || {}, cb);
178
+ }
179
+ else {
180
+ return this.send(command, optionsOrCb);
181
+ }
182
+ }
183
+ getResourcePolicy(args, optionsOrCb, cb) {
184
+ const command = new GetResourcePolicyCommand_1.GetResourcePolicyCommand(args);
185
+ if (typeof optionsOrCb === "function") {
186
+ this.send(command, optionsOrCb);
187
+ }
188
+ else if (typeof cb === "function") {
189
+ if (typeof optionsOrCb !== "object")
190
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
+ this.send(command, optionsOrCb || {}, cb);
192
+ }
193
+ else {
194
+ return this.send(command, optionsOrCb);
195
+ }
196
+ }
197
+ getRoute(args, optionsOrCb, cb) {
198
+ const command = new GetRouteCommand_1.GetRouteCommand(args);
199
+ if (typeof optionsOrCb === "function") {
200
+ this.send(command, optionsOrCb);
201
+ }
202
+ else if (typeof cb === "function") {
203
+ if (typeof optionsOrCb !== "object")
204
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
+ this.send(command, optionsOrCb || {}, cb);
206
+ }
207
+ else {
208
+ return this.send(command, optionsOrCb);
209
+ }
210
+ }
211
+ getService(args, optionsOrCb, cb) {
212
+ const command = new GetServiceCommand_1.GetServiceCommand(args);
213
+ if (typeof optionsOrCb === "function") {
214
+ this.send(command, optionsOrCb);
215
+ }
216
+ else if (typeof cb === "function") {
217
+ if (typeof optionsOrCb !== "object")
218
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
+ this.send(command, optionsOrCb || {}, cb);
220
+ }
221
+ else {
222
+ return this.send(command, optionsOrCb);
223
+ }
224
+ }
225
+ listApplications(args, optionsOrCb, cb) {
226
+ const command = new ListApplicationsCommand_1.ListApplicationsCommand(args);
227
+ if (typeof optionsOrCb === "function") {
228
+ this.send(command, optionsOrCb);
229
+ }
230
+ else if (typeof cb === "function") {
231
+ if (typeof optionsOrCb !== "object")
232
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
+ this.send(command, optionsOrCb || {}, cb);
234
+ }
235
+ else {
236
+ return this.send(command, optionsOrCb);
237
+ }
238
+ }
239
+ listEnvironments(args, optionsOrCb, cb) {
240
+ const command = new ListEnvironmentsCommand_1.ListEnvironmentsCommand(args);
241
+ if (typeof optionsOrCb === "function") {
242
+ this.send(command, optionsOrCb);
243
+ }
244
+ else if (typeof cb === "function") {
245
+ if (typeof optionsOrCb !== "object")
246
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
+ this.send(command, optionsOrCb || {}, cb);
248
+ }
249
+ else {
250
+ return this.send(command, optionsOrCb);
251
+ }
252
+ }
253
+ listEnvironmentVpcs(args, optionsOrCb, cb) {
254
+ const command = new ListEnvironmentVpcsCommand_1.ListEnvironmentVpcsCommand(args);
255
+ if (typeof optionsOrCb === "function") {
256
+ this.send(command, optionsOrCb);
257
+ }
258
+ else if (typeof cb === "function") {
259
+ if (typeof optionsOrCb !== "object")
260
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
+ this.send(command, optionsOrCb || {}, cb);
262
+ }
263
+ else {
264
+ return this.send(command, optionsOrCb);
265
+ }
266
+ }
267
+ listRoutes(args, optionsOrCb, cb) {
268
+ const command = new ListRoutesCommand_1.ListRoutesCommand(args);
269
+ if (typeof optionsOrCb === "function") {
270
+ this.send(command, optionsOrCb);
271
+ }
272
+ else if (typeof cb === "function") {
273
+ if (typeof optionsOrCb !== "object")
274
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
+ this.send(command, optionsOrCb || {}, cb);
276
+ }
277
+ else {
278
+ return this.send(command, optionsOrCb);
279
+ }
280
+ }
281
+ listServices(args, optionsOrCb, cb) {
282
+ const command = new ListServicesCommand_1.ListServicesCommand(args);
283
+ if (typeof optionsOrCb === "function") {
284
+ this.send(command, optionsOrCb);
285
+ }
286
+ else if (typeof cb === "function") {
287
+ if (typeof optionsOrCb !== "object")
288
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
+ this.send(command, optionsOrCb || {}, cb);
290
+ }
291
+ else {
292
+ return this.send(command, optionsOrCb);
293
+ }
294
+ }
295
+ listTagsForResource(args, optionsOrCb, cb) {
296
+ const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
297
+ if (typeof optionsOrCb === "function") {
298
+ this.send(command, optionsOrCb);
299
+ }
300
+ else if (typeof cb === "function") {
301
+ if (typeof optionsOrCb !== "object")
302
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
+ this.send(command, optionsOrCb || {}, cb);
304
+ }
305
+ else {
306
+ return this.send(command, optionsOrCb);
307
+ }
308
+ }
309
+ putResourcePolicy(args, optionsOrCb, cb) {
310
+ const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
311
+ if (typeof optionsOrCb === "function") {
312
+ this.send(command, optionsOrCb);
313
+ }
314
+ else if (typeof cb === "function") {
315
+ if (typeof optionsOrCb !== "object")
316
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
+ this.send(command, optionsOrCb || {}, cb);
318
+ }
319
+ else {
320
+ return this.send(command, optionsOrCb);
321
+ }
322
+ }
323
+ tagResource(args, optionsOrCb, cb) {
324
+ const command = new TagResourceCommand_1.TagResourceCommand(args);
325
+ if (typeof optionsOrCb === "function") {
326
+ this.send(command, optionsOrCb);
327
+ }
328
+ else if (typeof cb === "function") {
329
+ if (typeof optionsOrCb !== "object")
330
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
+ this.send(command, optionsOrCb || {}, cb);
332
+ }
333
+ else {
334
+ return this.send(command, optionsOrCb);
335
+ }
336
+ }
337
+ untagResource(args, optionsOrCb, cb) {
338
+ const command = new UntagResourceCommand_1.UntagResourceCommand(args);
339
+ if (typeof optionsOrCb === "function") {
340
+ this.send(command, optionsOrCb);
341
+ }
342
+ else if (typeof cb === "function") {
343
+ if (typeof optionsOrCb !== "object")
344
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
+ this.send(command, optionsOrCb || {}, cb);
346
+ }
347
+ else {
348
+ return this.send(command, optionsOrCb);
349
+ }
350
+ }
351
+ }
352
+ exports.MigrationHubRefactorSpaces = MigrationHubRefactorSpaces;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MigrationHubRefactorSpacesClient = void 0;
4
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
+ const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
+ const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
+ const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
+ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
+ const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
+ const runtimeConfig_1 = require("./runtimeConfig");
13
+ class MigrationHubRefactorSpacesClient extends smithy_client_1.Client {
14
+ constructor(configuration) {
15
+ const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
16
+ const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
17
+ const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
18
+ const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
19
+ const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
20
+ const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
21
+ const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
22
+ super(_config_6);
23
+ this.config = _config_6;
24
+ this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
25
+ this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
26
+ this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
27
+ this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
28
+ this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
29
+ this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
30
+ }
31
+ destroy() {
32
+ super.destroy();
33
+ }
34
+ }
35
+ exports.MigrationHubRefactorSpacesClient = MigrationHubRefactorSpacesClient;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateApplicationCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateApplicationCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "MigrationHubRefactorSpacesClient";
18
+ const commandName = "CreateApplicationCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateApplicationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateApplicationResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateApplicationCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateApplicationCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateApplicationCommand = CreateApplicationCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateEnvironmentCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateEnvironmentCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "MigrationHubRefactorSpacesClient";
18
+ const commandName = "CreateEnvironmentCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateEnvironmentRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateEnvironmentResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateEnvironmentCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateEnvironmentCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateEnvironmentCommand = CreateEnvironmentCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateRouteCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateRouteCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "MigrationHubRefactorSpacesClient";
18
+ const commandName = "CreateRouteCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateRouteRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateRouteResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateRouteCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateRouteCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateRouteCommand = CreateRouteCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateServiceCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateServiceCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "MigrationHubRefactorSpacesClient";
18
+ const commandName = "CreateServiceCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateServiceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateServiceResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateServiceCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateServiceCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateServiceCommand = CreateServiceCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteApplicationCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteApplicationCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "MigrationHubRefactorSpacesClient";
18
+ const commandName = "DeleteApplicationCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteApplicationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteApplicationResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DeleteApplicationCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DeleteApplicationCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteApplicationCommand = DeleteApplicationCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteEnvironmentCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteEnvironmentCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "MigrationHubRefactorSpacesClient";
18
+ const commandName = "DeleteEnvironmentCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteEnvironmentRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteEnvironmentResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DeleteEnvironmentCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DeleteEnvironmentCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteResourcePolicyCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteResourcePolicyCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "MigrationHubRefactorSpacesClient";
18
+ const commandName = "DeleteResourcePolicyCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteResourcePolicyRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteResourcePolicyResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DeleteResourcePolicyCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DeleteResourcePolicyCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;