全部产品
Search
文档中心

资源编排:ALIYUN::OOS::ApplicationConnectionBind

更新时间:Jul 15, 2026

ALIYUN::OOS::ApplicationConnectionBind类型用于绑定应用连接。

语法

{
  "Type": "ALIYUN::OOS::ApplicationConnectionBind",
  "Properties": {
    "ConnectionIds": List,
    "ApplicationName": String,
    "ApplicationGroupName": String,
    "Parameters": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

ConnectionIds

List

要绑定的连接ID列表

最大长度:100

ApplicationGroupName

String

应用组的名称。

ApplicationName

String

应用的名称。

Parameters

List

应用连接绑定的参数。

更多信息,请参考Parameters属性

Parameters语法

"Parameters":[{
   "ParameterKey": String,
   "ConnectionId": String,
   "ParameterValue": String
}]

Parameters属性

属性名称

类型

必须

允许更新

描述

约束

ConnectionId

String

连接ID

ParameterKey

String

参数键

ParameterValue

String

参数值

返回值

Fn::GetAtt

示例

场景 1 :为OOS应用绑定单个连接,实现资源的统一纳管。

ROSTemplateFormatVersion: '2015-09-01'
Description:
  zh-cn: 为OOS应用绑定单个连接,实现资源的统一纳管。
  en: Bind a single connection to an OOS application for unified resource management.
Parameters:
  ApplicationName:
    Type: String
    Label:
      zh-cn: 应用名称
      en: Application Name
    Description:
      zh-cn: 需要绑定连接的OOS应用名称。
      en: The name of the OOS application to bindconnections to.
  ConnectionId:
    Type: String
    Label:
      zh-cn: 连接ID
      en: Connection ID
    Description:
      zh-cn: 要绑定到应用的连接ID。
      en: The connection ID to bind to the application.
Resources:
  ApplicationConnectionBind:
    Type: ALIYUN::OOS::ApplicationConnectionBind
    Properties:
      ApplicationName:
        Ref: ApplicationName
      ConnectionIds:
        - Ref: ConnectionId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": {
    "zh-cn": "为OOS应用绑定单个连接,实现资源的统一纳管。",
    "en": "Bind a single connection to an OOS application for unified resource management."
  },
  "Parameters": {
    "ApplicationName": {
      "Type": "String",
      "Label": {
        "zh-cn": "应用名称",
        "en": "Application Name"
      },
      "Description": {
        "zh-cn": "需要绑定连接的OOS应用名称。",
        "en": "The name of the OOS application to bind connections to."
      }
    },
    "ConnectionId": {
      "Type": "String",
      "Label": {
        "zh-cn": "连接ID",
        "en": "Connection ID"
      },
      "Description": {
        "zh-cn": "要绑定到应用的连接ID。",
        "en": "The connection ID to bind to the application."
      }
    }
  },
  "Resources": {
    "ApplicationConnectionBind": {
      "Type": "ALIYUN::OOS::ApplicationConnectionBind",
      "Properties": {
        "ApplicationName": {
          "Ref": "ApplicationName"
        },
        "ConnectionIds": [
          {
            "Ref": "ConnectionId"
          }
        ]
      }
    }
  }
}

场景 2 :为OOS应用批量绑定多个连接,统一管理多组资源。

ROSTemplateFormatVersion: '2015-09-01'
Description:
  zh-cn: 为OOS应用批量绑定多个连接,统一管理多组资源。
  en: Batch bind multiple connections to an OOS application for centralized management.
Parameters:
  ApplicationName:
    Type: String
    Label:
      zh-cn: 应用名称
      en: Application Name
    Description:
      zh-cn: 需要绑定连接的OOS应用名称。
      en: The name of the OOS application to bind connections to.
  ConnectionIds:
    Type: Json
    Label:
      zh-cn: 连接ID列表
      en: Connection ID List
    Description:
      zh-cn: >-
        要绑定到应用的连接ID列表,
        最多支持100个连接。
      en: >-
        List of connection IDs to bind to the application,
        up to 100 connections.
    MaxLength: 100
    AssociationProperty: List[Parameter]
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: true
        Label:
          zh-cn: 连接ID
          en: Connection ID
