ALIYUN::SAE::Ingress is used to create a routing rule.
Syntax
{
"Type": "ALIYUN::SAE::Ingress",
"Properties": {
"DefaultRule": Map,
"Description": String,
"ListenerPort": Integer,
"NamespaceId": String,
"Rules": List,
"SlbId": String,
"CertIds": List,
"CertId": String,
"LoadBalanceType": String,
"ListenerProtocol": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
DefaultRule | Map | Yes | Yes | The default forwarding rule. | You can specify a port and an application in the default forwarding rule to forward traffic based on the IP address of the application. For more information, see the "DefaultRule properties" section of this topic. Note All requests that do not match the forwarding rules specified by the Rules property are forwarded to the application. |
Description | String | Yes | Yes | The name of the routing rule. | None. |
ListenerPort | Integer | Yes | Yes | The listener port of the Sever Load Balancer (SLB) instance. | You must specify a vacant port. |
NamespaceId | String | Yes | No | The ID of the namespace to which the application belongs. | Applications that belong to multiple namespaces are not supported. |
Rules | List | Yes | Yes | The custom forwarding rules. | You can specify a port and an application in a custom forwarding rule to forward traffic based on the specified domain name and request path. For more information, see the "Rules properties" section of this topic. |
SlbId | String | Yes | No | The SLB instance that is used by the routing rule. | None. |
CertIds | List | No | Yes | The IDs of the certificates that are associated with the Application Load Balancer (ALB) instance. | The valid values are subject to the following limits:
|
CertId | String | No | Yes | The ID of the certificate that is associated with the Classic Load Balancer (CLB) instance. | The valid values are subject to the following limits:
For more information about how to use the ID of an SSL certificate for a CLB instance, see Overview. |
LoadBalanceType | String | No | No | The type of the SLB instance. | You can specify the type when you create the routing rule. You cannot change the type when you update the routing rule. Valid values:
|
ListenerProtocol | String | No | Yes | The protocol that is used to forward requests. | Valid values:
|
DefaultRule syntax
"DefaultRule": {
"BackendProtocol": String,
"AppId": String,
"ContainerPort": Integer
}
DefaultRule properties
Property | Type | Required | Editable | Description | Constraint |
AppId | String | Yes | Yes | The application ID. | None. |
ContainerPort | Integer | Yes | Yes | The container port. | Valid values: 0 to 65535. |
BackendProtocol | String | No | Yes | The protocol that is used by the backend service. | Valid values:
|
Rules syntax
"Rules": [
{
"Path": String,
"BackendProtocol": String,
"AppId": String,
"RewritePath": String,
"ContainerPort": Integer,
"Domain": String
}
]
Rules properties
Property | Type | Required | Editable | Description | Constraint |
AppId | String | Yes | Yes | The application ID. | None. |
ContainerPort | Integer | Yes | Yes | The container port. | Valid values: 0 to 65535. |
Domain | String | Yes | Yes | The domain name. | None. |
Path | String | Yes | Yes | The request path. | None. |
BackendProtocol | String | No | Yes | The protocol that is used by the backend service. | Valid values:
|
RewritePath | String | No | No | The rewrite path. | None. |
Return values
Fn::GetAtt
IngressId: the ID of the routing rule.