Skip to content

Exchange

faststream.asyncapi.schema.bindings.amqp.Exchange #

Bases: BaseModel

A class to represent an exchange.

ATTRIBUTE DESCRIPTION
name

name of the exchange (optional)

type

type of the exchange, can be one of "default", "direct", "topic", "fanout", "headers"

durable

whether the exchange is durable (optional)

autoDelete

whether the exchange is automatically deleted (optional)

vhost

virtual host of the exchange, default is "/"

type instance-attribute #

type

name class-attribute instance-attribute #

name = None

durable class-attribute instance-attribute #

durable = None

autoDelete class-attribute instance-attribute #

autoDelete = None

vhost class-attribute instance-attribute #

vhost = '/'