All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::DirectMail::Domain

Last Updated:Aug 12, 2024

ALIYUN::DirectMail::Domain is used to create a domain name in Direct Mail.

Syntax

{
  "Type": "ALIYUN::DirectMail::Domain",
  "Properties": {
    "DomainName": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

DomainName

String

Yes

No

The domain name.

The domain name must be 1 to 50 characters in length, and can contain digits, letters, periods (.), and hyphens (-).

Return values

Fn::GetAtt

  • SpfRecord: the Sender Policy Framework (SPF) record value that is provided in the Direct Mail console.

  • SpfAuthStatus: the verification result of the SPF record.

  • CnameAuthStatus: the verification result of the CNAME record.

  • DomainName: the domain name.

  • DnsMx: the mail exchanger (MX) record value that is resolved from the domain name over the Internet.

  • CnameRecord: the custom part of the CNAME record.

  • CreateTime: the time when the domain name was created.

  • DnsTxt: the TXT record value that is resolved from the domain name over the Internet. The TXT record is used to verify domain ownership.

  • CnameConfirmStatus: indicates whether the CNAME record is changed.

  • IcpStatus: the state of ICP filing.

  • MxRecord: the MX record value that is provided in the Direct Mail console.

  • DnsSpf: the SPF record value that is resolved from the domain name over the Internet.

  • DefaultDomain: indicates whether the domain name is the default domain name.

  • DomainId: the ID of the domain name.

  • DomainType: the TXT record value that is provided in the Direct Mail console.

  • TlDomainName: the primary domain name.

  • MxAuthStatus: the verification result of the MX record.

  • TracefRecord: the CNAME record value that is provided in the Direct Mail console.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
    Resources:
      ExtensionResource:
        Properties:
          DomainName: example.com
        Type: ALIYUN::DirectMail::Domain
    Outputs:
      CnameAuthStatus:
        Description: Cname auth status.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - CnameAuthStatus
      CnameConfirmStatus:
        Description: Cname confirm status.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - CnameConfirmStatus
      CnameRecord:
        Description: Cname record.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - CnameRecord
      CreateTime:
        Description: The creation time of the domain.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - CreateTime
      DefaultDomain:
        Description: Default domain.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - DefaultDomain
      DnsMx:
        Description: DNS MX.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - DnsMx
      DnsSpf:
        Description: DNS SPF.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - DnsSpf
      DnsTxt:
        Description: DNS txt.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - DnsTxt
      DomainId:
        Description: The ID of the domain.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - DomainId
      DomainName:
        Description: The name of the domain.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - DomainName
      DomainType:
        Description: The type of the domain.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - DomainType
      IcpStatus:
        Description: ICP status.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - IcpStatus
      MxAuthStatus:
        Description: MX auth status.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - MxAuthStatus
      MxRecord:
        Description: MX Record.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - MxRecord
      SpfAuthStatus:
        Description: SPF auth status.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - SpfAuthStatus
      SpfRecord:
        Description: SPF record.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - SpfRecord
      TlDomainName:
        Description: TL domain name.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - TlDomainName
      TracefRecord:
        Description: Tracef Record.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - TracefRecord
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::DirectMail::Domain",
          "Properties": {
            "DomainName": "example.com"
          }
        }
      },
      "Outputs": {
        "SpfRecord": {
          "Description": "SPF record.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "SpfRecord"
            ]
          }
        },
        "SpfAuthStatus": {
          "Description": "SPF auth status.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "SpfAuthStatus"
            ]
          }
        },
        "CnameAuthStatus": {
          "Description": "Cname auth status.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CnameAuthStatus"
            ]
          }
        },
        "DomainName": {
          "Description": "The name of the domain.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DomainName"
            ]
          }
        },
        "DnsMx": {
          "Description": "DNS MX.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DnsMx"
            ]
          }
        },
        "CnameRecord": {
          "Description": "Cname record.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CnameRecord"
            ]
          }
        },
        "CreateTime": {
          "Description": "The creation time of the domain.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CreateTime"
            ]
          }
        },
        "DnsTxt": {
          "Description": "DNS txt.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DnsTxt"
            ]
          }
        },
        "CnameConfirmStatus": {
          "Description": "Cname confirm status.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "CnameConfirmStatus"
            ]
          }
        },
        "IcpStatus": {
          "Description": "ICP status.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "IcpStatus"
            ]
          }
        },
        "MxRecord": {
          "Description": "MX Record.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "MxRecord"
            ]
          }
        },
        "DnsSpf": {
          "Description": "DNS SPF.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DnsSpf"
            ]
          }
        },
        "DefaultDomain": {
          "Description": "Default domain.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DefaultDomain"
            ]
          }
        },
        "DomainId": {
          "Description": "The ID of the domain.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DomainId"
            ]
          }
        },
        "DomainType": {
          "Description": "The type of the domain.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "DomainType"
            ]
          }
        },
        "TlDomainName": {
          "Description": "TL domain name.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "TlDomainName"
            ]
          }
        },
        "MxAuthStatus": {
          "Description": "MX auth status.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "MxAuthStatus"
            ]
          }
        },
        "TracefRecord": {
          "Description": "Tracef Record.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "TracefRecord"
            ]
          }
        }
      }
    }