@pulumi/mailgun 3.5.1 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/domain.d.ts +32 -7
- package/domain.js +8 -3
- package/domain.js.map +1 -1
- package/domainCredential.d.ts +19 -2
- package/domainCredential.js +19 -2
- package/domainCredential.js.map +1 -1
- package/getDomain.d.ts +49 -16
- package/getDomain.js +16 -14
- package/getDomain.js.map +1 -1
- package/package.json +1 -1
- package/route.d.ts +4 -4
- package/route.js +4 -4
- package/webhook.d.ts +1 -1
- package/webhook.js +1 -1
package/domain.d.ts
CHANGED
|
@@ -15,10 +15,11 @@ import * as outputs from "./types/output";
|
|
|
15
15
|
*
|
|
16
16
|
* // Create a new Mailgun domain
|
|
17
17
|
* const _default = new mailgun.Domain("default", {
|
|
18
|
-
*
|
|
18
|
+
* name: "test.example.com",
|
|
19
19
|
* region: "us",
|
|
20
|
-
* smtpPassword: "supersecretpassword1234",
|
|
21
20
|
* spamAction: "disabled",
|
|
21
|
+
* smtpPassword: "supersecretpassword1234",
|
|
22
|
+
* dkimKeySize: 1024,
|
|
22
23
|
* });
|
|
23
24
|
* ```
|
|
24
25
|
*
|
|
@@ -29,7 +30,7 @@ import * as outputs from "./types/output";
|
|
|
29
30
|
* hcl
|
|
30
31
|
*
|
|
31
32
|
* ```sh
|
|
32
|
-
*
|
|
33
|
+
* $ pulumi import mailgun:index/domain:Domain test us:example.domain.com
|
|
33
34
|
* ```
|
|
34
35
|
*/
|
|
35
36
|
export declare class Domain extends pulumi.CustomResource {
|
|
@@ -48,6 +49,10 @@ export declare class Domain extends pulumi.CustomResource {
|
|
|
48
49
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
50
|
*/
|
|
50
51
|
static isInstance(obj: any): obj is Domain;
|
|
52
|
+
/**
|
|
53
|
+
* (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no`
|
|
54
|
+
*/
|
|
55
|
+
readonly clickTracking: pulumi.Output<boolean | undefined>;
|
|
51
56
|
/**
|
|
52
57
|
* The length of your domain’s generated DKIM key. Default value is `1024`.
|
|
53
58
|
*/
|
|
@@ -71,7 +76,7 @@ export declare class Domain extends pulumi.CustomResource {
|
|
|
71
76
|
/**
|
|
72
77
|
* A list of DNS records for receiving validation. **Deprecated** Use `receivingRecordsSet` instead.
|
|
73
78
|
*
|
|
74
|
-
* @deprecated Use `
|
|
79
|
+
* @deprecated Use `receivingRecordsSet` instead.
|
|
75
80
|
*/
|
|
76
81
|
readonly receivingRecords: pulumi.Output<outputs.DomainReceivingRecord[]>;
|
|
77
82
|
/**
|
|
@@ -85,7 +90,7 @@ export declare class Domain extends pulumi.CustomResource {
|
|
|
85
90
|
/**
|
|
86
91
|
* A list of DNS records for sending validation. **Deprecated** Use `sendingRecordsSet` instead.
|
|
87
92
|
*
|
|
88
|
-
* @deprecated Use `
|
|
93
|
+
* @deprecated Use `sendingRecordsSet` instead.
|
|
89
94
|
*/
|
|
90
95
|
readonly sendingRecords: pulumi.Output<outputs.DomainSendingRecord[]>;
|
|
91
96
|
/**
|
|
@@ -106,6 +111,10 @@ export declare class Domain extends pulumi.CustomResource {
|
|
|
106
111
|
* will be tagged with a spam header. Default value is `disabled`.
|
|
107
112
|
*/
|
|
108
113
|
readonly spamAction: pulumi.Output<string | undefined>;
|
|
114
|
+
/**
|
|
115
|
+
* (`http` or `https`) The tracking web scheme. Default: `http`
|
|
116
|
+
*/
|
|
117
|
+
readonly webScheme: pulumi.Output<string | undefined>;
|
|
109
118
|
/**
|
|
110
119
|
* Boolean that determines whether
|
|
111
120
|
* the domain will accept email for sub-domains.
|
|
@@ -124,6 +133,10 @@ export declare class Domain extends pulumi.CustomResource {
|
|
|
124
133
|
* Input properties used for looking up and filtering Domain resources.
|
|
125
134
|
*/
|
|
126
135
|
export interface DomainState {
|
|
136
|
+
/**
|
|
137
|
+
* (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no`
|
|
138
|
+
*/
|
|
139
|
+
clickTracking?: pulumi.Input<boolean>;
|
|
127
140
|
/**
|
|
128
141
|
* The length of your domain’s generated DKIM key. Default value is `1024`.
|
|
129
142
|
*/
|
|
@@ -147,7 +160,7 @@ export interface DomainState {
|
|
|
147
160
|
/**
|
|
148
161
|
* A list of DNS records for receiving validation. **Deprecated** Use `receivingRecordsSet` instead.
|
|
149
162
|
*
|
|
150
|
-
* @deprecated Use `
|
|
163
|
+
* @deprecated Use `receivingRecordsSet` instead.
|
|
151
164
|
*/
|
|
152
165
|
receivingRecords?: pulumi.Input<pulumi.Input<inputs.DomainReceivingRecord>[]>;
|
|
153
166
|
/**
|
|
@@ -161,7 +174,7 @@ export interface DomainState {
|
|
|
161
174
|
/**
|
|
162
175
|
* A list of DNS records for sending validation. **Deprecated** Use `sendingRecordsSet` instead.
|
|
163
176
|
*
|
|
164
|
-
* @deprecated Use `
|
|
177
|
+
* @deprecated Use `sendingRecordsSet` instead.
|
|
165
178
|
*/
|
|
166
179
|
sendingRecords?: pulumi.Input<pulumi.Input<inputs.DomainSendingRecord>[]>;
|
|
167
180
|
/**
|
|
@@ -182,6 +195,10 @@ export interface DomainState {
|
|
|
182
195
|
* will be tagged with a spam header. Default value is `disabled`.
|
|
183
196
|
*/
|
|
184
197
|
spamAction?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* (`http` or `https`) The tracking web scheme. Default: `http`
|
|
200
|
+
*/
|
|
201
|
+
webScheme?: pulumi.Input<string>;
|
|
185
202
|
/**
|
|
186
203
|
* Boolean that determines whether
|
|
187
204
|
* the domain will accept email for sub-domains.
|
|
@@ -192,6 +209,10 @@ export interface DomainState {
|
|
|
192
209
|
* The set of arguments for constructing a Domain resource.
|
|
193
210
|
*/
|
|
194
211
|
export interface DomainArgs {
|
|
212
|
+
/**
|
|
213
|
+
* (Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no`
|
|
214
|
+
*/
|
|
215
|
+
clickTracking?: pulumi.Input<boolean>;
|
|
195
216
|
/**
|
|
196
217
|
* The length of your domain’s generated DKIM key. Default value is `1024`.
|
|
197
218
|
*/
|
|
@@ -226,6 +247,10 @@ export interface DomainArgs {
|
|
|
226
247
|
* will be tagged with a spam header. Default value is `disabled`.
|
|
227
248
|
*/
|
|
228
249
|
spamAction?: pulumi.Input<string>;
|
|
250
|
+
/**
|
|
251
|
+
* (`http` or `https`) The tracking web scheme. Default: `http`
|
|
252
|
+
*/
|
|
253
|
+
webScheme?: pulumi.Input<string>;
|
|
229
254
|
/**
|
|
230
255
|
* Boolean that determines whether
|
|
231
256
|
* the domain will accept email for sub-domains.
|
package/domain.js
CHANGED
|
@@ -19,10 +19,11 @@ const utilities = require("./utilities");
|
|
|
19
19
|
*
|
|
20
20
|
* // Create a new Mailgun domain
|
|
21
21
|
* const _default = new mailgun.Domain("default", {
|
|
22
|
-
*
|
|
22
|
+
* name: "test.example.com",
|
|
23
23
|
* region: "us",
|
|
24
|
-
* smtpPassword: "supersecretpassword1234",
|
|
25
24
|
* spamAction: "disabled",
|
|
25
|
+
* smtpPassword: "supersecretpassword1234",
|
|
26
|
+
* dkimKeySize: 1024,
|
|
26
27
|
* });
|
|
27
28
|
* ```
|
|
28
29
|
*
|
|
@@ -33,7 +34,7 @@ const utilities = require("./utilities");
|
|
|
33
34
|
* hcl
|
|
34
35
|
*
|
|
35
36
|
* ```sh
|
|
36
|
-
*
|
|
37
|
+
* $ pulumi import mailgun:index/domain:Domain test us:example.domain.com
|
|
37
38
|
* ```
|
|
38
39
|
*/
|
|
39
40
|
class Domain extends pulumi.CustomResource {
|
|
@@ -64,6 +65,7 @@ class Domain extends pulumi.CustomResource {
|
|
|
64
65
|
opts = opts || {};
|
|
65
66
|
if (opts.id) {
|
|
66
67
|
const state = argsOrState;
|
|
68
|
+
resourceInputs["clickTracking"] = state ? state.clickTracking : undefined;
|
|
67
69
|
resourceInputs["dkimKeySize"] = state ? state.dkimKeySize : undefined;
|
|
68
70
|
resourceInputs["dkimSelector"] = state ? state.dkimSelector : undefined;
|
|
69
71
|
resourceInputs["forceDkimAuthority"] = state ? state.forceDkimAuthority : undefined;
|
|
@@ -77,10 +79,12 @@ class Domain extends pulumi.CustomResource {
|
|
|
77
79
|
resourceInputs["smtpLogin"] = state ? state.smtpLogin : undefined;
|
|
78
80
|
resourceInputs["smtpPassword"] = state ? state.smtpPassword : undefined;
|
|
79
81
|
resourceInputs["spamAction"] = state ? state.spamAction : undefined;
|
|
82
|
+
resourceInputs["webScheme"] = state ? state.webScheme : undefined;
|
|
80
83
|
resourceInputs["wildcard"] = state ? state.wildcard : undefined;
|
|
81
84
|
}
|
|
82
85
|
else {
|
|
83
86
|
const args = argsOrState;
|
|
87
|
+
resourceInputs["clickTracking"] = args ? args.clickTracking : undefined;
|
|
84
88
|
resourceInputs["dkimKeySize"] = args ? args.dkimKeySize : undefined;
|
|
85
89
|
resourceInputs["dkimSelector"] = args ? args.dkimSelector : undefined;
|
|
86
90
|
resourceInputs["forceDkimAuthority"] = args ? args.forceDkimAuthority : undefined;
|
|
@@ -89,6 +93,7 @@ class Domain extends pulumi.CustomResource {
|
|
|
89
93
|
resourceInputs["region"] = args ? args.region : undefined;
|
|
90
94
|
resourceInputs["smtpPassword"] = (args === null || args === void 0 ? void 0 : args.smtpPassword) ? pulumi.secret(args.smtpPassword) : undefined;
|
|
91
95
|
resourceInputs["spamAction"] = args ? args.spamAction : undefined;
|
|
96
|
+
resourceInputs["webScheme"] = args ? args.webScheme : undefined;
|
|
92
97
|
resourceInputs["wildcard"] = args ? args.wildcard : undefined;
|
|
93
98
|
resourceInputs["receivingRecords"] = undefined /*out*/;
|
|
94
99
|
resourceInputs["receivingRecordsSets"] = undefined /*out*/;
|
package/domain.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../domain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"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C;YAClE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,sBAAsB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3D,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;QACjE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AAxJL,wBAyJC;AA3IG,gBAAgB;AACO,mBAAY,GAAG,6BAA6B,CAAC"}
|
package/domainCredential.d.ts
CHANGED
|
@@ -4,14 +4,31 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
4
4
|
*
|
|
5
5
|
* > **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.
|
|
6
6
|
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as mailgun from "@pulumi/mailgun";
|
|
12
|
+
*
|
|
13
|
+
* // Create a new Mailgun credential
|
|
14
|
+
* const foobar = new mailgun.DomainCredential("foobar", {
|
|
15
|
+
* domain: "toto.com",
|
|
16
|
+
* login: "test",
|
|
17
|
+
* password: "supersecretpassword1234",
|
|
18
|
+
* region: "us",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
7
22
|
* ## Import
|
|
8
23
|
*
|
|
9
24
|
* 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).
|
|
10
25
|
*
|
|
11
|
-
* Password is always exported to `null`.
|
|
26
|
+
* Password is always exported to `null`.
|
|
27
|
+
*
|
|
28
|
+
* hcl
|
|
12
29
|
*
|
|
13
30
|
* ```sh
|
|
14
|
-
*
|
|
31
|
+
* $ pulumi import mailgun:index/domainCredential:DomainCredential test us:test@domain.com
|
|
15
32
|
* ```
|
|
16
33
|
*/
|
|
17
34
|
export declare class DomainCredential extends pulumi.CustomResource {
|
package/domainCredential.js
CHANGED
|
@@ -10,14 +10,31 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* > **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.
|
|
12
12
|
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as mailgun from "@pulumi/mailgun";
|
|
18
|
+
*
|
|
19
|
+
* // Create a new Mailgun credential
|
|
20
|
+
* const foobar = new mailgun.DomainCredential("foobar", {
|
|
21
|
+
* domain: "toto.com",
|
|
22
|
+
* login: "test",
|
|
23
|
+
* password: "supersecretpassword1234",
|
|
24
|
+
* region: "us",
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
13
28
|
* ## Import
|
|
14
29
|
*
|
|
15
30
|
* 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).
|
|
16
31
|
*
|
|
17
|
-
* Password is always exported to `null`.
|
|
32
|
+
* Password is always exported to `null`.
|
|
33
|
+
*
|
|
34
|
+
* hcl
|
|
18
35
|
*
|
|
19
36
|
* ```sh
|
|
20
|
-
*
|
|
37
|
+
* $ pulumi import mailgun:index/domainCredential:DomainCredential test us:test@domain.com
|
|
21
38
|
* ```
|
|
22
39
|
*/
|
|
23
40
|
class DomainCredential extends pulumi.CustomResource {
|
package/domainCredential.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domainCredential.js","sourceRoot":"","sources":["../domainCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"domainCredential.js","sourceRoot":"","sources":["../domainCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,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Ac,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACvF,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAlFL,4CAmFC;AArEG,gBAAgB;AACO,6BAAY,GAAG,iDAAiD,CAAC"}
|
package/getDomain.d.ts
CHANGED
|
@@ -13,15 +13,15 @@ import * as outputs from "./types/output";
|
|
|
13
13
|
* const domain = mailgun.getDomain({
|
|
14
14
|
* name: "test.example.com",
|
|
15
15
|
* });
|
|
16
|
-
* const mailgun_mx = new aws.
|
|
17
|
-
*
|
|
16
|
+
* const mailgun_mx = new aws.index.Route53Record("mailgun-mx", {
|
|
17
|
+
* zoneId: zoneId,
|
|
18
|
+
* name: domainMailgun.name,
|
|
19
|
+
* type: "MX",
|
|
20
|
+
* ttl: 3600,
|
|
18
21
|
* records: [
|
|
19
|
-
*
|
|
20
|
-
*
|
|
22
|
+
* `${domain.receivingRecords?.[0]?.priority} ${domain.receivingRecords?.[0]?.value}.`,
|
|
23
|
+
* `${domain.receivingRecords?.[1]?.priority} ${domain.receivingRecords?.[1]?.value}.`,
|
|
21
24
|
* ],
|
|
22
|
-
* ttl: 3600,
|
|
23
|
-
* type: "MX",
|
|
24
|
-
* zoneId: _var.zone_id,
|
|
25
25
|
* });
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
@@ -30,6 +30,10 @@ export declare function getDomain(args: GetDomainArgs, opts?: pulumi.InvokeOptio
|
|
|
30
30
|
* A collection of arguments for invoking getDomain.
|
|
31
31
|
*/
|
|
32
32
|
export interface GetDomainArgs {
|
|
33
|
+
/**
|
|
34
|
+
* The click tracking setting.
|
|
35
|
+
*/
|
|
36
|
+
clickTracking?: boolean;
|
|
33
37
|
dkimKeySize?: number;
|
|
34
38
|
dkimSelector?: string;
|
|
35
39
|
forceDkimAuthority?: boolean;
|
|
@@ -37,6 +41,9 @@ export interface GetDomainArgs {
|
|
|
37
41
|
* The name of the domain.
|
|
38
42
|
*/
|
|
39
43
|
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* The open tracking setting.
|
|
46
|
+
*/
|
|
40
47
|
openTracking?: boolean;
|
|
41
48
|
/**
|
|
42
49
|
* The region where domain will be created. Default value is `us`.
|
|
@@ -50,6 +57,10 @@ export interface GetDomainArgs {
|
|
|
50
57
|
* The spam filtering setting.
|
|
51
58
|
*/
|
|
52
59
|
spamAction?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The tracking web scheme.
|
|
62
|
+
*/
|
|
63
|
+
webScheme?: string;
|
|
53
64
|
/**
|
|
54
65
|
* Whether or not the domain will accept email for sub-domains.
|
|
55
66
|
*/
|
|
@@ -59,6 +70,10 @@ export interface GetDomainArgs {
|
|
|
59
70
|
* A collection of values returned by getDomain.
|
|
60
71
|
*/
|
|
61
72
|
export interface GetDomainResult {
|
|
73
|
+
/**
|
|
74
|
+
* The click tracking setting.
|
|
75
|
+
*/
|
|
76
|
+
readonly clickTracking?: boolean;
|
|
62
77
|
readonly dkimKeySize?: number;
|
|
63
78
|
readonly dkimSelector?: string;
|
|
64
79
|
readonly forceDkimAuthority?: boolean;
|
|
@@ -70,11 +85,14 @@ export interface GetDomainResult {
|
|
|
70
85
|
* The name of the record.
|
|
71
86
|
*/
|
|
72
87
|
readonly name: string;
|
|
88
|
+
/**
|
|
89
|
+
* The open tracking setting.
|
|
90
|
+
*/
|
|
73
91
|
readonly openTracking?: boolean;
|
|
74
92
|
/**
|
|
75
93
|
* A list of DNS records for receiving validation.
|
|
76
94
|
*
|
|
77
|
-
* @deprecated Use `
|
|
95
|
+
* @deprecated Use `receivingRecordsSet` instead.
|
|
78
96
|
*/
|
|
79
97
|
readonly receivingRecords: outputs.GetDomainReceivingRecord[];
|
|
80
98
|
readonly receivingRecordsSets: outputs.GetDomainReceivingRecordsSet[];
|
|
@@ -82,7 +100,7 @@ export interface GetDomainResult {
|
|
|
82
100
|
/**
|
|
83
101
|
* A list of DNS records for sending validation.
|
|
84
102
|
*
|
|
85
|
-
* @deprecated Use `
|
|
103
|
+
* @deprecated Use `sendingRecordsSet` instead.
|
|
86
104
|
*/
|
|
87
105
|
readonly sendingRecords: outputs.GetDomainSendingRecord[];
|
|
88
106
|
readonly sendingRecordsSets: outputs.GetDomainSendingRecordsSet[];
|
|
@@ -98,6 +116,10 @@ export interface GetDomainResult {
|
|
|
98
116
|
* The spam filtering setting.
|
|
99
117
|
*/
|
|
100
118
|
readonly spamAction?: string;
|
|
119
|
+
/**
|
|
120
|
+
* The tracking web scheme.
|
|
121
|
+
*/
|
|
122
|
+
readonly webScheme?: string;
|
|
101
123
|
/**
|
|
102
124
|
* Whether or not the domain will accept email for sub-domains.
|
|
103
125
|
*/
|
|
@@ -116,15 +138,15 @@ export interface GetDomainResult {
|
|
|
116
138
|
* const domain = mailgun.getDomain({
|
|
117
139
|
* name: "test.example.com",
|
|
118
140
|
* });
|
|
119
|
-
* const mailgun_mx = new aws.
|
|
120
|
-
*
|
|
141
|
+
* const mailgun_mx = new aws.index.Route53Record("mailgun-mx", {
|
|
142
|
+
* zoneId: zoneId,
|
|
143
|
+
* name: domainMailgun.name,
|
|
144
|
+
* type: "MX",
|
|
145
|
+
* ttl: 3600,
|
|
121
146
|
* records: [
|
|
122
|
-
*
|
|
123
|
-
*
|
|
147
|
+
* `${domain.receivingRecords?.[0]?.priority} ${domain.receivingRecords?.[0]?.value}.`,
|
|
148
|
+
* `${domain.receivingRecords?.[1]?.priority} ${domain.receivingRecords?.[1]?.value}.`,
|
|
124
149
|
* ],
|
|
125
|
-
* ttl: 3600,
|
|
126
|
-
* type: "MX",
|
|
127
|
-
* zoneId: _var.zone_id,
|
|
128
150
|
* });
|
|
129
151
|
* ```
|
|
130
152
|
*/
|
|
@@ -133,6 +155,10 @@ export declare function getDomainOutput(args: GetDomainOutputArgs, opts?: pulumi
|
|
|
133
155
|
* A collection of arguments for invoking getDomain.
|
|
134
156
|
*/
|
|
135
157
|
export interface GetDomainOutputArgs {
|
|
158
|
+
/**
|
|
159
|
+
* The click tracking setting.
|
|
160
|
+
*/
|
|
161
|
+
clickTracking?: pulumi.Input<boolean>;
|
|
136
162
|
dkimKeySize?: pulumi.Input<number>;
|
|
137
163
|
dkimSelector?: pulumi.Input<string>;
|
|
138
164
|
forceDkimAuthority?: pulumi.Input<boolean>;
|
|
@@ -140,6 +166,9 @@ export interface GetDomainOutputArgs {
|
|
|
140
166
|
* The name of the domain.
|
|
141
167
|
*/
|
|
142
168
|
name: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* The open tracking setting.
|
|
171
|
+
*/
|
|
143
172
|
openTracking?: pulumi.Input<boolean>;
|
|
144
173
|
/**
|
|
145
174
|
* The region where domain will be created. Default value is `us`.
|
|
@@ -153,6 +182,10 @@ export interface GetDomainOutputArgs {
|
|
|
153
182
|
* The spam filtering setting.
|
|
154
183
|
*/
|
|
155
184
|
spamAction?: pulumi.Input<string>;
|
|
185
|
+
/**
|
|
186
|
+
* The tracking web scheme.
|
|
187
|
+
*/
|
|
188
|
+
webScheme?: pulumi.Input<string>;
|
|
156
189
|
/**
|
|
157
190
|
* Whether or not the domain will accept email for sub-domains.
|
|
158
191
|
*/
|
package/getDomain.js
CHANGED
|
@@ -18,21 +18,22 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* const domain = mailgun.getDomain({
|
|
19
19
|
* name: "test.example.com",
|
|
20
20
|
* });
|
|
21
|
-
* const mailgun_mx = new aws.
|
|
22
|
-
*
|
|
21
|
+
* const mailgun_mx = new aws.index.Route53Record("mailgun-mx", {
|
|
22
|
+
* zoneId: zoneId,
|
|
23
|
+
* name: domainMailgun.name,
|
|
24
|
+
* type: "MX",
|
|
25
|
+
* ttl: 3600,
|
|
23
26
|
* records: [
|
|
24
|
-
*
|
|
25
|
-
*
|
|
27
|
+
* `${domain.receivingRecords?.[0]?.priority} ${domain.receivingRecords?.[0]?.value}.`,
|
|
28
|
+
* `${domain.receivingRecords?.[1]?.priority} ${domain.receivingRecords?.[1]?.value}.`,
|
|
26
29
|
* ],
|
|
27
|
-
* ttl: 3600,
|
|
28
|
-
* type: "MX",
|
|
29
|
-
* zoneId: _var.zone_id,
|
|
30
30
|
* });
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
function getDomain(args, opts) {
|
|
34
34
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
35
35
|
return pulumi.runtime.invoke("mailgun:index/getDomain:getDomain", {
|
|
36
|
+
"clickTracking": args.clickTracking,
|
|
36
37
|
"dkimKeySize": args.dkimKeySize,
|
|
37
38
|
"dkimSelector": args.dkimSelector,
|
|
38
39
|
"forceDkimAuthority": args.forceDkimAuthority,
|
|
@@ -41,6 +42,7 @@ function getDomain(args, opts) {
|
|
|
41
42
|
"region": args.region,
|
|
42
43
|
"smtpPassword": args.smtpPassword,
|
|
43
44
|
"spamAction": args.spamAction,
|
|
45
|
+
"webScheme": args.webScheme,
|
|
44
46
|
"wildcard": args.wildcard,
|
|
45
47
|
}, opts);
|
|
46
48
|
}
|
|
@@ -58,15 +60,15 @@ exports.getDomain = getDomain;
|
|
|
58
60
|
* const domain = mailgun.getDomain({
|
|
59
61
|
* name: "test.example.com",
|
|
60
62
|
* });
|
|
61
|
-
* const mailgun_mx = new aws.
|
|
62
|
-
*
|
|
63
|
+
* const mailgun_mx = new aws.index.Route53Record("mailgun-mx", {
|
|
64
|
+
* zoneId: zoneId,
|
|
65
|
+
* name: domainMailgun.name,
|
|
66
|
+
* type: "MX",
|
|
67
|
+
* ttl: 3600,
|
|
63
68
|
* records: [
|
|
64
|
-
*
|
|
65
|
-
*
|
|
69
|
+
* `${domain.receivingRecords?.[0]?.priority} ${domain.receivingRecords?.[0]?.value}.`,
|
|
70
|
+
* `${domain.receivingRecords?.[1]?.priority} ${domain.receivingRecords?.[1]?.value}.`,
|
|
66
71
|
* ],
|
|
67
|
-
* ttl: 3600,
|
|
68
|
-
* type: "MX",
|
|
69
|
-
* zoneId: _var.zone_id,
|
|
70
72
|
* });
|
|
71
73
|
* ```
|
|
72
74
|
*/
|
package/getDomain.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDomain.js","sourceRoot":"","sources":["../getDomain.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IAEtE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,aAAa,EAAE,IAAI,CAAC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;;;;;;;;;;GAwBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
|
package/package.json
CHANGED
package/route.d.ts
CHANGED
|
@@ -10,13 +10,13 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
*
|
|
11
11
|
* // Create a new Mailgun route
|
|
12
12
|
* const _default = new mailgun.Route("default", {
|
|
13
|
+
* priority: 0,
|
|
14
|
+
* description: "inbound",
|
|
15
|
+
* expression: "match_recipient('.*@foo.example.com')",
|
|
13
16
|
* actions: [
|
|
14
17
|
* "forward('http://example.com/api/v1/foos/')",
|
|
15
18
|
* "stop()",
|
|
16
19
|
* ],
|
|
17
|
-
* description: "inbound",
|
|
18
|
-
* expression: "match_recipient('.*@foo.example.com')",
|
|
19
|
-
* priority: 0,
|
|
20
20
|
* });
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
@@ -27,7 +27,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
27
27
|
* hcl
|
|
28
28
|
*
|
|
29
29
|
* ```sh
|
|
30
|
-
*
|
|
30
|
+
* $ pulumi import mailgun:index/route:Route test eu:123456789
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
33
|
export declare class Route extends pulumi.CustomResource {
|
package/route.js
CHANGED
|
@@ -16,13 +16,13 @@ const utilities = require("./utilities");
|
|
|
16
16
|
*
|
|
17
17
|
* // Create a new Mailgun route
|
|
18
18
|
* const _default = new mailgun.Route("default", {
|
|
19
|
+
* priority: 0,
|
|
20
|
+
* description: "inbound",
|
|
21
|
+
* expression: "match_recipient('.*@foo.example.com')",
|
|
19
22
|
* actions: [
|
|
20
23
|
* "forward('http://example.com/api/v1/foos/')",
|
|
21
24
|
* "stop()",
|
|
22
25
|
* ],
|
|
23
|
-
* description: "inbound",
|
|
24
|
-
* expression: "match_recipient('.*@foo.example.com')",
|
|
25
|
-
* priority: 0,
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*
|
|
@@ -33,7 +33,7 @@ const utilities = require("./utilities");
|
|
|
33
33
|
* hcl
|
|
34
34
|
*
|
|
35
35
|
* ```sh
|
|
36
|
-
*
|
|
36
|
+
* $ pulumi import mailgun:index/route:Route test eu:123456789
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
39
|
class Route extends pulumi.CustomResource {
|
package/webhook.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
12
12
|
* // Create a new Mailgun webhook
|
|
13
13
|
* const _default = new mailgun.Webhook("default", {
|
|
14
14
|
* domain: "test.example.com",
|
|
15
|
-
* kind: "delivered",
|
|
16
15
|
* region: "us",
|
|
16
|
+
* kind: "delivered",
|
|
17
17
|
* urls: ["https://example.com"],
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
package/webhook.js
CHANGED
|
@@ -18,8 +18,8 @@ const utilities = require("./utilities");
|
|
|
18
18
|
* // Create a new Mailgun webhook
|
|
19
19
|
* const _default = new mailgun.Webhook("default", {
|
|
20
20
|
* domain: "test.example.com",
|
|
21
|
-
* kind: "delivered",
|
|
22
21
|
* region: "us",
|
|
22
|
+
* kind: "delivered",
|
|
23
23
|
* urls: ["https://example.com"],
|
|
24
24
|
* });
|
|
25
25
|
* ```
|