BindingProps
Properties for defining a Binding.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-amqp-binding
Initializer
using AlibabaCloud.SDK.ROS.CDK.Amqp;
new BindingProps {
object Argument,
object BindingKey,
object BindingType,
object DestinationName,
object InstanceId,
object SourceExchange,
object VirtualHost
};
Properties
| Name | Type | Description |
|---|---|---|
Argument | object | Property argument: The key-value pairs for the message header attributes. |
BindingKey | object | Property bindingKey: The binding key. |
BindingType | object | Property bindingType: The type of the destination object. |
DestinationName | object | Property destinationName: The name of the binding destination. |
InstanceId | object | Property instanceId: InstanceId. |
SourceExchange | object | Property sourceExchange: The Source Exchange Name. |
VirtualHost | object | Property virtualHost: The name of the virtual host. |
ArgumentRequired
public object Argument { get; set; }
- Type: object
Property argument: The key-value pairs for the message header attributes.
The message header attributes consist of one or more key-value pairs. The x-match attribute is required. Other attributes are custom. The x-match attribute supports the following values:
- all: This is the default value. All key-value pairs in the message header must match.
- any: At least one key-value pair in the message header must match. Separate attributes with semicolons (;) and separate keys from values with colons (:). Example: x-match:all;type:report;format:pdf This parameter is valid only for headers exchanges. For other types of exchanges, this parameter is ignored.
BindingKeyRequired
public object BindingKey { get; set; }
- Type: object
Property bindingKey: The binding key.
- If the source exchange is not a topic exchange:
- It can contain letters, digits, hyphens (-), underscores (_), periods (.), forward slashes (/), and at signs (@).
- The length must be 1 to 255 characters.
- If the source exchange is a topic exchange:
- It can contain letters, digits, hyphens (-), underscores (_), asterisks (*), periods (.), number signs (#), forward slashes (/), and at signs (@).
- The key cannot start or end with a period (.). If the key starts with a number sign (#) or an asterisk (), a period (.) must immediately follow. If the key ends with a number sign (#) or an asterisk (), a period (.) must immediately precede it. If a number sign (#) or an asterisk (*) is in the middle of the key, it must have a period (.) on both sides.
- The length must be 1 to 255 characters.
BindingTypeRequired
public object BindingType { get; set; }
- Type: object
Property bindingType: The type of the destination object.
Valid values:
- 0: Queue
- 1: Exchange
DestinationNameRequired
public object DestinationName { get; set; }
- Type: object
Property destinationName: The name of the binding destination.
The destination must be created in the console. It must belong to the same vhost as SourceExchange. The VirtualHost parameter specifies the vhost.
InstanceIdRequired
public object InstanceId { get; set; }
- Type: object
Property instanceId: InstanceId.
SourceExchangeRequired
public object SourceExchange { get; set; }
- Type: object
Property sourceExchange: The Source Exchange Name.
VirtualHostRequired
public object VirtualHost { get; set; }
- Type: object
Property virtualHost: The name of the virtual host.