|
1 | 1 | // smithy-typescript generated code |
2 | 2 | import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types"; |
3 | 3 |
|
| 4 | +import { |
| 5 | + CreateExtendedSourceServerCommand, |
| 6 | + CreateExtendedSourceServerCommandInput, |
| 7 | + CreateExtendedSourceServerCommandOutput, |
| 8 | +} from "./commands/CreateExtendedSourceServerCommand"; |
4 | 9 | import { |
5 | 10 | CreateReplicationConfigurationTemplateCommand, |
6 | 11 | CreateReplicationConfigurationTemplateCommandInput, |
@@ -82,6 +87,16 @@ import { |
82 | 87 | InitializeServiceCommandInput, |
83 | 88 | InitializeServiceCommandOutput, |
84 | 89 | } from "./commands/InitializeServiceCommand"; |
| 90 | +import { |
| 91 | + ListExtensibleSourceServersCommand, |
| 92 | + ListExtensibleSourceServersCommandInput, |
| 93 | + ListExtensibleSourceServersCommandOutput, |
| 94 | +} from "./commands/ListExtensibleSourceServersCommand"; |
| 95 | +import { |
| 96 | + ListStagingAccountsCommand, |
| 97 | + ListStagingAccountsCommandInput, |
| 98 | + ListStagingAccountsCommandOutput, |
| 99 | +} from "./commands/ListStagingAccountsCommand"; |
85 | 100 | import { |
86 | 101 | ListTagsForResourceCommand, |
87 | 102 | ListTagsForResourceCommandInput, |
@@ -144,6 +159,38 @@ import { DrsClient } from "./DrsClient"; |
144 | 159 | * <p>AWS Elastic Disaster Recovery Service.</p> |
145 | 160 | */ |
146 | 161 | export class Drs extends DrsClient { |
| 162 | + /** |
| 163 | + * <p>Create an extended source server in the target Account based on the source server in staging account.</p> |
| 164 | + */ |
| 165 | + public createExtendedSourceServer( |
| 166 | + args: CreateExtendedSourceServerCommandInput, |
| 167 | + options?: __HttpHandlerOptions |
| 168 | + ): Promise<CreateExtendedSourceServerCommandOutput>; |
| 169 | + public createExtendedSourceServer( |
| 170 | + args: CreateExtendedSourceServerCommandInput, |
| 171 | + cb: (err: any, data?: CreateExtendedSourceServerCommandOutput) => void |
| 172 | + ): void; |
| 173 | + public createExtendedSourceServer( |
| 174 | + args: CreateExtendedSourceServerCommandInput, |
| 175 | + options: __HttpHandlerOptions, |
| 176 | + cb: (err: any, data?: CreateExtendedSourceServerCommandOutput) => void |
| 177 | + ): void; |
| 178 | + public createExtendedSourceServer( |
| 179 | + args: CreateExtendedSourceServerCommandInput, |
| 180 | + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateExtendedSourceServerCommandOutput) => void), |
| 181 | + cb?: (err: any, data?: CreateExtendedSourceServerCommandOutput) => void |
| 182 | + ): Promise<CreateExtendedSourceServerCommandOutput> | void { |
| 183 | + const command = new CreateExtendedSourceServerCommand(args); |
| 184 | + if (typeof optionsOrCb === "function") { |
| 185 | + this.send(command, optionsOrCb); |
| 186 | + } else if (typeof cb === "function") { |
| 187 | + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); |
| 188 | + this.send(command, optionsOrCb || {}, cb); |
| 189 | + } else { |
| 190 | + return this.send(command, optionsOrCb); |
| 191 | + } |
| 192 | + } |
| 193 | + |
147 | 194 | /** |
148 | 195 | * <p>Creates a new ReplicationConfigurationTemplate.</p> |
149 | 196 | */ |
@@ -685,6 +732,73 @@ export class Drs extends DrsClient { |
685 | 732 | } |
686 | 733 | } |
687 | 734 |
|
| 735 | + /** |
| 736 | + * <p>Returns a list of source servers on a staging account that are extensible, which means that: |
| 737 | + * a. The source server is not already extended into this Account. |
| 738 | + * b. The source server on the Account we’re reading from is not an extension of another source server. |
| 739 | + * </p> |
| 740 | + */ |
| 741 | + public listExtensibleSourceServers( |
| 742 | + args: ListExtensibleSourceServersCommandInput, |
| 743 | + options?: __HttpHandlerOptions |
| 744 | + ): Promise<ListExtensibleSourceServersCommandOutput>; |
| 745 | + public listExtensibleSourceServers( |
| 746 | + args: ListExtensibleSourceServersCommandInput, |
| 747 | + cb: (err: any, data?: ListExtensibleSourceServersCommandOutput) => void |
| 748 | + ): void; |
| 749 | + public listExtensibleSourceServers( |
| 750 | + args: ListExtensibleSourceServersCommandInput, |
| 751 | + options: __HttpHandlerOptions, |
| 752 | + cb: (err: any, data?: ListExtensibleSourceServersCommandOutput) => void |
| 753 | + ): void; |
| 754 | + public listExtensibleSourceServers( |
| 755 | + args: ListExtensibleSourceServersCommandInput, |
| 756 | + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListExtensibleSourceServersCommandOutput) => void), |
| 757 | + cb?: (err: any, data?: ListExtensibleSourceServersCommandOutput) => void |
| 758 | + ): Promise<ListExtensibleSourceServersCommandOutput> | void { |
| 759 | + const command = new ListExtensibleSourceServersCommand(args); |
| 760 | + if (typeof optionsOrCb === "function") { |
| 761 | + this.send(command, optionsOrCb); |
| 762 | + } else if (typeof cb === "function") { |
| 763 | + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); |
| 764 | + this.send(command, optionsOrCb || {}, cb); |
| 765 | + } else { |
| 766 | + return this.send(command, optionsOrCb); |
| 767 | + } |
| 768 | + } |
| 769 | + |
| 770 | + /** |
| 771 | + * <p>Returns an array of staging accounts for existing extended source servers.</p> |
| 772 | + */ |
| 773 | + public listStagingAccounts( |
| 774 | + args: ListStagingAccountsCommandInput, |
| 775 | + options?: __HttpHandlerOptions |
| 776 | + ): Promise<ListStagingAccountsCommandOutput>; |
| 777 | + public listStagingAccounts( |
| 778 | + args: ListStagingAccountsCommandInput, |
| 779 | + cb: (err: any, data?: ListStagingAccountsCommandOutput) => void |
| 780 | + ): void; |
| 781 | + public listStagingAccounts( |
| 782 | + args: ListStagingAccountsCommandInput, |
| 783 | + options: __HttpHandlerOptions, |
| 784 | + cb: (err: any, data?: ListStagingAccountsCommandOutput) => void |
| 785 | + ): void; |
| 786 | + public listStagingAccounts( |
| 787 | + args: ListStagingAccountsCommandInput, |
| 788 | + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListStagingAccountsCommandOutput) => void), |
| 789 | + cb?: (err: any, data?: ListStagingAccountsCommandOutput) => void |
| 790 | + ): Promise<ListStagingAccountsCommandOutput> | void { |
| 791 | + const command = new ListStagingAccountsCommand(args); |
| 792 | + if (typeof optionsOrCb === "function") { |
| 793 | + this.send(command, optionsOrCb); |
| 794 | + } else if (typeof cb === "function") { |
| 795 | + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); |
| 796 | + this.send(command, optionsOrCb || {}, cb); |
| 797 | + } else { |
| 798 | + return this.send(command, optionsOrCb); |
| 799 | + } |
| 800 | + } |
| 801 | + |
688 | 802 | /** |
689 | 803 | * <p>List all tags for your Elastic Disaster Recovery resources.</p> |
690 | 804 | */ |
|
0 commit comments