@aws-sdk/client-mgn 3.215.0 → 3.218.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 (132) hide show
  1. package/README.md +7 -7
  2. package/dist-cjs/Mgn.js +330 -0
  3. package/dist-cjs/commands/ArchiveApplicationCommand.js +46 -0
  4. package/dist-cjs/commands/ArchiveWaveCommand.js +46 -0
  5. package/dist-cjs/commands/AssociateApplicationsCommand.js +46 -0
  6. package/dist-cjs/commands/AssociateSourceServersCommand.js +46 -0
  7. package/dist-cjs/commands/CreateApplicationCommand.js +46 -0
  8. package/dist-cjs/commands/CreateWaveCommand.js +46 -0
  9. package/dist-cjs/commands/DeleteApplicationCommand.js +46 -0
  10. package/dist-cjs/commands/DeleteWaveCommand.js +46 -0
  11. package/dist-cjs/commands/DisassociateApplicationsCommand.js +46 -0
  12. package/dist-cjs/commands/DisassociateSourceServersCommand.js +46 -0
  13. package/dist-cjs/commands/ListApplicationsCommand.js +46 -0
  14. package/dist-cjs/commands/ListSourceServerActionsCommand.js +46 -0
  15. package/dist-cjs/commands/ListTemplateActionsCommand.js +46 -0
  16. package/dist-cjs/commands/ListWavesCommand.js +46 -0
  17. package/dist-cjs/commands/PutSourceServerActionCommand.js +46 -0
  18. package/dist-cjs/commands/PutTemplateActionCommand.js +46 -0
  19. package/dist-cjs/commands/RemoveSourceServerActionCommand.js +46 -0
  20. package/dist-cjs/commands/RemoveTemplateActionCommand.js +46 -0
  21. package/dist-cjs/commands/UnarchiveApplicationCommand.js +46 -0
  22. package/dist-cjs/commands/UnarchiveWaveCommand.js +46 -0
  23. package/dist-cjs/commands/UpdateApplicationCommand.js +46 -0
  24. package/dist-cjs/commands/UpdateWaveCommand.js +46 -0
  25. package/dist-cjs/commands/index.js +22 -0
  26. package/dist-cjs/models/models_0.js +290 -68
  27. package/dist-cjs/pagination/ListApplicationsPaginator.js +36 -0
  28. package/dist-cjs/pagination/ListSourceServerActionsPaginator.js +36 -0
  29. package/dist-cjs/pagination/ListTemplateActionsPaginator.js +36 -0
  30. package/dist-cjs/pagination/ListWavesPaginator.js +36 -0
  31. package/dist-cjs/pagination/index.js +4 -0
  32. package/dist-cjs/protocols/Aws_restJson1.js +2540 -507
  33. package/dist-es/Mgn.js +330 -0
  34. package/dist-es/commands/ArchiveApplicationCommand.js +42 -0
  35. package/dist-es/commands/ArchiveWaveCommand.js +42 -0
  36. package/dist-es/commands/AssociateApplicationsCommand.js +42 -0
  37. package/dist-es/commands/AssociateSourceServersCommand.js +42 -0
  38. package/dist-es/commands/CreateApplicationCommand.js +42 -0
  39. package/dist-es/commands/CreateWaveCommand.js +42 -0
  40. package/dist-es/commands/DeleteApplicationCommand.js +42 -0
  41. package/dist-es/commands/DeleteWaveCommand.js +42 -0
  42. package/dist-es/commands/DisassociateApplicationsCommand.js +42 -0
  43. package/dist-es/commands/DisassociateSourceServersCommand.js +42 -0
  44. package/dist-es/commands/ListApplicationsCommand.js +42 -0
  45. package/dist-es/commands/ListSourceServerActionsCommand.js +42 -0
  46. package/dist-es/commands/ListTemplateActionsCommand.js +42 -0
  47. package/dist-es/commands/ListWavesCommand.js +42 -0
  48. package/dist-es/commands/PutSourceServerActionCommand.js +42 -0
  49. package/dist-es/commands/PutTemplateActionCommand.js +42 -0
  50. package/dist-es/commands/RemoveSourceServerActionCommand.js +42 -0
  51. package/dist-es/commands/RemoveTemplateActionCommand.js +42 -0
  52. package/dist-es/commands/UnarchiveApplicationCommand.js +42 -0
  53. package/dist-es/commands/UnarchiveWaveCommand.js +42 -0
  54. package/dist-es/commands/UpdateApplicationCommand.js +42 -0
  55. package/dist-es/commands/UpdateWaveCommand.js +42 -0
  56. package/dist-es/commands/index.js +22 -0
  57. package/dist-es/models/models_0.js +237 -61
  58. package/dist-es/pagination/ListApplicationsPaginator.js +32 -0
  59. package/dist-es/pagination/ListSourceServerActionsPaginator.js +32 -0
  60. package/dist-es/pagination/ListTemplateActionsPaginator.js +32 -0
  61. package/dist-es/pagination/ListWavesPaginator.js +32 -0
  62. package/dist-es/pagination/index.js +4 -0
  63. package/dist-es/protocols/Aws_restJson1.js +2589 -601
  64. package/dist-types/Mgn.d.ts +158 -4
  65. package/dist-types/MgnClient.d.ts +24 -2
  66. package/dist-types/commands/ArchiveApplicationCommand.d.ts +37 -0
  67. package/dist-types/commands/ArchiveWaveCommand.d.ts +37 -0
  68. package/dist-types/commands/AssociateApplicationsCommand.d.ts +37 -0
  69. package/dist-types/commands/AssociateSourceServersCommand.d.ts +37 -0
  70. package/dist-types/commands/CreateApplicationCommand.d.ts +37 -0
  71. package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +1 -1
  72. package/dist-types/commands/CreateWaveCommand.d.ts +37 -0
  73. package/dist-types/commands/DeleteApplicationCommand.d.ts +37 -0
  74. package/dist-types/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +1 -1
  75. package/dist-types/commands/DeleteWaveCommand.d.ts +37 -0
  76. package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +1 -1
  77. package/dist-types/commands/DisassociateApplicationsCommand.d.ts +37 -0
  78. package/dist-types/commands/DisassociateSourceServersCommand.d.ts +37 -0
  79. package/dist-types/commands/ListApplicationsCommand.d.ts +37 -0
  80. package/dist-types/commands/ListSourceServerActionsCommand.d.ts +37 -0
  81. package/dist-types/commands/ListTemplateActionsCommand.d.ts +37 -0
  82. package/dist-types/commands/ListWavesCommand.d.ts +37 -0
  83. package/dist-types/commands/PutSourceServerActionCommand.d.ts +37 -0
  84. package/dist-types/commands/PutTemplateActionCommand.d.ts +37 -0
  85. package/dist-types/commands/RemoveSourceServerActionCommand.d.ts +37 -0
  86. package/dist-types/commands/RemoveTemplateActionCommand.d.ts +37 -0
  87. package/dist-types/commands/UnarchiveApplicationCommand.d.ts +37 -0
  88. package/dist-types/commands/UnarchiveWaveCommand.d.ts +37 -0
  89. package/dist-types/commands/UpdateApplicationCommand.d.ts +37 -0
  90. package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +1 -1
  91. package/dist-types/commands/UpdateWaveCommand.d.ts +37 -0
  92. package/dist-types/commands/index.d.ts +22 -0
  93. package/dist-types/models/models_0.d.ts +1211 -198
  94. package/dist-types/pagination/ListApplicationsPaginator.d.ts +4 -0
  95. package/dist-types/pagination/ListSourceServerActionsPaginator.d.ts +4 -0
  96. package/dist-types/pagination/ListTemplateActionsPaginator.d.ts +4 -0
  97. package/dist-types/pagination/ListWavesPaginator.d.ts +4 -0
  98. package/dist-types/pagination/index.d.ts +4 -0
  99. package/dist-types/protocols/Aws_restJson1.d.ts +66 -0
  100. package/dist-types/ts3.4/Mgn.d.ts +374 -0
  101. package/dist-types/ts3.4/MgnClient.d.ts +134 -2
  102. package/dist-types/ts3.4/commands/ArchiveApplicationCommand.d.ts +35 -0
  103. package/dist-types/ts3.4/commands/ArchiveWaveCommand.d.ts +32 -0
  104. package/dist-types/ts3.4/commands/AssociateApplicationsCommand.d.ts +41 -0
  105. package/dist-types/ts3.4/commands/AssociateSourceServersCommand.d.ts +41 -0
  106. package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +35 -0
  107. package/dist-types/ts3.4/commands/CreateWaveCommand.d.ts +32 -0
  108. package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +38 -0
  109. package/dist-types/ts3.4/commands/DeleteWaveCommand.d.ts +34 -0
  110. package/dist-types/ts3.4/commands/DisassociateApplicationsCommand.d.ts +41 -0
  111. package/dist-types/ts3.4/commands/DisassociateSourceServersCommand.d.ts +41 -0
  112. package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +37 -0
  113. package/dist-types/ts3.4/commands/ListSourceServerActionsCommand.d.ts +41 -0
  114. package/dist-types/ts3.4/commands/ListTemplateActionsCommand.d.ts +38 -0
  115. package/dist-types/ts3.4/commands/ListWavesCommand.d.ts +34 -0
  116. package/dist-types/ts3.4/commands/PutSourceServerActionCommand.d.ts +41 -0
  117. package/dist-types/ts3.4/commands/PutTemplateActionCommand.d.ts +38 -0
  118. package/dist-types/ts3.4/commands/RemoveSourceServerActionCommand.d.ts +41 -0
  119. package/dist-types/ts3.4/commands/RemoveTemplateActionCommand.d.ts +41 -0
  120. package/dist-types/ts3.4/commands/UnarchiveApplicationCommand.d.ts +38 -0
  121. package/dist-types/ts3.4/commands/UnarchiveWaveCommand.d.ts +32 -0
  122. package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +35 -0
  123. package/dist-types/ts3.4/commands/UpdateWaveCommand.d.ts +32 -0
  124. package/dist-types/ts3.4/commands/index.d.ts +22 -0
  125. package/dist-types/ts3.4/models/models_0.d.ts +475 -53
  126. package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
  127. package/dist-types/ts3.4/pagination/ListSourceServerActionsPaginator.d.ts +11 -0
  128. package/dist-types/ts3.4/pagination/ListTemplateActionsPaginator.d.ts +11 -0
  129. package/dist-types/ts3.4/pagination/ListWavesPaginator.d.ts +11 -0
  130. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  131. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +264 -0
  132. package/package.json +4 -4
