mailgun.Domain
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as mailgun from "@pulumi/mailgun";
// Create a new Mailgun domain
const _default = new mailgun.Domain("default", {
name: "test.example.com",
region: "us",
spamAction: "disabled",
smtpPassword: "supersecretpassword1234",
dkimKeySize: 1024,
});
import pulumi
import pulumi_mailgun as mailgun
# Create a new Mailgun domain
default = mailgun.Domain("default",
name="test.example.com",
region="us",
spam_action="disabled",
smtp_password="supersecretpassword1234",
dkim_key_size=1024)
package main
import (
"github.com/pulumi/pulumi-mailgun/sdk/v3/go/mailgun"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a new Mailgun domain
_, err := mailgun.NewDomain(ctx, "default", &mailgun.DomainArgs{
Name: pulumi.String("test.example.com"),
Region: pulumi.String("us"),
SpamAction: pulumi.String("disabled"),
SmtpPassword: pulumi.String("supersecretpassword1234"),
DkimKeySize: pulumi.Int(1024),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mailgun = Pulumi.Mailgun;
return await Deployment.RunAsync(() =>
{
// Create a new Mailgun domain
var @default = new Mailgun.Domain("default", new()
{
Name = "test.example.com",
Region = "us",
SpamAction = "disabled",
SmtpPassword = "supersecretpassword1234",
DkimKeySize = 1024,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mailgun.Domain;
import com.pulumi.mailgun.DomainArgs;
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) {
// Create a new Mailgun domain
var default_ = new Domain("default", DomainArgs.builder()
.name("test.example.com")
.region("us")
.spamAction("disabled")
.smtpPassword("supersecretpassword1234")
.dkimKeySize(1024)
.build());
}
}
resources:
# Create a new Mailgun domain
default:
type: mailgun:Domain
properties:
name: test.example.com
region: us
spamAction: disabled
smtpPassword: supersecretpassword1234
dkimKeySize: 1024
Create Domain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Domain(name: string, args?: DomainArgs, opts?: CustomResourceOptions);
@overload
def Domain(resource_name: str,
args: Optional[DomainArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Domain(resource_name: str,
opts: Optional[ResourceOptions] = None,
click_tracking: Optional[bool] = None,
dkim_key_size: Optional[int] = None,
dkim_selector: Optional[str] = None,
force_dkim_authority: Optional[bool] = None,
name: Optional[str] = None,
open_tracking: Optional[bool] = None,
region: Optional[str] = None,
smtp_password: Optional[str] = None,
spam_action: Optional[str] = None,
web_scheme: Optional[str] = None,
wildcard: Optional[bool] = None)
func NewDomain(ctx *Context, name string, args *DomainArgs, opts ...ResourceOption) (*Domain, error)
public Domain(string name, DomainArgs? args = null, CustomResourceOptions? opts = null)
public Domain(String name, DomainArgs args)
public Domain(String name, DomainArgs args, CustomResourceOptions options)
type: mailgun:Domain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args DomainArgs
- 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 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.
- name String
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var domainResource = new Mailgun.Domain("domainResource", new()
{
ClickTracking = false,
DkimKeySize = 0,
DkimSelector = "string",
ForceDkimAuthority = false,
Name = "string",
OpenTracking = false,
Region = "string",
SmtpPassword = "string",
SpamAction = "string",
WebScheme = "string",
Wildcard = false,
});
example, err := mailgun.NewDomain(ctx, "domainResource", &mailgun.DomainArgs{
ClickTracking: pulumi.Bool(false),
DkimKeySize: pulumi.Int(0),
DkimSelector: pulumi.String("string"),
ForceDkimAuthority: pulumi.Bool(false),
Name: pulumi.String("string"),
OpenTracking: pulumi.Bool(false),
Region: pulumi.String("string"),
SmtpPassword: pulumi.String("string"),
SpamAction: pulumi.String("string"),
WebScheme: pulumi.String("string"),
Wildcard: pulumi.Bool(false),
})
var domainResource = new Domain("domainResource", DomainArgs.builder()
.clickTracking(false)
.dkimKeySize(0)
.dkimSelector("string")
.forceDkimAuthority(false)
.name("string")
.openTracking(false)
.region("string")
.smtpPassword("string")
.spamAction("string")
.webScheme("string")
.wildcard(false)
.build());
domain_resource = mailgun.Domain("domainResource",
click_tracking=False,
dkim_key_size=0,
dkim_selector="string",
force_dkim_authority=False,
name="string",
open_tracking=False,
region="string",
smtp_password="string",
spam_action="string",
web_scheme="string",
wildcard=False)
const domainResource = new mailgun.Domain("domainResource", {
clickTracking: false,
dkimKeySize: 0,
dkimSelector: "string",
forceDkimAuthority: false,
name: "string",
openTracking: false,
region: "string",
smtpPassword: "string",
spamAction: "string",
webScheme: "string",
wildcard: false,
});
type: mailgun:Domain
properties:
clickTracking: false
dkimKeySize: 0
dkimSelector: string
forceDkimAuthority: false
name: string
openTracking: false
region: string
smtpPassword: string
spamAction: string
webScheme: string
wildcard: false
Domain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Domain resource accepts the following input properties:
- Click
Tracking bool - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- Dkim
Key intSize - The length of your domain’s generated DKIM key. Default value is
1024
. - Dkim
Selector string - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- bool
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - Name string
- The domain to add to Mailgun
- Open
Tracking bool - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- Region string
- The region where domain will be created. Default value is
us
. - Smtp
Password string - Password for SMTP authentication
- Spam
Action string disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- Web
Scheme string - (
http
orhttps
) The tracking web scheme. Default:http
- Wildcard bool
- Boolean that determines whether the domain will accept email for sub-domains.
- Click
Tracking bool - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- Dkim
Key intSize - The length of your domain’s generated DKIM key. Default value is
1024
. - Dkim
Selector string - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- bool
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - Name string
- The domain to add to Mailgun
- Open
Tracking bool - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- Region string
- The region where domain will be created. Default value is
us
. - Smtp
Password string - Password for SMTP authentication
- Spam
Action string disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- Web
Scheme string - (
http
orhttps
) The tracking web scheme. Default:http
- Wildcard bool
- Boolean that determines whether the domain will accept email for sub-domains.
- click
Tracking Boolean - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- dkim
Key IntegerSize - The length of your domain’s generated DKIM key. Default value is
1024
. - dkim
Selector String - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- Boolean
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - name String
- The domain to add to Mailgun
- open
Tracking Boolean - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- region String
- The region where domain will be created. Default value is
us
. - smtp
Password String - Password for SMTP authentication
- spam
Action String disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- web
Scheme String - (
http
orhttps
) The tracking web scheme. Default:http
- wildcard Boolean
- Boolean that determines whether the domain will accept email for sub-domains.
- click
Tracking boolean - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- dkim
Key numberSize - The length of your domain’s generated DKIM key. Default value is
1024
. - dkim
Selector string - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- boolean
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - name string
- The domain to add to Mailgun
- open
Tracking boolean - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- region string
- The region where domain will be created. Default value is
us
. - smtp
Password string - Password for SMTP authentication
- spam
Action string disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- web
Scheme string - (
http
orhttps
) The tracking web scheme. Default:http
- wildcard boolean
- Boolean that determines whether the domain will accept email for sub-domains.
- click_
tracking bool - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- dkim_
key_ intsize - The length of your domain’s generated DKIM key. Default value is
1024
. - dkim_
selector str - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- bool
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - name str
- The domain to add to Mailgun
- open_
tracking bool - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- region str
- The region where domain will be created. Default value is
us
. - smtp_
password str - Password for SMTP authentication
- spam_
action str disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- web_
scheme str - (
http
orhttps
) The tracking web scheme. Default:http
- wildcard bool
- Boolean that determines whether the domain will accept email for sub-domains.
- click
Tracking Boolean - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- dkim
Key NumberSize - The length of your domain’s generated DKIM key. Default value is
1024
. - dkim
Selector String - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- Boolean
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - name String
- The domain to add to Mailgun
- open
Tracking Boolean - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- region String
- The region where domain will be created. Default value is
us
. - smtp
Password String - Password for SMTP authentication
- spam
Action String disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- web
Scheme String - (
http
orhttps
) The tracking web scheme. Default:http
- wildcard Boolean
- 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. Deprecated Use
receiving_records_set
instead. - Receiving
Records List<DomainSets Receiving Records Set> - A set of DNS records for receiving validation.
- Sending
Records List<DomainSending Record> - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - Sending
Records List<DomainSets Sending Records Set> - A set of DNS records for sending validation.
- Smtp
Login string - The login email for 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. Deprecated Use
receiving_records_set
instead. - Receiving
Records []DomainSets Receiving Records Set - A set of DNS records for receiving validation.
- Sending
Records []DomainSending Record - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - Sending
Records []DomainSets Sending Records Set - A set of DNS records for sending validation.
- Smtp
Login string - The login email for the SMTP server.
- id String
- The provider-assigned unique ID for this managed resource.
- receiving
Records List<DomainReceiving Record> - A list of DNS records for receiving validation. Deprecated Use
receiving_records_set
instead. - receiving
Records List<DomainSets Receiving Records Set> - A set of DNS records for receiving validation.
- sending
Records List<DomainSending Record> - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - sending
Records List<DomainSets Sending Records Set> - A set of DNS records for sending validation.
- smtp
Login String - The login email for 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. Deprecated Use
receiving_records_set
instead. - receiving
Records DomainSets Receiving Records Set[] - A set of DNS records for receiving validation.
- sending
Records DomainSending Record[] - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - sending
Records DomainSets Sending Records Set[] - A set of DNS records for sending validation.
- smtp
Login string - The login email for the SMTP server.
- id str
- The provider-assigned unique ID for this managed resource.
- receiving_
records Sequence[DomainReceiving Record] - A list of DNS records for receiving validation. Deprecated Use
receiving_records_set
instead. - receiving_
records_ Sequence[Domainsets Receiving Records Set] - A set of DNS records for receiving validation.
- sending_
records Sequence[DomainSending Record] - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - sending_
records_ Sequence[Domainsets Sending Records Set] - A set of DNS records for sending validation.
- smtp_
login str - The login email for the SMTP server.
- id String
- The provider-assigned unique ID for this managed resource.
- receiving
Records List<Property Map> - A list of DNS records for receiving validation. Deprecated Use
receiving_records_set
instead. - receiving
Records List<Property Map>Sets - A set of DNS records for receiving validation.
- sending
Records List<Property Map> - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - sending
Records List<Property Map>Sets - A set of DNS records for sending validation.
- smtp
Login String - The login email for the SMTP server.
Look up 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): Domain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
click_tracking: Optional[bool] = None,
dkim_key_size: Optional[int] = None,
dkim_selector: Optional[str] = None,
force_dkim_authority: Optional[bool] = None,
name: Optional[str] = None,
open_tracking: Optional[bool] = None,
receiving_records: Optional[Sequence[DomainReceivingRecordArgs]] = None,
receiving_records_sets: Optional[Sequence[DomainReceivingRecordsSetArgs]] = None,
region: Optional[str] = None,
sending_records: Optional[Sequence[DomainSendingRecordArgs]] = None,
sending_records_sets: Optional[Sequence[DomainSendingRecordsSetArgs]] = None,
smtp_login: Optional[str] = None,
smtp_password: Optional[str] = None,
spam_action: Optional[str] = None,
web_scheme: Optional[str] = None,
wildcard: Optional[bool] = None) -> Domain
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)
public static Domain get(String name, Output<String> id, DomainState 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.
- Click
Tracking bool - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- Dkim
Key intSize - The length of your domain’s generated DKIM key. Default value is
1024
. - Dkim
Selector string - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- bool
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - Name string
- The domain to add to Mailgun
- Open
Tracking bool - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- Receiving
Records List<DomainReceiving Record> - A list of DNS records for receiving validation. Deprecated Use
receiving_records_set
instead. - Receiving
Records List<DomainSets Receiving Records Set> - A set of DNS records for receiving validation.
- Region string
- The region where domain will be created. Default value is
us
. - Sending
Records List<DomainSending Record> - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - Sending
Records List<DomainSets Sending Records Set> - A set of DNS records for sending validation.
- Smtp
Login string - The login email for the SMTP server.
- Smtp
Password string - Password for SMTP authentication
- Spam
Action string disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- Web
Scheme string - (
http
orhttps
) The tracking web scheme. Default:http
- Wildcard bool
- Boolean that determines whether the domain will accept email for sub-domains.
- Click
Tracking bool - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- Dkim
Key intSize - The length of your domain’s generated DKIM key. Default value is
1024
. - Dkim
Selector string - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- bool
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - Name string
- The domain to add to Mailgun
- Open
Tracking bool - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- Receiving
Records []DomainReceiving Record Args - A list of DNS records for receiving validation. Deprecated Use
receiving_records_set
instead. - Receiving
Records []DomainSets Receiving Records Set Args - A set of DNS records for receiving validation.
- Region string
- The region where domain will be created. Default value is
us
. - Sending
Records []DomainSending Record Args - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - Sending
Records []DomainSets Sending Records Set Args - A set of DNS records for sending validation.
- Smtp
Login string - The login email for the SMTP server.
- Smtp
Password string - Password for SMTP authentication
- Spam
Action string disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- Web
Scheme string - (
http
orhttps
) The tracking web scheme. Default:http
- Wildcard bool
- Boolean that determines whether the domain will accept email for sub-domains.
- click
Tracking Boolean - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- dkim
Key IntegerSize - The length of your domain’s generated DKIM key. Default value is
1024
. - dkim
Selector String - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- Boolean
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - name String
- The domain to add to Mailgun
- open
Tracking Boolean - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- receiving
Records List<DomainReceiving Record> - A list of DNS records for receiving validation. Deprecated Use
receiving_records_set
instead. - receiving
Records List<DomainSets Receiving Records Set> - A set of DNS records for receiving validation.
- region String
- The region where domain will be created. Default value is
us
. - sending
Records List<DomainSending Record> - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - sending
Records List<DomainSets Sending Records Set> - A set of DNS records for sending validation.
- smtp
Login String - The login email for the SMTP server.
- smtp
Password String - Password for SMTP authentication
- spam
Action String disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- web
Scheme String - (
http
orhttps
) The tracking web scheme. Default:http
- wildcard Boolean
- Boolean that determines whether the domain will accept email for sub-domains.
- click
Tracking boolean - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- dkim
Key numberSize - The length of your domain’s generated DKIM key. Default value is
1024
. - dkim
Selector string - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- boolean
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - name string
- The domain to add to Mailgun
- open
Tracking boolean - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- receiving
Records DomainReceiving Record[] - A list of DNS records for receiving validation. Deprecated Use
receiving_records_set
instead. - receiving
Records DomainSets Receiving Records Set[] - A set 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. Deprecated Use
sending_records_set
instead. - sending
Records DomainSets Sending Records Set[] - A set of DNS records for sending validation.
- smtp
Login string - The login email for the SMTP server.
- smtp
Password string - Password for SMTP authentication
- spam
Action string disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- web
Scheme string - (
http
orhttps
) The tracking web scheme. Default:http
- wildcard boolean
- Boolean that determines whether the domain will accept email for sub-domains.
- click_
tracking bool - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- dkim_
key_ intsize - The length of your domain’s generated DKIM key. Default value is
1024
. - dkim_
selector str - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- bool
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - name str
- The domain to add to Mailgun
- open_
tracking bool - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- receiving_
records Sequence[DomainReceiving Record Args] - A list of DNS records for receiving validation. Deprecated Use
receiving_records_set
instead. - receiving_
records_ Sequence[Domainsets Receiving Records Set Args] - A set of DNS records for receiving validation.
- region str
- The region where domain will be created. Default value is
us
. - sending_
records Sequence[DomainSending Record Args] - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - sending_
records_ Sequence[Domainsets Sending Records Set Args] - A set of DNS records for sending validation.
- smtp_
login str - The login email for the SMTP server.
- smtp_
password str - Password for SMTP authentication
- spam_
action str disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- web_
scheme str - (
http
orhttps
) The tracking web scheme. Default:http
- wildcard bool
- Boolean that determines whether the domain will accept email for sub-domains.
- click
Tracking Boolean - (Enum:
yes
orno
) The click tracking settings for the domain. Default:no
- dkim
Key NumberSize - The length of your domain’s generated DKIM key. Default value is
1024
. - dkim
Selector String - The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
- Boolean
- If set to true, the domain will be the DKIM authority for itself even if the root domain is registered on the same mailgun account. If set to false, the domain will have the same DKIM authority as the root domain registered on the same mailgun account. The default is
false
. - name String
- The domain to add to Mailgun
- open
Tracking Boolean - (Enum:
yes
orno
) The open tracking settings for the domain. Default:no
- receiving
Records List<Property Map> - A list of DNS records for receiving validation. Deprecated Use
receiving_records_set
instead. - receiving
Records List<Property Map>Sets - A set of DNS records for receiving validation.
- region String
- The region where domain will be created. Default value is
us
. - sending
Records List<Property Map> - A list of DNS records for sending validation. Deprecated Use
sending_records_set
instead. - sending
Records List<Property Map>Sets - A set of DNS records for sending validation.
- smtp
Login String - The login email for the SMTP server.
- smtp
Password String - Password for SMTP authentication
- spam
Action String disabled
ortag
Disable, no spam filtering will occur for inbound messages. Tag, messages will be tagged with a spam header. Default value isdisabled
.- web
Scheme String - (
http
orhttps
) The tracking web scheme. Default:http
- wildcard Boolean
- Boolean that determines whether the domain will accept email for sub-domains.
Supporting Types
DomainReceivingRecord, DomainReceivingRecordArgs
- Id string
- Priority string
- The priority of the record.
- Record
Type string - The record type.
- Valid string
"valid"
if the record is valid.- Value string
- The value of the record.
- Id string
- Priority string
- The priority of the record.
- Record
Type string - The record type.
- Valid string
"valid"
if the record is valid.- Value string
- The value of the record.
- id String
- priority String
- The priority of the record.
- record
Type String - The record type.
- valid String
"valid"
if the record is valid.- value String
- The value of the record.
- id string
- priority string
- The priority of the record.
- record
Type string - The record type.
- valid string
"valid"
if the record is valid.- value string
- The value of the record.
- id str
- priority str
- The priority of the record.
- record_
type str - The record type.
- valid str
"valid"
if the record is valid.- value str
- The value of the record.
- id String
- priority String
- The priority of the record.
- record
Type String - The record type.
- valid String
"valid"
if the record is valid.- value String
- The value of the record.
DomainReceivingRecordsSet, DomainReceivingRecordsSetArgs
- Id string
- Priority string
- The priority of the record.
- Record
Type string - The record type.
- Valid string
"valid"
if the record is valid.- Value string
- The value of the record.
- Id string
- Priority string
- The priority of the record.
- Record
Type string - The record type.
- Valid string
"valid"
if the record is valid.- Value string
- The value of the record.
- id String
- priority String
- The priority of the record.
- record
Type String - The record type.
- valid String
"valid"
if the record is valid.- value String
- The value of the record.
- id string
- priority string
- The priority of the record.
- record
Type string - The record type.
- valid string
"valid"
if the record is valid.- value string
- The value of the record.
- id str
- priority str
- The priority of the record.
- record_
type str - The record type.
- valid str
"valid"
if the record is valid.- value str
- The value of the record.
- id String
- priority String
- The priority of the record.
- record
Type String - The record type.
- valid String
"valid"
if the record is valid.- value String
- The value of the record.
DomainSendingRecord, DomainSendingRecordArgs
- Id string
- Name string
- The domain to add to Mailgun
- Record
Type string - The record type.
- Valid string
"valid"
if the record is valid.- Value string
- The value of the record.
- Id string
- Name string
- The domain to add to Mailgun
- Record
Type string - The record type.
- Valid string
"valid"
if the record is valid.- Value string
- The value of the record.
- id String
- name String
- The domain to add to Mailgun
- record
Type String - The record type.
- valid String
"valid"
if the record is valid.- value String
- The value of the record.
- id string
- name string
- The domain to add to Mailgun
- record
Type string - The record type.
- valid string
"valid"
if the record is valid.- value string
- The value of the record.
- id str
- name str
- The domain to add to Mailgun
- record_
type str - The record type.
- valid str
"valid"
if the record is valid.- value str
- The value of the record.
- id String
- name String
- The domain to add to Mailgun
- record
Type String - The record type.
- valid String
"valid"
if the record is valid.- value String
- The value of the record.
DomainSendingRecordsSet, DomainSendingRecordsSetArgs
- Id string
- Name string
- The domain to add to Mailgun
- Record
Type string - The record type.
- Valid string
"valid"
if the record is valid.- Value string
- The value of the record.
- Id string
- Name string
- The domain to add to Mailgun
- Record
Type string - The record type.
- Valid string
"valid"
if the record is valid.- Value string
- The value of the record.
- id String
- name String
- The domain to add to Mailgun
- record
Type String - The record type.
- valid String
"valid"
if the record is valid.- value String
- The value of the record.
- id string
- name string
- The domain to add to Mailgun
- record
Type string - The record type.
- valid string
"valid"
if the record is valid.- value string
- The value of the record.
- id str
- name str
- The domain to add to Mailgun
- record_
type str - The record type.
- valid str
"valid"
if the record is valid.- value str
- The value of the record.
- id String
- name String
- The domain to add to Mailgun
- record
Type String - The record type.
- valid String
"valid"
if the record is valid.- value String
- The value of the record.
Import
Domains can be imported using region:domain_name
via import
command. Region has to be chosen from eu
or us
(when no selection us
is applied).
hcl
$ pulumi import mailgun:index/domain:Domain test us:example.domain.com
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Mailgun pulumi/pulumi-mailgun
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mailgun
Terraform Provider.