@aws-sdk/client-mgn 3.295.0 → 3.296.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 +48 -0
- package/dist-cjs/Mgn.js +90 -0
- package/dist-cjs/commands/ListExportErrorsCommand.js +46 -0
- package/dist-cjs/commands/ListExportsCommand.js +46 -0
- package/dist-cjs/commands/ListImportErrorsCommand.js +46 -0
- package/dist-cjs/commands/ListImportsCommand.js +46 -0
- package/dist-cjs/commands/StartExportCommand.js +46 -0
- package/dist-cjs/commands/StartImportCommand.js +46 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +191 -8
- package/dist-cjs/pagination/ListExportErrorsPaginator.js +29 -0
- package/dist-cjs/pagination/ListExportsPaginator.js +29 -0
- package/dist-cjs/pagination/ListImportErrorsPaginator.js +29 -0
- package/dist-cjs/pagination/ListImportsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +676 -3
- package/dist-es/Mgn.js +90 -0
- package/dist-es/commands/ListExportErrorsCommand.js +42 -0
- package/dist-es/commands/ListExportsCommand.js +42 -0
- package/dist-es/commands/ListImportErrorsCommand.js +42 -0
- package/dist-es/commands/ListImportsCommand.js +42 -0
- package/dist-es/commands/StartExportCommand.js +42 -0
- package/dist-es/commands/StartImportCommand.js +42 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +157 -2
- package/dist-es/pagination/ListExportErrorsPaginator.js +25 -0
- package/dist-es/pagination/ListExportsPaginator.js +25 -0
- package/dist-es/pagination/ListImportErrorsPaginator.js +25 -0
- package/dist-es/pagination/ListImportsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +663 -2
- package/dist-types/Mgn.d.ts +42 -0
- package/dist-types/MgnClient.d.ts +8 -2
- package/dist-types/commands/ListExportErrorsCommand.d.ts +50 -0
- package/dist-types/commands/ListExportsCommand.d.ts +47 -0
- package/dist-types/commands/ListImportErrorsCommand.d.ts +50 -0
- package/dist-types/commands/ListImportsCommand.d.ts +50 -0
- package/dist-types/commands/StartExportCommand.d.ts +53 -0
- package/dist-types/commands/StartImportCommand.d.ts +59 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +641 -4
- package/dist-types/pagination/ListExportErrorsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExportsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListImportErrorsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListImportsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/Mgn.d.ts +102 -0
- package/dist-types/ts3.4/MgnClient.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListExportErrorsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListExportsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListImportErrorsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StartExportCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/StartImportCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +268 -5
- package/dist-types/ts3.4/pagination/ListExportErrorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExportsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImportErrorsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
- package/package.json +32 -30
package/README.md
CHANGED
|
@@ -445,6 +445,38 @@ ListApplications
|
|
|
445
445
|
|
|
446
446
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/listapplicationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listapplicationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listapplicationscommandoutput.html)
|
|
447
447
|
|
|
448
|
+
</details>
|
|
449
|
+
<details>
|
|
450
|
+
<summary>
|
|
451
|
+
ListExportErrors
|
|
452
|
+
</summary>
|
|
453
|
+
|
|
454
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/listexporterrorscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listexporterrorscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listexporterrorscommandoutput.html)
|
|
455
|
+
|
|
456
|
+
</details>
|
|
457
|
+
<details>
|
|
458
|
+
<summary>
|
|
459
|
+
ListExports
|
|
460
|
+
</summary>
|
|
461
|
+
|
|
462
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/listexportscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listexportscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listexportscommandoutput.html)
|
|
463
|
+
|
|
464
|
+
</details>
|
|
465
|
+
<details>
|
|
466
|
+
<summary>
|
|
467
|
+
ListImportErrors
|
|
468
|
+
</summary>
|
|
469
|
+
|
|
470
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/listimporterrorscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listimporterrorscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/listimporterrorscommandoutput.html)
|
|
471
|
+
|
|
472
|
+
</details>
|
|
473
|
+
<details>
|
|
474
|
+
<summary>
|
|
475
|
+
ListImports
|
|
476
|
+
</summary>
|
|
477
|
+
|
|
478
|
+
[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)
|
|
479
|
+
|
|
448
480
|
</details>
|
|
449
481
|
<details>
|
|
450
482
|
<summary>
|
|
@@ -533,6 +565,22 @@ StartCutover
|
|
|
533
565
|
|
|
534
566
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/startcutovercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/startcutovercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/startcutovercommandoutput.html)
|
|
535
567
|
|
|
568
|
+
</details>
|
|
569
|
+
<details>
|
|
570
|
+
<summary>
|
|
571
|
+
StartExport
|
|
572
|
+
</summary>
|
|
573
|
+
|
|
574
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/startexportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/startexportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/startexportcommandoutput.html)
|
|
575
|
+
|
|
576
|
+
</details>
|
|
577
|
+
<details>
|
|
578
|
+
<summary>
|
|
579
|
+
StartImport
|
|
580
|
+
</summary>
|
|
581
|
+
|
|
582
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/classes/startimportcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/startimportcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-mgn/interfaces/startimportcommandoutput.html)
|
|
583
|
+
|
|
536
584
|
</details>
|
|
537
585
|
<details>
|
|
538
586
|
<summary>
|
package/dist-cjs/Mgn.js
CHANGED
|
@@ -31,6 +31,10 @@ const GetLaunchConfigurationCommand_1 = require("./commands/GetLaunchConfigurati
|
|
|
31
31
|
const GetReplicationConfigurationCommand_1 = require("./commands/GetReplicationConfigurationCommand");
|
|
32
32
|
const InitializeServiceCommand_1 = require("./commands/InitializeServiceCommand");
|
|
33
33
|
const ListApplicationsCommand_1 = require("./commands/ListApplicationsCommand");
|
|
34
|
+
const ListExportErrorsCommand_1 = require("./commands/ListExportErrorsCommand");
|
|
35
|
+
const ListExportsCommand_1 = require("./commands/ListExportsCommand");
|
|
36
|
+
const ListImportErrorsCommand_1 = require("./commands/ListImportErrorsCommand");
|
|
37
|
+
const ListImportsCommand_1 = require("./commands/ListImportsCommand");
|
|
34
38
|
const ListSourceServerActionsCommand_1 = require("./commands/ListSourceServerActionsCommand");
|
|
35
39
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
36
40
|
const ListTemplateActionsCommand_1 = require("./commands/ListTemplateActionsCommand");
|
|
@@ -42,6 +46,8 @@ const RemoveSourceServerActionCommand_1 = require("./commands/RemoveSourceServer
|
|
|
42
46
|
const RemoveTemplateActionCommand_1 = require("./commands/RemoveTemplateActionCommand");
|
|
43
47
|
const RetryDataReplicationCommand_1 = require("./commands/RetryDataReplicationCommand");
|
|
44
48
|
const StartCutoverCommand_1 = require("./commands/StartCutoverCommand");
|
|
49
|
+
const StartExportCommand_1 = require("./commands/StartExportCommand");
|
|
50
|
+
const StartImportCommand_1 = require("./commands/StartImportCommand");
|
|
45
51
|
const StartReplicationCommand_1 = require("./commands/StartReplicationCommand");
|
|
46
52
|
const StartTestCommand_1 = require("./commands/StartTestCommand");
|
|
47
53
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
@@ -478,6 +484,62 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
478
484
|
return this.send(command, optionsOrCb);
|
|
479
485
|
}
|
|
480
486
|
}
|
|
487
|
+
listExportErrors(args, optionsOrCb, cb) {
|
|
488
|
+
const command = new ListExportErrorsCommand_1.ListExportErrorsCommand(args);
|
|
489
|
+
if (typeof optionsOrCb === "function") {
|
|
490
|
+
this.send(command, optionsOrCb);
|
|
491
|
+
}
|
|
492
|
+
else if (typeof cb === "function") {
|
|
493
|
+
if (typeof optionsOrCb !== "object")
|
|
494
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
495
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
496
|
+
}
|
|
497
|
+
else {
|
|
498
|
+
return this.send(command, optionsOrCb);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
listExports(args, optionsOrCb, cb) {
|
|
502
|
+
const command = new ListExportsCommand_1.ListExportsCommand(args);
|
|
503
|
+
if (typeof optionsOrCb === "function") {
|
|
504
|
+
this.send(command, optionsOrCb);
|
|
505
|
+
}
|
|
506
|
+
else if (typeof cb === "function") {
|
|
507
|
+
if (typeof optionsOrCb !== "object")
|
|
508
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
509
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
return this.send(command, optionsOrCb);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
listImportErrors(args, optionsOrCb, cb) {
|
|
516
|
+
const command = new ListImportErrorsCommand_1.ListImportErrorsCommand(args);
|
|
517
|
+
if (typeof optionsOrCb === "function") {
|
|
518
|
+
this.send(command, optionsOrCb);
|
|
519
|
+
}
|
|
520
|
+
else if (typeof cb === "function") {
|
|
521
|
+
if (typeof optionsOrCb !== "object")
|
|
522
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
523
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
return this.send(command, optionsOrCb);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
listImports(args, optionsOrCb, cb) {
|
|
530
|
+
const command = new ListImportsCommand_1.ListImportsCommand(args);
|
|
531
|
+
if (typeof optionsOrCb === "function") {
|
|
532
|
+
this.send(command, optionsOrCb);
|
|
533
|
+
}
|
|
534
|
+
else if (typeof cb === "function") {
|
|
535
|
+
if (typeof optionsOrCb !== "object")
|
|
536
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
537
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
return this.send(command, optionsOrCb);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
481
543
|
listSourceServerActions(args, optionsOrCb, cb) {
|
|
482
544
|
const command = new ListSourceServerActionsCommand_1.ListSourceServerActionsCommand(args);
|
|
483
545
|
if (typeof optionsOrCb === "function") {
|
|
@@ -632,6 +694,34 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
632
694
|
return this.send(command, optionsOrCb);
|
|
633
695
|
}
|
|
634
696
|
}
|
|
697
|
+
startExport(args, optionsOrCb, cb) {
|
|
698
|
+
const command = new StartExportCommand_1.StartExportCommand(args);
|
|
699
|
+
if (typeof optionsOrCb === "function") {
|
|
700
|
+
this.send(command, optionsOrCb);
|
|
701
|
+
}
|
|
702
|
+
else if (typeof cb === "function") {
|
|
703
|
+
if (typeof optionsOrCb !== "object")
|
|
704
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
705
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
706
|
+
}
|
|
707
|
+
else {
|
|
708
|
+
return this.send(command, optionsOrCb);
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
startImport(args, optionsOrCb, cb) {
|
|
712
|
+
const command = new StartImportCommand_1.StartImportCommand(args);
|
|
713
|
+
if (typeof optionsOrCb === "function") {
|
|
714
|
+
this.send(command, optionsOrCb);
|
|
715
|
+
}
|
|
716
|
+
else if (typeof cb === "function") {
|
|
717
|
+
if (typeof optionsOrCb !== "object")
|
|
718
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
719
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
720
|
+
}
|
|
721
|
+
else {
|
|
722
|
+
return this.send(command, optionsOrCb);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
635
725
|
startReplication(args, optionsOrCb, cb) {
|
|
636
726
|
const command = new StartReplicationCommand_1.StartReplicationCommand(args);
|
|
637
727
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListExportErrorsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListExportErrorsCommand 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, ListExportErrorsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MgnClient";
|
|
28
|
+
const commandName = "ListExportErrorsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListExportErrorsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListExportErrorsResponseFilterSensitiveLog,
|
|
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.serializeAws_restJson1ListExportErrorsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListExportErrorsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListExportErrorsCommand = ListExportErrorsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListExportsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListExportsCommand 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, ListExportsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MgnClient";
|
|
28
|
+
const commandName = "ListExportsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListExportsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListExportsResponseFilterSensitiveLog,
|
|
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.serializeAws_restJson1ListExportsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListExportsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListExportsCommand = ListExportsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListImportErrorsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListImportErrorsCommand 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, ListImportErrorsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MgnClient";
|
|
28
|
+
const commandName = "ListImportErrorsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListImportErrorsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListImportErrorsResponseFilterSensitiveLog,
|
|
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.serializeAws_restJson1ListImportErrorsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListImportErrorsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListImportErrorsCommand = ListImportErrorsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListImportsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ListImportsCommand 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, ListImportsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MgnClient";
|
|
28
|
+
const commandName = "ListImportsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ListImportsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ListImportsResponseFilterSensitiveLog,
|
|
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.serializeAws_restJson1ListImportsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListImportsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ListImportsCommand = ListImportsCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartExportCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class StartExportCommand 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, StartExportCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MgnClient";
|
|
28
|
+
const commandName = "StartExportCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.StartExportRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.StartExportResponseFilterSensitiveLog,
|
|
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.serializeAws_restJson1StartExportCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1StartExportCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.StartExportCommand = StartExportCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartImportCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class StartImportCommand 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, StartImportCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MgnClient";
|
|
28
|
+
const commandName = "StartImportCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.StartImportRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.StartImportResponseFilterSensitiveLog,
|
|
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.serializeAws_restJson1StartImportCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1StartImportCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.StartImportCommand = StartImportCommand;
|
|
@@ -31,6 +31,10 @@ tslib_1.__exportStar(require("./GetLaunchConfigurationCommand"), exports);
|
|
|
31
31
|
tslib_1.__exportStar(require("./GetReplicationConfigurationCommand"), exports);
|
|
32
32
|
tslib_1.__exportStar(require("./InitializeServiceCommand"), exports);
|
|
33
33
|
tslib_1.__exportStar(require("./ListApplicationsCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./ListExportErrorsCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./ListExportsCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./ListImportErrorsCommand"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./ListImportsCommand"), exports);
|
|
34
38
|
tslib_1.__exportStar(require("./ListSourceServerActionsCommand"), exports);
|
|
35
39
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
36
40
|
tslib_1.__exportStar(require("./ListTemplateActionsCommand"), exports);
|
|
@@ -42,6 +46,8 @@ tslib_1.__exportStar(require("./RemoveSourceServerActionCommand"), exports);
|
|
|
42
46
|
tslib_1.__exportStar(require("./RemoveTemplateActionCommand"), exports);
|
|
43
47
|
tslib_1.__exportStar(require("./RetryDataReplicationCommand"), exports);
|
|
44
48
|
tslib_1.__exportStar(require("./StartCutoverCommand"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./StartExportCommand"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./StartImportCommand"), exports);
|
|
45
51
|
tslib_1.__exportStar(require("./StartReplicationCommand"), exports);
|
|
46
52
|
tslib_1.__exportStar(require("./StartTestCommand"), exports);
|
|
47
53
|
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mgn-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mgn-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://mgn.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://mgn.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|