Provides a resource to create a DNSPod line group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.DnspodLineGroup("example", {
domain: "example.com",
name: "telecom_group",
lines: [
"电信",
"移动",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.DnspodLineGroup("example",
domain="example.com",
name="telecom_group",
lines=[
"电信",
"移动",
])
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.NewDnspodLineGroup(ctx, "example", &tencentcloud.DnspodLineGroupArgs{
Domain: pulumi.String("example.com"),
Name: pulumi.String("telecom_group"),
Lines: pulumi.StringArray{
pulumi.String("电信"),
pulumi.String("移动"),
},
})
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.DnspodLineGroup("example", new()
{
Domain = "example.com",
Name = "telecom_group",
Lines = new[]
{
"电信",
"移动",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DnspodLineGroup;
import com.pulumi.tencentcloud.DnspodLineGroupArgs;
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 DnspodLineGroup("example", DnspodLineGroupArgs.builder()
.domain("example.com")
.name("telecom_group")
.lines(
"电信",
"移动")
.build());
}
}
resources:
example:
type: tencentcloud:DnspodLineGroup
properties:
domain: example.com
name: telecom_group
lines:
- 电信
- 移动
Create DnspodLineGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnspodLineGroup(name: string, args: DnspodLineGroupArgs, opts?: CustomResourceOptions);@overload
def DnspodLineGroup(resource_name: str,
args: DnspodLineGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DnspodLineGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain: Optional[str] = None,
lines: Optional[Sequence[str]] = None,
dnspod_line_group_id: Optional[str] = None,
name: Optional[str] = None)func NewDnspodLineGroup(ctx *Context, name string, args DnspodLineGroupArgs, opts ...ResourceOption) (*DnspodLineGroup, error)public DnspodLineGroup(string name, DnspodLineGroupArgs args, CustomResourceOptions? opts = null)
public DnspodLineGroup(String name, DnspodLineGroupArgs args)
public DnspodLineGroup(String name, DnspodLineGroupArgs args, CustomResourceOptions options)
type: tencentcloud:DnspodLineGroup
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 DnspodLineGroupArgs
- 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 DnspodLineGroupArgs
- 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 DnspodLineGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnspodLineGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnspodLineGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DnspodLineGroup 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 DnspodLineGroup resource accepts the following input properties:
- Domain string
- Domain name.
- Lines List<string>
- List of lines in the group. Maximum 120 lines.
- Dnspod
Line stringGroup Id - ID of the resource.
- Name string
- Line group name, length 1-17 characters.
- Domain string
- Domain name.
- Lines []string
- List of lines in the group. Maximum 120 lines.
- Dnspod
Line stringGroup Id - ID of the resource.
- Name string
- Line group name, length 1-17 characters.
- domain String
- Domain name.
- lines List<String>
- List of lines in the group. Maximum 120 lines.
- dnspod
Line StringGroup Id - ID of the resource.
- name String
- Line group name, length 1-17 characters.
- domain string
- Domain name.
- lines string[]
- List of lines in the group. Maximum 120 lines.
- dnspod
Line stringGroup Id - ID of the resource.
- name string
- Line group name, length 1-17 characters.
- domain str
- Domain name.
- lines Sequence[str]
- List of lines in the group. Maximum 120 lines.
- dnspod_
line_ strgroup_ id - ID of the resource.
- name str
- Line group name, length 1-17 characters.
- domain String
- Domain name.
- lines List<String>
- List of lines in the group. Maximum 120 lines.
- dnspod
Line StringGroup Id - ID of the resource.
- name String
- Line group name, length 1-17 characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the DnspodLineGroup resource produces the following output properties:
- Created
On string - Creation time.
- Domain
Id double - Domain ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Line
Group doubleId - Line group ID.
- Updated
On string - Update time.
- Created
On string - Creation time.
- Domain
Id float64 - Domain ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Line
Group float64Id - Line group ID.
- Updated
On string - Update time.
- created
On String - Creation time.
- domain
Id Double - Domain ID.
- id String
- The provider-assigned unique ID for this managed resource.
- line
Group DoubleId - Line group ID.
- updated
On String - Update time.
- created
On string - Creation time.
- domain
Id number - Domain ID.
- id string
- The provider-assigned unique ID for this managed resource.
- line
Group numberId - Line group ID.
- updated
On string - Update time.
- created_
on str - Creation time.
- domain_
id float - Domain ID.
- id str
- The provider-assigned unique ID for this managed resource.
- line_
group_ floatid - Line group ID.
- updated_
on str - Update time.
- created
On String - Creation time.
- domain
Id Number - Domain ID.
- id String
- The provider-assigned unique ID for this managed resource.
- line
Group NumberId - Line group ID.
- updated
On String - Update time.
Look up Existing DnspodLineGroup Resource
Get an existing DnspodLineGroup 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?: DnspodLineGroupState, opts?: CustomResourceOptions): DnspodLineGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_on: Optional[str] = None,
dnspod_line_group_id: Optional[str] = None,
domain: Optional[str] = None,
domain_id: Optional[float] = None,
line_group_id: Optional[float] = None,
lines: Optional[Sequence[str]] = None,
name: Optional[str] = None,
updated_on: Optional[str] = None) -> DnspodLineGroupfunc GetDnspodLineGroup(ctx *Context, name string, id IDInput, state *DnspodLineGroupState, opts ...ResourceOption) (*DnspodLineGroup, error)public static DnspodLineGroup Get(string name, Input<string> id, DnspodLineGroupState? state, CustomResourceOptions? opts = null)public static DnspodLineGroup get(String name, Output<String> id, DnspodLineGroupState state, CustomResourceOptions options)resources: _: type: tencentcloud:DnspodLineGroup 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.
- Created
On string - Creation time.
- Dnspod
Line stringGroup Id - ID of the resource.
- Domain string
- Domain name.
- Domain
Id double - Domain ID.
- Line
Group doubleId - Line group ID.
- Lines List<string>
- List of lines in the group. Maximum 120 lines.
- Name string
- Line group name, length 1-17 characters.
- Updated
On string - Update time.
- Created
On string - Creation time.
- Dnspod
Line stringGroup Id - ID of the resource.
- Domain string
- Domain name.
- Domain
Id float64 - Domain ID.
- Line
Group float64Id - Line group ID.
- Lines []string
- List of lines in the group. Maximum 120 lines.
- Name string
- Line group name, length 1-17 characters.
- Updated
On string - Update time.
- created
On String - Creation time.
- dnspod
Line StringGroup Id - ID of the resource.
- domain String
- Domain name.
- domain
Id Double - Domain ID.
- line
Group DoubleId - Line group ID.
- lines List<String>
- List of lines in the group. Maximum 120 lines.
- name String
- Line group name, length 1-17 characters.
- updated
On String - Update time.
- created
On string - Creation time.
- dnspod
Line stringGroup Id - ID of the resource.
- domain string
- Domain name.
- domain
Id number - Domain ID.
- line
Group numberId - Line group ID.
- lines string[]
- List of lines in the group. Maximum 120 lines.
- name string
- Line group name, length 1-17 characters.
- updated
On string - Update time.
- created_
on str - Creation time.
- dnspod_
line_ strgroup_ id - ID of the resource.
- domain str
- Domain name.
- domain_
id float - Domain ID.
- line_
group_ floatid - Line group ID.
- lines Sequence[str]
- List of lines in the group. Maximum 120 lines.
- name str
- Line group name, length 1-17 characters.
- updated_
on str - Update time.
- created
On String - Creation time.
- dnspod
Line StringGroup Id - ID of the resource.
- domain String
- Domain name.
- domain
Id Number - Domain ID.
- line
Group NumberId - Line group ID.
- lines List<String>
- List of lines in the group. Maximum 120 lines.
- name String
- Line group name, length 1-17 characters.
- updated
On String - Update time.
Import
DNSPod line group can be imported using the id (format: {domain}#{line_group_id}), e.g.
$ pulumi import tencentcloud:index/dnspodLineGroup:DnspodLineGroup example example.com#123
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
tencentcloudTerraform Provider.
