The ALIYUN::SLB::DomainExtension resource creates an additional domain name.
Syntax
{
"Type": "ALIYUN::SLB::DomainExtension",
"Properties": {
"Domain": String,
"ListenerPort": Integer,
"ServerCertificateId": String,
"LoadBalancerId": String
}
}Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| Domain | String | Yes | No | The domain name. | None. |
| ListenerPort | Integer | Yes | No | The frontend port of the HTTPS listener for the Server Load Balancer (SLB) instance. | Valid values: 1 to 65535. |
| ServerCertificateId | String | Yes | Yes | The ID of the certificate that corresponds to the domain name. | None. |
| LoadBalancerId | String | Yes | No | The ID of the SLB instance. | None. |
Return values
Fn::GetAtt
- DomainExtensionId: The ID of the additional domain name.
- ListenerPort: The frontend port used by the SLB instance.
Example
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"DomainExtension": {
"Type": "ALIYUN::SLB::DomainExtension",
"Properties": {
"Domain": "*.example.com",
"ListenerPort": "443",
"ServerCertificateId": "123157908552****_166f8204689_1714763408_70998****",
"LoadBalancerId": "lb-bp1o94dp5i6earr9g****"
}
}
},
"Outputs": {
"DomainExtensionId": {
"Value": {
"Fn::GetAtt": [
"DomainExtension",
"DomainExtensionId"
]
}
},
"ListenerPort": {
"Value": {
"Fn::GetAtt": [
"DomainExtension",
"ListenerPort"
]
}
}
}
}