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