The ALIYUN::DNS::CustomLine resource creates a custom line for a domain name.
Syntax
{
"Type": "ALIYUN::DNS::CustomLine",
"Properties": {
"DomainName": String,
"IpSegment": List,
"LineName": String
}
}
Properties
|
Parameter |
Type |
Required |
Updatable |
Description |
Constraints |
|
DomainName |
String |
Yes |
No |
The domain name associated with the custom line. |
None |
|
IpSegment |
List |
Yes |
No |
The list of IP segments for the custom line. |
The number of IP segments. Valid values: 1 to 500. For more information, see IpSegment properties. |
|
LineName |
String |
Yes |
Yes |
The name of the custom line. |
None |
IpSegment syntax
"IpSegment": [
{
"StartIp": String,
"EndIp": String
}
]
IpSegment properties
|
Parameter |
Type |
Required |
Updatable |
Description |
Constraints |
|
EndIp |
String |
No |
No |
The end IP address of the IP segment. |
None |
|
StartIp |
String |
No |
No |
The start IP address of the IP segment. |
None |
Return values
Fn::GetAtt
LineId: The ID of the custom line.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DomainName:
Type: String
Description: The domain name associated with the custom line.
Required: true
IpSegment:
AssociationPropertyMetadata:
Parameters:
StartIp:
Type: String
Description: The start IP address of the IP segment.
Required: false
EndIp:
Type: String
Description: The end IP address of the IP segment.
Required: false
AssociationProperty: List[Parameters]
Type: Json
Description: The list of IP segments for the custom line.
Required: true
MinLength: 1
MaxLength: 500
LineName:
Type: String
Description: The name of the custom line.
Required: true
Resources:
CustomLine:
Type: ALIYUN::DNS::CustomLine
Properties:
DomainName:
Ref: DomainName
IpSegment:
Ref: IpSegment
LineName:
Ref: LineName
Outputs:
LineId:
Description: The ID of the custom line.
Value:
Fn::GetAtt:
- CustomLine
- LineId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DomainName": {
"Type": "String",
"Description": "The domain name associated with the custom line.",
"Required": true
},
"IpSegment": {
"AssociationPropertyMetadata": {
"Parameters": {
"StartIp": {
"Type": "String",
"Description": "The start IP address of the IP segment.",
"Required": false
},
"EndIp": {
"Type": "String",
"Description": "The end IP address of the IP segment.",
"Required": false
}
}
},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": "The list of IP segments for the custom line.",
"Required": true,
"MinLength": 1,
"MaxLength": 500
},
"LineName": {
"Type": "String",
"Description": "The name of the custom line.",
"Required": true
}
},
"Resources": {
"CustomLine": {
"Type": "ALIYUN::DNS::CustomLine",
"Properties": {
"DomainName": {
"Ref": "DomainName"
},
"IpSegment": {
"Ref": "IpSegment"
},
"LineName": {
"Ref": "LineName"
}
}
}
},
"Outputs": {
"LineId": {
"Description": "The ID of the custom line.",
"Value": {
"Fn::GetAtt": [
"CustomLine",
"LineId"
]
}
}
}
}