Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ResourceManager::Folder

Última atualização: Jun 27, 2026

O recurso ALIYUN::ResourceManager::Folder cria uma pasta.

Sintaxe

{
  "Type": "ALIYUN::ResourceManager::Folder",
  "Properties": {
    "FolderName": String,
    "ParentFolderId": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

FolderName

String

Sim

Sim

Nome da pasta.

O nome deve ter de 1 a 24 caracteres e pode conter letras, dígitos, sublinhados (_), pontos (.) e hifens (-).

ParentFolderId

String

Não

Não

ID da pasta pai.

Nenhuma

Parâmetros de resposta

Fn::GetAtt

  • FolderId: ID da pasta.

  • FolderName: nome da pasta.

  • ParentFolderId: ID da pasta pai.

Exemplos

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "FolderName": {
      "Type": "String",
      "Description": "The name of the folder"
    },
    "ParentFolderId": {
      "Type": "String",
      "Description": "The ID of the parent folder. If not set, the system default value will be used"
    }
  },
  "Resources": {
    "ResourceManagerFolder": {
      "Type": "ALIYUN::ResourceManager::Folder",
      "Properties": {
        "FolderName": {
          "Ref": "FolderName"
        },
        "ParentFolderId": {
          "Ref": "ParentFolderId"
        }
      }
    }
  },
  "Outputs": {
    "FolderId": {
      "Description": "The ID of the folder",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerFolder",
          "FolderId"
        ]
      }
    },
    "FolderName": {
      "Description": "The name of the folder",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerFolder",
          "FolderName"
        ]
      }
    },
    "ParentFolderId": {
      "Description": "The ID of the parent folder. If not set, the system default value will be used",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerFolder",
          "ParentFolderId"
        ]
      }
    }
  }
}

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
 FolderName:
  Type: String
  Description: The name of the folder
 ParentFolderId:
  Type: String
  Description: >-
   The ID of the parent folder. If not set, the system default value will be
   used
Resources:
 ResourceManagerFolder:
  Type: 'ALIYUN::ResourceManager::Folder'
  Properties:
   FolderName:
    Ref: FolderName
   ParentFolderId:
    Ref: ParentFolderId
Outputs:
 FolderId:
  Description: The ID of the folder
  Value:
   'Fn::GetAtt':
    - ResourceManagerFolder
    - FolderId
 FolderName:
  Description: The name of the folder
  Value:
   'Fn::GetAtt':
    - ResourceManagerFolder
    - FolderName
 ParentFolderId:
  Description: >-
   The ID of the parent folder. If not set, the system default value will be
   used
  Value:
   'Fn::GetAtt':
    - ResourceManagerFolder
    - ParentFolderId