EipSegmentAddressArgs

data class EipSegmentAddressArgs(val bandwidth: Output<String>? = null, val eipMask: Output<String>? = null, val internetChargeType: Output<String>? = null, val isp: Output<String>? = null, val netmode: Output<String>? = null) : ConvertibleToJava<EipSegmentAddressArgs>

Provides a EIP Segment Address resource. For information about EIP Segment Address and how to use it, see What is Segment Address.

NOTE: Available since v1.207.0.

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.EipSegmentAddress;
import com.pulumi.alicloud.ecs.EipSegmentAddressArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var default_ = new EipSegmentAddress("default", EipSegmentAddressArgs.builder()
.bandwidth("5")
.eipMask("28")
.internetChargeType("PayByBandwidth")
.isp("BGP")
.netmode("public")
.build());
}
}

Import

EIP Segment Address can be imported using the id, e.g.

$ pulumi import alicloud:ecs/eipSegmentAddress:EipSegmentAddress example <id>

Constructors

Link copied to clipboard
fun EipSegmentAddressArgs(bandwidth: Output<String>? = null, eipMask: Output<String>? = null, internetChargeType: Output<String>? = null, isp: Output<String>? = null, netmode: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): EipSegmentAddressArgs

Properties

Link copied to clipboard
val bandwidth: Output<String>? = null

The peak bandwidth of the EIP. Unit: Mbps. When the value of instancargetype is PostPaid and the value of InternetChargeType is PayByBandwidth, the range of Bandwidth is 1 to 500. If the value of instancargetype is PostPaid and the value of InternetChargeType is PayByTraffic, the range of Bandwidth is 1 to 200. When instancargetype is set to PrePaid, the range of Bandwidth is 1 to 1000. The default value is 5 Mbps.

Link copied to clipboard
val eipMask: Output<String>? = null

Mask of consecutive EIPs. Value:28: For a single call, the system will allocate 16 consecutive EIPs.27: For a single call, the system will allocate 32 consecutive EIPs.26: For a single call, the system will allocate 64 consecutive EIPs.25: For a single call, the system will allocate 128 consecutive EIPs.24: For a single call, the system will allocate 256 consecutive EIPs.

Link copied to clipboard
val internetChargeType: Output<String>? = null

Continuous EIP billing method, valid values:

Link copied to clipboard
val isp: Output<String>? = null

Line type. Valid values:

Link copied to clipboard
val netmode: Output<String>? = null

The network type. Set the value to public.