@aws-sdk/client-mgn 3.363.0 → 3.369.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 (84) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/Mgn.js +8 -0
  3. package/dist-cjs/commands/ListManagedAccountsCommand.js +46 -0
  4. package/dist-cjs/commands/PauseReplicationCommand.js +47 -0
  5. package/dist-cjs/commands/ResumeReplicationCommand.js +47 -0
  6. package/dist-cjs/commands/StopReplicationCommand.js +47 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/pagination/ListManagedAccountsPaginator.js +29 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +348 -3
  11. package/dist-es/Mgn.js +8 -0
  12. package/dist-es/commands/ListManagedAccountsCommand.js +42 -0
  13. package/dist-es/commands/PauseReplicationCommand.js +43 -0
  14. package/dist-es/commands/ResumeReplicationCommand.js +43 -0
  15. package/dist-es/commands/StopReplicationCommand.js +43 -0
  16. package/dist-es/commands/index.js +4 -0
  17. package/dist-es/pagination/ListManagedAccountsPaginator.js +25 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_restJson1.js +337 -0
  20. package/dist-types/Mgn.d.ts +28 -0
  21. package/dist-types/MgnClient.d.ts +6 -2
  22. package/dist-types/commands/ArchiveApplicationCommand.d.ts +1 -0
  23. package/dist-types/commands/ArchiveWaveCommand.d.ts +1 -0
  24. package/dist-types/commands/AssociateApplicationsCommand.d.ts +1 -0
  25. package/dist-types/commands/AssociateSourceServersCommand.d.ts +1 -0
  26. package/dist-types/commands/ChangeServerLifeCycleStateCommand.d.ts +1 -0
  27. package/dist-types/commands/CreateApplicationCommand.d.ts +1 -0
  28. package/dist-types/commands/CreateReplicationConfigurationTemplateCommand.d.ts +2 -0
  29. package/dist-types/commands/CreateWaveCommand.d.ts +1 -0
  30. package/dist-types/commands/DeleteApplicationCommand.d.ts +1 -0
  31. package/dist-types/commands/DeleteJobCommand.d.ts +1 -0
  32. package/dist-types/commands/DeleteSourceServerCommand.d.ts +1 -0
  33. package/dist-types/commands/DeleteWaveCommand.d.ts +1 -0
  34. package/dist-types/commands/DescribeJobLogItemsCommand.d.ts +1 -0
  35. package/dist-types/commands/DescribeJobsCommand.d.ts +1 -0
  36. package/dist-types/commands/DescribeReplicationConfigurationTemplatesCommand.d.ts +1 -0
  37. package/dist-types/commands/DescribeSourceServersCommand.d.ts +1 -0
  38. package/dist-types/commands/DisassociateApplicationsCommand.d.ts +1 -0
  39. package/dist-types/commands/DisassociateSourceServersCommand.d.ts +1 -0
  40. package/dist-types/commands/DisconnectFromServiceCommand.d.ts +1 -0
  41. package/dist-types/commands/FinalizeCutoverCommand.d.ts +1 -0
  42. package/dist-types/commands/GetLaunchConfigurationCommand.d.ts +1 -0
  43. package/dist-types/commands/GetReplicationConfigurationCommand.d.ts +2 -0
  44. package/dist-types/commands/ListApplicationsCommand.d.ts +1 -0
  45. package/dist-types/commands/ListImportErrorsCommand.d.ts +1 -0
  46. package/dist-types/commands/ListManagedAccountsCommand.d.ts +85 -0
  47. package/dist-types/commands/ListSourceServerActionsCommand.d.ts +1 -0
  48. package/dist-types/commands/ListWavesCommand.d.ts +1 -0
  49. package/dist-types/commands/MarkAsArchivedCommand.d.ts +1 -0
  50. package/dist-types/commands/PauseReplicationCommand.d.ts +200 -0
  51. package/dist-types/commands/PutSourceServerActionCommand.d.ts +1 -0
  52. package/dist-types/commands/RemoveSourceServerActionCommand.d.ts +1 -0
  53. package/dist-types/commands/ResumeReplicationCommand.d.ts +200 -0
  54. package/dist-types/commands/RetryDataReplicationCommand.d.ts +1 -0
  55. package/dist-types/commands/StartCutoverCommand.d.ts +1 -0
  56. package/dist-types/commands/StartReplicationCommand.d.ts +1 -0
  57. package/dist-types/commands/StartTestCommand.d.ts +1 -0
  58. package/dist-types/commands/StopReplicationCommand.d.ts +200 -0
  59. package/dist-types/commands/TerminateTargetInstancesCommand.d.ts +1 -0
  60. package/dist-types/commands/UnarchiveApplicationCommand.d.ts +1 -0
  61. package/dist-types/commands/UnarchiveWaveCommand.d.ts +1 -0
  62. package/dist-types/commands/UpdateApplicationCommand.d.ts +1 -0
  63. package/dist-types/commands/UpdateLaunchConfigurationCommand.d.ts +1 -0
  64. package/dist-types/commands/UpdateReplicationConfigurationCommand.d.ts +3 -0
  65. package/dist-types/commands/UpdateReplicationConfigurationTemplateCommand.d.ts +2 -0
  66. package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +1 -0
  67. package/dist-types/commands/UpdateWaveCommand.d.ts +1 -0
  68. package/dist-types/commands/index.d.ts +4 -0
  69. package/dist-types/models/models_0.d.ts +253 -0
  70. package/dist-types/pagination/ListManagedAccountsPaginator.d.ts +7 -0
  71. package/dist-types/pagination/index.d.ts +1 -0
  72. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  73. package/dist-types/ts3.4/Mgn.d.ts +68 -0
  74. package/dist-types/ts3.4/MgnClient.d.ts +24 -0
  75. package/dist-types/ts3.4/commands/ListManagedAccountsCommand.d.ts +39 -0
  76. package/dist-types/ts3.4/commands/PauseReplicationCommand.d.ts +35 -0
  77. package/dist-types/ts3.4/commands/ResumeReplicationCommand.d.ts +36 -0
  78. package/dist-types/ts3.4/commands/StopReplicationCommand.d.ts +35 -0
  79. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  80. package/dist-types/ts3.4/models/models_0.d.ts +67 -0
  81. package/dist-types/ts3.4/pagination/ListManagedAccountsPaginator.d.ts +11 -0
  82. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  83. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  84. package/package.json +13 -13
