1. Packages
  2. Rabbitmq Provider
  3. API Docs
  4. Shovel
RabbitMQ v3.3.9 published on Wednesday, Feb 12, 2025 by Pulumi

rabbitmq.Shovel

Explore with Pulumi AI

The rabbitmq.Shovel resource creates and manages a dynamic shovel.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as rabbitmq from "@pulumi/rabbitmq";

const test = new rabbitmq.VHost("test", {name: "test"});
const testExchange = new rabbitmq.Exchange("test", {
    name: "test_exchange",
    vhost: test.name,
    settings: {
        type: "fanout",
        durable: false,
        autoDelete: true,
    },
});
const testQueue = new rabbitmq.Queue("test", {
    name: "test_queue",
    vhost: test.name,
    settings: {
        durable: false,
        autoDelete: true,
    },
});
const shovelTest = new rabbitmq.Shovel("shovelTest", {
    name: "shovelTest",
    vhost: test.name,
    info: {
        sourceUri: "amqp:///test",
        sourceExchange: testExchange.name,
        sourceExchangeKey: "test",
        destinationUri: "amqp:///test",
        destinationQueue: testQueue.name,
    },
});
Copy
import pulumi
import pulumi_rabbitmq as rabbitmq

test = rabbitmq.VHost("test", name="test")
test_exchange = rabbitmq.Exchange("test",
    name="test_exchange",
    vhost=test.name,
    settings={
        "type": "fanout",
        "durable": False,
        "auto_delete": True,
    })
test_queue = rabbitmq.Queue("test",
    name="test_queue",
    vhost=test.name,
    settings={
        "durable": False,
        "auto_delete": True,
    })
