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"
}
}
}
}
}
该文章对您有帮助吗?