tencentcloud.ClassicElasticPublicIpv6
Explore with Pulumi AI
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.
- Bandwidth
Package stringId - 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 stringPublic Ipv6Id - ID of the resource.
- Internet
Charge stringType - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - Internet
Max doubleBandwidth Out - Bandwidth in Mbps. Default is 1Mbps.
- Dictionary<string, string>
- Tags.
- Ip6Address string
- IPV6 addresses that require public network access.
- Bandwidth
Package stringId - 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 stringPublic Ipv6Id - ID of the resource.
- Internet
Charge stringType - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - Internet
Max float64Bandwidth Out - Bandwidth in Mbps. Default is 1Mbps.
- map[string]string
- Tags.
- ip6Address String
- IPV6 addresses that require public network access.
- bandwidth
Package StringId - 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 StringPublic Ipv6Id - ID of the resource.
- internet
Charge StringType - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - internet
Max DoubleBandwidth Out - Bandwidth in Mbps. Default is 1Mbps.
- Map<String,String>
- Tags.
- ip6Address string
- IPV6 addresses that require public network access.
- bandwidth
Package stringId - 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 stringPublic Ipv6Id - ID of the resource.
- internet
Charge stringType - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - internet
Max numberBandwidth Out - Bandwidth in Mbps. Default is 1Mbps.
- {[key: string]: string}
- Tags.
- ip6_
address str - IPV6 addresses that require public network access.
- bandwidth_
package_ strid - 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_ strpublic_ ipv6_ id - ID of the resource.
- internet_
charge_ strtype - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - internet_
max_ floatbandwidth_ out - Bandwidth in Mbps. Default is 1Mbps.
- Mapping[str, str]
- Tags.
- ip6Address String
- IPV6 addresses that require public network access.
- bandwidth
Package StringId - 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 StringPublic Ipv6Id - ID of the resource.
- internet
Charge StringType - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - internet
Max NumberBandwidth Out - Bandwidth in Mbps. Default is 1Mbps.
- 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.
- Bandwidth
Package stringId - 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 stringPublic Ipv6Id - ID of the resource.
- Internet
Charge stringType - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - Internet
Max doubleBandwidth Out - Bandwidth in Mbps. Default is 1Mbps.
- Ip6Address string
- IPV6 addresses that require public network access.
- Dictionary<string, string>
- Tags.
- Bandwidth
Package stringId - 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 stringPublic Ipv6Id - ID of the resource.
- Internet
Charge stringType - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - Internet
Max float64Bandwidth Out - Bandwidth in Mbps. Default is 1Mbps.
- Ip6Address string
- IPV6 addresses that require public network access.
- map[string]string
- Tags.
- bandwidth
Package StringId - 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 StringPublic Ipv6Id - ID of the resource.
- internet
Charge StringType - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - internet
Max DoubleBandwidth Out - Bandwidth in Mbps. Default is 1Mbps.
- ip6Address String
- IPV6 addresses that require public network access.
- Map<String,String>
- Tags.
- bandwidth
Package stringId - 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 stringPublic Ipv6Id - ID of the resource.
- internet
Charge stringType - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - internet
Max numberBandwidth Out - Bandwidth in Mbps. Default is 1Mbps.
- ip6Address string
- IPV6 addresses that require public network access.
- {[key: string]: string}
- Tags.
- bandwidth_
package_ strid - 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_ strpublic_ ipv6_ id - ID of the resource.
- internet_
charge_ strtype - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - internet_
max_ floatbandwidth_ out - Bandwidth in Mbps. Default is 1Mbps.
- ip6_
address str - IPV6 addresses that require public network access.
- Mapping[str, str]
- Tags.
- bandwidth
Package StringId - 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 StringPublic Ipv6Id - ID of the resource.
- internet
Charge StringType - Network billing model. IPV6 currently supports
TRAFFIC_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. The default network charging mode isTRAFFIC_POSTPAID_BY_HOUR
. - internet
Max NumberBandwidth Out - Bandwidth in Mbps. Default is 1Mbps.
- ip6Address String
- IPV6 addresses that require public network access.
- 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.