ALIYUN::SLB::DomainExtension is used to create a domain extension for an SLB instance.

Syntax

{
  "Type": "ALIYUN::SLB::DomainExtension",
  "Properties": {
    "Domain": String,
    "ListenerPort": Integer,
    "ServerCertificateId": String,
    "LoadBalancerId": String
  }
}

Properties

Name Type Required Editable Description Validity
Domain String Yes No The domain name of the SLB instance. None
ListenerPort Integer Yes No The frontend port used by the HTTPS listener of the SLB instance. Valid values: 1 to 65535.
ServerCertificateId String Yes Yes The ID of the certificate corresponding to the domain name. None
LoadBalancerId String Yes No The ID of the SLB instance. None

Response parameters

Fn::GetAtt

  • DomainExtensionId: the ID of the created domain extension.
  • ListenerPort: the frontend port used by the SLB instance.

Examples

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "DomainExtension": {
      "Type": "ALIYUN::SLB::DomainExtension",
      "Properties": {
        "Domain": "*.example1.com",
        "ListenerPort": "443",
        "ServerCertificateId": "123157908552****_166f8204689_1714763408_70998****",
        "LoadBalancerId": "lb-bp1o94dp5i6earr9g****"
      }
    }
  },
  "Outputs": {
    "DomainExtensionId": {
      "Value": {
        "Fn::GetAtt": [
          "DomainExtension",
          "DomainExtensionId"
        ]
      }
    },
    "ListenerPort": {
      "Value": {
        "Fn::GetAtt": [
          "DomainExtension",
          "ListenerPort"
        ]
      }
    }
  }
}