Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CloudSSO::Group

Última atualização: Jun 27, 2026

Cria um grupo no CloudSSO.

Sintaxe

{
  "Type": "ALIYUN::CloudSSO::Group",
  "Properties": {
    "GroupName": String,
    "DirectoryId": String,
    "Description": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

DirectoryId

String

Sim

Não

ID do diretório.

Nenhuma.

GroupName

String

Sim

Sim

Nome do grupo.

O nome pode conter letras, dígitos, sublinhados (_), hifens (-) e pontos (.).

Deve ter no máximo 128 caracteres.

Description

String

Não

Sim

Descrição do grupo.

Deve ter no máximo 1.024 caracteres.

Valores de retorno

Fn::GetAtt

GroupId: ID do grupo.

Exemplos

Formato 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
                        

Formato 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"
        ]
      }
    }
  }
}