1. Packages
  2. DNSimple
  3. API Docs
  4. EmailForward
DNSimple v3.4.2 published on Thursday, Mar 21, 2024 by Pulumi

dnsimple.EmailForward

Explore with Pulumi AI

dnsimple logo
DNSimple v3.4.2 published on Thursday, Mar 21, 2024 by Pulumi

    Provides a DNSimple email forward resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dnsimple from "@pulumi/dnsimple";
    
    // Add an email forwarding rule to the domain
    const foobar = new dnsimple.EmailForward("foobar", {
        aliasName: "sales",
        destinationEmail: "jane.doe@example.com",
        domain: _var.dnsimple_domain,
    });
    
    import pulumi
    import pulumi_dnsimple as dnsimple
    
    # Add an email forwarding rule to the domain
    foobar = dnsimple.EmailForward("foobar",
        alias_name="sales",
        destination_email="jane.doe@example.com",
        domain=var["dnsimple_domain"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dnsimple/sdk/v3/go/dnsimple"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Add an email forwarding rule to the domain
    		_, err := dnsimple.NewEmailForward(ctx, "foobar", &dnsimple.EmailForwardArgs{
    			AliasName:        pulumi.String("sales"),
    			DestinationEmail: pulumi.String("jane.doe@example.com"),
    			Domain:           pulumi.Any(_var.Dnsimple_domain),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using DNSimple = Pulumi.DNSimple;
    
    return await Deployment.RunAsync(() => 
    {
        // Add an email forwarding rule to the domain
        var foobar = new DNSimple.EmailForward("foobar", new()
        {
            AliasName = "sales",
            DestinationEmail = "jane.doe@example.com",
            Domain = @var.Dnsimple_domain,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dnsimple.EmailForward;
    import com.pulumi.dnsimple.EmailForwardArgs;
    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 foobar = new EmailForward("foobar", EmailForwardArgs.builder()        
                .aliasName("sales")
                .destinationEmail("jane.doe@example.com")
                .domain(var_.dnsimple_domain())
                .build());
    
        }
    }
    
    resources:
      # Add an email forwarding rule to the domain
      foobar:
        type: dnsimple:EmailForward
        properties:
          aliasName: sales
          destinationEmail: jane.doe@example.com
          domain: ${var.dnsimple_domain}
    

    Create EmailForward Resource

    new EmailForward(name: string, args: EmailForwardArgs, opts?: CustomResourceOptions);
    @overload
    def EmailForward(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     alias_name: Optional[str] = None,
                     destination_email: Optional[str] = None,
                     domain: Optional[str] = None)
    @overload
    def EmailForward(resource_name: str,
                     args: EmailForwardArgs,
                     opts: Optional[ResourceOptions] = None)
    func NewEmailForward(ctx *Context, name string, args EmailForwardArgs, opts ...ResourceOption) (*EmailForward, error)
    public EmailForward(string name, EmailForwardArgs args, CustomResourceOptions? opts = null)
    public EmailForward(String name, EmailForwardArgs args)
    public EmailForward(String name, EmailForwardArgs args, CustomResourceOptions options)
    
    type: dnsimple:EmailForward
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args EmailForwardArgs
    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 EmailForwardArgs
    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 EmailForwardArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EmailForwardArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EmailForwardArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AliasName string
    The name part (the part before the @) of the source email address on the domain
    DestinationEmail string
    The destination email address on another domain
    Domain string
    The domain to add the email forwarding rule to
    AliasName string
    The name part (the part before the @) of the source email address on the domain
    DestinationEmail string
    The destination email address on another domain
    Domain string
    The domain to add the email forwarding rule to
    aliasName String
    The name part (the part before the @) of the source email address on the domain
    destinationEmail String
    The destination email address on another domain
    domain String
    The domain to add the email forwarding rule to
    aliasName string
    The name part (the part before the @) of the source email address on the domain
    destinationEmail string
    The destination email address on another domain
    domain string
    The domain to add the email forwarding rule to
    alias_name str
    The name part (the part before the @) of the source email address on the domain
    destination_email str
    The destination email address on another domain
    domain str
    The domain to add the email forwarding rule to
    aliasName String
    The name part (the part before the @) of the source email address on the domain
    destinationEmail String
    The destination email address on another domain
    domain String
    The domain to add the email forwarding rule to

    Outputs

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

    AliasEmail string
    The source email address on the domain
    Id string
    The provider-assigned unique ID for this managed resource.
    AliasEmail string
    The source email address on the domain
    Id string
    The provider-assigned unique ID for this managed resource.
    aliasEmail String
    The source email address on the domain
    id String
    The provider-assigned unique ID for this managed resource.
    aliasEmail string
    The source email address on the domain
    id string
    The provider-assigned unique ID for this managed resource.
    alias_email str
    The source email address on the domain
    id str
    The provider-assigned unique ID for this managed resource.
    aliasEmail String
    The source email address on the domain
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EmailForward Resource

    Get an existing EmailForward 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?: EmailForwardState, opts?: CustomResourceOptions): EmailForward
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alias_email: Optional[str] = None,
            alias_name: Optional[str] = None,
            destination_email: Optional[str] = None,
            domain: Optional[str] = None) -> EmailForward
    func GetEmailForward(ctx *Context, name string, id IDInput, state *EmailForwardState, opts ...ResourceOption) (*EmailForward, error)
    public static EmailForward Get(string name, Input<string> id, EmailForwardState? state, CustomResourceOptions? opts = null)
    public static EmailForward get(String name, Output<String> id, EmailForwardState 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:
    AliasEmail string
    The source email address on the domain
    AliasName string
    The name part (the part before the @) of the source email address on the domain
    DestinationEmail string
    The destination email address on another domain
    Domain string
    The domain to add the email forwarding rule to
    AliasEmail string
    The source email address on the domain
    AliasName string
    The name part (the part before the @) of the source email address on the domain
    DestinationEmail string
    The destination email address on another domain
    Domain string
    The domain to add the email forwarding rule to
    aliasEmail String
    The source email address on the domain
    aliasName String
    The name part (the part before the @) of the source email address on the domain
    destinationEmail String
    The destination email address on another domain
    domain String
    The domain to add the email forwarding rule to
    aliasEmail string
    The source email address on the domain
    aliasName string
    The name part (the part before the @) of the source email address on the domain
    destinationEmail string
    The destination email address on another domain
    domain string
    The domain to add the email forwarding rule to
    alias_email str
    The source email address on the domain
    alias_name str
    The name part (the part before the @) of the source email address on the domain
    destination_email str
    The destination email address on another domain
    domain str
    The domain to add the email forwarding rule to
    aliasEmail String
    The source email address on the domain
    aliasName String
    The name part (the part before the @) of the source email address on the domain
    destinationEmail String
    The destination email address on another domain
    domain String
    The domain to add the email forwarding rule to

    Package Details

    Repository
    DNSimple pulumi/pulumi-dnsimple
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dnsimple Terraform Provider.
    dnsimple logo
    DNSimple v3.4.2 published on Thursday, Mar 21, 2024 by Pulumi