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

tencentcloud.DnspodDomainLock

Explore with Pulumi AI

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

    Provides a resource to create a dnspod domain_lock

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const domainLock = new tencentcloud.DnspodDomainLock("domainLock", {
        domain: "dnspod.cn",
        lockDays: 30,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    domain_lock = tencentcloud.DnspodDomainLock("domainLock",
        domain="dnspod.cn",
        lock_days=30)
    
    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.NewDnspodDomainLock(ctx, "domainLock", &tencentcloud.DnspodDomainLockArgs{
    			Domain:   pulumi.String("dnspod.cn"),
    			LockDays: pulumi.Float64(30),
    		})
    		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 domainLock = new Tencentcloud.DnspodDomainLock("domainLock", new()
        {
            Domain = "dnspod.cn",
            LockDays = 30,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DnspodDomainLock;
    import com.pulumi.tencentcloud.DnspodDomainLockArgs;
    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 domainLock = new DnspodDomainLock("domainLock", DnspodDomainLockArgs.builder()
                .domain("dnspod.cn")
                .lockDays(30)
                .build());
    
        }
    }
    
    resources:
      domainLock:
        type: tencentcloud:DnspodDomainLock
        properties:
          domain: dnspod.cn
          lockDays: 30
    

    Create DnspodDomainLock Resource

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

    Constructor syntax

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

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

    Domain string
    Domain name.
    LockDays double
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    DnspodDomainLockId string
    ID of the resource.
    Domain string
    Domain name.
    LockDays float64
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    DnspodDomainLockId string
    ID of the resource.
    domain String
    Domain name.
    lockDays Double
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    dnspodDomainLockId String
    ID of the resource.
    domain string
    Domain name.
    lockDays number
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    dnspodDomainLockId string
    ID of the resource.
    domain str
    Domain name.
    lock_days float
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    dnspod_domain_lock_id str
    ID of the resource.
    domain String
    Domain name.
    lockDays Number
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    dnspodDomainLockId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DnspodDomainLock resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LockCode string
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    Id string
    The provider-assigned unique ID for this managed resource.
    LockCode string
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    id String
    The provider-assigned unique ID for this managed resource.
    lockCode String
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    id string
    The provider-assigned unique ID for this managed resource.
    lockCode string
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    id str
    The provider-assigned unique ID for this managed resource.
    lock_code str
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    id String
    The provider-assigned unique ID for this managed resource.
    lockCode String
    Domain unlock code, can be obtained through the ModifyDomainLock interface.

    Look up Existing DnspodDomainLock Resource

    Get an existing DnspodDomainLock 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?: DnspodDomainLockState, opts?: CustomResourceOptions): DnspodDomainLock
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dnspod_domain_lock_id: Optional[str] = None,
            domain: Optional[str] = None,
            lock_code: Optional[str] = None,
            lock_days: Optional[float] = None) -> DnspodDomainLock
    func GetDnspodDomainLock(ctx *Context, name string, id IDInput, state *DnspodDomainLockState, opts ...ResourceOption) (*DnspodDomainLock, error)
    public static DnspodDomainLock Get(string name, Input<string> id, DnspodDomainLockState? state, CustomResourceOptions? opts = null)
    public static DnspodDomainLock get(String name, Output<String> id, DnspodDomainLockState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DnspodDomainLock    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:
    DnspodDomainLockId string
    ID of the resource.
    Domain string
    Domain name.
    LockCode string
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    LockDays double
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    DnspodDomainLockId string
    ID of the resource.
    Domain string
    Domain name.
    LockCode string
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    LockDays float64
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    dnspodDomainLockId String
    ID of the resource.
    domain String
    Domain name.
    lockCode String
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    lockDays Double
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    dnspodDomainLockId string
    ID of the resource.
    domain string
    Domain name.
    lockCode string
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    lockDays number
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    dnspod_domain_lock_id str
    ID of the resource.
    domain str
    Domain name.
    lock_code str
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    lock_days float
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.
    dnspodDomainLockId String
    ID of the resource.
    domain String
    Domain name.
    lockCode String
    Domain unlock code, can be obtained through the ModifyDomainLock interface.
    lockDays Number
    The number of max days to lock the domain+ Old packages: D_FREE 30 days, D_PLUS 90 days, D_EXTRA 30 days, D_EXPERT 60 days, D_ULTRA 365 days+ New packages: DP_FREE 365 days, DP_PLUS 365 days, DP_EXTRA 365 days, DP_EXPERT 365 days, DP_ULTRA 365 days.

    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