Skip to content

Commit

Permalink
feat(client-mgn): This release introduces the Import and export featu…
Browse files Browse the repository at this point in the history
…re and expansion of the post-launch actions
  • Loading branch information
awstools committed Mar 21, 2023
1 parent b310676 commit 20befeb
Show file tree
Hide file tree
Showing 20 changed files with 5,580 additions and 2,073 deletions.
48 changes: 48 additions & 0 deletions clients/client-mgn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,38 @@ ListApplications

[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)

</details>
<details>
<summary>
ListExportErrors
</summary>

[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)

</details>
<details>
<summary>
ListExports
</summary>

[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)

</details>
<details>
<summary>
ListImportErrors
</summary>

[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)

</details>
<details>
<summary>
ListImports
</summary>

[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)

</details>
<details>
<summary>
Expand Down Expand Up @@ -533,6 +565,22 @@ StartCutover

[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)

</details>
<details>
<summary>
StartExport
</summary>

[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)

</details>
<details>
<summary>
StartImport
</summary>

[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)

</details>
<details>
<summary>
Expand Down
4 changes: 3 additions & 1 deletion clients/client-mgn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@
"@aws-sdk/util-user-agent-browser": "*",
"@aws-sdk/util-user-agent-node": "*",
"@aws-sdk/util-utf8": "*",
"tslib": "^2.5.0"
"tslib": "^2.5.0",
"uuid": "^8.3.2"
},
"devDependencies": {
"@aws-sdk/service-client-documentation-generator": "*",
"@tsconfig/node14": "1.0.3",
"@types/node": "^14.14.31",
"@types/uuid": "^8.3.0",
"concurrently": "7.0.0",
"downlevel-dts": "0.10.1",
"rimraf": "3.0.2",
Expand Down
182 changes: 182 additions & 0 deletions clients/client-mgn/src/Mgn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ import {
ListApplicationsCommandInput,
ListApplicationsCommandOutput,
} from "./commands/ListApplicationsCommand";
import {
ListExportErrorsCommand,
ListExportErrorsCommandInput,
ListExportErrorsCommandOutput,
} from "./commands/ListExportErrorsCommand";
import { ListExportsCommand, ListExportsCommandInput, ListExportsCommandOutput } from "./commands/ListExportsCommand";
import {
ListImportErrorsCommand,
ListImportErrorsCommandInput,
ListImportErrorsCommandOutput,
} from "./commands/ListImportErrorsCommand";
import { ListImportsCommand, ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
import {
ListSourceServerActionsCommand,
ListSourceServerActionsCommandInput,
Expand Down Expand Up @@ -186,6 +198,8 @@ import {
StartCutoverCommandInput,
StartCutoverCommandOutput,
} from "./commands/StartCutoverCommand";
import { StartExportCommand, StartExportCommandInput, StartExportCommandOutput } from "./commands/StartExportCommand";
import { StartImportCommand, StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
import {
StartReplicationCommand,
StartReplicationCommandInput,
Expand Down Expand Up @@ -1189,6 +1203,122 @@ export class Mgn extends MgnClient {
}
}

/**
* <p>List export errors.</p>
*/
public listExportErrors(
args: ListExportErrorsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListExportErrorsCommandOutput>;
public listExportErrors(
args: ListExportErrorsCommandInput,
cb: (err: any, data?: ListExportErrorsCommandOutput) => void
): void;
public listExportErrors(
args: ListExportErrorsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListExportErrorsCommandOutput) => void
): void;
public listExportErrors(
args: ListExportErrorsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListExportErrorsCommandOutput) => void),
cb?: (err: any, data?: ListExportErrorsCommandOutput) => void
): Promise<ListExportErrorsCommandOutput> | void {
const command = new ListExportErrorsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>List exports.</p>
*/
public listExports(args: ListExportsCommandInput, options?: __HttpHandlerOptions): Promise<ListExportsCommandOutput>;
public listExports(args: ListExportsCommandInput, cb: (err: any, data?: ListExportsCommandOutput) => void): void;
public listExports(
args: ListExportsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListExportsCommandOutput) => void
): void;
public listExports(
args: ListExportsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListExportsCommandOutput) => void),
cb?: (err: any, data?: ListExportsCommandOutput) => void
): Promise<ListExportsCommandOutput> | void {
const command = new ListExportsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>List import errors.</p>
*/
public listImportErrors(
args: ListImportErrorsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListImportErrorsCommandOutput>;
public listImportErrors(
args: ListImportErrorsCommandInput,
cb: (err: any, data?: ListImportErrorsCommandOutput) => void
): void;
public listImportErrors(
args: ListImportErrorsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListImportErrorsCommandOutput) => void
): void;
public listImportErrors(
args: ListImportErrorsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListImportErrorsCommandOutput) => void),
cb?: (err: any, data?: ListImportErrorsCommandOutput) => void
): Promise<ListImportErrorsCommandOutput> | void {
const command = new ListImportErrorsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>List imports.</p>
*/
public listImports(args: ListImportsCommandInput, options?: __HttpHandlerOptions): Promise<ListImportsCommandOutput>;
public listImports(args: ListImportsCommandInput, cb: (err: any, data?: ListImportsCommandOutput) => void): void;
public listImports(
args: ListImportsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListImportsCommandOutput) => void
): void;
public listImports(
args: ListImportsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListImportsCommandOutput) => void),
cb?: (err: any, data?: ListImportsCommandOutput) => void
): Promise<ListImportsCommandOutput> | void {
const command = new ListImportsCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>List source server post migration custom actions.</p>
*/
Expand Down Expand Up @@ -1532,6 +1662,58 @@ export class Mgn extends MgnClient {
}
}

