1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DnspodCustomLine
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.DnspodCustomLine

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const customLine = new tencentcloud.DnspodCustomLine("customLine", {
        area: "6.6.6.1-6.6.6.2",
        domain: "dnspod.com",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    custom_line = tencentcloud.DnspodCustomLine("customLine",
        area="6.6.6.1-6.6.6.2",
        domain="dnspod.com")
    
    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.NewDnspodCustomLine(ctx, "customLine", &tencentcloud.DnspodCustomLineArgs{
    			Area:   pulumi.String("6.6.6.1-6.6.6.2"),
    			Domain: pulumi.String("dnspod.com"),
    		})
    		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 customLine = new Tencentcloud.DnspodCustomLine("customLine", new()
        {
            Area = "6.6.6.1-6.6.6.2",
            Domain = "dnspod.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DnspodCustomLine;
    import com.pulumi.tencentcloud.DnspodCustomLineArgs;
    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 customLine = new DnspodCustomLine("customLine", DnspodCustomLineArgs.builder()
                .area("6.6.6.1-6.6.6.2")
                .domain("dnspod.com")
                .build());
    
        }
    }
    
    resources:
      customLine:
        type: tencentcloud:DnspodCustomLine
        properties:
          area: 6.6.6.1-6.6.6.2
          domain: dnspod.com
    

    Create DnspodCustomLine Resource

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

    Constructor syntax

    new DnspodCustomLine(name: string, args: DnspodCustomLineArgs, opts?: CustomResourceOptions);
    @overload
    def DnspodCustomLine(resource_name: str,
                         args: DnspodCustomLineArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def DnspodCustomLine(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         area: Optional[str] = None,
                         domain: Optional[str] = None,
                         dnspod_custom_line_id: Optional[str] = None,
                         name: Optional[str] = None)
    func NewDnspodCustomLine(ctx *Context, name string, args DnspodCustomLineArgs, opts ...ResourceOption) (*DnspodCustomLine, error)
    public DnspodCustomLine(string name, DnspodCustomLineArgs args, CustomResourceOptions? opts = null)
    public DnspodCustomLine(String name, DnspodCustomLineArgs args)
    public DnspodCustomLine(String name, DnspodCustomLineArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DnspodCustomLine
    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 DnspodCustomLineArgs
    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 DnspodCustomLineArgs
    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 DnspodCustomLineArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnspodCustomLineArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnspodCustomLineArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Area string
    The IP segment of custom line, split with -.
    Domain string
    Domain.
    DnspodCustomLineId string
    ID of the resource.
    Name string
    The Name of custom line.
    Area string
    The IP segment of custom line, split with -.
    Domain string
    Domain.
    DnspodCustomLineId string
    ID of the resource.
    Name string
    The Name of custom line.
    area String
    The IP segment of custom line, split with -.
    domain String
    Domain.
    dnspodCustomLineId String
    ID of the resource.
    name String
    The Name of custom line.
    area string
    The IP segment of custom line, split with -.
    domain string
    Domain.
    dnspodCustomLineId string
    ID of the resource.
    name string
    The Name of custom line.
    area str
    The IP segment of custom line, split with -.
    domain str
    Domain.
    dnspod_custom_line_id str
    ID of the resource.
    name str
    The Name of custom line.
    area String
    The IP segment of custom line, split with -.
    domain String
    Domain.
    dnspodCustomLineId String
    ID of the resource.
    name String
    The Name of custom line.

    Outputs

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

    Get an existing DnspodCustomLine 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?: DnspodCustomLineState, opts?: CustomResourceOptions): DnspodCustomLine
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            area: Optional[str] = None,
            dnspod_custom_line_id: Optional[str] = None,
            domain: Optional[str] = None,
            name: Optional[str] = None) -> DnspodCustomLine
    func GetDnspodCustomLine(ctx *Context, name string, id IDInput, state *DnspodCustomLineState, opts ...ResourceOption) (*DnspodCustomLine, error)
    public static DnspodCustomLine Get(string name, Input<string> id, DnspodCustomLineState? state, CustomResourceOptions? opts = null)
    public static DnspodCustomLine get(String name, Output<String> id, DnspodCustomLineState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DnspodCustomLine    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.
    The following state arguments are supported:
    Area string
    The IP segment of custom line, split with -.
    DnspodCustomLineId string
    ID of the resource.
    Domain string
    Domain.
    Name string
    The Name of custom line.
    Area string
    The IP segment of custom line, split with -.
    DnspodCustomLineId string
    ID of the resource.
    Domain string
    Domain.
    Name string
    The Name of custom line.
    area String
    The IP segment of custom line, split with -.
    dnspodCustomLineId String
    ID of the resource.
    domain String
    Domain.
    name String
    The Name of custom line.
    area string
    The IP segment of custom line, split with -.
    dnspodCustomLineId string
    ID of the resource.
    domain string
    Domain.
    name string
    The Name of custom line.
    area str
    The IP segment of custom line, split with -.
    dnspod_custom_line_id str
    ID of the resource.
    domain str
    Domain.
    name str
    The Name of custom line.
    area String
    The IP segment of custom line, split with -.
    dnspodCustomLineId String
    ID of the resource.
    domain String
    Domain.
    name String
    The Name of custom line.

    Import

    dnspod custom_line can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/dnspodCustomLine:DnspodCustomLine custom_line domain#name
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack