aboutsummaryrefslogtreecommitdiffhomepage
path: root/website/docs/r/route.html.markdown
diff options
context:
space:
mode:
authorAlexandre Garand <alexandre.garand@fretlink.com>2019-07-04 13:31:58 +0200
committerAlexandre Garand <alexandre.garand@fretlink.com>2019-07-04 14:25:40 +0200
commita1f9b9a1c1a80ee4db8de66fe1b771fe8e28cd05 (patch)
tree2841fe577e2927dc4b0e9df04c7535c9fb8d31de /website/docs/r/route.html.markdown
parentdd1186fd91ca40f876130a596f53ebef14cf8815 (diff)
downloadterraform-provider-mailgun-a1f9b9a1c1a80ee4db8de66fe1b771fe8e28cd05.tar.gz
terraform-provider-mailgun-a1f9b9a1c1a80ee4db8de66fe1b771fe8e28cd05.tar.zst
terraform-provider-mailgun-a1f9b9a1c1a80ee4db8de66fe1b771fe8e28cd05.zip
add doc
Diffstat (limited to 'website/docs/r/route.html.markdown')
-rw-r--r--website/docs/r/route.html.markdown51
1 files changed, 51 insertions, 0 deletions
diff --git a/website/docs/r/route.html.markdown b/website/docs/r/route.html.markdown
new file mode 100644
index 0000000..8452f01
--- /dev/null
+++ b/website/docs/r/route.html.markdown
@@ -0,0 +1,51 @@
1---
2layout: "mailgun"
3page_title: "Mailgun: mailgun_route"
4sidebar_current: "docs-mailgun-route"
5description: |-
6 The route_resource allows mailgun route to be managed by Terraform.
7---
8
9# mailgun\_route
10
11The route resource allows Mailgun route to be managed by Terraform.
12
13## Example Usage
14
15```hcl
16resource "mailgun_route" "example" {
17 priority=5
18 description="description"
19 expression="match_recipient(\".*@samples.mailgun.org\")"
20 actions=[
21 "forward(\"http://myhost.com/messages/\")",
22 "stop()"
23 ]
24}
25```
26
27## Argument Reference
28
29The following arguments are supported:
30
31* `priority` - (Required)Integer: smaller number indicates higher priority. Higher priority routes are handled first.
32* `expression` - (Required) An arbitrary string.
33* `description` - (Required) A filter expression like match_recipient('.*@gmail.com')
34* `actions` - (Required) Route action. This action is executed when the expression evaluates to True. Example: forward("alice@example.com") You can pass multiple action parameters.
35
36
37## Attributes Reference
38
39The following attribute is exported:
40
41* `route_id` - ID of the route.
42* `created_at` - The date of creation of the route.
43
44## Import
45
46Mailgun can be imported using the route ID, e.g.
47
48```
49tf import mailgun_route.example 4f3bad2335335426750048c6
50
51```