pulumi-mailgun 3.6.0a1710156895__py3-none-any.whl → 3.6.0a1736849423__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['DomainCredentialArgs', 'DomainCredential']
@@ -167,6 +172,20 @@ class DomainCredential(pulumi.CustomResource):
167
172
 
168
173
  > **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.
169
174
 
175
+ ## Example Usage
176
+
177
+ ```python
178
+ import pulumi
179
+ import pulumi_mailgun as mailgun
180
+
181
+ # Create a new Mailgun credential
182
+ foobar = mailgun.DomainCredential("foobar",
183
+ domain="toto.com",
184
+ login="test",
185
+ password="supersecretpassword1234",
186
+ region="us")
187
+ ```
188
+
170
189
  ## Import
171
190
 
172
191
  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).
@@ -197,6 +216,20 @@ class DomainCredential(pulumi.CustomResource):
197
216
 
198
217
  > **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.
199
218
 
219
+ ## Example Usage
220
+
221
+ ```python
222
+ import pulumi
223
+ import pulumi_mailgun as mailgun
224
+
225
+ # Create a new Mailgun credential
226
+ foobar = mailgun.DomainCredential("foobar",
227
+ domain="toto.com",
228
+ login="test",
229
+ password="supersecretpassword1234",
230
+ region="us")
231
+ ```
232
+
200
233
  ## Import
201
234
 
202
235
  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).
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
 
@@ -22,7 +27,10 @@ class GetDomainResult:
22
27
  """
23
28
  A collection of values returned by getDomain.
24
29
  """
25
- def __init__(__self__, dkim_key_size=None, dkim_selector=None, force_dkim_authority=None, id=None, name=None, open_tracking=None, receiving_records=None, receiving_records_sets=None, region=None, sending_records=None, sending_records_sets=None, smtp_login=None, smtp_password=None, spam_action=None, wildcard=None):
30
+ def __init__(__self__, click_tracking=None, dkim_key_size=None, dkim_selector=None, force_dkim_authority=None, id=None, name=None, open_tracking=None, receiving_records=None, receiving_records_sets=None, region=None, sending_records=None, sending_records_sets=None, smtp_login=None, smtp_password=None, spam_action=None, web_scheme=None, wildcard=None):
31
+ if click_tracking and not isinstance(click_tracking, bool):
32
+ raise TypeError("Expected argument 'click_tracking' to be a bool")
33
+ pulumi.set(__self__, "click_tracking", click_tracking)
26
34
  if dkim_key_size and not isinstance(dkim_key_size, int):
27
35
  raise TypeError("Expected argument 'dkim_key_size' to be a int")
28
36
  pulumi.set(__self__, "dkim_key_size", dkim_key_size)
@@ -65,10 +73,21 @@ class GetDomainResult:
65
73
  if spam_action and not isinstance(spam_action, str):
66
74
  raise TypeError("Expected argument 'spam_action' to be a str")
67
75
  pulumi.set(__self__, "spam_action", spam_action)
76
+ if web_scheme and not isinstance(web_scheme, str):
77
+ raise TypeError("Expected argument 'web_scheme' to be a str")
78
+ pulumi.set(__self__, "web_scheme", web_scheme)
68
79
  if wildcard and not isinstance(wildcard, bool):
69
80
  raise TypeError("Expected argument 'wildcard' to be a bool")
70
81
  pulumi.set(__self__, "wildcard", wildcard)
71
82
 
83
+ @property
84
+ @pulumi.getter(name="clickTracking")
85
+ def click_tracking(self) -> Optional[bool]:
86
+ """
87
+ The click tracking setting.
88
+ """
89
+ return pulumi.get(self, "click_tracking")
90
+
72
91
  @property
73
92
  @pulumi.getter(name="dkimKeySize")
74
93
  def dkim_key_size(self) -> Optional[int]:
@@ -103,17 +122,18 @@ class GetDomainResult:
103
122
  @property
