@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.
- package/README.md +32 -0
- package/dist-cjs/Mgn.js +8 -0
- package/dist-cjs/commands/ListManagedAccountsCommand.js +46 -0
- package/dist-cjs/commands/PauseReplicationCommand.js +47 -0
- package/dist-cjs/commands/ResumeReplicationCommand.js +47 -0
- package/dist-cjs/commands/StopReplicationCommand.js +47 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/pagination/ListManagedAccountsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +348 -3
- package/dist-es/Mgn.js +8 -0
- package/dist-es/commands/ListManagedAccountsCommand.js +42 -0
- package/dist-es/commands/PauseReplicationCommand.js +43 -0
- package/dist-es/commands/ResumeReplicationCommand.js +43 -0
- package/dist-es/commands/StopReplicationCommand.js +43 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/pagination/ListManagedAccountsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +337 -0
- package/dist-types/Mgn.d.ts +28 -0
- package/dist-types/MgnClient.d.ts +6 -2
- package/dist-types/commands/ArchiveApplicationCommand.d.ts +1 -0
- package/dist-types/commands/ArchiveWaveCommand.d.ts +1 -0
- package/dist-types/commands/AssociateApplicationsCommand.d.ts +1 -0
- package/dist-types/commands/AssociateSourceServersCommand.d.ts +1 -0
- package/dist-types/commands/ChangeServerLifeCycleStateCommand.d.ts +1 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +1 -0
- package/dist-types/commands/CreateReplicationConfigurationTemplateCommand.d.ts +2 -0
- package/dist-types/commands/CreateWaveCommand.d.ts +1 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +1 -0
- package/dist-types/commands/DeleteJobCommand.d.ts +1 -0
- package/dist-types/commands/DeleteSourceServerCommand.d.ts +1 -0
- package/dist-types/commands/DeleteWaveCommand.d.ts +1 -0
- package/dist-types/commands/DescribeJobLogItemsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeJobsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeReplicationConfigurationTemplatesCommand.d.ts +1 -0
- package/dist-types/commands/DescribeSourceServersCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateApplicationsCommand.d.ts +1 -0
- package/dist-types/commands/DisassociateSourceServersCommand.d.ts +1 -0
- package/dist-types/commands/DisconnectFromServiceCommand.d.ts +1 -0
- package/dist-types/commands/FinalizeCutoverCommand.d.ts +1 -0
- package/dist-types/commands/GetLaunchConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/GetReplicationConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +1 -0
- package/dist-types/commands/ListImportErrorsCommand.d.ts +1 -0
- package/dist-types/commands/ListManagedAccountsCommand.d.ts +85 -0
- package/dist-types/commands/ListSourceServerActionsCommand.d.ts +1 -0
- package/dist-types/commands/ListWavesCommand.d.ts +1 -0
- package/dist-types/commands/MarkAsArchivedCommand.d.ts +1 -0
- package/dist-types/commands/PauseReplicationCommand.d.ts +200 -0
- package/dist-types/commands/PutSourceServerActionCommand.d.ts +1 -0
- package/dist-types/commands/RemoveSourceServerActionCommand.d.ts +1 -0
- package/dist-types/commands/ResumeReplicationCommand.d.ts +200 -0
- package/dist-types/commands/RetryDataReplicationCommand.d.ts +1 -0
- package/dist-types/commands/StartCutoverCommand.d.ts +1 -0
- package/dist-types/commands/StartReplicationCommand.d.ts +1 -0
- package/dist-types/commands/StartTestCommand.d.ts +1 -0
- package/dist-types/commands/StopReplicationCommand.d.ts +200 -0
- package/dist-types/commands/TerminateTargetInstancesCommand.d.ts +1 -0
- package/dist-types/commands/UnarchiveApplicationCommand.d.ts +1 -0
- package/dist-types/commands/UnarchiveWaveCommand.d.ts +1 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +1 -0
- package/dist-types/commands/UpdateLaunchConfigurationCommand.d.ts +1 -0
- package/dist-types/commands/UpdateReplicationConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/UpdateReplicationConfigurationTemplateCommand.d.ts +2 -0
- package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +1 -0
- package/dist-types/commands/UpdateWaveCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +253 -0
- package/dist-types/pagination/ListManagedAccountsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/Mgn.d.ts +68 -0
- package/dist-types/ts3.4/MgnClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/ListManagedAccountsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PauseReplicationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ResumeReplicationCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/StopReplicationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +67 -0
- package/dist-types/ts3.4/pagination/ListManagedAccountsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -474,6 +474,14 @@ ListImports
|
|
|
474
474
|
|
|
475
475
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/listimportscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listimportscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listimportscommandoutput.html)
|
|
476
476
|
|
|
477
|
+
</details>
|
|
478
|
+
<details>
|
|
479
|
+
<summary>
|
|
480
|
+
ListManagedAccounts
|
|
481
|
+
</summary>
|
|
482
|
+
|
|
483
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/listmanagedaccountscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listmanagedaccountscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listmanagedaccountscommandoutput.html)
|
|
484
|
+
|
|
477
485
|
</details>
|
|
478
486
|
<details>
|
|
479
487
|
<summary>
|
|
@@ -514,6 +522,14 @@ MarkAsArchived
|
|
|
514
522
|
|
|
515
523
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/markasarchivedcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/markasarchivedcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/markasarchivedcommandoutput.html)
|
|
516
524
|
|
|
525
|
+
</details>
|
|
526
|
+
<details>
|
|
527
|
+
<summary>
|
|
528
|
+
PauseReplication
|
|
529
|
+
</summary>
|
|
530
|
+
|
|
531
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/pausereplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/pausereplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/pausereplicationcommandoutput.html)
|
|
532
|
+
|
|
517
533
|
</details>
|
|
518
534
|
<details>
|
|
519
535
|
<summary>
|
|
@@ -546,6 +562,14 @@ RemoveTemplateAction
|
|
|
546
562
|
|
|
547
563
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/removetemplateactioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/removetemplateactioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/removetemplateactioncommandoutput.html)
|
|
548
564
|
|
|
565
|
+
</details>
|
|
566
|
+
<details>
|
|
567
|
+
<summary>
|
|
568
|
+
ResumeReplication
|
|
569
|
+
</summary>
|
|
570
|
+
|
|
571
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/resumereplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/resumereplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/resumereplicationcommandoutput.html)
|
|
572
|
+
|
|
549
573
|
</details>
|
|
550
574
|
<details>
|
|
551
575
|
<summary>
|
|
@@ -594,6 +618,14 @@ StartTest
|
|
|
594
618
|
|
|
595
619
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/starttestcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/starttestcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/starttestcommandoutput.html)
|
|
596
620
|
|
|
621
|
+
</details>
|
|
622
|
+
<details>
|
|
623
|
+
<summary>
|
|
624
|
+
StopReplication
|
|
625
|
+
</summary>
|
|
626
|
+
|
|
627
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/stopreplicationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/stopreplicationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/stopreplicationcommandoutput.html)
|
|
628
|
+
|
|
597
629
|
</details>
|
|
598
630
|
<details>
|
|
599
631
|
<summary>
|
package/dist-cjs/Mgn.js
CHANGED
|
@@ -36,21 +36,25 @@ const ListExportErrorsCommand_1 = require("./commands/ListExportErrorsCommand");
|
|
|
36
36
|
const ListExportsCommand_1 = require("./commands/ListExportsCommand");
|
|
37
37
|
const ListImportErrorsCommand_1 = require("./commands/ListImportErrorsCommand");
|
|
38
38
|
const ListImportsCommand_1 = require("./commands/ListImportsCommand");
|
|
39
|
+
const ListManagedAccountsCommand_1 = require("./commands/ListManagedAccountsCommand");
|
|
39
40
|
const ListSourceServerActionsCommand_1 = require("./commands/ListSourceServerActionsCommand");
|
|
40
41
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
41
42
|
const ListTemplateActionsCommand_1 = require("./commands/ListTemplateActionsCommand");
|
|
42
43
|
const ListWavesCommand_1 = require("./commands/ListWavesCommand");
|
|
43
44
|
const MarkAsArchivedCommand_1 = require("./commands/MarkAsArchivedCommand");
|
|
45
|
+
const PauseReplicationCommand_1 = require("./commands/PauseReplicationCommand");
|
|
44
46
|
const PutSourceServerActionCommand_1 = require("./commands/PutSourceServerActionCommand");
|
|
45
47
|
const PutTemplateActionCommand_1 = require("./commands/PutTemplateActionCommand");
|
|
46
48
|
const RemoveSourceServerActionCommand_1 = require("./commands/RemoveSourceServerActionCommand");
|
|
47
49
|
const RemoveTemplateActionCommand_1 = require("./commands/RemoveTemplateActionCommand");
|
|
50
|
+
const ResumeReplicationCommand_1 = require("./commands/ResumeReplicationCommand");
|
|
48
51
|
const RetryDataReplicationCommand_1 = require("./commands/RetryDataReplicationCommand");
|
|
49
52
|
const StartCutoverCommand_1 = require("./commands/StartCutoverCommand");
|
|
50
53
|
const StartExportCommand_1 = require("./commands/StartExportCommand");
|
|
51
54
|
const StartImportCommand_1 = require("./commands/StartImportCommand");
|
|
52
55
|
const StartReplicationCommand_1 = require("./commands/StartReplicationCommand");
|
|
53
56
|
const StartTestCommand_1 = require("./commands/StartTestCommand");
|
|
57
|
+
const StopReplicationCommand_1 = require("./commands/StopReplicationCommand");
|
|
54
58
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
55
59
|
const TerminateTargetInstancesCommand_1 = require("./commands/TerminateTargetInstancesCommand");
|
|
56
60
|
const UnarchiveApplicationCommand_1 = require("./commands/UnarchiveApplicationCommand");
|
|
@@ -99,21 +103,25 @@ const commands = {
|
|
|
99
103
|
ListExportsCommand: ListExportsCommand_1.ListExportsCommand,
|
|
100
104
|
ListImportErrorsCommand: ListImportErrorsCommand_1.ListImportErrorsCommand,
|
|
101
105
|
ListImportsCommand: ListImportsCommand_1.ListImportsCommand,
|
|
106
|
+
ListManagedAccountsCommand: ListManagedAccountsCommand_1.ListManagedAccountsCommand,
|
|
102
107
|
ListSourceServerActionsCommand: ListSourceServerActionsCommand_1.ListSourceServerActionsCommand,
|
|
103
108
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
104
109
|
ListTemplateActionsCommand: ListTemplateActionsCommand_1.ListTemplateActionsCommand,
|
|
105
110
|
ListWavesCommand: ListWavesCommand_1.ListWavesCommand,
|
|
106
111
|
MarkAsArchivedCommand: MarkAsArchivedCommand_1.MarkAsArchivedCommand,
|
|
112
|
+
PauseReplicationCommand: PauseReplicationCommand_1.PauseReplicationCommand,
|
|
107
113
|
PutSourceServerActionCommand: PutSourceServerActionCommand_1.PutSourceServerActionCommand,
|
|
108
114
|
PutTemplateActionCommand: PutTemplateActionCommand_1.PutTemplateActionCommand,
|
|
109
115
|
RemoveSourceServerActionCommand: RemoveSourceServerActionCommand_1.RemoveSourceServerActionCommand,
|
|
110
116
|
RemoveTemplateActionCommand: RemoveTemplateActionCommand_1.RemoveTemplateActionCommand,
|
|
117
|
+
ResumeReplicationCommand: ResumeReplicationCommand_1.ResumeReplicationCommand,
|
|
111
118
|
RetryDataReplicationCommand: RetryDataReplicationCommand_1.RetryDataReplicationCommand,
|
|
112
119
|
StartCutoverCommand: StartCutoverCommand_1.StartCutoverCommand,
|
|
113
120
|
StartExportCommand: StartExportCommand_1.StartExportCommand,
|
|
114
121
|
StartImportCommand: StartImportCommand_1.StartImportCommand,
|
|
115
122
|
StartReplicationCommand: StartReplicationCommand_1.StartReplicationCommand,
|
|
116
123
|
StartTestCommand: StartTestCommand_1.StartTestCommand,
|
|
124
|
+
StopReplicationCommand: StopReplicationCommand_1.StopReplicationCommand,
|
|
117
125
|
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
118
126
|
TerminateTargetInstancesCommand: TerminateTargetInstancesCommand_1.TerminateTargetInstancesCommand,
|
|
119
127
|
UnarchiveApplicationCommand: UnarchiveApplicationCommand_1.UnarchiveApplicationCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListManagedAccountsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListManagedAccountsCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListManagedAccountsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MgnClient";
|
|
28
|
+
const commandName = "ListManagedAccountsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.se_ListManagedAccountsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.de_ListManagedAccountsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListManagedAccountsCommand = ListManagedAccountsCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PauseReplicationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class PauseReplicationCommand extends smithy_client_1.Command {
|
|
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
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PauseReplicationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "MgnClient";
|
|
29
|
+
const commandName = "PauseReplicationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.SourceServerFilterSensitiveLog,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_PauseReplicationCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_PauseReplicationCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.PauseReplicationCommand = PauseReplicationCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResumeReplicationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class ResumeReplicationCommand extends smithy_client_1.Command {
|
|
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
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ResumeReplicationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "MgnClient";
|
|
29
|
+
const commandName = "ResumeReplicationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.SourceServerFilterSensitiveLog,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_ResumeReplicationCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_ResumeReplicationCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.ResumeReplicationCommand = ResumeReplicationCommand;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StopReplicationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class StopReplicationCommand extends smithy_client_1.Command {
|
|
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
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopReplicationCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "MgnClient";
|
|
29
|
+
const commandName = "StopReplicationCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.SourceServerFilterSensitiveLog,
|
|
36
|
+
};
|
|
37
|
+
const { requestHandler } = configuration;
|
|
38
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
39
|
+
}
|
|
40
|
+
serialize(input, context) {
|
|
41
|
+
return (0, Aws_restJson1_1.se_StopReplicationCommand)(input, context);
|
|
42
|
+
}
|
|
43
|
+
deserialize(output, context) {
|
|
44
|
+
return (0, Aws_restJson1_1.de_StopReplicationCommand)(output, context);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.StopReplicationCommand = StopReplicationCommand;
|
|
@@ -35,21 +35,25 @@ tslib_1.__exportStar(require("./ListExportErrorsCommand"), exports);
|
|
|
35
35
|
tslib_1.__exportStar(require("./ListExportsCommand"), exports);
|
|
36
36
|
tslib_1.__exportStar(require("./ListImportErrorsCommand"), exports);
|
|
37
37
|
tslib_1.__exportStar(require("./ListImportsCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./ListManagedAccountsCommand"), exports);
|
|
38
39
|
tslib_1.__exportStar(require("./ListSourceServerActionsCommand"), exports);
|
|
39
40
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
40
41
|
tslib_1.__exportStar(require("./ListTemplateActionsCommand"), exports);
|
|
41
42
|
tslib_1.__exportStar(require("./ListWavesCommand"), exports);
|
|
42
43
|
tslib_1.__exportStar(require("./MarkAsArchivedCommand"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./PauseReplicationCommand"), exports);
|
|
43
45
|
tslib_1.__exportStar(require("./PutSourceServerActionCommand"), exports);
|
|
44
46
|
tslib_1.__exportStar(require("./PutTemplateActionCommand"), exports);
|
|
45
47
|
tslib_1.__exportStar(require("./RemoveSourceServerActionCommand"), exports);
|
|
46
48
|
tslib_1.__exportStar(require("./RemoveTemplateActionCommand"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./ResumeReplicationCommand"), exports);
|
|
47
50
|
tslib_1.__exportStar(require("./RetryDataReplicationCommand"), exports);
|
|
48
51
|
tslib_1.__exportStar(require("./StartCutoverCommand"), exports);
|
|
49
52
|
tslib_1.__exportStar(require("./StartExportCommand"), exports);
|
|
50
53
|
tslib_1.__exportStar(require("./StartImportCommand"), exports);
|
|
51
54
|
tslib_1.__exportStar(require("./StartReplicationCommand"), exports);
|
|
52
55
|
tslib_1.__exportStar(require("./StartTestCommand"), exports);
|
|
56
|
+
tslib_1.__exportStar(require("./StopReplicationCommand"), exports);
|
|
53
57
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
54
58
|
tslib_1.__exportStar(require("./TerminateTargetInstancesCommand"), exports);
|
|
55
59
|
tslib_1.__exportStar(require("./UnarchiveApplicationCommand"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListManagedAccounts = void 0;
|
|
4
|
+
const ListManagedAccountsCommand_1 = require("../commands/ListManagedAccountsCommand");
|
|
5
|
+
const MgnClient_1 = require("../MgnClient");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new ListManagedAccountsCommand_1.ListManagedAccountsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateListManagedAccounts(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.nextToken = token;
|
|
15
|
+
input["maxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof MgnClient_1.MgnClient) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected Mgn | MgnClient");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.nextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateListManagedAccounts = paginateListManagedAccounts;
|
|
@@ -13,6 +13,7 @@ tslib_1.__exportStar(require("./ListExportErrorsPaginator"), exports);
|
|
|
13
13
|
tslib_1.__exportStar(require("./ListExportsPaginator"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./ListImportErrorsPaginator"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./ListImportsPaginator"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./ListManagedAccountsPaginator"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./ListSourceServerActionsPaginator"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./ListTemplateActionsPaginator"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./ListWavesPaginator"), exports);
|