Skip to content

AMQP 0-9-1 channel binding

Contains information about the channel representation in AMQP.

Structure

copy
{
$schema:"http://json-schema.org/draft-07/schema#"
$id:"http://asyncapi.com/bindings/amqp/0.2.0/channel.json"
title:"AMQP channel bindings object"
description:"This object contains information about the channel representation in AMQP."
type:"object"
additionalProperties:false
patternProperties:{...}
properties:{...}
oneOf:[...]
examples:[...]
}

Examples

Routing Key

json
{
  "is": "routingKey", 
  "exchange": {
    "name": "myExchange",
    "type": "topic",
    "durable": true,
    "autoDelete": false,
    "vhost": "/"
  },
  "bindingVersion": "0.2.0"
}

Queue

json
{
  "is": "queue", 
  "queue": {
    "name": "my-queue-name",
    "durable": true,
    "exclusive": true,
    "autoDelete": false,
    "vhost": "/"
  },
  "bindingVersion": "0.2.0"
}

Migration guide

Added

vhost

The virtual host of the exchange or queue. Defaults to /.

json
{
    "vhost": { 
      "type": "string", 
      "default": "/", 
      "description": "The virtual host of the exchange. Defaults to '/'."
    } 
}