@aws-sdk/client-mgn 3.295.0 → 3.297.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 +104 -0
- package/dist-types/MgnClient.d.ts +32 -6
- package/dist-types/commands/ArchiveApplicationCommand.d.ts +16 -0
- package/dist-types/commands/ArchiveWaveCommand.d.ts +16 -0
- package/dist-types/commands/AssociateApplicationsCommand.d.ts +16 -0
- package/dist-types/commands/AssociateSourceServersCommand.d.ts +16 -0
- package/dist-types/commands/ChangeServerLifeCycleStateCommand.d.ts +16 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +16 -0
- package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +16 -0
- package/dist-types/commands/CreateReplicationConfigurationTemplateCommand.d.ts +16 -0
- package/dist-types/commands/CreateWaveCommand.d.ts +16 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +16 -0
- package/dist-types/commands/DeleteJobCommand.d.ts +16 -0
- package/dist-types/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +16 -0
- package/dist-types/commands/DeleteReplicationConfigurationTemplateCommand.d.ts +16 -0
- package/dist-types/commands/DeleteSourceServerCommand.d.ts +16 -0
- package/dist-types/commands/DeleteVcenterClientCommand.d.ts +16 -0
- package/dist-types/commands/DeleteWaveCommand.d.ts +16 -0
- package/dist-types/commands/DescribeJobLogItemsCommand.d.ts +16 -0
- package/dist-types/commands/DescribeJobsCommand.d.ts +16 -0
- package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +16 -0
- package/dist-types/commands/DescribeReplicationConfigurationTemplatesCommand.d.ts +16 -0
- package/dist-types/commands/DescribeSourceServersCommand.d.ts +16 -0
- package/dist-types/commands/DescribeVcenterClientsCommand.d.ts +16 -0
- package/dist-types/commands/DisassociateApplicationsCommand.d.ts +16 -0
- package/dist-types/commands/DisassociateSourceServersCommand.d.ts +16 -0
- package/dist-types/commands/DisconnectFromServiceCommand.d.ts +16 -0
- package/dist-types/commands/FinalizeCutoverCommand.d.ts +16 -0
- package/dist-types/commands/GetLaunchConfigurationCommand.d.ts +16 -0
- package/dist-types/commands/GetReplicationConfigurationCommand.d.ts +16 -0
- package/dist-types/commands/InitializeServiceCommand.d.ts +16 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +16 -0
- package/dist-types/commands/ListExportErrorsCommand.d.ts +66 -0
- package/dist-types/commands/ListExportsCommand.d.ts +63 -0
- package/dist-types/commands/ListImportErrorsCommand.d.ts +66 -0
- package/dist-types/commands/ListImportsCommand.d.ts +66 -0
- package/dist-types/commands/ListSourceServerActionsCommand.d.ts +16 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +16 -0
- package/dist-types/commands/ListTemplateActionsCommand.d.ts +16 -0
- package/dist-types/commands/ListWavesCommand.d.ts +16 -0
- package/dist-types/commands/MarkAsArchivedCommand.d.ts +16 -0
- package/dist-types/commands/PutSourceServerActionCommand.d.ts +16 -0
- package/dist-types/commands/PutTemplateActionCommand.d.ts +16 -0
- package/dist-types/commands/RemoveSourceServerActionCommand.d.ts +16 -0
- package/dist-types/commands/RemoveTemplateActionCommand.d.ts +16 -0
- package/dist-types/commands/RetryDataReplicationCommand.d.ts +16 -0
- package/dist-types/commands/StartCutoverCommand.d.ts +16 -0
- package/dist-types/commands/StartExportCommand.d.ts +69 -0
- package/dist-types/commands/StartImportCommand.d.ts +75 -0
- package/dist-types/commands/StartReplicationCommand.d.ts +16 -0
- package/dist-types/commands/StartTestCommand.d.ts +16 -0
- package/dist-types/commands/TagResourceCommand.d.ts +16 -0
- package/dist-types/commands/TerminateTargetInstancesCommand.d.ts +16 -0
- package/dist-types/commands/UnarchiveApplicationCommand.d.ts +16 -0
- package/dist-types/commands/UnarchiveWaveCommand.d.ts +16 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +16 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +16 -0
- package/dist-types/commands/UpdateLaunchConfigurationCommand.d.ts +16 -0
- package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +16 -0
- package/dist-types/commands/UpdateReplicationConfigurationCommand.d.ts +16 -0
- package/dist-types/commands/UpdateReplicationConfigurationTemplateCommand.d.ts +16 -0
- package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +16 -0
- package/dist-types/commands/UpdateWaveCommand.d.ts +16 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/MgnServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +1103 -8
- package/dist-types/pagination/DescribeJobLogItemsPaginator.d.ts +3 -0
- package/dist-types/pagination/DescribeJobsPaginator.d.ts +3 -0
- package/dist-types/pagination/DescribeLaunchConfigurationTemplatesPaginator.d.ts +3 -0
- package/dist-types/pagination/DescribeReplicationConfigurationTemplatesPaginator.d.ts +3 -0
- package/dist-types/pagination/DescribeSourceServersPaginator.d.ts +3 -0
- package/dist-types/pagination/DescribeVcenterClientsPaginator.d.ts +3 -0
- package/dist-types/pagination/Interfaces.d.ts +3 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +3 -0
- package/dist-types/pagination/ListExportErrorsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListExportsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListImportErrorsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListImportsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSourceServerActionsPaginator.d.ts +3 -0
- package/dist-types/pagination/ListTemplateActionsPaginator.d.ts +3 -0
- package/dist-types/pagination/ListWavesPaginator.d.ts +3 -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/dist-es/Mgn.js
CHANGED
|
@@ -28,6 +28,10 @@ import { GetLaunchConfigurationCommand, } from "./commands/GetLaunchConfiguratio
|
|
|
28
28
|
import { GetReplicationConfigurationCommand, } from "./commands/GetReplicationConfigurationCommand";
|
|
29
29
|
import { InitializeServiceCommand, } from "./commands/InitializeServiceCommand";
|
|
30
30
|
import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
|
|
31
|
+
import { ListExportErrorsCommand, } from "./commands/ListExportErrorsCommand";
|
|
32
|
+
import { ListExportsCommand } from "./commands/ListExportsCommand";
|
|
33
|
+
import { ListImportErrorsCommand, } from "./commands/ListImportErrorsCommand";
|
|
34
|
+
import { ListImportsCommand } from "./commands/ListImportsCommand";
|
|
31
35
|
import { ListSourceServerActionsCommand, } from "./commands/ListSourceServerActionsCommand";
|
|
32
36
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
33
37
|
import { ListTemplateActionsCommand, } from "./commands/ListTemplateActionsCommand";
|
|
@@ -39,6 +43,8 @@ import { RemoveSourceServerActionCommand, } from "./commands/RemoveSourceServerA
|
|
|
39
43
|
import { RemoveTemplateActionCommand, } from "./commands/RemoveTemplateActionCommand";
|
|
40
44
|
import { RetryDataReplicationCommand, } from "./commands/RetryDataReplicationCommand";
|
|
41
45
|
import { StartCutoverCommand, } from "./commands/StartCutoverCommand";
|
|
46
|
+
import { StartExportCommand } from "./commands/StartExportCommand";
|
|
47
|
+
import { StartImportCommand } from "./commands/StartImportCommand";
|
|
42
48
|
import { StartReplicationCommand, } from "./commands/StartReplicationCommand";
|
|
43
49
|
import { StartTestCommand } from "./commands/StartTestCommand";
|
|
44
50
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
@@ -475,6 +481,62 @@ export class Mgn extends MgnClient {
|
|
|
475
481
|
return this.send(command, optionsOrCb);
|
|
476
482
|
}
|
|
477
483
|
}
|
|
484
|
+
listExportErrors(args, optionsOrCb, cb) {
|
|
485
|
+
const command = new ListExportErrorsCommand(args);
|
|
486
|
+
if (typeof optionsOrCb === "function") {
|
|
487
|
+
this.send(command, optionsOrCb);
|
|
488
|
+
}
|
|
489
|
+
else if (typeof cb === "function") {
|
|
490
|
+
if (typeof optionsOrCb !== "object")
|
|
491
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
492
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
return this.send(command, optionsOrCb);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
listExports(args, optionsOrCb, cb) {
|
|
499
|
+
const command = new ListExportsCommand(args);
|
|
500
|
+
if (typeof optionsOrCb === "function") {
|
|
501
|
+
this.send(command, optionsOrCb);
|
|
502
|
+
}
|
|
503
|
+
else if (typeof cb === "function") {
|
|
504
|
+
if (typeof optionsOrCb !== "object")
|
|
505
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
506
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
return this.send(command, optionsOrCb);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
listImportErrors(args, optionsOrCb, cb) {
|
|
513
|
+
const command = new ListImportErrorsCommand(args);
|
|
514
|
+
if (typeof optionsOrCb === "function") {
|
|
515
|
+
this.send(command, optionsOrCb);
|
|
516
|
+
}
|
|
517
|
+
else if (typeof cb === "function") {
|
|
518
|
+
if (typeof optionsOrCb !== "object")
|
|
519
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
520
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
521
|
+
}
|
|
522
|
+
else {
|
|
523
|
+
return this.send(command, optionsOrCb);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
listImports(args, optionsOrCb, cb) {
|
|
527
|
+
const command = new ListImportsCommand(args);
|
|
528
|
+
if (typeof optionsOrCb === "function") {
|
|
529
|
+
this.send(command, optionsOrCb);
|
|
530
|
+
}
|
|
531
|
+
else if (typeof cb === "function") {
|
|
532
|
+
if (typeof optionsOrCb !== "object")
|
|
533
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
534
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
return this.send(command, optionsOrCb);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
478
540
|
listSourceServerActions(args, optionsOrCb, cb) {
|
|
479
541
|
const command = new ListSourceServerActionsCommand(args);
|
|
480
542
|
if (typeof optionsOrCb === "function") {
|
|
@@ -629,6 +691,34 @@ export class Mgn extends MgnClient {
|
|
|
629
691
|
return this.send(command, optionsOrCb);
|
|
630
692
|
}
|
|
631
693
|
}
|
|
694
|
+
startExport(args, optionsOrCb, cb) {
|
|
695
|
+
const command = new StartExportCommand(args);
|
|
696
|
+
if (typeof optionsOrCb === "function") {
|
|
697
|
+
this.send(command, optionsOrCb);
|
|
698
|
+
}
|
|
699
|
+
else if (typeof cb === "function") {
|
|
700
|
+
if (typeof optionsOrCb !== "object")
|
|
701
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
702
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
703
|
+
}
|
|
704
|
+
else {
|
|
705
|
+
return this.send(command, optionsOrCb);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
startImport(args, optionsOrCb, cb) {
|
|
709
|
+
const command = new StartImportCommand(args);
|
|
710
|
+
if (typeof optionsOrCb === "function") {
|
|
711
|
+
this.send(command, optionsOrCb);
|
|
712
|
+
}
|
|
713
|
+
else if (typeof cb === "function") {
|
|
714
|
+
if (typeof optionsOrCb !== "object")
|
|
715
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
716
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
717
|
+
}
|
|
718
|
+
else {
|
|
719
|
+
return this.send(command, optionsOrCb);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
632
722
|
startReplication(args, optionsOrCb, cb) {
|
|
633
723
|
const command = new StartReplicationCommand(args);
|
|
634
724
|
if (typeof optionsOrCb === "function") {
|
|
@@ -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 { ListExportErrorsRequestFilterSensitiveLog, ListExportErrorsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListExportErrorsCommand, serializeAws_restJson1ListExportErrorsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListExportErrorsCommand 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, ListExportErrorsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MgnClient";
|
|
25
|
+
const commandName = "ListExportErrorsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListExportErrorsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListExportErrorsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListExportErrorsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListExportErrorsCommand(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 { ListExportsRequestFilterSensitiveLog, ListExportsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListExportsCommand, serializeAws_restJson1ListExportsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListExportsCommand 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, ListExportsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MgnClient";
|
|
25
|
+
const commandName = "ListExportsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListExportsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListExportsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListExportsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListExportsCommand(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 { ListImportErrorsRequestFilterSensitiveLog, ListImportErrorsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListImportErrorsCommand, serializeAws_restJson1ListImportErrorsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListImportErrorsCommand 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, ListImportErrorsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MgnClient";
|
|
25
|
+
const commandName = "ListImportErrorsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListImportErrorsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListImportErrorsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListImportErrorsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListImportErrorsCommand(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 { ListImportsRequestFilterSensitiveLog, ListImportsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListImportsCommand, serializeAws_restJson1ListImportsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ListImportsCommand 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, ListImportsCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MgnClient";
|
|
25
|
+
const commandName = "ListImportsCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListImportsRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListImportsResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ListImportsCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ListImportsCommand(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 { StartExportRequestFilterSensitiveLog, StartExportResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1StartExportCommand, serializeAws_restJson1StartExportCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class StartExportCommand 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, StartExportCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MgnClient";
|
|
25
|
+
const commandName = "StartExportCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: StartExportRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: StartExportResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1StartExportCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1StartExportCommand(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 { StartImportRequestFilterSensitiveLog, StartImportResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1StartImportCommand, serializeAws_restJson1StartImportCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class StartImportCommand 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, StartImportCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MgnClient";
|
|
25
|
+
const commandName = "StartImportCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: StartImportRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: StartImportResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1StartImportCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1StartImportCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -28,6 +28,10 @@ export * from "./GetLaunchConfigurationCommand";
|
|
|
28
28
|
export * from "./GetReplicationConfigurationCommand";
|
|
29
29
|
export * from "./InitializeServiceCommand";
|
|
30
30
|
export * from "./ListApplicationsCommand";
|
|
31
|
+
export * from "./ListExportErrorsCommand";
|
|
32
|
+
export * from "./ListExportsCommand";
|
|
33
|
+
export * from "./ListImportErrorsCommand";
|
|
34
|
+
export * from "./ListImportsCommand";
|
|
31
35
|
export * from "./ListSourceServerActionsCommand";
|
|
32
36
|
export * from "./ListTagsForResourceCommand";
|
|
33
37
|
export * from "./ListTemplateActionsCommand";
|
|
@@ -39,6 +43,8 @@ export * from "./RemoveSourceServerActionCommand";
|
|
|
39
43
|
export * from "./RemoveTemplateActionCommand";
|
|
40
44
|
export * from "./RetryDataReplicationCommand";
|
|
41
45
|
export * from "./StartCutoverCommand";
|
|
46
|
+
export * from "./StartExportCommand";
|
|
47
|
+
export * from "./StartImportCommand";
|
|
42
48
|
export * from "./StartReplicationCommand";
|
|
43
49
|
export * from "./StartTestCommand";
|
|
44
50
|
export * from "./TagResourceCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
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" }];
|
|
3
|
+
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 }] }] };
|
|
4
4
|
export const ruleSet = _data;
|