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"],
});
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"])
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
})
}
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",
},
});
});
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());
}
}
resources:
globalDomainDns:
type: tencentcloud:GaapGlobalDomainDns
properties:
domainId: dm-xxxxxx
nationCountryInnerCodes:
- '101001'
proxyIdLists:
- link-xxxxxx
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 string
- The unique name of the resource.
- args GaapGlobalDomainDnsArgs
- 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 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 string
- The unique name of the resource.
- args GaapGlobalDomainDnsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GaapGlobalDomainDnsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Domain
Id string - Domain Id.
- Nation
Country List<string>Inner Codes - Nation Country Inner Codes.
- Proxy
Id List<string>Lists - Proxy Id List.
- Gaap
Global stringDomain Dns Id - ID of the resource.
- Domain
Id string - Domain Id.
- Nation
Country []stringInner Codes - Nation Country Inner Codes.
- Proxy
Id []stringLists - Proxy Id List.
- Gaap
Global stringDomain Dns Id - ID of the resource.
- domain
Id String - Domain Id.
- nation
Country List<String>Inner Codes - Nation Country Inner Codes.
- proxy
Id List<String>Lists - Proxy Id List.
- gaap
Global StringDomain Dns Id - ID of the resource.
- domain
Id string - Domain Id.
- nation
Country string[]Inner Codes - Nation Country Inner Codes.
- proxy
Id string[]Lists - Proxy Id List.
- gaap
Global stringDomain Dns Id - ID of the resource.
- domain_
id str - Domain Id.
- nation_
country_ Sequence[str]inner_ codes - Nation Country Inner Codes.
- proxy_
id_ Sequence[str]lists - Proxy Id List.
- gaap_
global_ strdomain_ dns_ id - ID of the resource.
- domain
Id String - Domain Id.
- nation
Country List<String>Inner Codes - Nation Country Inner Codes.
- proxy
Id List<String>Lists - Proxy Id List.
- gaap
Global StringDomain Dns Id - 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
- 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.
- Domain
Id string - Domain Id.
- Gaap
Global stringDomain Dns Id - ID of the resource.
- Nation
Country List<string>Inner Codes - Nation Country Inner Codes.
- Proxy
Id List<string>Lists - Proxy Id List.
- Domain
Id string - Domain Id.
- Gaap
Global stringDomain Dns Id - ID of the resource.
- Nation
Country []stringInner Codes - Nation Country Inner Codes.
- Proxy
Id []stringLists - Proxy Id List.
- domain
Id String - Domain Id.
- gaap
Global StringDomain Dns Id - ID of the resource.
- nation
Country List<String>Inner Codes - Nation Country Inner Codes.
- proxy
Id List<String>Lists - Proxy Id List.
- domain
Id string - Domain Id.
- gaap
Global stringDomain Dns Id - ID of the resource.
- nation
Country string[]Inner Codes - Nation Country Inner Codes.
- proxy
Id string[]Lists - Proxy Id List.
- domain_
id str - Domain Id.
- gaap_
global_ strdomain_ dns_ id - ID of the resource.
- nation_
country_ Sequence[str]inner_ codes - Nation Country Inner Codes.
- proxy_
id_ Sequence[str]lists - Proxy Id List.
- domain
Id String - Domain Id.
- gaap
Global StringDomain Dns Id - ID of the resource.
- nation
Country List<String>Inner Codes - Nation Country Inner Codes.
- proxy
Id List<String>Lists - 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}
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.