-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1895 from marco-lancini/email-routing-examples
- Loading branch information
Showing
5 changed files
with
57 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
```release-note:note | ||
resource/cloudflare_email_routing_rule: Fix example resource to use correct syntax | ||
``` | ||
|
||
```release-note:note | ||
resource/cloudflare_email_routing_rule_catch_all: Fix example resource to use correct syntax | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,33 @@ | ||
--- | ||
page_title: "cloudflare_email_routing_catch_all Resource - Cloudflare" | ||
page_title: "cloudflare_email_routing_rule_catch_all Resource - Cloudflare" | ||
subcategory: "" | ||
description: |- | ||
Provides a resource for managing Email Routing Addresses catch all behaviour. | ||
--- | ||
|
||
# cloudflare_email_routing_catch_all (Resource) | ||
# cloudflare_email_routing_rule_catch_all (Resource) | ||
|
||
Provides a resource for managing Email Routing Addresses catch all behaviour. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "cloudflare_email_routing_rule_catch_all" "main" { | ||
zone_id = "0da42c8d2132a9ddaf714f9e7c920711" | ||
name = "terraform rule" | ||
enabled = true | ||
matcher { | ||
type = "all" | ||
} | ||
action { | ||
type = "forward" | ||
value = ["[email protected]"] | ||
} | ||
} | ||
``` | ||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
@@ -50,5 +69,3 @@ Optional: | |
|
||
- `field` (String) Field for type matcher. | ||
- `value` (String) Value for matcher. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,20 +16,17 @@ resource "cloudflare_email_routing_rule" "main" { | |
zone_id = "0da42c8d2132a9ddaf714f9e7c920711" | ||
name = "terraform rule" | ||
enabled = true | ||
matchers = [ | ||
{ | ||
type = "literal", | ||
field = "to", | ||
value = "[email protected]" | ||
} | ||
] | ||
actions = [ | ||
{ | ||
type = "forward" | ||
value = ["[email protected]"] | ||
} | ||
] | ||
matcher { | ||
type = "literal" | ||
field = "to" | ||
value = "[email protected]" | ||
} | ||
action { | ||
type = "forward" | ||
value = ["[email protected]"] | ||
} | ||
} | ||
``` | ||
<!-- schema generated by tfplugindocs --> | ||
|
@@ -72,5 +69,3 @@ Optional: | |
|
||
- `field` (String) Field for type matcher. | ||
- `value` (String) Value for matcher. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,15 @@ resource "cloudflare_email_routing_rule" "main" { | |
zone_id = "0da42c8d2132a9ddaf714f9e7c920711" | ||
name = "terraform rule" | ||
enabled = true | ||
matchers = [ | ||
{ | ||
type = "literal", | ||
field = "to", | ||
value = "[email protected]" | ||
} | ||
] | ||
|
||
actions = [ | ||
{ | ||
type = "forward" | ||
value = ["[email protected]"] | ||
} | ||
] | ||
matcher { | ||
type = "literal" | ||
field = "to" | ||
value = "[email protected]" | ||
} | ||
|
||
action { | ||
type = "forward" | ||
value = ["[email protected]"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,13 @@ resource "cloudflare_email_routing_rule_catch_all" "main" { | |
zone_id = "0da42c8d2132a9ddaf714f9e7c920711" | ||
name = "terraform rule" | ||
enabled = true | ||
matchers = [ | ||
{ | ||
type = "all", | ||
} | ||
] | ||
|
||
actions = [ | ||
{ | ||
type = "forward" | ||
value = ["[email protected]"] | ||
} | ||
] | ||
matcher { | ||
type = "all" | ||
} | ||
|
||
action { | ||
type = "forward" | ||
value = ["[email protected]"] | ||
} | ||
} |