Todos los productos
Search
Centro de documentos

Resource Orchestration Service:ALIYUN::AMQP::Instance

Última actualización: Sep 05, 2026

Crea una instancia de ApsaraMQ for RabbitMQ.

Sintaxis

{
  "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
  }
}

Propiedades

Propiedad

Tipo

Obligatorio

Editable

Descripción

Restricción

InstanceType

String

No

No

Edición de la instancia.

Valores válidos:

  • professional: Professional Edition

  • enterprise: Enterprise Edition

  • vip: Enterprise Platinum Edition

MaxTps

Number

No

Sí

TPS máximo para acceder a la instancia mediante una 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

No

Sí

Número máximo de colas en la instancia.

Valores válidos: de 50 a 6000.

Nota

El valor debe ser múltiplo de 50. Si el valor especificado no cumple esta condición, se redondea al siguiente múltiplo de 50.

Por ejemplo, si establece esta propiedad en 60, se usa el valor 100.

StorageSize

Number

No

Sí

Tamaño de almacenamiento de mensajes.

Valores válidos:

  • Establezca el valor en 200 si crea una instancia de Professional Edition o Enterprise Edition.

  • Establezca el valor en m × 100 si crea una instancia de Enterprise Platinum Edition. m varía de 7 a 28.

Unidad: GB.

InstanceName

String

No

Sí

Nombre de la instancia.

Ninguna.

MaxEipTps

Number

No

Sí

TPS máximo para acceder a la instancia mediante Internet.

Valores válidos: de 128 a 45000.

Nota

El valor debe ser múltiplo de 128. Si el valor especificado no cumple esta condición, se redondea al siguiente múltiplo de 128.

Por ejemplo, si establece esta propiedad en 130, se usa el valor 256.

OrderNum

Number

No

No

Número de instancias por crear.

Valores válidos: de 1 a 9999.

PayType

String

No

No

Método de facturación.

Establezca el valor en Subscription.

Period

Number

No

No

Unidad de duración de la suscripción.

Valores válidos:

  • 1

  • 2

  • 3

  • 6

  • 12

  • 24

  • 36

Unidad: mes.

PeriodUnit

String

No

No

Ciclo de renovación automática.

Valores válidos:

  • Month

  • Year

SupportEip

String

No

Sí

Indica si se habilita el acceso a Internet para la instancia.

Valores válidos:

  • True

  • False

SupportTracing

String

No

Sí

Indica si se habilita la función de rastreo de mensajes.

Valores válidos:

  • True

  • False

TracingStorageTime

Number

No

Sí

Periodo de retención de los rastreos de mensajes.

Valores válidos:

  • 3

  • 5

  • 7

Unidad: día.

Valores de retorno

Fn::GetAtt

InstanceId: ID de la instancia.

PrivateEndpoint: endpoint de la VPC.

ClassicEndpoint: endpoint clásico.

PublicEndpoint: endpoint público.

Ejemplos

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"
        ]
      }
    }
  }
}