package/dist-es/Mgn.js CHANGED
@@ -1,38 +1,116 @@
1
+ import { ArchiveApplicationCommand, } from "./commands/ArchiveApplicationCommand";
2
+ import { ArchiveWaveCommand } from "./commands/ArchiveWaveCommand";
3
+ import { AssociateApplicationsCommand, } from "./commands/AssociateApplicationsCommand";
4
+ import { AssociateSourceServersCommand, } from "./commands/AssociateSourceServersCommand";
1
5
  import { ChangeServerLifeCycleStateCommand, } from "./commands/ChangeServerLifeCycleStateCommand";
6
+ import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
2
7
  import { CreateLaunchConfigurationTemplateCommand, } from "./commands/CreateLaunchConfigurationTemplateCommand";
3
8
  import { CreateReplicationConfigurationTemplateCommand, } from "./commands/CreateReplicationConfigurationTemplateCommand";
9
+ import { CreateWaveCommand } from "./commands/CreateWaveCommand";
10
+ import { DeleteApplicationCommand, } from "./commands/DeleteApplicationCommand";
4
11
  import { DeleteJobCommand } from "./commands/DeleteJobCommand";
5
12
  import { DeleteLaunchConfigurationTemplateCommand, } from "./commands/DeleteLaunchConfigurationTemplateCommand";
