全部产品
Search
文档中心

资源编排:ALIYUN::DFS::AccessGroup

更新时间:Aug 12, 2024

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

语法

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

属性

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

返回值

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