Namespace Pulumi.Mailgun
Classes
Config
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",
});
}
}
DomainArgs
DomainState
Provider
The provider type for the mailgun package. By default, resources use package-wide configuration
settings, however an explicit Provider instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
documentation for more information.
ProviderArgs
Route
Provides a Mailgun Route resource. This can be used to create and manage routes on Mailgun.
Example Usage
using Pulumi;
using Mailgun = Pulumi.Mailgun;
class MyStack : Stack
{
public MyStack()
{
// Create a new Mailgun route
var @default = new Mailgun.Route("default", new Mailgun.RouteArgs
{
Actions =
{
"forward('http://example.com/api/v1/foos/')",
"stop()",
},
Description = "inbound",
Expression = "match_recipient('.*@foo.example.com')",
Priority = "0",
});
}
}