From 01ed4a250a2c739206291455be02fb28a6a2987a Mon Sep 17 00:00:00 2001 From: Raymond Fallon Date: Wed, 6 May 2020 15:10:21 -0400 Subject: [PATCH] Include default values in Federation docs. --- website/docs/r/federation-upstream.html.markdown | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/website/docs/r/federation-upstream.html.markdown b/website/docs/r/federation-upstream.html.markdown index dcb15738..e96710a6 100644 --- a/website/docs/r/federation-upstream.html.markdown +++ b/website/docs/r/federation-upstream.html.markdown @@ -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 @@ -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). @@ -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