Skip to content

Commit

Permalink
feat(client-mgn): This release introduces the Global view feature and…
Browse files Browse the repository at this point in the history
… new Replication state APIs.
  • Loading branch information
awstools committed Jul 5, 2023
1 parent 0c8e3b0 commit 89f0f5c
Show file tree
Hide file tree
Showing 55 changed files with 2,651 additions and 50 deletions.
32 changes: 32 additions & 0 deletions clients/client-mgn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,14 @@ ListImports

[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>
ListManagedAccounts
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -514,6 +522,14 @@ MarkAsArchived

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

</details>
<details>
<summary>
PauseReplication
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -546,6 +562,14 @@ RemoveTemplateAction

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

</details>
<details>
<summary>
ResumeReplication
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -594,6 +618,14 @@ StartTest

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

</details>
<details>
<summary>
StopReplication
</summary>

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

</details>
<details>
<summary>
Expand Down
89 changes: 89 additions & 0 deletions clients/client-mgn/src/Mgn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ import {
ListImportErrorsCommandOutput,
} from "./commands/ListImportErrorsCommand";
import { ListImportsCommand, ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
import {
ListManagedAccountsCommand,
ListManagedAccountsCommandInput,
ListManagedAccountsCommandOutput,
} from "./commands/ListManagedAccountsCommand";
import {
ListSourceServerActionsCommand,
ListSourceServerActionsCommandInput,
Expand All @@ -169,6 +174,11 @@ import {
MarkAsArchivedCommandInput,
MarkAsArchivedCommandOutput,
} from "./commands/MarkAsArchivedCommand";
import {
PauseReplicationCommand,
PauseReplicationCommandInput,
PauseReplicationCommandOutput,
} from "./commands/PauseReplicationCommand";
import {
PutSourceServerActionCommand,
PutSourceServerActionCommandInput,
Expand All @@ -189,6 +199,11 @@ import {
RemoveTemplateActionCommandInput,
RemoveTemplateActionCommandOutput,
} from "./commands/RemoveTemplateActionCommand";
import {
ResumeReplicationCommand,
ResumeReplicationCommandInput,
ResumeReplicationCommandOutput,
} from "./commands/ResumeReplicationCommand";
import {
RetryDataReplicationCommand,
RetryDataReplicationCommandInput,
Expand All @@ -207,6 +222,11 @@ import {
StartReplicationCommandOutput,
} from "./commands/StartReplicationCommand";
import { StartTestCommand, StartTestCommandInput, StartTestCommandOutput } from "./commands/StartTestCommand";
import {
StopReplicationCommand,
StopReplicationCommandInput,
StopReplicationCommandOutput,
} from "./commands/StopReplicationCommand";
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import {
TerminateTargetInstancesCommand,
Expand Down Expand Up @@ -296,21 +316,25 @@ const commands = {
ListExportsCommand,
ListImportErrorsCommand,
ListImportsCommand,
ListManagedAccountsCommand,
ListSourceServerActionsCommand,
ListTagsForResourceCommand,
ListTemplateActionsCommand,
ListWavesCommand,
MarkAsArchivedCommand,
PauseReplicationCommand,
PutSourceServerActionCommand,
PutTemplateActionCommand,
RemoveSourceServerActionCommand,
RemoveTemplateActionCommand,
ResumeReplicationCommand,
RetryDataReplicationCommand,
StartCutoverCommand,
StartExportCommand,
StartImportCommand,
StartReplicationCommand,
StartTestCommand,
StopReplicationCommand,
TagResourceCommand,
TerminateTargetInstancesCommand,
UnarchiveApplicationCommand,
Expand Down Expand Up @@ -859,6 +883,23 @@ export interface Mgn {
cb: (err: any, data?: ListImportsCommandOutput) => void
): void;

/**
* @see {@link ListManagedAccountsCommand}
*/
listManagedAccounts(
args: ListManagedAccountsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListManagedAccountsCommandOutput>;
listManagedAccounts(
args: ListManagedAccountsCommandInput,
cb: (err: any, data?: ListManagedAccountsCommandOutput) => void
): void;
listManagedAccounts(
args: ListManagedAccountsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListManagedAccountsCommandOutput) => void
): void;

/**
* @see {@link ListSourceServerActionsCommand}
*/
Expand Down Expand Up @@ -935,6 +976,23 @@ export interface Mgn {
cb: (err: any, data?: MarkAsArchivedCommandOutput) => void
): void;

/**
* @see {@link PauseReplicationCommand}
*/
pauseReplication(
args: PauseReplicationCommandInput,
options?: __HttpHandlerOptions
): Promise<PauseReplicationCommandOutput>;
pauseReplication(
args: PauseReplicationCommandInput,
cb: (err: any, data?: PauseReplicationCommandOutput) => void
): void;
pauseReplication(
args: PauseReplicationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PauseReplicationCommandOutput) => void
): void;

/**
* @see {@link PutSourceServerActionCommand}
*/
Expand Down Expand Up @@ -1003,6 +1061,23 @@ export interface Mgn {
cb: (err: any, data?: RemoveTemplateActionCommandOutput) => void
): void;

/**
* @see {@link ResumeReplicationCommand}
*/
resumeReplication(
args: ResumeReplicationCommandInput,
options?: __HttpHandlerOptions
): Promise<ResumeReplicationCommandOutput>;
resumeReplication(
args: ResumeReplicationCommandInput,
cb: (err: any, data?: ResumeReplicationCommandOutput) => void
): void;
resumeReplication(
args: ResumeReplicationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ResumeReplicationCommandOutput) => void
): void;

/**
* @see {@link RetryDataReplicationCommand}
*/
Expand Down Expand Up @@ -1081,6 +1156,20 @@ export interface Mgn {
cb: (err: any, data?: StartTestCommandOutput) => void
): void;

/**
* @see {@link StopReplicationCommand}
*/
stopReplication(
args: StopReplicationCommandInput,
options?: __HttpHandlerOptions
): Promise<StopReplicationCommandOutput>;
stopReplication(args: StopReplicationCommandInput, cb: (err: any, data?: StopReplicationCommandOutput) => void): void;
stopReplication(
args: StopReplicationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: StopReplicationCommandOutput) => void
): void;

/**
* @see {@link TagResourceCommand}
*/
Expand Down
15 changes: 15 additions & 0 deletions clients/client-mgn/src/MgnClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ import { ListExportErrorsCommandInput, ListExportErrorsCommandOutput } from "./c
import { ListExportsCommandInput, ListExportsCommandOutput } from "./commands/ListExportsCommand";
import { ListImportErrorsCommandInput, ListImportErrorsCommandOutput } from "./commands/ListImportErrorsCommand";
import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
import {
ListManagedAccountsCommandInput,
ListManagedAccountsCommandOutput,
} from "./commands/ListManagedAccountsCommand";
import {
ListSourceServerActionsCommandInput,
ListSourceServerActionsCommandOutput,
Expand All @@ -151,6 +155,7 @@ import {
} from "./commands/ListTemplateActionsCommand";
import { ListWavesCommandInput, ListWavesCommandOutput } from "./commands/ListWavesCommand";
import { MarkAsArchivedCommandInput, MarkAsArchivedCommandOutput } from "./commands/MarkAsArchivedCommand";
import { PauseReplicationCommandInput, PauseReplicationCommandOutput } from "./commands/PauseReplicationCommand";
import {
PutSourceServerActionCommandInput,
PutSourceServerActionCommandOutput,
Expand All @@ -164,6 +169,7 @@ import {
RemoveTemplateActionCommandInput,
RemoveTemplateActionCommandOutput,
} from "./commands/RemoveTemplateActionCommand";
import { ResumeReplicationCommandInput, ResumeReplicationCommandOutput } from "./commands/ResumeReplicationCommand";
import {
RetryDataReplicationCommandInput,
RetryDataReplicationCommandOutput,
Expand All @@ -173,6 +179,7 @@ import { StartExportCommandInput, StartExportCommandOutput } from "./commands/St
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
import { StartReplicationCommandInput, StartReplicationCommandOutput } from "./commands/StartReplicationCommand";
import { StartTestCommandInput, StartTestCommandOutput } from "./commands/StartTestCommand";
import { StopReplicationCommandInput, StopReplicationCommandOutput } from "./commands/StopReplicationCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import {
TerminateTargetInstancesCommandInput,
Expand Down Expand Up @@ -254,21 +261,25 @@ export type ServiceInputTypes =
| ListExportsCommandInput
| ListImportErrorsCommandInput
| ListImportsCommandInput
| ListManagedAccountsCommandInput
| ListSourceServerActionsCommandInput
| ListTagsForResourceCommandInput
| ListTemplateActionsCommandInput
| ListWavesCommandInput
| MarkAsArchivedCommandInput
| PauseReplicationCommandInput
| PutSourceServerActionCommandInput
| PutTemplateActionCommandInput
| RemoveSourceServerActionCommandInput
| RemoveTemplateActionCommandInput
| ResumeReplicationCommandInput
| RetryDataReplicationCommandInput
| StartCutoverCommandInput
| StartExportCommandInput
| StartImportCommandInput
| StartReplicationCommandInput
| StartTestCommandInput
| StopReplicationCommandInput
| TagResourceCommandInput
| TerminateTargetInstancesCommandInput
| UnarchiveApplicationCommandInput
Expand Down Expand Up @@ -320,21 +331,25 @@ export type ServiceOutputTypes =
| ListExportsCommandOutput
| ListImportErrorsCommandOutput
| ListImportsCommandOutput
| ListManagedAccountsCommandOutput
| ListSourceServerActionsCommandOutput
| ListTagsForResourceCommandOutput
| ListTemplateActionsCommandOutput
| ListWavesCommandOutput
| MarkAsArchivedCommandOutput
| PauseReplicationCommandOutput
| PutSourceServerActionCommandOutput
| PutTemplateActionCommandOutput
| RemoveSourceServerActionCommandOutput
| RemoveTemplateActionCommandOutput
| ResumeReplicationCommandOutput
| RetryDataReplicationCommandOutput
| StartCutoverCommandOutput
| StartExportCommandOutput
| StartImportCommandOutput
| StartReplicationCommandOutput
| StartTestCommandOutput
| StopReplicationCommandOutput
| TagResourceCommandOutput
| TerminateTargetInstancesCommandOutput
| UnarchiveApplicationCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export interface ArchiveApplicationCommandOutput extends Application, __Metadata
* const client = new MgnClient(config);
* const input = { // ArchiveApplicationRequest
* applicationID: "STRING_VALUE", // required
* accountID: "STRING_VALUE",
* };
* const command = new ArchiveApplicationCommand(input);
* const response = await client.send(command);
Expand Down
1 change: 1 addition & 0 deletions clients/client-mgn/src/commands/ArchiveWaveCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export interface ArchiveWaveCommandOutput extends Wave, __MetadataBearer {}
* const client = new MgnClient(config);
* const input = { // ArchiveWaveRequest
* waveID: "STRING_VALUE", // required
* accountID: "STRING_VALUE",
* };
* const command = new ArchiveWaveCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface AssociateApplicationsCommandOutput extends AssociateApplication
* applicationIDs: [ // ApplicationIDs // required
* "STRING_VALUE",
* ],
* accountID: "STRING_VALUE",
* };
* const command = new AssociateApplicationsCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface AssociateSourceServersCommandOutput extends AssociateSourceServ
* sourceServerIDs: [ // AssociateSourceServersRequestSourceServerIDs // required
* "STRING_VALUE",
* ],
* accountID: "STRING_VALUE",
* };
* const command = new AssociateSourceServersCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface ChangeServerLifeCycleStateCommandOutput extends SourceServer, _
* lifeCycle: { // ChangeServerLifeCycleStateSourceServerLifecycle
* state: "STRING_VALUE", // required
* },
* accountID: "STRING_VALUE",
* };
* const command = new ChangeServerLifeCycleStateCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export interface CreateApplicationCommandOutput extends Application, __MetadataB
* tags: { // TagsMap
* "<keys>": "STRING_VALUE",
* },
* accountID: "STRING_VALUE",
* };
* const command = new CreateApplicationCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export interface CreateReplicationConfigurationTemplateCommandOutput
* stagingAreaTags: { // TagsMap // required
* "<keys>": "STRING_VALUE",
* },
* useFipsEndpoint: true || false,
* tags: {
* "<keys>": "STRING_VALUE",
* },
Expand All @@ -96,6 +97,7 @@ export interface CreateReplicationConfigurationTemplateCommandOutput
* // stagingAreaTags: { // TagsMap
* // "<keys>": "STRING_VALUE",
* // },
* // useFipsEndpoint: true || false,
* // tags: {
* // "<keys>": "STRING_VALUE",
* // },
Expand Down
1 change: 1 addition & 0 deletions clients/client-mgn/src/commands/CreateWaveCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export interface CreateWaveCommandOutput extends Wave, __MetadataBearer {}
* tags: { // TagsMap
* "<keys>": "STRING_VALUE",
* },
* accountID: "STRING_VALUE",
* };
* const command = new CreateWaveCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export interface DeleteApplicationCommandOutput extends DeleteApplicationRespons
* const client = new MgnClient(config);
* const input = { // DeleteApplicationRequest
* applicationID: "STRING_VALUE", // required
* accountID: "STRING_VALUE",
* };
* const command = new DeleteApplicationCommand(input);
* const response = await client.send(command);
Expand Down
Loading

0 comments on commit 89f0f5c

Please sign in to comment.