ALIYUN::DNS::DomainAttachment

更新时间:
复制为 MD 格式

ALIYUN::DNS::DomainAttachment类型用于绑定付费版DNS域名到实例。

语法

{
  "Type": "ALIYUN::DNS::DomainAttachment",
  "Properties": {
    "DomainNames": List,
    "InstanceId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

DomainNames

List

要附加的域名列表。

长度限制:最小1,最大100

InstanceId

String

实例的ID。

返回值

Fn::GetAtt

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description:
      en: The ID of the instance.
      zh: 实例的ID。
    Required: true
  DomainNames:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description:
      en: The list of domain names to attach.
      zh: 要附加的域名列表。
    Required: true
    MinLength: 1
    MaxLength: 100
Resources:
  DomainAttachment:
    Type: ALIYUN::DNS::DomainAttachment
    Properties:
      InstanceId:
        Ref: InstanceId
      DomainNames:
        Ref: DomainNames
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the instance.",
        "zh": "实例的ID。"
      },
      "Required": true
    },
    "DomainNames": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": {
        "en": "The list of domain names to attach.",
        "zh": "要附加的域名列表。"
      },
      "Required": true,
      "MinLength": 1,
      "MaxLength": 100
    }
  },
  "Resources": {
    "DomainAttachment": {
      "Type": "ALIYUN::DNS::DomainAttachment",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "DomainNames": {
          "Ref": "DomainNames"
        }
      }
    }
  }
}