alicloud.vpc.Ipv6InternetBandwidth
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
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var exampleInstances = AliCloud.Ecs.GetInstances.Invoke(new()
{
NameRegex = "ecs_with_ipv6_address",
Status = "Running",
});
var exampleIpv6Addresses = AliCloud.Vpc.GetIpv6Addresses.Invoke(new()
{
AssociatedInstanceId = exampleInstances.Apply(getInstancesResult => getInstancesResult.Instances[0]?.Id),
Status = "Available",
});
var exampleIpv6InternetBandwidth = new AliCloud.Vpc.Ipv6InternetBandwidth("exampleIpv6InternetBandwidth", new()
{
Ipv6AddressId = exampleIpv6Addresses.Apply(getIpv6AddressesResult => getIpv6AddressesResult.Addresses[0]?.Id),
Ipv6GatewayId = exampleIpv6Addresses.Apply(getIpv6AddressesResult => getIpv6AddressesResult.Addresses[0]?.Ipv6GatewayId),
InternetChargeType = "PayByBandwidth",
Bandwidth = 20,
});
});
package main
import (
"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"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleInstances, err := ecs.GetInstances(ctx, &ecs.GetInstancesArgs{
NameRegex: pulumi.StringRef("ecs_with_ipv6_address"),
Status: pulumi.StringRef("Running"),
}, nil)
if err != nil {
return err
}
exampleIpv6Addresses, err := vpc.GetIpv6Addresses(ctx, &vpc.GetIpv6AddressesArgs{
AssociatedInstanceId: pulumi.StringRef(exampleInstances.Instances[0].Id),
Status: pulumi.StringRef("Available"),
}, nil)
if err != nil {
return err
}
_, err = vpc.NewIpv6InternetBandwidth(ctx, "exampleIpv6InternetBandwidth", &vpc.Ipv6InternetBandwidthArgs{
Ipv6AddressId: *pulumi.String(exampleIpv6Addresses.Addresses[0].Id),
Ipv6GatewayId: *pulumi.String(exampleIpv6Addresses.Addresses[0].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.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 pulumi
import pulumi_alicloud as alicloud
example_instances = alicloud.ecs.get_instances(name_regex="ecs_with_ipv6_address",
status="Running")
example_ipv6_addresses = alicloud.vpc.get_ipv6_addresses(associated_instance_id=example_instances.instances[0].id,
status="Available")
example_ipv6_internet_bandwidth = alicloud.vpc.Ipv6InternetBandwidth("exampleIpv6InternetBandwidth",
ipv6_address_id=example_ipv6_addresses.addresses[0].id,
ipv6_gateway_id=example_ipv6_addresses.addresses[0].ipv6_gateway_id,
internet_charge_type="PayByBandwidth",
bandwidth=20)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const exampleInstances = alicloud.ecs.getInstances({
nameRegex: "ecs_with_ipv6_address",
status: "Running",
});
const exampleIpv6Addresses = exampleInstances.then(exampleInstances => alicloud.vpc.getIpv6Addresses({
associatedInstanceId: exampleInstances.instances?.[0]?.id,
status: "Available",
}));
const exampleIpv6InternetBandwidth = new alicloud.vpc.Ipv6InternetBandwidth("exampleIpv6InternetBandwidth", {
ipv6AddressId: exampleIpv6Addresses.then(exampleIpv6Addresses => exampleIpv6Addresses.addresses?.[0]?.id),
ipv6GatewayId: exampleIpv6Addresses.then(exampleIpv6Addresses => exampleIpv6Addresses.addresses?.[0]?.ipv6GatewayId),
internetChargeType: "PayByBandwidth",
bandwidth: 20,
});
resources:
exampleIpv6InternetBandwidth:
type: alicloud:vpc:Ipv6InternetBandwidth
properties:
ipv6AddressId: ${exampleIpv6Addresses.addresses[0].id}
ipv6GatewayId: ${exampleIpv6Addresses.addresses[0].ipv6GatewayId}
internetChargeType: PayByBandwidth
bandwidth: '20'
variables:
exampleInstances:
fn::invoke:
Function: alicloud:ecs:getInstances
Arguments:
nameRegex: ecs_with_ipv6_address
status: Running
exampleIpv6Addresses:
fn::invoke:
Function: alicloud:vpc:getIpv6Addresses
Arguments:
associatedInstanceId: ${exampleInstances.instances[0].id}
status: Available
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.
- Ipv6Gateway
Id string The ID of the IPv6 gateway.
- 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.
- Ipv6Gateway
Id string The ID of the IPv6 gateway.
- 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.
- ipv6Gateway
Id String The ID of the IPv6 gateway.
- 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.
- ipv6Gateway
Id string The ID of the IPv6 gateway.
- 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.
- ipv6_
gateway_ strid The ID of the IPv6 gateway.
- 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.
- ipv6Gateway
Id String The ID of the IPv6 gateway.
- 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.
- Ipv6Gateway
Id string The ID of the IPv6 gateway.
- Status string
The status of the resource.Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- 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.
- Ipv6Gateway
Id string The ID of the IPv6 gateway.
- Status string
The status of the resource.Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- 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.
- ipv6Gateway
Id String The ID of the IPv6 gateway.
- status String
The status of the resource.Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- 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.
- ipv6Gateway
Id string The ID of the IPv6 gateway.
- status string
The status of the resource.Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- 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.
- ipv6_
gateway_ strid The ID of the IPv6 gateway.
- status str
The status of the resource.Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
- 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.
- ipv6Gateway
Id String The ID of the IPv6 gateway.
- status String
The status of the resource.Valid values:
Normal
,FinancialLocked
andSecurityLocked
.
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.