ALIYUN::PVTZ::Zone is used to create a private zone.

Syntax

{
  "Type": "ALIYUN::PVTZ::Zone",
  "Properties": {
    "ProxyPattern": String,
    "Remark": String,
    "ZoneName": String
  }
}

Properties

Property Type Required Editable Description Constraint
ProxyPattern String No Yes

ZONE: DNS records for the entire zone are hijacked.

RECORD: Recursive resolution of public DNS records is enabled.

Valid values: ZONE and RECORD.
Remark String No Yes The remarks. The remarks can be up to 50 characters in length.
ZoneName String Yes No The name of the zone. None

Response parameters

Fn::GetAtt

ZoneId: the ID of the zone.

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "Zone": {
      "Type": "ALIYUN::PVTZ::Zone",
      "Properties": {
        "ProxyPattern": {
          "Ref": "ProxyPattern"
        },
        "Remark": {
          "Ref": "Remark"
        },
        "ZoneName": {
          "Ref": "ZoneName"
        }
      }
    }
  },
  "Parameters": {
    "ProxyPattern": {
      "Default": "ZONE",
      "Type": "String",
      "Description": "ZONE: completely hijack the entire zone.\nRECORD: Incomplete hijacking, recursive resolution agent.\nDefault to ZONE.",
      "AllowedValues": ["RECORD", "ZONE"]
    },
    "Remark": {
      "AllowedPattern": "^[-_,.\\uff0c\\u3002a-zA-Z0-9\\u4e00-\\u9fa5]{0,50}$",
      "Type": "String",
      "Description": "50 characters at most. It can only contain numbers, Chinese, English and special characters: \"_-,.\uff0c\u3002\".",
      "MaxLength": 50
    },
    "ZoneName": {
      "Type": "String",
      "Description": "Zone name"
    }
  },
  "Outputs": {
    "ZoneId": {
      "Description": "Zone ID",
      "Value": {
        "Fn::GetAtt": ["Zone", "ZoneId"]
      }
    }
  }
}