Skip to content

Commit

Permalink
Include default values in Federation docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
niclic committed Jun 17, 2020
1 parent ccf1b1b commit 01ed4a2
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions website/docs/r/federation-upstream.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "rabbitmq_federation_upstream" "foo" {
definition {
uri = "amqp://server-name"
prefetch_count = 1000
reconnect_delay = 1
reconnect_delay = 5
ack_mode = "on-confirm"
trust_user_id = false
max_hops = 1
Expand All @@ -60,15 +60,15 @@ The `definition` block supports the following arguments:
Applicable to Both Federated Exchanges and Queues

* `uri` - (Required) The AMQP URI(s) for the upstream. Note that the URI may contain sensitive information, such as a password.
* `prefetch_count` - (Optional) Maximum number of unacknowledged messages that may be in flight over a federation link at one time.
* `reconnect_delay` - (Optional) Time in seconds to wait after a network link goes down before attempting reconnection.
* `ack_mode` - (Optional) Determines how the link should acknowledge messages. Valid values are `on-confirm`, `on-publish`, and `no-ack`.
* `trust_user_id` - (Optional) Determines how federation should interact with the validated user-id feature.
* `prefetch_count` - (Optional) Maximum number of unacknowledged messages that may be in flight over a federation link at one time. Default is `1000`.
* `reconnect_delay` - (Optional) Time in seconds to wait after a network link goes down before attempting reconnection. Default is `5`.
* `ack_mode` - (Optional) Determines how the link should acknowledge messages. Valid values are `on-confirm`, `on-publish`, and `no-ack`. Default is `on-confirm`.
* `trust_user_id` - (Optional) Determines how federation should interact with the validated user-id feature. Default is `false`.

Applicable to Federated Exchanges Only

* `exchange` - (Optional) The name of the upstream exchange.
* `max_hops` - (Optional) Maximum number of federation links that messages can traverse before being dropped.
* `max_hops` - (Optional) Maximum number of federation links that messages can traverse before being dropped. Default is `1`.
* `expires` - (Optional) The expiry time (in milliseconds) after which an upstream queue for a federated exchange may be deleted if a connection to the upstream is lost.
* `message_ttl` - (Optional) The expiry time (in milliseconds) for messages in the upstream queue for a federated exchange (see expires).

Expand All @@ -84,8 +84,7 @@ No further attributes are exported.

## Import

A Federation upstream can be imported using the `id` which is composed of `name@vhost`.
E.g.
A Federation upstream can be imported using the resource `id` which is composed of `name@vhost`, e.g.

```sh
terraform import rabbitmq_federation_upstream.foo foo@test
Expand Down

0 comments on commit 01ed4a2

Please sign in to comment.