6
13
  import { DeleteReplicationConfigurationTemplateCommand, } from "./commands/DeleteReplicationConfigurationTemplateCommand";
7
14
  import { DeleteSourceServerCommand, } from "./commands/DeleteSourceServerCommand";
8
15
  import { DeleteVcenterClientCommand, } from "./commands/DeleteVcenterClientCommand";
16
+ import { DeleteWaveCommand } from "./commands/DeleteWaveCommand";
9
17
  import { DescribeJobLogItemsCommand, } from "./commands/DescribeJobLogItemsCommand";
10
18
  import { DescribeJobsCommand, } from "./commands/DescribeJobsCommand";
11
19
  import { DescribeLaunchConfigurationTemplatesCommand, } from "./commands/DescribeLaunchConfigurationTemplatesCommand";
12
20
  import { DescribeReplicationConfigurationTemplatesCommand, } from "./commands/DescribeReplicationConfigurationTemplatesCommand";
13
21
  import { DescribeSourceServersCommand, } from "./commands/DescribeSourceServersCommand";
14
22
  import { DescribeVcenterClientsCommand, } from "./commands/DescribeVcenterClientsCommand";
23
+ import { DisassociateApplicationsCommand, } from "./commands/DisassociateApplicationsCommand";
24
+ import { DisassociateSourceServersCommand, } from "./commands/DisassociateSourceServersCommand";
15
25
  import { DisconnectFromServiceCommand, } from "./commands/DisconnectFromServiceCommand";
