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",
});
}
}
Coming soon!
import pulumi
import pulumi_mailgun as mailgun
# Create a new Mailgun domain
default = mailgun.Domain("default",
region="us",
spam_action="disabled")import * as pulumi from "@pulumi/pulumi";
import * as mailgun from "@pulumi/mailgun";
// Create a new Mailgun domain
const defaultDomain = new mailgun.Domain("default", {
region: "us",
spamAction: "disabled",
});Create a Domain Resource
new Domain(name: string, args?: DomainArgs, opts?: CustomResourceOptions);def Domain(resource_name, opts=None, name=None, region=None, spam_action=None, wildcard=None, __props__=None);func NewDomain(ctx *Context, name string, args *DomainArgs, opts ...ResourceOption) (*Domain, error)public Domain(string name, DomainArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Domain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Domain resource accepts the following input properties:
- Name string
The domain to add to Mailgun
- Region string
The region where domain will be created. Default value is
us.- Spam
Action string disabledortagDisable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header.- Wildcard bool
Boolean that determines whether the domain will accept email for sub-domains.
- Name string
The domain to add to Mailgun
- Region string
The region where domain will be created. Default value is
us.- Spam
Action string disabledortagDisable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header.- Wildcard bool
Boolean that determines whether the domain will accept email for sub-domains.
- name string
The domain to add to Mailgun
- region string
The region where domain will be created. Default value is
us.- spam
Action string disabledortagDisable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header.- wildcard boolean
Boolean that determines whether the domain will accept email for sub-domains.
- name str
The domain to add to Mailgun
- region str
The region where domain will be created. Default value is
us.- spam_
action str disabledortagDisable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header.- wildcard bool
Boolean that determines whether the domain will accept email for sub-domains.
Outputs
All input properties are implicitly available as output properties. Additionally, the Domain resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Receiving
Records List<DomainReceiving Record> A list of DNS records for receiving validation.
- Sending
Records List<DomainSending Record> A list of DNS records for sending validation.
- Smtp
Login string The login email for the SMTP server.
- Smtp
Password string The password to the SMTP server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Receiving
Records []DomainReceiving Record A list of DNS records for receiving validation.
- Sending
Records []DomainSending Record A list of DNS records for sending validation.
- Smtp
Login string The login email for the SMTP server.
- Smtp
Password string The password to the SMTP server.
- id string
- The provider-assigned unique ID for this managed resource.
- receiving
Records DomainReceiving Record[] A list of DNS records for receiving validation.
- sending
Records DomainSending Record[] A list of DNS records for sending validation.
- smtp
Login string The login email for the SMTP server.
- smtp
Password string The password to the SMTP server.
- id str
- The provider-assigned unique ID for this managed resource.
- receiving_
records List[DomainReceiving Record] A list of DNS records for receiving validation.
- sending_
records List[DomainSending Record] A list of DNS records for sending validation.
- smtp_
login str The login email for the SMTP server.
- smtp_
password str The password to the SMTP server.
Look up an Existing Domain Resource
Get an existing Domain 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?: DomainState, opts?: CustomResourceOptions): Domainstatic get(resource_name, id, opts=None, name=None, receiving_records=None, region=None, sending_records=None, smtp_login=None, smtp_password=None, spam_action=None, wildcard=None, __props__=None);func GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Name string
The domain to add to Mailgun
- Receiving
Records List<DomainReceiving Record Args> A list of DNS records for receiving validation.
- Region string
The region where domain will be created. Default value is
us.- Sending
Records List<DomainSending Record Args> A list of DNS records for sending validation.
- Smtp
Login string The login email for the SMTP server.
- Smtp
Password string The password to the SMTP server.
- Spam
Action string disabledortagDisable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header.- Wildcard bool
Boolean that determines whether the domain will accept email for sub-domains.
- Name string
The domain to add to Mailgun
- Receiving
Records []DomainReceiving Record A list of DNS records for receiving validation.
- Region string
The region where domain will be created. Default value is
us.- Sending
Records []DomainSending Record A list of DNS records for sending validation.
- Smtp
Login string The login email for the SMTP server.
- Smtp
Password string The password to the SMTP server.
- Spam
Action string disabledortagDisable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header.- Wildcard bool
Boolean that determines whether the domain will accept email for sub-domains.
- name string
The domain to add to Mailgun
- receiving
Records DomainReceiving Record[] A list of DNS records for receiving validation.
- region string
The region where domain will be created. Default value is
us.- sending
Records DomainSending Record[] A list of DNS records for sending validation.
- smtp
Login string The login email for the SMTP server.
- smtp
Password string The password to the SMTP server.
- spam
Action string disabledortagDisable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header.- wildcard boolean
Boolean that determines whether the domain will accept email for sub-domains.
- name str
The domain to add to Mailgun
- receiving_
records List[DomainReceiving Record] A list of DNS records for receiving validation.
- region str
The region where domain will be created. Default value is
us.- sending_
records List[DomainSending Record] A list of DNS records for sending validation.
- smtp_
login str The login email for the SMTP server.
- smtp_
password str The password to the SMTP server.
- spam_
action str disabledortagDisable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header.- wildcard bool
Boolean that determines whether the domain will accept email for sub-domains.
Supporting Types
DomainReceivingRecord
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
DomainSendingRecord
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-mailgun
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mailgunTerraform Provider.