All Products
Search
Document Center

Resource Orchestration Service:Kafka resources

Last Updated:Jun 22, 2026

Lists the AssociationProperty values available for Message Queue for Apache Kafka resources in ROS templates.

AssociationProperty value

Description

Corresponding AssociationPropertyMetadata

ALIYUN::Kafka::Instance::InstanceId

Queries information about Kafka instances in a specified region.

  • RegionId: The ID of the region. The default value is the region of the stack.

  • OrderId: The order ID.

Sample code

JSON example:

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::ECS::RegionId"
    },
    "InstanceId": {
      "Type": "String",
      "AssociationProperty": "ALIYUN::Kafka::Instance::InstanceId",
      "AssociationPropertyMetadata": {
        "RegionId": "${RegionId}"
      }
    }
  }
}

YAML example:

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionId:
    Type: String
    AssociationProperty: ALIYUN::ECS::RegionId
  InstanceId:
    Type: String
    AssociationProperty: ALIYUN::Kafka::Instance::InstanceId
    AssociationPropertyMetadata:
      RegionId: ${RegionId}