1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. EmailRoutingDns
Viewing docs for Cloudflare v6.23.2
published on Tuesday, Oct 27, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.23.2
published on Tuesday, Oct 27, 2026 by Pulumi

    Accepted Permissions

    • Zone Settings Read
    • Zone Settings Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleEmailRoutingDns = new cloudflare.EmailRoutingDns("example_email_routing_dns", {
        zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
        name: "example.net",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_email_routing_dns = cloudflare.EmailRoutingDns("example_email_routing_dns",
        zone_id="023e105f4ecef8ad9ca31a8372d0c353",
        name="example.net")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewEmailRoutingDns(ctx, "example_email_routing_dns", &cloudflare.EmailRoutingDnsArgs{
    			ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			Name:   pulumi.String("example.net"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleEmailRoutingDns = new Cloudflare.EmailRoutingDns("example_email_routing_dns", new()
        {
            ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
            Name = "example.net",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.EmailRoutingDns;
    import com.pulumi.cloudflare.EmailRoutingDnsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 exampleEmailRoutingDns = new EmailRoutingDns("exampleEmailRoutingDns", EmailRoutingDnsArgs.builder()
                .zoneId("023e105f4ecef8ad9ca31a8372d0c353")
                .name("example.net")
                .build());
    
        }
    }
    
    resources:
      exampleEmailRoutingDns:
        type: cloudflare:EmailRoutingDns
        name: example_email_routing_dns
        properties:
          zoneId: 023e105f4ecef8ad9ca31a8372d0c353
          name: example.net
    
    terraform {
      required_providers {
        cloudflare = {
          source = "pulumi/cloudflare"
        }
      }
    }
    
    resource "cloudflare_email_routing_dns" "example_email_routing_dns" {
      lifecycle {
        create_before_destroy = true
      }
      zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
      name    = "example.net"
    }
    

    Create EmailRoutingDns Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EmailRoutingDns(name: string, args: EmailRoutingDnsArgs, opts?: CustomResourceOptions);
    @overload
    def EmailRoutingDns(resource_name: str,
                        args: EmailRoutingDnsArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def EmailRoutingDns(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        zone_id: Optional[str] = None,
                        name: Optional[str] = None,
                        subdomain: Optional[str] = None)
    func NewEmailRoutingDns(ctx *Context, name string, args EmailRoutingDnsArgs, opts ...ResourceOption) (*EmailRoutingDns, error)
    public EmailRoutingDns(string name, EmailRoutingDnsArgs args, CustomResourceOptions? opts = null)
    public EmailRoutingDns(String name, EmailRoutingDnsArgs args)
    public EmailRoutingDns(String name, EmailRoutingDnsArgs args, CustomResourceOptions options)
    
    type: cloudflare:EmailRoutingDns
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "cloudflare_email_routing_dns" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EmailRoutingDnsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EmailRoutingDnsArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EmailRoutingDnsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EmailRoutingDnsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EmailRoutingDnsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var emailRoutingDnsResource = new Cloudflare.EmailRoutingDns("emailRoutingDnsResource", new()
    {
        ZoneId = "string",
        Name = "string",
        Subdomain = "string",
    });
    
    example, err := cloudflare.NewEmailRoutingDns(ctx, "emailRoutingDnsResource", &cloudflare.EmailRoutingDnsArgs{
    	ZoneId:    pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	Subdomain: pulumi.String("string"),
    })
    
    resource "cloudflare_email_routing_dns" "emailRoutingDnsResource" {
      lifecycle {
        create_before_destroy = true
      }
      zone_id   = "string"
      name      = "string"
      subdomain = "string"
    }
    
    var emailRoutingDnsResource = new EmailRoutingDns("emailRoutingDnsResource", EmailRoutingDnsArgs.builder()
        .zoneId("string")
        .name("string")
        .subdomain("string")
        .build());
    
    email_routing_dns_resource = cloudflare.EmailRoutingDns("emailRoutingDnsResource",
        zone_id="string",
        name="string",
        subdomain="string")
    
    const emailRoutingDnsResource = new cloudflare.EmailRoutingDns("emailRoutingDnsResource", {
        zoneId: "string",
        name: "string",
        subdomain: "string",
    });
    
    type: cloudflare:EmailRoutingDns
    properties:
        name: string
        subdomain: string
        zoneId: string
    

    EmailRoutingDns Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EmailRoutingDns resource accepts the following input properties:

    ZoneId string
    Identifier.
    Name string
    Domain of your zone.
    Subdomain string
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    ZoneId string
    Identifier.
    Name string
    Domain of your zone.
    Subdomain string
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    zone_id string
    Identifier.
    name string
    Domain of your zone.
    subdomain string
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    zoneId String
    Identifier.
    name String
    Domain of your zone.
    subdomain String
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    zoneId string
    Identifier.
    name string
    Domain of your zone.
    subdomain string
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    zone_id str
    Identifier.
    name str
    Domain of your zone.
    subdomain str
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    zoneId String
    Identifier.
    name String
    Domain of your zone.
    subdomain String
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EmailRoutingDns resource produces the following output properties:

    Created string
    The date and time the settings have been created.
    Enabled bool
    State of the zone settings for Email Routing.
    Id string
    The provider-assigned unique ID for this managed resource.
    Modified string
    The date and time the settings have been modified.
    SkipWizard bool
    Flag to check if the user skipped the configuration wizard.
    Status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    SupportSubaddress bool
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    Tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    Created string
    The date and time the settings have been created.
    Enabled bool
    State of the zone settings for Email Routing.
    Id string
    The provider-assigned unique ID for this managed resource.
    Modified string
    The date and time the settings have been modified.
    SkipWizard bool
    Flag to check if the user skipped the configuration wizard.
    Status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    SupportSubaddress bool
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    Tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    created string
    The date and time the settings have been created.
    enabled bool
    State of the zone settings for Email Routing.
    id string
    The provider-assigned unique ID for this managed resource.
    modified string
    The date and time the settings have been modified.
    skip_wizard bool
    Flag to check if the user skipped the configuration wizard.
    status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    support_subaddress bool
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    created String
    The date and time the settings have been created.
    enabled Boolean
    State of the zone settings for Email Routing.
    id String
    The provider-assigned unique ID for this managed resource.
    modified String
    The date and time the settings have been modified.
    skipWizard Boolean
    Flag to check if the user skipped the configuration wizard.
    status String
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    supportSubaddress Boolean
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    tag String
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    created string
    The date and time the settings have been created.
    enabled boolean
    State of the zone settings for Email Routing.
    id string
    The provider-assigned unique ID for this managed resource.
    modified string
    The date and time the settings have been modified.
    skipWizard boolean
    Flag to check if the user skipped the configuration wizard.
    status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    supportSubaddress boolean
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    created str
    The date and time the settings have been created.
    enabled bool
    State of the zone settings for Email Routing.
    id str
    The provider-assigned unique ID for this managed resource.
    modified str
    The date and time the settings have been modified.
    skip_wizard bool
    Flag to check if the user skipped the configuration wizard.
    status str
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    support_subaddress bool
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    tag str
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    created String
    The date and time the settings have been created.
    enabled Boolean
    State of the zone settings for Email Routing.
    id String
    The provider-assigned unique ID for this managed resource.
    modified String
    The date and time the settings have been modified.
    skipWizard Boolean
    Flag to check if the user skipped the configuration wizard.
    status String
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    supportSubaddress Boolean
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    tag String
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    Look up Existing EmailRoutingDns Resource

    Get an existing EmailRoutingDns resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EmailRoutingDnsState, opts?: CustomResourceOptions): EmailRoutingDns
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created: Optional[str] = None,
            enabled: Optional[bool] = None,
            modified: Optional[str] = None,
            name: Optional[str] = None,
            skip_wizard: Optional[bool] = None,
            status: Optional[str] = None,
            subdomain: Optional[str] = None,
            support_subaddress: Optional[bool] = None,
            tag: Optional[str] = None,
            zone_id: Optional[str] = None) -> EmailRoutingDns
    func GetEmailRoutingDns(ctx *Context, name string, id IDInput, state *EmailRoutingDnsState, opts ...ResourceOption) (*EmailRoutingDns, error)
    public static EmailRoutingDns Get(string name, Input<string> id, EmailRoutingDnsState? state, CustomResourceOptions? opts = null)
    public static EmailRoutingDns get(String name, Output<String> id, EmailRoutingDnsState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:EmailRoutingDns    get:      id: ${id}
    import {
      to = cloudflare_email_routing_dns.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Created string
    The date and time the settings have been created.
    Enabled bool
    State of the zone settings for Email Routing.
    Modified string
    The date and time the settings have been modified.
    Name string
    Domain of your zone.
    SkipWizard bool
    Flag to check if the user skipped the configuration wizard.
    Status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    Subdomain string
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    SupportSubaddress bool
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    Tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    ZoneId string
    Identifier.
    Created string
    The date and time the settings have been created.
    Enabled bool
    State of the zone settings for Email Routing.
    Modified string
    The date and time the settings have been modified.
    Name string
    Domain of your zone.
    SkipWizard bool
    Flag to check if the user skipped the configuration wizard.
    Status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    Subdomain string
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    SupportSubaddress bool
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    Tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    ZoneId string
    Identifier.
    created string
    The date and time the settings have been created.
    enabled bool
    State of the zone settings for Email Routing.
    modified string
    The date and time the settings have been modified.
    name string
    Domain of your zone.
    skip_wizard bool
    Flag to check if the user skipped the configuration wizard.
    status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    subdomain string
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    support_subaddress bool
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    zone_id string
    Identifier.
    created String
    The date and time the settings have been created.
    enabled Boolean
    State of the zone settings for Email Routing.
    modified String
    The date and time the settings have been modified.
    name String
    Domain of your zone.
    skipWizard Boolean
    Flag to check if the user skipped the configuration wizard.
    status String
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    subdomain String
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    supportSubaddress Boolean
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    tag String
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    zoneId String
    Identifier.
    created string
    The date and time the settings have been created.
    enabled boolean
    State of the zone settings for Email Routing.
    modified string
    The date and time the settings have been modified.
    name string
    Domain of your zone.
    skipWizard boolean
    Flag to check if the user skipped the configuration wizard.
    status string
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    subdomain string
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    supportSubaddress boolean
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    tag string
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    zoneId string
    Identifier.
    created str
    The date and time the settings have been created.
    enabled bool
    State of the zone settings for Email Routing.
    modified str
    The date and time the settings have been modified.
    name str
    Domain of your zone.
    skip_wizard bool
    Flag to check if the user skipped the configuration wizard.
    status str
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    subdomain str
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    support_subaddress bool
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    tag str
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    zone_id str
    Identifier.
    created String
    The date and time the settings have been created.
    enabled Boolean
    State of the zone settings for Email Routing.
    modified String
    The date and time the settings have been modified.
    name String
    Domain of your zone.
    skipWizard Boolean
    Flag to check if the user skipped the configuration wizard.
    status String
    Show the state of your account, and the type or configuration error. Available values: "ready", "unconfigured", "misconfigured", "misconfigured/locked", "unlocked".
    subdomain String
    Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.
    supportSubaddress Boolean
    Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.
    tag String
    Email Routing settings tag. (Deprecated, replaced by Email Routing settings identifier)

    Deprecated: This attribute is deprecated.

    zoneId String
    Identifier.

    Import

    $ pulumi import cloudflare:index/emailRoutingDns:EmailRoutingDns example '<zone_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo cloudflare logo
    Viewing docs for Cloudflare v6.23.2
    published on Tuesday, Oct 27, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial