All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::DFS::AccessGroup

Last Updated:Aug 12, 2024

ALIYUN::DFS::AccessGroup is used to create a permission group.

Syntax

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

Properties

PropertyTypeRequiredEditableDescriptionConstraint
DescriptionStringNoYesThe description of the permission group. None.
NetworkTypeStringNoNoThe type of the permission group. Valid values:
  • VPC
  • Classic
AccessGroupNameStringNoYesThe name of the permission group. None.

Return values

Fn::GetAtt

AccessGroupId: the ID of the permission group.

Examples

  • JSON format

    {
      "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 format

    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