ALIYUN::SAE::SlbBinding adalah tipe resource yang mengikat instance Server Load Balancer (SLB) ke aplikasi Serverless App Engine (SAE).
Sintaks
{
"Type": "ALIYUN::SAE::SlbBinding",
"Properties": {
"InternetSlbId": String,
"AppId": String,
"Intranet": String,
"IntranetSlbId": String,
"Internet": String
}
}
Properti
| Nama properti | Tipe | Wajib | Pembaruan diizinkan | Deskripsi | Batasan |
| InternetSlbId | String | Tidak | Tidak | ID instance SLB publik. | Hanya instance khusus yang didukung. |
| AppId | String | Ya | Tidak | ID aplikasi yang telah dideploy. | Tidak ada |
| Intranet | String | Tidak | Tidak | Konfigurasi pengikatan instance SLB internal. Contohnya, [{"port":80,"targetPort":8080,"protocol":"TCP"}] mengekspos port kontainer 8080 melalui port 80 instance SLB menggunakan protokol TCP. | Tidak ada |
| IntranetSlbId | String | Tidak | Tidak | ID instance SLB internal. | Hanya instance khusus yang didukung. |
| Internet | String | Tidak | Tidak | Konfigurasi pengikatan instance SLB publik. Contohnya, [{"port":80,"targetPort":8080,"protocol":"TCP"}] mengekspos port kontainer 8080 melalui port 80 instance SLB menggunakan protokol TCP. | Tidak ada |
Nilai kembalian
Fn::GetAtt
- AppId: ID aplikasi.
- ChangeOrderId: ID pesanan perubahan. Gunakan ID ini untuk menanyakan status task.
Contoh
-
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" ] } } } }