tencentcloud.PrivateDnsZone
Explore with Pulumi AI
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
anduniq_vpc_id
invpc_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.
- Account
Vpc List<PrivateSets Dns Zone Account Vpc Set> - List of authorized accounts' VPCs to associate with the private domain.
- Cname
Speedup stringStatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- Dns
Forward stringStatus - Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
- Private
Dns stringZone Id - ID of the resource.
- Remark string
- Remarks.
- List<Private
Dns Zone Tag Set> - It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - Dictionary<string, string>
- Tags of the private dns zone.
- Vpc
Sets List<PrivateDns Zone Vpc Set> - Associates the private domain to a VPC when it is created.
- Domain string
- Domain name, which must be in the format of standard TLD.
- Account
Vpc []PrivateSets Dns Zone Account Vpc Set Args - List of authorized accounts' VPCs to associate with the private domain.
- Cname
Speedup stringStatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- Dns
Forward stringStatus - Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
- Private
Dns stringZone Id - ID of the resource.
- Remark string
- Remarks.
- []Private
Dns Zone Tag Set Args - It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - map[string]string
- Tags of the private dns zone.
- Vpc
Sets []PrivateDns Zone Vpc Set Args - Associates the private domain to a VPC when it is created.
- domain String
- Domain name, which must be in the format of standard TLD.
- account
Vpc List<PrivateSets Dns Zone Account Vpc Set> - List of authorized accounts' VPCs to associate with the private domain.
- cname
Speedup StringStatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- dns
Forward StringStatus - Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
- private
Dns StringZone Id - ID of the resource.
- remark String
- Remarks.
- List<Private
Dns Zone Tag Set> - It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - Map<String,String>
- Tags of the private dns zone.
- vpc
Sets List<PrivateDns Zone Vpc Set> - Associates the private domain to a VPC when it is created.
- domain string
- Domain name, which must be in the format of standard TLD.
- account
Vpc PrivateSets Dns Zone Account Vpc Set[] - List of authorized accounts' VPCs to associate with the private domain.
- cname
Speedup stringStatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- dns
Forward stringStatus - Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
- private
Dns stringZone Id - ID of the resource.
- remark string
- Remarks.
- Private
Dns Zone Tag Set[] - It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - {[key: string]: string}
- Tags of the private dns zone.
- vpc
Sets PrivateDns Zone Vpc Set[] - 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_ Sequence[Privatesets Dns Zone Account Vpc Set Args] - List of authorized accounts' VPCs to associate with the private domain.
- cname_
speedup_ strstatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- dns_
forward_ strstatus - Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
- private_
dns_ strzone_ id - ID of the resource.
- remark str
- Remarks.
- tag_
sets Sequence[PrivateDns Zone Tag Set Args] - It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - Mapping[str, str]
- Tags of the private dns zone.
- vpc_
sets Sequence[PrivateDns Zone Vpc Set Args] - Associates the private domain to a VPC when it is created.
- domain String
- Domain name, which must be in the format of standard TLD.
- account
Vpc List<Property Map>Sets - List of authorized accounts' VPCs to associate with the private domain.
- cname
Speedup StringStatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- dns
Forward StringStatus - Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED. Default value: DISABLED.
- private
Dns StringZone Id - ID of the resource.
- remark String
- Remarks.
- List<Property Map>
- It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - Map<String>
- Tags of the private dns zone.
- vpc
Sets 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.
- Account
Vpc List<PrivateSets Dns Zone Account Vpc Set> - List of authorized accounts' VPCs to associate with the private domain.
- Cname
Speedup stringStatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- Dns
Forward stringStatus - 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.
- Private
Dns stringZone Id - ID of the resource.
- Remark string
- Remarks.
- List<Private
Dns Zone Tag Set> - It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - Dictionary<string, string>
- Tags of the private dns zone.
- Vpc
Sets List<PrivateDns Zone Vpc Set> - Associates the private domain to a VPC when it is created.
- Account
Vpc []PrivateSets Dns Zone Account Vpc Set Args - List of authorized accounts' VPCs to associate with the private domain.
- Cname
Speedup stringStatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- Dns
Forward stringStatus - 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.
- Private
Dns stringZone Id - ID of the resource.
- Remark string
- Remarks.
- []Private
Dns Zone Tag Set Args - It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - map[string]string
- Tags of the private dns zone.
- Vpc
Sets []PrivateDns Zone Vpc Set Args - Associates the private domain to a VPC when it is created.
- account
Vpc List<PrivateSets Dns Zone Account Vpc Set> - List of authorized accounts' VPCs to associate with the private domain.
- cname
Speedup StringStatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- dns
Forward StringStatus - 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.
- private
Dns StringZone Id - ID of the resource.
- remark String
- Remarks.
- List<Private
Dns Zone Tag Set> - It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - Map<String,String>
- Tags of the private dns zone.
- vpc
Sets List<PrivateDns Zone Vpc Set> - Associates the private domain to a VPC when it is created.
- account
Vpc PrivateSets Dns Zone Account Vpc Set[] - List of authorized accounts' VPCs to associate with the private domain.
- cname
Speedup stringStatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- dns
Forward stringStatus - 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.
- private
Dns stringZone Id - ID of the resource.
- remark string
- Remarks.
- Private
Dns Zone Tag Set[] - It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - {[key: string]: string}
- Tags of the private dns zone.
- vpc
Sets PrivateDns Zone Vpc Set[] - Associates the private domain to a VPC when it is created.
- account_
vpc_ Sequence[Privatesets Dns Zone Account Vpc Set Args] - List of authorized accounts' VPCs to associate with the private domain.
- cname_
speedup_ strstatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- dns_
forward_ strstatus - 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_ strzone_ id - ID of the resource.
- remark str
- Remarks.
- tag_
sets Sequence[PrivateDns Zone Tag Set Args] - It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - Mapping[str, str]
- Tags of the private dns zone.
- vpc_
sets Sequence[PrivateDns Zone Vpc Set Args] - Associates the private domain to a VPC when it is created.
- account
Vpc List<Property Map>Sets - List of authorized accounts' VPCs to associate with the private domain.
- cname
Speedup StringStatus - CNAME acceleration: ENABLED, DISABLED, Default value is ENABLED.
- dns
Forward StringStatus - 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.
- private
Dns StringZone Id - ID of the resource.
- remark String
- Remarks.
- List<Property Map>
- It has been deprecated from version 1.72.4. Use
tags
instead. Tags the private domain when it is created. - Map<String>
- Tags of the private dns zone.
- vpc
Sets List<Property Map> - Associates the private domain to a VPC when it is created.
Supporting Types
PrivateDnsZoneAccountVpcSet, PrivateDnsZoneAccountVpcSetArgs
- region str
- Region.
- uin str
- UIN of the VPC account.
- uniq_
vpc_ strid - VPC ID.
- vpc_
name str - VPC NAME.
PrivateDnsZoneTagSet, PrivateDnsZoneTagSetArgs
PrivateDnsZoneVpcSet, PrivateDnsZoneVpcSetArgs
- region str
- VPC REGION.
- uniq_
vpc_ strid - 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.