CommonBandwithPackageAttachment

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")
.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 cbwp-abc123456:eip-abc123456

Properties

Link copied to clipboard

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instanceId: Output<String>

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>