ALIYUN::PVTZ::ZoneRecord is used to add a DNS record to a private zone.
Syntax
{
"Type": "ALIYUN::PVTZ::ZoneRecord",
"Properties": {
"Status": String,
"Rr": String,
"Value": String,
"ZoneId": String,
"Priority": Integer,
"Ttl": Integer,
"Type": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Status | String | Yes | Yes | The status of DNS resolution. | Valid values:
|
Rr | String | Yes | Yes | The record of the host. | For example, to resolve @.example.com , you must set Rr to an at sign (@) instead of leaving it blank.
|
Value | String | Yes | Yes | The value of the DNS record. | None |
ZoneId | String | Yes | No | zone Id | None |
Priority | Integer | No | Yes | The priority of the MX record. | Valid values: 1 to 10. |
Ttl | Integer | No | Yes | The Time-to-Live (TTL) of the record. | Default value: 60. |
Type | String | Yes | Yes | The type of the DNS record. | Valid values:
|
Response parameters
Fn::GetAtt
RecordId: the ID of the DNS record.
Examples
{
"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"]
}
}
}
}