104
123
  @pulumi.getter(name="openTracking")
105
124
  def open_tracking(self) -> Optional[bool]:
125
+ """
126
+ The open tracking setting.
127
+ """
106
128
  return pulumi.get(self, "open_tracking")
107
129
 
108
130
  @property
109
131
  @pulumi.getter(name="receivingRecords")
132
+ @_utilities.deprecated("""Use `receiving_records_set` instead.""")
110
133
  def receiving_records(self) -> Sequence['outputs.GetDomainReceivingRecordResult']:
111
134
  """
112
135
  A list of DNS records for receiving validation.
113
136
  """
114
- warnings.warn("""Use `receiving_records_set` instead.""", DeprecationWarning)
115
- pulumi.log.warn("""receiving_records is deprecated: Use `receiving_records_set` instead.""")
116
-
117
137
  return pulumi.get(self, "receiving_records")
118
138
 
119
139
  @property
@@ -128,13 +148,11 @@ class GetDomainResult:
128
148
 
129
149
  @property
130
150
  @pulumi.getter(name="sendingRecords")
151
+ @_utilities.deprecated("""Use `sending_records_set` instead.""")
131
152
  def sending_records(self) -> Sequence['outputs.GetDomainSendingRecordResult']:
132
153
  """
133
154
  A list of DNS records for sending validation.
134
155
  """
135
- warnings.warn("""Use `sending_records_set` instead.""", DeprecationWarning)
136
- pulumi.log.warn("""sending_records is deprecated: Use `sending_records_set` instead.""")
137
-
138
156
  return pulumi.get(self, "sending_records")
139
157
 
140
158
  @property
@@ -166,6 +184,14 @@ class GetDomainResult:
166
184
  """
167
185
  return pulumi.get(self, "spam_action")
168
186
 
187
+ @property
188
+ @pulumi.getter(name="webScheme")
189
+ def web_scheme(self) -> Optional[str]:
190
+ """
191
+ The tracking web scheme.
192
+ """
193
+ return pulumi.get(self, "web_scheme")
194
+
169
195
  @property
170
196
  @pulumi.getter
171
197
  def wildcard(self) -> Optional[bool]:
@@ -181,6 +207,7 @@ class AwaitableGetDomainResult(GetDomainResult):
181
207
  if False:
182
208
  yield self
183
209
  return GetDomainResult(
210
+ click_tracking=self.click_tracking,
184
211
  dkim_key_size=self.dkim_key_size,
185
212
  dkim_selector=self.dkim_selector,
186
213
  force_dkim_authority=self.force_dkim_authority,
@@ -195,10 +222,12 @@ class AwaitableGetDomainResult(GetDomainResult):
195
222
  smtp_login=self.smtp_login,
196
223
  smtp_password=self.smtp_password,
197
224
  spam_action=self.spam_action,
225
+ web_scheme=self.web_scheme,
198
226
  wildcard=self.wildcard)
199
227
 
200
228
 
201
- def get_domain(dkim_key_size: Optional[int] = None,
229
+ def get_domain(click_tracking: Optional[bool] = None,
230
+ dkim_key_size: Optional[int] = None,
202
231
  dkim_selector: Optional[str] = None,
203
232
  force_dkim_authority: Optional[bool] = None,
204
233
  name: Optional[str] = None,
@@ -206,6 +235,7 @@ def get_domain(dkim_key_size: Optional[int] = None,
206
235
  region: Optional[str] = None,
207
236
  smtp_password: Optional[str] = None,
208
237
  spam_action: Optional[str] = None,
238
+ web_scheme: Optional[str] = None,
209
239
  wildcard: Optional[bool] = None,
210
240
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDomainResult:
211
241
  """