16
26
  import { FinalizeCutoverCommand, } from "./commands/FinalizeCutoverCommand";
17
27
  import { GetLaunchConfigurationCommand, } from "./commands/GetLaunchConfigurationCommand";
18
28
  import { GetReplicationConfigurationCommand, } from "./commands/GetReplicationConfigurationCommand";
19
29
  import { InitializeServiceCommand, } from "./commands/InitializeServiceCommand";
30
+ import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
31
+ import { ListSourceServerActionsCommand, } from "./commands/ListSourceServerActionsCommand";
20
32
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
33
+ import { ListTemplateActionsCommand, } from "./commands/ListTemplateActionsCommand";
34
+ import { ListWavesCommand } from "./commands/ListWavesCommand";
21
35
  import { MarkAsArchivedCommand, } from "./commands/MarkAsArchivedCommand";
36
+ import { PutSourceServerActionCommand, } from "./commands/PutSourceServerActionCommand";
37
+ import { PutTemplateActionCommand, } from "./commands/PutTemplateActionCommand";
38
+ import { RemoveSourceServerActionCommand, } from "./commands/RemoveSourceServerActionCommand";
39
+ import { RemoveTemplateActionCommand, } from "./commands/RemoveTemplateActionCommand";
22
40
  import { RetryDataReplicationCommand, } from "./commands/RetryDataReplicationCommand";
23
41
  import { StartCutoverCommand, } from "./commands/StartCutoverCommand";
24
42
  import { StartReplicationCommand, } from "./commands/StartReplicationCommand";
25
43
  import { StartTestCommand } from "./commands/StartTestCommand";
26
44
  import { TagResourceCommand } from "./commands/TagResourceCommand";
27
45
  import { TerminateTargetInstancesCommand, } from "./commands/TerminateTargetInstancesCommand";
46
+ import { UnarchiveApplicationCommand, } from "./commands/UnarchiveApplicationCommand";
47
+ import { UnarchiveWaveCommand, } from "./commands/UnarchiveWaveCommand";
28
48
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
49
+ import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
29
50
  import { UpdateLaunchConfigurationCommand, } from "./commands/UpdateLaunchConfigurationCommand";
30
51
  import { UpdateLaunchConfigurationTemplateCommand, } from "./commands/UpdateLaunchConfigurationTemplateCommand";
31
52
  import { UpdateReplicationConfigurationCommand, } from "./commands/UpdateReplicationConfigurationCommand";
32
53
  import { UpdateReplicationConfigurationTemplateCommand, } from "./commands/UpdateReplicationConfigurationTemplateCommand";
33
54
  import { UpdateSourceServerReplicationTypeCommand, } from "./commands/UpdateSourceServerReplicationTypeCommand";
55
+ import { UpdateWaveCommand } from "./commands/UpdateWaveCommand";
34
56
  import { MgnClient } from "./MgnClient";
