ALIYUN::DFS::AccessGroup类型用于创建权限组信息。

语法

{
  "Type": "ALIYUN::DFS::AccessGroup",
  "Properties": {
    "Description": String,
    "NetworkType": String,
    "AccessGroupName": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
Description String 权限组描述。
NetworkType String 权限组类型。 取值:
  • VPC:专有网络。
  • Classic:经典网络。
AccessGroupName String 权限组名称。

返回值

Fn::GetAtt

AccessGroupId:权限组ID。

示例

  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AccessGroupName": {
          "Type": "String",
          "Description": "The Name of Access Group. The naming rules are as follows:\nThe value contains 6 to 100 characters.\nGlobally unique and cannot be an empty string.",
          "MinLength": 6,
          "MaxLength": 100
        }
      },
      "Resources": {
        "AccessGroup": {
          "Type": "ALIYUN::DFS::AccessGroup",
          "Properties": {
            "AccessGroupName": {
              "Ref": "AccessGroupName"
            }
          }
        }
      },
      "Outputs": {
        "AccessGroupId": {
          "Description": "The ID of the access_group.",
          "Value": {
            "Fn::GetAtt": [
              "AccessGroup",
              "AccessGroupId"
            ]
          }
        }
      }
    }
  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AccessGroupName:
        Type: String
        Description: |-
          The Name of Access Group. The naming rules are as follows:
          The value contains 6 to 100 characters.
          Globally unique and cannot be an empty string.
        MinLength: 6
        MaxLength: 100
    Resources:
      AccessGroup:
        Type: ALIYUN::DFS::AccessGroup
        Properties:
          AccessGroupName:
            Ref: AccessGroupName
    Outputs:
      AccessGroupId:
        Description: The ID of the access_group.
        Value:
          Fn::GetAtt:
            - AccessGroup
            - AccessGroupId