DNSimple

Pulumi Official
Package maintained by Pulumi
v3.3.0 published on Monday, Nov 15, 2021 by Pulumi

EmailForward

Provides a DNSimple email forward resource.

Example Usage

using Pulumi;
using DNSimple = Pulumi.DNSimple;

class MyStack : Stack
{
    public MyStack()
    {
        // Add an email forwarding rule to the domain
        var foobar = new DNSimple.EmailForward("foobar", new DNSimple.EmailForwardArgs
        {
            AliasName = "sales",
            DestinationEmail = "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 {
		_, 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
	})
}

Coming soon!

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"])
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,
});

Coming soon!

Create a 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:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an 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_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:
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

Package Details

Repository
https://github.com/pulumi/pulumi-dnsimple
License
Apache-2.0
Notes

This Pulumi package is based on the dnsimple Terraform Provider.