Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::CloudSSO::Directory

Última atualização: Jun 27, 2026

Cria um diretório do CloudSSO.

Sintaxe

{
  "Type": "ALIYUN::CloudSSO::Directory",
  "Properties": {
    "DirectoryName": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

DirectoryName

String

Não

Sim

Nome do diretório. Este nome deve ser globalmente único.

O nome pode conter letras minúsculas, dígitos e hifens (-). Não é permitido iniciar ou terminar com hífen (-), nem conter dois hifens consecutivos. O prefixo d- também é proibido no início.

O comprimento deve estar entre 2 e 64 caracteres.

Nota

Caso você não especifique esta propriedade, o sistema gera um valor automaticamente.

Valores de retorno

Fn::GetAtt

DirectoryId: o ID do diretório.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  DirectoryName:
    Description:
      en: 'The name of the directory. The name must be globally unique.

        The name can contain lowercase letters, digits, or hyphens (-). The name cannot
        start or end with a hyphen (-) and cannot contain two consecutive hyphens
        (-). The name cannot start with d-.

        The name must be 2 to 64 characters in length.

        **Note**: If you do not specify this parameter, the value of this parameter
        is automatically generated by the system.'
    Required: false
    Type: String
Resources:
  Directory:
    Properties:
      DirectoryName:
        Ref: DirectoryName
    Type: ALIYUN::CloudSSO::Directory
Outputs:
  DirectoryId:
    Description: The ID of the directory.
    Value:
      Fn::GetAtt:
      - Directory
      - DirectoryId
                        

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "DirectoryName": {
      "Type": "String",
      "Description": {
        "en": "The name of the directory. The name must be globally unique.\nThe name can contain lowercase letters, digits, or hyphens (-). The name cannot start or end with a hyphen (-) and cannot contain two consecutive hyphens (-). The name cannot start with d-.\nThe name must be 2 to 64 characters in length.\n**Note**: If you do not specify this parameter, the value of this parameter is automatically generated by the system."
      },
      "Required": false
    }
  },
  "Resources": {
    "Directory": {
      "Type": "ALIYUN::CloudSSO::Directory",
      "Properties": {
        "DirectoryName": {
          "Ref": "DirectoryName"
        }
      }
    }
  },
  "Outputs": {
    "DirectoryId": {
      "Description": "The ID of the directory.",
      "Value": {
        "Fn::GetAtt": [
          "Directory",
          "DirectoryId"
        ]
      }
    }
  }
}