alicloud.vpc.Ipv6InternetBandwidth
Explore with Pulumi AI
Provides a VPC Ipv6 Internet Bandwidth resource. Public network bandwidth of IPv6 address.
For information about VPC Ipv6 Internet Bandwidth and how to use it, see What is Ipv6 Internet Bandwidth.
NOTE: Available since v1.143.0.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var defaultZones = AliCloud.GetZones.Invoke();
var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
{
VpcName = name,
EnableIpv6 = true,
CidrBlock = "172.16.0.0/12",
});
var vsw = new AliCloud.Vpc.Switch("vsw", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/21",
AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
Ipv6CidrBlockMask = 22,
});
var @group = new AliCloud.Ecs.SecurityGroup("group", new()
{
Description = "foo",
VpcId = defaultNetwork.Id,
});
var defaultInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
{
AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
SystemDiskCategory = "cloud_efficiency",
CpuCoreCount = 4,
MinimumEniIpv6AddressQuantity = 1,
});
var defaultImages = AliCloud.Ecs.GetImages.Invoke(new()
{
NameRegex = "^ubuntu_18.*64",
MostRecent = true,
Owners = "system",
});
var vpcInstance = new AliCloud.Ecs.Instance("vpcInstance", new()
{
AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
Ipv6AddressCount = 1,
InstanceType = defaultInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
SystemDiskCategory = "cloud_efficiency",
ImageId = defaultImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
InstanceName = name,
VswitchId = vsw.Id,
InternetMaxBandwidthOut = 10,
SecurityGroups = new[]
{
@group,
}.Select(__item => __item.Id).ToList(),
});
var exampleIpv6Gateway = new AliCloud.Vpc.Ipv6Gateway("exampleIpv6Gateway", new()
{
Ipv6GatewayName = "example_value",
VpcId = defaultNetwork.Id,
});
var defaultIpv6Addresses = AliCloud.Vpc.GetIpv6Addresses.Invoke(new()
{
AssociatedInstanceId = vpcInstance.Id,
Status = "Available",
});
var exampleIpv6InternetBandwidth = new AliCloud.Vpc.Ipv6InternetBandwidth("exampleIpv6InternetBandwidth", new()
{
Ipv6AddressId = defaultIpv6Addresses.Apply(getIpv6AddressesResult => getIpv6AddressesResult.Addresses[0]?.Id),
Ipv6GatewayId = exampleIpv6Gateway.Ipv6GatewayId,
InternetChargeType = "PayByBandwidth",
Bandwidth = 20,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example";
if param := cfg.Get("name"); param != ""{
name = param
}
defaultZones, err := alicloud.GetZones(ctx, nil, nil);
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
EnableIpv6: pulumi.Bool(true),
CidrBlock: pulumi.String("172.16.0.0/12"),
})
if err != nil {
return err
}
vsw, err := vpc.NewSwitch(ctx, "vsw", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/21"),
AvailabilityZone: *pulumi.String(defaultZones.Zones[0].Id),
Ipv6CidrBlockMask: pulumi.Int(22),
})
if err != nil {
return err
}
group, err := ecs.NewSecurityGroup(ctx, "group", &ecs.SecurityGroupArgs{
Description: pulumi.String("foo"),
VpcId: defaultNetwork.ID(),
})
if err != nil {
return err
}
defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
AvailabilityZone: pulumi.StringRef(defaultZones.Zones[0].Id),
SystemDiskCategory: pulumi.StringRef("cloud_efficiency"),
CpuCoreCount: pulumi.IntRef(4),
MinimumEniIpv6AddressQuantity: pulumi.IntRef(1),
}, nil);
if err != nil {
return err
}
defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
NameRegex: pulumi.StringRef("^ubuntu_18.*64"),
MostRecent: pulumi.BoolRef(true),
Owners: pulumi.StringRef("system"),
}, nil);
if err != nil {
return err
}
var splat0 pulumi.StringArray
for _, val0 := range %!v(PANIC=Format method: fatal: An assertion has failed: tok: ) {
splat0 = append(splat0, val0.ID())
}
vpcInstance, err := ecs.NewInstance(ctx, "vpcInstance", &ecs.InstanceArgs{
AvailabilityZone: *pulumi.String(defaultZones.Zones[0].Id),
Ipv6AddressCount: pulumi.Int(1),
InstanceType: *pulumi.String(defaultInstanceTypes.InstanceTypes[0].Id),
SystemDiskCategory: pulumi.String("cloud_efficiency"),
ImageId: *pulumi.String(defaultImages.Images[0].Id),
InstanceName: pulumi.String(name),
VswitchId: vsw.ID(),
InternetMaxBandwidthOut: pulumi.Int(10),
SecurityGroups: splat0,
})
if err != nil {
return err
}
exampleIpv6Gateway, err := vpc.NewIpv6Gateway(ctx, "exampleIpv6Gateway", &vpc.Ipv6GatewayArgs{
Ipv6GatewayName: pulumi.String("example_value"),
VpcId: defaultNetwork.ID(),
})
if err != nil {
return err
}
defaultIpv6Addresses := vpc.GetIpv6AddressesOutput(ctx, vpc.GetIpv6AddressesOutputArgs{
AssociatedInstanceId: vpcInstance.ID(),
Status: pulumi.String("Available"),
}, nil);
_, err = vpc.NewIpv6InternetBandwidth(ctx, "exampleIpv6InternetBandwidth", &vpc.Ipv6InternetBandwidthArgs{
Ipv6AddressId: defaultIpv6Addresses.ApplyT(func(defaultIpv6Addresses vpc.GetIpv6AddressesResult) (*string, error) {
return &defaultIpv6Addresses.Addresses[0].Id, nil
}).(pulumi.StringPtrOutput),
Ipv6GatewayId: exampleIpv6Gateway.Ipv6GatewayId,
InternetChargeType: pulumi.String("PayByBandwidth"),
Bandwidth: pulumi.Int(20),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
import com.pulumi.alicloud.ecs.Instance;
import com.pulumi.alicloud.ecs.InstanceArgs;
import com.pulumi.alicloud.vpc.Ipv6Gateway;
import com.pulumi.alicloud.vpc.Ipv6GatewayArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var defaultZones = AlicloudFunctions.getZones();
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.enableIpv6("true")
.cidrBlock("172.16.0.0/12")
.build());
var vsw = new Switch("vsw", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/21")
.availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.ipv6CidrBlockMask("22")
.build());
var group = new SecurityGroup("group", SecurityGroupArgs.builder()
.description("foo")
.vpcId(defaultNetwork.id())
.build());
final var defaultInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.systemDiskCategory("cloud_efficiency")
.cpuCoreCount(4)
.minimumEniIpv6AddressQuantity(1)
.build());
final var defaultImages = EcsFunctions.getImages(GetImagesArgs.builder()
.nameRegex("^ubuntu_18.*64")
.mostRecent(true)
.owners("system")
.build());
var vpcInstance = new Instance("vpcInstance", InstanceArgs.builder()
.availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.ipv6AddressCount(1)
.instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
.systemDiskCategory("cloud_efficiency")
.imageId(defaultImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
.instanceName(name)
.vswitchId(vsw.id())
.internetMaxBandwidthOut(10)
.securityGroups(group.stream().map(element -> element.id()).collect(toList()))
.build());
var exampleIpv6Gateway = new Ipv6Gateway("exampleIpv6Gateway", Ipv6GatewayArgs.builder()
.ipv6GatewayName("example_value")
.vpcId(defaultNetwork.id())
.build());
final var defaultIpv6Addresses = VpcFunctions.getIpv6Addresses(GetIpv6AddressesArgs.builder()
.associatedInstanceId(vpcInstance.id())
.status("Available")
.build());
var exampleIpv6InternetBandwidth = new Ipv6InternetBandwidth("exampleIpv6InternetBandwidth", Ipv6InternetBandwidthArgs.builder()
.ipv6AddressId(defaultIpv6Addresses.applyValue(getIpv6AddressesResult -> getIpv6AddressesResult).applyValue(defaultIpv6Addresses -> defaultIpv6Addresses.applyValue(getIpv6AddressesResult -> getIpv6AddressesResult.addresses()[0].id())))
.ipv6GatewayId(exampleIpv6Gateway.ipv6GatewayId())
.internetChargeType("PayByBandwidth")
.bandwidth("20")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default_zones = alicloud.get_zones()
default_network = alicloud.vpc.Network("defaultNetwork",
vpc_name=name,
enable_ipv6=True,
cidr_block="172.16.0.0/12")
vsw = alicloud.vpc.Switch("vsw",
vpc_id=default_network.id,
cidr_block="172.16.0.0/21",
availability_zone=default_zones.zones[0].id,
ipv6_cidr_block_mask=22)
group = alicloud.ecs.SecurityGroup("group",
description="foo",
vpc_id=default_network.id)
default_instance_types = alicloud.ecs.get_instance_types(availability_zone=default_zones.zones[0].id,
system_disk_category="cloud_efficiency",
cpu_core_count=4,
minimum_eni_ipv6_address_quantity=1)
default_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
most_recent=True,
owners="system")
vpc_instance = alicloud.ecs.Instance("vpcInstance",
availability_zone=default_zones.zones[0].id,
ipv6_address_count=1,
instance_type=default_instance_types.instance_types[0].id,
system_disk_category="cloud_efficiency",
image_id=default_images.images[0].id,
instance_name=name,
vswitch_id=vsw.id,
internet_max_bandwidth_out=10,
security_groups=[__item.id for __item in [group]])
example_ipv6_gateway = alicloud.vpc.Ipv6Gateway("exampleIpv6Gateway",
ipv6_gateway_name="example_value",
vpc_id=default_network.id)
default_ipv6_addresses = alicloud.vpc.get_ipv6_addresses_output(associated_instance_id=vpc_instance.id,
status="Available")
example_ipv6_internet_bandwidth = alicloud.vpc.Ipv6InternetBandwidth("exampleIpv6InternetBandwidth",
ipv6_address_id=default_ipv6_addresses.addresses[0].id,
ipv6_gateway_id=example_ipv6_gateway.ipv6_gateway_id,
internet_charge_type="PayByBandwidth",
bandwidth=20)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const defaultZones = alicloud.getZones({});
const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
vpcName: name,
enableIpv6: true,
cidrBlock: "172.16.0.0/12",
});
const vsw = new alicloud.vpc.Switch("vsw", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/21",
availabilityZone: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
ipv6CidrBlockMask: 22,
});
const group = new alicloud.ecs.SecurityGroup("group", {
description: "foo",
vpcId: defaultNetwork.id,
});
const defaultInstanceTypes = defaultZones.then(defaultZones => alicloud.ecs.getInstanceTypes({
availabilityZone: defaultZones.zones?.[0]?.id,
systemDiskCategory: "cloud_efficiency",
cpuCoreCount: 4,
minimumEniIpv6AddressQuantity: 1,
}));
const defaultImages = alicloud.ecs.getImages({
nameRegex: "^ubuntu_18.*64",
mostRecent: true,
owners: "system",
});
const vpcInstance = new alicloud.ecs.Instance("vpcInstance", {
availabilityZone: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
ipv6AddressCount: 1,
instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?.[0]?.id),
systemDiskCategory: "cloud_efficiency",
imageId: defaultImages.then(defaultImages => defaultImages.images?.[0]?.id),
instanceName: name,
vswitchId: vsw.id,
internetMaxBandwidthOut: 10,
securityGroups: [group].map(__item => __item.id),
});
const exampleIpv6Gateway = new alicloud.vpc.Ipv6Gateway("exampleIpv6Gateway", {
ipv6GatewayName: "example_value",
vpcId: defaultNetwork.id,
});
const defaultIpv6Addresses = alicloud.vpc.getIpv6AddressesOutput({
associatedInstanceId: vpcInstance.id,
status: "Available",
});
const exampleIpv6InternetBandwidth = new alicloud.vpc.Ipv6InternetBandwidth("exampleIpv6InternetBandwidth", {
ipv6AddressId: defaultIpv6Addresses.apply(defaultIpv6Addresses => defaultIpv6Addresses.addresses?.[0]?.id),
ipv6GatewayId: exampleIpv6Gateway.ipv6GatewayId,
internetChargeType: "PayByBandwidth",
bandwidth: 20,
});
Coming soon!
Create Ipv6InternetBandwidth Resource
new Ipv6InternetBandwidth(name: string, args: Ipv6InternetBandwidthArgs, opts?: CustomResourceOptions);
@overload
def Ipv6InternetBandwidth(resource_name: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[int] = None,
internet_charge_type: Optional[str] = None,
ipv6_address_id: Optional[str] = None,
ipv6_gateway_id: Optional[str] = None)
@overload
def Ipv6InternetBandwidth(resource_name: str,
args: Ipv6InternetBandwidthArgs,
opts: Optional[ResourceOptions] = None)
func NewIpv6InternetBandwidth(ctx *Context, name string, args Ipv6InternetBandwidthArgs, opts ...ResourceOption) (*Ipv6InternetBandwidth, error)
public Ipv6InternetBandwidth(string name, Ipv6InternetBandwidthArgs args, CustomResourceOptions? opts = null)
public Ipv6InternetBandwidth(String name, Ipv6InternetBandwidthArgs args)
public Ipv6InternetBandwidth(String name, Ipv6InternetBandwidthArgs args, CustomResourceOptions options)
type: alicloud:vpc:Ipv6InternetBandwidth
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Ipv6InternetBandwidthArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args Ipv6InternetBandwidthArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args Ipv6InternetBandwidthArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args Ipv6InternetBandwidthArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args Ipv6InternetBandwidthArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Ipv6InternetBandwidth Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Ipv6InternetBandwidth resource accepts the following input properties:
- Bandwidth int
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- Ipv6Address
Id string The ID of the IPv6 address instance.
- Ipv6Gateway
Id string The ID of the IPv6 gateway to which the IPv6 address belongs.
- Internet
Charge stringType The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.
- Bandwidth int
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- Ipv6Address
Id string The ID of the IPv6 address instance.
- Ipv6Gateway
Id string The ID of the IPv6 gateway to which the IPv6 address belongs.
- Internet
Charge stringType The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.
- bandwidth Integer
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- ipv6Address
Id String The ID of the IPv6 address instance.
- ipv6Gateway
Id String The ID of the IPv6 gateway to which the IPv6 address belongs.
- internet
Charge StringType The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.
- bandwidth number
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- ipv6Address
Id string The ID of the IPv6 address instance.
- ipv6Gateway
Id string The ID of the IPv6 gateway to which the IPv6 address belongs.
- internet
Charge stringType The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.
- bandwidth int
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- ipv6_
address_ strid The ID of the IPv6 address instance.
- ipv6_
gateway_ strid The ID of the IPv6 gateway to which the IPv6 address belongs.
- internet_
charge_ strtype The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.
- bandwidth Number
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- ipv6Address
Id String The ID of the IPv6 address instance.
- ipv6Gateway
Id String The ID of the IPv6 gateway to which the IPv6 address belongs.
- internet
Charge StringType The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Ipv6InternetBandwidth resource produces the following output properties:
Look up Existing Ipv6InternetBandwidth Resource
Get an existing Ipv6InternetBandwidth resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: Ipv6InternetBandwidthState, opts?: CustomResourceOptions): Ipv6InternetBandwidth
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[int] = None,
internet_charge_type: Optional[str] = None,
ipv6_address_id: Optional[str] = None,
ipv6_gateway_id: Optional[str] = None,
status: Optional[str] = None) -> Ipv6InternetBandwidth
func GetIpv6InternetBandwidth(ctx *Context, name string, id IDInput, state *Ipv6InternetBandwidthState, opts ...ResourceOption) (*Ipv6InternetBandwidth, error)
public static Ipv6InternetBandwidth Get(string name, Input<string> id, Ipv6InternetBandwidthState? state, CustomResourceOptions? opts = null)
public static Ipv6InternetBandwidth get(String name, Output<String> id, Ipv6InternetBandwidthState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bandwidth int
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- Internet
Charge stringType The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.- Ipv6Address
Id string The ID of the IPv6 address instance.
- Ipv6Gateway
Id string The ID of the IPv6 gateway to which the IPv6 address belongs.
- Status string
The status of the resource.
- Bandwidth int
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- Internet
Charge stringType The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.- Ipv6Address
Id string The ID of the IPv6 address instance.
- Ipv6Gateway
Id string The ID of the IPv6 gateway to which the IPv6 address belongs.
- Status string
The status of the resource.
- bandwidth Integer
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- internet
Charge StringType The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.- ipv6Address
Id String The ID of the IPv6 address instance.
- ipv6Gateway
Id String The ID of the IPv6 gateway to which the IPv6 address belongs.
- status String
The status of the resource.
- bandwidth number
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- internet
Charge stringType The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.- ipv6Address
Id string The ID of the IPv6 address instance.
- ipv6Gateway
Id string The ID of the IPv6 gateway to which the IPv6 address belongs.
- status string
The status of the resource.
- bandwidth int
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- internet_
charge_ strtype The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.- ipv6_
address_ strid The ID of the IPv6 address instance.
- ipv6_
gateway_ strid The ID of the IPv6 gateway to which the IPv6 address belongs.
- status str
The status of the resource.
- bandwidth Number
The amount of Internet bandwidth resources of the IPv6 address, Unit:
Mbit/s
. Valid values:1
to5000
. NOTE: Ifinternet_charge_type
is set toPayByTraffic
, 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 from1
to500
Mbit/s.Medium
: specifies the Medium edition and the Internet bandwidth is from1
to1000
Mbit/s.Large
: specifies the Large edition and the Internet bandwidth is from1
to2000
Mbit/s.- internet
Charge StringType The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values:
PayByBandwidth
,PayByTraffic
.- ipv6Address
Id String The ID of the IPv6 address instance.
- ipv6Gateway
Id String The ID of the IPv6 gateway to which the IPv6 address belongs.
- status String
The status of the resource.
Import
VPC Ipv6 Internet Bandwidth can be imported using the id, e.g.
$ pulumi import alicloud:vpc/ipv6InternetBandwidth:Ipv6InternetBandwidth example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.