1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ClassicElasticPublicIpv6
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.ClassicElasticPublicIpv6

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a vpc classic_elastic_public_ipv6

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const classicElasticPublicIpv6 = new tencentcloud.ClassicElasticPublicIpv6("classicElasticPublicIpv6", {
        internetMaxBandwidthOut: 2,
        ip6Address: "xxxxxx",
        tags: {
            testkey: "testvalue",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    classic_elastic_public_ipv6 = tencentcloud.ClassicElasticPublicIpv6("classicElasticPublicIpv6",
        internet_max_bandwidth_out=2,
        ip6_address="xxxxxx",
        tags={
            "testkey": "testvalue",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewClassicElasticPublicIpv6(ctx, "classicElasticPublicIpv6", &tencentcloud.ClassicElasticPublicIpv6Args{
    			InternetMaxBandwidthOut: pulumi.Float64(2),
    			Ip6Address:              pulumi.String("xxxxxx"),
    			Tags: pulumi.StringMap{
    				"testkey": pulumi.String("testvalue"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var classicElasticPublicIpv6 = new Tencentcloud.ClassicElasticPublicIpv6("classicElasticPublicIpv6", new()
        {
            InternetMaxBandwidthOut = 2,
            Ip6Address = "xxxxxx",
            Tags = 
            {
                { "testkey", "testvalue" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ClassicElasticPublicIpv6;
    import com.pulumi.tencentcloud.ClassicElasticPublicIpv6Args;
    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 classicElasticPublicIpv6 = new ClassicElasticPublicIpv6("classicElasticPublicIpv6", ClassicElasticPublicIpv6Args.builder()
                .internetMaxBandwidthOut(2)
                .ip6Address("xxxxxx")
                .tags(Map.of("testkey", "testvalue"))
                .build());
    
        }
    }
    
    resources:
      classicElasticPublicIpv6:
        type: tencentcloud:ClassicElasticPublicIpv6
        properties:
          internetMaxBandwidthOut: 2
          ip6Address: xxxxxx
          tags:
            testkey: testvalue
    

    Create ClassicElasticPublicIpv6 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ClassicElasticPublicIpv6(name: string, args: ClassicElasticPublicIpv6Args, opts?: CustomResourceOptions);
    @overload
    def ClassicElasticPublicIpv6(resource_name: str,
                                 args: ClassicElasticPublicIpv6Args,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClassicElasticPublicIpv6(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 ip6_address: Optional[str] = None,
                                 bandwidth_package_id: Optional[str] = None,
                                 classic_elastic_public_ipv6_id: Optional[str] = None,
                                 internet_charge_type: Optional[str] = None,
                                 internet_max_bandwidth_out: Optional[float] = None,
                                 tags: Optional[Mapping[str, str]] = None)
    func NewClassicElasticPublicIpv6(ctx *Context, name string, args ClassicElasticPublicIpv6Args, opts ...ResourceOption) (*ClassicElasticPublicIpv6, error)
    public ClassicElasticPublicIpv6(string name, ClassicElasticPublicIpv6Args args, CustomResourceOptions? opts = null)
    public ClassicElasticPublicIpv6(String name, ClassicElasticPublicIpv6Args args)
    public ClassicElasticPublicIpv6(String name, ClassicElasticPublicIpv6Args args, CustomResourceOptions options)
    
    type: tencentcloud:ClassicElasticPublicIpv6
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ClassicElasticPublicIpv6Args
    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 ClassicElasticPublicIpv6Args
    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 ClassicElasticPublicIpv6Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClassicElasticPublicIpv6Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClassicElasticPublicIpv6Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ClassicElasticPublicIpv6 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ClassicElasticPublicIpv6 resource accepts the following input properties:

    Ip6Address string
    IPV6 addresses that require public network access.
    BandwidthPackageId string
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    ClassicElasticPublicIpv6Id string
    ID of the resource.
    InternetChargeType string
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut double
    Bandwidth in Mbps. Default is 1Mbps.
    Tags Dictionary<string, string>
    Tags.
    Ip6Address string
    IPV6 addresses that require public network access.
    BandwidthPackageId string
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    ClassicElasticPublicIpv6Id string
    ID of the resource.
    InternetChargeType string
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut float64
    Bandwidth in Mbps. Default is 1Mbps.
    Tags map[string]string
    Tags.
    ip6Address String
    IPV6 addresses that require public network access.
    bandwidthPackageId String
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    classicElasticPublicIpv6Id String
    ID of the resource.
    internetChargeType String
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Double
    Bandwidth in Mbps. Default is 1Mbps.
    tags Map<String,String>
    Tags.
    ip6Address string
    IPV6 addresses that require public network access.
    bandwidthPackageId string
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    classicElasticPublicIpv6Id string
    ID of the resource.
    internetChargeType string
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut number
    Bandwidth in Mbps. Default is 1Mbps.
    tags {[key: string]: string}
    Tags.
    ip6_address str
    IPV6 addresses that require public network access.
    bandwidth_package_id str
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    classic_elastic_public_ipv6_id str
    ID of the resource.
    internet_charge_type str
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    internet_max_bandwidth_out float
    Bandwidth in Mbps. Default is 1Mbps.
    tags Mapping[str, str]
    Tags.
    ip6Address String
    IPV6 addresses that require public network access.
    bandwidthPackageId String
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    classicElasticPublicIpv6Id String
    ID of the resource.
    internetChargeType String
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Number
    Bandwidth in Mbps. Default is 1Mbps.
    tags Map<String>
    Tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ClassicElasticPublicIpv6 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ClassicElasticPublicIpv6 Resource

    Get an existing ClassicElasticPublicIpv6 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?: ClassicElasticPublicIpv6State, opts?: CustomResourceOptions): ClassicElasticPublicIpv6
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bandwidth_package_id: Optional[str] = None,
            classic_elastic_public_ipv6_id: Optional[str] = None,
            internet_charge_type: Optional[str] = None,
            internet_max_bandwidth_out: Optional[float] = None,
            ip6_address: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> ClassicElasticPublicIpv6
    func GetClassicElasticPublicIpv6(ctx *Context, name string, id IDInput, state *ClassicElasticPublicIpv6State, opts ...ResourceOption) (*ClassicElasticPublicIpv6, error)
    public static ClassicElasticPublicIpv6 Get(string name, Input<string> id, ClassicElasticPublicIpv6State? state, CustomResourceOptions? opts = null)
    public static ClassicElasticPublicIpv6 get(String name, Output<String> id, ClassicElasticPublicIpv6State state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ClassicElasticPublicIpv6    get:      id: ${id}
    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.
    The following state arguments are supported:
    BandwidthPackageId string
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    ClassicElasticPublicIpv6Id string
    ID of the resource.
    InternetChargeType string
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut double
    Bandwidth in Mbps. Default is 1Mbps.
    Ip6Address string
    IPV6 addresses that require public network access.
    Tags Dictionary<string, string>
    Tags.
    BandwidthPackageId string
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    ClassicElasticPublicIpv6Id string
    ID of the resource.
    InternetChargeType string
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    InternetMaxBandwidthOut float64
    Bandwidth in Mbps. Default is 1Mbps.
    Ip6Address string
    IPV6 addresses that require public network access.
    Tags map[string]string
    Tags.
    bandwidthPackageId String
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    classicElasticPublicIpv6Id String
    ID of the resource.
    internetChargeType String
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Double
    Bandwidth in Mbps. Default is 1Mbps.
    ip6Address String
    IPV6 addresses that require public network access.
    tags Map<String,String>
    Tags.
    bandwidthPackageId string
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    classicElasticPublicIpv6Id string
    ID of the resource.
    internetChargeType string
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut number
    Bandwidth in Mbps. Default is 1Mbps.
    ip6Address string
    IPV6 addresses that require public network access.
    tags {[key: string]: string}
    Tags.
    bandwidth_package_id str
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    classic_elastic_public_ipv6_id str
    ID of the resource.
    internet_charge_type str
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    internet_max_bandwidth_out float
    Bandwidth in Mbps. Default is 1Mbps.
    ip6_address str
    IPV6 addresses that require public network access.
    tags Mapping[str, str]
    Tags.
    bandwidthPackageId String
    Bandwidth package id, move the account up, and you need to pass in the ipv6 address to apply for bandwidth package charging mode.
    classicElasticPublicIpv6Id String
    ID of the resource.
    internetChargeType String
    Network billing model. IPV6 currently supports TRAFFIC_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE. The default network charging mode is TRAFFIC_POSTPAID_BY_HOUR.
    internetMaxBandwidthOut Number
    Bandwidth in Mbps. Default is 1Mbps.
    ip6Address String
    IPV6 addresses that require public network access.
    tags Map<String>
    Tags.

    Import

    vpc classic_elastic_public_ipv6 can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/classicElasticPublicIpv6:ClassicElasticPublicIpv6 classic_elastic_public_ipv6 classic_elastic_public_ipv6_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack