4 <script type=
"text/javascript">
5 WEB_SOCKET_SWF_LOCATION = "/__rack/WebSocketMain.swf";
8 <script type=
"text/javascript" src=
"../../../../__rack/swfobject.js"></script>
9 <script type=
"text/javascript" src=
"../../../../__rack/web_socket.js"></script>
11 <script type=
"text/javascript">
12 RACK_LIVERELOAD_PORT =
35729;
14 <script type=
"text/javascript" src=
"../../../../__rack/livereload.js%3Fhost=0.0.0.0&port=35729"></script>
17 <meta charset=
"utf-8">
18 <meta name=
"mobile-web-app-capable" content=
"yes">
19 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
20 <meta name=
"description" content=
"The route_resource allows mailgun route to be managed by Terraform.">
22 <link rel=
"apple-touch-icon" sizes=
"180x180" href=
"http://localhost:4567/assets/images/favicons/apple-touch-icon.png">
23 <link rel=
"icon" type=
"image/png" href=
"http://localhost:4567/assets/images/favicons/favicon-32x32.png" sizes=
"32x32">
24 <link rel=
"icon" type=
"image/png" href=
"http://localhost:4567/assets/images/favicons/favicon-16x16.png" sizes=
"16x16">
25 <link rel=
"manifest" href=
"http://localhost:4567/android-manifest.json">
26 <link rel=
"mask-icon" href=
"http://localhost:4567/assets/images/favicons/safari-pinned-tab.svg" color=
"#5C4EE5">
27 <meta name=
"msapplication-config" content=
"/microsoft-tile.xml" />
28 <meta name=
"theme-color" content=
"#ffffff">
30 <meta name=
"twitter:card" content=
"summary" />
31 <meta property=
"og:image" content=
"https://www.terraform.io/assets/images/og-image.png"/>
32 <meta property=
"og:image:width" content=
"100"/>
33 <meta property=
"og:image:height" content=
"100"/>
34 <meta name=
"twitter:site" content=
"@HashiCorp" />
35 <meta name=
"twitter:creator" content=
"@HashiCorp" />
36 <meta property=
"og:type" content=
"website" />
37 <meta property=
"og:url" content=
"https://www.terraform.io/docs/providers/mailgun/r/route.html" />
38 <meta property=
"og:title" content=
"Mailgun: mailgun_route - Terraform by HashiCorp" />
39 <meta property=
"og:site_name" content=
"Terraform by HashiCorp"/>
40 <meta property=
"og:description" content=
"The route_resource allows mailgun route to be managed by Terraform." />
42 <title>Mailgun: mailgun_route - Terraform by HashiCorp
</title>
45 <link rel=
"stylesheet" href=
"https://use.typekit.net/wxf7mfi.css">
46 <link href=
"../../../../assets/stylesheets/application.css" rel=
"stylesheet" />
49 <!--[if lt IE 9]><script src="/assets/javascripts/ie-compat.js" defer="defer"></script><![endif]-->
50 <script src=
"../../../../assets/javascripts/application.js" defer=
"defer"></script>
52 <!-- Analytics scrpts -->
54 !function(){var e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!
0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on"],e.factory=function(t){return function(){var a=Array.prototype.slice.call(arguments);return a.unshift(t),e.push(a),e}};for(var t=
0;t
<e.methods.length;t++){var a=e.methods[t];e[a]=e.factory(a)}e.load=function(e){var t=document.createElement(
"script");t.
type=
"text/javascript",t.async=!
0,t.src=(
"https:"===document.location.protocol?
"https://":
"http://")+
"cdn.segment.com/analytics.js/v1/"+e+
"/analytics.min.js";var a=document.getElementsByTagName(
"script")[
0];a.parentNode.insertBefore(t,a)},e.
SNIPPET_VERSION=
"4.0.0",e.load(
"0EXTgkNx0Ydje2PGXVbRhpKKoe5wtzcE")}}();var om597a24292a958,om597a24292a958_poll=function(){var e=
0;return function(t,a){clearInterval(e),e=setInterval(t,a)}}();!function(e,t,a){if(e.getElementById(a))om597a24292a958_poll(function(){if(window.om_loaded&&!om597a24292a958)return(om597a24292a958=new OptinMonsterApp).init({s:
"35109.597a24292a958",staging:
0,dev:
0,beta:
0})},
25);else{var n=!
1,o=e.createElement(
"script");o.id=a,o.
src=
"//a.optnmstr.com/app/js/api.min.js",o.async=!
0,o.onload=o.onreadystatechange=function(){if(!(n||this.readyState&&
"loaded"!==this.readyState&&
"complete"!==this.readyState))try{n=om_loaded=!
0,(om597a24292a958=new OptinMonsterApp).init({s:
"35109.597a24292a958",staging:
0,dev:
0,beta:
0}),o.onload=o.onreadystatechange=null}catch(e){}},(document.getElementsByTagName(
"head")[
0]||document.documentElement).appendChild(o)}}(document,
0,
"omapi-script");
60 <body id=
"page-docs-mailgun-route" class=
"layout-mailgun page-mailgun-mailgun-route">
62 <svg class=
"hidden-print" aria-hidden=
"true" style=
"position: absolute; width: 0; height: 0;" width=
"0" height=
"0" version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
64 <symbol id=
"mega-nav-icon-angle" viewBox=
"0 0 13 7">
65 <polygon points=
"6.5,6.5 0.7,1.6 1.3,0.8 6.5,5.2 11.7,0.8 12.3,1.6 "/>
67 <symbol id=
"mega-nav-icon-close" viewBox=
"0 0 13 15">
68 <path vector-effect=
"non-scaling-stroke" d=
"M1.1 14L11.9 1M11.9 14L1.1 1"/>
72 <div class=
"hidden-print mega-nav-sandbox">
73 <div class=
"mega-nav-banner">
74 <div class=
"container">
75 <div class=
"mega-nav-banner-item">
76 <a class=
"mega-nav-banner-logo" href=
"https://www.hashicorp.com"><img src=
"../../../../assets/images/mega-nav/logo-hashicorp-wordmark.svg" alt=
"HashiCorp Logo" /></a>
78 <div class=
"mega-nav-banner-item">
79 <p class=
"mega-nav-tagline"><span class=
"visible-xs text-muted">Learn the
</span><span class=
"hidden-xs text-muted">Learn how Terraform fits into the
</span></p>
80 <div id=
"#mega-nav" class=
"mega-nav">
81 <button type=
"button" id=
"mega-nav-ctrl" class=
"mega-nav-ctrl">
82 <div class=
"mega-nav-ctrl-items">
83 <img src=
"../../../../assets/images/mega-nav/logo-hashicorp.svg" alt=
"HashiCorp Logo" />
84 <strong>HashiCorp Suite
</strong>
85 <span class=
"mega-nav-icon-outline">
86 <svg class=
"mega-nav-icon mega-nav-icon-angle-right" aria-hidden=
"true"><use xmlns:
xlink=
"http://www.w3.org/1999/xlink" xlink:
href=
"#mega-nav-icon-angle"></use></svg><span class=
"visuallyhidden">Open
</span>
90 <div id=
"mega-nav-body-ct" class=
"mega-nav-body-ct" aria-labelledby=
"mega-nav-ctrl">
91 <div class=
"mega-nav-body">
92 <button type=
"button" id=
"mega-nav-close" class=
"mega-nav-close"><svg class=
"mega-nav-icon mega-nav-icon-close" aria-hidden=
"true"><use xmlns:
xlink=
"http://www.w3.org/1999/xlink" xlink:
href=
"#mega-nav-icon-close"></use></svg><span class=
"visuallyhidden">Close
</span></button>
93 <div class=
"mega-nav-body-header">
94 <div class=
"mega-nav-body-header-item">
95 <h2 class=
"mega-nav-h1">Provision, Secure, Connect, and
Run
</h2>
96 <p class=
"mega-nav-h2">Any infrastructure for any
application
</p>
98 <div class=
"mega-nav-body-header-item">
99 <a href=
"https://www.hashicorp.com/" class=
"mega-nav-btn"><img src=
"../../../../assets/images/mega-nav/logo-hashicorp.svg" alt=
"HashiCorp Logo" /> Learn the HashiCorp Enterprise
Suite
<svg class=
"mega-nav-icon mega-nav-icon-angle-right" aria-hidden=
"true"><use xmlns:
xlink=
"http://www.w3.org/1999/xlink" xlink:
href=
"#mega-nav-icon-angle"></use></svg></a>
102 <div class=
"mega-nav-body-grid">
103 <div class=
"mega-nav-body-grid-item">
104 <h3 class=
"mega-nav-h3">Provision
</h3>
105 <ul class=
"mega-nav-grid">
107 <a href=
"https://www.vagrantup.com" class=
"mega-nav-grid-item mega-nav-grid-item-vagrant">
108 <div class=
"mega-nav-grid-item-img">
109 <img src=
"../../../../assets/images/mega-nav/logo-vagrant.svg" alt=
"Vagrant Logo" />
113 <li><span class=
"mega-nav-tag">Build
</span></li>
114 <li><span class=
"mega-nav-tag">Test
</span></li>
119 <a href=
"https://www.packer.io" class=
"mega-nav-grid-item mega-nav-grid-item-packer">
120 <div class=
"mega-nav-grid-item-img">
121 <img src=
"../../../../assets/images/mega-nav/logo-packer.svg" alt=
"Packer Logo" />
125 <li><span class=
"mega-nav-tag">Package
</span></li>
130 <a href=
"https://www.terraform.io" class=
"mega-nav-grid-item mega-nav-grid-item-terraform">
131 <div class=
"mega-nav-grid-item-img">
132 <img src=
"../../../../assets/images/mega-nav/logo-terraform.svg" alt=
"Terraform Logo" />
136 <li><span class=
"mega-nav-tag">Provision
</span></li>
142 <div class=
"mega-nav-body-grid-item">
143 <h3 class=
"mega-nav-h3">Secure
</h3>
144 <ul class=
"mega-nav-grid">
146 <a href=
"https://www.vaultproject.io" class=
"mega-nav-grid-item mega-nav-grid-item-vault">
147 <div class=
"mega-nav-grid-item-img">
148 <img src=
"../../../../assets/images/mega-nav/logo-vault.svg" alt=
"Vault Logo" />
152 <li><span class=
"mega-nav-tag">Secure
</span></li>
158 <div class=
"mega-nav-body-grid-item">
159 <h3 class=
"mega-nav-h3">Connect
</h3>
160 <ul class=
"mega-nav-grid">
162 <a href=
"https://www.consul.io" class=
"mega-nav-grid-item mega-nav-grid-item-consul">
163 <div class=
"mega-nav-grid-item-img">
164 <img src=
"../../../../assets/images/mega-nav/logo-consul.svg" alt=
"Consul Logo" />
168 <li><span class=
"mega-nav-tag">Connect
</span></li>
174 <div class=
"mega-nav-body-grid-item">
175 <h3 class=
"mega-nav-h3">Run
</h3>
176 <ul class=
"mega-nav-grid">
178 <a href=
"https://www.nomadproject.io" class=
"mega-nav-grid-item mega-nav-grid-item-nomad">
179 <div class=
"mega-nav-grid-item-img">
180 <img src=
"../../../../assets/images/mega-nav/logo-nomad.svg" alt=
"Nomad Logo" />
184 <li><span class=
"mega-nav-tag">Run
</span></li>
191 <div class=
"mega-nav-body-footer">
192 <p>Seven elements of the modern Application Lifecycle
</p>
203 <div id=
"header" class=
"navigation navbar-static-top hidden-print">
204 <div class=
"container">
206 <div class=
"col-xs-12">
207 <div class=
"navbar-header">
208 <div class=
"navbar-brand">
209 <a href=
"http://localhost:4567/">
210 <svg xmlns=
"http://www.w3.org/2000/svg" viewbox=
"0 0 251 61" class=
"logo" height=
"50">
211 <path class=
"text" fill=
"#000" fill-rule=
"nonzero" d=
"M81.78 19.54h-8.89v-5.31H96.7v5.31h-8.9v26.53h-6"></path>
212 <path class=
"text" fill=
"#000" fill-rule=
"nonzero" d=
"M102.19 41.77c2.415-.012 4.814-.383 7.12-1.1l.91 4.4c-2.745.99-5.642 1.49-8.56 1.48-7.31 0-9.85-3.39-9.85-9V31.4c0-4.92 2.2-9.08 9.66-9.08s9.13 4.35 9.13 9.37v5h-13v1.2c.05 2.78 1.05 3.88 4.59 3.88zM97.65 32h7.41v-1.18c0-2.2-.67-3.73-3.54-3.73s-3.87 1.53-3.87 3.73V32zm28.54-4.33c-2.148.97-4.217 2.102-6.19 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.955-2.313 6.12-3.06l.6 5.36zm14.24 0c-2.14.97-4.204 2.103-6.17 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.955-2.313 6.12-3.06l.58 5.36zm19.51 18.4h-4.78l-.43-1.58c-2.062 1.342-4.47 2.058-6.93 2.06-4.25 0-6.07-2.92-6.07-6.93 0-4.73 2.06-6.55 6.79-6.55h5.59v-2.44c0-2.58-.72-3.49-4.45-3.49-2.17.024-4.33.266-6.45.72l-.72-4.45c2.606-.72 5.296-1.09 8-1.1 7.31 0 9.47 2.58 9.47 8.41l-.02 15.35zm-5.83-8.8h-4.3c-1.91 0-2.44.53-2.44 2.29s.53 2.34 2.34 2.34c1.544-.024 3.058-.436 4.4-1.2v-3.43zm23.75-19.79c-1.1-.237-2.224-.364-3.35-.38-2.29 0-2.63 1-2.63 2.77v2.92h5.93l-.33 4.64h-5.59v18.64h-5.83V27.43h-3.73v-4.64h3.73v-3.25c0-4.83 2.25-7.22 7.41-7.22 1.69-.006 3.372.22 5 .67l-.61 4.49zm11.38 29.07c-8 0-10.13-4.4-10.13-9.18v-5.88c0-4.78 2.15-9.18 10.13-9.18s10.13 4.4 10.13 9.18v5.88c.01 4.78-2.15 9.18-10.13 9.18zm0-19.27c-3.11 0-4.3 1.39-4.3 4v6.26c0 2.63 1.2 4 4.3 4 3.1 0 4.3-1.39 4.3-4V31.3c0-2.63-1.19-4.02-4.3-4.02zm25.14.39c-2.14.97-4.204 2.103-6.17 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.954-2.313 6.12-3.06l.58 5.36zm16.02 18.4V29.82c0-1.24-.53-1.86-1.86-1.86-2.137.254-4.2.934-6.07 2v16.11h-5.83V22.79h4.45l.57 2c2.906-1.47 6.088-2.315 9.34-2.48 1.843-.174 3.6.82 4.4 2.49 2.91-1.49 6.104-2.34 9.37-2.49 3.87 0 5.26 2.72 5.26 6.88v16.88h-5.83V29.82c0-1.24-.53-1.86-1.86-1.86-2.14.236-4.208.917-6.07 2v16.11h-5.87z"></path>
213 <path class=
"rect-dark" fill=
"#4040B2" d=
"M36.4 39.13l16.4-9.46V10.72L36.4 20.2"></path>
214 <path class=
"rect-light" fill=
"#5C4EE5" d=
"M18.2 10.72l16.4 9.48v18.93l-16.4-9.47"></path>
215 <path class=
"rect-light" fill=
"#5C4EE5" d=
"M0 19.09l16.4 9.47V9.62L0 .15m18.2 50.53l16.4 9.47V41.21l-16.4-9.47"></path>
220 <button class=
"navbar-toggle" type=
"button">
221 <span class=
"sr-only">Toggle navigation
</span>
222 <span class=
"icon-bar"></span>
223 <span class=
"icon-bar"></span>
224 <span class=
"icon-bar"></span>
229 <div class=
"buttons hidden-xs">
230 <nav class=
"navigation-links" role=
"navigation">
231 <ul class=
"main-links nav navbar-nav navbar-right">
232 <li class=
"visible-sm"><span><a href=
"http://localhost:4567/index.html">Info
</a><svg width=
"9" height=
"5" xmlns=
"http://www.w3.org/2000/svg"><path d=
"M8.811 1.067a.612.612 0 0 0 0-.884.655.655 0 0 0-.908 0L4.5 3.491 1.097.183a.655.655 0 0 0-.909 0 .615.615 0 0 0 0 .884l3.857 3.75a.655.655 0 0 0 .91 0l3.856-3.75z" fill-rule=
"evenodd"/></svg></span>
233 <ul class=
"dropdown">
234 <li><a href=
"http://localhost:4567/intro/index.html">Intro
</a></li>
235 <li><a href=
"https://learn.hashicorp.com/terraform/">Learn
</a></li>
236 <li><a href=
"http://localhost:4567/community.html">Community
</a></li>
237 <li><a href=
"https://www.hashicorp.com/products/terraform/?utm_source=oss&utm_medium=header-nav&utm_campaign=terraform">Enterprise
</a></li>
240 <li class=
"hidden-sm"><a href=
"http://localhost:4567/intro/index.html">Intro
</a></li>
241 <li class=
"hidden-sm"><a href=
"https://learn.hashicorp.com/terraform/">Learn
</a></li>
242 <li><span><a href=
"http://localhost:4567/docs/index.html">Docs
</a><svg width=
"9" height=
"5" xmlns=
"http://www.w3.org/2000/svg"><path d=
"M8.811 1.067a.612.612 0 0 0 0-.884.655.655 0 0 0-.908 0L4.5 3.491 1.097.183a.655.655 0 0 0-.909 0 .615.615 0 0 0 0 .884l3.857 3.75a.655.655 0 0 0 .91 0l3.856-3.75z" fill-rule=
"evenodd"/></svg></span>
243 <ul class=
"dropdown">
244 <li><a href=
"http://localhost:4567/docs/index.html">Docs Home
</a></li>
245 <li><a href=
"http://localhost:4567/docs/cli-index.html">Terraform CLI
</a></li>
246 <li><a href=
"http://localhost:4567/docs/enterprise/index.html">Terraform Enterprise
</a></li>
247 <li><a href=
"http://localhost:4567/docs/providers/index.html">Providers
</a></li>
248 <li><a href=
"http://localhost:4567/docs/glossary.html">Glossary
</a></li>
249 <li><a href=
"http://localhost:4567/guides/index.html">Guides and Whitepapers
</a></li>
250 <li><a href=
"http://localhost:4567/docs/registry/index.html">Registry
</a></li>
251 <li><a href=
"http://localhost:4567/docs/github-actions/index.html">GitHub Actions
</a></li>
252 <li><a href=
"http://localhost:4567/docs/extend/index.html">Extending Terraform
</a></li>
256 <li class=
"hidden-sm"><a href=
"http://localhost:4567/community.html">Community
</a></li>
257 <li class=
"hidden-sm"><a href=
"https://www.hashicorp.com/products/terraform/?utm_source=oss&utm_medium=header-nav&utm_campaign=terraform">Enterprise
</a></li>
259 <a href=
"http://localhost:4567/downloads.html">
260 <svg xmlns=
"http://www.w3.org/2000/svg" version=
"1.1" viewbox=
"0 0 28 28" enable-background=
"new 0 0 28 28" xmlns:
xlink=
"http://www.w3.org/1999/xlink" xml:
space=
"preserve">
261 <path d=
"M28 0H0v28h28V0zM13.8 22.9L7 17.3l2-2.4 3.2 2.6V7h3.2v10.5l3.2-2.6 2 2.4L13.8 22.9z"></path>
267 <a href=
"https://github.com/hashicorp/terraform">
268 <svg xmlns=
"http://www.w3.org/2000/svg" version=
"1.1" viewbox=
"0 0 28 28" enable-background=
"new 0 0 28 28" xmlns:
xlink=
"http://www.w3.org/1999/xlink" xml:
space=
"preserve">
269 <path d=
"M28 0H0v28h11.4c0 0 0-1.3 0-2.4C7.7 26.4 7 23.9 7 23.9 6.4 22.4 5.5 22 5.5 22c-1.2-0.8 0.1-0.8 0.1-0.8 1.3 0.1 2 1.4 2 1.4 1.2 2 3 1.4 3.8 1.1 0.1-0.8 0.5-1.4 0.9-1.8 -2.9-0.3-6-1.5-6-6.5 0-1.4 0.5-2.6 1.3-3.5C7.5 11.5 7 10.2 7.8 8.4c0 0 1.1-0.4 3.6 1.3 1-0.3 2.2-0.4 3.3-0.4 1.1 0 2.2 0.2 3.3 0.4 2.5-1.7 3.6-1.3 3.6-1.3 0.7 1.8 0.3 3.1 0.1 3.5 0.8 0.9 1.3 2.1 1.3 3.5 0 5-3.1 6.1-6 6.5 0.5 0.4 0.9 1.2 0.9 2.4 0 1.8 0 3.7 0 3.7H28V0z"></path>
283 <div class=
"sidebar-overlay"></div>
285 <aside class=
"sidebar" role=
"navigation">
286 <div class=
"sidebar-header">
287 <svg xmlns=
"http://www.w3.org/2000/svg" viewbox=
"0 0 251 61" class=
"logo" height=
"42">
288 <path class=
"text" fill=
"#000" fill-rule=
"nonzero" d=
"M81.78 19.54h-8.89v-5.31H96.7v5.31h-8.9v26.53h-6"></path>
289 <path class=
"text" fill=
"#000" fill-rule=
"nonzero" d=
"M102.19 41.77c2.415-.012 4.814-.383 7.12-1.1l.91 4.4c-2.745.99-5.642 1.49-8.56 1.48-7.31 0-9.85-3.39-9.85-9V31.4c0-4.92 2.2-9.08 9.66-9.08s9.13 4.35 9.13 9.37v5h-13v1.2c.05 2.78 1.05 3.88 4.59 3.88zM97.65 32h7.41v-1.18c0-2.2-.67-3.73-3.54-3.73s-3.87 1.53-3.87 3.73V32zm28.54-4.33c-2.148.97-4.217 2.102-6.19 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.955-2.313 6.12-3.06l.6 5.36zm14.24 0c-2.14.97-4.204 2.103-6.17 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.955-2.313 6.12-3.06l.58 5.36zm19.51 18.4h-4.78l-.43-1.58c-2.062 1.342-4.47 2.058-6.93 2.06-4.25 0-6.07-2.92-6.07-6.93 0-4.73 2.06-6.55 6.79-6.55h5.59v-2.44c0-2.58-.72-3.49-4.45-3.49-2.17.024-4.33.266-6.45.72l-.72-4.45c2.606-.72 5.296-1.09 8-1.1 7.31 0 9.47 2.58 9.47 8.41l-.02 15.35zm-5.83-8.8h-4.3c-1.91 0-2.44.53-2.44 2.29s.53 2.34 2.34 2.34c1.544-.024 3.058-.436 4.4-1.2v-3.43zm23.75-19.79c-1.1-.237-2.224-.364-3.35-.38-2.29 0-2.63 1-2.63 2.77v2.92h5.93l-.33 4.64h-5.59v18.64h-5.83V27.43h-3.73v-4.64h3.73v-3.25c0-4.83 2.25-7.22 7.41-7.22 1.69-.006 3.372.22 5 .67l-.61 4.49zm11.38 29.07c-8 0-10.13-4.4-10.13-9.18v-5.88c0-4.78 2.15-9.18 10.13-9.18s10.13 4.4 10.13 9.18v5.88c.01 4.78-2.15 9.18-10.13 9.18zm0-19.27c-3.11 0-4.3 1.39-4.3 4v6.26c0 2.63 1.2 4 4.3 4 3.1 0 4.3-1.39 4.3-4V31.3c0-2.63-1.19-4.02-4.3-4.02zm25.14.39c-2.14.97-4.204 2.103-6.17 3.39v15h-5.83V22.79h4.92l.38 2.58c1.897-1.284 3.954-2.313 6.12-3.06l.58 5.36zm16.02 18.4V29.82c0-1.24-.53-1.86-1.86-1.86-2.137.254-4.2.934-6.07 2v16.11h-5.83V22.79h4.45l.57 2c2.906-1.47 6.088-2.315 9.34-2.48 1.843-.174 3.6.82 4.4 2.49 2.91-1.49 6.104-2.34 9.37-2.49 3.87 0 5.26 2.72 5.26 6.88v16.88h-5.83V29.82c0-1.24-.53-1.86-1.86-1.86-2.14.236-4.208.917-6.07 2v16.11h-5.87z"></path>
290 <path class=
"rect-dark" fill=
"#4040B2" d=
"M36.4 39.13l16.4-9.46V10.72L36.4 20.2"></path>
291 <path class=
"rect-light" fill=
"#5C4EE5" d=
"M18.2 10.72l16.4 9.48v18.93l-16.4-9.47"></path>
292 <path class=
"rect-light" fill=
"#5C4EE5" d=
"M0 19.09l16.4 9.47V9.62L0 .15m18.2 50.53l16.4 9.47V41.21l-16.4-9.47"></path>
297 <ul class=
"nav sidebar-nav">
298 <li><a href=
"http://localhost:4567/intro/index.html">Intro
</a></li>
299 <li><a href=
"https://learn.hashicorp.com/terraform/">Learn
</a></li>
300 <li><a href=
"http://localhost:4567/community.html">Community
</a></li>
301 <li><a href=
"https://www.hashicorp.com/products/terraform/?utm_source=oss&utm_medium=header-nav&utm_campaign=terraform">Enterprise
</a></li>
304 <div class=
"divider"></div>
306 <ul class=
"external nav sidebar-nav">
308 <a href=
"http://localhost:4567/downloads.html">
309 <svg xmlns=
"http://www.w3.org/2000/svg" version=
"1.1" viewbox=
"0 0 28 28" enable-background=
"new 0 0 28 28" xmlns:
xlink=
"http://www.w3.org/1999/xlink" xml:
space=
"preserve">
310 <path d=
"M28 0H0v28h28V0zM13.8 22.9L7 17.3l2-2.4 3.2 2.6V7h3.2v10.5l3.2-2.6 2 2.4L13.8 22.9z"></path>
316 <a href=
"https://github.com/hashicorp/terraform">
317 <svg xmlns=
"http://www.w3.org/2000/svg" version=
"1.1" viewbox=
"0 0 28 28" enable-background=
"new 0 0 28 28" xmlns:
xlink=
"http://www.w3.org/1999/xlink" xml:
space=
"preserve">
318 <path d=
"M28 0H0v28h11.4c0 0 0-1.3 0-2.4C7.7 26.4 7 23.9 7 23.9 6.4 22.4 5.5 22 5.5 22c-1.2-0.8 0.1-0.8 0.1-0.8 1.3 0.1 2 1.4 2 1.4 1.2 2 3 1.4 3.8 1.1 0.1-0.8 0.5-1.4 0.9-1.8 -2.9-0.3-6-1.5-6-6.5 0-1.4 0.5-2.6 1.3-3.5C7.5 11.5 7 10.2 7.8 8.4c0 0 1.1-0.4 3.6 1.3 1-0.3 2.2-0.4 3.3-0.4 1.1 0 2.2 0.2 3.3 0.4 2.5-1.7 3.6-1.3 3.6-1.3 0.7 1.8 0.3 3.1 0.1 3.5 0.8 0.9 1.3 2.1 1.3 3.5 0 5-3.1 6.1-6 6.5 0.5 0.4 0.9 1.2 0.9 2.4 0 1.8 0 3.7 0 3.7H28V0z"></path>
325 <div class=
"divider"></div>
327 <ul class=
"nav sidebar-nav">
328 <li><a href=
"http://localhost:4567/docs/index.html">Docs:
</a></li>
329 <li><a href=
"http://localhost:4567/docs/index.html">Docs Home
</a></li>
330 <li><a href=
"http://localhost:4567/docs/cli-index.html">Terraform CLI
</a></li>
331 <li><a href=
"http://localhost:4567/docs/enterprise/index.html">Terraform Enterprise
</a></li>
332 <li><a href=
"http://localhost:4567/docs/providers/index.html">Providers
</a></li>
333 <li><a href=
"http://localhost:4567/docs/glossary.html">Glossary
</a></li>
334 <li><a href=
"http://localhost:4567/guides/index.html">Guides and Whitepapers
</a></li>
335 <li><a href=
"http://localhost:4567/docs/registry/index.html">Registry
</a></li>
336 <li><a href=
"http://localhost:4567/docs/github-actions/index.html">GitHub Actions
</a></li>
337 <li><a href=
"http://localhost:4567/docs/extend/index.html">Extending Terraform
</a></li>
344 <div class=
"container">
346 <div id=
"docs-sidebar" class=
"col-sm-4 col-md-3 col-xs-12 hidden-print" role=
"complementary">
347 <a href=
"route.html#inner" id=
"screenreader-skip" class=
"sr-only sr-only-focusable">Skip to content
</a>
348 <a href=
"route.html#inner" id=
"mobile-skip" class=
"visible-xs">(Skip to content ⤵︎)
</a>
349 <div id=
"controls-placeholder" style=
"display: none;"></div>
350 <div class=
"docs-sidebar hidden-print affix-top" role=
"complementary">
351 <ul class=
"nav docs-sidenav">
353 <a href=
"http://localhost:4567/docs/providers/index.html">All Providers
</a>
357 <a href=
"../index.html">Mailgun Provider
</a>
361 <a href=
"route.html#">Resources
</a>
362 <ul class=
"nav nav-visible">
364 <a href=
"domain.html">mailgun_domain
</a>
367 <a href=
"route.html" class=
"current-page">mailgun_route
</a>
376 <div id=
"inner" class=
"col-sm-8 col-md-9 col-xs-12" role=
"main">
378 <h1 id=
"mailgun_route">
379 <a name=
"mailgun_route" class=
"anchor" href=
"route.html#mailgun_route">»</a>
382 <p>The route resource allows Mailgun route to be managed by Terraform.
</p>
383 <h2 id=
"example-usage">
384 <a name=
"example-usage" class=
"anchor" href=
"route.html#example-usage">»</a>
387 <div class=
"highlight"><pre class=
"highlight hcl"><code><span class=
"n">resource
</span> <span class=
"s2">"mailgun_route"</span> <span class=
"s2">"example"</span> <span class=
"p">{
</span>
388 <span class=
"n">priority
</span><span class=
"o">=
</span><span class=
"mi">5</span>
389 <span class=
"n">description
</span><span class=
"o">=
</span><span class=
"s2">"description"</span>
390 <span class=
"n">expression
</span><span class=
"o">=
</span><span class=
"s2">"match_recipient(</span><span class="se
">\"</span><span class=
"s2">.*@samples.mailgun.org
</span><span class=
"se">\"
</span><span class=
"s2">)"
</span>
391 <span class=
"n">actions
</span><span class=
"o">=
</span><span class=
"p">[
</span>
392 <span class=
"s2">"forward(</span><span class="se
">\"</span><span class=
"s2">http://myhost.com/messages/
</span><span class=
"se">\"
</span><span class=
"s2">)"
</span><span class=
"p">,
</span>
393 <span class=
"s2">"stop()"</span>
394 <span class=
"p">]
</span>
395 <span class=
"p">}
</span>
396 </code></pre></div><h2 id=
"argument-reference">
397 <a name=
"argument-reference" class=
"anchor" href=
"route.html#argument-reference">»</a>
400 <p>The following arguments are supported:
</p>
403 <li><a name=
"priority" /><a href=
"route.html#priority"><code>priority
</code></a> - (Required)Integer: smaller number indicates higher priority. Higher priority routes are handled first.
405 <li><a name=
"expression" /><a href=
"route.html#expression"><code>expression
</code></a> - (Required) An arbitrary string.
407 <li><a name=
"description" /><a href=
"route.html#description"><code>description
</code></a> - (Required) A filter expression like match_recipient(
'.*@gmail.com
')
409 <li><a name=
"actions" /><a href=
"route.html#actions"><code>actions
</code></a> - (Required) Route action. This action is executed when the expression evaluates to True. Example: forward(
"<a href=
"mailto:alice@example.com">alice@example.com
</a>") You can pass multiple action parameters.
412 <h2 id=
"attributes-reference">
413 <a name=
"attributes-reference" class=
"anchor" href=
"route.html#attributes-reference">»</a>
416 <p>The following attribute is exported:
</p>
419 <li><a name=
"route_id" /><a href=
"route.html#route_id"><code>route_id
</code></a> - ID of the route.
421 <li><a name=
"created_at" /><a href=
"route.html#created_at"><code>created_at
</code></a> - The date of creation of the route.
425 <a name=
"import" class=
"anchor" href=
"route.html#import">»</a>
428 <p>Mailgun can be imported using the route ID, e.g.
</p>
429 <div class=
"highlight"><pre class=
"highlight plaintext"><code>tf import mailgun_route.example
4f3bad2335335426750048c6
438 <div id=
"footer" class=
"navigation hidden-print">
439 <div class=
"container">
441 <div class=
"col-xs-12">
442 <ul class=
"footer-links nav navbar-nav">
443 <li><a href=
"http://localhost:4567/intro/index.html">Intro
</a></li>
444 <li><a href=
"http://localhost:4567/docs/index.html">Docs
</a></li>
445 <li><a href=
"http://localhost:4567/docs/extend/index.html">Extend
</a></li>
446 <li><a href=
"https://www.hashicorp.com/privacy">Privacy
</a></li>
447 <li><a href=
"http://localhost:4567/security.html">Security
</a></li>
448 <li><a href=
"http://localhost:4567/assets/files/press-kit.zip">Press Kit
</a></li>
450 <ul class=
"footer-links nav navbar-nav navbar-right">
451 <li><a href=
"https://github.com/terraform-providers/terraform-provider-mailgun/edit/master/website/docs/r/route.html.markdown">Edit this page
</a></li>
458 <script type=
"application/ld+json">
460 "@context": "http://schema.org",
463 "alternateName": "Terraform by HashiCorp",
464 "manufacturer": "HashiCorp",
465 "url": "https://www.terraform.io",
466 "logo": "https://www.terraform.io/assets/images/logo-hashicorp.svg",
468 "https://github.com/hashicorp/terraform"