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

tencentcloud.PrivateDnsEndPoint

Explore with Pulumi AI

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

    Provides a resource to create a privatedns end point

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.PrivateDnsEndPoint("example", {
        endPointName: "tf-example",
        endPointRegion: "ap-guangzhou",
        endPointServiceId: "vpcsvc-61wcwmar",
        ipNum: 1,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.PrivateDnsEndPoint("example",
        end_point_name="tf-example",
        end_point_region="ap-guangzhou",
        end_point_service_id="vpcsvc-61wcwmar",
        ip_num=1)
    
    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.NewPrivateDnsEndPoint(ctx, "example", &tencentcloud.PrivateDnsEndPointArgs{
    			EndPointName:      pulumi.String("tf-example"),
    			EndPointRegion:    pulumi.String("ap-guangzhou"),
    			EndPointServiceId: pulumi.String("vpcsvc-61wcwmar"),
    			IpNum:             pulumi.Float64(1),
    		})
    		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 example = new Tencentcloud.PrivateDnsEndPoint("example", new()
        {
            EndPointName = "tf-example",
            EndPointRegion = "ap-guangzhou",
            EndPointServiceId = "vpcsvc-61wcwmar",
            IpNum = 1,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.PrivateDnsEndPoint;
    import com.pulumi.tencentcloud.PrivateDnsEndPointArgs;
    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 example = new PrivateDnsEndPoint("example", PrivateDnsEndPointArgs.builder()
                .endPointName("tf-example")
                .endPointRegion("ap-guangzhou")
                .endPointServiceId("vpcsvc-61wcwmar")
                .ipNum(1)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:PrivateDnsEndPoint
        properties:
          endPointName: tf-example
          endPointRegion: ap-guangzhou
          endPointServiceId: vpcsvc-61wcwmar
          ipNum: 1
    

    Create PrivateDnsEndPoint Resource

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

    Constructor syntax

    new PrivateDnsEndPoint(name: string, args: PrivateDnsEndPointArgs, opts?: CustomResourceOptions);
    @overload
    def PrivateDnsEndPoint(resource_name: str,
                           args: PrivateDnsEndPointArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrivateDnsEndPoint(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           end_point_name: Optional[str] = None,
                           end_point_region: Optional[str] = None,
                           end_point_service_id: Optional[str] = None,
                           ip_num: Optional[float] = None,
                           private_dns_end_point_id: Optional[str] = None)
    func NewPrivateDnsEndPoint(ctx *Context, name string, args PrivateDnsEndPointArgs, opts ...ResourceOption) (*PrivateDnsEndPoint, error)
    public PrivateDnsEndPoint(string name, PrivateDnsEndPointArgs args, CustomResourceOptions? opts = null)
    public PrivateDnsEndPoint(String name, PrivateDnsEndPointArgs args)
    public PrivateDnsEndPoint(String name, PrivateDnsEndPointArgs args, CustomResourceOptions options)
    
    type: tencentcloud:PrivateDnsEndPoint
    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 PrivateDnsEndPointArgs
    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 PrivateDnsEndPointArgs
    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 PrivateDnsEndPointArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrivateDnsEndPointArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrivateDnsEndPointArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PrivateDnsEndPoint 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 PrivateDnsEndPoint resource accepts the following input properties:

    EndPointName string
    Endpoint name.
    EndPointRegion string
    Endpoint region, which should be consistent with the region of the endpoint service.
    EndPointServiceId string
    Endpoint service ID (namely, VPC endpoint service ID).
    IpNum double
    Number of endpoint IP addresses.
    PrivateDnsEndPointId string
    ID of the resource.
    EndPointName string
    Endpoint name.
    EndPointRegion string
    Endpoint region, which should be consistent with the region of the endpoint service.
    EndPointServiceId string
    Endpoint service ID (namely, VPC endpoint service ID).
    IpNum float64
    Number of endpoint IP addresses.
    PrivateDnsEndPointId string
    ID of the resource.
    endPointName String
    Endpoint name.
    endPointRegion String
    Endpoint region, which should be consistent with the region of the endpoint service.
    endPointServiceId String
    Endpoint service ID (namely, VPC endpoint service ID).
    ipNum Double
    Number of endpoint IP addresses.
    privateDnsEndPointId String
    ID of the resource.
    endPointName string
    Endpoint name.
    endPointRegion string
    Endpoint region, which should be consistent with the region of the endpoint service.
    endPointServiceId string
    Endpoint service ID (namely, VPC endpoint service ID).
    ipNum number
    Number of endpoint IP addresses.
    privateDnsEndPointId string
    ID of the resource.
    end_point_name str
    Endpoint name.
    end_point_region str
    Endpoint region, which should be consistent with the region of the endpoint service.
    end_point_service_id str
    Endpoint service ID (namely, VPC endpoint service ID).
    ip_num float
    Number of endpoint IP addresses.
    private_dns_end_point_id str
    ID of the resource.
    endPointName String
    Endpoint name.
    endPointRegion String
    Endpoint region, which should be consistent with the region of the endpoint service.
    endPointServiceId String
    Endpoint service ID (namely, VPC endpoint service ID).
    ipNum Number
    Number of endpoint IP addresses.
    privateDnsEndPointId String
    ID of the resource.

    Outputs

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

    EndPointVipSets List<string>
    Vip list of endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    EndPointVipSets []string
    Vip list of endpoint.
    Id string
    The provider-assigned unique ID for this managed resource.
    endPointVipSets List<String>
    Vip list of endpoint.
    id String
    The provider-assigned unique ID for this managed resource.
    endPointVipSets string[]
    Vip list of endpoint.
    id string
    The provider-assigned unique ID for this managed resource.
    end_point_vip_sets Sequence[str]
    Vip list of endpoint.
    id str
    The provider-assigned unique ID for this managed resource.
    endPointVipSets List<String>
    Vip list of endpoint.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing PrivateDnsEndPoint Resource

    Get an existing PrivateDnsEndPoint 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?: PrivateDnsEndPointState, opts?: CustomResourceOptions): PrivateDnsEndPoint
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            end_point_name: Optional[str] = None,
            end_point_region: Optional[str] = None,
            end_point_service_id: Optional[str] = None,
            end_point_vip_sets: Optional[Sequence[str]] = None,
            ip_num: Optional[float] = None,
            private_dns_end_point_id: Optional[str] = None) -> PrivateDnsEndPoint
    func GetPrivateDnsEndPoint(ctx *Context, name string, id IDInput, state *PrivateDnsEndPointState, opts ...ResourceOption) (*PrivateDnsEndPoint, error)
    public static PrivateDnsEndPoint Get(string name, Input<string> id, PrivateDnsEndPointState? state, CustomResourceOptions? opts = null)
    public static PrivateDnsEndPoint get(String name, Output<String> id, PrivateDnsEndPointState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:PrivateDnsEndPoint    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:
    EndPointName string
    Endpoint name.
    EndPointRegion string
    Endpoint region, which should be consistent with the region of the endpoint service.
    EndPointServiceId string
    Endpoint service ID (namely, VPC endpoint service ID).
    EndPointVipSets List<string>
    Vip list of endpoint.
    IpNum double
    Number of endpoint IP addresses.
    PrivateDnsEndPointId string
    ID of the resource.
    EndPointName string
    Endpoint name.
    EndPointRegion string
    Endpoint region, which should be consistent with the region of the endpoint service.
    EndPointServiceId string
    Endpoint service ID (namely, VPC endpoint service ID).
    EndPointVipSets []string
    Vip list of endpoint.
    IpNum float64
    Number of endpoint IP addresses.
    PrivateDnsEndPointId string
    ID of the resource.
    endPointName String
    Endpoint name.
    endPointRegion String
    Endpoint region, which should be consistent with the region of the endpoint service.
    endPointServiceId String
    Endpoint service ID (namely, VPC endpoint service ID).
    endPointVipSets List<String>
    Vip list of endpoint.
    ipNum Double
    Number of endpoint IP addresses.
    privateDnsEndPointId String
    ID of the resource.
    endPointName string
    Endpoint name.
    endPointRegion string
    Endpoint region, which should be consistent with the region of the endpoint service.
    endPointServiceId string
    Endpoint service ID (namely, VPC endpoint service ID).
    endPointVipSets string[]
    Vip list of endpoint.
    ipNum number
    Number of endpoint IP addresses.
    privateDnsEndPointId string
    ID of the resource.
    end_point_name str
    Endpoint name.
    end_point_region str
    Endpoint region, which should be consistent with the region of the endpoint service.
    end_point_service_id str
    Endpoint service ID (namely, VPC endpoint service ID).
    end_point_vip_sets Sequence[str]
    Vip list of endpoint.
    ip_num float
    Number of endpoint IP addresses.
    private_dns_end_point_id str
    ID of the resource.
    endPointName String
    Endpoint name.
    endPointRegion String
    Endpoint region, which should be consistent with the region of the endpoint service.
    endPointServiceId String
    Endpoint service ID (namely, VPC endpoint service ID).
    endPointVipSets List<String>
    Vip list of endpoint.
    ipNum Number
    Number of endpoint IP addresses.
    privateDnsEndPointId String
    ID of the resource.

    Import

    private dns end point can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/privateDnsEndPoint:PrivateDnsEndPoint example eid-77a246c867
    

    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