mailgun

package
v3.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

A Pulumi package for creating and managing Mailgun resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain struct {
	pulumi.CustomResourceState

	// The length of your domain’s generated DKIM key. Default value is `1024`.
	DkimKeySize pulumi.IntPtrOutput `pulumi:"dkimKeySize"`
	// The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
	DkimSelector pulumi.StringPtrOutput `pulumi:"dkimSelector"`
	// 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`.
	ForceDkimAuthority pulumi.BoolPtrOutput `pulumi:"forceDkimAuthority"`
	// The domain to add to Mailgun
	Name pulumi.StringOutput `pulumi:"name"`
	// (Enum: `yes` or `no`) The open tracking settings for the domain. Default: `no`
	OpenTracking pulumi.BoolPtrOutput `pulumi:"openTracking"`
	// A list of DNS records for receiving validation.  **Deprecated** Use `receivingRecordsSet` instead.
	//
	// Deprecated: Use `receivingRecordsSet` instead.
	ReceivingRecords DomainReceivingRecordArrayOutput `pulumi:"receivingRecords"`
	// A set of DNS records for receiving validation.
	ReceivingRecordsSets DomainReceivingRecordsSetArrayOutput `pulumi:"receivingRecordsSets"`
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrOutput `pulumi:"region"`
	// A list of DNS records for sending validation. **Deprecated** Use `sendingRecordsSet` instead.
	//
	// Deprecated: Use `sendingRecordsSet` instead.
	SendingRecords DomainSendingRecordArrayOutput `pulumi:"sendingRecords"`
	// A set of DNS records for sending validation.
	SendingRecordsSets DomainSendingRecordsSetArrayOutput `pulumi:"sendingRecordsSets"`
	// The login email for the SMTP server.
	SmtpLogin pulumi.StringOutput `pulumi:"smtpLogin"`
	// Password for SMTP authentication
	SmtpPassword pulumi.StringPtrOutput `pulumi:"smtpPassword"`
	// `disabled` or `tag` Disable, no spam
	// filtering will occur for inbound messages. Tag, messages
	// will be tagged with a spam header. Default value is `disabled`.
	SpamAction pulumi.StringPtrOutput `pulumi:"spamAction"`
	// Boolean that determines whether
	// the domain will accept email for sub-domains.
	Wildcard pulumi.BoolPtrOutput `pulumi:"wildcard"`
}

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](https://documentation.mailgun.com/en/latest/api-domains.html#domains)

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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{
			DkimKeySize:  pulumi.Int(1024),
			Region:       pulumi.String("us"),
			SmtpPassword: pulumi.String("supersecretpassword1234"),
			SpamAction:   pulumi.String("disabled"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## 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

```sh $ pulumi import mailgun:index/domain:Domain test us:example.domain.com ```

func GetDomain

func GetDomain(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DomainState, opts ...pulumi.ResourceOption) (*Domain, error)

GetDomain gets an existing Domain resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDomain

func NewDomain(ctx *pulumi.Context,
	name string, args *DomainArgs, opts ...pulumi.ResourceOption) (*Domain, error)

NewDomain registers a new resource with the given unique name, arguments, and options.

func (*Domain) ElementType

func (*Domain) ElementType() reflect.Type

func (*Domain) ToDomainOutput

func (i *Domain) ToDomainOutput() DomainOutput

func (*Domain) ToDomainOutputWithContext

func (i *Domain) ToDomainOutputWithContext(ctx context.Context) DomainOutput

type DomainArgs

type DomainArgs struct {
	// The length of your domain’s generated DKIM key. Default value is `1024`.
	DkimKeySize pulumi.IntPtrInput
	// The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
	DkimSelector pulumi.StringPtrInput
	// 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`.
	ForceDkimAuthority pulumi.BoolPtrInput
	// The domain to add to Mailgun
	Name pulumi.StringPtrInput
	// (Enum: `yes` or `no`) The open tracking settings for the domain. Default: `no`
	OpenTracking pulumi.BoolPtrInput
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrInput
	// Password for SMTP authentication
	SmtpPassword pulumi.StringPtrInput
	// `disabled` or `tag` Disable, no spam
	// filtering will occur for inbound messages. Tag, messages
	// will be tagged with a spam header. Default value is `disabled`.
	SpamAction pulumi.StringPtrInput
	// Boolean that determines whether
	// the domain will accept email for sub-domains.
	Wildcard pulumi.BoolPtrInput
}

The set of arguments for constructing a Domain resource.

func (DomainArgs) ElementType

func (DomainArgs) ElementType() reflect.Type

type DomainArray

type DomainArray []DomainInput

func (DomainArray) ElementType

func (DomainArray) ElementType() reflect.Type

func (DomainArray) ToDomainArrayOutput

func (i DomainArray) ToDomainArrayOutput() DomainArrayOutput

func (DomainArray) ToDomainArrayOutputWithContext

func (i DomainArray) ToDomainArrayOutputWithContext(ctx context.Context) DomainArrayOutput

type DomainArrayInput

type DomainArrayInput interface {
	pulumi.Input

	ToDomainArrayOutput() DomainArrayOutput
	ToDomainArrayOutputWithContext(context.Context) DomainArrayOutput
}

DomainArrayInput is an input type that accepts DomainArray and DomainArrayOutput values. You can construct a concrete instance of `DomainArrayInput` via:

DomainArray{ DomainArgs{...} }

type DomainArrayOutput

type DomainArrayOutput struct{ *pulumi.OutputState }

func (DomainArrayOutput) ElementType

func (DomainArrayOutput) ElementType() reflect.Type

func (DomainArrayOutput) Index

func (DomainArrayOutput) ToDomainArrayOutput

func (o DomainArrayOutput) ToDomainArrayOutput() DomainArrayOutput

func (DomainArrayOutput) ToDomainArrayOutputWithContext

func (o DomainArrayOutput) ToDomainArrayOutputWithContext(ctx context.Context) DomainArrayOutput

type DomainCredential added in v3.1.0

type DomainCredential struct {
	pulumi.CustomResourceState

	// The domain to add credential of Mailgun.
	Domain pulumi.StringOutput `pulumi:"domain"`
	// The local-part of the email address to create.
	Login pulumi.StringOutput `pulumi:"login"`
	// Password for user authentication.
	Password pulumi.StringOutput `pulumi:"password"`
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrOutput `pulumi:"region"`
}

Provides a Mailgun domain credential resource. This can be used to create and manage credential in domain of Mailgun.

> **Note:** Please note that starting of v0.6.1 due to using new Mailgun Client API (v4), there is no possibility to retrieve previously created secrets via API. In order get it worked, it's recommended to mark `password` as ignored under `lifecycle` block. See below.

## Import

Domain credential can be imported using `region:email` via `import` command. Region has to be chosen from `eu` or `us` (when no selection `us` is applied).

Password is always exported to `null`.

hcl

```sh $ pulumi import mailgun:index/domainCredential:DomainCredential test us:test@domain.com ```

func GetDomainCredential added in v3.1.0

func GetDomainCredential(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DomainCredentialState, opts ...pulumi.ResourceOption) (*DomainCredential, error)

GetDomainCredential gets an existing DomainCredential resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDomainCredential added in v3.1.0

func NewDomainCredential(ctx *pulumi.Context,
	name string, args *DomainCredentialArgs, opts ...pulumi.ResourceOption) (*DomainCredential, error)

NewDomainCredential registers a new resource with the given unique name, arguments, and options.

func (*DomainCredential) ElementType added in v3.1.0

func (*DomainCredential) ElementType() reflect.Type

func (*DomainCredential) ToDomainCredentialOutput added in v3.1.0

func (i *DomainCredential) ToDomainCredentialOutput() DomainCredentialOutput

func (*DomainCredential) ToDomainCredentialOutputWithContext added in v3.1.0

func (i *DomainCredential) ToDomainCredentialOutputWithContext(ctx context.Context) DomainCredentialOutput

type DomainCredentialArgs added in v3.1.0

type DomainCredentialArgs struct {
	// The domain to add credential of Mailgun.
	Domain pulumi.StringInput
	// The local-part of the email address to create.
	Login pulumi.StringInput
	// Password for user authentication.
	Password pulumi.StringInput
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a DomainCredential resource.

func (DomainCredentialArgs) ElementType added in v3.1.0

func (DomainCredentialArgs) ElementType() reflect.Type

type DomainCredentialArray added in v3.1.0

type DomainCredentialArray []DomainCredentialInput

func (DomainCredentialArray) ElementType added in v3.1.0

func (DomainCredentialArray) ElementType() reflect.Type

func (DomainCredentialArray) ToDomainCredentialArrayOutput added in v3.1.0

func (i DomainCredentialArray) ToDomainCredentialArrayOutput() DomainCredentialArrayOutput

func (DomainCredentialArray) ToDomainCredentialArrayOutputWithContext added in v3.1.0

func (i DomainCredentialArray) ToDomainCredentialArrayOutputWithContext(ctx context.Context) DomainCredentialArrayOutput

type DomainCredentialArrayInput added in v3.1.0

type DomainCredentialArrayInput interface {
	pulumi.Input

	ToDomainCredentialArrayOutput() DomainCredentialArrayOutput
	ToDomainCredentialArrayOutputWithContext(context.Context) DomainCredentialArrayOutput
}

DomainCredentialArrayInput is an input type that accepts DomainCredentialArray and DomainCredentialArrayOutput values. You can construct a concrete instance of `DomainCredentialArrayInput` via:

DomainCredentialArray{ DomainCredentialArgs{...} }

type DomainCredentialArrayOutput added in v3.1.0

type DomainCredentialArrayOutput struct{ *pulumi.OutputState }

func (DomainCredentialArrayOutput) ElementType added in v3.1.0

func (DomainCredentialArrayOutput) Index added in v3.1.0

func (DomainCredentialArrayOutput) ToDomainCredentialArrayOutput added in v3.1.0

func (o DomainCredentialArrayOutput) ToDomainCredentialArrayOutput() DomainCredentialArrayOutput

func (DomainCredentialArrayOutput) ToDomainCredentialArrayOutputWithContext added in v3.1.0

func (o DomainCredentialArrayOutput) ToDomainCredentialArrayOutputWithContext(ctx context.Context) DomainCredentialArrayOutput

type DomainCredentialInput added in v3.1.0

type DomainCredentialInput interface {
	pulumi.Input

	ToDomainCredentialOutput() DomainCredentialOutput
	ToDomainCredentialOutputWithContext(ctx context.Context) DomainCredentialOutput
}

type DomainCredentialMap added in v3.1.0

type DomainCredentialMap map[string]DomainCredentialInput

func (DomainCredentialMap) ElementType added in v3.1.0

func (DomainCredentialMap) ElementType() reflect.Type

func (DomainCredentialMap) ToDomainCredentialMapOutput added in v3.1.0

func (i DomainCredentialMap) ToDomainCredentialMapOutput() DomainCredentialMapOutput

func (DomainCredentialMap) ToDomainCredentialMapOutputWithContext added in v3.1.0

func (i DomainCredentialMap) ToDomainCredentialMapOutputWithContext(ctx context.Context) DomainCredentialMapOutput

type DomainCredentialMapInput added in v3.1.0

type DomainCredentialMapInput interface {
	pulumi.Input

	ToDomainCredentialMapOutput() DomainCredentialMapOutput
	ToDomainCredentialMapOutputWithContext(context.Context) DomainCredentialMapOutput
}

DomainCredentialMapInput is an input type that accepts DomainCredentialMap and DomainCredentialMapOutput values. You can construct a concrete instance of `DomainCredentialMapInput` via:

DomainCredentialMap{ "key": DomainCredentialArgs{...} }

type DomainCredentialMapOutput added in v3.1.0

type DomainCredentialMapOutput struct{ *pulumi.OutputState }

func (DomainCredentialMapOutput) ElementType added in v3.1.0

func (DomainCredentialMapOutput) ElementType() reflect.Type

func (DomainCredentialMapOutput) MapIndex added in v3.1.0

func (DomainCredentialMapOutput) ToDomainCredentialMapOutput added in v3.1.0

func (o DomainCredentialMapOutput) ToDomainCredentialMapOutput() DomainCredentialMapOutput

func (DomainCredentialMapOutput) ToDomainCredentialMapOutputWithContext added in v3.1.0

func (o DomainCredentialMapOutput) ToDomainCredentialMapOutputWithContext(ctx context.Context) DomainCredentialMapOutput

type DomainCredentialOutput added in v3.1.0

type DomainCredentialOutput struct{ *pulumi.OutputState }

func (DomainCredentialOutput) Domain added in v3.4.1

The domain to add credential of Mailgun.

func (DomainCredentialOutput) ElementType added in v3.1.0

func (DomainCredentialOutput) ElementType() reflect.Type

func (DomainCredentialOutput) Login added in v3.4.1

The local-part of the email address to create.

func (DomainCredentialOutput) Password added in v3.4.1

Password for user authentication.

func (DomainCredentialOutput) Region added in v3.4.1

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

func (DomainCredentialOutput) ToDomainCredentialOutput added in v3.1.0

func (o DomainCredentialOutput) ToDomainCredentialOutput() DomainCredentialOutput

func (DomainCredentialOutput) ToDomainCredentialOutputWithContext added in v3.1.0

func (o DomainCredentialOutput) ToDomainCredentialOutputWithContext(ctx context.Context) DomainCredentialOutput

type DomainCredentialState added in v3.1.0

type DomainCredentialState struct {
	// The domain to add credential of Mailgun.
	Domain pulumi.StringPtrInput
	// The local-part of the email address to create.
	Login pulumi.StringPtrInput
	// Password for user authentication.
	Password pulumi.StringPtrInput
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrInput
}

func (DomainCredentialState) ElementType added in v3.1.0

func (DomainCredentialState) ElementType() reflect.Type

type DomainInput

type DomainInput interface {
	pulumi.Input

	ToDomainOutput() DomainOutput
	ToDomainOutputWithContext(ctx context.Context) DomainOutput
}

type DomainMap

type DomainMap map[string]DomainInput

func (DomainMap) ElementType

func (DomainMap) ElementType() reflect.Type

func (DomainMap) ToDomainMapOutput

func (i DomainMap) ToDomainMapOutput() DomainMapOutput

func (DomainMap) ToDomainMapOutputWithContext

func (i DomainMap) ToDomainMapOutputWithContext(ctx context.Context) DomainMapOutput

type DomainMapInput

type DomainMapInput interface {
	pulumi.Input

	ToDomainMapOutput() DomainMapOutput
	ToDomainMapOutputWithContext(context.Context) DomainMapOutput
}

DomainMapInput is an input type that accepts DomainMap and DomainMapOutput values. You can construct a concrete instance of `DomainMapInput` via:

DomainMap{ "key": DomainArgs{...} }

type DomainMapOutput

type DomainMapOutput struct{ *pulumi.OutputState }

func (DomainMapOutput) ElementType

func (DomainMapOutput) ElementType() reflect.Type

func (DomainMapOutput) MapIndex

func (DomainMapOutput) ToDomainMapOutput

func (o DomainMapOutput) ToDomainMapOutput() DomainMapOutput

func (DomainMapOutput) ToDomainMapOutputWithContext

func (o DomainMapOutput) ToDomainMapOutputWithContext(ctx context.Context) DomainMapOutput

type DomainOutput

type DomainOutput struct{ *pulumi.OutputState }

func (DomainOutput) DkimKeySize added in v3.4.1

func (o DomainOutput) DkimKeySize() pulumi.IntPtrOutput

The length of your domain’s generated DKIM key. Default value is `1024`.

func (DomainOutput) DkimSelector added in v3.4.1

func (o DomainOutput) DkimSelector() pulumi.StringPtrOutput

The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.

func (DomainOutput) ElementType

func (DomainOutput) ElementType() reflect.Type

func (DomainOutput) ForceDkimAuthority added in v3.4.1

func (o DomainOutput) ForceDkimAuthority() pulumi.BoolPtrOutput

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`.

func (DomainOutput) Name added in v3.4.1

func (o DomainOutput) Name() pulumi.StringOutput

The domain to add to Mailgun

func (DomainOutput) OpenTracking added in v3.4.1

func (o DomainOutput) OpenTracking() pulumi.BoolPtrOutput

(Enum: `yes` or `no`) The open tracking settings for the domain. Default: `no`

func (DomainOutput) ReceivingRecords deprecated added in v3.4.1

func (o DomainOutput) ReceivingRecords() DomainReceivingRecordArrayOutput

A list of DNS records for receiving validation. **Deprecated** Use `receivingRecordsSet` instead.

Deprecated: Use `receivingRecordsSet` instead.

func (DomainOutput) ReceivingRecordsSets added in v3.4.1

func (o DomainOutput) ReceivingRecordsSets() DomainReceivingRecordsSetArrayOutput

A set of DNS records for receiving validation.

func (DomainOutput) Region added in v3.4.1

func (o DomainOutput) Region() pulumi.StringPtrOutput

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

func (DomainOutput) SendingRecords deprecated added in v3.4.1

func (o DomainOutput) SendingRecords() DomainSendingRecordArrayOutput

A list of DNS records for sending validation. **Deprecated** Use `sendingRecordsSet` instead.

Deprecated: Use `sendingRecordsSet` instead.

func (DomainOutput) SendingRecordsSets added in v3.4.1

func (o DomainOutput) SendingRecordsSets() DomainSendingRecordsSetArrayOutput

A set of DNS records for sending validation.

func (DomainOutput) SmtpLogin added in v3.4.1

func (o DomainOutput) SmtpLogin() pulumi.StringOutput

The login email for the SMTP server.

func (DomainOutput) SmtpPassword added in v3.4.1

func (o DomainOutput) SmtpPassword() pulumi.StringPtrOutput

Password for SMTP authentication

func (DomainOutput) SpamAction added in v3.4.1

func (o DomainOutput) SpamAction() pulumi.StringPtrOutput

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

func (DomainOutput) ToDomainOutput

func (o DomainOutput) ToDomainOutput() DomainOutput

func (DomainOutput) ToDomainOutputWithContext

func (o DomainOutput) ToDomainOutputWithContext(ctx context.Context) DomainOutput

func (DomainOutput) Wildcard added in v3.4.1

func (o DomainOutput) Wildcard() pulumi.BoolPtrOutput

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

type DomainReceivingRecord

type DomainReceivingRecord struct {
	Id *string `pulumi:"id"`
	// The priority of the record.
	Priority *string `pulumi:"priority"`
	// The record type.
	RecordType *string `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid *string `pulumi:"valid"`
	// The value of the record.
	Value *string `pulumi:"value"`
}

type DomainReceivingRecordArgs

type DomainReceivingRecordArgs struct {
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The priority of the record.
	Priority pulumi.StringPtrInput `pulumi:"priority"`
	// The record type.
	RecordType pulumi.StringPtrInput `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid pulumi.StringPtrInput `pulumi:"valid"`
	// The value of the record.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (DomainReceivingRecordArgs) ElementType

func (DomainReceivingRecordArgs) ElementType() reflect.Type

func (DomainReceivingRecordArgs) ToDomainReceivingRecordOutput

func (i DomainReceivingRecordArgs) ToDomainReceivingRecordOutput() DomainReceivingRecordOutput

func (DomainReceivingRecordArgs) ToDomainReceivingRecordOutputWithContext

func (i DomainReceivingRecordArgs) ToDomainReceivingRecordOutputWithContext(ctx context.Context) DomainReceivingRecordOutput

type DomainReceivingRecordArray

type DomainReceivingRecordArray []DomainReceivingRecordInput

func (DomainReceivingRecordArray) ElementType

func (DomainReceivingRecordArray) ElementType() reflect.Type

func (DomainReceivingRecordArray) ToDomainReceivingRecordArrayOutput

func (i DomainReceivingRecordArray) ToDomainReceivingRecordArrayOutput() DomainReceivingRecordArrayOutput

func (DomainReceivingRecordArray) ToDomainReceivingRecordArrayOutputWithContext

func (i DomainReceivingRecordArray) ToDomainReceivingRecordArrayOutputWithContext(ctx context.Context) DomainReceivingRecordArrayOutput

type DomainReceivingRecordArrayInput

type DomainReceivingRecordArrayInput interface {
	pulumi.Input

	ToDomainReceivingRecordArrayOutput() DomainReceivingRecordArrayOutput
	ToDomainReceivingRecordArrayOutputWithContext(context.Context) DomainReceivingRecordArrayOutput
}

DomainReceivingRecordArrayInput is an input type that accepts DomainReceivingRecordArray and DomainReceivingRecordArrayOutput values. You can construct a concrete instance of `DomainReceivingRecordArrayInput` via:

DomainReceivingRecordArray{ DomainReceivingRecordArgs{...} }

type DomainReceivingRecordArrayOutput

type DomainReceivingRecordArrayOutput struct{ *pulumi.OutputState }

func (DomainReceivingRecordArrayOutput) ElementType

func (DomainReceivingRecordArrayOutput) Index

func (DomainReceivingRecordArrayOutput) ToDomainReceivingRecordArrayOutput

func (o DomainReceivingRecordArrayOutput) ToDomainReceivingRecordArrayOutput() DomainReceivingRecordArrayOutput

func (DomainReceivingRecordArrayOutput) ToDomainReceivingRecordArrayOutputWithContext

func (o DomainReceivingRecordArrayOutput) ToDomainReceivingRecordArrayOutputWithContext(ctx context.Context) DomainReceivingRecordArrayOutput

type DomainReceivingRecordInput

type DomainReceivingRecordInput interface {
	pulumi.Input

	ToDomainReceivingRecordOutput() DomainReceivingRecordOutput
	ToDomainReceivingRecordOutputWithContext(context.Context) DomainReceivingRecordOutput
}

DomainReceivingRecordInput is an input type that accepts DomainReceivingRecordArgs and DomainReceivingRecordOutput values. You can construct a concrete instance of `DomainReceivingRecordInput` via:

DomainReceivingRecordArgs{...}

type DomainReceivingRecordOutput

type DomainReceivingRecordOutput struct{ *pulumi.OutputState }

func (DomainReceivingRecordOutput) ElementType

func (DomainReceivingRecordOutput) Id added in v3.4.1

func (DomainReceivingRecordOutput) Priority

The priority of the record.

func (DomainReceivingRecordOutput) RecordType

The record type.

func (DomainReceivingRecordOutput) ToDomainReceivingRecordOutput

func (o DomainReceivingRecordOutput) ToDomainReceivingRecordOutput() DomainReceivingRecordOutput

func (DomainReceivingRecordOutput) ToDomainReceivingRecordOutputWithContext

func (o DomainReceivingRecordOutput) ToDomainReceivingRecordOutputWithContext(ctx context.Context) DomainReceivingRecordOutput

func (DomainReceivingRecordOutput) Valid

`"valid"` if the record is valid.

func (DomainReceivingRecordOutput) Value

The value of the record.

type DomainReceivingRecordsSet added in v3.4.1

type DomainReceivingRecordsSet struct {
	Id *string `pulumi:"id"`
	// The priority of the record.
	Priority *string `pulumi:"priority"`
	// The record type.
	RecordType *string `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid *string `pulumi:"valid"`
	// The value of the record.
	Value *string `pulumi:"value"`
}

type DomainReceivingRecordsSetArgs added in v3.4.1

type DomainReceivingRecordsSetArgs struct {
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The priority of the record.
	Priority pulumi.StringPtrInput `pulumi:"priority"`
	// The record type.
	RecordType pulumi.StringPtrInput `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid pulumi.StringPtrInput `pulumi:"valid"`
	// The value of the record.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (DomainReceivingRecordsSetArgs) ElementType added in v3.4.1

func (DomainReceivingRecordsSetArgs) ToDomainReceivingRecordsSetOutput added in v3.4.1

func (i DomainReceivingRecordsSetArgs) ToDomainReceivingRecordsSetOutput() DomainReceivingRecordsSetOutput

func (DomainReceivingRecordsSetArgs) ToDomainReceivingRecordsSetOutputWithContext added in v3.4.1

func (i DomainReceivingRecordsSetArgs) ToDomainReceivingRecordsSetOutputWithContext(ctx context.Context) DomainReceivingRecordsSetOutput

type DomainReceivingRecordsSetArray added in v3.4.1

type DomainReceivingRecordsSetArray []DomainReceivingRecordsSetInput

func (DomainReceivingRecordsSetArray) ElementType added in v3.4.1

func (DomainReceivingRecordsSetArray) ToDomainReceivingRecordsSetArrayOutput added in v3.4.1

func (i DomainReceivingRecordsSetArray) ToDomainReceivingRecordsSetArrayOutput() DomainReceivingRecordsSetArrayOutput

func (DomainReceivingRecordsSetArray) ToDomainReceivingRecordsSetArrayOutputWithContext added in v3.4.1

func (i DomainReceivingRecordsSetArray) ToDomainReceivingRecordsSetArrayOutputWithContext(ctx context.Context) DomainReceivingRecordsSetArrayOutput

type DomainReceivingRecordsSetArrayInput added in v3.4.1

type DomainReceivingRecordsSetArrayInput interface {
	pulumi.Input

	ToDomainReceivingRecordsSetArrayOutput() DomainReceivingRecordsSetArrayOutput
	ToDomainReceivingRecordsSetArrayOutputWithContext(context.Context) DomainReceivingRecordsSetArrayOutput
}

DomainReceivingRecordsSetArrayInput is an input type that accepts DomainReceivingRecordsSetArray and DomainReceivingRecordsSetArrayOutput values. You can construct a concrete instance of `DomainReceivingRecordsSetArrayInput` via:

DomainReceivingRecordsSetArray{ DomainReceivingRecordsSetArgs{...} }

type DomainReceivingRecordsSetArrayOutput added in v3.4.1

type DomainReceivingRecordsSetArrayOutput struct{ *pulumi.OutputState }

func (DomainReceivingRecordsSetArrayOutput) ElementType added in v3.4.1

func (DomainReceivingRecordsSetArrayOutput) Index added in v3.4.1

func (DomainReceivingRecordsSetArrayOutput) ToDomainReceivingRecordsSetArrayOutput added in v3.4.1

func (o DomainReceivingRecordsSetArrayOutput) ToDomainReceivingRecordsSetArrayOutput() DomainReceivingRecordsSetArrayOutput

func (DomainReceivingRecordsSetArrayOutput) ToDomainReceivingRecordsSetArrayOutputWithContext added in v3.4.1

func (o DomainReceivingRecordsSetArrayOutput) ToDomainReceivingRecordsSetArrayOutputWithContext(ctx context.Context) DomainReceivingRecordsSetArrayOutput

type DomainReceivingRecordsSetInput added in v3.4.1

type DomainReceivingRecordsSetInput interface {
	pulumi.Input

	ToDomainReceivingRecordsSetOutput() DomainReceivingRecordsSetOutput
	ToDomainReceivingRecordsSetOutputWithContext(context.Context) DomainReceivingRecordsSetOutput
}

DomainReceivingRecordsSetInput is an input type that accepts DomainReceivingRecordsSetArgs and DomainReceivingRecordsSetOutput values. You can construct a concrete instance of `DomainReceivingRecordsSetInput` via:

DomainReceivingRecordsSetArgs{...}

type DomainReceivingRecordsSetOutput added in v3.4.1

type DomainReceivingRecordsSetOutput struct{ *pulumi.OutputState }

func (DomainReceivingRecordsSetOutput) ElementType added in v3.4.1

func (DomainReceivingRecordsSetOutput) Id added in v3.4.1

func (DomainReceivingRecordsSetOutput) Priority added in v3.4.1

The priority of the record.

func (DomainReceivingRecordsSetOutput) RecordType added in v3.4.1

The record type.

func (DomainReceivingRecordsSetOutput) ToDomainReceivingRecordsSetOutput added in v3.4.1

func (o DomainReceivingRecordsSetOutput) ToDomainReceivingRecordsSetOutput() DomainReceivingRecordsSetOutput

func (DomainReceivingRecordsSetOutput) ToDomainReceivingRecordsSetOutputWithContext added in v3.4.1

func (o DomainReceivingRecordsSetOutput) ToDomainReceivingRecordsSetOutputWithContext(ctx context.Context) DomainReceivingRecordsSetOutput

func (DomainReceivingRecordsSetOutput) Valid added in v3.4.1

`"valid"` if the record is valid.

func (DomainReceivingRecordsSetOutput) Value added in v3.4.1

The value of the record.

type DomainSendingRecord

type DomainSendingRecord struct {
	Id *string `pulumi:"id"`
	// The domain to add to Mailgun
	Name *string `pulumi:"name"`
	// The record type.
	RecordType *string `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid *string `pulumi:"valid"`
	// The value of the record.
	Value *string `pulumi:"value"`
}

type DomainSendingRecordArgs

type DomainSendingRecordArgs struct {
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The domain to add to Mailgun
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The record type.
	RecordType pulumi.StringPtrInput `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid pulumi.StringPtrInput `pulumi:"valid"`
	// The value of the record.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (DomainSendingRecordArgs) ElementType

func (DomainSendingRecordArgs) ElementType() reflect.Type

func (DomainSendingRecordArgs) ToDomainSendingRecordOutput

func (i DomainSendingRecordArgs) ToDomainSendingRecordOutput() DomainSendingRecordOutput

func (DomainSendingRecordArgs) ToDomainSendingRecordOutputWithContext

func (i DomainSendingRecordArgs) ToDomainSendingRecordOutputWithContext(ctx context.Context) DomainSendingRecordOutput

type DomainSendingRecordArray

type DomainSendingRecordArray []DomainSendingRecordInput

func (DomainSendingRecordArray) ElementType

func (DomainSendingRecordArray) ElementType() reflect.Type

func (DomainSendingRecordArray) ToDomainSendingRecordArrayOutput

func (i DomainSendingRecordArray) ToDomainSendingRecordArrayOutput() DomainSendingRecordArrayOutput

func (DomainSendingRecordArray) ToDomainSendingRecordArrayOutputWithContext

func (i DomainSendingRecordArray) ToDomainSendingRecordArrayOutputWithContext(ctx context.Context) DomainSendingRecordArrayOutput

type DomainSendingRecordArrayInput

type DomainSendingRecordArrayInput interface {
	pulumi.Input

	ToDomainSendingRecordArrayOutput() DomainSendingRecordArrayOutput
	ToDomainSendingRecordArrayOutputWithContext(context.Context) DomainSendingRecordArrayOutput
}

DomainSendingRecordArrayInput is an input type that accepts DomainSendingRecordArray and DomainSendingRecordArrayOutput values. You can construct a concrete instance of `DomainSendingRecordArrayInput` via:

DomainSendingRecordArray{ DomainSendingRecordArgs{...} }

type DomainSendingRecordArrayOutput

type DomainSendingRecordArrayOutput struct{ *pulumi.OutputState }

func (DomainSendingRecordArrayOutput) ElementType

func (DomainSendingRecordArrayOutput) Index

func (DomainSendingRecordArrayOutput) ToDomainSendingRecordArrayOutput

func (o DomainSendingRecordArrayOutput) ToDomainSendingRecordArrayOutput() DomainSendingRecordArrayOutput

func (DomainSendingRecordArrayOutput) ToDomainSendingRecordArrayOutputWithContext

func (o DomainSendingRecordArrayOutput) ToDomainSendingRecordArrayOutputWithContext(ctx context.Context) DomainSendingRecordArrayOutput

type DomainSendingRecordInput

type DomainSendingRecordInput interface {
	pulumi.Input

	ToDomainSendingRecordOutput() DomainSendingRecordOutput
	ToDomainSendingRecordOutputWithContext(context.Context) DomainSendingRecordOutput
}

DomainSendingRecordInput is an input type that accepts DomainSendingRecordArgs and DomainSendingRecordOutput values. You can construct a concrete instance of `DomainSendingRecordInput` via:

DomainSendingRecordArgs{...}

type DomainSendingRecordOutput

type DomainSendingRecordOutput struct{ *pulumi.OutputState }

func (DomainSendingRecordOutput) ElementType

func (DomainSendingRecordOutput) ElementType() reflect.Type

func (DomainSendingRecordOutput) Id added in v3.4.1

func (DomainSendingRecordOutput) Name

The domain to add to Mailgun

func (DomainSendingRecordOutput) RecordType

The record type.

func (DomainSendingRecordOutput) ToDomainSendingRecordOutput

func (o DomainSendingRecordOutput) ToDomainSendingRecordOutput() DomainSendingRecordOutput

func (DomainSendingRecordOutput) ToDomainSendingRecordOutputWithContext

func (o DomainSendingRecordOutput) ToDomainSendingRecordOutputWithContext(ctx context.Context) DomainSendingRecordOutput

func (DomainSendingRecordOutput) Valid

`"valid"` if the record is valid.

func (DomainSendingRecordOutput) Value

The value of the record.

type DomainSendingRecordsSet added in v3.4.1

type DomainSendingRecordsSet struct {
	Id *string `pulumi:"id"`
	// The domain to add to Mailgun
	Name *string `pulumi:"name"`
	// The record type.
	RecordType *string `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid *string `pulumi:"valid"`
	// The value of the record.
	Value *string `pulumi:"value"`
}

type DomainSendingRecordsSetArgs added in v3.4.1

type DomainSendingRecordsSetArgs struct {
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The domain to add to Mailgun
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The record type.
	RecordType pulumi.StringPtrInput `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid pulumi.StringPtrInput `pulumi:"valid"`
	// The value of the record.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (DomainSendingRecordsSetArgs) ElementType added in v3.4.1

func (DomainSendingRecordsSetArgs) ToDomainSendingRecordsSetOutput added in v3.4.1

func (i DomainSendingRecordsSetArgs) ToDomainSendingRecordsSetOutput() DomainSendingRecordsSetOutput

func (DomainSendingRecordsSetArgs) ToDomainSendingRecordsSetOutputWithContext added in v3.4.1

func (i DomainSendingRecordsSetArgs) ToDomainSendingRecordsSetOutputWithContext(ctx context.Context) DomainSendingRecordsSetOutput

type DomainSendingRecordsSetArray added in v3.4.1

type DomainSendingRecordsSetArray []DomainSendingRecordsSetInput

func (DomainSendingRecordsSetArray) ElementType added in v3.4.1

func (DomainSendingRecordsSetArray) ToDomainSendingRecordsSetArrayOutput added in v3.4.1

func (i DomainSendingRecordsSetArray) ToDomainSendingRecordsSetArrayOutput() DomainSendingRecordsSetArrayOutput

func (DomainSendingRecordsSetArray) ToDomainSendingRecordsSetArrayOutputWithContext added in v3.4.1

func (i DomainSendingRecordsSetArray) ToDomainSendingRecordsSetArrayOutputWithContext(ctx context.Context) DomainSendingRecordsSetArrayOutput

type DomainSendingRecordsSetArrayInput added in v3.4.1

type DomainSendingRecordsSetArrayInput interface {
	pulumi.Input

	ToDomainSendingRecordsSetArrayOutput() DomainSendingRecordsSetArrayOutput
	ToDomainSendingRecordsSetArrayOutputWithContext(context.Context) DomainSendingRecordsSetArrayOutput
}

DomainSendingRecordsSetArrayInput is an input type that accepts DomainSendingRecordsSetArray and DomainSendingRecordsSetArrayOutput values. You can construct a concrete instance of `DomainSendingRecordsSetArrayInput` via:

DomainSendingRecordsSetArray{ DomainSendingRecordsSetArgs{...} }

type DomainSendingRecordsSetArrayOutput added in v3.4.1

type DomainSendingRecordsSetArrayOutput struct{ *pulumi.OutputState }

func (DomainSendingRecordsSetArrayOutput) ElementType added in v3.4.1

func (DomainSendingRecordsSetArrayOutput) Index added in v3.4.1

func (DomainSendingRecordsSetArrayOutput) ToDomainSendingRecordsSetArrayOutput added in v3.4.1

func (o DomainSendingRecordsSetArrayOutput) ToDomainSendingRecordsSetArrayOutput() DomainSendingRecordsSetArrayOutput

func (DomainSendingRecordsSetArrayOutput) ToDomainSendingRecordsSetArrayOutputWithContext added in v3.4.1

func (o DomainSendingRecordsSetArrayOutput) ToDomainSendingRecordsSetArrayOutputWithContext(ctx context.Context) DomainSendingRecordsSetArrayOutput

type DomainSendingRecordsSetInput added in v3.4.1

type DomainSendingRecordsSetInput interface {
	pulumi.Input

	ToDomainSendingRecordsSetOutput() DomainSendingRecordsSetOutput
	ToDomainSendingRecordsSetOutputWithContext(context.Context) DomainSendingRecordsSetOutput
}

DomainSendingRecordsSetInput is an input type that accepts DomainSendingRecordsSetArgs and DomainSendingRecordsSetOutput values. You can construct a concrete instance of `DomainSendingRecordsSetInput` via:

DomainSendingRecordsSetArgs{...}

type DomainSendingRecordsSetOutput added in v3.4.1

type DomainSendingRecordsSetOutput struct{ *pulumi.OutputState }

func (DomainSendingRecordsSetOutput) ElementType added in v3.4.1

func (DomainSendingRecordsSetOutput) Id added in v3.4.1

func (DomainSendingRecordsSetOutput) Name added in v3.4.1

The domain to add to Mailgun

func (DomainSendingRecordsSetOutput) RecordType added in v3.4.1

The record type.

func (DomainSendingRecordsSetOutput) ToDomainSendingRecordsSetOutput added in v3.4.1

func (o DomainSendingRecordsSetOutput) ToDomainSendingRecordsSetOutput() DomainSendingRecordsSetOutput

func (DomainSendingRecordsSetOutput) ToDomainSendingRecordsSetOutputWithContext added in v3.4.1

func (o DomainSendingRecordsSetOutput) ToDomainSendingRecordsSetOutputWithContext(ctx context.Context) DomainSendingRecordsSetOutput

func (DomainSendingRecordsSetOutput) Valid added in v3.4.1

`"valid"` if the record is valid.

func (DomainSendingRecordsSetOutput) Value added in v3.4.1

The value of the record.

type DomainState

type DomainState struct {
	// The length of your domain’s generated DKIM key. Default value is `1024`.
	DkimKeySize pulumi.IntPtrInput
	// The name of your DKIM selector if you want to specify it whereas MailGun will make it's own choice.
	DkimSelector pulumi.StringPtrInput
	// 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`.
	ForceDkimAuthority pulumi.BoolPtrInput
	// The domain to add to Mailgun
	Name pulumi.StringPtrInput
	// (Enum: `yes` or `no`) The open tracking settings for the domain. Default: `no`
	OpenTracking pulumi.BoolPtrInput
	// A list of DNS records for receiving validation.  **Deprecated** Use `receivingRecordsSet` instead.
	//
	// Deprecated: Use `receivingRecordsSet` instead.
	ReceivingRecords DomainReceivingRecordArrayInput
	// A set of DNS records for receiving validation.
	ReceivingRecordsSets DomainReceivingRecordsSetArrayInput
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrInput
	// A list of DNS records for sending validation. **Deprecated** Use `sendingRecordsSet` instead.
	//
	// Deprecated: Use `sendingRecordsSet` instead.
	SendingRecords DomainSendingRecordArrayInput
	// A set of DNS records for sending validation.
	SendingRecordsSets DomainSendingRecordsSetArrayInput
	// The login email for the SMTP server.
	SmtpLogin pulumi.StringPtrInput
	// Password for SMTP authentication
	SmtpPassword pulumi.StringPtrInput
	// `disabled` or `tag` Disable, no spam
	// filtering will occur for inbound messages. Tag, messages
	// will be tagged with a spam header. Default value is `disabled`.
	SpamAction pulumi.StringPtrInput
	// Boolean that determines whether
	// the domain will accept email for sub-domains.
	Wildcard pulumi.BoolPtrInput
}

func (DomainState) ElementType

func (DomainState) ElementType() reflect.Type

type GetDomainReceivingRecord added in v3.1.0

type GetDomainReceivingRecord struct {
	Id string `pulumi:"id"`
	// The priority of the record.
	Priority string `pulumi:"priority"`
	// The record type.
	RecordType string `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid string `pulumi:"valid"`
	// The value of the record.
	Value string `pulumi:"value"`
}

type GetDomainReceivingRecordArgs added in v3.1.0

type GetDomainReceivingRecordArgs struct {
	Id pulumi.StringInput `pulumi:"id"`
	// The priority of the record.
	Priority pulumi.StringInput `pulumi:"priority"`
	// The record type.
	RecordType pulumi.StringInput `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid pulumi.StringInput `pulumi:"valid"`
	// The value of the record.
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetDomainReceivingRecordArgs) ElementType added in v3.1.0

func (GetDomainReceivingRecordArgs) ToGetDomainReceivingRecordOutput added in v3.1.0

func (i GetDomainReceivingRecordArgs) ToGetDomainReceivingRecordOutput() GetDomainReceivingRecordOutput

func (GetDomainReceivingRecordArgs) ToGetDomainReceivingRecordOutputWithContext added in v3.1.0

func (i GetDomainReceivingRecordArgs) ToGetDomainReceivingRecordOutputWithContext(ctx context.Context) GetDomainReceivingRecordOutput

type GetDomainReceivingRecordArray added in v3.1.0

type GetDomainReceivingRecordArray []GetDomainReceivingRecordInput

func (GetDomainReceivingRecordArray) ElementType added in v3.1.0

func (GetDomainReceivingRecordArray) ToGetDomainReceivingRecordArrayOutput added in v3.1.0

func (i GetDomainReceivingRecordArray) ToGetDomainReceivingRecordArrayOutput() GetDomainReceivingRecordArrayOutput

func (GetDomainReceivingRecordArray) ToGetDomainReceivingRecordArrayOutputWithContext added in v3.1.0

func (i GetDomainReceivingRecordArray) ToGetDomainReceivingRecordArrayOutputWithContext(ctx context.Context) GetDomainReceivingRecordArrayOutput

type GetDomainReceivingRecordArrayInput added in v3.1.0

type GetDomainReceivingRecordArrayInput interface {
	pulumi.Input

	ToGetDomainReceivingRecordArrayOutput() GetDomainReceivingRecordArrayOutput
	ToGetDomainReceivingRecordArrayOutputWithContext(context.Context) GetDomainReceivingRecordArrayOutput
}

GetDomainReceivingRecordArrayInput is an input type that accepts GetDomainReceivingRecordArray and GetDomainReceivingRecordArrayOutput values. You can construct a concrete instance of `GetDomainReceivingRecordArrayInput` via:

GetDomainReceivingRecordArray{ GetDomainReceivingRecordArgs{...} }

type GetDomainReceivingRecordArrayOutput added in v3.1.0

type GetDomainReceivingRecordArrayOutput struct{ *pulumi.OutputState }

func (GetDomainReceivingRecordArrayOutput) ElementType added in v3.1.0

func (GetDomainReceivingRecordArrayOutput) Index added in v3.1.0

func (GetDomainReceivingRecordArrayOutput) ToGetDomainReceivingRecordArrayOutput added in v3.1.0

func (o GetDomainReceivingRecordArrayOutput) ToGetDomainReceivingRecordArrayOutput() GetDomainReceivingRecordArrayOutput

func (GetDomainReceivingRecordArrayOutput) ToGetDomainReceivingRecordArrayOutputWithContext added in v3.1.0

func (o GetDomainReceivingRecordArrayOutput) ToGetDomainReceivingRecordArrayOutputWithContext(ctx context.Context) GetDomainReceivingRecordArrayOutput

type GetDomainReceivingRecordInput added in v3.1.0

type GetDomainReceivingRecordInput interface {
	pulumi.Input

	ToGetDomainReceivingRecordOutput() GetDomainReceivingRecordOutput
	ToGetDomainReceivingRecordOutputWithContext(context.Context) GetDomainReceivingRecordOutput
}

GetDomainReceivingRecordInput is an input type that accepts GetDomainReceivingRecordArgs and GetDomainReceivingRecordOutput values. You can construct a concrete instance of `GetDomainReceivingRecordInput` via:

GetDomainReceivingRecordArgs{...}

type GetDomainReceivingRecordOutput added in v3.1.0

type GetDomainReceivingRecordOutput struct{ *pulumi.OutputState }

func (GetDomainReceivingRecordOutput) ElementType added in v3.1.0

func (GetDomainReceivingRecordOutput) Id added in v3.4.1

func (GetDomainReceivingRecordOutput) Priority added in v3.1.0

The priority of the record.

func (GetDomainReceivingRecordOutput) RecordType added in v3.1.0

The record type.

func (GetDomainReceivingRecordOutput) ToGetDomainReceivingRecordOutput added in v3.1.0

func (o GetDomainReceivingRecordOutput) ToGetDomainReceivingRecordOutput() GetDomainReceivingRecordOutput

func (GetDomainReceivingRecordOutput) ToGetDomainReceivingRecordOutputWithContext added in v3.1.0

func (o GetDomainReceivingRecordOutput) ToGetDomainReceivingRecordOutputWithContext(ctx context.Context) GetDomainReceivingRecordOutput

func (GetDomainReceivingRecordOutput) Valid added in v3.1.0

`"valid"` if the record is valid.

func (GetDomainReceivingRecordOutput) Value added in v3.1.0

The value of the record.

type GetDomainReceivingRecordsSet added in v3.4.1

type GetDomainReceivingRecordsSet struct {
	Id string `pulumi:"id"`
	// The priority of the record.
	Priority string `pulumi:"priority"`
	// The record type.
	RecordType string `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid string `pulumi:"valid"`
	// The value of the record.
	Value string `pulumi:"value"`
}

type GetDomainReceivingRecordsSetArgs added in v3.4.1

type GetDomainReceivingRecordsSetArgs struct {
	Id pulumi.StringInput `pulumi:"id"`
	// The priority of the record.
	Priority pulumi.StringInput `pulumi:"priority"`
	// The record type.
	RecordType pulumi.StringInput `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid pulumi.StringInput `pulumi:"valid"`
	// The value of the record.
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetDomainReceivingRecordsSetArgs) ElementType added in v3.4.1

func (GetDomainReceivingRecordsSetArgs) ToGetDomainReceivingRecordsSetOutput added in v3.4.1

func (i GetDomainReceivingRecordsSetArgs) ToGetDomainReceivingRecordsSetOutput() GetDomainReceivingRecordsSetOutput

func (GetDomainReceivingRecordsSetArgs) ToGetDomainReceivingRecordsSetOutputWithContext added in v3.4.1

func (i GetDomainReceivingRecordsSetArgs) ToGetDomainReceivingRecordsSetOutputWithContext(ctx context.Context) GetDomainReceivingRecordsSetOutput

type GetDomainReceivingRecordsSetArray added in v3.4.1

type GetDomainReceivingRecordsSetArray []GetDomainReceivingRecordsSetInput

func (GetDomainReceivingRecordsSetArray) ElementType added in v3.4.1

func (GetDomainReceivingRecordsSetArray) ToGetDomainReceivingRecordsSetArrayOutput added in v3.4.1

func (i GetDomainReceivingRecordsSetArray) ToGetDomainReceivingRecordsSetArrayOutput() GetDomainReceivingRecordsSetArrayOutput

func (GetDomainReceivingRecordsSetArray) ToGetDomainReceivingRecordsSetArrayOutputWithContext added in v3.4.1

func (i GetDomainReceivingRecordsSetArray) ToGetDomainReceivingRecordsSetArrayOutputWithContext(ctx context.Context) GetDomainReceivingRecordsSetArrayOutput

type GetDomainReceivingRecordsSetArrayInput added in v3.4.1

type GetDomainReceivingRecordsSetArrayInput interface {
	pulumi.Input

	ToGetDomainReceivingRecordsSetArrayOutput() GetDomainReceivingRecordsSetArrayOutput
	ToGetDomainReceivingRecordsSetArrayOutputWithContext(context.Context) GetDomainReceivingRecordsSetArrayOutput
}

GetDomainReceivingRecordsSetArrayInput is an input type that accepts GetDomainReceivingRecordsSetArray and GetDomainReceivingRecordsSetArrayOutput values. You can construct a concrete instance of `GetDomainReceivingRecordsSetArrayInput` via:

GetDomainReceivingRecordsSetArray{ GetDomainReceivingRecordsSetArgs{...} }

type GetDomainReceivingRecordsSetArrayOutput added in v3.4.1

type GetDomainReceivingRecordsSetArrayOutput struct{ *pulumi.OutputState }

func (GetDomainReceivingRecordsSetArrayOutput) ElementType added in v3.4.1

func (GetDomainReceivingRecordsSetArrayOutput) Index added in v3.4.1

func (GetDomainReceivingRecordsSetArrayOutput) ToGetDomainReceivingRecordsSetArrayOutput added in v3.4.1

func (o GetDomainReceivingRecordsSetArrayOutput) ToGetDomainReceivingRecordsSetArrayOutput() GetDomainReceivingRecordsSetArrayOutput

func (GetDomainReceivingRecordsSetArrayOutput) ToGetDomainReceivingRecordsSetArrayOutputWithContext added in v3.4.1

func (o GetDomainReceivingRecordsSetArrayOutput) ToGetDomainReceivingRecordsSetArrayOutputWithContext(ctx context.Context) GetDomainReceivingRecordsSetArrayOutput

type GetDomainReceivingRecordsSetInput added in v3.4.1

type GetDomainReceivingRecordsSetInput interface {
	pulumi.Input

	ToGetDomainReceivingRecordsSetOutput() GetDomainReceivingRecordsSetOutput
	ToGetDomainReceivingRecordsSetOutputWithContext(context.Context) GetDomainReceivingRecordsSetOutput
}

GetDomainReceivingRecordsSetInput is an input type that accepts GetDomainReceivingRecordsSetArgs and GetDomainReceivingRecordsSetOutput values. You can construct a concrete instance of `GetDomainReceivingRecordsSetInput` via:

GetDomainReceivingRecordsSetArgs{...}

type GetDomainReceivingRecordsSetOutput added in v3.4.1

type GetDomainReceivingRecordsSetOutput struct{ *pulumi.OutputState }

func (GetDomainReceivingRecordsSetOutput) ElementType added in v3.4.1

func (GetDomainReceivingRecordsSetOutput) Id added in v3.4.1

func (GetDomainReceivingRecordsSetOutput) Priority added in v3.4.1

The priority of the record.

func (GetDomainReceivingRecordsSetOutput) RecordType added in v3.4.1

The record type.

func (GetDomainReceivingRecordsSetOutput) ToGetDomainReceivingRecordsSetOutput added in v3.4.1

func (o GetDomainReceivingRecordsSetOutput) ToGetDomainReceivingRecordsSetOutput() GetDomainReceivingRecordsSetOutput

func (GetDomainReceivingRecordsSetOutput) ToGetDomainReceivingRecordsSetOutputWithContext added in v3.4.1

func (o GetDomainReceivingRecordsSetOutput) ToGetDomainReceivingRecordsSetOutputWithContext(ctx context.Context) GetDomainReceivingRecordsSetOutput

func (GetDomainReceivingRecordsSetOutput) Valid added in v3.4.1

`"valid"` if the record is valid.

func (GetDomainReceivingRecordsSetOutput) Value added in v3.4.1

The value of the record.

type GetDomainSendingRecord added in v3.1.0

type GetDomainSendingRecord struct {
	Id string `pulumi:"id"`
	// The name of the domain.
	Name string `pulumi:"name"`
	// The record type.
	RecordType string `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid string `pulumi:"valid"`
	// The value of the record.
	Value string `pulumi:"value"`
}

type GetDomainSendingRecordArgs added in v3.1.0

type GetDomainSendingRecordArgs struct {
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the domain.
	Name pulumi.StringInput `pulumi:"name"`
	// The record type.
	RecordType pulumi.StringInput `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid pulumi.StringInput `pulumi:"valid"`
	// The value of the record.
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetDomainSendingRecordArgs) ElementType added in v3.1.0

func (GetDomainSendingRecordArgs) ElementType() reflect.Type

func (GetDomainSendingRecordArgs) ToGetDomainSendingRecordOutput added in v3.1.0

func (i GetDomainSendingRecordArgs) ToGetDomainSendingRecordOutput() GetDomainSendingRecordOutput

func (GetDomainSendingRecordArgs) ToGetDomainSendingRecordOutputWithContext added in v3.1.0

func (i GetDomainSendingRecordArgs) ToGetDomainSendingRecordOutputWithContext(ctx context.Context) GetDomainSendingRecordOutput

type GetDomainSendingRecordArray added in v3.1.0

type GetDomainSendingRecordArray []GetDomainSendingRecordInput

func (GetDomainSendingRecordArray) ElementType added in v3.1.0

func (GetDomainSendingRecordArray) ToGetDomainSendingRecordArrayOutput added in v3.1.0

func (i GetDomainSendingRecordArray) ToGetDomainSendingRecordArrayOutput() GetDomainSendingRecordArrayOutput

func (GetDomainSendingRecordArray) ToGetDomainSendingRecordArrayOutputWithContext added in v3.1.0

func (i GetDomainSendingRecordArray) ToGetDomainSendingRecordArrayOutputWithContext(ctx context.Context) GetDomainSendingRecordArrayOutput

type GetDomainSendingRecordArrayInput added in v3.1.0

type GetDomainSendingRecordArrayInput interface {
	pulumi.Input

	ToGetDomainSendingRecordArrayOutput() GetDomainSendingRecordArrayOutput
	ToGetDomainSendingRecordArrayOutputWithContext(context.Context) GetDomainSendingRecordArrayOutput
}

GetDomainSendingRecordArrayInput is an input type that accepts GetDomainSendingRecordArray and GetDomainSendingRecordArrayOutput values. You can construct a concrete instance of `GetDomainSendingRecordArrayInput` via:

GetDomainSendingRecordArray{ GetDomainSendingRecordArgs{...} }

type GetDomainSendingRecordArrayOutput added in v3.1.0

type GetDomainSendingRecordArrayOutput struct{ *pulumi.OutputState }

func (GetDomainSendingRecordArrayOutput) ElementType added in v3.1.0

func (GetDomainSendingRecordArrayOutput) Index added in v3.1.0

func (GetDomainSendingRecordArrayOutput) ToGetDomainSendingRecordArrayOutput added in v3.1.0

func (o GetDomainSendingRecordArrayOutput) ToGetDomainSendingRecordArrayOutput() GetDomainSendingRecordArrayOutput

func (GetDomainSendingRecordArrayOutput) ToGetDomainSendingRecordArrayOutputWithContext added in v3.1.0

func (o GetDomainSendingRecordArrayOutput) ToGetDomainSendingRecordArrayOutputWithContext(ctx context.Context) GetDomainSendingRecordArrayOutput

type GetDomainSendingRecordInput added in v3.1.0

type GetDomainSendingRecordInput interface {
	pulumi.Input

	ToGetDomainSendingRecordOutput() GetDomainSendingRecordOutput
	ToGetDomainSendingRecordOutputWithContext(context.Context) GetDomainSendingRecordOutput
}

GetDomainSendingRecordInput is an input type that accepts GetDomainSendingRecordArgs and GetDomainSendingRecordOutput values. You can construct a concrete instance of `GetDomainSendingRecordInput` via:

GetDomainSendingRecordArgs{...}

type GetDomainSendingRecordOutput added in v3.1.0

type GetDomainSendingRecordOutput struct{ *pulumi.OutputState }

func (GetDomainSendingRecordOutput) ElementType added in v3.1.0

func (GetDomainSendingRecordOutput) Id added in v3.4.1

func (GetDomainSendingRecordOutput) Name added in v3.1.0

The name of the domain.

func (GetDomainSendingRecordOutput) RecordType added in v3.1.0

The record type.

func (GetDomainSendingRecordOutput) ToGetDomainSendingRecordOutput added in v3.1.0

func (o GetDomainSendingRecordOutput) ToGetDomainSendingRecordOutput() GetDomainSendingRecordOutput

func (GetDomainSendingRecordOutput) ToGetDomainSendingRecordOutputWithContext added in v3.1.0

func (o GetDomainSendingRecordOutput) ToGetDomainSendingRecordOutputWithContext(ctx context.Context) GetDomainSendingRecordOutput

func (GetDomainSendingRecordOutput) Valid added in v3.1.0

`"valid"` if the record is valid.

func (GetDomainSendingRecordOutput) Value added in v3.1.0

The value of the record.

type GetDomainSendingRecordsSet added in v3.4.1

type GetDomainSendingRecordsSet struct {
	Id string `pulumi:"id"`
	// The name of the domain.
	Name string `pulumi:"name"`
	// The record type.
	RecordType string `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid string `pulumi:"valid"`
	// The value of the record.
	Value string `pulumi:"value"`
}

type GetDomainSendingRecordsSetArgs added in v3.4.1

type GetDomainSendingRecordsSetArgs struct {
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the domain.
	Name pulumi.StringInput `pulumi:"name"`
	// The record type.
	RecordType pulumi.StringInput `pulumi:"recordType"`
	// `"valid"` if the record is valid.
	Valid pulumi.StringInput `pulumi:"valid"`
	// The value of the record.
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetDomainSendingRecordsSetArgs) ElementType added in v3.4.1

func (GetDomainSendingRecordsSetArgs) ToGetDomainSendingRecordsSetOutput added in v3.4.1

func (i GetDomainSendingRecordsSetArgs) ToGetDomainSendingRecordsSetOutput() GetDomainSendingRecordsSetOutput

func (GetDomainSendingRecordsSetArgs) ToGetDomainSendingRecordsSetOutputWithContext added in v3.4.1

func (i GetDomainSendingRecordsSetArgs) ToGetDomainSendingRecordsSetOutputWithContext(ctx context.Context) GetDomainSendingRecordsSetOutput

type GetDomainSendingRecordsSetArray added in v3.4.1

type GetDomainSendingRecordsSetArray []GetDomainSendingRecordsSetInput

func (GetDomainSendingRecordsSetArray) ElementType added in v3.4.1

func (GetDomainSendingRecordsSetArray) ToGetDomainSendingRecordsSetArrayOutput added in v3.4.1

func (i GetDomainSendingRecordsSetArray) ToGetDomainSendingRecordsSetArrayOutput() GetDomainSendingRecordsSetArrayOutput

func (GetDomainSendingRecordsSetArray) ToGetDomainSendingRecordsSetArrayOutputWithContext added in v3.4.1

func (i GetDomainSendingRecordsSetArray) ToGetDomainSendingRecordsSetArrayOutputWithContext(ctx context.Context) GetDomainSendingRecordsSetArrayOutput

type GetDomainSendingRecordsSetArrayInput added in v3.4.1

type GetDomainSendingRecordsSetArrayInput interface {
	pulumi.Input

	ToGetDomainSendingRecordsSetArrayOutput() GetDomainSendingRecordsSetArrayOutput
	ToGetDomainSendingRecordsSetArrayOutputWithContext(context.Context) GetDomainSendingRecordsSetArrayOutput
}

GetDomainSendingRecordsSetArrayInput is an input type that accepts GetDomainSendingRecordsSetArray and GetDomainSendingRecordsSetArrayOutput values. You can construct a concrete instance of `GetDomainSendingRecordsSetArrayInput` via:

GetDomainSendingRecordsSetArray{ GetDomainSendingRecordsSetArgs{...} }

type GetDomainSendingRecordsSetArrayOutput added in v3.4.1

type GetDomainSendingRecordsSetArrayOutput struct{ *pulumi.OutputState }

func (GetDomainSendingRecordsSetArrayOutput) ElementType added in v3.4.1

func (GetDomainSendingRecordsSetArrayOutput) Index added in v3.4.1

func (GetDomainSendingRecordsSetArrayOutput) ToGetDomainSendingRecordsSetArrayOutput added in v3.4.1

func (o GetDomainSendingRecordsSetArrayOutput) ToGetDomainSendingRecordsSetArrayOutput() GetDomainSendingRecordsSetArrayOutput

func (GetDomainSendingRecordsSetArrayOutput) ToGetDomainSendingRecordsSetArrayOutputWithContext added in v3.4.1

func (o GetDomainSendingRecordsSetArrayOutput) ToGetDomainSendingRecordsSetArrayOutputWithContext(ctx context.Context) GetDomainSendingRecordsSetArrayOutput

type GetDomainSendingRecordsSetInput added in v3.4.1

type GetDomainSendingRecordsSetInput interface {
	pulumi.Input

	ToGetDomainSendingRecordsSetOutput() GetDomainSendingRecordsSetOutput
	ToGetDomainSendingRecordsSetOutputWithContext(context.Context) GetDomainSendingRecordsSetOutput
}

GetDomainSendingRecordsSetInput is an input type that accepts GetDomainSendingRecordsSetArgs and GetDomainSendingRecordsSetOutput values. You can construct a concrete instance of `GetDomainSendingRecordsSetInput` via:

GetDomainSendingRecordsSetArgs{...}

type GetDomainSendingRecordsSetOutput added in v3.4.1

type GetDomainSendingRecordsSetOutput struct{ *pulumi.OutputState }

func (GetDomainSendingRecordsSetOutput) ElementType added in v3.4.1

func (GetDomainSendingRecordsSetOutput) Id added in v3.4.1

func (GetDomainSendingRecordsSetOutput) Name added in v3.4.1

The name of the domain.

func (GetDomainSendingRecordsSetOutput) RecordType added in v3.4.1

The record type.

func (GetDomainSendingRecordsSetOutput) ToGetDomainSendingRecordsSetOutput added in v3.4.1

func (o GetDomainSendingRecordsSetOutput) ToGetDomainSendingRecordsSetOutput() GetDomainSendingRecordsSetOutput

func (GetDomainSendingRecordsSetOutput) ToGetDomainSendingRecordsSetOutputWithContext added in v3.4.1

func (o GetDomainSendingRecordsSetOutput) ToGetDomainSendingRecordsSetOutputWithContext(ctx context.Context) GetDomainSendingRecordsSetOutput

func (GetDomainSendingRecordsSetOutput) Valid added in v3.4.1

`"valid"` if the record is valid.

func (GetDomainSendingRecordsSetOutput) Value added in v3.4.1

The value of the record.

type LookupDomainArgs added in v3.1.0

type LookupDomainArgs struct {
	DkimKeySize        *int    `pulumi:"dkimKeySize"`
	DkimSelector       *string `pulumi:"dkimSelector"`
	ForceDkimAuthority *bool   `pulumi:"forceDkimAuthority"`
	// The name of the domain.
	Name         string `pulumi:"name"`
	OpenTracking *bool  `pulumi:"openTracking"`
	// The region where domain will be created. Default value is `us`.
	Region *string `pulumi:"region"`
	// The password to the SMTP server.
	SmtpPassword *string `pulumi:"smtpPassword"`
	// The spam filtering setting.
	SpamAction *string `pulumi:"spamAction"`
	// Whether or not the domain will accept email for sub-domains.
	Wildcard *bool `pulumi:"wildcard"`
}

A collection of arguments for invoking getDomain.

type LookupDomainOutputArgs added in v3.3.0

type LookupDomainOutputArgs struct {
	DkimKeySize        pulumi.IntPtrInput    `pulumi:"dkimKeySize"`
	DkimSelector       pulumi.StringPtrInput `pulumi:"dkimSelector"`
	ForceDkimAuthority pulumi.BoolPtrInput   `pulumi:"forceDkimAuthority"`
	// The name of the domain.
	Name         pulumi.StringInput  `pulumi:"name"`
	OpenTracking pulumi.BoolPtrInput `pulumi:"openTracking"`
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// The password to the SMTP server.
	SmtpPassword pulumi.StringPtrInput `pulumi:"smtpPassword"`
	// The spam filtering setting.
	SpamAction pulumi.StringPtrInput `pulumi:"spamAction"`
	// Whether or not the domain will accept email for sub-domains.
	Wildcard pulumi.BoolPtrInput `pulumi:"wildcard"`
}

A collection of arguments for invoking getDomain.

func (LookupDomainOutputArgs) ElementType added in v3.3.0

func (LookupDomainOutputArgs) ElementType() reflect.Type

type LookupDomainResult added in v3.1.0

type LookupDomainResult struct {
	DkimKeySize        *int    `pulumi:"dkimKeySize"`
	DkimSelector       *string `pulumi:"dkimSelector"`
	ForceDkimAuthority *bool   `pulumi:"forceDkimAuthority"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The name of the record.
	Name         string `pulumi:"name"`
	OpenTracking *bool  `pulumi:"openTracking"`
	// A list of DNS records for receiving validation.
	//
	// Deprecated: Use `receivingRecordsSet` instead.
	ReceivingRecords     []GetDomainReceivingRecord     `pulumi:"receivingRecords"`
	ReceivingRecordsSets []GetDomainReceivingRecordsSet `pulumi:"receivingRecordsSets"`
	Region               *string                        `pulumi:"region"`
	// A list of DNS records for sending validation.
	//
	// Deprecated: Use `sendingRecordsSet` instead.
	SendingRecords     []GetDomainSendingRecord     `pulumi:"sendingRecords"`
	SendingRecordsSets []GetDomainSendingRecordsSet `pulumi:"sendingRecordsSets"`
	// The login email for the SMTP server.
	SmtpLogin string `pulumi:"smtpLogin"`
	// The password to the SMTP server.
	SmtpPassword *string `pulumi:"smtpPassword"`
	// The spam filtering setting.
	SpamAction *string `pulumi:"spamAction"`
	// Whether or not the domain will accept email for sub-domains.
	Wildcard *bool `pulumi:"wildcard"`
}

A collection of values returned by getDomain.

func LookupDomain added in v3.1.0

func LookupDomain(ctx *pulumi.Context, args *LookupDomainArgs, opts ...pulumi.InvokeOption) (*LookupDomainResult, error)

`Domain` provides details about a Mailgun domain.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"fmt"

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/route53"
"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 {
		domain, err := mailgun.LookupDomain(ctx, &mailgun.LookupDomainArgs{
			Name: "test.example.com",
		}, nil)
		if err != nil {
			return err
		}
		_, err = route53.NewRecord(ctx, "mailgun-mx", &route53.RecordArgs{
			Name: pulumi.Any(data.Mailgun.Domain.Name),
			Records: pulumi.StringArray{
				pulumi.String(fmt.Sprintf("%v %v.", domain.ReceivingRecords[0].Priority, domain.ReceivingRecords[0].Value)),
				pulumi.String(fmt.Sprintf("%v %v.", domain.ReceivingRecords[1].Priority, domain.ReceivingRecords[1].Value)),
			},
			Ttl:    pulumi.Int(3600),
			Type:   pulumi.String(route53.RecordTypeMX),
			ZoneId: pulumi.Any(_var.Zone_id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupDomainResultOutput added in v3.3.0

type LookupDomainResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDomain.

func LookupDomainOutput added in v3.3.0

func LookupDomainOutput(ctx *pulumi.Context, args LookupDomainOutputArgs, opts ...pulumi.InvokeOption) LookupDomainResultOutput

func (LookupDomainResultOutput) DkimKeySize added in v3.3.0

func (LookupDomainResultOutput) DkimSelector added in v3.3.0

func (LookupDomainResultOutput) ElementType added in v3.3.0

func (LookupDomainResultOutput) ElementType() reflect.Type

func (LookupDomainResultOutput) ForceDkimAuthority added in v3.4.1

func (o LookupDomainResultOutput) ForceDkimAuthority() pulumi.BoolPtrOutput

func (LookupDomainResultOutput) Id added in v3.3.0

The provider-assigned unique ID for this managed resource.

func (LookupDomainResultOutput) Name added in v3.3.0

The name of the record.

func (LookupDomainResultOutput) OpenTracking added in v3.4.1

func (LookupDomainResultOutput) ReceivingRecords deprecated added in v3.3.0

A list of DNS records for receiving validation.

Deprecated: Use `receivingRecordsSet` instead.

func (LookupDomainResultOutput) ReceivingRecordsSets added in v3.4.1

func (LookupDomainResultOutput) Region added in v3.3.0

func (LookupDomainResultOutput) SendingRecords deprecated added in v3.3.0

A list of DNS records for sending validation.

Deprecated: Use `sendingRecordsSet` instead.

func (LookupDomainResultOutput) SendingRecordsSets added in v3.4.1

func (LookupDomainResultOutput) SmtpLogin added in v3.3.0

The login email for the SMTP server.

func (LookupDomainResultOutput) SmtpPassword added in v3.3.0

The password to the SMTP server.

func (LookupDomainResultOutput) SpamAction added in v3.3.0

The spam filtering setting.

func (LookupDomainResultOutput) ToLookupDomainResultOutput added in v3.3.0

func (o LookupDomainResultOutput) ToLookupDomainResultOutput() LookupDomainResultOutput

func (LookupDomainResultOutput) ToLookupDomainResultOutputWithContext added in v3.3.0

func (o LookupDomainResultOutput) ToLookupDomainResultOutputWithContext(ctx context.Context) LookupDomainResultOutput

func (LookupDomainResultOutput) Wildcard added in v3.3.0

Whether or not the domain will accept email for sub-domains.

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	ApiKey pulumi.StringOutput `pulumi:"apiKey"`
}

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](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	ApiKey pulumi.StringInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) ApiKey added in v3.4.1

func (o ProviderOutput) ApiKey() pulumi.StringOutput

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type Route

type Route struct {
	pulumi.CustomResourceState

	Actions     pulumi.StringArrayOutput `pulumi:"actions"`
	Description pulumi.StringPtrOutput   `pulumi:"description"`
	// A filter expression like `match_recipient('.*@gmail.com')`
	Expression pulumi.StringOutput `pulumi:"expression"`
	// Smaller number indicates higher priority. Higher priority routes are handled first.
	Priority pulumi.IntOutput `pulumi:"priority"`
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrOutput `pulumi:"region"`
}

Provides a Mailgun Route resource. This can be used to create and manage routes on Mailgun.

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 route
		_, err := mailgun.NewRoute(ctx, "default", &mailgun.RouteArgs{
			Actions: pulumi.StringArray{
				pulumi.String("forward('http://example.com/api/v1/foos/')"),
				pulumi.String("stop()"),
			},
			Description: pulumi.String("inbound"),
			Expression:  pulumi.String("match_recipient('.*@foo.example.com')"),
			Priority:    pulumi.Int(0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Routes can be imported using `ROUTE_ID` and `region` via `import` command. Route ID can be found on Mailgun portal in section `Receiving/Routes`. Region has to be chosen from `eu` or `us` (when no selection `us` is applied).

hcl

```sh $ pulumi import mailgun:index/route:Route test eu:123456789 ```

func GetRoute

func GetRoute(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RouteState, opts ...pulumi.ResourceOption) (*Route, error)

GetRoute gets an existing Route resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRoute

func NewRoute(ctx *pulumi.Context,
	name string, args *RouteArgs, opts ...pulumi.ResourceOption) (*Route, error)

NewRoute registers a new resource with the given unique name, arguments, and options.

func (*Route) ElementType

func (*Route) ElementType() reflect.Type

func (*Route) ToRouteOutput

func (i *Route) ToRouteOutput() RouteOutput

func (*Route) ToRouteOutputWithContext

func (i *Route) ToRouteOutputWithContext(ctx context.Context) RouteOutput

type RouteArgs

type RouteArgs struct {
	Actions     pulumi.StringArrayInput
	Description pulumi.StringPtrInput
	// A filter expression like `match_recipient('.*@gmail.com')`
	Expression pulumi.StringInput
	// Smaller number indicates higher priority. Higher priority routes are handled first.
	Priority pulumi.IntInput
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a Route resource.

func (RouteArgs) ElementType

func (RouteArgs) ElementType() reflect.Type

type RouteArray

type RouteArray []RouteInput

func (RouteArray) ElementType

func (RouteArray) ElementType() reflect.Type

func (RouteArray) ToRouteArrayOutput

func (i RouteArray) ToRouteArrayOutput() RouteArrayOutput

func (RouteArray) ToRouteArrayOutputWithContext

func (i RouteArray) ToRouteArrayOutputWithContext(ctx context.Context) RouteArrayOutput

type RouteArrayInput

type RouteArrayInput interface {
	pulumi.Input

	ToRouteArrayOutput() RouteArrayOutput
	ToRouteArrayOutputWithContext(context.Context) RouteArrayOutput
}

RouteArrayInput is an input type that accepts RouteArray and RouteArrayOutput values. You can construct a concrete instance of `RouteArrayInput` via:

RouteArray{ RouteArgs{...} }

type RouteArrayOutput

type RouteArrayOutput struct{ *pulumi.OutputState }

func (RouteArrayOutput) ElementType

func (RouteArrayOutput) ElementType() reflect.Type

func (RouteArrayOutput) Index

func (RouteArrayOutput) ToRouteArrayOutput

func (o RouteArrayOutput) ToRouteArrayOutput() RouteArrayOutput

func (RouteArrayOutput) ToRouteArrayOutputWithContext

func (o RouteArrayOutput) ToRouteArrayOutputWithContext(ctx context.Context) RouteArrayOutput

type RouteInput

type RouteInput interface {
	pulumi.Input

	ToRouteOutput() RouteOutput
	ToRouteOutputWithContext(ctx context.Context) RouteOutput
}

type RouteMap

type RouteMap map[string]RouteInput

func (RouteMap) ElementType

func (RouteMap) ElementType() reflect.Type

func (RouteMap) ToRouteMapOutput

func (i RouteMap) ToRouteMapOutput() RouteMapOutput

func (RouteMap) ToRouteMapOutputWithContext

func (i RouteMap) ToRouteMapOutputWithContext(ctx context.Context) RouteMapOutput

type RouteMapInput

type RouteMapInput interface {
	pulumi.Input

	ToRouteMapOutput() RouteMapOutput
	ToRouteMapOutputWithContext(context.Context) RouteMapOutput
}

RouteMapInput is an input type that accepts RouteMap and RouteMapOutput values. You can construct a concrete instance of `RouteMapInput` via:

RouteMap{ "key": RouteArgs{...} }

type RouteMapOutput

type RouteMapOutput struct{ *pulumi.OutputState }

func (RouteMapOutput) ElementType

func (RouteMapOutput) ElementType() reflect.Type

func (RouteMapOutput) MapIndex

func (RouteMapOutput) ToRouteMapOutput

func (o RouteMapOutput) ToRouteMapOutput() RouteMapOutput

func (RouteMapOutput) ToRouteMapOutputWithContext

func (o RouteMapOutput) ToRouteMapOutputWithContext(ctx context.Context) RouteMapOutput

type RouteOutput

type RouteOutput struct{ *pulumi.OutputState }

func (RouteOutput) Actions added in v3.4.1

func (o RouteOutput) Actions() pulumi.StringArrayOutput

func (RouteOutput) Description added in v3.4.1

func (o RouteOutput) Description() pulumi.StringPtrOutput

func (RouteOutput) ElementType

func (RouteOutput) ElementType() reflect.Type

func (RouteOutput) Expression added in v3.4.1

func (o RouteOutput) Expression() pulumi.StringOutput

A filter expression like `match_recipient('.*@gmail.com')`

func (RouteOutput) Priority added in v3.4.1

func (o RouteOutput) Priority() pulumi.IntOutput

Smaller number indicates higher priority. Higher priority routes are handled first.

func (RouteOutput) Region added in v3.4.1

func (o RouteOutput) Region() pulumi.StringPtrOutput

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

func (RouteOutput) ToRouteOutput

func (o RouteOutput) ToRouteOutput() RouteOutput

func (RouteOutput) ToRouteOutputWithContext

func (o RouteOutput) ToRouteOutputWithContext(ctx context.Context) RouteOutput

type RouteState

type RouteState struct {
	Actions     pulumi.StringArrayInput
	Description pulumi.StringPtrInput
	// A filter expression like `match_recipient('.*@gmail.com')`
	Expression pulumi.StringPtrInput
	// Smaller number indicates higher priority. Higher priority routes are handled first.
	Priority pulumi.IntPtrInput
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrInput
}

func (RouteState) ElementType

func (RouteState) ElementType() reflect.Type

type Webhook added in v3.4.0

type Webhook struct {
	pulumi.CustomResourceState

	// The domain to add to Mailgun
	Domain pulumi.StringOutput `pulumi:"domain"`
	// The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanentFail`, `temporaryFail` `unsubscribed`)
	Kind pulumi.StringOutput `pulumi:"kind"`
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrOutput `pulumi:"region"`
	// The urls of webhook
	Urls pulumi.StringArrayOutput `pulumi:"urls"`
}

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

## Example Usage

<!--Start PulumiCodeChooser --> ```go 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 webhook
		_, err := mailgun.NewWebhook(ctx, "default", &mailgun.WebhookArgs{
			Domain: pulumi.String("test.example.com"),
			Kind:   pulumi.String("delivered"),
			Region: pulumi.String("us"),
			Urls: pulumi.StringArray{
				pulumi.String("https://example.com"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

func GetWebhook added in v3.4.0

func GetWebhook(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WebhookState, opts ...pulumi.ResourceOption) (*Webhook, error)

GetWebhook gets an existing Webhook resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWebhook added in v3.4.0

func NewWebhook(ctx *pulumi.Context,
	name string, args *WebhookArgs, opts ...pulumi.ResourceOption) (*Webhook, error)

NewWebhook registers a new resource with the given unique name, arguments, and options.

func (*Webhook) ElementType added in v3.4.0

func (*Webhook) ElementType() reflect.Type

func (*Webhook) ToWebhookOutput added in v3.4.0

func (i *Webhook) ToWebhookOutput() WebhookOutput

func (*Webhook) ToWebhookOutputWithContext added in v3.4.0

func (i *Webhook) ToWebhookOutputWithContext(ctx context.Context) WebhookOutput

type WebhookArgs added in v3.4.0

type WebhookArgs struct {
	// The domain to add to Mailgun
	Domain pulumi.StringInput
	// The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanentFail`, `temporaryFail` `unsubscribed`)
	Kind pulumi.StringInput
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrInput
	// The urls of webhook
	Urls pulumi.StringArrayInput
}

The set of arguments for constructing a Webhook resource.

func (WebhookArgs) ElementType added in v3.4.0

func (WebhookArgs) ElementType() reflect.Type

type WebhookArray added in v3.4.0

type WebhookArray []WebhookInput

func (WebhookArray) ElementType added in v3.4.0

func (WebhookArray) ElementType() reflect.Type

func (WebhookArray) ToWebhookArrayOutput added in v3.4.0

func (i WebhookArray) ToWebhookArrayOutput() WebhookArrayOutput

func (WebhookArray) ToWebhookArrayOutputWithContext added in v3.4.0

func (i WebhookArray) ToWebhookArrayOutputWithContext(ctx context.Context) WebhookArrayOutput

type WebhookArrayInput added in v3.4.0

type WebhookArrayInput interface {
	pulumi.Input

	ToWebhookArrayOutput() WebhookArrayOutput
	ToWebhookArrayOutputWithContext(context.Context) WebhookArrayOutput
}

WebhookArrayInput is an input type that accepts WebhookArray and WebhookArrayOutput values. You can construct a concrete instance of `WebhookArrayInput` via:

WebhookArray{ WebhookArgs{...} }

type WebhookArrayOutput added in v3.4.0

type WebhookArrayOutput struct{ *pulumi.OutputState }

func (WebhookArrayOutput) ElementType added in v3.4.0

func (WebhookArrayOutput) ElementType() reflect.Type

func (WebhookArrayOutput) Index added in v3.4.0

func (WebhookArrayOutput) ToWebhookArrayOutput added in v3.4.0

func (o WebhookArrayOutput) ToWebhookArrayOutput() WebhookArrayOutput

func (WebhookArrayOutput) ToWebhookArrayOutputWithContext added in v3.4.0

func (o WebhookArrayOutput) ToWebhookArrayOutputWithContext(ctx context.Context) WebhookArrayOutput

type WebhookInput added in v3.4.0

type WebhookInput interface {
	pulumi.Input

	ToWebhookOutput() WebhookOutput
	ToWebhookOutputWithContext(ctx context.Context) WebhookOutput
}

type WebhookMap added in v3.4.0

type WebhookMap map[string]WebhookInput

func (WebhookMap) ElementType added in v3.4.0

func (WebhookMap) ElementType() reflect.Type

func (WebhookMap) ToWebhookMapOutput added in v3.4.0

func (i WebhookMap) ToWebhookMapOutput() WebhookMapOutput

func (WebhookMap) ToWebhookMapOutputWithContext added in v3.4.0

func (i WebhookMap) ToWebhookMapOutputWithContext(ctx context.Context) WebhookMapOutput

type WebhookMapInput added in v3.4.0

type WebhookMapInput interface {
	pulumi.Input

	ToWebhookMapOutput() WebhookMapOutput
	ToWebhookMapOutputWithContext(context.Context) WebhookMapOutput
}

WebhookMapInput is an input type that accepts WebhookMap and WebhookMapOutput values. You can construct a concrete instance of `WebhookMapInput` via:

WebhookMap{ "key": WebhookArgs{...} }

type WebhookMapOutput added in v3.4.0

type WebhookMapOutput struct{ *pulumi.OutputState }

func (WebhookMapOutput) ElementType added in v3.4.0

func (WebhookMapOutput) ElementType() reflect.Type

func (WebhookMapOutput) MapIndex added in v3.4.0

func (WebhookMapOutput) ToWebhookMapOutput added in v3.4.0

func (o WebhookMapOutput) ToWebhookMapOutput() WebhookMapOutput

func (WebhookMapOutput) ToWebhookMapOutputWithContext added in v3.4.0

func (o WebhookMapOutput) ToWebhookMapOutputWithContext(ctx context.Context) WebhookMapOutput

type WebhookOutput added in v3.4.0

type WebhookOutput struct{ *pulumi.OutputState }

func (WebhookOutput) Domain added in v3.4.1

func (o WebhookOutput) Domain() pulumi.StringOutput

The domain to add to Mailgun

func (WebhookOutput) ElementType added in v3.4.0

func (WebhookOutput) ElementType() reflect.Type

func (WebhookOutput) Kind added in v3.4.1

The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanentFail`, `temporaryFail` `unsubscribed`)

func (WebhookOutput) Region added in v3.4.1

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

func (WebhookOutput) ToWebhookOutput added in v3.4.0

func (o WebhookOutput) ToWebhookOutput() WebhookOutput

func (WebhookOutput) ToWebhookOutputWithContext added in v3.4.0

func (o WebhookOutput) ToWebhookOutputWithContext(ctx context.Context) WebhookOutput

func (WebhookOutput) Urls added in v3.4.1

The urls of webhook

type WebhookState added in v3.4.0

type WebhookState struct {
	// The domain to add to Mailgun
	Domain pulumi.StringPtrInput
	// The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanentFail`, `temporaryFail` `unsubscribed`)
	Kind pulumi.StringPtrInput
	// The region where domain will be created. Default value is `us`.
	Region pulumi.StringPtrInput
	// The urls of webhook
	Urls pulumi.StringArrayInput
}

func (WebhookState) ElementType added in v3.4.0

func (WebhookState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL