Ipv6Internet Bandwidth Args
Provides a VPC Ipv6 Internet Bandwidth resource. For information about VPC Ipv6 Internet Bandwidth and how to use it, see What is Ipv6 Internet Bandwidth.
NOTE: Available in v1.143.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetInstancesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetIpv6AddressesArgs;
import com.pulumi.alicloud.vpc.Ipv6InternetBandwidth;
import com.pulumi.alicloud.vpc.Ipv6InternetBandwidthArgs;
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 exampleInstances = EcsFunctions.getInstances(GetInstancesArgs.builder()
.nameRegex("ecs_with_ipv6_address")
.status("Running")
.build());
final var exampleIpv6Addresses = VpcFunctions.getIpv6Addresses(GetIpv6AddressesArgs.builder()
.associatedInstanceId(exampleInstances.applyValue(getInstancesResult -> getInstancesResult.instances()[0].id()))
.status("Available")
.build());
var exampleIpv6InternetBandwidth = new Ipv6InternetBandwidth("exampleIpv6InternetBandwidth", Ipv6InternetBandwidthArgs.builder()
.ipv6AddressId(exampleIpv6Addresses.applyValue(getIpv6AddressesResult -> getIpv6AddressesResult.addresses()[0].id()))
.ipv6GatewayId(exampleIpv6Addresses.applyValue(getIpv6AddressesResult -> getIpv6AddressesResult.addresses()[0].ipv6GatewayId()))
.internetChargeType("PayByBandwidth")
.bandwidth("20")
.build());
}
}
Import
VPC Ipv6 Internet Bandwidth can be imported using the id, e.g.
$ pulumi import alicloud:vpc/ipv6InternetBandwidth:Ipv6InternetBandwidth example <id>
Constructors
Functions
Properties
The amount of Internet bandwidth resources of the IPv6 address, Unit: Mbit/s
. Valid values: 1
to 5000
. NOTE: If internet_charge_type
is set to PayByTraffic
, the amount of Internet bandwidth resources of the IPv6 address is limited by the specification of the IPv6 gateway. Small
(default): specifies the Free edition and the Internet bandwidth is from 1
to 500
Mbit/s. Medium
: specifies the Medium edition and the Internet bandwidth is from 1
to 1000
Mbit/s. Large
: specifies the Large edition and the Internet bandwidth is from 1
to 2000
Mbit/s.