Class Binding
The rabbitmq..Binding resource creates and manages a binding relationship
between a queue an exchange.
Example Usage
using Pulumi;
using RabbitMQ = Pulumi.RabbitMQ;
class MyStack : Stack
{
public MyStack()
{
var testVHost = new RabbitMQ.VHost("testVHost", new RabbitMQ.VHostArgs
{
});
var guest = new RabbitMQ.Permissions("guest", new RabbitMQ.PermissionsArgs
{
Permissions = new RabbitMQ.Inputs.PermissionsPermissionsArgs
{
Configure = ".*",
Read = ".*",
Write = ".*",
},
User = "guest",
Vhost = testVHost.Name,
});
var testExchange = new RabbitMQ.Exchange("testExchange", new RabbitMQ.ExchangeArgs
{
Settings = new RabbitMQ.Inputs.ExchangeSettingsArgs
{
AutoDelete = true,
Durable = false,
Type = "fanout",
},
Vhost = guest.Vhost,
});
var testQueue = new RabbitMQ.Queue("testQueue", new RabbitMQ.QueueArgs
{
Settings = new RabbitMQ.Inputs.QueueSettingsArgs
{
AutoDelete = false,
Durable = true,
},
Vhost = guest.Vhost,
});
var testBinding = new RabbitMQ.Binding("testBinding", new RabbitMQ.BindingArgs
{
Destination = testQueue.Name,
DestinationType = "queue",
RoutingKey = "#",
Source = testExchange.Name,
Vhost = testVHost.Name,
});
}
}
Inherited Members
Namespace: Pulumi.RabbitMQ
Assembly: Pulumi.RabbitMQ.dll
Syntax
public class Binding : CustomResource
Constructors
View SourceBinding(String, BindingArgs, CustomResourceOptions)
Create a Binding resource with the given unique name, arguments, and options.
Declaration
public Binding(string name, BindingArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| BindingArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArguments
Additional key/value arguments for the binding.
Declaration
public Output<ImmutableDictionary<string, object>> Arguments { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Destination
The destination queue or exchange.
Declaration
public Output<string> Destination { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DestinationType
The type of destination (queue or exchange).
Declaration
public Output<string> DestinationType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PropertiesKey
A unique key to refer to the binding.
Declaration
public Output<string> PropertiesKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RoutingKey
A routing key for the binding.
Declaration
public Output<string> RoutingKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Source
The source exchange.
Declaration
public Output<string> Source { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Vhost
The vhost to create the resource in.
Declaration
public Output<string> Vhost { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, BindingState, CustomResourceOptions)
Get an existing Binding resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Binding Get(string name, Input<string> id, BindingState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| BindingState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Binding |