1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dns
  5. AlidnsRecord
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.dns.AlidnsRecord

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a Alidns Record resource. For information about Alidns Domain Record and how to use it, see What is Resource Alidns Record.

    NOTE: Available since v1.85.0.

    NOTE: When the site is an international site, the type neither supports REDIRECT_URL nor REDIRECT_URL

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = new alicloud.dns.DomainGroup("default", {domainGroupName: "tf-example"});
    const defaultAlidnsDomain = new alicloud.dns.AlidnsDomain("default", {
        domainName: "starmove.com",
        groupId: _default.id,
        tags: {
            Created: "TF",
            For: "example",
        },
    });
    const record = new alicloud.dns.AlidnsRecord("record", {
        domainName: defaultAlidnsDomain.domainName,
        rr: "alimail",
        type: "CNAME",
        value: "mail.mxhichin.com",
        remark: "tf-example",
        status: "ENABLE",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.dns.DomainGroup("default", domain_group_name="tf-example")
    default_alidns_domain = alicloud.dns.AlidnsDomain("default",
        domain_name="starmove.com",
        group_id=default.id,
        tags={
            "Created": "TF",
            "For": "example",
        })
    record = alicloud.dns.AlidnsRecord("record",
        domain_name=default_alidns_domain.domain_name,
        rr="alimail",
        type="CNAME",
        value="mail.mxhichin.com",
        remark="tf-example",
        status="ENABLE")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dns"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dns.NewDomainGroup(ctx, "default", &dns.DomainGroupArgs{
    			DomainGroupName: pulumi.String("tf-example"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultAlidnsDomain, err := dns.NewAlidnsDomain(ctx, "default", &dns.AlidnsDomainArgs{
    			DomainName: pulumi.String("starmove.com"),
    			GroupId:    _default.ID(),
    			Tags: pulumi.Map{
    				"Created": pulumi.Any("TF"),
    				"For":     pulumi.Any("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dns.NewAlidnsRecord(ctx, "record", &dns.AlidnsRecordArgs{
    			DomainName: defaultAlidnsDomain.DomainName,
    			Rr:         pulumi.String("alimail"),
    			Type:       pulumi.String("CNAME"),
    			Value:      pulumi.String("mail.mxhichin.com"),
    			Remark:     pulumi.String("tf-example"),
    			Status:     pulumi.String("ENABLE"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new AliCloud.Dns.DomainGroup("default", new()
        {
            DomainGroupName = "tf-example",
        });
    
        var defaultAlidnsDomain = new AliCloud.Dns.AlidnsDomain("default", new()
        {
            DomainName = "starmove.com",
            GroupId = @default.Id,
            Tags = 
            {
                { "Created", "TF" },
                { "For", "example" },
            },
        });
    
        var record = new AliCloud.Dns.AlidnsRecord("record", new()
        {
            DomainName = defaultAlidnsDomain.DomainName,
            Rr = "alimail",
            Type = "CNAME",
            Value = "mail.mxhichin.com",
            Remark = "tf-example",
            Status = "ENABLE",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.dns.DomainGroup;
    import com.pulumi.alicloud.dns.DomainGroupArgs;
    import com.pulumi.alicloud.dns.AlidnsDomain;
    import com.pulumi.alicloud.dns.AlidnsDomainArgs;
    import com.pulumi.alicloud.dns.AlidnsRecord;
    import com.pulumi.alicloud.dns.AlidnsRecordArgs;
    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 default_ = new DomainGroup("default", DomainGroupArgs.builder()
                .domainGroupName("tf-example")
                .build());
    
            var defaultAlidnsDomain = new AlidnsDomain("defaultAlidnsDomain", AlidnsDomainArgs.builder()
                .domainName("starmove.com")
                .groupId(default_.id())
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "example")
                ))
                .build());
    
            var record = new AlidnsRecord("record", AlidnsRecordArgs.builder()
                .domainName(defaultAlidnsDomain.domainName())
                .rr("alimail")
                .type("CNAME")
                .value("mail.mxhichin.com")
                .remark("tf-example")
                .status("ENABLE")
                .build());
    
        }
    }
    
    resources:
      default:
        type: alicloud:dns:DomainGroup
        properties:
          domainGroupName: tf-example
      defaultAlidnsDomain:
        type: alicloud:dns:AlidnsDomain
        name: default
        properties:
          domainName: starmove.com
          groupId: ${default.id}
          tags:
            Created: TF
            For: example
      record:
        type: alicloud:dns:AlidnsRecord
        properties:
          domainName: ${defaultAlidnsDomain.domainName}
          rr: alimail
          type: CNAME
          value: mail.mxhichin.com
          remark: tf-example
          status: ENABLE
    

    Create AlidnsRecord Resource

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

    Constructor syntax

    new AlidnsRecord(name: string, args: AlidnsRecordArgs, opts?: CustomResourceOptions);
    @overload
    def AlidnsRecord(resource_name: str,
                     args: AlidnsRecordArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlidnsRecord(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     domain_name: Optional[str] = None,
                     rr: Optional[str] = None,
                     type: Optional[str] = None,
                     value: Optional[str] = None,
                     lang: Optional[str] = None,
                     line: Optional[str] = None,
                     priority: Optional[int] = None,
                     remark: Optional[str] = None,
                     status: Optional[str] = None,
                     ttl: Optional[int] = None,
                     user_client_ip: Optional[str] = None)
    func NewAlidnsRecord(ctx *Context, name string, args AlidnsRecordArgs, opts ...ResourceOption) (*AlidnsRecord, error)
    public AlidnsRecord(string name, AlidnsRecordArgs args, CustomResourceOptions? opts = null)
    public AlidnsRecord(String name, AlidnsRecordArgs args)
    public AlidnsRecord(String name, AlidnsRecordArgs args, CustomResourceOptions options)
    
    type: alicloud:dns:AlidnsRecord
    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 AlidnsRecordArgs
    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 AlidnsRecordArgs
    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 AlidnsRecordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlidnsRecordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlidnsRecordArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var alidnsRecordResource = new AliCloud.Dns.AlidnsRecord("alidnsRecordResource", new()
    {
        DomainName = "string",
        Rr = "string",
        Type = "string",
        Value = "string",
        Lang = "string",
        Line = "string",
        Priority = 0,
        Remark = "string",
        Status = "string",
        Ttl = 0,
        UserClientIp = "string",
    });
    
    example, err := dns.NewAlidnsRecord(ctx, "alidnsRecordResource", &dns.AlidnsRecordArgs{
    	DomainName:   pulumi.String("string"),
    	Rr:           pulumi.String("string"),
    	Type:         pulumi.String("string"),
    	Value:        pulumi.String("string"),
    	Lang:         pulumi.String("string"),
    	Line:         pulumi.String("string"),
    	Priority:     pulumi.Int(0),
    	Remark:       pulumi.String("string"),
    	Status:       pulumi.String("string"),
    	Ttl:          pulumi.Int(0),
    	UserClientIp: pulumi.String("string"),
    })
    
    var alidnsRecordResource = new AlidnsRecord("alidnsRecordResource", AlidnsRecordArgs.builder()
        .domainName("string")
        .rr("string")
        .type("string")
        .value("string")
        .lang("string")
        .line("string")
        .priority(0)
        .remark("string")
        .status("string")
        .ttl(0)
        .userClientIp("string")
        .build());
    
    alidns_record_resource = alicloud.dns.AlidnsRecord("alidnsRecordResource",
        domain_name="string",
        rr="string",
        type="string",
        value="string",
        lang="string",
        line="string",
        priority=0,
        remark="string",
        status="string",
        ttl=0,
        user_client_ip="string")
    
    const alidnsRecordResource = new alicloud.dns.AlidnsRecord("alidnsRecordResource", {
        domainName: "string",
        rr: "string",
        type: "string",
        value: "string",
        lang: "string",
        line: "string",
        priority: 0,
        remark: "string",
        status: "string",
        ttl: 0,
        userClientIp: "string",
    });
    
    type: alicloud:dns:AlidnsRecord
    properties:
        domainName: string
        lang: string
        line: string
        priority: 0
        remark: string
        rr: string
        status: string
        ttl: 0
        type: string
        userClientIp: string
        value: string
    

    AlidnsRecord Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The AlidnsRecord resource accepts the following input properties:

    DomainName string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    Rr string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    Type string
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    Value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    Lang string
    User language.
    Line string
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    Priority int
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    Remark string
    The remark of the domain record.
    Status string
    The status of the domain record. Valid values: ENABLE,DISABLE.
    Ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    UserClientIp string
    The IP address of the client.
    DomainName string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    Rr string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    Type string
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    Value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    Lang string
    User language.
    Line string
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    Priority int
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    Remark string
    The remark of the domain record.
    Status string
    The status of the domain record. Valid values: ENABLE,DISABLE.
    Ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    UserClientIp string
    The IP address of the client.
    domainName String
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    rr String
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    type String
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value String
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    lang String
    User language.
    line String
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    priority Integer
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    remark String
    The remark of the domain record.
    status String
    The status of the domain record. Valid values: ENABLE,DISABLE.
    ttl Integer
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    userClientIp String
    The IP address of the client.
    domainName string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    rr string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    type string
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    lang string
    User language.
    line string
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    priority number
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    remark string
    The remark of the domain record.
    status string
    The status of the domain record. Valid values: ENABLE,DISABLE.
    ttl number
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    userClientIp string
    The IP address of the client.
    domain_name str
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    rr str
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    type str
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value str
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    lang str
    User language.
    line str
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    priority int
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    remark str
    The remark of the domain record.
    status str
    The status of the domain record. Valid values: ENABLE,DISABLE.
    ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    user_client_ip str
    The IP address of the client.
    domainName String
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    rr String
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    type String
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    value String
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    lang String
    User language.
    line String
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    priority Number
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    remark String
    The remark of the domain record.
    status String
    The status of the domain record. Valid values: ENABLE,DISABLE.
    ttl Number
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    userClientIp String
    The IP address of the client.

    Outputs

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

    Get an existing AlidnsRecord 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?: AlidnsRecordState, opts?: CustomResourceOptions): AlidnsRecord
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain_name: Optional[str] = None,
            lang: Optional[str] = None,
            line: Optional[str] = None,
            priority: Optional[int] = None,
            remark: Optional[str] = None,
            rr: Optional[str] = None,
            status: Optional[str] = None,
            ttl: Optional[int] = None,
            type: Optional[str] = None,
            user_client_ip: Optional[str] = None,
            value: Optional[str] = None) -> AlidnsRecord
    func GetAlidnsRecord(ctx *Context, name string, id IDInput, state *AlidnsRecordState, opts ...ResourceOption) (*AlidnsRecord, error)
    public static AlidnsRecord Get(string name, Input<string> id, AlidnsRecordState? state, CustomResourceOptions? opts = null)
    public static AlidnsRecord get(String name, Output<String> id, AlidnsRecordState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    DomainName string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    Lang string
    User language.
    Line string
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    Priority int
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    Remark string
    The remark of the domain record.
    Rr string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    Status string
    The status of the domain record. Valid values: ENABLE,DISABLE.
    Ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    Type string
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    UserClientIp string
    The IP address of the client.
    Value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    DomainName string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    Lang string
    User language.
    Line string
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    Priority int
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    Remark string
    The remark of the domain record.
    Rr string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    Status string
    The status of the domain record. Valid values: ENABLE,DISABLE.
    Ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    Type string
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    UserClientIp string
    The IP address of the client.
    Value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    domainName String
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    lang String
    User language.
    line String
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    priority Integer
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    remark String
    The remark of the domain record.
    rr String
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    status String
    The status of the domain record. Valid values: ENABLE,DISABLE.
    ttl Integer
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    type String
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    userClientIp String
    The IP address of the client.
    value String
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    domainName string
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    lang string
    User language.
    line string
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    priority number
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    remark string
    The remark of the domain record.
    rr string
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    status string
    The status of the domain record. Valid values: ENABLE,DISABLE.
    ttl number
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    type string
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    userClientIp string
    The IP address of the client.
    value string
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    domain_name str
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    lang str
    User language.
    line str
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    priority int
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    remark str
    The remark of the domain record.
    rr str
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    status str
    The status of the domain record. Valid values: ENABLE,DISABLE.
    ttl int
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    type str
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    user_client_ip str
    The IP address of the client.
    value str
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.
    domainName String
    Name of the domain. This name without suffix can have a string of 1 to 63 characters, must contain only alphanumeric characters or "-", and must not begin or end with "-", and "-" must not in the 3th and 4th character positions at the same time. Suffix .sh and .tel are not supported.
    lang String
    User language.
    line String
    The resolution line of domain record. When the type is FORWORD_URL, this parameter must be default. Default value is default. For checking all resolution lines enumeration please visit Alibaba Cloud DNS doc or using alicloud.dns.getResolutionLines in data source to get the value.
    priority Number
    The priority of domain record. Valid values: [1-10]. When the type is MX, this parameter is required.
    remark String
    The remark of the domain record.
    rr String
    Host record for the domain record. This host_record can have at most 253 characters, and each part split with . can have at most 63 characters, and must contain only alphanumeric characters or hyphens, such as -, ., *, @, and must not begin or end with -.
    status String
    The status of the domain record. Valid values: ENABLE,DISABLE.
    ttl Number
    The effective time of domain record. Its scope depends on the edition of the cloud resolution. Free is [600, 86400], Basic is [120, 86400], Standard is [60, 86400], Ultimate is [10, 86400], Exclusive is [1, 86400]. Default value is 600.
    type String
    The type of domain record. Valid values: A,NS,MX,TXT,CNAME,SRV,AAAA,CAA, REDIRECT_URL and FORWORD_URL.
    userClientIp String
    The IP address of the client.
    value String
    The value of domain record, When the type is MX,NS,CNAME,SRV, the server will treat the value as a fully qualified domain name, so it's no need to add a . at the end.

    Import

    Alidns Domain Record can be imported using the id, e.g.

    $ pulumi import alicloud:dns/alidnsRecord:AlidnsRecord example abc123456
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi