閱讀352 返回首頁    go 英雄聯盟


ALIYUN::ECS::SecurityGroup__資源列表_資源編排-阿裏雲

ALIYUN::ECS::SecurityGroup 類型可用於創建安全組。

語法

{
   "Type" : "ALIYUN::ECS::EIP",
   "Properties" : {
         "SecurityGroupName" : String,
      "Description" : String,
      "VpcId": String,
      "SecurityGroupEgress": String,
      "SecurityGroupIngress": String
   }
}

屬性

SecurityGroupName

安全組名稱,不填則為空,默認值為空,[2, 128] 英文或中文字符,必須以大小字母或中文開頭,可包含數字,”.”,”_”或”-”,磁盤名稱會展示在控製台。不能以 https:// 和 https:// 開頭。

Description

安全組描述信息,[2, 256] 個字符。不能以 https:// 和 https:// 開頭。

VpcId

安全組所在的專有網絡

SecurityGroupEgress

安全組 Out 方向的訪問規則

SecurityGroupIngress

安全組 In 方向的訪問規則

返回值

Fn::GetAtt

  • SecurityGroupId 安全組 ID

示例

{
  "ROSTemplateFormatVersion" : "2015-09-01",
  "Resources" : {
    "SG": {
      "Type": "ALIYUN::ECS::SecurityGroup",
      "Properties": {
        "SecurityGroupName": "ttt0910",
        "Description": "this is created by heat",
      },
      "Outputs": {
        "SecurityGroupId": {
             "Value" : {"get_attr": ["SG","SecurityGroupId"]}
        }
      }
    }
  }
}

最後更新:2016-11-23 16:04:02

  上一篇:go ALIYUN::ECS::Region__資源列表_資源編排-阿裏雲
  下一篇:go ALIYUN::ECS::SecurityGroupIngress__資源列表_資源編排-阿裏雲