ALIYUN::CloudSSO::Group类型用于创建用户组。
语法
{
"Type": "ALIYUN::CloudSSO::Group",
"Properties": {
"GroupName": String,
"DirectoryId": String,
"Description": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
DirectoryId | String | 是 | 否 | 目录ID。 | 无 |
GroupName | String | 是 | 是 | 用户组的名称。 | 格式:包含英文字母、数字和特殊字符 长度:最大128个字符。 |
Description | String | 否 | 是 | 用户组的描述。 | 长度:最大1024个字符。 |
返回值
Fn::GetAtt
GroupId:用户组的ID。
示例
YAML
格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
AssociationProperty: TextArea
Description:
en: 'The description of the group.
The description can be up to 1,024 characters in length.'
MaxLength: 1024
Required: false
Type: String
DirectoryId:
Description:
en: The ID of the directory.
Required: true
Type: String
GroupName:
AllowedPattern: ^[a-zA-Z0-9._-]{1,128}$
Description:
en: 'The name of the group.
The name can contain letters, digits, underscores (_), hyphens (-), and periods
(.).
The name can be up to 128 characters in length.'
Required: true
Type: String
Resources:
Group:
Properties:
Description:
Ref: Description
DirectoryId:
Ref: DirectoryId
GroupName:
Ref: GroupName
Type: ALIYUN::CloudSSO::Group
Outputs:
GroupId:
Description: The ID of the group.
Value:
Fn::GetAtt:
- Group
- GroupId
JSON
格式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"GroupName": {
"Type": "String",
"Description": {
"en": "The name of the group.\nThe name can contain letters, digits, underscores (_), hyphens (-), and periods (.).\nThe name can be up to 128 characters in length."
},
"AllowedPattern": "^[a-zA-Z0-9._-]{1,128}$",
"Required": true
},
"DirectoryId": {
"Type": "String",
"Description": {
"en": "The ID of the directory."
},
"Required": true
},
"Description": {
"AssociationProperty": "TextArea",
"Type": "String",
"Description": {
"en": "The description of the group.\nThe description can be up to 1,024 characters in length."
},
"Required": false,
"MaxLength": 1024
}
},
"Resources": {
"Group": {
"Type": "ALIYUN::CloudSSO::Group",
"Properties": {
"GroupName": {
"Ref": "GroupName"
},
"DirectoryId": {
"Ref": "DirectoryId"
},
"Description": {
"Ref": "Description"
}
}
}
},
"Outputs": {
"GroupId": {
"Description": "The ID of the group.",
"Value": {
"Fn::GetAtt": [
"Group",
"GroupId"
]
}
}
}
}