ALIYUN::SAE::SlbBinding é um tipo de recurso que associa uma instância do Server Load Balancer (SLB) a uma aplicação do Serverless App Engine (SAE).
Sintaxe
{
"Type": "ALIYUN::SAE::SlbBinding",
"Properties": {
"InternetSlbId": String,
"AppId": String,
"Intranet": String,
"IntranetSlbId": String,
"Internet": String
}
}
Propriedades
|
Nome da propriedade |
Tipo |
Obrigatória |
Atualização permitida |
Descrição |
Restrições |
|
InternetSlbId |
String |
Não |
Não |
ID da instância SLB voltada para a Internet. |
Compatível apenas com instâncias dedicadas. |
|
AppId |
String |
Sim |
Não |
ID da aplicação implantada. |
Nenhuma |
|
Intranet |
String |
Não |
Não |
Configuração de associação de uma instância SLB interna. Por exemplo, [{"port":80,"targetPort":8080,"protocol":"TCP"}] expõe a porta 8080 do contêiner por meio da porta 80 da instância SLB via TCP. |
Nenhuma |
|
IntranetSlbId |
String |
Não |
Não |
ID da instância SLB interna. |
Compatível apenas com instâncias dedicadas. |
|
Internet |
String |
Não |
Não |
Configuração de associação de uma instância SLB voltada para a Internet. Por exemplo, [{"port":80,"targetPort":8080,"protocol":"TCP"}] expõe a porta 8080 do contêiner por meio da porta 80 da instância SLB via TCP. |
Nenhuma |
Valores de retorno
Fn::GetAtt
AppId: o ID da aplicação.
ChangeOrderId: o ID da ordem de alteração. Use este ID para consultar o status da tarefa.
Exemplos
-
Formato
YAMLROSTemplateFormatVersion: '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 -
Formato
JSON{ "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" ] } } } }