Resources:
  ApplicationConnectionBind:
    Type: ALIYUN::OOS::ApplicationConnectionBind
    Properties:
      ApplicationName:
        Ref: ApplicationName
      ConnectionIds:
        Ref: ConnectionIds
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": {
    "zh-cn": "为OOS应用批量绑定多个连接,统一管理多组资源。",
    "en": "Batch bind multiple connections to an OOS application for centralized management."
  },
  "Parameters": {
    "ApplicationName": {
      "Type": "String",
      "Label": {
        "zh-cn": "应用名称",
        "en": "Application Name"
      },
      "Description": {
        "zh-cn": "需要绑定连接的OOS应用名称。",
        "en": "The name of the OOS application to bind connections to."
      }
    },
    "ConnectionIds": {
      "Type": "Json",
      "Label": {
        "zh-cn": "连接ID列表",
        "en": "Connection ID List"
      },
      "Description": {
        "zh-cn": "要绑定到应用的连接ID列表,最多支持100个连接。",
        "en": "List of connection IDs to bind to the application, up to 100 connections."
      },
      "MaxLength": 100,
      "AssociationProperty": "List[Parameter]",
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": true,
          "Label": {
            "zh-cn": "连接ID",
            "en": "Connection ID"
          }
        }
      }
    }
  },
  "Resources": {
    "ApplicationConnectionBind": {
      "Type": "ALIYUN::OOS::ApplicationConnectionBind",
      "Properties": {
        "ApplicationName": {
          "Ref": "ApplicationName"
        },
        "ConnectionIds": {
          "Ref": "ConnectionIds"
        }
      }
    }
  }
}

场景 3 :为OOS应用分组绑定连接,实现应用内资源的精细化分组管理。

ROSTemplateFormatVersion: '2015-09-01'
Description:
  zh-cn: 为OOS应用分组绑定连接,实现应用内资源的精细化分组管理。
  en: Bind connections to an OOS application group for fine-grained management.
Parameters:
  ApplicationName:
    Type: String
    Label:
      zh-cn: 应用名称
      en: Application Name
    Description:
      zh-cn: OOS应用的名称。
      en: The name of the OOS application.
  ApplicationGroupName:
    Type: String
    Label:
      zh-cn: 应用分组名称
      en: Application Group Name
    Description:
      zh-cn: >-
        OOS应用下的分组名称,
        用于对连接进行精细化分类管理。
      en: >-
        The application group name under the OOS application
        for fine-grained connection management.
  ConnectionIds:
    Type: Json
    Label:
      zh-cn: 连接ID列表
      en: Connection ID List
    Description:
      zh-cn: >-
        要绑定到应用分组的连接ID列表,
        最多支持100个连接。
      en: >-
        List of connection IDs to bind to the application group,
        up to 100 connections.
    MaxLength: 100
    AssociationProperty: List[Parameter]
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Required: true
        Label:
          zh-cn: 连接ID
          en: Connection ID
Resources:
  ApplicationConnectionBind:
    Type: ALIYUN::OOS::ApplicationConnectionBind
    Properties:
      ApplicationName:
        Ref: ApplicationName
      ApplicationGroupName:
        Ref: ApplicationGroupName
      ConnectionIds:
        Ref: ConnectionIds
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Description": {
    "zh-cn": "为OOS应用分组绑定连接,实现应用内资源的精细化分组管理。",
    "en": "Bind connections to an OOS application group for fine-grained management."
  },
  "Parameters": {
    "ApplicationName": {
      "Type": "String",
      "Label": {
        "zh-cn": "应用名称",
        "en": "Application Name"
      },
      "Description": {
        "zh-cn": "OOS应用的名称。",
        "en": "The name of the OOS application."
      }
    },
    "ApplicationGroupName": {
      "Type": "String",
      "Label": {
        "zh-cn": "应用分组名称",
        "en": "Application Group Name"
      },
      "Description": {
        "zh-cn": "OOS应用下的分组名称,用于对连接进行精细化分类管理。",
        "en": "The application group name under the OOS application for fine-grained connection management."
      }
    },
    "ConnectionIds": {
      "Type": "Json",
      "Label": {
        "zh-cn": "连接ID列表",
        "en": "Connection ID List"
      },
      "Description": {
        "zh-cn": "要绑定到应用分组的连接ID列表,最多支持100个连接。",
        "en": "List of connection IDs to bind to the application group, up to 100 connections."
      },
      "MaxLength": 100,
      "AssociationProperty": "List[Parameter]",
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Required": true,
          "Label": {
            "zh-cn": "连接ID",
            "en": "Connection ID"
          }
        }
      }
    }
  },
  "Resources": {
    "ApplicationConnectionBind": {
      "Type": "ALIYUN::OOS::ApplicationConnectionBind",
      "Properties": {
        "ApplicationName": {
          "Ref": "ApplicationName"
        },
        "ApplicationGroupName": {
          "Ref": "ApplicationGroupName"
        },
        "ConnectionIds": {
          "Ref": "ConnectionIds"
        }
      }
    }
  }
}