@@ -213,33 +243,35 @@ def get_domain(dkim_key_size: Optional[int] = None,
213
243
 
214
244
  ## Example Usage
215
245
 
216
- <!--Start PulumiCodeChooser -->
217
246
  ```python
218
247
  import pulumi
219
248
  import pulumi_aws as aws
220
249
  import pulumi_mailgun as mailgun
221
250
 
222
251
  domain = mailgun.get_domain(name="test.example.com")
223
- mailgun_mx = aws.route53.Record("mailgun-mx",
224
- name=data["mailgun"]["domain"]["name"],
225
- records=[
226
- f"{domain.receiving_records[0].priority} {domain.receiving_records[0].value}.",
227
- f"{domain.receiving_records[1].priority} {domain.receiving_records[1].value}.",
228
- ],
252
+ mailgun_mx = aws.index.Route53Record("mailgun-mx",
253
+ zone_id=zone_id,
254
+ name=domain_mailgun.name,
255
+ type=MX,
229
256
  ttl=3600,
230
- type="MX",
231
- zone_id=var["zone_id"])
257
+ records=[
258
+ f{domain.receiving_records[0].priority} {domain.receiving_records[0].value}.,
259
+ f{domain.receiving_records[1].priority} {domain.receiving_records[1].value}.,
260
+ ])
232
261
  ```
233
- <!--End PulumiCodeChooser -->
234
262
 
235
263
 
264
+ :param bool click_tracking: The click tracking setting.
236
265
  :param str name: The name of the domain.
266
+ :param bool open_tracking: The open tracking setting.
237
267
  :param str region: The region where domain will be created. Default value is `us`.
238
268
  :param str smtp_password: The password to the SMTP server.
239
269
  :param str spam_action: The spam filtering setting.
270
+ :param str web_scheme: The tracking web scheme.
240
271
  :param bool wildcard: Whether or not the domain will accept email for sub-domains.
241
272
  """
242
273
  __args__ = dict()
274
+ __args__['clickTracking'] = click_tracking
243
275
  __args__['dkimKeySize'] = dkim_key_size
244
276
  __args__['dkimSelector'] = dkim_selector
245
277
  __args__['forceDkimAuthority'] = force_dkim_authority
@@ -248,11 +280,13 @@ def get_domain(dkim_key_size: Optional[int] = None,
248
280
  __args__['region'] = region
249
281
  __args__['smtpPassword'] = smtp_password
250
282
  __args__['spamAction'] = spam_action
283
+ __args__['webScheme'] = web_scheme
251
284
  __args__['wildcard'] = wildcard
252
285
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
253
286
  __ret__ = pulumi.runtime.invoke('mailgun:index/getDomain:getDomain', __args__, opts=opts, typ=GetDomainResult).value
254
287
 
255
288
  return AwaitableGetDomainResult(
289
+ click_tracking=pulumi.get(__ret__, 'click_tracking'),
256
290
  dkim_key_size=pulumi.get(__ret__, 'dkim_key_size'),
257
291
  dkim_selector=pulumi.get(__ret__, 'dkim_selector'),
258
292
  force_dkim_authority=pulumi.get(__ret__, 'force_dkim_authority'),
@@ -267,11 +301,10 @@ def get_domain(dkim_key_size: Optional[int] = None,
267
301
  smtp_login=pulumi.get(__ret__, 'smtp_login'),
268
302
  smtp_password=pulumi.get(__ret__, 'smtp_password'),
269
303
  spam_action=pulumi.get(__ret__, 'spam_action'),
304
+ web_scheme=pulumi.get(__ret__, 'web_scheme'),
270
305
  wildcard=pulumi.get(__ret__, 'wildcard'))
271
-
272
-
273
- @_utilities.lift_output_func(get_domain)
274
- def get_domain_output(dkim_key_size: Optional[pulumi.Input[Optional[int]]] = None,
306
+ def get_domain_output(click_tracking: Optional[pulumi.Input[Optional[bool]]] = None,
307
+ dkim_key_size: Optional[pulumi.Input[Optional[int]]] = None,
275
308
  dkim_selector: Optional[pulumi.Input[Optional[str]]] = None,
276
309
  force_dkim_authority: Optional[pulumi.Input[Optional[bool]]] = None,
277
310
  name: Optional[pulumi.Input[str]] = None,
@@ -279,37 +312,70 @@ def get_domain_output(dkim_key_size: Optional[pulumi.Input[Optional[int]]] = Non
279
312
  region: Optional[pulumi.Input[Optional[str]]] = None,
280
313
  smtp_password: Optional[pulumi.Input[Optional[str]]] = None,
281
314
  spam_action: Optional[pulumi.Input[Optional[str]]] = None,
315
+ web_scheme: Optional[pulumi.Input[Optional[str]]] = None,
282
316
  wildcard: Optional[pulumi.Input[Optional[bool]]] = None,
283
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDomainResult]:
317
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDomainResult]:
284
318
  """
285
319
  `Domain` provides details about a Mailgun domain.
286
320
 
287
321
  ## Example Usage
288
322
 
289
- <!--Start PulumiCodeChooser -->
290
323
  ```python
291
324
  import pulumi
292
325
  import pulumi_aws as aws
293
326
  import pulumi_mailgun as mailgun
294
327
 
295
328
  domain = mailgun.get_domain(name="test.example.com")
296
- mailgun_mx = aws.route53.Record("mailgun-mx",
297
- name=data["mailgun"]["domain"]["name"],
298
- records=[
299
- f"{domain.receiving_records[0].priority} {domain.receiving_records[0].value}.",
300
- f"{domain.receiving_records[1].priority} {domain.receiving_records[1].value}.",
301
- ],
329
+ mailgun_mx = aws.index.Route53Record("mailgun-mx",
330
+ zone_id=zone_id,
331
+ name=domain_mailgun.name,
332
+ type=MX,
302
333
  ttl=3600,
303
- type="MX",
304
- zone_id=var["zone_id"])
334
+ records=[
335
+ f{domain.receiving_records[0].priority} {domain.receiving_records[0].value}.,
336
+ f{domain.receiving_records[1].priority} {domain.receiving_records[1].value}.,
337
+ ])
305
338
  ```
306
- <!--End PulumiCodeChooser -->
307
339
 
308
340
 
341
+ :param bool click_tracking: The click tracking setting.
309
342
  :param str name: The name of the domain.
343
+ :param bool open_tracking: The open tracking setting.
310
344
  :param str region: The region where domain will be created. Default value is `us`.
311
345
  :param str smtp_password: The password to the SMTP server.
312
346
  :param str spam_action: The spam filtering setting.
347
+ :param str web_scheme: The tracking web scheme.
313
348
  :param bool wildcard: Whether or not the domain will accept email for sub-domains.
314
349
  """
315
- ...
350
+ __args__ = dict()
351
+ __args__['clickTracking'] = click_tracking
352
+ __args__['dkimKeySize'] = dkim_key_size
353
+ __args__['dkimSelector'] = dkim_selector
354
+ __args__['forceDkimAuthority'] = force_dkim_authority
355
+ __args__['name'] = name
356
+ __args__['openTracking'] = open_tracking
357
+ __args__['region'] = region
358
+ __args__['smtpPassword'] = smtp_password
359
+ __args__['spamAction'] = spam_action
360
+ __args__['webScheme'] = web_scheme
361
+ __args__['wildcard'] = wildcard
362
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
363
+ __ret__ = pulumi.runtime.invoke_output('mailgun:index/getDomain:getDomain', __args__, opts=opts, typ=GetDomainResult)
364
+ return __ret__.apply(lambda __response__: GetDomainResult(
365
+ click_tracking=pulumi.get(__response__, 'click_tracking'),
366
+ dkim_key_size=pulumi.get(__response__, 'dkim_key_size'),
367
+ dkim_selector=pulumi.get(__response__, 'dkim_selector'),
368
+ force_dkim_authority=pulumi.get(__response__, 'force_dkim_authority'),
369
+ id=pulumi.get(__response__, 'id'),
370
+ name=pulumi.get(__response__, 'name'),
371
+ open_tracking=pulumi.get(__response__, 'open_tracking'),
372
+ receiving_records=pulumi.get(__response__, 'receiving_records'),
373
+ receiving_records_sets=pulumi.get(__response__, 'receiving_records_sets'),
374
+ region=pulumi.get(__response__, 'region'),
375
+ sending_records=pulumi.get(__response__, 'sending_records'),
376
+ sending_records_sets=pulumi.get(__response__, 'sending_records_sets'),
377
+ smtp_login=pulumi.get(__response__, 'smtp_login'),
378
+ smtp_password=pulumi.get(__response__, 'smtp_password'),
379
+ spam_action=pulumi.get(__response__, 'spam_action'),
380
+ web_scheme=pulumi.get(__response__, 'web_scheme'),
381
+ wildcard=pulumi.get(__response__, 'wildcard')))
pulumi_mailgun/outputs.py CHANGED
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['ProviderArgs', 'Provider']
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
- "name": "mailgun"
3
+ "name": "mailgun",
4
+ "version": "3.6.0-alpha.1736849423"
4
5
  }
pulumi_mailgun/route.py CHANGED
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['RouteArgs', 'Route']
@@ -184,22 +189,20 @@ class Route(pulumi.CustomResource):
184
189
 
185
190
  ## Example Usage
186
191
 
187
- <!--Start PulumiCodeChooser -->
188
192
  ```python
189
193
  import pulumi
190
194
  import pulumi_mailgun as mailgun
191
195
 
192
196
  # Create a new Mailgun route
193
197
  default = mailgun.Route("default",
198
+ priority=0,
199
+ description="inbound",
200
+ expression="match_recipient('.*@foo.example.com')",
194
201
  actions=[
195
202
  "forward('http://example.com/api/v1/foos/')",
196
203
  "stop()",
197
- ],
198
- description="inbound",
199
- expression="match_recipient('.*@foo.example.com')",
200
- priority=0)
204
+ ])
201
205
  ```
202
- <!--End PulumiCodeChooser -->
203
206
 
204
207
  ## Import
205
208
 
@@ -228,22 +231,20 @@ class Route(pulumi.CustomResource):
228
231
 
229
232
  ## Example Usage
230
233
 
231
- <!--Start PulumiCodeChooser -->
232
234
  ```python
233
235
  import pulumi
234
236
  import pulumi_mailgun as mailgun
235
237
 
236
238
  # Create a new Mailgun route
237
239
  default = mailgun.Route("default",
240
+ priority=0,
241
+ description="inbound",
242
+ expression="match_recipient('.*@foo.example.com')",
238
243
  actions=[
239
244
  "forward('http://example.com/api/v1/foos/')",
240
245
  "stop()",
241
- ],
242
- description="inbound",
243
- expression="match_recipient('.*@foo.example.com')",
244
- priority=0)
246
+ ])
245
247
  ```
246
- <!--End PulumiCodeChooser -->
247
248
 
248
249
  ## Import
249
250
 
pulumi_mailgun/webhook.py CHANGED
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['WebhookArgs', 'Webhook']
@@ -21,7 +26,7 @@ class WebhookArgs:
21
26
  """
22
27
  The set of arguments for constructing a Webhook resource.
23
28
  :param pulumi.Input[str] domain: The domain to add to Mailgun
24
- :param pulumi.Input[str] kind: The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
29
+ :param pulumi.Input[str] kind: The kind of webhook. Supported values (`accepted` `clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
25
30
  :param pulumi.Input[Sequence[pulumi.Input[str]]] urls: The urls of webhook
26
31
  :param pulumi.Input[str] region: The region where domain will be created. Default value is `us`.
27
32
  """
@@ -47,7 +52,7 @@ class WebhookArgs:
47
52
  @pulumi.getter
48
53
  def kind(self) -> pulumi.Input[str]:
49
54
  """
50
- The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
55
+ The kind of webhook. Supported values (`accepted` `clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
51
56
  """
52
57
  return pulumi.get(self, "kind")
53
58
 
@@ -90,7 +95,7 @@ class _WebhookState:
90
95
  """
91
96
  Input properties used for looking up and filtering Webhook resources.
92
97
  :param pulumi.Input[str] domain: The domain to add to Mailgun
93
- :param pulumi.Input[str] kind: The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
98
+ :param pulumi.Input[str] kind: The kind of webhook. Supported values (`accepted` `clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
94
99
  :param pulumi.Input[str] region: The region where domain will be created. Default value is `us`.
95
100
  :param pulumi.Input[Sequence[pulumi.Input[str]]] urls: The urls of webhook
96
101
  """
@@ -119,7 +124,7 @@ class _WebhookState:
119
124
  @pulumi.getter
120
125
  def kind(self) -> Optional[pulumi.Input[str]]:
121
126
  """
122
- The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
127
+ The kind of webhook. Supported values (`accepted` `clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
123
128
  """
124
129
  return pulumi.get(self, "kind")
125
130
 
@@ -168,7 +173,6 @@ class Webhook(pulumi.CustomResource):
168
173
 
169
174
  ## Example Usage
170
175
 
171
- <!--Start PulumiCodeChooser -->
172
176
  ```python
173
177
  import pulumi
174
178
  import pulumi_mailgun as mailgun
@@ -176,16 +180,15 @@ class Webhook(pulumi.CustomResource):
176
180
  # Create a new Mailgun webhook
177
181
  default = mailgun.Webhook("default",
178
182
  domain="test.example.com",
179
- kind="delivered",
180
183
  region="us",
184
+ kind="delivered",
181
185
  urls=["https://example.com"])
182
186
  ```
183
- <!--End PulumiCodeChooser -->
184
187
 
185
188
  :param str resource_name: The name of the resource.
186
189
  :param pulumi.ResourceOptions opts: Options for the resource.
187
190
  :param pulumi.Input[str] domain: The domain to add to Mailgun
188
- :param pulumi.Input[str] kind: The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
191
+ :param pulumi.Input[str] kind: The kind of webhook. Supported values (`accepted` `clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
189
192
  :param pulumi.Input[str] region: The region where domain will be created. Default value is `us`.
190
193
  :param pulumi.Input[Sequence[pulumi.Input[str]]] urls: The urls of webhook
191
194
  """
@@ -201,7 +204,6 @@ class Webhook(pulumi.CustomResource):
201
204
 
202
205
  ## Example Usage
203
206
 
204
- <!--Start PulumiCodeChooser -->
205
207
  ```python
206
208
  import pulumi
207
209
  import pulumi_mailgun as mailgun
@@ -209,11 +211,10 @@ class Webhook(pulumi.CustomResource):
209
211
  # Create a new Mailgun webhook
210
212
  default = mailgun.Webhook("default",
211
213
  domain="test.example.com",
212
- kind="delivered",
213
214
  region="us",
215
+ kind="delivered",
214
216
  urls=["https://example.com"])
215
217
  ```
216
- <!--End PulumiCodeChooser -->
217
218
 
218
219
  :param str resource_name: The name of the resource.
219
220
  :param WebhookArgs args: The arguments to use to populate this resource's properties.
@@ -275,7 +276,7 @@ class Webhook(pulumi.CustomResource):
275
276
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
276
277
  :param pulumi.ResourceOptions opts: Options for the resource.
277
278
  :param pulumi.Input[str] domain: The domain to add to Mailgun
278
- :param pulumi.Input[str] kind: The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
279
+ :param pulumi.Input[str] kind: The kind of webhook. Supported values (`accepted` `clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
279
280
  :param pulumi.Input[str] region: The region where domain will be created. Default value is `us`.
280
281
  :param pulumi.Input[Sequence[pulumi.Input[str]]] urls: The urls of webhook
281
282
  """
@@ -301,7 +302,7 @@ class Webhook(pulumi.CustomResource):
301
302
  @pulumi.getter
302
303
  def kind(self) -> pulumi.Output[str]:
303
304
  """
304
- The kind of webhook. Supported values (`clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
305
+ The kind of webhook. Supported values (`accepted` `clicked` `complained` `delivered` `opened` `permanent_fail`, `temporary_fail` `unsubscribed`)
305
306
  """
306
307
  return pulumi.get(self, "kind")
307
308
 
@@ -1,16 +1,17 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: pulumi_mailgun
3
- Version: 3.6.0a1710156895
3
+ Version: 3.6.0a1736849423
4
4
  Summary: A Pulumi package for creating and managing Mailgun resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
7
7
  Project-URL: Repository, https://github.com/pulumi/pulumi-mailgun
8
8
  Keywords: pulumi,mailgun
9
- Requires-Python: >=3.8
9
+ Requires-Python: >=3.9
10
10
  Description-Content-Type: text/markdown
11
- Requires-Dist: parver >=0.2.1
12
- Requires-Dist: pulumi <4.0.0,>=3.0.0
13
- Requires-Dist: semver >=2.8.1
11
+ Requires-Dist: parver>=0.2.1
12
+ Requires-Dist: pulumi<4.0.0,>=3.142.0
13
+ Requires-Dist: semver>=2.8.1
14
+ Requires-Dist: typing-extensions>=4.11; python_version < "3.11"
14
15
 
15
16
  [![Actions Status](https://github.com/pulumi/pulumi-mailgun/workflows/master/badge.svg)](https://github.com/pulumi/pulumi-mailgun/actions)
16
17
  [![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com)
@@ -0,0 +1,19 @@
1
+ pulumi_mailgun/__init__.py,sha256=Ytyt-ig7Of_38ZU1ABf5ae67MG-VwOmEfBHw4-WQOPo,1461
2
+ pulumi_mailgun/_inputs.py,sha256=oewCZz8Lo93sZF-XRnuFHeyvJn4w3YQ07krIakb8E9A,13617
3
+ pulumi_mailgun/_utilities.py,sha256=-gxwnD6__OYdSf8jJgJijNuu-UHUwi5pJ1H7-eIHDhg,10504
4
+ pulumi_mailgun/domain.py,sha256=TSn-23-uhI6B4Zsdjyx6NYjjlYI7FzpV_GcB_w9WYxA,40639
5
+ pulumi_mailgun/domain_credential.py,sha256=x5sNVp1rWYWmP6EQbEdMm2zIXETAfFOzNcDDTeAYwxM,13538
6
+ pulumi_mailgun/get_domain.py,sha256=O-ZIwZNv_U7KdbQWbVMuTbVnb_K1UzFYITGPYKVZgOE,16479
7
+ pulumi_mailgun/outputs.py,sha256=_yAV9zhdbelUXcthSgi0wqNRA1FMw0P2sTJ0elHyZv0,16285
8
+ pulumi_mailgun/provider.py,sha256=NYMRe1ZvSadR289jSIMWFE2Av1Px6Eh1WNB1YmBrZhU,4346
9
+ pulumi_mailgun/pulumi-plugin.json,sha256=MyRBt67veaHpXPLUU-Zi5s_QnhxHViWVUN8hHMXv7i0,83
10
+ pulumi_mailgun/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ pulumi_mailgun/route.py,sha256=b5k5ESAMr8VrqBSFIh3eaMboB08ThagOybaNOMItNAc,14328
12
+ pulumi_mailgun/webhook.py,sha256=ZfaziPJJFzb1OT1B3NLpqbXoVBVSSMRBzAZd2-Y6Ggk,12496
13
+ pulumi_mailgun/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
14
+ pulumi_mailgun/config/__init__.pyi,sha256=yVlVZwiwDCVbo-pD12UK619Y9Am96Xa0gQgOH4vMUhE,542
15
+ pulumi_mailgun/config/vars.py,sha256=kUdLUx0w1seyzQ7k-VNXNfZNi6wbKYar4aQ-SSwQd9o,711
16
+ pulumi_mailgun-3.6.0a1736849423.dist-info/METADATA,sha256=zdElICHl_tuuClsIj0z8FHN5Sspd6__9hJd2c64ny_M,2639
17
+ pulumi_mailgun-3.6.0a1736849423.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
18
+ pulumi_mailgun-3.6.0a1736849423.dist-info/top_level.txt,sha256=ux3X8exe9YrOj_SlT4i0pHbKCRsCEFnr4MM3FGuPBmo,15
19
+ pulumi_mailgun-3.6.0a1736849423.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,19 +0,0 @@
1
- pulumi_mailgun/__init__.py,sha256=Ytyt-ig7Of_38ZU1ABf5ae67MG-VwOmEfBHw4-WQOPo,1461
2
- pulumi_mailgun/_inputs.py,sha256=iO4VyWOjGvKASkn1DLUnGR6223ezEit7cdGeKNVRCis,10831
3
- pulumi_mailgun/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
4
- pulumi_mailgun/domain.py,sha256=DykrC-3tgZ-K6OiBCHGbU0mjOJ1l8sWl_j7IvomVGrE,36434
5
- pulumi_mailgun/domain_credential.py,sha256=onbH4dq2SDHFzZI0ltbBtEzR-cynIbpn2afyReNT8yY,12674
6
- pulumi_mailgun/get_domain.py,sha256=puB3RUCMePgXe3DbAm46UHc_JHxtZve6lJBPHLcwkgI,13088
7
- pulumi_mailgun/outputs.py,sha256=xQusQqmyBUhtG9XE3c7kxZhDJy6abczWcRSDuAYNQek,16111
8
- pulumi_mailgun/provider.py,sha256=9qI4cuBLFl63bl6-GzApC2RfPcjiqewM0Akvq3qGeWw,4172
9
- pulumi_mailgun/pulumi-plugin.json,sha256=rMe5c_W-nFA_lbOXShKZg9waIs5r9V0wcCV_3bLIs1o,44
10
- pulumi_mailgun/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- pulumi_mailgun/route.py,sha256=9cJy9jTOLRTGoWMTofqizejdFs486WOqnHqkRynFaIA,14310
12
- pulumi_mailgun/webhook.py,sha256=m8oNhFOIh4uWUQA4zSLZHNT3ewv0e2xbjUEy_2X1aBk,12401
13
- pulumi_mailgun/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
14
- pulumi_mailgun/config/__init__.pyi,sha256=wbbguwB5yRofgo-I6b1iB0G6c4zL_tEq11tMNQ8Ydk8,368
15
- pulumi_mailgun/config/vars.py,sha256=tidRrEc3FocYiKkMumCSpd5EIgpt_I4k26VD_bnE5SM,537
16
- pulumi_mailgun-3.6.0a1710156895.dist-info/METADATA,sha256=AMeW880TyatSp6CalgzPJoEDGX2MkZdG5OpLIKKVTrw,2576
17
- pulumi_mailgun-3.6.0a1710156895.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
18
- pulumi_mailgun-3.6.0a1710156895.dist-info/top_level.txt,sha256=ux3X8exe9YrOj_SlT4i0pHbKCRsCEFnr4MM3FGuPBmo,15
19
- pulumi_mailgun-3.6.0a1710156895.dist-info/RECORD,,