35
57
  export class Mgn extends MgnClient {
58
+ archiveApplication(args, optionsOrCb, cb) {
59
+ const command = new ArchiveApplicationCommand(args);
60
+ if (typeof optionsOrCb === "function") {
61
+ this.send(command, optionsOrCb);
62
+ }
63
+ else if (typeof cb === "function") {
64
+ if (typeof optionsOrCb !== "object")
65
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
+ this.send(command, optionsOrCb || {}, cb);
67
+ }
68
+ else {
69
+ return this.send(command, optionsOrCb);
70
+ }
71
+ }
72
+ archiveWave(args, optionsOrCb, cb) {
73
+ const command = new ArchiveWaveCommand(args);
74
+ if (typeof optionsOrCb === "function") {
75
+ this.send(command, optionsOrCb);
76
+ }
77
+ else if (typeof cb === "function") {
78
+ if (typeof optionsOrCb !== "object")
79
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
+ this.send(command, optionsOrCb || {}, cb);
81
+ }
82
+ else {
83
+ return this.send(command, optionsOrCb);
84
+ }
85
+ }
86
+ associateApplications(args, optionsOrCb, cb) {
87
+ const command = new AssociateApplicationsCommand(args);
88
+ if (typeof optionsOrCb === "function") {
89
+ this.send(command, optionsOrCb);
90
+ }
91
+ else if (typeof cb === "function") {
92
+ if (typeof optionsOrCb !== "object")
93
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
+ this.send(command, optionsOrCb || {}, cb);
95
+ }
96
+ else {
97
+ return this.send(command, optionsOrCb);
98
+ }
99
+ }
100
+ associateSourceServers(args, optionsOrCb, cb) {
101
+ const command = new AssociateSourceServersCommand(args);
102
+ if (typeof optionsOrCb === "function") {
103
+ this.send(command, optionsOrCb);
104
+ }
105
+ else if (typeof cb === "function") {
106
+ if (typeof optionsOrCb !== "object")
107
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
+ this.send(command, optionsOrCb || {}, cb);
109
+ }
110
+ else {
111
+ return this.send(command, optionsOrCb);
112
+ }
113
+ }
36
114
  changeServerLifeCycleState(args, optionsOrCb, cb) {
37
115
  const command = new ChangeServerLifeCycleStateCommand(args);
38
116
  if (typeof optionsOrCb === "function") {
@@ -47,6 +125,20 @@ export class Mgn extends MgnClient {
47
125
  return this.send(command, optionsOrCb);
48
126
  }
49
127
  }
128
+ createApplication(args, optionsOrCb, cb) {
129
+ const command = new CreateApplicationCommand(args);
130
+ if (typeof optionsOrCb === "function") {
131
+ this.send(command, optionsOrCb);
132
+ }
133
+ else if (typeof cb === "function") {
134
+ if (typeof optionsOrCb !== "object")
135
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
+ this.send(command, optionsOrCb || {}, cb);
137
+ }
138
+ else {
139
+ return this.send(command, optionsOrCb);
140
+ }
141
+ }
50
142
  createLaunchConfigurationTemplate(args, optionsOrCb, cb) {
51
143
  const command = new CreateLaunchConfigurationTemplateCommand(args);
52
144
  if (typeof optionsOrCb === "function") {
@@ -75,6 +167,34 @@ export class Mgn extends MgnClient {
75
167
  return this.send(command, optionsOrCb);
76
168
  }
77
169
  }
170
+ createWave(args, optionsOrCb, cb) {
171
+ const command = new CreateWaveCommand(args);
172
+ if (typeof optionsOrCb === "function") {
173
+ this.send(command, optionsOrCb);
174
+ }
175
+ else if (typeof cb === "function") {
176
+ if (typeof optionsOrCb !== "object")
177
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
+ this.send(command, optionsOrCb || {}, cb);
179
+ }
180
+ else {
181
+ return this.send(command, optionsOrCb);
182
+ }
183
+ }
184
+ deleteApplication(args, optionsOrCb, cb) {
185
+ const command = new DeleteApplicationCommand(args);
186
+ if (typeof optionsOrCb === "function") {
187
+ this.send(command, optionsOrCb);
188
+ }
189
+ else if (typeof cb === "function") {
190
+ if (typeof optionsOrCb !== "object")
191
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
+ this.send(command, optionsOrCb || {}, cb);
193
+ }
194
+ else {
195
+ return this.send(command, optionsOrCb);
196
+ }
197
+ }
78
198
  deleteJob(args, optionsOrCb, cb) {
79
199
  const command = new DeleteJobCommand(args);
80
200
  if (typeof optionsOrCb === "function") {
@@ -145,6 +265,20 @@ export class Mgn extends MgnClient {
145
265
  return this.send(command, optionsOrCb);
146
266
  }
147
267
  }
268
+ deleteWave(args, optionsOrCb, cb) {
269
+ const command = new DeleteWaveCommand(args);
270
+ if (typeof optionsOrCb === "function") {
271
+ this.send(command, optionsOrCb);
272
+ }
273
+ else if (typeof cb === "function") {
274
+ if (typeof optionsOrCb !== "object")
275
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
+ this.send(command, optionsOrCb || {}, cb);
277
+ }
278
+ else {
279
+ return this.send(command, optionsOrCb);
280
+ }
281
+ }
148
282
  describeJobLogItems(args, optionsOrCb, cb) {
149
283
  const command = new DescribeJobLogItemsCommand(args);
150
284
  if (typeof optionsOrCb === "function") {
@@ -229,6 +363,34 @@ export class Mgn extends MgnClient {
229
363
  return this.send(command, optionsOrCb);
230
364
  }
231
365
  }
366
+ disassociateApplications(args, optionsOrCb, cb) {
367
+ const command = new DisassociateApplicationsCommand(args);
368
+ if (typeof optionsOrCb === "function") {
369
+ this.send(command, optionsOrCb);
370
+ }
371
+ else if (typeof cb === "function") {
372
+ if (typeof optionsOrCb !== "object")
373
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
374
+ this.send(command, optionsOrCb || {}, cb);
375
+ }
376
+ else {
377
+ return this.send(command, optionsOrCb);
378
+ }
379
+ }
380
+ disassociateSourceServers(args, optionsOrCb, cb) {
381
+ const command = new DisassociateSourceServersCommand(args);
382
+ if (typeof optionsOrCb === "function") {
383
+ this.send(command, optionsOrCb);
384
+ }
385
+ else if (typeof cb === "function") {
386
+ if (typeof optionsOrCb !== "object")
387
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
388
+ this.send(command, optionsOrCb || {}, cb);
389
+ }
390
+ else {
391
+ return this.send(command, optionsOrCb);
392
+ }
393
+ }
232
394
  disconnectFromService(args, optionsOrCb, cb) {
233
395
  const command = new DisconnectFromServiceCommand(args);
234
396
  if (typeof optionsOrCb === "function") {
@@ -299,6 +461,34 @@ export class Mgn extends MgnClient {
299
461
  return this.send(command, optionsOrCb);
300
462
  }
301
463
  }
464
+ listApplications(args, optionsOrCb, cb) {
465
+ const command = new ListApplicationsCommand(args);
466
+ if (typeof optionsOrCb === "function") {
467
+ this.send(command, optionsOrCb);
468
+ }
469
+ else if (typeof cb === "function") {
470
+ if (typeof optionsOrCb !== "object")
471
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
472
+ this.send(command, optionsOrCb || {}, cb);
473
+ }
474
+ else {
475
+ return this.send(command, optionsOrCb);
476
+ }
477
+ }
478
+ listSourceServerActions(args, optionsOrCb, cb) {
479
+ const command = new ListSourceServerActionsCommand(args);
480
+ if (typeof optionsOrCb === "function") {
481
+ this.send(command, optionsOrCb);
482
+ }
483
+ else if (typeof cb === "function") {
484
+ if (typeof optionsOrCb !== "object")
485
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
486
+ this.send(command, optionsOrCb || {}, cb);
487
+ }
488
+ else {
489
+ return this.send(command, optionsOrCb);
490
+ }
491
+ }
302
492
  listTagsForResource(args, optionsOrCb, cb) {
303
493
  const command = new ListTagsForResourceCommand(args);
304
494
  if (typeof optionsOrCb === "function") {
@@ -313,6 +503,34 @@ export class Mgn extends MgnClient {
313
503
  return this.send(command, optionsOrCb);
314
504
  }
315
505
  }
506
+ listTemplateActions(args, optionsOrCb, cb) {
507
+ const command = new ListTemplateActionsCommand(args);
508
+ if (typeof optionsOrCb === "function") {
509
+ this.send(command, optionsOrCb);
510
+ }
511
+ else if (typeof cb === "function") {
512
+ if (typeof optionsOrCb !== "object")
513
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
514
+ this.send(command, optionsOrCb || {}, cb);
515
+ }
516
+ else {
517
+ return this.send(command, optionsOrCb);
518
+ }
519
+ }
520
+ listWaves(args, optionsOrCb, cb) {
521
+ const command = new ListWavesCommand(args);
522
+ if (typeof optionsOrCb === "function") {
523
+ this.send(command, optionsOrCb);
524
+ }
525
+ else if (typeof cb === "function") {
526
+ if (typeof optionsOrCb !== "object")
527
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
528
+ this.send(command, optionsOrCb || {}, cb);
529
+ }
530
+ else {
531
+ return this.send(command, optionsOrCb);
532
+ }
533
+ }
316
534
  markAsArchived(args, optionsOrCb, cb) {
317
535
  const command = new MarkAsArchivedCommand(args);
318
536
  if (typeof optionsOrCb === "function") {
@@ -327,6 +545,62 @@ export class Mgn extends MgnClient {
327
545
  return this.send(command, optionsOrCb);
328
546
  }
329
547
  }
548
+ putSourceServerAction(args, optionsOrCb, cb) {
549
+ const command = new PutSourceServerActionCommand(args);
550
+ if (typeof optionsOrCb === "function") {
551
+ this.send(command, optionsOrCb);
552
+ }
553
+ else if (typeof cb === "function") {
554
+ if (typeof optionsOrCb !== "object")
555
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
556
+ this.send(command, optionsOrCb || {}, cb);
557
+ }
558
+ else {
559
+ return this.send(command, optionsOrCb);
560
+ }
561
+ }
562
+ putTemplateAction(args, optionsOrCb, cb) {
563
+ const command = new PutTemplateActionCommand(args);
564
+ if (typeof optionsOrCb === "function") {
565
+ this.send(command, optionsOrCb);
566
+ }
567
+ else if (typeof cb === "function") {
568
+ if (typeof optionsOrCb !== "object")
569
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
570
+ this.send(command, optionsOrCb || {}, cb);
571
+ }
572
+ else {
573
+ return this.send(command, optionsOrCb);
574
+ }
575
+ }
576
+ removeSourceServerAction(args, optionsOrCb, cb) {
577
+ const command = new RemoveSourceServerActionCommand(args);
578
+ if (typeof optionsOrCb === "function") {
579
+ this.send(command, optionsOrCb);
580
+ }
581
+ else if (typeof cb === "function") {
582
+ if (typeof optionsOrCb !== "object")
583
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
584
+ this.send(command, optionsOrCb || {}, cb);
585
+ }
586
+ else {
587
+ return this.send(command, optionsOrCb);
588
+ }
589
+ }
590
+ removeTemplateAction(args, optionsOrCb, cb) {
591
+ const command = new RemoveTemplateActionCommand(args);
592
+ if (typeof optionsOrCb === "function") {
593
+ this.send(command, optionsOrCb);
594
+ }
595
+ else if (typeof cb === "function") {
596
+ if (typeof optionsOrCb !== "object")
597
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
598
+ this.send(command, optionsOrCb || {}, cb);
599
+ }
600
+ else {
601
+ return this.send(command, optionsOrCb);
602
+ }
603
+ }
330
604
  retryDataReplication(args, optionsOrCb, cb) {
331
605
  const command = new RetryDataReplicationCommand(args);
332
606
  if (typeof optionsOrCb === "function") {
@@ -411,6 +685,34 @@ export class Mgn extends MgnClient {
411
685
  return this.send(command, optionsOrCb);
412
686
  }
413
687
  }
688
+ unarchiveApplication(args, optionsOrCb, cb) {
689
+ const command = new UnarchiveApplicationCommand(args);
690
+ if (typeof optionsOrCb === "function") {
691
+ this.send(command, optionsOrCb);
692
+ }
693
+ else if (typeof cb === "function") {
694
+ if (typeof optionsOrCb !== "object")
695
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
696
+ this.send(command, optionsOrCb || {}, cb);
697
+ }
698
+ else {
699
+ return this.send(command, optionsOrCb);
700
+ }
701
+ }
702
+ unarchiveWave(args, optionsOrCb, cb) {
703
+ const command = new UnarchiveWaveCommand(args);
704
+ if (typeof optionsOrCb === "function") {
705
+ this.send(command, optionsOrCb);
706
+ }
707
+ else if (typeof cb === "function") {
708
+ if (typeof optionsOrCb !== "object")
709
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
710
+ this.send(command, optionsOrCb || {}, cb);
711
+ }
712
+ else {
713
+ return this.send(command, optionsOrCb);
714
+ }
715
+ }
414
716
  untagResource(args, optionsOrCb, cb) {
415
717
  const command = new UntagResourceCommand(args);
416
718
  if (typeof optionsOrCb === "function") {
@@ -425,6 +727,20 @@ export class Mgn extends MgnClient {
425
727
  return this.send(command, optionsOrCb);
426
728
  }
427
729
  }
730
+ updateApplication(args, optionsOrCb, cb) {
731
+ const command = new UpdateApplicationCommand(args);
732
+ if (typeof optionsOrCb === "function") {
733
+ this.send(command, optionsOrCb);
734
+ }
735
+ else if (typeof cb === "function") {
736
+ if (typeof optionsOrCb !== "object")
737
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
738
+ this.send(command, optionsOrCb || {}, cb);
739
+ }
740
+ else {
741
+ return this.send(command, optionsOrCb);
742
+ }
743
+ }
428
744
  updateLaunchConfiguration(args, optionsOrCb, cb) {
429
745
  const command = new UpdateLaunchConfigurationCommand(args);
430
746
  if (typeof optionsOrCb === "function") {
@@ -495,4 +811,18 @@ export class Mgn extends MgnClient {
495
811
  return this.send(command, optionsOrCb);
496
812
  }
497
813
  }
814
+ updateWave(args, optionsOrCb, cb) {
815
+ const command = new UpdateWaveCommand(args);
816
+ if (typeof optionsOrCb === "function") {
817
+ this.send(command, optionsOrCb);
818
+ }
819
+ else if (typeof cb === "function") {
820
+ if (typeof optionsOrCb !== "object")
821
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
822
+ this.send(command, optionsOrCb || {}, cb);
823
+ }
824
+ else {
825
+ return this.send(command, optionsOrCb);
826
+ }
827
+ }
498
828
  }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ApplicationFilterSensitiveLog, ArchiveApplicationRequestFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ArchiveApplicationCommand, serializeAws_restJson1ArchiveApplicationCommand, } from "../protocols/Aws_restJson1";
6
+ export class ArchiveApplicationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ArchiveApplicationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "MgnClient";
25
+ const commandName = "ArchiveApplicationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ArchiveApplicationRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ApplicationFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ArchiveApplicationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ArchiveApplicationCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ArchiveWaveRequestFilterSensitiveLog, WaveFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ArchiveWaveCommand, serializeAws_restJson1ArchiveWaveCommand, } from "../protocols/Aws_restJson1";
6
+ export class ArchiveWaveCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ArchiveWaveCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "MgnClient";
25
+ const commandName = "ArchiveWaveCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ArchiveWaveRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: WaveFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ArchiveWaveCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ArchiveWaveCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { AssociateApplicationsRequestFilterSensitiveLog, AssociateApplicationsResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1AssociateApplicationsCommand, serializeAws_restJson1AssociateApplicationsCommand, } from "../protocols/Aws_restJson1";
6
+ export class AssociateApplicationsCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, AssociateApplicationsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "MgnClient";
25
+ const commandName = "AssociateApplicationsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: AssociateApplicationsRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: AssociateApplicationsResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1AssociateApplicationsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1AssociateApplicationsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { AssociateSourceServersRequestFilterSensitiveLog, AssociateSourceServersResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1AssociateSourceServersCommand, serializeAws_restJson1AssociateSourceServersCommand, } from "../protocols/Aws_restJson1";
6
+ export class AssociateSourceServersCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, AssociateSourceServersCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "MgnClient";
25
+ const commandName = "AssociateSourceServersCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: AssociateSourceServersRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: AssociateSourceServersResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1AssociateSourceServersCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1AssociateSourceServersCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ApplicationFilterSensitiveLog, CreateApplicationRequestFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateApplicationCommand, serializeAws_restJson1CreateApplicationCommand, } from "../protocols/Aws_restJson1";
6
+ export class CreateApplicationCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateApplicationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "MgnClient";
25
+ const commandName = "CreateApplicationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: CreateApplicationRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ApplicationFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1CreateApplicationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1CreateApplicationCommand(output, context);
41
+ }
42
+ }