All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::DNS::DomainAttachment

Last Updated:Apr 09, 2026

ALIYUN::DNS::DomainAttachment attaches domain names to an Alibaba Cloud DNS instance.

Syntax

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

Properties

Parameter

Type

Required

Update allowed

Description

Constraint

DomainNames

List

Yes

No

The domain names to attach.

The list length must be from 1 to 100.

InstanceId

String

Yes

No

The ID of the instance.

None

Return value

Fn::GetAtt

Not applicable.

Example

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description: The ID of the instance.
    Required: true
  DomainNames:
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: false
    AssociationProperty: List[Parameter]
    Type: Json
    Description: The domain names to attach.
    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": "The ID of the instance.",
      "Required": true
    },
    "DomainNames": {
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": false
        }
      },
      "AssociationProperty": "List[Parameter]",
      "Type": "Json",
      "Description": "The domain names to attach.",
      "Required": true,
      "MinLength": 1,
      "MaxLength": 100
    }
  },
  "Resources": {
    "DomainAttachment": {
      "Type": "ALIYUN::DNS::DomainAttachment",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "DomainNames": {
          "Ref": "DomainNames"
        }
      }
    }
  }
}