Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::MaxCompute::Project

Última atualização: Jun 27, 2026

Cria um projeto do MaxCompute.

Sintaxe

{
  "Type": "ALIYUN::MaxCompute::Project",
  "Properties": {
    "Comment": String,
    "DefaultQuota": String,
    "ChargeType": String,
    "IpWhiteList": Map,
    "Properties": Map,
    "Name": String,
    "SupportSchemaLevels": Boolean
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Comment

String

Não

Não

Descrição do projeto.

Nenhuma.

DefaultQuota

String

Não

Não

Cota de computação padrão.

Nenhuma.

ChargeType

String

Não

Não

Método de faturamento.

Valores válidos:

  • Prepaid

  • Postpaid

IpWhiteList

Map

Não

Sim

Configuração da lista de permissões de endereços IP.

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

Properties

Map

Não

Não

Propriedades do projeto.

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

Name

String

Sim

Não

Nome do projeto.

Deve começar com letra minúscula e conter apenas letras minúsculas, dígitos e sublinhados (_). Comprimento: 3 a 28 caracteres.

SupportSchemaLevels

Boolean

Não

Não

Indica se os níveis de schema estão ativados.

Valores válidos:

  • true

  • fasle (padrão)

Sintaxe de IpWhiteList

"IpWhiteList": {
  "VpcIpList": String,
  "IpList": String
}

Propriedades de IpWhiteList

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

VpcIpList

String

Não

Não

Lista de permissões de endereços IP da VPC.

Nenhuma.

IpList

String

Não

Não

Lista de permissões de endereços IP da rede clássica.

Nenhuma.

Sintaxe de Properties

"Properties": {
  "SqlMeteringMax": Integer,
  "TypeSystem": String,
  "RetentionDays": Integer,
  "Encryption": Map,
  "AllowFullScan": Boolean,
  "EnableDecimal2": Boolean
}

Propriedades de Properties

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

SqlMeteringMax

Integer

Não

Não

Limite máximo de recursos que uma instrução SQL pode consumir.

Nenhuma.

TypeSystem

String

Não

Não

Edição do tipo de dados.

Valores válidos:

  • 1: Edição de tipos de dados do MaxCompute V1.0

  • 2: Edição de tipos de dados do MaxCompute V2.0

  • hive: Edição de tipos de dados compatível com Hive

RetentionDays

Integer

Não

Não

Período máximo de retenção de dados de backup, em dias.

Nenhuma.

Encryption

Map

Não

Não

Configuração de criptografia de armazenamento.

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

AllowFullScan

Boolean

Não

Não

Indica se varreduras completas de tabela são permitidas.

Valores válidos:

  • true

  • false

EnableDecimal2

Boolean

Não

Não

Indica se o tipo de dados DECIMAL está ativado na edição de tipos de dados do MaxCompute V2.0.

Valores válidos:

  • true

  • false

Sintaxe de Encryption

"Encryption": {
  "Enable": Boolean,
  "Algorithm": String,
  "Key": String
}

Propriedades de Encryption

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

Enable

Boolean

Não

Não

Indica se a criptografia de armazenamento está ative.

Nenhuma.

Algorithm

String

Não

Não

Nome do algoritmo de criptografia.

Exemplo: SHA1.

Key

String

Não

Não

Chave do algoritmo de criptografia.

Nenhuma.

Valores de retorno

Fn::GetAtt

Name: nome do projeto.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ChargeType:
    AllowedValues:
    - PayAsYouGo
    - Subscription
    Description:
      en: Quota payment type, support PayAsYouGo, Subscription.
    Required: false
    Type: String
  Comment:
    Description:
      en: The comments of project.
    Required: false
    Type: String
  DefaultQuota:
    Description:
      en: Default Computing Resource Group.
    Required: false
    Type: String
  IpWhiteList:
    AssociationPropertyMetadata:
      Parameters:
        IpList:
          Description:
            en: Classic network IP white list. Separate multiple items with commas.
          Required: false
          Type: String
        VpcIpList:
          Description:
            en: VPC network whitelist. Separate multiple items with commas.
          Required: false
          Type: String
    Description:
      en: IP whitelist.
    Required: false
    Type: Json
  Name:
    AllowedPattern: ^[a-z][a-z0-9_]{2,27}$
    Description:
      en: 'The name of the project.

        It must start with a lower-case letter and contain lower-case letters, digits,
        and underscores (_). The value must contain 3 to 28 characters'
    Required: true
    Type: String
  Properties:
    AssociationPropertyMetadata:
      Parameters:
        AllowFullScan:
          Description:
            en: Whether to allow full table scan.
          Required: false
          Type: Boolean
        EnableDecimal2:
          Description:
            en: Whether to turn on Decimal2.0.
          Required: false
          Type: Boolean
        Encryption:
          AssociationPropertyMetadata:
            Parameters:
              Algorithm:
                Description:
                  en: Encryption Algorithm.
                Required: false
                Type: String
              Enable:
                Description:
                  en: Whether to open encryption.
                Required: false
                Type: Boolean
              Key:
                Description:
                  en: Encryption algorithm key.
                Required: false
                Type: String
          Description:
            en: Whether encryption is turned on.
          Required: false
          Type: Json
        RetentionDays:
          Description:
            en: Job default retention time.
          Required: false
          Type: Number
        SqlMeteringMax:
          Description:
            en: SQL charge limit.
          Required: false
          Type: Number
        TypeSystem:
          AllowedValues:
          - '1'
          - '2'
          - hive
          Description:
            en: Type system.
          Required: false
          Type: String
    Description:
      en: Project base attributes.
    Required: false
    Type: Json
Resources:
  Project:
    Properties:
      ChargeType:
        Ref: ChargeType
      Comment:
        Ref: Comment
      DefaultQuota:
        Ref: DefaultQuota
      IpWhiteList:
        Ref: IpWhiteList
      Name:
        Ref: Name
      Properties:
        Ref: Properties
    Type: ALIYUN::MaxCompute::Project
Outputs:
  Name:
    Description: The name of the project.
    Value:
      Fn::GetAtt:
      - Project
      - Name
                        
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Comment": {
      "Type": "String",
      "Description": {
        "en": "The comments of project."
      },
      "Required": false
    },
    "DefaultQuota": {
      "Type": "String",
      "Description": {
        "en": "Default Computing Resource Group."
      },
      "Required": false
    },
    "ChargeType": {
      "Type": "String",
      "Description": {
        "en": "Quota payment type, support PayAsYouGo, Subscription."
      },
      "AllowedValues": [
        "PayAsYouGo",
        "Subscription"
      ],
      "Required": false
    },
    "IpWhiteList": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "VpcIpList": {
            "Type": "String",
            "Description": {
              "en": "VPC network whitelist. Separate multiple items with commas."
            },
            "Required": false
          },
          "IpList": {
            "Type": "String",
            "Description": {
              "en": "Classic network IP white list. Separate multiple items with commas."
            },
            "Required": false
          }
        }
      },
      "Type": "Json",
      "Description": {
        "en": "IP whitelist."
      },
      "Required": false
    },
    "Properties": {
      "AssociationPropertyMetadata": {
        "Parameters": {
          "SqlMeteringMax": {
            "Type": "Number",
            "Description": {
              "en": "SQL charge limit."
            },
            "Required": false
          },
          "TypeSystem": {
            "Type": "String",
            "Description": {
              "en": "Type system."
            },
            "AllowedValues": [
              "1",
              "2",
              "hive"
            ],
            "Required": false
          },
          "RetentionDays": {
            "Type": "Number",
            "Description": {
              "en": "Job default retention time."
            },
            "Required": false
          },
          "Encryption": {
            "AssociationPropertyMetadata": {
              "Parameters": {
                "Enable": {
                  "Type": "Boolean",
                  "Description": {
                    "en": "Whether to open encryption."
                  },
                  "Required": false
                },
                "Algorithm": {
                  "Type": "String",
                  "Description": {
                    "en": "Encryption Algorithm."
                  },
                  "Required": false
                },
                "Key": {
                  "Type": "String",
                  "Description": {
                    "en": "Encryption algorithm key."
                  },
                  "Required": false
                }
              }
            },
            "Type": "Json",
            "Description": {
              "en": "Whether encryption is turned on."
            },
            "Required": false
          },
          "AllowFullScan": {
            "Type": "Boolean",
            "Description": {
              "en": "Whether to allow full table scan."
            },
            "Required": false
          },
          "EnableDecimal2": {
            "Type": "Boolean",
            "Description": {
              "en": "Whether to turn on Decimal2.0."
            },
            "Required": false
          }
        }
      },
      "Type": "Json",
      "Description": {
        "en": "Project base attributes."
      },
      "Required": false
    },
    "Name": {
      "Type": "String",
      "Description": {
        "en": "The name of the project.\nIt must start with a lower-case letter and contain lower-case letters, digits, and underscores (_). The value must contain 3 to 28 characters"
      },
      "AllowedPattern": "^[a-z][a-z0-9_]{2,27}$",
      "Required": true
    }
  },
  "Resources": {
    "Project": {
      "Type": "ALIYUN::MaxCompute::Project",
      "Properties": {
        "Comment": {
          "Ref": "Comment"
        },
        "DefaultQuota": {
          "Ref": "DefaultQuota"
        },
        "ChargeType": {
          "Ref": "ChargeType"
        },
        "IpWhiteList": {
          "Ref": "IpWhiteList"
        },
        "Properties": {
          "Ref": "Properties"
        },
        "Name": {
          "Ref": "Name"
        }
      }
    }
  },
  "Outputs": {
    "Name": {
      "Description": "The name of the project.",
      "Value": {
        "Fn::GetAtt": [
          "Project",
          "Name"
        ]
      }
    }
  }
}