package/dist-es/Mgn.js CHANGED
@@ -33,21 +33,25 @@ import { ListExportErrorsCommand, } from "./commands/ListExportErrorsCommand";
33
33
  import { ListExportsCommand } from "./commands/ListExportsCommand";
34
34
  import { ListImportErrorsCommand, } from "./commands/ListImportErrorsCommand";
35
35
  import { ListImportsCommand } from "./commands/ListImportsCommand";
36
+ import { ListManagedAccountsCommand, } from "./commands/ListManagedAccountsCommand";
36
37
  import { ListSourceServerActionsCommand, } from "./commands/ListSourceServerActionsCommand";
37
38
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
38
39
  import { ListTemplateActionsCommand, } from "./commands/ListTemplateActionsCommand";
39
40
  import { ListWavesCommand } from "./commands/ListWavesCommand";
40
41
  import { MarkAsArchivedCommand, } from "./commands/MarkAsArchivedCommand";
42
+ import { PauseReplicationCommand, } from "./commands/PauseReplicationCommand";
41
43
  import { PutSourceServerActionCommand, } from "./commands/PutSourceServerActionCommand";
42
44
  import { PutTemplateActionCommand, } from "./commands/PutTemplateActionCommand";
43
45
  import { RemoveSourceServerActionCommand, } from "./commands/RemoveSourceServerActionCommand";
44
46
  import { RemoveTemplateActionCommand, } from "./commands/RemoveTemplateActionCommand";
47
+ import { ResumeReplicationCommand, } from "./commands/ResumeReplicationCommand";
45
48
  import { RetryDataReplicationCommand, } from "./commands/RetryDataReplicationCommand";
46
49
  import { StartCutoverCommand, } from "./commands/StartCutoverCommand";
47
50
  import { StartExportCommand } from "./commands/StartExportCommand";
48
51
  import { StartImportCommand } from "./commands/StartImportCommand";
49
52
  import { StartReplicationCommand, } from "./commands/StartReplicationCommand";
50
53
  import { StartTestCommand } from "./commands/StartTestCommand";
54
+ import { StopReplicationCommand, } from "./commands/StopReplicationCommand";
51
55
  import { TagResourceCommand } from "./commands/TagResourceCommand";
52
56
  import { TerminateTargetInstancesCommand, } from "./commands/TerminateTargetInstancesCommand";
53
57
  import { UnarchiveApplicationCommand, } from "./commands/UnarchiveApplicationCommand";