shovel_test = rabbitmq.Shovel("shovelTest",
    name="shovelTest",
    vhost=test.name,
    info={
        "source_uri": "amqp:///test",
        "source_exchange": test_exchange.name,
        "source_exchange_key": "test",
        "destination_uri": "amqp:///test",
        "destination_queue": test_queue.name,
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-rabbitmq/sdk/v3/go/rabbitmq"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := rabbitmq.NewVHost(ctx, "test", &rabbitmq.VHostArgs{
			Name: pulumi.String("test"),
		})
		if err != nil {
			return err
		}
		testExchange, err := rabbitmq.NewExchange(ctx, "test", &rabbitmq.ExchangeArgs{
			Name:  pulumi.String("test_exchange"),
			Vhost: test.Name,
			Settings: &rabbitmq.ExchangeSettingsArgs{
				Type:       pulumi.String("fanout"),
				Durable:    pulumi.Bool(false),
				AutoDelete: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		testQueue, err := rabbitmq.NewQueue(ctx, "test", &rabbitmq.QueueArgs{
			Name:  pulumi.String("test_queue"),
			Vhost: test.Name,
			Settings: &rabbitmq.QueueSettingsArgs{
				Durable:    pulumi.Bool(false),
				AutoDelete: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		_, err = rabbitmq.NewShovel(ctx, "shovelTest", &rabbitmq.ShovelArgs{
			Name:  pulumi.String("shovelTest"),
			Vhost: test.Name,
			Info: &rabbitmq.ShovelInfoArgs{
				SourceUri:         pulumi.String("amqp:///test"),
				SourceExchange:    testExchange.Name,
				SourceExchangeKey: pulumi.String("test"),
				DestinationUri:    pulumi.String("amqp:///test"),
				DestinationQueue:  testQueue.Name,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using RabbitMQ = Pulumi.RabbitMQ;

return await Deployment.RunAsync(() => 
{
    var test = new RabbitMQ.VHost("test", new()
    {
        Name = "test",
    });

    var testExchange = new RabbitMQ.Exchange("test", new()
    {
        Name = "test_exchange",
        Vhost = test.Name,
        Settings = new RabbitMQ.Inputs.ExchangeSettingsArgs
        {
            Type = "fanout",
            Durable = false,
            AutoDelete = true,
        },
    });

    var testQueue = new RabbitMQ.Queue("test", new()
    {
        Name = "test_queue",
        Vhost = test.Name,
        Settings = new RabbitMQ.Inputs.QueueSettingsArgs
        {
            Durable = false,
            AutoDelete = true,
        },
    });

    var shovelTest = new RabbitMQ.Shovel("shovelTest", new()
    {
        Name = "shovelTest",
        Vhost = test.Name,
        Info = new RabbitMQ.Inputs.ShovelInfoArgs
        {
            SourceUri = "amqp:///test",
            SourceExchange = testExchange.Name,
            SourceExchangeKey = "test",
            DestinationUri = "amqp:///test",
            DestinationQueue = testQueue.Name,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.rabbitmq.VHost;
import com.pulumi.rabbitmq.VHostArgs;
import com.pulumi.rabbitmq.Exchange;
import com.pulumi.rabbitmq.ExchangeArgs;
import com.pulumi.rabbitmq.inputs.ExchangeSettingsArgs;
import com.pulumi.rabbitmq.Queue;
import com.pulumi.rabbitmq.QueueArgs;
import com.pulumi.rabbitmq.inputs.QueueSettingsArgs;
import com.pulumi.rabbitmq.Shovel;
import com.pulumi.rabbitmq.ShovelArgs;
import com.pulumi.rabbitmq.inputs.ShovelInfoArgs;
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 test = new VHost("test", VHostArgs.builder()
            .name("test")
            .build());

        var testExchange = new Exchange("testExchange", ExchangeArgs.builder()
            .name("test_exchange")
            .vhost(test.name())
            .settings(ExchangeSettingsArgs.builder()
                .type("fanout")
                .durable(false)
                .autoDelete(true)
                .build())
            .build());

        var testQueue = new Queue("testQueue", QueueArgs.builder()
            .name("test_queue")
            .vhost(test.name())
            .settings(QueueSettingsArgs.builder()
                .durable(false)
                .autoDelete(true)
                .build())
            .build());

        var shovelTest = new Shovel("shovelTest", ShovelArgs.builder()
            .name("shovelTest")
            .vhost(test.name())
            .info(ShovelInfoArgs.builder()
                .sourceUri("amqp:///test")
                .sourceExchange(testExchange.name())
                .sourceExchangeKey("test")
                .destinationUri("amqp:///test")
                .destinationQueue(testQueue.name())
                .build())
            .build());

    }
}
Copy
resources:
  test:
    type: rabbitmq:VHost
    properties:
      name: test
  testExchange:
    type: rabbitmq:Exchange
    name: test
    properties:
      name: test_exchange
      vhost: ${test.name}
      settings:
        type: fanout
        durable: false
        autoDelete: true
  testQueue:
    type: rabbitmq:Queue
    name: test
    properties:
      name: test_queue
      vhost: ${test.name}
      settings:
        durable: false
        autoDelete: true
  shovelTest:
    type: rabbitmq:Shovel
    properties:
      name: shovelTest
      vhost: ${test.name}
      info:
        sourceUri: amqp:///test
        sourceExchange: ${testExchange.name}
        sourceExchangeKey: test
        destinationUri: amqp:///test
        destinationQueue: ${testQueue.name}
Copy

Create Shovel Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Shovel(name: string, args: ShovelArgs, opts?: CustomResourceOptions);
@overload
def Shovel(resource_name: str,
           args: ShovelArgs,
           opts: Optional[ResourceOptions] = None)

@overload
def Shovel(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           info: Optional[ShovelInfoArgs] = None,
           vhost: Optional[str] = None,
           name: Optional[str] = None)
func NewShovel(ctx *Context, name string, args ShovelArgs, opts ...ResourceOption) (*Shovel, error)
public Shovel(string name, ShovelArgs args, CustomResourceOptions? opts = null)
public Shovel(String name, ShovelArgs args)
public Shovel(String name, ShovelArgs args, CustomResourceOptions options)
type: rabbitmq:Shovel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ShovelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ShovelArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ShovelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ShovelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ShovelArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var shovelResource = new RabbitMQ.Shovel("shovelResource", new()
{
    Info = new RabbitMQ.Inputs.ShovelInfoArgs
    {
        DestinationUri = "string",
        SourceUri = "string",
        DestinationQueue = "string",
        DestinationAddTimestampHeader = false,
        DestinationAddress = "string",
        DestinationApplicationProperties = "string",
        DestinationExchange = "string",
        DestinationExchangeKey = "string",
        DestinationProperties = "string",
        DestinationPublishProperties = "string",
        DestinationAddForwardHeaders = false,
        DestinationProtocol = "string",
        ReconnectDelay = 0,
        SourceAddress = "string",
        SourceDeleteAfter = "string",
        SourceExchange = "string",
        SourceExchangeKey = "string",
        SourcePrefetchCount = 0,
        SourceProtocol = "string",
        SourceQueue = "string",
        AckMode = "string",
    },
    Vhost = "string",
    Name = "string",
});
Copy
example, err := rabbitmq.NewShovel(ctx, "shovelResource", &rabbitmq.ShovelArgs{
	Info: &rabbitmq.ShovelInfoArgs{
		DestinationUri:                   pulumi.String("string"),
		SourceUri:                        pulumi.String("string"),
		DestinationQueue:                 pulumi.String("string"),
		DestinationAddTimestampHeader:    pulumi.Bool(false),
		DestinationAddress:               pulumi.String("string"),
		DestinationApplicationProperties: pulumi.String("string"),
		DestinationExchange:              pulumi.String("string"),
		DestinationExchangeKey:           pulumi.String("string"),
		DestinationProperties:            pulumi.String("string"),
		DestinationPublishProperties:     pulumi.String("string"),
		DestinationAddForwardHeaders:     pulumi.Bool(false),
		DestinationProtocol:              pulumi.String("string"),
		ReconnectDelay:                   pulumi.Int(0),
		SourceAddress:                    pulumi.String("string"),
		SourceDeleteAfter:                pulumi.String("string"),
		SourceExchange:                   pulumi.String("string"),
		SourceExchangeKey:                pulumi.String("string"),
		SourcePrefetchCount:              pulumi.Int(0),
		SourceProtocol:                   pulumi.String("string"),
		SourceQueue:                      pulumi.String("string"),
		AckMode:                          pulumi.String("string"),
	},
	Vhost: pulumi.String("string"),
	Name:  pulumi.String("string"),
})
Copy
var shovelResource = new Shovel("shovelResource", ShovelArgs.builder()
    .info(ShovelInfoArgs.builder()
        .destinationUri("string")
        .sourceUri("string")
        .destinationQueue("string")
        .destinationAddTimestampHeader(false)
        .destinationAddress("string")
        .destinationApplicationProperties("string")
        .destinationExchange("string")
        .destinationExchangeKey("string")
        .destinationProperties("string")
        .destinationPublishProperties("string")
        .destinationAddForwardHeaders(false)
        .destinationProtocol("string")
        .reconnectDelay(0)
        .sourceAddress("string")
        .sourceDeleteAfter("string")
        .sourceExchange("string")
        .sourceExchangeKey("string")
        .sourcePrefetchCount(0)
        .sourceProtocol("string")
        .sourceQueue("string")
        .ackMode("string")
        .build())
    .vhost("string")
    .name("string")
    .build());
Copy
shovel_resource = rabbitmq.Shovel("shovelResource",
    info={
        "destination_uri": "string",
        "source_uri": "string",
        "destination_queue": "string",
        "destination_add_timestamp_header": False,
        "destination_address": "string",
        "destination_application_properties": "string",
        "destination_exchange": "string",
        "destination_exchange_key": "string",
        "destination_properties": "string",
        "destination_publish_properties": "string",
        "destination_add_forward_headers": False,
        "destination_protocol": "string",
        "reconnect_delay": 0,
        "source_address": "string",
        "source_delete_after": "string",
        "source_exchange": "string",
        "source_exchange_key": "string",
        "source_prefetch_count": 0,
        "source_protocol": "string",
        "source_queue": "string",
        "ack_mode": "string",
    },
    vhost="string",
    name="string")
Copy
const shovelResource = new rabbitmq.Shovel("shovelResource", {
    info: {
        destinationUri: "string",
        sourceUri: "string",
        destinationQueue: "string",
        destinationAddTimestampHeader: false,
        destinationAddress: "string",
        destinationApplicationProperties: "string",
        destinationExchange: "string",
        destinationExchangeKey: "string",
        destinationProperties: "string",
        destinationPublishProperties: "string",
        destinationAddForwardHeaders: false,
        destinationProtocol: "string",
        reconnectDelay: 0,
        sourceAddress: "string",
        sourceDeleteAfter: "string",
        sourceExchange: "string",
        sourceExchangeKey: "string",
        sourcePrefetchCount: 0,
        sourceProtocol: "string",
        sourceQueue: "string",
        ackMode: "string",
    },
    vhost: "string",
    name: "string",
});
Copy
type: rabbitmq:Shovel
properties:
    info:
        ackMode: string
        destinationAddForwardHeaders: false
        destinationAddTimestampHeader: false
        destinationAddress: string
        destinationApplicationProperties: string
        destinationExchange: string
        destinationExchangeKey: string
        destinationProperties: string
        destinationProtocol: string
        destinationPublishProperties: string
        destinationQueue: string
        destinationUri: string
        reconnectDelay: 0
        sourceAddress: string
        sourceDeleteAfter: string
        sourceExchange: string
        sourceExchangeKey: string
        sourcePrefetchCount: 0
        sourceProtocol: string
        sourceQueue: string
        sourceUri: string
    name: string
    vhost: string
Copy

Shovel Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Shovel resource accepts the following input properties:

Info This property is required. Pulumi.RabbitMQ.Inputs.ShovelInfo
The settings of the dynamic shovel. The structure is described below.
Vhost
This property is required.
Changes to this property will trigger replacement.
string
The vhost to create the resource in.
Name Changes to this property will trigger replacement. string
The shovel name.
Info This property is required. ShovelInfoArgs
The settings of the dynamic shovel. The structure is described below.
Vhost
This property is required.
Changes to this property will trigger replacement.
string
The vhost to create the resource in.
Name Changes to this property will trigger replacement. string
The shovel name.
info This property is required. ShovelInfo
The settings of the dynamic shovel. The structure is described below.
vhost
This property is required.
Changes to this property will trigger replacement.
String
The vhost to create the resource in.
name Changes to this property will trigger replacement. String
The shovel name.
info This property is required. ShovelInfo
The settings of the dynamic shovel. The structure is described below.
vhost
This property is required.
Changes to this property will trigger replacement.
string
The vhost to create the resource in.
name Changes to this property will trigger replacement. string
The shovel name.
info This property is required. ShovelInfoArgs
The settings of the dynamic shovel. The structure is described below.
vhost
This property is required.
Changes to this property will trigger replacement.
str
The vhost to create the resource in.
name Changes to this property will trigger replacement. str
The shovel name.
info This property is required. Property Map
The settings of the dynamic shovel. The structure is described below.
vhost
This property is required.
Changes to this property will trigger replacement.
String
The vhost to create the resource in.
name Changes to this property will trigger replacement. String
The shovel name.

Outputs

All input properties are implicitly available as output properties. Additionally, the Shovel 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 Shovel Resource

Get an existing Shovel 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?: ShovelState, opts?: CustomResourceOptions): Shovel
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        info: Optional[ShovelInfoArgs] = None,
        name: Optional[str] = None,
        vhost: Optional[str] = None) -> Shovel
func GetShovel(ctx *Context, name string, id IDInput, state *ShovelState, opts ...ResourceOption) (*Shovel, error)
public static Shovel Get(string name, Input<string> id, ShovelState? state, CustomResourceOptions? opts = null)
public static Shovel get(String name, Output<String> id, ShovelState state, CustomResourceOptions options)
resources:  _:    type: rabbitmq:Shovel    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Info Pulumi.RabbitMQ.Inputs.ShovelInfo
The settings of the dynamic shovel. The structure is described below.
Name Changes to this property will trigger replacement. string
The shovel name.
Vhost Changes to this property will trigger replacement. string
The vhost to create the resource in.
Info ShovelInfoArgs
The settings of the dynamic shovel. The structure is described below.
Name Changes to this property will trigger replacement. string
The shovel name.
Vhost Changes to this property will trigger replacement. string
The vhost to create the resource in.
info ShovelInfo
The settings of the dynamic shovel. The structure is described below.
name Changes to this property will trigger replacement. String
The shovel name.
vhost Changes to this property will trigger replacement. String
The vhost to create the resource in.
info ShovelInfo
The settings of the dynamic shovel. The structure is described below.
name Changes to this property will trigger replacement. string
The shovel name.
vhost Changes to this property will trigger replacement. string
The vhost to create the resource in.
info ShovelInfoArgs
The settings of the dynamic shovel. The structure is described below.
name Changes to this property will trigger replacement. str
The shovel name.
vhost Changes to this property will trigger replacement. str
The vhost to create the resource in.
info Property Map
The settings of the dynamic shovel. The structure is described below.
name Changes to this property will trigger replacement. String
The shovel name.
vhost Changes to this property will trigger replacement. String
The vhost to create the resource in.

Supporting Types

ShovelInfo
, ShovelInfoArgs

DestinationUri
This property is required.
Changes to this property will trigger replacement.
string
The amqp uri for the destination .
SourceUri
This property is required.
Changes to this property will trigger replacement.
string
The amqp uri for the source.
AckMode Changes to this property will trigger replacement. string
Determines how the shovel should acknowledge messages. Possible values are: on-confirm, on-publish and no-ack. Defaults to on-confirm.
AddForwardHeaders Changes to this property will trigger replacement. bool
Whether to add x-shovelled headers to shovelled messages.

Deprecated: use destination_add_forward_headers instead

DeleteAfter Changes to this property will trigger replacement. string
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.

Deprecated: use source_delete_after instead

DestinationAddForwardHeaders Changes to this property will trigger replacement. bool
Whether to add x-shovelled headers to shovelled messages.
DestinationAddTimestampHeader Changes to this property will trigger replacement. bool
DestinationAddress Changes to this property will trigger replacement. string
The AMQP 1.0 destination link address.
DestinationApplicationProperties Changes to this property will trigger replacement. string
Application properties to set when shovelling messages.
DestinationExchange Changes to this property will trigger replacement. string
The exchange to which messages should be published. Either this or destination_queue must be specified but not both.
DestinationExchangeKey Changes to this property will trigger replacement. string
The routing key when using destination_exchange.
DestinationProperties Changes to this property will trigger replacement. string

Properties to overwrite when shovelling messages.

For more details regarding dynamic shovel parameters please have a look at the official reference documentaion at RabbitMQ: Configuring Dynamic Shovels.

DestinationProtocol Changes to this property will trigger replacement. string
The protocol (amqp091 or amqp10) to use when connecting to the destination. Defaults to amqp091.
DestinationPublishProperties Changes to this property will trigger replacement. string
A map of properties to overwrite when shovelling messages.
DestinationQueue Changes to this property will trigger replacement. string
The queue to which messages should be published. Either this or destination_exchange must be specified but not both.
PrefetchCount Changes to this property will trigger replacement. int
The maximum number of unacknowledged messages copied over a shovel at any one time.

Deprecated: use source_prefetch_count instead

ReconnectDelay Changes to this property will trigger replacement. int
The duration in seconds to reconnect to a broker after disconnected. Defaults to 1.
SourceAddress Changes to this property will trigger replacement. string
The AMQP 1.0 source link address.
SourceDeleteAfter Changes to this property will trigger replacement. string
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.
SourceExchange Changes to this property will trigger replacement. string
The exchange from which to consume. Either this or source_queue must be specified but not both.
SourceExchangeKey Changes to this property will trigger replacement. string
The routing key when using source_exchange.
SourcePrefetchCount Changes to this property will trigger replacement. int
The maximum number of unacknowledged messages copied over a shovel at any one time.
SourceProtocol Changes to this property will trigger replacement. string
The protocol (amqp091 or amqp10) to use when connecting to the source. Defaults to amqp091.
SourceQueue Changes to this property will trigger replacement. string
The queue from which to consume. Either this or source_exchange must be specified but not both.
DestinationUri
This property is required.
Changes to this property will trigger replacement.
string
The amqp uri for the destination .
SourceUri
This property is required.
Changes to this property will trigger replacement.
string
The amqp uri for the source.
AckMode Changes to this property will trigger replacement. string
Determines how the shovel should acknowledge messages. Possible values are: on-confirm, on-publish and no-ack. Defaults to on-confirm.
AddForwardHeaders Changes to this property will trigger replacement. bool
Whether to add x-shovelled headers to shovelled messages.

Deprecated: use destination_add_forward_headers instead

DeleteAfter Changes to this property will trigger replacement. string
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.

Deprecated: use source_delete_after instead

DestinationAddForwardHeaders Changes to this property will trigger replacement. bool
Whether to add x-shovelled headers to shovelled messages.
DestinationAddTimestampHeader Changes to this property will trigger replacement. bool
DestinationAddress Changes to this property will trigger replacement. string
The AMQP 1.0 destination link address.
DestinationApplicationProperties Changes to this property will trigger replacement. string
Application properties to set when shovelling messages.
DestinationExchange Changes to this property will trigger replacement. string
The exchange to which messages should be published. Either this or destination_queue must be specified but not both.
DestinationExchangeKey Changes to this property will trigger replacement. string
The routing key when using destination_exchange.
DestinationProperties Changes to this property will trigger replacement. string

Properties to overwrite when shovelling messages.

For more details regarding dynamic shovel parameters please have a look at the official reference documentaion at RabbitMQ: Configuring Dynamic Shovels.

DestinationProtocol Changes to this property will trigger replacement. string
The protocol (amqp091 or amqp10) to use when connecting to the destination. Defaults to amqp091.
DestinationPublishProperties Changes to this property will trigger replacement. string
A map of properties to overwrite when shovelling messages.
DestinationQueue Changes to this property will trigger replacement. string
The queue to which messages should be published. Either this or destination_exchange must be specified but not both.
PrefetchCount Changes to this property will trigger replacement. int
The maximum number of unacknowledged messages copied over a shovel at any one time.

Deprecated: use source_prefetch_count instead

ReconnectDelay Changes to this property will trigger replacement. int
The duration in seconds to reconnect to a broker after disconnected. Defaults to 1.
SourceAddress Changes to this property will trigger replacement. string
The AMQP 1.0 source link address.
SourceDeleteAfter Changes to this property will trigger replacement. string
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.
SourceExchange Changes to this property will trigger replacement. string
The exchange from which to consume. Either this or source_queue must be specified but not both.
SourceExchangeKey Changes to this property will trigger replacement. string
The routing key when using source_exchange.
SourcePrefetchCount Changes to this property will trigger replacement. int
The maximum number of unacknowledged messages copied over a shovel at any one time.
SourceProtocol Changes to this property will trigger replacement. string
The protocol (amqp091 or amqp10) to use when connecting to the source. Defaults to amqp091.
SourceQueue Changes to this property will trigger replacement. string
The queue from which to consume. Either this or source_exchange must be specified but not both.
destinationUri
This property is required.
Changes to this property will trigger replacement.
String
The amqp uri for the destination .
sourceUri
This property is required.
Changes to this property will trigger replacement.
String
The amqp uri for the source.
ackMode Changes to this property will trigger replacement. String
Determines how the shovel should acknowledge messages. Possible values are: on-confirm, on-publish and no-ack. Defaults to on-confirm.
addForwardHeaders Changes to this property will trigger replacement. Boolean
Whether to add x-shovelled headers to shovelled messages.

Deprecated: use destination_add_forward_headers instead

deleteAfter Changes to this property will trigger replacement. String
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.

Deprecated: use source_delete_after instead

destinationAddForwardHeaders Changes to this property will trigger replacement. Boolean
Whether to add x-shovelled headers to shovelled messages.
destinationAddTimestampHeader Changes to this property will trigger replacement. Boolean
destinationAddress Changes to this property will trigger replacement. String
The AMQP 1.0 destination link address.
destinationApplicationProperties Changes to this property will trigger replacement. String
Application properties to set when shovelling messages.
destinationExchange Changes to this property will trigger replacement. String
The exchange to which messages should be published. Either this or destination_queue must be specified but not both.
destinationExchangeKey Changes to this property will trigger replacement. String
The routing key when using destination_exchange.
destinationProperties Changes to this property will trigger replacement. String

Properties to overwrite when shovelling messages.

For more details regarding dynamic shovel parameters please have a look at the official reference documentaion at RabbitMQ: Configuring Dynamic Shovels.

destinationProtocol Changes to this property will trigger replacement. String
The protocol (amqp091 or amqp10) to use when connecting to the destination. Defaults to amqp091.
destinationPublishProperties Changes to this property will trigger replacement. String
A map of properties to overwrite when shovelling messages.
destinationQueue Changes to this property will trigger replacement. String
The queue to which messages should be published. Either this or destination_exchange must be specified but not both.
prefetchCount Changes to this property will trigger replacement. Integer
The maximum number of unacknowledged messages copied over a shovel at any one time.

Deprecated: use source_prefetch_count instead

reconnectDelay Changes to this property will trigger replacement. Integer
The duration in seconds to reconnect to a broker after disconnected. Defaults to 1.
sourceAddress Changes to this property will trigger replacement. String
The AMQP 1.0 source link address.
sourceDeleteAfter Changes to this property will trigger replacement. String
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.
sourceExchange Changes to this property will trigger replacement. String
The exchange from which to consume. Either this or source_queue must be specified but not both.
sourceExchangeKey Changes to this property will trigger replacement. String
The routing key when using source_exchange.
sourcePrefetchCount Changes to this property will trigger replacement. Integer
The maximum number of unacknowledged messages copied over a shovel at any one time.
sourceProtocol Changes to this property will trigger replacement. String
The protocol (amqp091 or amqp10) to use when connecting to the source. Defaults to amqp091.
sourceQueue Changes to this property will trigger replacement. String
The queue from which to consume. Either this or source_exchange must be specified but not both.
destinationUri
This property is required.
Changes to this property will trigger replacement.
string
The amqp uri for the destination .
sourceUri
This property is required.
Changes to this property will trigger replacement.
string
The amqp uri for the source.
ackMode Changes to this property will trigger replacement. string
Determines how the shovel should acknowledge messages. Possible values are: on-confirm, on-publish and no-ack. Defaults to on-confirm.
addForwardHeaders Changes to this property will trigger replacement. boolean
Whether to add x-shovelled headers to shovelled messages.

Deprecated: use destination_add_forward_headers instead

deleteAfter Changes to this property will trigger replacement. string
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.

Deprecated: use source_delete_after instead

destinationAddForwardHeaders Changes to this property will trigger replacement. boolean
Whether to add x-shovelled headers to shovelled messages.
destinationAddTimestampHeader Changes to this property will trigger replacement. boolean
destinationAddress Changes to this property will trigger replacement. string
The AMQP 1.0 destination link address.
destinationApplicationProperties Changes to this property will trigger replacement. string
Application properties to set when shovelling messages.
destinationExchange Changes to this property will trigger replacement. string
The exchange to which messages should be published. Either this or destination_queue must be specified but not both.
destinationExchangeKey Changes to this property will trigger replacement. string
The routing key when using destination_exchange.
destinationProperties Changes to this property will trigger replacement. string

Properties to overwrite when shovelling messages.

For more details regarding dynamic shovel parameters please have a look at the official reference documentaion at RabbitMQ: Configuring Dynamic Shovels.

destinationProtocol Changes to this property will trigger replacement. string
The protocol (amqp091 or amqp10) to use when connecting to the destination. Defaults to amqp091.
destinationPublishProperties Changes to this property will trigger replacement. string
A map of properties to overwrite when shovelling messages.
destinationQueue Changes to this property will trigger replacement. string
The queue to which messages should be published. Either this or destination_exchange must be specified but not both.
prefetchCount Changes to this property will trigger replacement. number
The maximum number of unacknowledged messages copied over a shovel at any one time.

Deprecated: use source_prefetch_count instead

reconnectDelay Changes to this property will trigger replacement. number
The duration in seconds to reconnect to a broker after disconnected. Defaults to 1.
sourceAddress Changes to this property will trigger replacement. string
The AMQP 1.0 source link address.
sourceDeleteAfter Changes to this property will trigger replacement. string
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.
sourceExchange Changes to this property will trigger replacement. string
The exchange from which to consume. Either this or source_queue must be specified but not both.
sourceExchangeKey Changes to this property will trigger replacement. string
The routing key when using source_exchange.
sourcePrefetchCount Changes to this property will trigger replacement. number
The maximum number of unacknowledged messages copied over a shovel at any one time.
sourceProtocol Changes to this property will trigger replacement. string
The protocol (amqp091 or amqp10) to use when connecting to the source. Defaults to amqp091.
sourceQueue Changes to this property will trigger replacement. string
The queue from which to consume. Either this or source_exchange must be specified but not both.
destination_uri
This property is required.
Changes to this property will trigger replacement.
str
The amqp uri for the destination .
source_uri
This property is required.
Changes to this property will trigger replacement.
str
The amqp uri for the source.
ack_mode Changes to this property will trigger replacement. str
Determines how the shovel should acknowledge messages. Possible values are: on-confirm, on-publish and no-ack. Defaults to on-confirm.
add_forward_headers Changes to this property will trigger replacement. bool
Whether to add x-shovelled headers to shovelled messages.

Deprecated: use destination_add_forward_headers instead

delete_after Changes to this property will trigger replacement. str
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.

Deprecated: use source_delete_after instead

destination_add_forward_headers Changes to this property will trigger replacement. bool
Whether to add x-shovelled headers to shovelled messages.
destination_add_timestamp_header Changes to this property will trigger replacement. bool
destination_address Changes to this property will trigger replacement. str
The AMQP 1.0 destination link address.
destination_application_properties Changes to this property will trigger replacement. str
Application properties to set when shovelling messages.
destination_exchange Changes to this property will trigger replacement. str
The exchange to which messages should be published. Either this or destination_queue must be specified but not both.
destination_exchange_key Changes to this property will trigger replacement. str
The routing key when using destination_exchange.
destination_properties Changes to this property will trigger replacement. str

Properties to overwrite when shovelling messages.

For more details regarding dynamic shovel parameters please have a look at the official reference documentaion at RabbitMQ: Configuring Dynamic Shovels.

destination_protocol Changes to this property will trigger replacement. str
The protocol (amqp091 or amqp10) to use when connecting to the destination. Defaults to amqp091.
destination_publish_properties Changes to this property will trigger replacement. str
A map of properties to overwrite when shovelling messages.
destination_queue Changes to this property will trigger replacement. str
The queue to which messages should be published. Either this or destination_exchange must be specified but not both.
prefetch_count Changes to this property will trigger replacement. int
The maximum number of unacknowledged messages copied over a shovel at any one time.

Deprecated: use source_prefetch_count instead

reconnect_delay Changes to this property will trigger replacement. int
The duration in seconds to reconnect to a broker after disconnected. Defaults to 1.
source_address Changes to this property will trigger replacement. str
The AMQP 1.0 source link address.
source_delete_after Changes to this property will trigger replacement. str
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.
source_exchange Changes to this property will trigger replacement. str
The exchange from which to consume. Either this or source_queue must be specified but not both.
source_exchange_key Changes to this property will trigger replacement. str
The routing key when using source_exchange.
source_prefetch_count Changes to this property will trigger replacement. int
The maximum number of unacknowledged messages copied over a shovel at any one time.
source_protocol Changes to this property will trigger replacement. str
The protocol (amqp091 or amqp10) to use when connecting to the source. Defaults to amqp091.
source_queue Changes to this property will trigger replacement. str
The queue from which to consume. Either this or source_exchange must be specified but not both.
destinationUri
This property is required.
Changes to this property will trigger replacement.
String
The amqp uri for the destination .
sourceUri
This property is required.
Changes to this property will trigger replacement.
String
The amqp uri for the source.
ackMode Changes to this property will trigger replacement. String
Determines how the shovel should acknowledge messages. Possible values are: on-confirm, on-publish and no-ack. Defaults to on-confirm.
addForwardHeaders Changes to this property will trigger replacement. Boolean
Whether to add x-shovelled headers to shovelled messages.

Deprecated: use destination_add_forward_headers instead

deleteAfter Changes to this property will trigger replacement. String
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.

Deprecated: use source_delete_after instead

destinationAddForwardHeaders Changes to this property will trigger replacement. Boolean
Whether to add x-shovelled headers to shovelled messages.
destinationAddTimestampHeader Changes to this property will trigger replacement. Boolean
destinationAddress Changes to this property will trigger replacement. String
The AMQP 1.0 destination link address.
destinationApplicationProperties Changes to this property will trigger replacement. String
Application properties to set when shovelling messages.
destinationExchange Changes to this property will trigger replacement. String
The exchange to which messages should be published. Either this or destination_queue must be specified but not both.
destinationExchangeKey Changes to this property will trigger replacement. String
The routing key when using destination_exchange.
destinationProperties Changes to this property will trigger replacement. String

Properties to overwrite when shovelling messages.

For more details regarding dynamic shovel parameters please have a look at the official reference documentaion at RabbitMQ: Configuring Dynamic Shovels.

destinationProtocol Changes to this property will trigger replacement. String
The protocol (amqp091 or amqp10) to use when connecting to the destination. Defaults to amqp091.
destinationPublishProperties Changes to this property will trigger replacement. String
A map of properties to overwrite when shovelling messages.
destinationQueue Changes to this property will trigger replacement. String
The queue to which messages should be published. Either this or destination_exchange must be specified but not both.
prefetchCount Changes to this property will trigger replacement. Number
The maximum number of unacknowledged messages copied over a shovel at any one time.

Deprecated: use source_prefetch_count instead

reconnectDelay Changes to this property will trigger replacement. Number
The duration in seconds to reconnect to a broker after disconnected. Defaults to 1.
sourceAddress Changes to this property will trigger replacement. String
The AMQP 1.0 source link address.
sourceDeleteAfter Changes to this property will trigger replacement. String
Determines when (if ever) the shovel should delete itself. Possible values are: never, queue-length or an integer.
sourceExchange Changes to this property will trigger replacement. String
The exchange from which to consume. Either this or source_queue must be specified but not both.
sourceExchangeKey Changes to this property will trigger replacement. String
The routing key when using source_exchange.
sourcePrefetchCount Changes to this property will trigger replacement. Number
The maximum number of unacknowledged messages copied over a shovel at any one time.
sourceProtocol Changes to this property will trigger replacement. String
The protocol (amqp091 or amqp10) to use when connecting to the source. Defaults to amqp091.
sourceQueue Changes to this property will trigger replacement. String
The queue from which to consume. Either this or source_exchange must be specified but not both.

Import

Shovels can be imported using the name and vhost

E.g.

$ pulumi import rabbitmq:index/shovel:Shovel test shovelTest@test
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
RabbitMQ pulumi/pulumi-rabbitmq
License
Apache-2.0
Notes
This Pulumi package is based on the rabbitmq Terraform Provider.