Skip to content

BindingProps

Properties for defining a Binding.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-amqp-binding

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkamqp"
&alicloudroscdkamqp.BindingProps {
    Argument: interface{},
    BindingKey: interface{},
    BindingType: interface{},
    DestinationName: interface{},
    InstanceId: interface{},
    SourceExchange: interface{},
    VirtualHost: interface{},
}

Properties

Name Type Description
Argument interface{} Property argument: The key-value pairs for the message header attributes.
BindingKey interface{} Property bindingKey: The binding key.
BindingType interface{} Property bindingType: The type of the destination object.
DestinationName interface{} Property destinationName: The name of the binding destination.
InstanceId interface{} Property instanceId: InstanceId.
SourceExchange interface{} Property sourceExchange: The Source Exchange Name.
VirtualHost interface{} Property virtualHost: The name of the virtual host.

ArgumentRequired

Argument interface{}
  • Type: interface{}

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

BindingKey interface{}
  • Type: interface{}

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

BindingType interface{}
  • Type: interface{}

Property bindingType: The type of the destination object.

Valid values:

  • 0: Queue
  • 1: Exchange

DestinationNameRequired

DestinationName interface{}
  • Type: interface{}

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

InstanceId interface{}
  • Type: interface{}

Property instanceId: InstanceId.


SourceExchangeRequired

SourceExchange interface{}
  • Type: interface{}

Property sourceExchange: The Source Exchange Name.


VirtualHostRequired

VirtualHost interface{}
  • Type: interface{}

Property virtualHost: The name of the virtual host.