ALIYUN::PVTZ::ZoneRecord类型用于添加private zone的解析记录。

语法

{
  "Type": "ALIYUN::PVTZ::ZoneRecord",
  "Properties": {
    "Status": String,
    "Rr": String,
    "Value": String,
    "ZoneId": String,
    "Priority": Integer,
    "Ttl": Integer,
    "Type": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
Status String 状态 取值:
  • ENABLE:启用解析
  • DISABLE:暂停解析
Rr String 主机记录 如果要解析@.exmaple.com,主机记录要填写at(@),而不是空。
Value String 记录值
ZoneId String zone Id
Priority Integer MX记录的优先级 取值范围:1~10
Ttl Integer 生存时间 默认值:60
Type String 解析记录类型 取值:
  • A
  • CNAME
  • TXT
  • MX
  • PTR

返回值

Fn::GetAtt

RecordId:解析记录ID。

示例

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "ZoneRecord": {
      "Type": "ALIYUN::PVTZ::ZoneRecord",
      "Properties": {
        "Status": {
          "Ref": "Status"
        },
        "Rr": {
          "Ref": "Rr"
        },
        "Value": {
          "Ref": "Value"
        },
        "ZoneId": {
          "Ref": "ZoneId"
        },
        "Priority": {
          "Ref": "Priority"
        },
        "Ttl": {
          "Ref": "Ttl"
        },
        "Type": {
          "Ref": "Type"
        }
      }
    }
  },
  "Parameters": {
    "Status": {
      "Default": "ENABLE",
      "Type": "String",
      "Description": "Allowed values: [ENABLE, DISABLE]",
      "AllowedValues": ["DISABLE", "ENABLE"]
    },
    "Rr": {
      "Type": "String",
      "Description": "Host record, if you want to resolve @.exmaple.com, the host record should fill in \"@\" instead of empty"
    },
    "Value": {
      "Type": "String",
      "Description": "Record value"
    },
    "ZoneId": {
      "Type": "String",
      "Description": "Zone Id"
    },
    "Priority": {
      "Default": 10,
      "Type": "Number",
      "Description": "MX record priority, value range [1,10]. Default to 10.",
      "MaxValue": 10,
      "MinValue": 1
    },
    "Ttl": {
      "Default": 60,
      "Type": "Number",
      "Description": "Survival time, default is 60"
    },
    "Type": {
      "Type": "String",
      "Description": "Analyze record type, currently only supports A, CNAME, TXT, MX, PTR",
      "AllowedValues": ["A", "CNAME", "MX", "PTR", "TXT"]
    }
  },
  "Outputs": {
    "RecordId": {
      "Description": "Parsing record Id",
      "Value": {
        "Fn::GetAtt": ["ZoneRecord", "RecordId"]
      }
    }
  }
}