@@ -96,21 +100,25 @@ const commands = {
96
100
  ListExportsCommand,
97
101
  ListImportErrorsCommand,
98
102
  ListImportsCommand,
103
+ ListManagedAccountsCommand,
99
104
  ListSourceServerActionsCommand,
100
105
  ListTagsForResourceCommand,
101
106
  ListTemplateActionsCommand,
102
107
  ListWavesCommand,
103
108
  MarkAsArchivedCommand,
109
+ PauseReplicationCommand,
104
110
  PutSourceServerActionCommand,
105
111
  PutTemplateActionCommand,
106
112
  RemoveSourceServerActionCommand,
107
113
  RemoveTemplateActionCommand,
114
+ ResumeReplicationCommand,
108
115
  RetryDataReplicationCommand,
109
116
  StartCutoverCommand,
110
117
  StartExportCommand,
111
118
  StartImportCommand,
112
119
  StartReplicationCommand,
113
120
  StartTestCommand,
121
+ StopReplicationCommand,
114
122
  TagResourceCommand,
115
123
  TerminateTargetInstancesCommand,
116
124
  UnarchiveApplicationCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_ListManagedAccountsCommand, se_ListManagedAccountsCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class ListManagedAccountsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListManagedAccountsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "MgnClient";
25
+ const commandName = "ListManagedAccountsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ListManagedAccountsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ListManagedAccountsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SourceServerFilterSensitiveLog } from "../models/models_0";
5
+ import { de_PauseReplicationCommand, se_PauseReplicationCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class PauseReplicationCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, PauseReplicationCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "MgnClient";
26
+ const commandName = "PauseReplicationCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: SourceServerFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_PauseReplicationCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_PauseReplicationCommand(output, context);
42
+ }
43
+ }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SourceServerFilterSensitiveLog } from "../models/models_0";
5
+ import { de_ResumeReplicationCommand, se_ResumeReplicationCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ResumeReplicationCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, ResumeReplicationCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "MgnClient";
26
+ const commandName = "ResumeReplicationCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: SourceServerFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_ResumeReplicationCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_ResumeReplicationCommand(output, context);
42
+ }
43
+ }
@@ -0,0 +1,43 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SourceServerFilterSensitiveLog } from "../models/models_0";
5
+ import { de_StopReplicationCommand, se_StopReplicationCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class StopReplicationCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, StopReplicationCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "MgnClient";
26
+ const commandName = "StopReplicationCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: SourceServerFilterSensitiveLog,
33
+ };
34
+ const { requestHandler } = configuration;
35
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
36
+ }
37
+ serialize(input, context) {
38
+ return se_StopReplicationCommand(input, context);
39
+ }
40
+ deserialize(output, context) {
41
+ return de_StopReplicationCommand(output, context);
42
+ }
43
+ }
@@ -32,21 +32,25 @@ export * from "./ListExportErrorsCommand";
32
32
  export * from "./ListExportsCommand";
33
33
  export * from "./ListImportErrorsCommand";
34
34
  export * from "./ListImportsCommand";
35
+ export * from "./ListManagedAccountsCommand";
35
36
  export * from "./ListSourceServerActionsCommand";
36
37
  export * from "./ListTagsForResourceCommand";
37
38
  export * from "./ListTemplateActionsCommand";
38
39
  export * from "./ListWavesCommand";
39
40
  export * from "./MarkAsArchivedCommand";
41
+ export * from "./PauseReplicationCommand";
40
42
  export * from "./PutSourceServerActionCommand";
41
43
  export * from "./PutTemplateActionCommand";
42
44
  export * from "./RemoveSourceServerActionCommand";
43
45
  export * from "./RemoveTemplateActionCommand";
46
+ export * from "./ResumeReplicationCommand";
44
47
  export * from "./RetryDataReplicationCommand";
45
48
  export * from "./StartCutoverCommand";
46
49
  export * from "./StartExportCommand";
47
50
  export * from "./StartImportCommand";
48
51
  export * from "./StartReplicationCommand";
49
52
  export * from "./StartTestCommand";
53
+ export * from "./StopReplicationCommand";
50
54
  export * from "./TagResourceCommand";
51
55
  export * from "./TerminateTargetInstancesCommand";
52
56
  export * from "./UnarchiveApplicationCommand";
@@ -0,0 +1,25 @@
1
+ import { ListManagedAccountsCommand, } from "../commands/ListManagedAccountsCommand";
2
+ import { MgnClient } from "../MgnClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListManagedAccountsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListManagedAccounts(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ input["maxResults"] = config.pageSize;
13
+ if (config.client instanceof MgnClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Mgn | MgnClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -10,6 +10,7 @@ export * from "./ListExportErrorsPaginator";
10
10
  export * from "./ListExportsPaginator";
11
11
  export * from "./ListImportErrorsPaginator";
12
12
  export * from "./ListImportsPaginator";
13
+ export * from "./ListManagedAccountsPaginator";
13
14
  export * from "./ListSourceServerActionsPaginator";
14
15
  export * from "./ListTemplateActionsPaginator";
15
16
  export * from "./ListWavesPaginator";