阅读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__资源列表_资源编排-阿里云