EmailRoutingCatchAllArgs

data class EmailRoutingCatchAllArgs(val actions: Output<List<EmailRoutingCatchAllActionArgs>>? = null, val enabled: Output<Boolean>? = null, val matchers: Output<List<EmailRoutingCatchAllMatcherArgs>>? = null, val name: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<EmailRoutingCatchAllArgs>

Provides a resource for managing Email Routing Addresses catch all behaviour.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.EmailRoutingCatchAll("example", {
zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
name: "example catch all",
enabled: true,
matchers: [{
type: "all",
}],
actions: [{
type: "forward",
values: ["destinationaddress@example&#46;net"],
}],
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.EmailRoutingCatchAll("example",
zone_id="0da42c8d2132a9ddaf714f9e7c920711",
name="example catch all",
enabled=True,
matchers=[{
"type": "all",
}],
actions=[{
"type": "forward",
"values": ["destinationaddress@example&#46;net"],
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.EmailRoutingCatchAll("example", new()
{
ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
Name = "example catch all",
Enabled = true,
Matchers = new[]
{
new Cloudflare.Inputs.EmailRoutingCatchAllMatcherArgs
{
Type = "all",
},
},
Actions = new[]
{
new Cloudflare.Inputs.EmailRoutingCatchAllActionArgs
{
Type = "forward",
Values = new[]
{
"destinationaddress@example.net",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewEmailRoutingCatchAll(ctx, "example", &cloudflare.EmailRoutingCatchAllArgs{
ZoneId: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
Name: pulumi.String("example catch all"),
Enabled: pulumi.Bool(true),
Matchers: cloudflare.EmailRoutingCatchAllMatcherArray{
&cloudflare.EmailRoutingCatchAllMatcherArgs{
Type: pulumi.String("all"),
},
},
Actions: cloudflare.EmailRoutingCatchAllActionArray{
&cloudflare.EmailRoutingCatchAllActionArgs{
Type: pulumi.String("forward"),
Values: pulumi.StringArray{
pulumi.String("destinationaddress@example.net"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.EmailRoutingCatchAll;
import com.pulumi.cloudflare.EmailRoutingCatchAllArgs;
import com.pulumi.cloudflare.inputs.EmailRoutingCatchAllMatcherArgs;
import com.pulumi.cloudflare.inputs.EmailRoutingCatchAllActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new EmailRoutingCatchAll("example", EmailRoutingCatchAllArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.name("example catch all")
.enabled(true)
.matchers(EmailRoutingCatchAllMatcherArgs.builder()
.type("all")
.build())
.actions(EmailRoutingCatchAllActionArgs.builder()
.type("forward")
.values("destinationaddress@example.net")
.build())
.build());
}
}
resources:
example:
type: cloudflare:EmailRoutingCatchAll
properties:
zoneId: 0da42c8d2132a9ddaf714f9e7c920711
name: example catch all
enabled: true
matchers:
- type: all
actions:
- type: forward
values:
- destinationaddress@example.net

Constructors

Link copied to clipboard
constructor(actions: Output<List<EmailRoutingCatchAllActionArgs>>? = null, enabled: Output<Boolean>? = null, matchers: Output<List<EmailRoutingCatchAllMatcherArgs>>? = null, name: Output<String>? = null, zoneId: Output<String>? = null)

Properties

Link copied to clipboard

List actions patterns.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Routing rule status.

Link copied to clipboard

Matching patterns to forward to your actions.

Link copied to clipboard
val name: Output<String>? = null

Routing rule name.

Link copied to clipboard
val zoneId: Output<String>? = null

The zone identifier to target for the resource.

Functions

Link copied to clipboard
open override fun toJava(): EmailRoutingCatchAllArgs