DATASOURCE::NAS::AccessGroup

DATASOURCE::NAS::AccessGroup类型用于获取单个权限组信息。

语法

{
  "Type": "DATASOURCE::NAS::AccessGroup",
  "Properties": {
    "AccessGroupName": String,
    "RefreshOptions": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

AccessGroupName

String

权限组名称。

RefreshOptions

String

当资源栈更新时,数据源资源的刷新策略。

有效值:

  • Never(默认值):更新堆栈时,从不刷新数据源资源。

  • Always:更新堆栈时,始终刷新数据源资源。

返回值

Fn::GetAtt

  • RuleCount:此权限组中包含的权限组规则数量。

  • AccessGroupType:权限组类型。

  • Description:权限组描述信息。

  • AccessGroupName:权限组名称。

  • MountTargetCount:应用此权限组的挂载点数量。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      AccessGroupName:
        Type: String
        Description:
          en: The name of the permission group.
        Required: true
    Resources:
      ExtensionDataSource:
        Type: DATASOURCE::NAS::AccessGroup
        Properties:
          AccessGroupName:
            Ref: AccessGroupName
    Outputs:
      RuleCount:
        Description: The number of permission group rules contained in this permission group.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - RuleCount
      AccessGroupType:
        Description: Permission group types, including VPC and Classic.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - AccessGroupType
      Description:
        Description: Permission group description information.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - Description
      AccessGroupName:
        Description: The name of the permission group.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - AccessGroupName
      MountTargetCount:
        Description: The number of Mount points to which this permission group is applied.
        Value:
          Fn::GetAtt:
            - ExtensionDataSource
            - MountTargetCount
    
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "AccessGroupName": {
          "Type": "String",
          "Description": {
            "en": "The name of the permission group."
          },
          "Required": true
        }
      },
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::NAS::AccessGroup",
          "Properties": {
            "AccessGroupName": {
              "Ref": "AccessGroupName"
            }
          }
        }
      },
      "Outputs": {
        "RuleCount": {
          "Description": "The number of permission group rules contained in this permission group.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "RuleCount"
            ]
          }
        },
        "AccessGroupType": {
          "Description": "Permission group types, including VPC and Classic.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AccessGroupType"
            ]
          }
        },
        "Description": {
          "Description": "Permission group description information.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "Description"
            ]
          }
        },
        "AccessGroupName": {
          "Description": "The name of the permission group.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "AccessGroupName"
            ]
          }
        },
        "MountTargetCount": {
          "Description": "The number of Mount points to which this permission group is applied.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionDataSource",
              "MountTargetCount"
            ]
          }
        }
      }
    }