ALIYUN::AMQP::Binding is used to bind a queue or exchange to an exchange.
Syntax
{
"Type": "ALIYUN::AMQP::Binding",
"Properties": {
"Argument": String,
"SourceExchange": String,
"InstanceId": String,
"BindingKey": String,
"BindingType": String,
"DestinationName": String,
"VirtualHost": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Argument | String | Yes | No | The key-value pairs that are configured for the headers attributes of a message. | One or more key-value pairs can be concatenated to configure the headers attributes
of a message. The x-match attribute must be set to one of the following valid values. Other attributes can
be customized.
Valid values of the
x-match:all;type:report;format:pdf parameter applies only to headers exchanges .
|
SourceExchange | String | Yes | No | The name of the source exchange. | None. |
InstanceId | String | Yes | No | The ID of the instance. | None. |
BindingKey | String | Yes | No | The binding key. | If the source exchange is not a topic exchange, configure the binding key based on
the following requirements:
|
BindingType | String | Yes | No | The type of the object that you want to bind to the source exchange. | Valid values:
|
DestinationName | String | Yes | No | The name of the object that you want to bind to the source exchange. | The object must be created in the console. The vhost of the object is the same as
the vhost to which the source exchange specified by the SourceExchange parameter belongs. The vhost of the source exchange is the one specified by the VirtualHost
parameter.
|
VirtualHost | String | Yes | No | The name of the vhost. | This vhost must be created in the console. The object specified by the DestinationName parameter and the source exchange specified by the SourceExchange parameter belong to the vhost. |
Return values
Fn::GetAtt
None.
Examples
-
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "Argument": { "Type": "String", "Description": "X-match Attributes. Valid Values:\n\"x-match:all\": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.\n\"x-match:any\": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match." }, "SourceExchange": { "Type": "String", "Description": "The Source Exchange Name." }, "InstanceId": { "Type": "String", "Description": "InstanceId" }, "BindingKey": { "Type": "String", "Description": "The Binding Key." }, "BindingType": { "Type": "String", "Description": "The Target Binding Types. Valid values: EXCHANGE, QUEUE.", "AllowedValues": [ 0, "0", "QUEUE", 1, "1", "EXCHANGE" ] }, "DestinationName": { "Type": "String", "Description": "The Target Queue Or Exchange of the Name." }, "VirtualHost": { "Type": "String", "Description": "The name of the virtual host." } }, "Resources": { "Binding": { "Type": "ALIYUN::AMQP::Binding", "Properties": { "Argument": { "Ref": "Argument" }, "SourceExchange": { "Ref": "SourceExchange" }, "InstanceId": { "Ref": "InstanceId" }, "BindingKey": { "Ref": "BindingKey" }, "BindingType": { "Ref": "BindingType" }, "DestinationName": { "Ref": "DestinationName" }, "VirtualHost": { "Ref": "VirtualHost" } } } } }