1. Packages
  2. Cloudflare
  3. API Docs
  4. EmailRoutingAddress
Cloudflare v5.26.0 published on Wednesday, Apr 17, 2024 by Pulumi

cloudflare.EmailRoutingAddress

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.26.0 published on Wednesday, Apr 17, 2024 by Pulumi

    The Email Routing Address resource allows you to manage Cloudflare Email Routing Destination Addresses.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const example = new cloudflare.EmailRoutingAddress("example", {
        accountId: "f037e56e89293a057740de681ac9abbe",
        email: "user@example.com",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example = cloudflare.EmailRoutingAddress("example",
        account_id="f037e56e89293a057740de681ac9abbe",
        email="user@example.com")
    
    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.NewEmailRoutingAddress(ctx, "example", &cloudflare.EmailRoutingAddressArgs{
    			AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
    			Email:     pulumi.String("user@example.com"),
    		})
    		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 example = new Cloudflare.EmailRoutingAddress("example", new()
        {
            AccountId = "f037e56e89293a057740de681ac9abbe",
            Email = "user@example.com",
        });
    
    });
    
    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 example = new EmailRoutingAddress("example", EmailRoutingAddressArgs.builder()        
                .accountId("f037e56e89293a057740de681ac9abbe")
                .email("user@example.com")
                .build());
    
        }
    }
    
    resources:
      example:
        type: cloudflare:EmailRoutingAddress
        properties:
          accountId: f037e56e89293a057740de681ac9abbe
          email: user@example.com
    

    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 string
    The unique name of the resource.
    args EmailRoutingAddressArgs
    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 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 string
    The unique name of the resource.
    args EmailRoutingAddressArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EmailRoutingAddressArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EmailRoutingAddressArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var emailRoutingAddressResource = new Cloudflare.EmailRoutingAddress("emailRoutingAddressResource", new()
    {
        AccountId = "string",
        Email = "string",
    });
    
    example, err := cloudflare.NewEmailRoutingAddress(ctx, "emailRoutingAddressResource", &cloudflare.EmailRoutingAddressArgs{
    	AccountId: pulumi.String("string"),
    	Email:     pulumi.String("string"),
    })
    
    var emailRoutingAddressResource = new EmailRoutingAddress("emailRoutingAddressResource", EmailRoutingAddressArgs.builder()        
        .accountId("string")
        .email("string")
        .build());
    
    email_routing_address_resource = cloudflare.EmailRoutingAddress("emailRoutingAddressResource",
        account_id="string",
        email="string")
    
    const emailRoutingAddressResource = new cloudflare.EmailRoutingAddress("emailRoutingAddressResource", {
        accountId: "string",
        email: "string",
    });
    
    type: cloudflare:EmailRoutingAddress
    properties:
        accountId: string
        email: string
    

    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

    The EmailRoutingAddress resource accepts the following input properties:

    AccountId string
    The account identifier to target for the resource.
    Email string
    The contact email address of the user.
    AccountId string
    The account identifier to target for the resource.
    Email string
    The contact email address of the user.
    accountId String
    The account identifier to target for the resource.
    email String
    The contact email address of the user.
    accountId string
    The account identifier to target for the resource.
    email string
    The contact email address of the user.
    account_id str
    The account identifier to target for the resource.
    email str
    The contact email address of the user.
    accountId String
    The account identifier to target for the resource.
    email 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 has been modified.
    Tag string
    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 has been modified.
    Tag string
    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 has been modified.
    tag String
    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 has been modified.
    tag string
    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 has been modified.
    tag str
    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 has been modified.
    tag String
    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)
    Resource lookup is not supported in YAML
    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:
    AccountId string
    The account identifier to target for the resource.
    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 has been modified.
    Tag string
    Destination address identifier.
    Verified string
    The date and time the destination address has been verified. Null means not verified yet.
    AccountId string
    The account identifier to target for the resource.
    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 has been modified.
    Tag string
    Destination address identifier.
    Verified string
    The date and time the destination address has been verified. Null means not verified yet.
    accountId String
    The account identifier to target for the resource.
    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 has been modified.
    tag String
    Destination address identifier.
    verified String
    The date and time the destination address has been verified. Null means not verified yet.
    accountId string
    The account identifier to target for the resource.
    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 has been modified.
    tag string
    Destination address identifier.
    verified string
    The date and time the destination address has been verified. Null means not verified yet.
    account_id str
    The account identifier to target for the resource.
    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 has been modified.
    tag str
    Destination address identifier.
    verified str
    The date and time the destination address has been verified. Null means not verified yet.
    accountId String
    The account identifier to target for the resource.
    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 has been modified.
    tag String
    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>/<email_routing_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 v5.26.0 published on Wednesday, Apr 17, 2024 by Pulumi