Show / Hide Table of Contents

Class Domain

Provides a Mailgun App resource. This can be used to create and manage applications on Mailgun.

After DNS records are set, domain verification should be triggered manually using PUT /domains/<domain>/verify

Example Usage

using Pulumi;
using Mailgun = Pulumi.Mailgun;

class MyStack : Stack
{
public MyStack()
{
    // Create a new Mailgun domain
    var @default = new Mailgun.Domain("default", new Mailgun.DomainArgs
    {
        Region = "us",
        SpamAction = "disabled",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Domain
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Mailgun
Assembly: Pulumi.Mailgun.dll
Syntax
public class Domain : CustomResource

Constructors

View Source

Domain(String, DomainArgs, CustomResourceOptions)

Create a Domain resource with the given unique name, arguments, and options.

Declaration
public Domain(string name, DomainArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

DomainArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Name

The domain to add to Mailgun

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

ReceivingRecords

A list of DNS records for receiving validation.

Declaration
public Output<ImmutableArray<DomainReceivingRecord>> ReceivingRecords { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<DomainReceivingRecord>>
View Source

Region

The region where domain will be created. Default value is us.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

SendingRecords

A list of DNS records for sending validation.

Declaration
public Output<ImmutableArray<DomainSendingRecord>> SendingRecords { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<DomainSendingRecord>>
View Source

SmtpLogin

The login email for the SMTP server.

Declaration
public Output<string> SmtpLogin { get; }
Property Value
Type Description
Output<System.String>
View Source

SmtpPassword

The password to the SMTP server.

Declaration
public Output<string> SmtpPassword { get; }
Property Value
Type Description
Output<System.String>
View Source

SpamAction

disabled or tag Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header.

Declaration
public Output<string> SpamAction { get; }
Property Value
Type Description
Output<System.String>
View Source

Wildcard

Boolean that determines whether the domain will accept email for sub-domains.

Declaration
public Output<bool?> Wildcard { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>

Methods

View Source

Get(String, Input<String>, DomainState, CustomResourceOptions)

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

Declaration
public static Domain Get(string name, Input<string> id, DomainState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

DomainState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Domain
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.