ALIYUN::DCDN::Domain is used to add a Dynamic Route for CDN (DCDN) domain name.
Syntax
{
"Type": "ALIYUN::DCDN::Domain",
"Properties": {
"CheckUrl": String,
"Scope": String,
"ResourceGroupId": String,
"DomainName": String,
"TopLevelDomain": String,
"Sources": List,
"Tags": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
CheckUrl | String | No | Yes | The URL that is used to check the accessibility of the origin server. | None. |
Scope | String | No | No | The accelerated region. | Valid values:
|
ResourceGroupId | String | No | Yes | The ID of the resource group. | If you do not specify this property, the system automatically assigns the ID of the default resource group. |
DomainName | String | Yes | No | The domain name that you want to add. | You can add only one domain name. You can add a wildcard domain name that starts with a period (.), such as |
TopLevelDomain | String | No | Yes | The top-level domain. | None. |
Sources | List | Yes | No | The addresses of the origin servers. | Example:
|
Tags | List | No | Yes | The tags. You can specify up to 20 tags. | For more information, see Tags properties. |
Tags syntax
"Tags": [
{
"Key": String,
"Value": String
}
]
Tags properties
Property | Type | Required | Editable | Description | Constraint |
Key | String | Yes | No | The tag key. | The tag key can be up to 128 characters in length and cannot contain |
Value | String | No | No | The tag value. | The tag value can be up to 128 characters in length and cannot contain |
Sources syntax
"Sources": [
{
"Type": String,
"Content": String,
"Priority": String,
"Port": Integer,
"Weight": String
}
]
Sources properties
Property | Type | Required | Editable | Description | Constraint |
Type | String | Yes | No | The type of the origin server. | Valid values:
|
Content | String | Yes | No | The address of the origin server. | You can specify an IP address or a domain name. |
Priority | String | No | No | The priority of the origin server if multiple origin servers are specified. | If multiple origin servers are specified, you must specify this property. Valid values: 20 to 30. Default value: 20. Note A value of 20 specifies that the origin is a primary origin. A value of 30 specifies that the origin is a secondary origin. |
Port | Integer | No | No | The port. | You can specify port 443, port 80, or a custom port. Default value: 80. Note If you set the port to 443, DCDN uses the |
Weight | String | No | No | The weight of the origin server if multiple origin servers are specified. | Valid values: a numeric value that is less than 100. Default value: 10. |
Return values
Fn::GetAtt
Cname: the canonical name (CNAME) of the domain name.
DomainName: the CDN domain name.