ALIYUN::SAG::ACL

ALIYUN::SAG::ACL类型用于创建访问控制。

语法

{
  "Type": "ALIYUN::SAG::ACL",
  "Properties": {
    "Name": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

Name

String

访问控制名称。

长度为2-128个字符,必须以字母或中文开头,可包含数字,点号(.),下划线(_)和短横线(-),但不能以http://或https://开头。

返回值

Fn::GetAtt

AclId:访问控制 ID。

示例

YAML格式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Name:
    Type: String
    Description: |-
      Access control name.
      The length is 2-128 characters. It must start with a letter or Chinese. It can contain numbers, periods (.), underscores (_) and dashes (-), but cannot start with http:// or https://.
Resources:
  ACL:
    Type: ALIYUN::SAG::ACL
    Properties:
      Name:
        Ref: Name
Outputs:
  AclId:
    Description: Access control set ID.
    Value:
      Fn::GetAtt:
        - ACL
        - AclId

JSON格式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Name": {
      "Type": "String",
      "Description": "Access control name.\nThe length is 2-128 characters. It must start with a letter or Chinese. It can contain numbers, periods (.), underscores (_) and dashes (-), but cannot start with http:// or https://."
    }
  },
  "Resources": {
    "ACL": {
      "Type": "ALIYUN::SAG::ACL",
      "Properties": {
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "AclId": {
      "Description": "Access control set ID.",
      "Value": {
        "Fn::GetAtt": [
          "ACL",
          "AclId"
        ]
      }
    }
  }
}