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",
});
}
}
Inherited Members
Namespace: Pulumi.Mailgun
Assembly: Pulumi.Mailgun.dll
Syntax
public class Domain : CustomResource
Constructors
View SourceDomain(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 SourceName
The domain to add to Mailgun
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
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> |
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>> |
SmtpLogin
The login email for the SMTP server.
Declaration
public Output<string> SmtpLogin { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SmtpPassword
The password to the SMTP server.
Declaration
public Output<string> SmtpPassword { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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 SourceGet(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 |