1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. GaapGlobalDomainDns
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.GaapGlobalDomainDns

Explore with Pulumi AI

Provides a resource to create a gaap global domain dns

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const globalDomainDns = new tencentcloud.GaapGlobalDomainDns("globalDomainDns", {
    domainId: "dm-xxxxxx",
    nationCountryInnerCodes: ["101001"],
    proxyIdLists: ["link-xxxxxx"],
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

global_domain_dns = tencentcloud.GaapGlobalDomainDns("globalDomainDns",
    domain_id="dm-xxxxxx",
    nation_country_inner_codes=["101001"],
    proxy_id_lists=["link-xxxxxx"])
Copy
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.NewGaapGlobalDomainDns(ctx, "globalDomainDns", &tencentcloud.GaapGlobalDomainDnsArgs{
			DomainId: pulumi.String("dm-xxxxxx"),
			NationCountryInnerCodes: pulumi.StringArray{
				pulumi.String("101001"),
			},
			ProxyIdLists: pulumi.StringArray{
				pulumi.String("link-xxxxxx"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var globalDomainDns = new Tencentcloud.GaapGlobalDomainDns("globalDomainDns", new()
    {
        DomainId = "dm-xxxxxx",
        NationCountryInnerCodes = new[]
        {
            "101001",
        },
        ProxyIdLists = new[]
        {
            "link-xxxxxx",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.GaapGlobalDomainDns;
import com.pulumi.tencentcloud.GaapGlobalDomainDnsArgs;
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 globalDomainDns = new GaapGlobalDomainDns("globalDomainDns", GaapGlobalDomainDnsArgs.builder()
            .domainId("dm-xxxxxx")
            .nationCountryInnerCodes("101001")
            .proxyIdLists("link-xxxxxx")
            .build());

    }
}
Copy
resources:
  globalDomainDns:
    type: tencentcloud:GaapGlobalDomainDns
    properties:
      domainId: dm-xxxxxx
      nationCountryInnerCodes:
        - '101001'
      proxyIdLists:
        - link-xxxxxx
Copy

Create GaapGlobalDomainDns Resource

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

Constructor syntax

new GaapGlobalDomainDns(name: string, args: GaapGlobalDomainDnsArgs, opts?: CustomResourceOptions);
@overload
def GaapGlobalDomainDns(resource_name: str,
                        args: GaapGlobalDomainDnsArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def GaapGlobalDomainDns(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        domain_id: Optional[str] = None,
                        nation_country_inner_codes: Optional[Sequence[str]] = None,
                        proxy_id_lists: Optional[Sequence[str]] = None,
                        gaap_global_domain_dns_id: Optional[str] = None)
func NewGaapGlobalDomainDns(ctx *Context, name string, args GaapGlobalDomainDnsArgs, opts ...ResourceOption) (*GaapGlobalDomainDns, error)
public GaapGlobalDomainDns(string name, GaapGlobalDomainDnsArgs args, CustomResourceOptions? opts = null)
public GaapGlobalDomainDns(String name, GaapGlobalDomainDnsArgs args)
public GaapGlobalDomainDns(String name, GaapGlobalDomainDnsArgs args, CustomResourceOptions options)
type: tencentcloud:GaapGlobalDomainDns
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. GaapGlobalDomainDnsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. GaapGlobalDomainDnsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. GaapGlobalDomainDnsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. GaapGlobalDomainDnsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. GaapGlobalDomainDnsArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

DomainId This property is required. string
Domain Id.
NationCountryInnerCodes This property is required. List<string>
Nation Country Inner Codes.
ProxyIdLists This property is required. List<string>
Proxy Id List.
GaapGlobalDomainDnsId string
ID of the resource.
DomainId This property is required. string
Domain Id.
NationCountryInnerCodes This property is required. []string
Nation Country Inner Codes.
ProxyIdLists This property is required. []string
Proxy Id List.
GaapGlobalDomainDnsId string
ID of the resource.
domainId This property is required. String
Domain Id.
nationCountryInnerCodes This property is required. List<String>
Nation Country Inner Codes.
proxyIdLists This property is required. List<String>
Proxy Id List.
gaapGlobalDomainDnsId String
ID of the resource.
domainId This property is required. string
Domain Id.
nationCountryInnerCodes This property is required. string[]
Nation Country Inner Codes.
proxyIdLists This property is required. string[]
Proxy Id List.
gaapGlobalDomainDnsId string
ID of the resource.
domain_id This property is required. str
Domain Id.
nation_country_inner_codes This property is required. Sequence[str]
Nation Country Inner Codes.
proxy_id_lists This property is required. Sequence[str]
Proxy Id List.
gaap_global_domain_dns_id str
ID of the resource.
domainId This property is required. String
Domain Id.
nationCountryInnerCodes This property is required. List<String>
Nation Country Inner Codes.
proxyIdLists This property is required. List<String>
Proxy Id List.
gaapGlobalDomainDnsId String
ID of the resource.

Outputs

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

Get an existing GaapGlobalDomainDns 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?: GaapGlobalDomainDnsState, opts?: CustomResourceOptions): GaapGlobalDomainDns
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_id: Optional[str] = None,
        gaap_global_domain_dns_id: Optional[str] = None,
        nation_country_inner_codes: Optional[Sequence[str]] = None,
        proxy_id_lists: Optional[Sequence[str]] = None) -> GaapGlobalDomainDns
func GetGaapGlobalDomainDns(ctx *Context, name string, id IDInput, state *GaapGlobalDomainDnsState, opts ...ResourceOption) (*GaapGlobalDomainDns, error)
public static GaapGlobalDomainDns Get(string name, Input<string> id, GaapGlobalDomainDnsState? state, CustomResourceOptions? opts = null)
public static GaapGlobalDomainDns get(String name, Output<String> id, GaapGlobalDomainDnsState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:GaapGlobalDomainDns    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DomainId string
Domain Id.
GaapGlobalDomainDnsId string
ID of the resource.
NationCountryInnerCodes List<string>
Nation Country Inner Codes.
ProxyIdLists List<string>
Proxy Id List.
DomainId string
Domain Id.
GaapGlobalDomainDnsId string
ID of the resource.
NationCountryInnerCodes []string
Nation Country Inner Codes.
ProxyIdLists []string
Proxy Id List.
domainId String
Domain Id.
gaapGlobalDomainDnsId String
ID of the resource.
nationCountryInnerCodes List<String>
Nation Country Inner Codes.
proxyIdLists List<String>
Proxy Id List.
domainId string
Domain Id.
gaapGlobalDomainDnsId string
ID of the resource.
nationCountryInnerCodes string[]
Nation Country Inner Codes.
proxyIdLists string[]
Proxy Id List.
domain_id str
Domain Id.
gaap_global_domain_dns_id str
ID of the resource.
nation_country_inner_codes Sequence[str]
Nation Country Inner Codes.
proxy_id_lists Sequence[str]
Proxy Id List.
domainId String
Domain Id.
gaapGlobalDomainDnsId String
ID of the resource.
nationCountryInnerCodes List<String>
Nation Country Inner Codes.
proxyIdLists List<String>
Proxy Id List.

Import

gaap global_domain_dns can be imported using the id, e.g.

$ pulumi import tencentcloud:index/gaapGlobalDomainDns:GaapGlobalDomainDns global_domain_dns ${domainId}#${dnsRecordId}
Copy

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.