Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::Config::Aggregator

Última atualização: Jun 27, 2026

Cria um grupo de contas no Cloud Config.

Sintaxe

{
  "Type": "ALIYUN::Config::Aggregator",
  "Properties": {
    "AggregatorName": String,
    "Description": String,
    "AggregatorAccounts": List,
    "AggregatorType": String,
    "FolderId": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

AggregatorName

String

Sim

Sim

Nome do grupo de contas.

Nenhuma.

Description

String

Sim

Sim

Descrição do grupo de contas.

Nenhuma.

AggregatorAccounts

List

Não

Sim

Informações sobre todos os membros do grupo de contas.

Para mais informações, consulte Propriedades de AggregatorAccounts.

Exemplo:

[{
	"accountId": 171322098523****,
	"accountType":"ResourceDirectory",
                "accountName":"Alice"
}, {
	"accountId": 100532098349****,
	"accountType":"ResourceDirectory",
                "accountName":"Tom"
}]

AggregatorType

String

Não

Não

Tipo do grupo de contas.

Valores válidos:

  • RD: grupo de contas global

  • CUSTOM (padrão): grupo de contas personalizado

FolderId

String

Não

Não

ID da pasta associada ao grupo de contas.

Nenhuma.

Sintaxe de AggregatorAccounts

"AggregatorAccounts": [
  {
    "AccountId": Number,
    "AccountType": String,
    "AccountName": String
  }
]

Propriedades de AggregatorAccounts

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

AccountId

Number

Sim

Sim

ID da conta do membro.

Nenhuma.

AccountName

String

Sim

Sim

Nome da conta do membro.

Nenhuma.

AccountType

String

Não

Sim

Tipo da conta do membro.

Defina o valor como ResourceDirectory.

Valores de retorno

Fn::GetAtt

AggregatorId: ID do grupo de contas.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  AggregatorAccounts:
    AssociationProperty: List[Parameters]
    AssociationPropertyMetadata:
      Parameters:
        AccountId:
          Description:
            en: The account id.
          Required: true
          Type: Number
        AccountName:
          Description:
            en: The account name.
          Required: true
          Type: String
        AccountType:
          AllowedValues:
          - ResourceDirectory
          Default: ResourceDirectory
          Description:
            en: 'The account type. Only support: ResourceDirectory'
          Required: false
          Type: String
    Description:
      en: The member account in aggregator.When the AggregatorType is RD, this parameter
        can be empty, which means that all accounts in the resource directory will
        be added to the global account group.
    Required: false
    Type: Json
  AggregatorName:
    Description:
      en: The name of aggregator.
    Required: true
    Type: String
  AggregatorType:
    AllowedValues:
    - RD
    - CUSTOM
    Description:
      en: 'Account group type. Value:

        RD: Global account group.CUSTOM: Custom account group (default value).'
    Required: false
    Type: String
  Description:
    AssociationProperty: TextArea
    Description:
      en: The description of aggregator.
    Required: true
    Type: String
Resources:
  Aggregator:
    Properties:
      AggregatorAccounts:
        Ref: AggregatorAccounts
      AggregatorName:
        Ref: AggregatorName
      AggregatorType:
        Ref: AggregatorType
      Description:
        Ref: Description
    Type: ALIYUN::Config::Aggregator
Outputs:
  AggregatorId:
    Description: 'The ID of the aggregator. '
    Value:
      Fn::GetAtt:
      - Aggregator
      - AggregatorId
                        

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "AggregatorName": {
      "Type": "String",
      "Description": {
        "en": "The name of aggregator."
      },
      "Required": true
    },
    "Description": {
      "AssociationProperty": "TextArea",
      "Type": "String",
      "Description": {
        "en": "The description of aggregator."
      },
      "Required": true
    },
    "AggregatorAccounts": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "AccountId": {
            "Type": "Number",
            "Description": {
              "en": "The account id."
            },
            "Required": true
          },
          "AccountType": {
            "Type": "String",
            "Description": {
              "en": "The account type. Only support: ResourceDirectory"
            },
            "AllowedValues": [
              "ResourceDirectory"
            ],
            "Required": false,
            "Default": "ResourceDirectory"
          },
          "AccountName": {
            "Type": "String",
            "Description": {
              "en": "The account name."
            },
            "Required": true
          }
        }
      },
      "AssociationProperty": "List[Parameters]",
      "Type": "Json",
      "Description": {
        "en": "The member account in aggregator.When the AggregatorType is RD, this parameter can be empty, which means that all accounts in the resource directory will be added to the global account group."
      },
      "Required": false
    },
    "AggregatorType": {
      "Type": "String",
      "Description": {
        "en": "Account group type. Value:\nRD: Global account group.CUSTOM: Custom account group (default value)."
      },
      "AllowedValues": [
        "RD",
        "CUSTOM"
      ],
      "Required": false
    }
  },
  "Resources": {
    "Aggregator": {
      "Type": "ALIYUN::Config::Aggregator",
      "Properties": {
        "AggregatorName": {
          "Ref": "AggregatorName"
        },
        "Description": {
          "Ref": "Description"
        },
        "AggregatorAccounts": {
          "Ref": "AggregatorAccounts"
        },
        "AggregatorType": {
          "Ref": "AggregatorType"
        }
      }
    }
  },
  "Outputs": {
    "AggregatorId": {
      "Description": "The ID of the aggregator. ",
      "Value": {
        "Fn::GetAtt": [
          "Aggregator",
          "AggregatorId"
        ]
      }
    }
  }
}