CommonBandwithPackageAttachmentArgs

data class CommonBandwithPackageAttachmentArgs(val bandwidthPackageBandwidth: Output<String>? = null, val bandwidthPackageId: Output<String>? = null, val cancelCommonBandwidthPackageIpBandwidth: Output<Boolean>? = null, val instanceId: Output<String>? = null, val ipType: Output<String>? = null) : ConvertibleToJava<CommonBandwithPackageAttachmentArgs>

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.CommonBandwithPackage;
import com.pulumi.alicloud.vpc.CommonBandwithPackageArgs;
import com.pulumi.alicloud.ecs.EipAddress;
import com.pulumi.alicloud.ecs.EipAddressArgs;
import com.pulumi.alicloud.vpc.CommonBandwithPackageAttachment;
import com.pulumi.alicloud.vpc.CommonBandwithPackageAttachmentArgs;
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 defaultCommonBandwithPackage = new CommonBandwithPackage("defaultCommonBandwithPackage", CommonBandwithPackageArgs.builder()
.bandwidth(3)
.internetChargeType("PayByBandwidth")
.build());
var defaultEipAddress = new EipAddress("defaultEipAddress", EipAddressArgs.builder()
.bandwidth("3")
.internetChargeType("PayByTraffic")
.build());
var defaultCommonBandwithPackageAttachment = new CommonBandwithPackageAttachment("defaultCommonBandwithPackageAttachment", CommonBandwithPackageAttachmentArgs.builder()
.bandwidthPackageId(defaultCommonBandwithPackage.id())
.instanceId(defaultEipAddress.id())
.bandwidthPackageBandwidth("2")
.ipType("EIP")
.build());
}
}

Import

cbwp Common Bandwidth Package Attachment can be imported using the id, e.g.

$ pulumi import alicloud:vpc/commonBandwithPackageAttachment:CommonBandwithPackageAttachment example <bandwidth_package_id>:<instance_id>

Constructors

Link copied to clipboard
fun CommonBandwithPackageAttachmentArgs(bandwidthPackageBandwidth: Output<String>? = null, bandwidthPackageId: Output<String>? = null, cancelCommonBandwidthPackageIpBandwidth: Output<Boolean>? = null, instanceId: Output<String>? = null, ipType: Output<String>? = null)

Functions

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

Properties

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

The maximum bandwidth for the EIP. This value cannot be larger than the maximum bandwidth of the EIP bandwidth plan. Unit: Mbit/s.

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

The bandwidth_package_id of the common bandwidth package attachment, the field can't be changed.

Link copied to clipboard

Whether to cancel the maximum bandwidth configuration for the EIP. Default: false.

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

The instance_id of the common bandwidth package attachment, the field can't be changed.

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

IP type. Set the value to EIP, which indicates that the EIP is added to the Internet shared bandwidth.