tencentcloud.ElasticPublicIpv6Attachment
Explore with Pulumi AI
Provides a resource to create a vpc elastic_public_ipv6_attachment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const elasticPublicIpv6Attachment = new tencentcloud.ElasticPublicIpv6Attachment("elasticPublicIpv6Attachment", {
ipv6AddressId: "eipv6-xxxxxx",
networkInterfaceId: "eni-xxxxxx",
privateIpv6Address: "xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
elastic_public_ipv6_attachment = tencentcloud.ElasticPublicIpv6Attachment("elasticPublicIpv6Attachment",
ipv6_address_id="eipv6-xxxxxx",
network_interface_id="eni-xxxxxx",
private_ipv6_address="xxxxxx")
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.NewElasticPublicIpv6Attachment(ctx, "elasticPublicIpv6Attachment", &tencentcloud.ElasticPublicIpv6AttachmentArgs{
Ipv6AddressId: pulumi.String("eipv6-xxxxxx"),
NetworkInterfaceId: pulumi.String("eni-xxxxxx"),
PrivateIpv6Address: pulumi.String("xxxxxx"),
})
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 elasticPublicIpv6Attachment = new Tencentcloud.ElasticPublicIpv6Attachment("elasticPublicIpv6Attachment", new()
{
Ipv6AddressId = "eipv6-xxxxxx",
NetworkInterfaceId = "eni-xxxxxx",
PrivateIpv6Address = "xxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ElasticPublicIpv6Attachment;
import com.pulumi.tencentcloud.ElasticPublicIpv6AttachmentArgs;
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 elasticPublicIpv6Attachment = new ElasticPublicIpv6Attachment("elasticPublicIpv6Attachment", ElasticPublicIpv6AttachmentArgs.builder()
.ipv6AddressId("eipv6-xxxxxx")
.networkInterfaceId("eni-xxxxxx")
.privateIpv6Address("xxxxxx")
.build());
}
}
resources:
elasticPublicIpv6Attachment:
type: tencentcloud:ElasticPublicIpv6Attachment
properties:
ipv6AddressId: eipv6-xxxxxx
networkInterfaceId: eni-xxxxxx
privateIpv6Address: xxxxxx
Create ElasticPublicIpv6Attachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElasticPublicIpv6Attachment(name: string, args: ElasticPublicIpv6AttachmentArgs, opts?: CustomResourceOptions);
@overload
def ElasticPublicIpv6Attachment(resource_name: str,
args: ElasticPublicIpv6AttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElasticPublicIpv6Attachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
ipv6_address_id: Optional[str] = None,
elastic_public_ipv6_attachment_id: Optional[str] = None,
keep_bind_with_eni: Optional[bool] = None,
network_interface_id: Optional[str] = None,
private_ipv6_address: Optional[str] = None)
func NewElasticPublicIpv6Attachment(ctx *Context, name string, args ElasticPublicIpv6AttachmentArgs, opts ...ResourceOption) (*ElasticPublicIpv6Attachment, error)
public ElasticPublicIpv6Attachment(string name, ElasticPublicIpv6AttachmentArgs args, CustomResourceOptions? opts = null)
public ElasticPublicIpv6Attachment(String name, ElasticPublicIpv6AttachmentArgs args)
public ElasticPublicIpv6Attachment(String name, ElasticPublicIpv6AttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:ElasticPublicIpv6Attachment
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 ElasticPublicIpv6AttachmentArgs
- 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 ElasticPublicIpv6AttachmentArgs
- 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 ElasticPublicIpv6AttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElasticPublicIpv6AttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElasticPublicIpv6AttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ElasticPublicIpv6Attachment 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 ElasticPublicIpv6Attachment resource accepts the following input properties:
- Ipv6Address
Id string - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- Elastic
Public stringIpv6Attachment Id - ID of the resource.
- Keep
Bind boolWith Eni - Whether to keep the Elastic Network Interface bound when unbinding.
- Network
Interface stringId - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- Private
Ipv6Address string - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
- Ipv6Address
Id string - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- Elastic
Public stringIpv6Attachment Id - ID of the resource.
- Keep
Bind boolWith Eni - Whether to keep the Elastic Network Interface bound when unbinding.
- Network
Interface stringId - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- Private
Ipv6Address string - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
- ipv6Address
Id String - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- elastic
Public StringIpv6Attachment Id - ID of the resource.
- keep
Bind BooleanWith Eni - Whether to keep the Elastic Network Interface bound when unbinding.
- network
Interface StringId - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- private
Ipv6Address String - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
- ipv6Address
Id string - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- elastic
Public stringIpv6Attachment Id - ID of the resource.
- keep
Bind booleanWith Eni - Whether to keep the Elastic Network Interface bound when unbinding.
- network
Interface stringId - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- private
Ipv6Address string - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
- ipv6_
address_ strid - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- elastic_
public_ stripv6_ attachment_ id - ID of the resource.
- keep_
bind_ boolwith_ eni - Whether to keep the Elastic Network Interface bound when unbinding.
- network_
interface_ strid - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- private_
ipv6_ straddress - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
- ipv6Address
Id String - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- elastic
Public StringIpv6Attachment Id - ID of the resource.
- keep
Bind BooleanWith Eni - Whether to keep the Elastic Network Interface bound when unbinding.
- network
Interface StringId - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- private
Ipv6Address String - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticPublicIpv6Attachment 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 ElasticPublicIpv6Attachment Resource
Get an existing ElasticPublicIpv6Attachment 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?: ElasticPublicIpv6AttachmentState, opts?: CustomResourceOptions): ElasticPublicIpv6Attachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
elastic_public_ipv6_attachment_id: Optional[str] = None,
ipv6_address_id: Optional[str] = None,
keep_bind_with_eni: Optional[bool] = None,
network_interface_id: Optional[str] = None,
private_ipv6_address: Optional[str] = None) -> ElasticPublicIpv6Attachment
func GetElasticPublicIpv6Attachment(ctx *Context, name string, id IDInput, state *ElasticPublicIpv6AttachmentState, opts ...ResourceOption) (*ElasticPublicIpv6Attachment, error)
public static ElasticPublicIpv6Attachment Get(string name, Input<string> id, ElasticPublicIpv6AttachmentState? state, CustomResourceOptions? opts = null)
public static ElasticPublicIpv6Attachment get(String name, Output<String> id, ElasticPublicIpv6AttachmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ElasticPublicIpv6Attachment 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.
- Elastic
Public stringIpv6Attachment Id - ID of the resource.
- Ipv6Address
Id string - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- Keep
Bind boolWith Eni - Whether to keep the Elastic Network Interface bound when unbinding.
- Network
Interface stringId - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- Private
Ipv6Address string - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
- Elastic
Public stringIpv6Attachment Id - ID of the resource.
- Ipv6Address
Id string - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- Keep
Bind boolWith Eni - Whether to keep the Elastic Network Interface bound when unbinding.
- Network
Interface stringId - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- Private
Ipv6Address string - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
- elastic
Public StringIpv6Attachment Id - ID of the resource.
- ipv6Address
Id String - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- keep
Bind BooleanWith Eni - Whether to keep the Elastic Network Interface bound when unbinding.
- network
Interface StringId - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- private
Ipv6Address String - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
- elastic
Public stringIpv6Attachment Id - ID of the resource.
- ipv6Address
Id string - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- keep
Bind booleanWith Eni - Whether to keep the Elastic Network Interface bound when unbinding.
- network
Interface stringId - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- private
Ipv6Address string - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
- elastic_
public_ stripv6_ attachment_ id - ID of the resource.
- ipv6_
address_ strid - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- keep_
bind_ boolwith_ eni - Whether to keep the Elastic Network Interface bound when unbinding.
- network_
interface_ strid - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- private_
ipv6_ straddress - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
- elastic
Public StringIpv6Attachment Id - ID of the resource.
- ipv6Address
Id String - Elastic IPv6 unique ID, EIPv6 unique ID is like eipv6-11112222.
- keep
Bind BooleanWith Eni - Whether to keep the Elastic Network Interface bound when unbinding.
- network
Interface StringId - Elastic Network Interface ID to bind. Elastic Network Interface ID is like eni-11112222. NetworkInterfaceId and InstanceId cannot be specified simultaneously. The Elastic Network Interface ID can be queried by logging in to the console, or obtained through the networkInterfaceId in the return value of the DescribeNetworkInterfaces interface.
- private
Ipv6Address String - The intranet IPv6 to bind. If NetworkInterfaceId is specified, PrivateIPv6Address must also be specified, which means that the EIP is bound to the specified private network IP of the specified Elastic Network Interface. Also ensure that the specified PrivateIPv6Address is an intranet IPv6 on the specified NetworkInterfaceId. The intranet IPv6 of the specified Elastic Network Interface can be queried by logging in to the console, or obtained through the Ipv6AddressSet.Address in the return value of the DescribeNetworkInterfaces interface.
Import
vpc elastic_public_ipv6_attachment can be imported using the id, e.g.
$ pulumi import tencentcloud:index/elasticPublicIpv6Attachment:ElasticPublicIpv6Attachment elastic_public_ipv6_attachment elastic_public_ipv6_attachment_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.