|
1 | 1 | // smithy-typescript generated code
|
2 | 2 | import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
3 | 3 |
|
| 4 | +import { |
| 5 | + AcceptAddressTransferCommand, |
| 6 | + AcceptAddressTransferCommandInput, |
| 7 | + AcceptAddressTransferCommandOutput, |
| 8 | +} from "./commands/AcceptAddressTransferCommand"; |
4 | 9 | import {
|
5 | 10 | AcceptReservedInstancesExchangeQuoteCommand,
|
6 | 11 | AcceptReservedInstancesExchangeQuoteCommandInput,
|
@@ -967,6 +972,11 @@ import {
|
967 | 972 | DescribeAddressesCommandInput,
|
968 | 973 | DescribeAddressesCommandOutput,
|
969 | 974 | } from "./commands/DescribeAddressesCommand";
|
| 975 | +import { |
| 976 | + DescribeAddressTransfersCommand, |
| 977 | + DescribeAddressTransfersCommandInput, |
| 978 | + DescribeAddressTransfersCommandOutput, |
| 979 | +} from "./commands/DescribeAddressTransfersCommand"; |
970 | 980 | import {
|
971 | 981 | DescribeAggregateIdFormatCommand,
|
972 | 982 | DescribeAggregateIdFormatCommandInput,
|
@@ -1652,6 +1662,11 @@ import {
|
1652 | 1662 | DetachVpnGatewayCommandInput,
|
1653 | 1663 | DetachVpnGatewayCommandOutput,
|
1654 | 1664 | } from "./commands/DetachVpnGatewayCommand";
|
| 1665 | +import { |
| 1666 | + DisableAddressTransferCommand, |
| 1667 | + DisableAddressTransferCommandInput, |
| 1668 | + DisableAddressTransferCommandOutput, |
| 1669 | +} from "./commands/DisableAddressTransferCommand"; |
1655 | 1670 | import {
|
1656 | 1671 | DisableEbsEncryptionByDefaultCommand,
|
1657 | 1672 | DisableEbsEncryptionByDefaultCommandInput,
|
@@ -1762,6 +1777,11 @@ import {
|
1762 | 1777 | DisassociateVpcCidrBlockCommandInput,
|
1763 | 1778 | DisassociateVpcCidrBlockCommandOutput,
|
1764 | 1779 | } from "./commands/DisassociateVpcCidrBlockCommand";
|
| 1780 | +import { |
| 1781 | + EnableAddressTransferCommand, |
| 1782 | + EnableAddressTransferCommandInput, |
| 1783 | + EnableAddressTransferCommandOutput, |
| 1784 | +} from "./commands/EnableAddressTransferCommand"; |
1765 | 1785 | import {
|
1766 | 1786 | EnableEbsEncryptionByDefaultCommand,
|
1767 | 1787 | EnableEbsEncryptionByDefaultCommandInput,
|
@@ -2678,6 +2698,38 @@ import { EC2Client } from "./EC2Client";
|
2678 | 2698 | * </ul>
|
2679 | 2699 | */
|
2680 | 2700 | export class EC2 extends EC2Client {
|
| 2701 | + /** |
| 2702 | + * <p>Accepts an Elastic IP address transfer. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#using-instance-addressing-eips-transfer-accept">Accept a transferred Elastic IP address</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p> |
| 2703 | + */ |
| 2704 | + public acceptAddressTransfer( |
| 2705 | + args: AcceptAddressTransferCommandInput, |
| 2706 | + options?: __HttpHandlerOptions |
| 2707 | + ): Promise<AcceptAddressTransferCommandOutput>; |
| 2708 | + public acceptAddressTransfer( |
| 2709 | + args: AcceptAddressTransferCommandInput, |
| 2710 | + cb: (err: any, data?: AcceptAddressTransferCommandOutput) => void |
| 2711 | + ): void; |
| 2712 | + public acceptAddressTransfer( |
| 2713 | + args: AcceptAddressTransferCommandInput, |
| 2714 | + options: __HttpHandlerOptions, |
| 2715 | + cb: (err: any, data?: AcceptAddressTransferCommandOutput) => void |
| 2716 | + ): void; |
| 2717 | + public acceptAddressTransfer( |
| 2718 | + args: AcceptAddressTransferCommandInput, |
| 2719 | + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AcceptAddressTransferCommandOutput) => void), |
| 2720 | + cb?: (err: any, data?: AcceptAddressTransferCommandOutput) => void |
| 2721 | + ): Promise<AcceptAddressTransferCommandOutput> | void { |
| 2722 | + const command = new AcceptAddressTransferCommand(args); |
| 2723 | + if (typeof optionsOrCb === "function") { |
| 2724 | + this.send(command, optionsOrCb); |
| 2725 | + } else if (typeof cb === "function") { |
| 2726 | + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); |
| 2727 | + this.send(command, optionsOrCb || {}, cb); |
| 2728 | + } else { |
| 2729 | + return this.send(command, optionsOrCb); |
| 2730 | + } |
| 2731 | + } |
| 2732 | + |
2681 | 2733 | /**
|
2682 | 2734 | * <p>Accepts the Convertible Reserved Instance exchange quote described in the <a>GetReservedInstancesExchangeQuote</a> call.</p>
|
2683 | 2735 | */
|
@@ -10118,6 +10170,38 @@ export class EC2 extends EC2Client {
|
10118 | 10170 | }
|
10119 | 10171 | }
|
10120 | 10172 |
|
| 10173 | + /** |
| 10174 | + * <p>Describes an Elastic IP address transfer. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro">Transfer Elastic IP addresses</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p> |
| 10175 | + */ |
| 10176 | + public describeAddressTransfers( |
| 10177 | + args: DescribeAddressTransfersCommandInput, |
| 10178 | + options?: __HttpHandlerOptions |
| 10179 | + ): Promise<DescribeAddressTransfersCommandOutput>; |
| 10180 | + public describeAddressTransfers( |
| 10181 | + args: DescribeAddressTransfersCommandInput, |
| 10182 | + cb: (err: any, data?: DescribeAddressTransfersCommandOutput) => void |
| 10183 | + ): void; |
| 10184 | + public describeAddressTransfers( |
| 10185 | + args: DescribeAddressTransfersCommandInput, |
| 10186 | + options: __HttpHandlerOptions, |
| 10187 | + cb: (err: any, data?: DescribeAddressTransfersCommandOutput) => void |
| 10188 | + ): void; |
| 10189 | + public describeAddressTransfers( |
| 10190 | + args: DescribeAddressTransfersCommandInput, |
| 10191 | + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeAddressTransfersCommandOutput) => void), |
| 10192 | + cb?: (err: any, data?: DescribeAddressTransfersCommandOutput) => void |
| 10193 | + ): Promise<DescribeAddressTransfersCommandOutput> | void { |
| 10194 | + const command = new DescribeAddressTransfersCommand(args); |
| 10195 | + if (typeof optionsOrCb === "function") { |
| 10196 | + this.send(command, optionsOrCb); |
| 10197 | + } else if (typeof cb === "function") { |
| 10198 | + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); |
| 10199 | + this.send(command, optionsOrCb || {}, cb); |
| 10200 | + } else { |
| 10201 | + return this.send(command, optionsOrCb); |
| 10202 | + } |
| 10203 | + } |
| 10204 | + |
10121 | 10205 | /**
|
10122 | 10206 | * <p>Describes the longer ID format settings for all resource types in a specific
|
10123 | 10207 | * Region. This request is useful for performing a quick audit to determine whether a
|
@@ -14965,6 +15049,38 @@ export class EC2 extends EC2Client {
|
14965 | 15049 | }
|
14966 | 15050 | }
|
14967 | 15051 |
|
| 15052 | + /** |
| 15053 | + * <p>Disables Elastic IP address transfer. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro">Transfer Elastic IP addresses</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p> |
| 15054 | + */ |
| 15055 | + public disableAddressTransfer( |
| 15056 | + args: DisableAddressTransferCommandInput, |
| 15057 | + options?: __HttpHandlerOptions |
| 15058 | + ): Promise<DisableAddressTransferCommandOutput>; |
| 15059 | + public disableAddressTransfer( |
| 15060 | + args: DisableAddressTransferCommandInput, |
| 15061 | + cb: (err: any, data?: DisableAddressTransferCommandOutput) => void |
| 15062 | + ): void; |
| 15063 | + public disableAddressTransfer( |
| 15064 | + args: DisableAddressTransferCommandInput, |
| 15065 | + options: __HttpHandlerOptions, |
| 15066 | + cb: (err: any, data?: DisableAddressTransferCommandOutput) => void |
| 15067 | + ): void; |
| 15068 | + public disableAddressTransfer( |
| 15069 | + args: DisableAddressTransferCommandInput, |
| 15070 | + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DisableAddressTransferCommandOutput) => void), |
| 15071 | + cb?: (err: any, data?: DisableAddressTransferCommandOutput) => void |
| 15072 | + ): Promise<DisableAddressTransferCommandOutput> | void { |
| 15073 | + const command = new DisableAddressTransferCommand(args); |
| 15074 | + if (typeof optionsOrCb === "function") { |
| 15075 | + this.send(command, optionsOrCb); |
| 15076 | + } else if (typeof cb === "function") { |
| 15077 | + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); |
| 15078 | + this.send(command, optionsOrCb || {}, cb); |
| 15079 | + } else { |
| 15080 | + return this.send(command, optionsOrCb); |
| 15081 | + } |
| 15082 | + } |
| 15083 | + |
14968 | 15084 | /**
|
14969 | 15085 | * <p>Disables EBS encryption by default for your account in the current Region.</p>
|
14970 | 15086 | * <p>After you disable encryption by default, you can still create encrypted volumes by
|
@@ -15752,6 +15868,38 @@ export class EC2 extends EC2Client {
|
15752 | 15868 | }
|
15753 | 15869 | }
|
15754 | 15870 |
|
| 15871 | + /** |
| 15872 | + * <p>Enables Elastic IP address transfer. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro">Transfer Elastic IP addresses</a> in the <i>Amazon Virtual Private Cloud User Guide</i>.</p> |
| 15873 | + */ |
| 15874 | + public enableAddressTransfer( |
| 15875 | + args: EnableAddressTransferCommandInput, |
| 15876 | + options?: __HttpHandlerOptions |
| 15877 | + ): Promise<EnableAddressTransferCommandOutput>; |
| 15878 | + public enableAddressTransfer( |
| 15879 | + args: EnableAddressTransferCommandInput, |
| 15880 | + cb: (err: any, data?: EnableAddressTransferCommandOutput) => void |
| 15881 | + ): void; |
| 15882 | + public enableAddressTransfer( |
| 15883 | + args: EnableAddressTransferCommandInput, |
| 15884 | + options: __HttpHandlerOptions, |
| 15885 | + cb: (err: any, data?: EnableAddressTransferCommandOutput) => void |
| 15886 | + ): void; |
| 15887 | + public enableAddressTransfer( |
| 15888 | + args: EnableAddressTransferCommandInput, |
| 15889 | + optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: EnableAddressTransferCommandOutput) => void), |
| 15890 | + cb?: (err: any, data?: EnableAddressTransferCommandOutput) => void |
| 15891 | + ): Promise<EnableAddressTransferCommandOutput> | void { |
| 15892 | + const command = new EnableAddressTransferCommand(args); |
| 15893 | + if (typeof optionsOrCb === "function") { |
| 15894 | + this.send(command, optionsOrCb); |
| 15895 | + } else if (typeof cb === "function") { |
| 15896 | + if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`); |
| 15897 | + this.send(command, optionsOrCb || {}, cb); |
| 15898 | + } else { |
| 15899 | + return this.send(command, optionsOrCb); |
| 15900 | + } |
| 15901 | + } |
| 15902 | + |
15755 | 15903 | /**
|
15756 | 15904 | * <p>Enables EBS encryption by default for your account in the current Region.</p>
|
15757 | 15905 | * <p>After you enable encryption by default, the EBS volumes that you create are
|
|
0 commit comments