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

tencentcloud.PrivateDnsZone

Explore with Pulumi AI

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

    Provide a resource to create a Private Dns Zone.

    NOTE: If you want to unbind all VPCs bound to the current private dns zone, simply clearing the declaration will not take effect; you need to set the region and uniq_vpc_id in vpc_set to an empty string.

    Example Usage

    Create a basic Private Dns Zone

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const example = new tencentcloud.PrivateDnsZone("example", {
        domain: "domain.com",
        remark: "remark.",
        vpcSets: [{
            region: "ap-guangzhou",
            uniqVpcId: vpc.vpcId,
        }],
        dnsForwardStatus: "DISABLED",
        cnameSpeedupStatus: "ENABLED",
        tags: {
            createdBy: "terraform",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    example = tencentcloud.PrivateDnsZone("example",
        domain="domain.com",
        remark="remark.",
        vpc_sets=[{
            "region": "ap-guangzhou",
            "uniq_vpc_id": vpc.vpc_id,
        }],
        dns_forward_status="DISABLED",
        cname_speedup_status="ENABLED",
        tags={
            "createdBy": "terraform",
        })
    
    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 {
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewPrivateDnsZone(ctx, "example", &tencentcloud.PrivateDnsZoneArgs{
    			Domain: pulumi.String("domain.com"),
    			Remark: pulumi.String("remark."),
    			VpcSets: tencentcloud.PrivateDnsZoneVpcSetArray{
    				&tencentcloud.PrivateDnsZoneVpcSetArgs{
    					Region:    pulumi.String("ap-guangzhou"),
    					UniqVpcId: vpc.VpcId,
    				},
    			},
    			DnsForwardStatus:   pulumi.String("DISABLED"),
    			CnameSpeedupStatus: pulumi.String("ENABLED"),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		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 vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var example = new Tencentcloud.PrivateDnsZone("example", new()
        {
            Domain = "domain.com",
            Remark = "remark.",
            VpcSets = new[]
            {
                new Tencentcloud.Inputs.PrivateDnsZoneVpcSetArgs
                {
                    Region = "ap-guangzhou",
                    UniqVpcId = vpc.VpcId,
                },
            },
            DnsForwardStatus = "DISABLED",
            CnameSpeedupStatus = "ENABLED",
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.PrivateDnsZone;
    import com.pulumi.tencentcloud.PrivateDnsZoneArgs;
    import com.pulumi.tencentcloud.inputs.PrivateDnsZoneVpcSetArgs;
    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 vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var example = new PrivateDnsZone("example", PrivateDnsZoneArgs.builder()
                .domain("domain.com")
                .remark("remark.")
                .vpcSets(PrivateDnsZoneVpcSetArgs.builder()
                    .region("ap-guangzhou")
                    .uniqVpcId(vpc.vpcId())
                    .build())
                .dnsForwardStatus("DISABLED")
                .cnameSpeedupStatus("ENABLED")
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      example:
        type: tencentcloud:PrivateDnsZone
        properties:
          domain: domain.com
          remark: remark.
          vpcSets:
            - region: ap-guangzhou
              uniqVpcId: ${vpc.vpcId}
          dnsForwardStatus: DISABLED
          cnameSpeedupStatus: ENABLED
          tags:
            createdBy: terraform
    

    Create a Private Dns Zone domain and bind associated accounts’VPC

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.PrivateDnsZone("example", {
        domain: "domain.com",
        remark: "remark.",
        vpcSets: [{
            region: "ap-guangzhou",
            uniqVpcId: tencentcloud_vpc.vpc.id,
        }],
        accountVpcSets: [{
            uin: "123456789",
            uniqVpcId: "vpc-adsebmya",
            region: "ap-guangzhou",
            vpcName: "vpc-name",
        }],
        dnsForwardStatus: "DISABLED",
        cnameSpeedupStatus: "ENABLED",
        tags: {
            createdBy: "terraform",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.PrivateDnsZone("example",
        domain="domain.com",
        remark="remark.",
        vpc_sets=[{
            "region": "ap-guangzhou",
            "uniq_vpc_id": tencentcloud_vpc["vpc"]["id"],
        }],
        account_vpc_sets=[{
            "uin": "123456789",
            "uniq_vpc_id": "vpc-adsebmya",
            "region": "ap-guangzhou",
            "vpc_name": "vpc-name",
        }],
        dns_forward_status="DISABLED",
        cname_speedup_status="ENABLED",
        tags={
            "createdBy": "terraform",
        })
    
    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.NewPrivateDnsZone(ctx, "example", &tencentcloud.PrivateDnsZoneArgs{
    			Domain: pulumi.String("domain.com"),
    			Remark: pulumi.String("remark."),
    			VpcSets: tencentcloud.PrivateDnsZoneVpcSetArray{
    				&tencentcloud.PrivateDnsZoneVpcSetArgs{
    					Region:    pulumi.String("ap-guangzhou"),
    					UniqVpcId: pulumi.Any(tencentcloud_vpc.Vpc.Id),
    				},
    			},
    			AccountVpcSets: tencentcloud.PrivateDnsZoneAccountVpcSetArray{
    				&tencentcloud.PrivateDnsZoneAccountVpcSetArgs{
    					Uin:       pulumi.String("123456789"),
    					UniqVpcId: pulumi.String("vpc-adsebmya"),
    					Region:    pulumi.String("ap-guangzhou"),
    					VpcName:   pulumi.String("vpc-name"),
    				},
    			},
    			DnsForwardStatus:   pulumi.String("DISABLED"),
    			CnameSpeedupStatus: pulumi.String("ENABLED"),
    			Tags: pulumi.StringMap{
    				"createdBy": pulumi.String("terraform"),
    			},
    		})
    		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.PrivateDnsZone("example", new()
        {
            Domain = "domain.com",
            Remark = "remark.",
            VpcSets = new[]
            {
                new Tencentcloud.Inputs.PrivateDnsZoneVpcSetArgs
                {
                    Region = "ap-guangzhou",
                    UniqVpcId = tencentcloud_vpc.Vpc.Id,
                },
            },
            AccountVpcSets = new[]
            {
                new Tencentcloud.Inputs.PrivateDnsZoneAccountVpcSetArgs
                {
                    Uin = "123456789",
                    UniqVpcId = "vpc-adsebmya",
                    Region = "ap-guangzhou",
                    VpcName = "vpc-name",
                },
            },
            DnsForwardStatus = "DISABLED",
            CnameSpeedupStatus = "ENABLED",
            Tags = 
            {
                { "createdBy", "terraform" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.PrivateDnsZone;
    import com.pulumi.tencentcloud.PrivateDnsZoneArgs;
    import com.pulumi.tencentcloud.inputs.PrivateDnsZoneVpcSetArgs;
    import com.pulumi.tencentcloud.inputs.PrivateDnsZoneAccountVpcSetArgs;
    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 PrivateDnsZone("example", PrivateDnsZoneArgs.builder()
                .domain("domain.com")
                .remark("remark.")
                .vpcSets(PrivateDnsZoneVpcSetArgs.builder()
                    .region("ap-guangzhou")
                    .uniqVpcId(tencentcloud_vpc.vpc().id())
                    .build())
                .accountVpcSets(PrivateDnsZoneAccountVpcSetArgs.builder()
                    .uin("123456789")
                    .uniqVpcId("vpc-adsebmya")
                    .region("ap-guangzhou")
                    .vpcName("vpc-name")
                    .build())
                .dnsForwardStatus("DISABLED")
                .cnameSpeedupStatus("ENABLED")
                .tags(Map.of("createdBy", "terraform"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:PrivateDnsZone
        properties:
          domain: domain.com
          remark: remark.
          vpcSets:
            - region: ap-guangzhou
              uniqVpcId: ${tencentcloud_vpc.vpc.id}
          accountVpcSets:
            - uin: '123456789'
              uniqVpcId: vpc-adsebmya
              region: ap-guangzhou
              vpcName: vpc-name
          dnsForwardStatus: DISABLED
          cnameSpeedupStatus: ENABLED
          tags:
            createdBy: terraform
    

    Create PrivateDnsZone Resource

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

    Constructor syntax

    new PrivateDnsZone(name: string, args: PrivateDnsZoneArgs, opts?: CustomResourceOptions);
    @overload
    def PrivateDnsZone(resource_name: str,
                       args: PrivateDnsZoneArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrivateDnsZone(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       domain: Optional[str] = None,
                       account_vpc_sets: Optional[Sequence[PrivateDnsZoneAccountVpcSetArgs]] = None,
                       cname_speedup_status: Optional[str] = None,
                       dns_forward_status: Optional[str] = None,
                       private_dns_zone_id: Optional[str] = None,
                       remark: Optional[str] = None,
                       tag_sets: Optional[Sequence[PrivateDnsZoneTagSetArgs]] = None,
                       tags: Optional[Mapping[str, str]] = None,
                       vpc_sets: Optional[Sequence[PrivateDnsZoneVpcSetArgs]] = None)
    func NewPrivateDnsZone(ctx *Context, name string, args PrivateDnsZoneArgs, opts ...ResourceOption) (*PrivateDnsZone, error)
    public PrivateDnsZone(string name, PrivateDnsZoneArgs args, CustomResourceOptions? opts = null)
    public PrivateDnsZone(String name, PrivateDnsZoneArgs args)
    public PrivateDnsZone(String name, PrivateDnsZoneArgs args, CustomResourceOptions options)
    
    type: tencentcloud:PrivateDnsZone
    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 PrivateDnsZoneArgs
    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 PrivateDnsZoneArgs
    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 PrivateDnsZoneArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrivateDnsZoneArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrivateDnsZoneArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Domain string
    Domain name, which must be in the format of standard TLD.
    AccountVpcSets List<PrivateDnsZoneAccountVpcSet>
    List of authorized accounts' VPCs to associate with the private domain.
    CnameSpeedupStatus string
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    DnsForwardStatus string
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    PrivateDnsZoneId string
    ID of the resource.
    Remark string
    Remarks.
    TagSets List<PrivateDnsZoneTagSet>
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    Tags Dictionary<string, string>
    Tags of the private dns zone.
    VpcSets List<PrivateDnsZoneVpcSet>
    Associates the private domain to a VPC when it is created.
    Domain string
    Domain name, which must be in the format of standard TLD.
    AccountVpcSets []PrivateDnsZoneAccountVpcSetArgs
    List of authorized accounts' VPCs to associate with the private domain.
    CnameSpeedupStatus string
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    DnsForwardStatus string
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    PrivateDnsZoneId string
    ID of the resource.
    Remark string
    Remarks.
    TagSets []PrivateDnsZoneTagSetArgs
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    Tags map[string]string
    Tags of the private dns zone.
    VpcSets []PrivateDnsZoneVpcSetArgs
    Associates the private domain to a VPC when it is created.
    domain String
    Domain name, which must be in the format of standard TLD.
    accountVpcSets List<PrivateDnsZoneAccountVpcSet>
    List of authorized accounts' VPCs to associate with the private domain.
    cnameSpeedupStatus String
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    dnsForwardStatus String
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    privateDnsZoneId String
    ID of the resource.
    remark String
    Remarks.
    tagSets List<PrivateDnsZoneTagSet>
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    tags Map<String,String>
    Tags of the private dns zone.
    vpcSets List<PrivateDnsZoneVpcSet>
    Associates the private domain to a VPC when it is created.
    domain string
    Domain name, which must be in the format of standard TLD.
    accountVpcSets PrivateDnsZoneAccountVpcSet[]
    List of authorized accounts' VPCs to associate with the private domain.
    cnameSpeedupStatus string
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    dnsForwardStatus string
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    privateDnsZoneId string
    ID of the resource.
    remark string
    Remarks.
    tagSets PrivateDnsZoneTagSet[]
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    tags {[key: string]: string}
    Tags of the private dns zone.
    vpcSets PrivateDnsZoneVpcSet[]
    Associates the private domain to a VPC when it is created.
    domain str
    Domain name, which must be in the format of standard TLD.
    account_vpc_sets Sequence[PrivateDnsZoneAccountVpcSetArgs]
    List of authorized accounts' VPCs to associate with the private domain.
    cname_speedup_status str
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    dns_forward_status str
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    private_dns_zone_id str
    ID of the resource.
    remark str
    Remarks.
    tag_sets Sequence[PrivateDnsZoneTagSetArgs]
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    tags Mapping[str, str]
    Tags of the private dns zone.
    vpc_sets Sequence[PrivateDnsZoneVpcSetArgs]
    Associates the private domain to a VPC when it is created.
    domain String
    Domain name, which must be in the format of standard TLD.
    accountVpcSets List<Property Map>
    List of authorized accounts' VPCs to associate with the private domain.
    cnameSpeedupStatus String
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    dnsForwardStatus String
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    privateDnsZoneId String
    ID of the resource.
    remark String
    Remarks.
    tagSets List<Property Map>
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    tags Map<String>
    Tags of the private dns zone.
    vpcSets List<Property Map>
    Associates the private domain to a VPC when it is created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PrivateDnsZone 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 PrivateDnsZone Resource

    Get an existing PrivateDnsZone 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?: PrivateDnsZoneState, opts?: CustomResourceOptions): PrivateDnsZone
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_vpc_sets: Optional[Sequence[PrivateDnsZoneAccountVpcSetArgs]] = None,
            cname_speedup_status: Optional[str] = None,
            dns_forward_status: Optional[str] = None,
            domain: Optional[str] = None,
            private_dns_zone_id: Optional[str] = None,
            remark: Optional[str] = None,
            tag_sets: Optional[Sequence[PrivateDnsZoneTagSetArgs]] = None,
            tags: Optional[Mapping[str, str]] = None,
            vpc_sets: Optional[Sequence[PrivateDnsZoneVpcSetArgs]] = None) -> PrivateDnsZone
    func GetPrivateDnsZone(ctx *Context, name string, id IDInput, state *PrivateDnsZoneState, opts ...ResourceOption) (*PrivateDnsZone, error)
    public static PrivateDnsZone Get(string name, Input<string> id, PrivateDnsZoneState? state, CustomResourceOptions? opts = null)
    public static PrivateDnsZone get(String name, Output<String> id, PrivateDnsZoneState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:PrivateDnsZone    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:
    AccountVpcSets List<PrivateDnsZoneAccountVpcSet>
    List of authorized accounts' VPCs to associate with the private domain.
    CnameSpeedupStatus string
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    DnsForwardStatus string
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    Domain string
    Domain name, which must be in the format of standard TLD.
    PrivateDnsZoneId string
    ID of the resource.
    Remark string
    Remarks.
    TagSets List<PrivateDnsZoneTagSet>
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    Tags Dictionary<string, string>
    Tags of the private dns zone.
    VpcSets List<PrivateDnsZoneVpcSet>
    Associates the private domain to a VPC when it is created.
    AccountVpcSets []PrivateDnsZoneAccountVpcSetArgs
    List of authorized accounts' VPCs to associate with the private domain.
    CnameSpeedupStatus string
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    DnsForwardStatus string
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    Domain string
    Domain name, which must be in the format of standard TLD.
    PrivateDnsZoneId string
    ID of the resource.
    Remark string
    Remarks.
    TagSets []PrivateDnsZoneTagSetArgs
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    Tags map[string]string
    Tags of the private dns zone.
    VpcSets []PrivateDnsZoneVpcSetArgs
    Associates the private domain to a VPC when it is created.
    accountVpcSets List<PrivateDnsZoneAccountVpcSet>
    List of authorized accounts' VPCs to associate with the private domain.
    cnameSpeedupStatus String
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    dnsForwardStatus String
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    domain String
    Domain name, which must be in the format of standard TLD.
    privateDnsZoneId String
    ID of the resource.
    remark String
    Remarks.
    tagSets List<PrivateDnsZoneTagSet>
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    tags Map<String,String>
    Tags of the private dns zone.
    vpcSets List<PrivateDnsZoneVpcSet>
    Associates the private domain to a VPC when it is created.
    accountVpcSets PrivateDnsZoneAccountVpcSet[]
    List of authorized accounts' VPCs to associate with the private domain.
    cnameSpeedupStatus string
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    dnsForwardStatus string
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    domain string
    Domain name, which must be in the format of standard TLD.
    privateDnsZoneId string
    ID of the resource.
    remark string
    Remarks.
    tagSets PrivateDnsZoneTagSet[]
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    tags {[key: string]: string}
    Tags of the private dns zone.
    vpcSets PrivateDnsZoneVpcSet[]
    Associates the private domain to a VPC when it is created.
    account_vpc_sets Sequence[PrivateDnsZoneAccountVpcSetArgs]
    List of authorized accounts' VPCs to associate with the private domain.
    cname_speedup_status str
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    dns_forward_status str
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    domain str
    Domain name, which must be in the format of standard TLD.
    private_dns_zone_id str
    ID of the resource.
    remark str
    Remarks.
    tag_sets Sequence[PrivateDnsZoneTagSetArgs]
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    tags Mapping[str, str]
    Tags of the private dns zone.
    vpc_sets Sequence[PrivateDnsZoneVpcSetArgs]
    Associates the private domain to a VPC when it is created.
    accountVpcSets List<Property Map>
    List of authorized accounts' VPCs to associate with the private domain.
    cnameSpeedupStatus String
    CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
    dnsForwardStatus String
    Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
    domain String
    Domain name, which must be in the format of standard TLD.
    privateDnsZoneId String
    ID of the resource.
    remark String
    Remarks.
    tagSets List<Property Map>
    It has been deprecated from version 1.72.4. Use tags instead. Tags the private domain when it is created.

    Deprecated: Deprecated

    tags Map<String>
    Tags of the private dns zone.
    vpcSets List<Property Map>
    Associates the private domain to a VPC when it is created.

    Supporting Types

    PrivateDnsZoneAccountVpcSet, PrivateDnsZoneAccountVpcSetArgs

    Region string
    Region.
    Uin string
    UIN of the VPC account.
    UniqVpcId string
    VPC ID.
    VpcName string
    VPC NAME.
    Region string
    Region.
    Uin string
    UIN of the VPC account.
    UniqVpcId string
    VPC ID.
    VpcName string
    VPC NAME.
    region String
    Region.
    uin String
    UIN of the VPC account.
    uniqVpcId String
    VPC ID.
    vpcName String
    VPC NAME.
    region string
    Region.
    uin string
    UIN of the VPC account.
    uniqVpcId string
    VPC ID.
    vpcName string
    VPC NAME.
    region str
    Region.
    uin str
    UIN of the VPC account.
    uniq_vpc_id str
    VPC ID.
    vpc_name str
    VPC NAME.
    region String
    Region.
    uin String
    UIN of the VPC account.
    uniqVpcId String
    VPC ID.
    vpcName String
    VPC NAME.

    PrivateDnsZoneTagSet, PrivateDnsZoneTagSetArgs

    TagKey string
    Key of Tag.
    TagValue string
    Value of Tag.
    TagKey string
    Key of Tag.
    TagValue string
    Value of Tag.
    tagKey String
    Key of Tag.
    tagValue String
    Value of Tag.
    tagKey string
    Key of Tag.
    tagValue string
    Value of Tag.
    tag_key str
    Key of Tag.
    tag_value str
    Value of Tag.
    tagKey String
    Key of Tag.
    tagValue String
    Value of Tag.

    PrivateDnsZoneVpcSet, PrivateDnsZoneVpcSetArgs

    Region string
    VPC REGION.
    UniqVpcId string
    VPC ID.
    Region string
    VPC REGION.
    UniqVpcId string
    VPC ID.
    region String
    VPC REGION.
    uniqVpcId String
    VPC ID.
    region string
    VPC REGION.
    uniqVpcId string
    VPC ID.
    region str
    VPC REGION.
    uniq_vpc_id str
    VPC ID.
    region String
    VPC REGION.
    uniqVpcId String
    VPC ID.

    Import

    Private Dns Zone can be imported, e.g.

    $ pulumi import tencentcloud:index/privateDnsZone:PrivateDnsZone example zone-6xg5xgky
    

    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