Todos os produtos
Search
Central de documentação

:ALIYUN::CDT::ResourcePackage

Última atualização: Jun 27, 2026

O tipo ALIYUN::CDT::ResourcePackage cria um plano de recursos.

Sintaxe

{
  "Type": "ALIYUN::CDT::ResourcePackage",
  "Properties": {
    "Capacity": Integer,
    "Pack": String,
    "Region": String,
    "ISP": String
  }
}

Propriedades

Nome da propriedade

Tipo

Obrigatório

Atualize permitida

Descrição

Restrições

Capacity

Integer

Sim

Não

Capacidade do plano de recursos CDT.

Valores válidos: 50 a 102400. Unidade: GB.

Pack

String

Sim

Não

Informações do pacote do plano de recursos CDT.

Nenhuma

Region

String

Sim

Não

Região do plano de recursos.

Valores válidos:

  • chinese-mainland: China continental

  • asia-pacific: Ásia-Pacífico

  • europe: Europa

  • north-america: América do Norte

  • south-america: América do Sul

  • middleeast: Oriente Médio

  • finance-cloud: Finance Cloud

ISP

String

Não

Não

Provedor de serviços de internet do plano de recursos CDT.

Nenhuma

Valores de retorno

Fn::GetAtt

  • InstanceId: ID do plano de recursos CDT.

  • OrderId: ID do pedido.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  Capacity:
    Type: Number
    Description:
      en: The capacity of the specified CDT resource package.
    Required: true
    MinValue: 50
    MaxValue: 102400
  Region:
    Type: String
    Description:
      en: The region of the specified CDT resource package.
    AllowedValues:
      - chinese-mainland
      - asia-pacific
      - europe
      - north-america
      - south-america
      - middleeast
      - finance-cloud
    Required: true
  Pack:
    Type: String
    Description:
      en: The pack of the specified CDT resource package. It can be obtained from the `components` field in the payload of the `getPrice` network request on the CDT common buy page.
    Required: true
Resources:
  ResourcePackage:
    Type: ALIYUN::CDT::ResourcePackage
    Properties:
      Capacity:
        Ref: Capacity
      Region:
        Ref: Region
      Pack:
        Ref: Pack
Outputs:
  InstanceId:
    Description: The ID of the specified instance.
    Value:
      Fn::GetAtt:
        - ResourcePackage
        - InstanceId
  OrderId:
    Description: The ID of the specified order.
    Value:
      Fn::GetAtt:
        - ResourcePackage
        - OrderId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Capacity": {
      "Type": "Number",
      "Description": {
        "en": "The capacity of the specified CDT resource package."
      },
      "Required": true,
      "MinValue": 50,
      "MaxValue": 102400
    },
    "Region": {
      "Type": "String",
      "Description": {
        "en": "The region of the specified CDT resource package."
      },
      "AllowedValues": [
        "chinese-mainland",
        "asia-pacific",
        "europe",
        "north-america",
        "south-america",
        "middleeast",
        "finance-cloud"
      ],
      "Required": true
    },
    "Pack": {
      "Type": "String",
      "Description": {
        "en": "The pack of the specified CDT resource package. It can be obtained from the `components` field in the payload of the `getPrice` network request on the CDT common buy page."
      },
      "Required": true
    }
  },
  "Resources": {
    "ResourcePackage": {
      "Type": "ALIYUN::CDT::ResourcePackage",
      "Properties": {
        "Capacity": {
          "Ref": "Capacity"
        },
        "Region": {
          "Ref": "Region"
        },
        "Pack": {
          "Ref": "Pack"
        }
      }
    }
  },
  "Outputs": {
    "InstanceId": {
      "Description": "The ID of the specified instance.",
      "Value": {
        "Fn::GetAtt": [
          "ResourcePackage",
          "InstanceId"
        ]
      }
    },
    "OrderId": {
      "Description": "The ID of the specified order.",
      "Value": {
        "Fn::GetAtt": [
          "ResourcePackage",
          "OrderId"
        ]
      }
    }
  }
}