Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Binding
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.RabbitMQ
Assembly: Pulumi.RabbitMQ.dll
Syntax
public class Binding : CustomResource

Constructors

View Source

Binding(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 Source

Arguments

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>>
View Source

Destination

The destination queue or exchange.

Declaration
public Output<string> Destination { get; }
Property Value
Type Description
Output<System.String>
View Source

DestinationType

The type of destination (queue or exchange).

Declaration
public Output<string> DestinationType { get; }
Property Value
Type Description
Output<System.String>
View Source

PropertiesKey

A unique key to refer to the binding.

Declaration
public Output<string> PropertiesKey { get; }
Property Value
Type Description
Output<System.String>
View Source

RoutingKey

A routing key for the binding.

Declaration
public Output<string> RoutingKey { get; }
Property Value
Type Description
Output<System.String>
View Source

Source

The source exchange.

Declaration
public Output<string> Source { get; }
Property Value
Type Description
Output<System.String>
View Source

Vhost

The vhost to create the resource in.

Declaration
public Output<string> Vhost { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.