Common Bandwith Package Attachment Args
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());
}
}
Content copied to clipboard
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>
Content copied to clipboard