/**
* <p>Start export.</p>
*/
public startExport(args: StartExportCommandInput, options?: __HttpHandlerOptions): Promise<StartExportCommandOutput>;
public startExport(args: StartExportCommandInput, cb: (err: any, data?: StartExportCommandOutput) => void): void;
public startExport(
args: StartExportCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: StartExportCommandOutput) => void
): void;
public startExport(
args: StartExportCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartExportCommandOutput) => void),
cb?: (err: any, data?: StartExportCommandOutput) => void
): Promise<StartExportCommandOutput> | void {
const command = new StartExportCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Start import.</p>
*/
public startImport(args: StartImportCommandInput, options?: __HttpHandlerOptions): Promise<StartImportCommandOutput>;
public startImport(args: StartImportCommandInput, cb: (err: any, data?: StartImportCommandOutput) => void): void;
public startImport(
args: StartImportCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: StartImportCommandOutput) => void
): void;
public startImport(
args: StartImportCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartImportCommandOutput) => void),
cb?: (err: any, data?: StartImportCommandOutput) => void
): Promise<StartImportCommandOutput> | void {
const command = new StartImportCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Starts replication for SNAPSHOT_SHIPPING agents.</p>
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-mgn/src/MgnClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ import {
} from "./commands/GetReplicationConfigurationCommand";
import { InitializeServiceCommandInput, InitializeServiceCommandOutput } from "./commands/InitializeServiceCommand";
import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./commands/ListApplicationsCommand";
import { ListExportErrorsCommandInput, ListExportErrorsCommandOutput } from "./commands/ListExportErrorsCommand";
import { ListExportsCommandInput, ListExportsCommandOutput } from "./commands/ListExportsCommand";
import { ListImportErrorsCommandInput, ListImportErrorsCommandOutput } from "./commands/ListImportErrorsCommand";
import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
import {
ListSourceServerActionsCommandInput,
ListSourceServerActionsCommandOutput,
Expand Down Expand Up @@ -165,6 +169,8 @@ import {
RetryDataReplicationCommandOutput,
} from "./commands/RetryDataReplicationCommand";
import { StartCutoverCommandInput, StartCutoverCommandOutput } from "./commands/StartCutoverCommand";
import { StartExportCommandInput, StartExportCommandOutput } from "./commands/StartExportCommand";
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
import { StartReplicationCommandInput, StartReplicationCommandOutput } from "./commands/StartReplicationCommand";
import { StartTestCommandInput, StartTestCommandOutput } from "./commands/StartTestCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
Expand Down Expand Up @@ -239,6 +245,10 @@ export type ServiceInputTypes =
| GetReplicationConfigurationCommandInput
| InitializeServiceCommandInput
| ListApplicationsCommandInput
| ListExportErrorsCommandInput
| ListExportsCommandInput
| ListImportErrorsCommandInput
| ListImportsCommandInput
| ListSourceServerActionsCommandInput
| ListTagsForResourceCommandInput
| ListTemplateActionsCommandInput
Expand All @@ -250,6 +260,8 @@ export type ServiceInputTypes =
| RemoveTemplateActionCommandInput
| RetryDataReplicationCommandInput
| StartCutoverCommandInput
| StartExportCommandInput
| StartImportCommandInput
| StartReplicationCommandInput
| StartTestCommandInput
| TagResourceCommandInput
Expand Down Expand Up @@ -296,6 +308,10 @@ export type ServiceOutputTypes =
| GetReplicationConfigurationCommandOutput
| InitializeServiceCommandOutput
| ListApplicationsCommandOutput
| ListExportErrorsCommandOutput
| ListExportsCommandOutput
| ListImportErrorsCommandOutput
| ListImportsCommandOutput
| ListSourceServerActionsCommandOutput
| ListTagsForResourceCommandOutput
| ListTemplateActionsCommandOutput
Expand All @@ -307,6 +323,8 @@ export type ServiceOutputTypes =
| RemoveTemplateActionCommandOutput
| RetryDataReplicationCommandOutput
| StartCutoverCommandOutput
| StartExportCommandOutput
| StartImportCommandOutput
| StartReplicationCommandOutput
| StartTestCommandOutput
| TagResourceCommandOutput
Expand Down
Loading

0 comments on commit 20befeb

Please sign in to comment.