CommonBandwithPackageAttachmentArgs

data class CommonBandwithPackageAttachmentArgs(val bandwidthPackageBandwidth: Output<String>? = null, val bandwidthPackageId: Output<String>? = null, val cancelCommonBandwidthPackageIpBandwidth: Output<Boolean>? = null, val instanceId: 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) {
var fooCommonBandwithPackage = new CommonBandwithPackage("fooCommonBandwithPackage", CommonBandwithPackageArgs.builder()
.bandwidth("2")
.bandwidthPackageName("test_common_bandwidth_package")
.description("test_common_bandwidth_package")
.build());
var fooEipAddress = new EipAddress("fooEipAddress", EipAddressArgs.builder()
.bandwidth("2")
.internetChargeType("PayByBandwidth")
.build());
var fooCommonBandwithPackageAttachment = new CommonBandwithPackageAttachment("fooCommonBandwithPackageAttachment", CommonBandwithPackageAttachmentArgs.builder()
.bandwidthPackageId(fooCommonBandwithPackage.id())
.instanceId(fooEipAddress.id())
.build());
}
}

Import

The common bandwidth package attachment can be imported using the id, e.g.

$ pulumi import alicloud:vpc/commonBandwithPackageAttachment:CommonBandwithPackageAttachment foo <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)

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.