Eip Address Args
Provides a EIP Address resource. For information about EIP Address and how to use it, see What is EIP Address.
NOTE: Available in v1.126.0+. NOTE: BGP (Multi-ISP) lines are supported in all regions. BGP (Multi-ISP) Pro lines are supported only in the China (Hong Kong) region. NOTE: The resource only supports to create
PayAsYouGo PayByTraffic
orSubscription PayByBandwidth
elastic IP for international account. Otherwise, you will happened errorCOMMODITY.INVALID_COMPONENT
. Your account is international if you can use it to login in International Web Console.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EipAddress;
import com.pulumi.alicloud.ecs.EipAddressArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new EipAddress("example", EipAddressArgs.builder()
.addressName("tf-testAcc1234")
.internetChargeType("PayByBandwidth")
.isp("BGP")
.paymentType("PayAsYouGo")
.build());
}
}
Import
EIP Address can be imported using the id, e.g.
$ pulumi import alicloud:ecs/eipAddress:EipAddress example <id>
Constructors
Functions
Properties
The line type. You can set this parameter only when you create a PayAsYouGo
EIP. Valid values: BGP
: BGP (Multi-ISP) lines.Up to 89 high-quality BGP lines are available worldwide. Direct connections with multiple Internet Service Providers (ISPs), including Telecom, Unicom, Mobile, Railcom, Netcom, CERNET, China Broadcast Network, Dr. Peng, and Founder, can be established in all regions in mainland China. BGP_PRO
: BGP (Multi-ISP) Pro lines optimize data transmission to mainland China and improve connection quality for international services. Compared with BGP (Multi-ISP), when BGP (Multi-ISP) Pro provides services to clients in mainland China (excluding data centers), cross-border connections are established without using international ISP services. This reduces network latency.
The ID of the IP address pool. The EIP is allocated from the IP address pool. NOTE: The feature is available only to users whose accounts are included in the whitelist. If you want to use the feature,submit a ticket.