Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::AMQP::Instance

Última atualização: Jun 27, 2026

Cria uma instância do ApsaraMQ for RabbitMQ.

Sintaxe

{
  "Type": "ALIYUN::AMQP::Instance",
  "Properties": {
    "MaxTps": Number,
    "MaxEipTps": Number,
    "SupportEip": String,
    "Period": Number,
    "StorageSize": Number,
    "PayType": String,
    "QueueCapacity": Number,
    "TracingStorageTime": Number,
    "InstanceName": String,
    "OrderNum": Number,
    "SupportTracing": String,
    "InstanceType": String,
    "PeriodUnit": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

InstanceType

String

Não

Não

Edição da instância.

Valores válidos:

  • professional: Professional Edition

  • enterprise: Enterprise Edition

  • vip: Enterprise Platinum Edition

MaxTps

Number

Não

Sim

TPS máximo para acesso à instância via VPC.

Valores válidos:

  • 1000

  • 1500

  • 2000

  • 2500

  • 3000

  • 4000

  • 5000

  • 8000

  • 10000

  • 15000

  • 20000

  • 25000

  • 30000

  • 40000

  • 50000

  • 100000

  • 200000

  • 300000

  • 500000

  • 800000

  • 1000000

QueueCapacity

Number

Não

Sim

Número máximo de filas na instância.

Valores válidos: 50 a 6000.

Nota

O valor deve ser múltiplo de 50. Caso contrário, o sistema arredonda para cima até o próximo múltiplo de 50.

Por exemplo, se você defina esta propriedade como 60, o sistema usará o valor 100.

StorageSize

Number

Não

Sim

Tamanho de armazenamento de mensagens.

Valores válidos:

  • Defina como 200 para instâncias Professional Edition ou Enterprise Edition.

  • Defina como m × 100 para instâncias Enterprise Platinum Edition, onde m varia de 7 a 28.

Unidade: GB.

InstanceName

String

Não

Sim

Nome da instância.

Nenhuma.

MaxEipTps

Number

Não

Sim

TPS máximo para acesso à instância pela Internet.

Valores válidos: 128 a 45000.

Nota

O valor deve ser múltiplo de 128. Caso contrário, o sistema arredonda para cima até o próximo múltiplo de 128.

Por exemplo, se você defina esta propriedade como 130, o sistema usará o valor 256.

OrderNum

Number

Não

Não

Quantidade de instâncias a crie.

Valores válidos: 1 a 9999.

PayType

String

Não

Não

Método de faturamento.

Defina como Subscription.

Period

Number

Não

Não

Unidade de duração da assinatura.

Valores válidos:

  • 1

  • 2

  • 3

  • 6

  • 12

  • 24

  • 36

Unidade: mês.

PeriodUnit

String

Não

Não

Ciclo de renovação automática.

Valores válidos:

  • Month

  • Year

SupportEip

String

Não

Sim

Indica se o acesso à Internet está ativado para a instância.

Valores válidos:

  • True

  • False

SupportTracing

String

Não

Sim

Indica se o recurso de rastreamento de mensagens está ativado.

Valores válidos:

  • True

  • False

TracingStorageTime

Number

Não

Sim

Período de retenção dos rastreamentos de mensagens.

Valores válidos:

  • 3

  • 5

  • 7

Unidade: dia.

Valores de retorno

Fn::GetAtt

InstanceId: ID da instância.

PrivateEndpoint: endpoint da VPC.

ClassicEndpoint: endpoint clássico.

PublicEndpoint: endpoint público.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  MaxTps:
    Type: Number
    Description: |
      If instance type is professional, the valid value is [1000, 1500, 2000, 2500, 3000, 4000, 5000].
      If instance type is enterprise, the valid value is [3000, 5000, 8000, 10000, 15000, 20000, 3000040000, 50000, 80000, 10000].
      If instance type is vip, the valid value is [8000, 15000, 25000, 40000, 50000, 100000, 200000, 300000, 500000, 800000, 1000000].
    AllowedValues:
      - 1000
      - 1500
      - 2000
      - 2500
      - 3000
      - 4000
      - 5000
      - 8000
      - 10000
      - 15000
      - 20000
      - 25000
      - 30000
      - 40000
      - 50000
      - 100000
      - 200000
      - 300000
      - 500000
      - 800000
      - 1000000
  StorageSize:
    Type: Number
    Description: |-
      The storage size. It is valid when instance_type is vip.
      If instance type is professional or enterprise, the valid value is 200.
      If instance type is vip, the valid value is [700, 2800] with the step size 100
    MinValue: 200
    MaxValue: 2800
  QueueCapacity:
    Type: Number
    Description: |-
      The queue capacity. If instance type is professional, the valid value is [50, 1000] with the step size 5.
      If instance type is enterprise, the valid value is [200, 6000] with the step size 100
      If instance type is vip, the valid value is [200, 80000] with the step size 100
    MinValue: 50
    MaxValue: 80000
  InstanceType:
    Type: String
    Description: 'The Instance Type. Valid values: professional, enterprise, vip.'
    AllowedValues:
      - professional
      - enterprise
      - vip
Resources:
  Instance:
    Type: ALIYUN::AMQP::Instance
    Properties:
      MaxTps:
        Ref: MaxTps
      StorageSize:
        Ref: StorageSize
      QueueCapacity:
        Ref: QueueCapacity
      InstanceType:
        Ref: InstanceType
Outputs:
  InstanceId:
    Description: The ID of the instance.
    Value:
      Fn::GetAtt:
        - Instance
        - InstanceId

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "MaxTps": {
      "Type": "Number",
      "Description": "If instance type is professional, the valid value is [1000, 1500, 2000, 2500, 3000, 4000, 5000].\nIf instance type is enterprise, the valid value is [3000, 5000, 8000, 10000, 15000, 20000, 3000040000, 50000, 80000, 10000].\nIf instance type is vip, the valid value is [8000, 15000, 25000, 40000, 50000, 100000, 200000, 300000, 500000, 800000, 1000000].\n",
      "AllowedValues": [
        1000,
        1500,
        2000,
        2500,
        3000,
        4000,
        5000,
        8000,
        10000,
        15000,
        20000,
        25000,
        30000,
        40000,
        50000,
        100000,
        200000,
        300000,
        500000,
        800000,
        1000000
      ]
    },
    "StorageSize": {
      "Type": "Number",
      "Description": "The storage size. It is valid when instance_type is vip.\nIf instance type is professional or enterprise, the valid value is 200.\nIf instance type is vip, the valid value is [700, 2800] with the step size 100",
      "MinValue": 200,
      "MaxValue": 2800
    },
    "QueueCapacity": {
      "Type": "Number",
      "Description": "The queue capacity. If instance type is professional, the valid value is [50, 1000] with the step size 5.\nIf instance type is enterprise, the valid value is [200, 6000] with the step size 100\nIf instance type is vip, the valid value is [200, 80000] with the step size 100",
      "MinValue": 50,
      "MaxValue": 80000
    },
    "InstanceType": {
      "Type": "String",
      "Description": "The Instance Type. Valid values: professional, enterprise, vip.",
      "AllowedValues": [
        "professional",
        "enterprise",
        "vip"
      ]
    }
  },
  "Resources": {
    "Instance": {
      "Type": "ALIYUN::AMQP::Instance",
      "Properties": {
        "MaxTps": {
          "Ref": "MaxTps"
        },
        "StorageSize": {
          "Ref": "StorageSize"
        },
        "QueueCapacity": {
          "Ref": "QueueCapacity"
        },
        "InstanceType": {
          "Ref": "InstanceType"
        }
      }
    }
  },
  "Outputs": {
    "InstanceId": {
      "Description": "The ID of the instance.",
      "Value": {
        "Fn::GetAtt": [
          "Instance",
          "InstanceId"
        ]
      }
    }
  }
}