published on Friday, Mar 27, 2026 by tencentcloudstack
published on Friday, Mar 27, 2026 by tencentcloudstack
Provides a resource to create a Private DNS account association.
This resource is used to associate an account with Private DNS, enabling cross-account VPC binding for private zones.
NOTE: Once an account is associated, it can be used to bind VPCs from that account to private DNS zones.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.PrivateDnsAccount("example", {accountUin: "100123456789"});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.PrivateDnsAccount("example", account_uin="100123456789")
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.NewPrivateDnsAccount(ctx, "example", &tencentcloud.PrivateDnsAccountArgs{
AccountUin: pulumi.String("100123456789"),
})
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.PrivateDnsAccount("example", new()
{
AccountUin = "100123456789",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PrivateDnsAccount;
import com.pulumi.tencentcloud.PrivateDnsAccountArgs;
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 PrivateDnsAccount("example", PrivateDnsAccountArgs.builder()
.accountUin("100123456789")
.build());
}
}
resources:
example:
type: tencentcloud:PrivateDnsAccount
properties:
accountUin: '100123456789'
Output Account Information
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.PrivateDnsAccount("example", {accountUin: "100123456789"});
export const accountEmail = example.account;
export const accountNickname = example.nickname;
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.PrivateDnsAccount("example", account_uin="100123456789")
pulumi.export("accountEmail", example.account)
pulumi.export("accountNickname", example.nickname)
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 {
example, err := tencentcloud.NewPrivateDnsAccount(ctx, "example", &tencentcloud.PrivateDnsAccountArgs{
AccountUin: pulumi.String("100123456789"),
})
if err != nil {
return err
}
ctx.Export("accountEmail", example.Account)
ctx.Export("accountNickname", example.Nickname)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.PrivateDnsAccount("example", new()
{
AccountUin = "100123456789",
});
return new Dictionary<string, object?>
{
["accountEmail"] = example.Account,
["accountNickname"] = example.Nickname,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PrivateDnsAccount;
import com.pulumi.tencentcloud.PrivateDnsAccountArgs;
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 PrivateDnsAccount("example", PrivateDnsAccountArgs.builder()
.accountUin("100123456789")
.build());
ctx.export("accountEmail", example.account());
ctx.export("accountNickname", example.nickname());
}
}
resources:
example:
type: tencentcloud:PrivateDnsAccount
properties:
accountUin: '100123456789'
outputs:
accountEmail: ${example.account}
accountNickname: ${example.nickname}
Create PrivateDnsAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrivateDnsAccount(name: string, args: PrivateDnsAccountArgs, opts?: CustomResourceOptions);@overload
def PrivateDnsAccount(resource_name: str,
args: PrivateDnsAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PrivateDnsAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_uin: Optional[str] = None,
private_dns_account_id: Optional[str] = None)func NewPrivateDnsAccount(ctx *Context, name string, args PrivateDnsAccountArgs, opts ...ResourceOption) (*PrivateDnsAccount, error)public PrivateDnsAccount(string name, PrivateDnsAccountArgs args, CustomResourceOptions? opts = null)
public PrivateDnsAccount(String name, PrivateDnsAccountArgs args)
public PrivateDnsAccount(String name, PrivateDnsAccountArgs args, CustomResourceOptions options)
type: tencentcloud:PrivateDnsAccount
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 PrivateDnsAccountArgs
- 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 PrivateDnsAccountArgs
- 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 PrivateDnsAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrivateDnsAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrivateDnsAccountArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PrivateDnsAccount 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 PrivateDnsAccount resource accepts the following input properties:
- Account
Uin string - Uin of the associated account.
- Private
Dns stringAccount Id - ID of the resource.
- Account
Uin string - Uin of the associated account.
- Private
Dns stringAccount Id - ID of the resource.
- account
Uin String - Uin of the associated account.
- private
Dns StringAccount Id - ID of the resource.
- account
Uin string - Uin of the associated account.
- private
Dns stringAccount Id - ID of the resource.
- account_
uin str - Uin of the associated account.
- private_
dns_ straccount_ id - ID of the resource.
- account
Uin String - Uin of the associated account.
- private
Dns StringAccount Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrivateDnsAccount resource produces the following output properties:
Look up Existing PrivateDnsAccount Resource
Get an existing PrivateDnsAccount 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?: PrivateDnsAccountState, opts?: CustomResourceOptions): PrivateDnsAccount@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
account_uin: Optional[str] = None,
nickname: Optional[str] = None,
private_dns_account_id: Optional[str] = None) -> PrivateDnsAccountfunc GetPrivateDnsAccount(ctx *Context, name string, id IDInput, state *PrivateDnsAccountState, opts ...ResourceOption) (*PrivateDnsAccount, error)public static PrivateDnsAccount Get(string name, Input<string> id, PrivateDnsAccountState? state, CustomResourceOptions? opts = null)public static PrivateDnsAccount get(String name, Output<String> id, PrivateDnsAccountState state, CustomResourceOptions options)resources: _: type: tencentcloud:PrivateDnsAccount 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 string
- Email of the associated account.
- Account
Uin string - Uin of the associated account.
- Nickname string
- Nickname of the associated account.
- Private
Dns stringAccount Id - ID of the resource.
- Account string
- Email of the associated account.
- Account
Uin string - Uin of the associated account.
- Nickname string
- Nickname of the associated account.
- Private
Dns stringAccount Id - ID of the resource.
- account String
- Email of the associated account.
- account
Uin String - Uin of the associated account.
- nickname String
- Nickname of the associated account.
- private
Dns StringAccount Id - ID of the resource.
- account string
- Email of the associated account.
- account
Uin string - Uin of the associated account.
- nickname string
- Nickname of the associated account.
- private
Dns stringAccount Id - ID of the resource.
- account str
- Email of the associated account.
- account_
uin str - Uin of the associated account.
- nickname str
- Nickname of the associated account.
- private_
dns_ straccount_ id - ID of the resource.
- account String
- Email of the associated account.
- account
Uin String - Uin of the associated account.
- nickname String
- Nickname of the associated account.
- private
Dns StringAccount Id - ID of the resource.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Friday, Mar 27, 2026 by tencentcloudstack
