]> git.immae.eu Git - github/fretlink/terraform-provider-mailgun.git/blob - docs/providers/mailgun/r/route.html
Deploy fretlink/terraform-provider-mailgun to github.com/fretlink/terraform-provider...
[github/fretlink/terraform-provider-mailgun.git] / docs / providers / mailgun / r / route.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <script type="text/javascript">
5 WEB_SOCKET_SWF_LOCATION = "/__rack/WebSocketMain.swf";
6
7 </script>
8 <script type="text/javascript" src="../../../../__rack/swfobject.js"></script>
9 <script type="text/javascript" src="../../../../__rack/web_socket.js"></script>
10
11 <script type="text/javascript">
12 RACK_LIVERELOAD_PORT = 35729;
13 </script>
14 <script type="text/javascript" src="../../../../__rack/livereload.js%3Fhost=0.0.0.0&amp;port=35729"></script>
15
16
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.">
21
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">
29
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." />
41
42 <title>Mailgun: mailgun_route - Terraform by HashiCorp</title>
43
44 <!-- Stylesheets -->
45 <link rel="stylesheet" href="https://use.typekit.net/wxf7mfi.css">
46 <link href="../../../../assets/stylesheets/application.css" rel="stylesheet" />
47
48 <!-- Site scripts -->
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>
51
52 <!-- Analytics scrpts -->
53 <script defer>
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");
55 </script>
56
57
58 </head>
59
60 <body id="page-docs-mailgun-route" class="layout-mailgun page-mailgun-mailgun-route">
61
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">
63 <defs>
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 "/>
66 </symbol>
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"/>
69 </symbol>
70 </defs>
71 </svg>
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>
77 </div>
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>
87 </span>
88 </div>
89 </button>
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&nbsp;Run</h2>
96 <p class="mega-nav-h2">Any infrastructure for any&nbsp;application</p>
97 </div>
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&nbsp;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>
100 </div>
101 </div>
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">
106 <li>
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" />
110 </div>
111 <b>Vagrant</b>
112 <ul>
113 <li><span class="mega-nav-tag">Build</span></li>
114 <li><span class="mega-nav-tag">Test</span></li>
115 </ul>
116 </a>
117 </li>
118 <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" />
122 </div>
123 <b>Packer</b>
124 <ul>
125 <li><span class="mega-nav-tag">Package</span></li>
126 </ul>
127 </a>
128 </li>
129 <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" />
133 </div>
134 <b>Terraform</b>
135 <ul>
136 <li><span class="mega-nav-tag">Provision</span></li>
137 </ul>
138 </a>
139 </li>
140 </ul>
141 </div>
142 <div class="mega-nav-body-grid-item">
143 <h3 class="mega-nav-h3">Secure</h3>
144 <ul class="mega-nav-grid">
145 <li>
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" />
149 </div>
150 <b>Vault</b>
151 <ul>
152 <li><span class="mega-nav-tag">Secure</span></li>
153 </ul>
154 </a>
155 </li>
156 </ul>
157 </div>
158 <div class="mega-nav-body-grid-item">
159 <h3 class="mega-nav-h3">Connect</h3>
160 <ul class="mega-nav-grid">
161 <li>
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" />
165 </div>
166 <b>Consul</b>
167 <ul>
168 <li><span class="mega-nav-tag">Connect</span></li>
169 </ul>
170 </a>
171 </li>
172 </ul>
173 </div>
174 <div class="mega-nav-body-grid-item">
175 <h3 class="mega-nav-h3">Run</h3>
176 <ul class="mega-nav-grid">
177 <li>
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" />
181 </div>
182 <b>Nomad</b>
183 <ul>
184 <li><span class="mega-nav-tag">Run</span></li>
185 </ul>
186 </a>
187 </li>
188 </ul>
189 </div>
190 </div>
191 <div class="mega-nav-body-footer">
192 <p>Seven elements of the modern Application Lifecycle</p>
193 </div>
194 </div>
195 </div>
196 </div>
197 </div>
198 </div>
199 </div>
200 </div>
201
202
203 <div id="header" class="navigation navbar-static-top hidden-print">
204 <div class="container">
205 <div class="row">
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>
216 </svg>
217
218 </a>
219 </div>
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>
225 </button>
226 </div>
227
228
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>
238 </ul>
239 </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>
253
254 </ul>
255 </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>
258 <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>
262 </svg>
263 Download
264 </a>
265 </li>
266 <li>
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>
270 </svg>
271 GitHub
272 </a>
273 </li>
274 </ul>
275 </nav>
276 </div>
277 </div>
278 </div>
279 </div>
280 </div>
281
282
283 <div class="sidebar-overlay"></div>
284
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>
293 </svg>
294
295 </div>
296
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>
302 </ul>
303
304 <div class="divider"></div>
305
306 <ul class="external nav sidebar-nav">
307 <li>
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>
311 </svg>
312 Download
313 </a>
314 </li>
315 <li>
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>
319 </svg>
320 GitHub
321 </a>
322 </li>
323 </ul>
324
325 <div class="divider"></div>
326
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>
338
339 </ul>
340
341 </aside>
342
343
344 <div class="container">
345 <div class="row">
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">
352 <li>
353 <a href="http://localhost:4567/docs/providers/index.html">All Providers</a>
354 </li>
355
356 <li>
357 <a href="../index.html">Mailgun Provider</a>
358 </li>
359
360 <li>
361 <a href="route.html#">Resources</a>
362 <ul class="nav nav-visible">
363 <li>
364 <a href="domain.html">mailgun_domain</a>
365 </li>
366 <li>
367 <a href="route.html" class="current-page">mailgun_route</a>
368 </li>
369 </ul>
370 </li>
371 </ul>
372 </div>
373
374 </div>
375
376 <div id="inner" class="col-sm-8 col-md-9 col-xs-12" role="main">
377
378 <h1 id="mailgun_route">
379 <a name="mailgun_route" class="anchor" href="route.html#mailgun_route">&raquo;</a>
380 mailgun_route
381 </h1>
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">&raquo;</a>
385 Example Usage
386 </h2>
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">&raquo;</a>
398 Argument Reference
399 </h2>
400 <p>The following arguments are supported:</p>
401
402 <ul>
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.
404 </li>
405 <li><a name="expression" /><a href="route.html#expression"><code>expression</code></a> - (Required) An arbitrary string.
406 </li>
407 <li><a name="description" /><a href="route.html#description"><code>description</code></a> - (Required) A filter expression like match_recipient(&#39;.*@gmail.com&#39;)
408 </li>
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(&quot;<a href="mailto:alice@example.com">alice@example.com</a>&quot;) You can pass multiple action parameters.
410 </li>
411 </ul>
412 <h2 id="attributes-reference">
413 <a name="attributes-reference" class="anchor" href="route.html#attributes-reference">&raquo;</a>
414 Attributes Reference
415 </h2>
416 <p>The following attribute is exported:</p>
417
418 <ul>
419 <li><a name="route_id" /><a href="route.html#route_id"><code>route_id</code></a> - ID of the route.
420 </li>
421 <li><a name="created_at" /><a href="route.html#created_at"><code>created_at</code></a> - The date of creation of the route.
422 </li>
423 </ul>
424 <h2 id="import">
425 <a name="import" class="anchor" href="route.html#import">&raquo;</a>
426 Import
427 </h2>
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
430
431 </code></pre></div>
432
433 </div>
434 </div>
435 </div>
436
437
438 <div id="footer" class="navigation hidden-print">
439 <div class="container">
440 <div class="row">
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>
449 </ul>
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>
452 </ul>
453 </div>
454 </div>
455 </div>
456 </div>
457
458 <script type="application/ld+json">
459 {
460 "@context": "http://schema.org",
461 "@type": "Product",
462 "name": "Terraform",
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",
467 "sameAs": [
468 "https://github.com/hashicorp/terraform"
469 ]
470 }
471 </script>
472 </body>
473 </html>