1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. amqp
  5. Binding
Alibaba Cloud v3.45.0 published on Monday, Nov 27, 2023 by Pulumi

alicloud.amqp.Binding

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.45.0 published on Monday, Nov 27, 2023 by Pulumi

    Provides a RabbitMQ (AMQP) Binding resource to bind tha exchange with another exchange or queue.

    For information about RabbitMQ (AMQP) Binding and how to use it, see What is Binding.

    NOTE: Available since v1.135.0.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var defaultInstance = new AliCloud.Amqp.Instance("defaultInstance", new()
        {
            InstanceType = "enterprise",
            MaxTps = "3000",
            QueueCapacity = "200",
            StorageSize = "700",
            SupportEip = false,
            MaxEipTps = "128",
            PaymentType = "Subscription",
            Period = 1,
        });
    
        var defaultVirtualHost = new AliCloud.Amqp.VirtualHost("defaultVirtualHost", new()
        {
            InstanceId = defaultInstance.Id,
            VirtualHostName = "tf-example",
        });
    
        var defaultExchange = new AliCloud.Amqp.Exchange("defaultExchange", new()
        {
            AutoDeleteState = false,
            ExchangeName = "tf-example",
            ExchangeType = "DIRECT",
            InstanceId = defaultInstance.Id,
            Internal = false,
            VirtualHostName = defaultVirtualHost.VirtualHostName,
        });
    
        var defaultQueue = new AliCloud.Amqp.Queue("defaultQueue", new()
        {
            InstanceId = defaultInstance.Id,
            QueueName = "tf-example",
            VirtualHostName = defaultVirtualHost.VirtualHostName,
        });
    
        var defaultBinding = new AliCloud.Amqp.Binding("defaultBinding", new()
        {
            Argument = "x-match:all",
            BindingKey = defaultQueue.QueueName,
            BindingType = "QUEUE",
            DestinationName = "tf-example",
            InstanceId = defaultInstance.Id,
            SourceExchange = defaultExchange.ExchangeName,
            VirtualHostName = defaultVirtualHost.VirtualHostName,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/amqp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		defaultInstance, err := amqp.NewInstance(ctx, "defaultInstance", &amqp.InstanceArgs{
    			InstanceType:  pulumi.String("enterprise"),
    			MaxTps:        pulumi.String("3000"),
    			QueueCapacity: pulumi.String("200"),
    			StorageSize:   pulumi.String("700"),
    			SupportEip:    pulumi.Bool(false),
    			MaxEipTps:     pulumi.String("128"),
    			PaymentType:   pulumi.String("Subscription"),
    			Period:        pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		defaultVirtualHost, err := amqp.NewVirtualHost(ctx, "defaultVirtualHost", &amqp.VirtualHostArgs{
    			InstanceId:      defaultInstance.ID(),
    			VirtualHostName: pulumi.String("tf-example"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultExchange, err := amqp.NewExchange(ctx, "defaultExchange", &amqp.ExchangeArgs{
    			AutoDeleteState: pulumi.Bool(false),
    			ExchangeName:    pulumi.String("tf-example"),
    			ExchangeType:    pulumi.String("DIRECT"),
    			InstanceId:      defaultInstance.ID(),
    			Internal:        pulumi.Bool(false),
    			VirtualHostName: defaultVirtualHost.VirtualHostName,
    		})
    		if err != nil {
    			return err
    		}
    		defaultQueue, err := amqp.NewQueue(ctx, "defaultQueue", &amqp.QueueArgs{
    			InstanceId:      defaultInstance.ID(),
    			QueueName:       pulumi.String("tf-example"),
    			VirtualHostName: defaultVirtualHost.VirtualHostName,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = amqp.NewBinding(ctx, "defaultBinding", &amqp.BindingArgs{
    			Argument:        pulumi.String("x-match:all"),
    			BindingKey:      defaultQueue.QueueName,
    			BindingType:     pulumi.String("QUEUE"),
    			DestinationName: pulumi.String("tf-example"),
    			InstanceId:      defaultInstance.ID(),
    			SourceExchange:  defaultExchange.ExchangeName,
    			VirtualHostName: defaultVirtualHost.VirtualHostName,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.amqp.Instance;
    import com.pulumi.alicloud.amqp.InstanceArgs;
    import com.pulumi.alicloud.amqp.VirtualHost;
    import com.pulumi.alicloud.amqp.VirtualHostArgs;
    import com.pulumi.alicloud.amqp.Exchange;
    import com.pulumi.alicloud.amqp.ExchangeArgs;
    import com.pulumi.alicloud.amqp.Queue;
    import com.pulumi.alicloud.amqp.QueueArgs;
    import com.pulumi.alicloud.amqp.Binding;
    import com.pulumi.alicloud.amqp.BindingArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()        
                .instanceType("enterprise")
                .maxTps(3000)
                .queueCapacity(200)
                .storageSize(700)
                .supportEip(false)
                .maxEipTps(128)
                .paymentType("Subscription")
                .period(1)
                .build());
    
            var defaultVirtualHost = new VirtualHost("defaultVirtualHost", VirtualHostArgs.builder()        
                .instanceId(defaultInstance.id())
                .virtualHostName("tf-example")
                .build());
    
            var defaultExchange = new Exchange("defaultExchange", ExchangeArgs.builder()        
                .autoDeleteState(false)
                .exchangeName("tf-example")
                .exchangeType("DIRECT")
                .instanceId(defaultInstance.id())
                .internal(false)
                .virtualHostName(defaultVirtualHost.virtualHostName())
                .build());
    
            var defaultQueue = new Queue("defaultQueue", QueueArgs.builder()        
                .instanceId(defaultInstance.id())
                .queueName("tf-example")
                .virtualHostName(defaultVirtualHost.virtualHostName())
                .build());
    
            var defaultBinding = new Binding("defaultBinding", BindingArgs.builder()        
                .argument("x-match:all")
                .bindingKey(defaultQueue.queueName())
                .bindingType("QUEUE")
                .destinationName("tf-example")
                .instanceId(defaultInstance.id())
                .sourceExchange(defaultExchange.exchangeName())
                .virtualHostName(defaultVirtualHost.virtualHostName())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default_instance = alicloud.amqp.Instance("defaultInstance",
        instance_type="enterprise",
        max_tps="3000",
        queue_capacity="200",
        storage_size="700",
        support_eip=False,
        max_eip_tps="128",
        payment_type="Subscription",
        period=1)
    default_virtual_host = alicloud.amqp.VirtualHost("defaultVirtualHost",
        instance_id=default_instance.id,
        virtual_host_name="tf-example")
    default_exchange = alicloud.amqp.Exchange("defaultExchange",
        auto_delete_state=False,
        exchange_name="tf-example",
        exchange_type="DIRECT",
        instance_id=default_instance.id,
        internal=False,
        virtual_host_name=default_virtual_host.virtual_host_name)
    default_queue = alicloud.amqp.Queue("defaultQueue",
        instance_id=default_instance.id,
        queue_name="tf-example",
        virtual_host_name=default_virtual_host.virtual_host_name)
    default_binding = alicloud.amqp.Binding("defaultBinding",
        argument="x-match:all",
        binding_key=default_queue.queue_name,
        binding_type="QUEUE",
        destination_name="tf-example",
        instance_id=default_instance.id,
        source_exchange=default_exchange.exchange_name,
        virtual_host_name=default_virtual_host.virtual_host_name)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const defaultInstance = new alicloud.amqp.Instance("defaultInstance", {
        instanceType: "enterprise",
        maxTps: "3000",
        queueCapacity: "200",
        storageSize: "700",
        supportEip: false,
        maxEipTps: "128",
        paymentType: "Subscription",
        period: 1,
    });
    const defaultVirtualHost = new alicloud.amqp.VirtualHost("defaultVirtualHost", {
        instanceId: defaultInstance.id,
        virtualHostName: "tf-example",
    });
    const defaultExchange = new alicloud.amqp.Exchange("defaultExchange", {
        autoDeleteState: false,
        exchangeName: "tf-example",
        exchangeType: "DIRECT",
        instanceId: defaultInstance.id,
        internal: false,
        virtualHostName: defaultVirtualHost.virtualHostName,
    });
    const defaultQueue = new alicloud.amqp.Queue("defaultQueue", {
        instanceId: defaultInstance.id,
        queueName: "tf-example",
        virtualHostName: defaultVirtualHost.virtualHostName,
    });
    const defaultBinding = new alicloud.amqp.Binding("defaultBinding", {
        argument: "x-match:all",
        bindingKey: defaultQueue.queueName,
        bindingType: "QUEUE",
        destinationName: "tf-example",
        instanceId: defaultInstance.id,
        sourceExchange: defaultExchange.exchangeName,
        virtualHostName: defaultVirtualHost.virtualHostName,
    });
    
    resources:
      defaultInstance:
        type: alicloud:amqp:Instance
        properties:
          instanceType: enterprise
          maxTps: 3000
          queueCapacity: 200
          storageSize: 700
          supportEip: false
          maxEipTps: 128
          paymentType: Subscription
          period: 1
      defaultVirtualHost:
        type: alicloud:amqp:VirtualHost
        properties:
          instanceId: ${defaultInstance.id}
          virtualHostName: tf-example
      defaultExchange:
        type: alicloud:amqp:Exchange
        properties:
          autoDeleteState: false
          exchangeName: tf-example
          exchangeType: DIRECT
          instanceId: ${defaultInstance.id}
          internal: false
          virtualHostName: ${defaultVirtualHost.virtualHostName}
      defaultQueue:
        type: alicloud:amqp:Queue
        properties:
          instanceId: ${defaultInstance.id}
          queueName: tf-example
          virtualHostName: ${defaultVirtualHost.virtualHostName}
      defaultBinding:
        type: alicloud:amqp:Binding
        properties:
          argument: x-match:all
          bindingKey: ${defaultQueue.queueName}
          bindingType: QUEUE
          destinationName: tf-example
          instanceId: ${defaultInstance.id}
          sourceExchange: ${defaultExchange.exchangeName}
          virtualHostName: ${defaultVirtualHost.virtualHostName}
    

    Create Binding Resource

    new Binding(name: string, args: BindingArgs, opts?: CustomResourceOptions);
    @overload
    def Binding(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                argument: Optional[str] = None,
                binding_key: Optional[str] = None,
                binding_type: Optional[str] = None,
                destination_name: Optional[str] = None,
                instance_id: Optional[str] = None,
                source_exchange: Optional[str] = None,
                virtual_host_name: Optional[str] = None)
    @overload
    def Binding(resource_name: str,
                args: BindingArgs,
                opts: Optional[ResourceOptions] = None)
    func NewBinding(ctx *Context, name string, args BindingArgs, opts ...ResourceOption) (*Binding, error)
    public Binding(string name, BindingArgs args, CustomResourceOptions? opts = null)
    public Binding(String name, BindingArgs args)
    public Binding(String name, BindingArgs args, CustomResourceOptions options)
    
    type: alicloud:amqp:Binding
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args BindingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BindingArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BindingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BindingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BindingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Binding Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Binding resource accepts the following input properties:

    BindingKey string

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    BindingType string

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    DestinationName string

    The Target Queue Or Exchange of the Name.

    InstanceId string

    Instance Id.

    SourceExchange string

    The Source Exchange Name.

    VirtualHostName string

    Virtualhost Name.

    Argument string

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    BindingKey string

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    BindingType string

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    DestinationName string

    The Target Queue Or Exchange of the Name.

    InstanceId string

    Instance Id.

    SourceExchange string

    The Source Exchange Name.

    VirtualHostName string

    Virtualhost Name.

    Argument string

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    bindingKey String

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    bindingType String

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    destinationName String

    The Target Queue Or Exchange of the Name.

    instanceId String

    Instance Id.

    sourceExchange String

    The Source Exchange Name.

    virtualHostName String

    Virtualhost Name.

    argument String

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    bindingKey string

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    bindingType string

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    destinationName string

    The Target Queue Or Exchange of the Name.

    instanceId string

    Instance Id.

    sourceExchange string

    The Source Exchange Name.

    virtualHostName string

    Virtualhost Name.

    argument string

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    binding_key str

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    binding_type str

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    destination_name str

    The Target Queue Or Exchange of the Name.

    instance_id str

    Instance Id.

    source_exchange str

    The Source Exchange Name.

    virtual_host_name str

    Virtualhost Name.

    argument str

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    bindingKey String

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    bindingType String

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    destinationName String

    The Target Queue Or Exchange of the Name.

    instanceId String

    Instance Id.

    sourceExchange String

    The Source Exchange Name.

    virtualHostName String

    Virtualhost Name.

    argument String

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Binding resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    id string

    The provider-assigned unique ID for this managed resource.

    id str

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing Binding Resource

    Get an existing Binding resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: BindingState, opts?: CustomResourceOptions): Binding
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            argument: Optional[str] = None,
            binding_key: Optional[str] = None,
            binding_type: Optional[str] = None,
            destination_name: Optional[str] = None,
            instance_id: Optional[str] = None,
            source_exchange: Optional[str] = None,
            virtual_host_name: Optional[str] = None) -> Binding
    func GetBinding(ctx *Context, name string, id IDInput, state *BindingState, opts ...ResourceOption) (*Binding, error)
    public static Binding Get(string name, Input<string> id, BindingState? state, CustomResourceOptions? opts = null)
    public static Binding get(String name, Output<String> id, BindingState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Argument string

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    BindingKey string

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    BindingType string

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    DestinationName string

    The Target Queue Or Exchange of the Name.

    InstanceId string

    Instance Id.

    SourceExchange string

    The Source Exchange Name.

    VirtualHostName string

    Virtualhost Name.

    Argument string

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    BindingKey string

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    BindingType string

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    DestinationName string

    The Target Queue Or Exchange of the Name.

    InstanceId string

    Instance Id.

    SourceExchange string

    The Source Exchange Name.

    VirtualHostName string

    Virtualhost Name.

    argument String

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    bindingKey String

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    bindingType String

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    destinationName String

    The Target Queue Or Exchange of the Name.

    instanceId String

    Instance Id.

    sourceExchange String

    The Source Exchange Name.

    virtualHostName String

    Virtualhost Name.

    argument string

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    bindingKey string

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    bindingType string

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    destinationName string

    The Target Queue Or Exchange of the Name.

    instanceId string

    Instance Id.

    sourceExchange string

    The Source Exchange Name.

    virtualHostName string

    Virtualhost Name.

    argument str

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    binding_key str

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    binding_type str

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    destination_name str

    The Target Queue Or Exchange of the Name.

    instance_id str

    Instance Id.

    source_exchange str

    The Source Exchange Name.

    virtual_host_name str

    Virtualhost Name.

    argument String

    X-match Attributes. Valid Values:

    • "x-match:all": Default Value, All the Message Header of Key-Value Pairs Stored in the Must Match.
    • "x-match:any": at Least One Pair of the Message Header of Key-Value Pairs Stored in the Must Match.

    NOTE: This Parameter Applies Only to Headers Exchange Other Types of Exchange Is Invalid. Other Types of Exchange Here Can Either Be an Arbitrary Value.

    bindingKey String

    The Binding Key.

    • For a non-topic source exchange: The binding key can contain only letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). The binding key must be 1 to 255 characters in length.
    • For a topic source exchange: The binding key can contain letters, digits, hyphens (-), underscores (_), periods (.), and at signs (@). If the binding key contains a number sign (#), the binding key must start with a number sign (#) followed by a period (.) or end with a number sign (#) that follows a period (.). The binding key must be 1 to 255 characters in length.
    bindingType String

    The Target Binding Types. Valid values: EXCHANGE, QUEUE.

    destinationName String

    The Target Queue Or Exchange of the Name.

    instanceId String

    Instance Id.

    sourceExchange String

    The Source Exchange Name.

    virtualHostName String

    Virtualhost Name.

    Import

    RabbitMQ (AMQP) Binding can be imported using the id, e.g.

     $ pulumi import alicloud:amqp/binding:Binding example <instance_id>:<virtual_host_name>:<source_exchange>:<destination_name>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.45.0 published on Monday, Nov 27, 2023 by Pulumi