tencentcloud.DnspodDomainInstance
Explore with Pulumi AI
Provide a resource to create a DnsPod Domain instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = new tencentcloud.DnspodDomainInstance("foo", {
domain: "hello.com",
remark: "this is demo",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.DnspodDomainInstance("foo",
domain="hello.com",
remark="this is demo")
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.NewDnspodDomainInstance(ctx, "foo", &tencentcloud.DnspodDomainInstanceArgs{
Domain: pulumi.String("hello.com"),
Remark: pulumi.String("this is demo"),
})
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 foo = new Tencentcloud.DnspodDomainInstance("foo", new()
{
Domain = "hello.com",
Remark = "this is demo",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DnspodDomainInstance;
import com.pulumi.tencentcloud.DnspodDomainInstanceArgs;
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 foo = new DnspodDomainInstance("foo", DnspodDomainInstanceArgs.builder()
.domain("hello.com")
.remark("this is demo")
.build());
}
}
resources:
foo:
type: tencentcloud:DnspodDomainInstance
properties:
domain: hello.com
remark: this is demo
Create DnspodDomainInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnspodDomainInstance(name: string, args: DnspodDomainInstanceArgs, opts?: CustomResourceOptions);
@overload
def DnspodDomainInstance(resource_name: str,
args: DnspodDomainInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DnspodDomainInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
dnspod_domain_instance_id: Optional[str] = None,
group_id: Optional[float] = None,
is_mark: Optional[str] = None,
remark: Optional[str] = None,
status: Optional[str] = None)
func NewDnspodDomainInstance(ctx *Context, name string, args DnspodDomainInstanceArgs, opts ...ResourceOption) (*DnspodDomainInstance, error)
public DnspodDomainInstance(string name, DnspodDomainInstanceArgs args, CustomResourceOptions? opts = null)
public DnspodDomainInstance(String name, DnspodDomainInstanceArgs args)
public DnspodDomainInstance(String name, DnspodDomainInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:DnspodDomainInstance
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 DnspodDomainInstanceArgs
- 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 DnspodDomainInstanceArgs
- 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 DnspodDomainInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnspodDomainInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnspodDomainInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DnspodDomainInstance 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 DnspodDomainInstance resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the DnspodDomainInstance resource produces the following output properties:
- Create
Time string - Create time of the domain.
- Domain
Id double - ID of the domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Slave
Dns string - Is secondary DNS enabled.
- Create
Time string - Create time of the domain.
- Domain
Id float64 - ID of the domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Slave
Dns string - Is secondary DNS enabled.
- create
Time String - Create time of the domain.
- domain
Id Double - ID of the domain.
- id String
- The provider-assigned unique ID for this managed resource.
- slave
Dns String - Is secondary DNS enabled.
- create
Time string - Create time of the domain.
- domain
Id number - ID of the domain.
- id string
- The provider-assigned unique ID for this managed resource.
- slave
Dns string - Is secondary DNS enabled.
- create_
time str - Create time of the domain.
- domain_
id float - ID of the domain.
- id str
- The provider-assigned unique ID for this managed resource.
- slave_
dns str - Is secondary DNS enabled.
- create
Time String - Create time of the domain.
- domain
Id Number - ID of the domain.
- id String
- The provider-assigned unique ID for this managed resource.
- slave
Dns String - Is secondary DNS enabled.
Look up Existing DnspodDomainInstance Resource
Get an existing DnspodDomainInstance 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?: DnspodDomainInstanceState, opts?: CustomResourceOptions): DnspodDomainInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
dnspod_domain_instance_id: Optional[str] = None,
domain: Optional[str] = None,
domain_id: Optional[float] = None,
group_id: Optional[float] = None,
is_mark: Optional[str] = None,
remark: Optional[str] = None,
slave_dns: Optional[str] = None,
status: Optional[str] = None) -> DnspodDomainInstance
func GetDnspodDomainInstance(ctx *Context, name string, id IDInput, state *DnspodDomainInstanceState, opts ...ResourceOption) (*DnspodDomainInstance, error)
public static DnspodDomainInstance Get(string name, Input<string> id, DnspodDomainInstanceState? state, CustomResourceOptions? opts = null)
public static DnspodDomainInstance get(String name, Output<String> id, DnspodDomainInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DnspodDomainInstance 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.
- Create
Time string - Create time of the domain.
- Dnspod
Domain stringInstance Id - ID of the resource.
- Domain string
- The Domain.
- Domain
Id double - ID of the domain.
- Group
Id double - The Group Id of Domain.
- Is
Mark string - Whether to Mark the Domain.
- Remark string
- The remark of Domain.
- Slave
Dns string - Is secondary DNS enabled.
- Status string
- The status of Domain.
- Create
Time string - Create time of the domain.
- Dnspod
Domain stringInstance Id - ID of the resource.
- Domain string
- The Domain.
- Domain
Id float64 - ID of the domain.
- Group
Id float64 - The Group Id of Domain.
- Is
Mark string - Whether to Mark the Domain.
- Remark string
- The remark of Domain.
- Slave
Dns string - Is secondary DNS enabled.
- Status string
- The status of Domain.
- create
Time String - Create time of the domain.
- dnspod
Domain StringInstance Id - ID of the resource.
- domain String
- The Domain.
- domain
Id Double - ID of the domain.
- group
Id Double - The Group Id of Domain.
- is
Mark String - Whether to Mark the Domain.
- remark String
- The remark of Domain.
- slave
Dns String - Is secondary DNS enabled.
- status String
- The status of Domain.
- create
Time string - Create time of the domain.
- dnspod
Domain stringInstance Id - ID of the resource.
- domain string
- The Domain.
- domain
Id number - ID of the domain.
- group
Id number - The Group Id of Domain.
- is
Mark string - Whether to Mark the Domain.
- remark string
- The remark of Domain.
- slave
Dns string - Is secondary DNS enabled.
- status string
- The status of Domain.
- create_
time str - Create time of the domain.
- dnspod_
domain_ strinstance_ id - ID of the resource.
- domain str
- The Domain.
- domain_
id float - ID of the domain.
- group_
id float - The Group Id of Domain.
- is_
mark str - Whether to Mark the Domain.
- remark str
- The remark of Domain.
- slave_
dns str - Is secondary DNS enabled.
- status str
- The status of Domain.
- create
Time String - Create time of the domain.
- dnspod
Domain StringInstance Id - ID of the resource.
- domain String
- The Domain.
- domain
Id Number - ID of the domain.
- group
Id Number - The Group Id of Domain.
- is
Mark String - Whether to Mark the Domain.
- remark String
- The remark of Domain.
- slave
Dns String - Is secondary DNS enabled.
- status String
- The status of Domain.
Import
DnsPod Domain instance can be imported, e.g.
$ pulumi import tencentcloud:index/dnspodDomainInstance:DnspodDomainInstance foo domain
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.