ALIYUN::SAE::SlbBinding is a resource type that binds a Server Load Balancer (SLB) instance to a Serverless App Engine (SAE) application.
Syntax
{
"Type": "ALIYUN::SAE::SlbBinding",
"Properties": {
"InternetSlbId": String,
"AppId": String,
"Intranet": String,
"IntranetSlbId": String,
"Internet": String
}
}
Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| InternetSlbId | String | No | No | The ID of the Internet-facing SLB instance. | Only dedicated instances are supported. |
| AppId | String | Yes | No | The ID of the deployed application. | None |
| Intranet | String | No | No | The binding configuration of an internal-facing SLB instance. For example, [{"port":80,"targetPort":8080,"protocol":"TCP"}] exposes container port 8080 through port 80 of the SLB instance over TCP. | None |
| IntranetSlbId | String | No | No | The ID of the internal-facing SLB instance. | Only dedicated instances are supported. |
| Internet | String | No | No | The binding configuration of an Internet-facing SLB instance. For example, [{"port":80,"targetPort":8080,"protocol":"TCP"}] exposes container port 8080 through port 80 of the SLB instance over TCP. | None |
Return values
Fn::GetAtt
- AppId: The ID of the application.
- ChangeOrderId: The ID of the change order. Use this ID to query the status of the task.
Examples
-
JSONformat{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "SlbInstanceId":{ "AssociationProperty":"ALIYUN::SLB::Instance::InstanceId", "Type":"String" }, "AppId": { "Type": "String", "Description": "The ID of the deployed application." } }, "Resources": { "SlbBinding": { "Type": "ALIYUN::SAE::SlbBinding", "Properties": { "AppId": { "Ref": "AppId" }, "InternetSlbId": { "Ref": "SlbInstanceId" } } } }, "Outputs": { "AppId": { "Description": "The ID of the application.", "Value": { "Fn::GetAtt": [ "SlbBinding", "AppId" ] } }, "ChangeOrderId": { "Description": "The ID of the change order. Use this ID to query the status of the task.", "Value": { "Fn::GetAtt": [ "SlbBinding", "ChangeOrderId" ] } } } }
该文章对您有帮助吗?