1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. EmailRoutingAddress
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.EmailRoutingAddress

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleEmailRoutingAddress = new cloudflare.EmailRoutingAddress("example_email_routing_address", {
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    email: "user@example.com",
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_email_routing_address = cloudflare.EmailRoutingAddress("example_email_routing_address",
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
    email="user@example.com")
Copy
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.NewEmailRoutingAddress(ctx, "example_email_routing_address", &cloudflare.EmailRoutingAddressArgs{
			AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
			Email:     pulumi.String("user@example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleEmailRoutingAddress = new Cloudflare.EmailRoutingAddress("example_email_routing_address", new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        Email = "user@example.com",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.EmailRoutingAddress;
import com.pulumi.cloudflare.EmailRoutingAddressArgs;
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 exampleEmailRoutingAddress = new EmailRoutingAddress("exampleEmailRoutingAddress", EmailRoutingAddressArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .email("user@example.com")
            .build());

    }
}
Copy
resources:
  exampleEmailRoutingAddress:
    type: cloudflare:EmailRoutingAddress
    name: example_email_routing_address
    properties:
      accountId: 023e105f4ecef8ad9ca31a8372d0c353
      email: user@example.com
Copy

Create EmailRoutingAddress Resource

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

Constructor syntax

new EmailRoutingAddress(name: string, args: EmailRoutingAddressArgs, opts?: CustomResourceOptions);
@overload
def EmailRoutingAddress(resource_name: str,
                        args: EmailRoutingAddressArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def EmailRoutingAddress(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        account_id: Optional[str] = None,
                        email: Optional[str] = None)
func NewEmailRoutingAddress(ctx *Context, name string, args EmailRoutingAddressArgs, opts ...ResourceOption) (*EmailRoutingAddress, error)
public EmailRoutingAddress(string name, EmailRoutingAddressArgs args, CustomResourceOptions? opts = null)
public EmailRoutingAddress(String name, EmailRoutingAddressArgs args)
public EmailRoutingAddress(String name, EmailRoutingAddressArgs args, CustomResourceOptions options)
type: cloudflare:EmailRoutingAddress
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. EmailRoutingAddressArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. EmailRoutingAddressArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. EmailRoutingAddressArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. EmailRoutingAddressArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EmailRoutingAddressArgs
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 emailRoutingAddressResource = new Cloudflare.EmailRoutingAddress("emailRoutingAddressResource", new()
{
    AccountId = "string",
    Email = "string",
});
Copy
example, err := cloudflare.NewEmailRoutingAddress(ctx, "emailRoutingAddressResource", &cloudflare.EmailRoutingAddressArgs{
	AccountId: pulumi.String("string"),
	Email:     pulumi.String("string"),
})
Copy
var emailRoutingAddressResource = new EmailRoutingAddress("emailRoutingAddressResource", EmailRoutingAddressArgs.builder()
    .accountId("string")
    .email("string")
    .build());
Copy
email_routing_address_resource = cloudflare.EmailRoutingAddress("emailRoutingAddressResource",
    account_id="string",
    email="string")
Copy
const emailRoutingAddressResource = new cloudflare.EmailRoutingAddress("emailRoutingAddressResource", {
    accountId: "string",
    email: "string",
});
Copy
type: cloudflare:EmailRoutingAddress
properties:
    accountId: string
    email: string
Copy

EmailRoutingAddress 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 EmailRoutingAddress resource accepts the following input properties:

AccountId This property is required. string
Identifier
Email This property is required. string
The contact email address of the user.
AccountId This property is required. string
Identifier
Email This property is required. string
The contact email address of the user.
accountId This property is required. String
Identifier
email This property is required. String
The contact email address of the user.
accountId This property is required. string
Identifier
email This property is required. string
The contact email address of the user.
account_id This property is required. str
Identifier
email This property is required. str
The contact email address of the user.
accountId This property is required. String
Identifier
email This property is required. String
The contact email address of the user.

Outputs

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

Created string
The date and time the destination address has been created.
Id string
The provider-assigned unique ID for this managed resource.
Modified string
The date and time the destination address was last modified.
Tag string
Destination address tag. (Deprecated, replaced by destination address identifier)
Verified string
The date and time the destination address has been verified. Null means not verified yet.
Created string
The date and time the destination address has been created.
Id string
The provider-assigned unique ID for this managed resource.
Modified string
The date and time the destination address was last modified.
Tag string
Destination address tag. (Deprecated, replaced by destination address identifier)
Verified string
The date and time the destination address has been verified. Null means not verified yet.
created String
The date and time the destination address has been created.
id String
The provider-assigned unique ID for this managed resource.
modified String
The date and time the destination address was last modified.
tag String
Destination address tag. (Deprecated, replaced by destination address identifier)
verified String
The date and time the destination address has been verified. Null means not verified yet.
created string
The date and time the destination address has been created.
id string
The provider-assigned unique ID for this managed resource.
modified string
The date and time the destination address was last modified.
tag string
Destination address tag. (Deprecated, replaced by destination address identifier)
verified string
The date and time the destination address has been verified. Null means not verified yet.
created str
The date and time the destination address has been created.
id str
The provider-assigned unique ID for this managed resource.
modified str
The date and time the destination address was last modified.
tag str
Destination address tag. (Deprecated, replaced by destination address identifier)
verified str
The date and time the destination address has been verified. Null means not verified yet.
created String
The date and time the destination address has been created.
id String
The provider-assigned unique ID for this managed resource.
modified String
The date and time the destination address was last modified.
tag String
Destination address tag. (Deprecated, replaced by destination address identifier)
verified String
The date and time the destination address has been verified. Null means not verified yet.

Look up Existing EmailRoutingAddress Resource

Get an existing EmailRoutingAddress 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?: EmailRoutingAddressState, opts?: CustomResourceOptions): EmailRoutingAddress
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        created: Optional[str] = None,
        email: Optional[str] = None,
        modified: Optional[str] = None,
        tag: Optional[str] = None,
        verified: Optional[str] = None) -> EmailRoutingAddress
func GetEmailRoutingAddress(ctx *Context, name string, id IDInput, state *EmailRoutingAddressState, opts ...ResourceOption) (*EmailRoutingAddress, error)
public static EmailRoutingAddress Get(string name, Input<string> id, EmailRoutingAddressState? state, CustomResourceOptions? opts = null)
public static EmailRoutingAddress get(String name, Output<String> id, EmailRoutingAddressState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:EmailRoutingAddress    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AccountId string
Identifier
Created string
The date and time the destination address has been created.
Email string
The contact email address of the user.
Modified string
The date and time the destination address was last modified.
Tag string
Destination address tag. (Deprecated, replaced by destination address identifier)
Verified string
The date and time the destination address has been verified. Null means not verified yet.
AccountId string
Identifier
Created string
The date and time the destination address has been created.
Email string
The contact email address of the user.
Modified string
The date and time the destination address was last modified.
Tag string
Destination address tag. (Deprecated, replaced by destination address identifier)
Verified string
The date and time the destination address has been verified. Null means not verified yet.
accountId String
Identifier
created String
The date and time the destination address has been created.
email String
The contact email address of the user.
modified String
The date and time the destination address was last modified.
tag String
Destination address tag. (Deprecated, replaced by destination address identifier)
verified String
The date and time the destination address has been verified. Null means not verified yet.
accountId string
Identifier
created string
The date and time the destination address has been created.
email string
The contact email address of the user.
modified string
The date and time the destination address was last modified.
tag string
Destination address tag. (Deprecated, replaced by destination address identifier)
verified string
The date and time the destination address has been verified. Null means not verified yet.
account_id str
Identifier
created str
The date and time the destination address has been created.
email str
The contact email address of the user.
modified str
The date and time the destination address was last modified.
tag str
Destination address tag. (Deprecated, replaced by destination address identifier)
verified str
The date and time the destination address has been verified. Null means not verified yet.
accountId String
Identifier
created String
The date and time the destination address has been created.
email String
The contact email address of the user.
modified String
The date and time the destination address was last modified.
tag String
Destination address tag. (Deprecated, replaced by destination address identifier)
verified String
The date and time the destination address has been verified. Null means not verified yet.

Import

$ pulumi import cloudflare:index/emailRoutingAddress:EmailRoutingAddress example '<account_id>/<destination_address_identifier>'
Copy

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.