ALIYUN::SAE::SlbBinding is used to bind an SLB instance to an application.

Syntax

{
  "Type": "ALIYUN::SAE::SlbBinding",
  "Properties": {
    "InternetSlbId": String,
    "AppId": String,
    "Intranet": String,
    "IntranetSlbId": String,
    "Internet": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
InternetSlbId StringNoNoThe ID of the Internet SLB instance.Only non-shared instances are supported.
AppIdStringYesNoThe ID of the deployed application. None
Intranet StringNoNoBind the private network SLB instance. For example, [{"port":80,"targetPort":8080,"protocol":"TCP"}] indicates that port 8080 of the container is used to expose the service through port 80 of the SLB. The protocol is TCP. None
IntranetSlbId StringNoNoThe ID of the intranet SLB instance.Only non-shared instances are supported.
Internet StringNoNoBind an Internet SLB instance. For example, [{"port":80,"targetPort":8080,"protocol":"TCP"}] indicates that port 8080 of the container is used to expose the service through port 80 of the SLB. The protocol is TCP. None

Response parameters

Fn::GetAtt

  • AppId: the ID of the application.
  • ChangeOrderId: the ID of the release Form, which is used to query the task execution status.

Examples

  • YAMLformat

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      SlbInstanceId:
        AssociationProperty: ALIYUN::SLB::Instance::InstanceId
        Type: String
      AppId:
        Type: String
        Description: Successful application deployment target ID
    Resources:
      SlbBinding:
        Type: ALIYUN::SAE::SlbBinding
        Properties:
          AppId:
            Ref: AppId
          InternetSlbId:
            Ref: SlbInstanceId
    Outputs:
      AppId:
        Description: Successful application deployment target ID
        Value:
          Fn::GetAtt:
            - SlbBinding
            - AppId
      ChangeOrderId:
        Description: Return to release a single ID, used to query task execution status.
        Value:
          Fn::GetAtt:
            - SlbBinding
            - ChangeOrderId
  • JSONformat

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "SlbInstanceId":{
          "AssociationProperty":"ALIYUN::SLB::Instance::InstanceId",
          "Type":"String",
        },
        "AppId": {
          "Type": "String",
          "Description": "Successful application deployment target ID"
        }
      },
      "Resources": {
        "SlbBinding": {
          "Type": "ALIYUN::SAE::SlbBinding",
          "Properties": {
            "AppId": {
              "Ref": "AppId"
            },
            "InternetSlbId": {
              "Ref": "SlbInstanceId"
            }
          }
        }
      },
      "Outputs": {
        "AppId": {
          "Description": "Successful application deployment target ID",
          "Value": {
            "Fn::GetAtt": [
              "SlbBinding",
              "AppId"
            ]
          }
        },
        "ChangeOrderId": {
          "Description": "Return to release a single ID, used to query task execution status.",
          "Value": {
            "Fn::GetAtt": [
              "SlbBinding",
              "ChangeOrderId"
            ]
          }
        }
      }
    }