pulumi-dnsimple 3.4.2__tar.gz → 3.5.0__tar.gz
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.
Potentially problematic release.
This version of pulumi-dnsimple might be problematic. Click here for more details.
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/PKG-INFO +1 -1
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/__init__.py +1 -9
- pulumi_dnsimple-3.5.0/pulumi_dnsimple/_enums.py +31 -0
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/_utilities.py +38 -4
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/domain.py +74 -8
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/email_forward.py +46 -26
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/get_certificate.py +11 -18
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/get_zone.py +2 -8
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/lets_encrypt_certificate.py +108 -102
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/provider.py +24 -26
- pulumi_dnsimple-3.5.0/pulumi_dnsimple/pulumi-plugin.json +5 -0
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/zone_record.py +59 -65
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple.egg-info/PKG-INFO +1 -1
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple.egg-info/SOURCES.txt +1 -1
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pyproject.toml +1 -1
- pulumi_dnsimple-3.4.2/pulumi_dnsimple/pulumi-plugin.json +0 -4
- pulumi_dnsimple-3.4.2/pulumi_dnsimple/record.py +0 -353
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/README.md +0 -0
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/config/__init__.py +0 -0
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/config/__init__.pyi +0 -0
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/config/vars.py +0 -0
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple/py.typed +0 -0
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple.egg-info/dependency_links.txt +0 -0
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple.egg-info/requires.txt +0 -0
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/pulumi_dnsimple.egg-info/top_level.txt +0 -0
- {pulumi_dnsimple-3.4.2 → pulumi_dnsimple-3.5.0}/setup.cfg +0 -0
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
from . import _utilities
|
|
6
6
|
import typing
|
|
7
7
|
# Export this package's modules as members:
|
|
8
|
+
from ._enums import *
|
|
8
9
|
from .domain import *
|
|
9
10
|
from .email_forward import *
|
|
10
11
|
from .get_certificate import *
|
|
11
12
|
from .get_zone import *
|
|
12
13
|
from .lets_encrypt_certificate import *
|
|
13
14
|
from .provider import *
|
|
14
|
-
from .record import *
|
|
15
15
|
from .zone_record import *
|
|
16
16
|
|
|
17
17
|
# Make subpackages available:
|
|
@@ -48,14 +48,6 @@ _utilities.register(
|
|
|
48
48
|
"dnsimple:index/letsEncryptCertificate:LetsEncryptCertificate": "LetsEncryptCertificate"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
{
|
|
52
|
-
"pkg": "dnsimple",
|
|
53
|
-
"mod": "index/record",
|
|
54
|
-
"fqn": "pulumi_dnsimple",
|
|
55
|
-
"classes": {
|
|
56
|
-
"dnsimple:index/record:Record": "Record"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
51
|
{
|
|
60
52
|
"pkg": "dnsimple",
|
|
61
53
|
"mod": "index/zoneRecord",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
from enum import Enum
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
'RecordTypes',
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class RecordTypes(str, Enum):
|
|
13
|
+
"""
|
|
14
|
+
DNS Record types.
|
|
15
|
+
"""
|
|
16
|
+
A = "A"
|
|
17
|
+
AAAA = "AAAA"
|
|
18
|
+
ALIAS = "ALIAS"
|
|
19
|
+
CAA = "CAA"
|
|
20
|
+
CNAME = "CNAME"
|
|
21
|
+
HINFO = "HINFO"
|
|
22
|
+
MX = "MX"
|
|
23
|
+
NAPTR = "NAPTR"
|
|
24
|
+
NS = "NS"
|
|
25
|
+
POOL = "POOL"
|
|
26
|
+
PTR = "PTR"
|
|
27
|
+
SPF = "SPF"
|
|
28
|
+
SRV = "SRV"
|
|
29
|
+
SSHFP = "SSHFP"
|
|
30
|
+
TXT = "TXT"
|
|
31
|
+
URL = "URL"
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
import asyncio
|
|
7
|
+
import functools
|
|
7
8
|
import importlib.metadata
|
|
8
9
|
import importlib.util
|
|
9
10
|
import inspect
|
|
@@ -11,6 +12,7 @@ import json
|
|
|
11
12
|
import os
|
|
12
13
|
import sys
|
|
13
14
|
import typing
|
|
15
|
+
import warnings
|
|
14
16
|
|
|
15
17
|
import pulumi
|
|
16
18
|
import pulumi.runtime
|
|
@@ -19,6 +21,8 @@ from pulumi.runtime.sync_await import _sync_await
|
|
|
19
21
|
from semver import VersionInfo as SemverVersion
|
|
20
22
|
from parver import Version as PEP440Version
|
|
21
23
|
|
|
24
|
+
C = typing.TypeVar("C", bound=typing.Callable)
|
|
25
|
+
|
|
22
26
|
|
|
23
27
|
def get_env(*args):
|
|
24
28
|
for v in args:
|
|
@@ -96,10 +100,6 @@ def _get_semver_version():
|
|
|
96
100
|
_version = _get_semver_version()
|
|
97
101
|
_version_str = str(_version)
|
|
98
102
|
|
|
99
|
-
|
|
100
|
-
def get_version():
|
|
101
|
-
return _version_str
|
|
102
|
-
|
|
103
103
|
def get_resource_opts_defaults() -> pulumi.ResourceOptions:
|
|
104
104
|
return pulumi.ResourceOptions(
|
|
105
105
|
version=get_version(),
|
|
@@ -287,5 +287,39 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo
|
|
|
287
287
|
await o._resources,
|
|
288
288
|
)
|
|
289
289
|
|
|
290
|
+
|
|
291
|
+
# This is included to provide an upgrade path for users who are using a version
|
|
292
|
+
# of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
|
|
293
|
+
def deprecated(message: str) -> typing.Callable[[C], C]:
|
|
294
|
+
"""
|
|
295
|
+
Decorator to indicate a function is deprecated.
|
|
296
|
+
|
|
297
|
+
As well as inserting appropriate statements to indicate that the function is
|
|
298
|
+
deprecated, this decorator also tags the function with a special attribute
|
|
299
|
+
so that Pulumi code can detect that it is deprecated and react appropriately
|
|
300
|
+
in certain situations.
|
|
301
|
+
|
|
302
|
+
message is the deprecation message that should be printed if the function is called.
|
|
303
|
+
"""
|
|
304
|
+
|
|
305
|
+
def decorator(fn: C) -> C:
|
|
306
|
+
if not callable(fn):
|
|
307
|
+
raise TypeError("Expected fn to be callable")
|
|
308
|
+
|
|
309
|
+
@functools.wraps(fn)
|
|
310
|
+
def deprecated_fn(*args, **kwargs):
|
|
311
|
+
warnings.warn(message)
|
|
312
|
+
pulumi.warn(f"{fn.__name__} is deprecated: {message}")
|
|
313
|
+
|
|
314
|
+
return fn(*args, **kwargs)
|
|
315
|
+
|
|
316
|
+
deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
|
|
317
|
+
return typing.cast(C, deprecated_fn)
|
|
318
|
+
|
|
319
|
+
return decorator
|
|
320
|
+
|
|
290
321
|
def get_plugin_download_url():
|
|
291
322
|
return None
|
|
323
|
+
|
|
324
|
+
def get_version():
|
|
325
|
+
return _version_str
|
|
@@ -18,6 +18,8 @@ class DomainArgs:
|
|
|
18
18
|
"""
|
|
19
19
|
The set of arguments for constructing a Domain resource.
|
|
20
20
|
:param pulumi.Input[str] name: The domain name to be created
|
|
21
|
+
|
|
22
|
+
# Attributes Reference
|
|
21
23
|
"""
|
|
22
24
|
pulumi.set(__self__, "name", name)
|
|
23
25
|
|
|
@@ -26,6 +28,8 @@ class DomainArgs:
|
|
|
26
28
|
def name(self) -> pulumi.Input[str]:
|
|
27
29
|
"""
|
|
28
30
|
The domain name to be created
|
|
31
|
+
|
|
32
|
+
# Attributes Reference
|
|
29
33
|
"""
|
|
30
34
|
return pulumi.get(self, "name")
|
|
31
35
|
|
|
@@ -46,7 +50,15 @@ class _DomainState:
|
|
|
46
50
|
unicode_name: Optional[pulumi.Input[str]] = None):
|
|
47
51
|
"""
|
|
48
52
|
Input properties used for looking up and filtering Domain resources.
|
|
53
|
+
:param pulumi.Input[int] account_id: The account ID for the domain.
|
|
54
|
+
:param pulumi.Input[bool] auto_renew: Whether the domain is set to auto-renew.
|
|
49
55
|
:param pulumi.Input[str] name: The domain name to be created
|
|
56
|
+
|
|
57
|
+
# Attributes Reference
|
|
58
|
+
:param pulumi.Input[bool] private_whois: Whether the domain has WhoIs privacy enabled.
|
|
59
|
+
:param pulumi.Input[int] registrant_id: The ID of the registrant (contact) for the domain.
|
|
60
|
+
:param pulumi.Input[str] state: The state of the domain.
|
|
61
|
+
:param pulumi.Input[str] unicode_name: The domain name in Unicode format.
|
|
50
62
|
"""
|
|
51
63
|
if account_id is not None:
|
|
52
64
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -66,6 +78,9 @@ class _DomainState:
|
|
|
66
78
|
@property
|
|
67
79
|
@pulumi.getter(name="accountId")
|
|
68
80
|
def account_id(self) -> Optional[pulumi.Input[int]]:
|
|
81
|
+
"""
|
|
82
|
+
The account ID for the domain.
|
|
83
|
+
"""
|
|
69
84
|
return pulumi.get(self, "account_id")
|
|
70
85
|
|
|
71
86
|
@account_id.setter
|
|
@@ -75,6 +90,9 @@ class _DomainState:
|
|
|
75
90
|
@property
|
|
76
91
|
@pulumi.getter(name="autoRenew")
|
|
77
92
|
def auto_renew(self) -> Optional[pulumi.Input[bool]]:
|
|
93
|
+
"""
|
|
94
|
+
Whether the domain is set to auto-renew.
|
|
95
|
+
"""
|
|
78
96
|
return pulumi.get(self, "auto_renew")
|
|
79
97
|
|
|
80
98
|
@auto_renew.setter
|
|
@@ -86,6 +104,8 @@ class _DomainState:
|
|
|
86
104
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
87
105
|
"""
|
|
88
106
|
The domain name to be created
|
|
107
|
+
|
|
108
|
+
# Attributes Reference
|
|
89
109
|
"""
|
|
90
110
|
return pulumi.get(self, "name")
|
|
91
111
|
|
|
@@ -96,6 +116,9 @@ class _DomainState:
|
|
|
96
116
|
@property
|
|
97
117
|
@pulumi.getter(name="privateWhois")
|
|
98
118
|
def private_whois(self) -> Optional[pulumi.Input[bool]]:
|
|
119
|
+
"""
|
|
120
|
+
Whether the domain has WhoIs privacy enabled.
|
|
121
|
+
"""
|
|
99
122
|
return pulumi.get(self, "private_whois")
|
|
100
123
|
|
|
101
124
|
@private_whois.setter
|
|
@@ -105,6 +128,9 @@ class _DomainState:
|
|
|
105
128
|
@property
|
|
106
129
|
@pulumi.getter(name="registrantId")
|
|
107
130
|
def registrant_id(self) -> Optional[pulumi.Input[int]]:
|
|
131
|
+
"""
|
|
132
|
+
The ID of the registrant (contact) for the domain.
|
|
133
|
+
"""
|
|
108
134
|
return pulumi.get(self, "registrant_id")
|
|
109
135
|
|
|
110
136
|
@registrant_id.setter
|
|
@@ -114,6 +140,9 @@ class _DomainState:
|
|
|
114
140
|
@property
|
|
115
141
|
@pulumi.getter
|
|
116
142
|
def state(self) -> Optional[pulumi.Input[str]]:
|
|
143
|
+
"""
|
|
144
|
+
The state of the domain.
|
|
145
|
+
"""
|
|
117
146
|
return pulumi.get(self, "state")
|
|
118
147
|
|
|
119
148
|
@state.setter
|
|
@@ -123,6 +152,9 @@ class _DomainState:
|
|
|
123
152
|
@property
|
|
124
153
|
@pulumi.getter(name="unicodeName")
|
|
125
154
|
def unicode_name(self) -> Optional[pulumi.Input[str]]:
|
|
155
|
+
"""
|
|
156
|
+
The domain name in Unicode format.
|
|
157
|
+
"""
|
|
126
158
|
return pulumi.get(self, "unicode_name")
|
|
127
159
|
|
|
128
160
|
@unicode_name.setter
|
|
@@ -142,27 +174,29 @@ class Domain(pulumi.CustomResource):
|
|
|
142
174
|
|
|
143
175
|
## Example Usage
|
|
144
176
|
|
|
145
|
-
<!--Start PulumiCodeChooser -->
|
|
146
177
|
```python
|
|
147
178
|
import pulumi
|
|
148
179
|
import pulumi_dnsimple as dnsimple
|
|
149
180
|
|
|
150
181
|
# Create a domain
|
|
151
|
-
foobar = dnsimple.Domain("foobar", name=
|
|
182
|
+
foobar = dnsimple.Domain("foobar", name=dnsimple["domain"])
|
|
152
183
|
```
|
|
153
|
-
<!--End PulumiCodeChooser -->
|
|
154
184
|
|
|
155
185
|
## Import
|
|
156
186
|
|
|
157
187
|
DNSimple domains can be imported using their numeric record ID.
|
|
158
188
|
|
|
189
|
+
bash
|
|
190
|
+
|
|
159
191
|
```sh
|
|
160
192
|
$ pulumi import dnsimple:index/domain:Domain resource_name 5678
|
|
161
193
|
```
|
|
162
194
|
|
|
163
195
|
The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
|
|
164
196
|
|
|
165
|
-
|
|
197
|
+
bash
|
|
198
|
+
|
|
199
|
+
curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
|
|
166
200
|
|
|
167
201
|
{
|
|
168
202
|
|
|
@@ -215,6 +249,8 @@ class Domain(pulumi.CustomResource):
|
|
|
215
249
|
:param str resource_name: The name of the resource.
|
|
216
250
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
217
251
|
:param pulumi.Input[str] name: The domain name to be created
|
|
252
|
+
|
|
253
|
+
# Attributes Reference
|
|
218
254
|
"""
|
|
219
255
|
...
|
|
220
256
|
@overload
|
|
@@ -227,27 +263,29 @@ class Domain(pulumi.CustomResource):
|
|
|
227
263
|
|
|
228
264
|
## Example Usage
|
|
229
265
|
|
|
230
|
-
<!--Start PulumiCodeChooser -->
|
|
231
266
|
```python
|
|
232
267
|
import pulumi
|
|
233
268
|
import pulumi_dnsimple as dnsimple
|
|
234
269
|
|
|
235
270
|
# Create a domain
|
|
236
|
-
foobar = dnsimple.Domain("foobar", name=
|
|
271
|
+
foobar = dnsimple.Domain("foobar", name=dnsimple["domain"])
|
|
237
272
|
```
|
|
238
|
-
<!--End PulumiCodeChooser -->
|
|
239
273
|
|
|
240
274
|
## Import
|
|
241
275
|
|
|
242
276
|
DNSimple domains can be imported using their numeric record ID.
|
|
243
277
|
|
|
278
|
+
bash
|
|
279
|
+
|
|
244
280
|
```sh
|
|
245
281
|
$ pulumi import dnsimple:index/domain:Domain resource_name 5678
|
|
246
282
|
```
|
|
247
283
|
|
|
248
284
|
The record ID can be found within [DNSimple Domains API](https://developer.dnsimple.com/v2/domains/#listDomains). Check out [Authentication](https://developer.dnsimple.com/v2/#authentication) in API Overview for available options.
|
|
249
285
|
|
|
250
|
-
|
|
286
|
+
bash
|
|
287
|
+
|
|
288
|
+
curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
|
|
251
289
|
|
|
252
290
|
{
|
|
253
291
|
|
|
@@ -355,7 +393,15 @@ class Domain(pulumi.CustomResource):
|
|
|
355
393
|
:param str resource_name: The unique name of the resulting resource.
|
|
356
394
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
357
395
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
396
|
+
:param pulumi.Input[int] account_id: The account ID for the domain.
|
|
397
|
+
:param pulumi.Input[bool] auto_renew: Whether the domain is set to auto-renew.
|
|
358
398
|
:param pulumi.Input[str] name: The domain name to be created
|
|
399
|
+
|
|
400
|
+
# Attributes Reference
|
|
401
|
+
:param pulumi.Input[bool] private_whois: Whether the domain has WhoIs privacy enabled.
|
|
402
|
+
:param pulumi.Input[int] registrant_id: The ID of the registrant (contact) for the domain.
|
|
403
|
+
:param pulumi.Input[str] state: The state of the domain.
|
|
404
|
+
:param pulumi.Input[str] unicode_name: The domain name in Unicode format.
|
|
359
405
|
"""
|
|
360
406
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
361
407
|
|
|
@@ -373,11 +419,17 @@ class Domain(pulumi.CustomResource):
|
|
|
373
419
|
@property
|
|
374
420
|
@pulumi.getter(name="accountId")
|
|
375
421
|
def account_id(self) -> pulumi.Output[int]:
|
|
422
|
+
"""
|
|
423
|
+
The account ID for the domain.
|
|
424
|
+
"""
|
|
376
425
|
return pulumi.get(self, "account_id")
|
|
377
426
|
|
|
378
427
|
@property
|
|
379
428
|
@pulumi.getter(name="autoRenew")
|
|
380
429
|
def auto_renew(self) -> pulumi.Output[bool]:
|
|
430
|
+
"""
|
|
431
|
+
Whether the domain is set to auto-renew.
|
|
432
|
+
"""
|
|
381
433
|
return pulumi.get(self, "auto_renew")
|
|
382
434
|
|
|
383
435
|
@property
|
|
@@ -385,26 +437,40 @@ class Domain(pulumi.CustomResource):
|
|
|
385
437
|
def name(self) -> pulumi.Output[str]:
|
|
386
438
|
"""
|
|
387
439
|
The domain name to be created
|
|
440
|
+
|
|
441
|
+
# Attributes Reference
|
|
388
442
|
"""
|
|
389
443
|
return pulumi.get(self, "name")
|
|
390
444
|
|
|
391
445
|
@property
|
|
392
446
|
@pulumi.getter(name="privateWhois")
|
|
393
447
|
def private_whois(self) -> pulumi.Output[bool]:
|
|
448
|
+
"""
|
|
449
|
+
Whether the domain has WhoIs privacy enabled.
|
|
450
|
+
"""
|
|
394
451
|
return pulumi.get(self, "private_whois")
|
|
395
452
|
|
|
396
453
|
@property
|
|
397
454
|
@pulumi.getter(name="registrantId")
|
|
398
455
|
def registrant_id(self) -> pulumi.Output[int]:
|
|
456
|
+
"""
|
|
457
|
+
The ID of the registrant (contact) for the domain.
|
|
458
|
+
"""
|
|
399
459
|
return pulumi.get(self, "registrant_id")
|
|
400
460
|
|
|
401
461
|
@property
|
|
402
462
|
@pulumi.getter
|
|
403
463
|
def state(self) -> pulumi.Output[str]:
|
|
464
|
+
"""
|
|
465
|
+
The state of the domain.
|
|
466
|
+
"""
|
|
404
467
|
return pulumi.get(self, "state")
|
|
405
468
|
|
|
406
469
|
@property
|
|
407
470
|
@pulumi.getter(name="unicodeName")
|
|
408
471
|
def unicode_name(self) -> pulumi.Output[str]:
|
|
472
|
+
"""
|
|
473
|
+
The domain name in Unicode format.
|
|
474
|
+
"""
|
|
409
475
|
return pulumi.get(self, "unicode_name")
|
|
410
476
|
|
|
@@ -20,8 +20,8 @@ class EmailForwardArgs:
|
|
|
20
20
|
"""
|
|
21
21
|
The set of arguments for constructing a EmailForward resource.
|
|
22
22
|
:param pulumi.Input[str] alias_name: The name part (the part before the @) of the source email address on the domain
|
|
23
|
-
:param pulumi.Input[str] destination_email: The destination email address
|
|
24
|
-
:param pulumi.Input[str] domain: The domain to add the email forwarding rule to
|
|
23
|
+
:param pulumi.Input[str] destination_email: The destination email address
|
|
24
|
+
:param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
|
|
25
25
|
"""
|
|
26
26
|
pulumi.set(__self__, "alias_name", alias_name)
|
|
27
27
|
pulumi.set(__self__, "destination_email", destination_email)
|
|
@@ -43,7 +43,7 @@ class EmailForwardArgs:
|
|
|
43
43
|
@pulumi.getter(name="destinationEmail")
|
|
44
44
|
def destination_email(self) -> pulumi.Input[str]:
|
|
45
45
|
"""
|
|
46
|
-
The destination email address
|
|
46
|
+
The destination email address
|
|
47
47
|
"""
|
|
48
48
|
return pulumi.get(self, "destination_email")
|
|
49
49
|
|
|
@@ -55,7 +55,7 @@ class EmailForwardArgs:
|
|
|
55
55
|
@pulumi.getter
|
|
56
56
|
def domain(self) -> pulumi.Input[str]:
|
|
57
57
|
"""
|
|
58
|
-
The domain to add the email forwarding rule to
|
|
58
|
+
The domain name to add the email forwarding rule to
|
|
59
59
|
"""
|
|
60
60
|
return pulumi.get(self, "domain")
|
|
61
61
|
|
|
@@ -73,10 +73,10 @@ class _EmailForwardState:
|
|
|
73
73
|
domain: Optional[pulumi.Input[str]] = None):
|
|
74
74
|
"""
|
|
75
75
|
Input properties used for looking up and filtering EmailForward resources.
|
|
76
|
-
:param pulumi.Input[str] alias_email: The source email address on the domain
|
|
76
|
+
:param pulumi.Input[str] alias_email: The source email address on the domain, in full form. This is a computed attribute.
|
|
77
77
|
:param pulumi.Input[str] alias_name: The name part (the part before the @) of the source email address on the domain
|
|
78
|
-
:param pulumi.Input[str] destination_email: The destination email address
|
|
79
|
-
:param pulumi.Input[str] domain: The domain to add the email forwarding rule to
|
|
78
|
+
:param pulumi.Input[str] destination_email: The destination email address
|
|
79
|
+
:param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
|
|
80
80
|
"""
|
|
81
81
|
if alias_email is not None:
|
|
82
82
|
pulumi.set(__self__, "alias_email", alias_email)
|
|
@@ -91,7 +91,7 @@ class _EmailForwardState:
|
|
|
91
91
|
@pulumi.getter(name="aliasEmail")
|
|
92
92
|
def alias_email(self) -> Optional[pulumi.Input[str]]:
|
|
93
93
|
"""
|
|
94
|
-
The source email address on the domain
|
|
94
|
+
The source email address on the domain, in full form. This is a computed attribute.
|
|
95
95
|
"""
|
|
96
96
|
return pulumi.get(self, "alias_email")
|
|
97
97
|
|
|
@@ -115,7 +115,7 @@ class _EmailForwardState:
|
|
|
115
115
|
@pulumi.getter(name="destinationEmail")
|
|
116
116
|
def destination_email(self) -> Optional[pulumi.Input[str]]:
|
|
117
117
|
"""
|
|
118
|
-
The destination email address
|
|
118
|
+
The destination email address
|
|
119
119
|
"""
|
|
120
120
|
return pulumi.get(self, "destination_email")
|
|
121
121
|
|
|
@@ -127,7 +127,7 @@ class _EmailForwardState:
|
|
|
127
127
|
@pulumi.getter
|
|
128
128
|
def domain(self) -> Optional[pulumi.Input[str]]:
|
|
129
129
|
"""
|
|
130
|
-
The domain to add the email forwarding rule to
|
|
130
|
+
The domain name to add the email forwarding rule to
|
|
131
131
|
"""
|
|
132
132
|
return pulumi.get(self, "domain")
|
|
133
133
|
|
|
@@ -150,24 +150,34 @@ class EmailForward(pulumi.CustomResource):
|
|
|
150
150
|
|
|
151
151
|
## Example Usage
|
|
152
152
|
|
|
153
|
-
<!--Start PulumiCodeChooser -->
|
|
154
153
|
```python
|
|
155
154
|
import pulumi
|
|
156
155
|
import pulumi_dnsimple as dnsimple
|
|
157
156
|
|
|
158
157
|
# Add an email forwarding rule to the domain
|
|
159
158
|
foobar = dnsimple.EmailForward("foobar",
|
|
159
|
+
domain=dnsimple_domain["name"],
|
|
160
160
|
alias_name="sales",
|
|
161
|
-
destination_email="
|
|
162
|
-
|
|
161
|
+
destination_email="alice.appleseed@example.com")
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## Import
|
|
165
|
+
|
|
166
|
+
DNSimple resources can be imported using the domain name and numeric email forward ID.
|
|
167
|
+
|
|
168
|
+
**Importing email forward for example.com with email forward ID 1234**
|
|
169
|
+
|
|
170
|
+
bash
|
|
171
|
+
|
|
172
|
+
```sh
|
|
173
|
+
$ pulumi import dnsimple:index/emailForward:EmailForward resource_name example.com_1234
|
|
163
174
|
```
|
|
164
|
-
<!--End PulumiCodeChooser -->
|
|
165
175
|
|
|
166
176
|
:param str resource_name: The name of the resource.
|
|
167
177
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
168
178
|
:param pulumi.Input[str] alias_name: The name part (the part before the @) of the source email address on the domain
|
|
169
|
-
:param pulumi.Input[str] destination_email: The destination email address
|
|
170
|
-
:param pulumi.Input[str] domain: The domain to add the email forwarding rule to
|
|
179
|
+
:param pulumi.Input[str] destination_email: The destination email address
|
|
180
|
+
:param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
|
|
171
181
|
"""
|
|
172
182
|
...
|
|
173
183
|
@overload
|
|
@@ -180,18 +190,28 @@ class EmailForward(pulumi.CustomResource):
|
|
|
180
190
|
|
|
181
191
|
## Example Usage
|
|
182
192
|
|
|
183
|
-
<!--Start PulumiCodeChooser -->
|
|
184
193
|
```python
|
|
185
194
|
import pulumi
|
|
186
195
|
import pulumi_dnsimple as dnsimple
|
|
187
196
|
|
|
188
197
|
# Add an email forwarding rule to the domain
|
|
189
198
|
foobar = dnsimple.EmailForward("foobar",
|
|
199
|
+
domain=dnsimple_domain["name"],
|
|
190
200
|
alias_name="sales",
|
|
191
|
-
destination_email="
|
|
192
|
-
|
|
201
|
+
destination_email="alice.appleseed@example.com")
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
## Import
|
|
205
|
+
|
|
206
|
+
DNSimple resources can be imported using the domain name and numeric email forward ID.
|
|
207
|
+
|
|
208
|
+
**Importing email forward for example.com with email forward ID 1234**
|
|
209
|
+
|
|
210
|
+
bash
|
|
211
|
+
|
|
212
|
+
```sh
|
|
213
|
+
$ pulumi import dnsimple:index/emailForward:EmailForward resource_name example.com_1234
|
|
193
214
|
```
|
|
194
|
-
<!--End PulumiCodeChooser -->
|
|
195
215
|
|
|
196
216
|
:param str resource_name: The name of the resource.
|
|
197
217
|
:param EmailForwardArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -251,10 +271,10 @@ class EmailForward(pulumi.CustomResource):
|
|
|
251
271
|
:param str resource_name: The unique name of the resulting resource.
|
|
252
272
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
253
273
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
254
|
-
:param pulumi.Input[str] alias_email: The source email address on the domain
|
|
274
|
+
:param pulumi.Input[str] alias_email: The source email address on the domain, in full form. This is a computed attribute.
|
|
255
275
|
:param pulumi.Input[str] alias_name: The name part (the part before the @) of the source email address on the domain
|
|
256
|
-
:param pulumi.Input[str] destination_email: The destination email address
|
|
257
|
-
:param pulumi.Input[str] domain: The domain to add the email forwarding rule to
|
|
276
|
+
:param pulumi.Input[str] destination_email: The destination email address
|
|
277
|
+
:param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
|
|
258
278
|
"""
|
|
259
279
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
260
280
|
|
|
@@ -270,7 +290,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
270
290
|
@pulumi.getter(name="aliasEmail")
|
|
271
291
|
def alias_email(self) -> pulumi.Output[str]:
|
|
272
292
|
"""
|
|
273
|
-
The source email address on the domain
|
|
293
|
+
The source email address on the domain, in full form. This is a computed attribute.
|
|
274
294
|
"""
|
|
275
295
|
return pulumi.get(self, "alias_email")
|
|
276
296
|
|
|
@@ -286,7 +306,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
286
306
|
@pulumi.getter(name="destinationEmail")
|
|
287
307
|
def destination_email(self) -> pulumi.Output[str]:
|
|
288
308
|
"""
|
|
289
|
-
The destination email address
|
|
309
|
+
The destination email address
|
|
290
310
|
"""
|
|
291
311
|
return pulumi.get(self, "destination_email")
|
|
292
312
|
|
|
@@ -294,7 +314,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
294
314
|
@pulumi.getter
|
|
295
315
|
def domain(self) -> pulumi.Output[str]:
|
|
296
316
|
"""
|
|
297
|
-
The domain to add the email forwarding rule to
|
|
317
|
+
The domain name to add the email forwarding rule to
|
|
298
318
|
"""
|
|
299
319
|
return pulumi.get(self, "domain")
|
|
300
320
|
|
|
@@ -25,8 +25,8 @@ class GetCertificateResult:
|
|
|
25
25
|
if certificate_chains and not isinstance(certificate_chains, list):
|
|
26
26
|
raise TypeError("Expected argument 'certificate_chains' to be a list")
|
|
27
27
|
pulumi.set(__self__, "certificate_chains", certificate_chains)
|
|
28
|
-
if certificate_id and not isinstance(certificate_id,
|
|
29
|
-
raise TypeError("Expected argument 'certificate_id' to be a
|
|
28
|
+
if certificate_id and not isinstance(certificate_id, int):
|
|
29
|
+
raise TypeError("Expected argument 'certificate_id' to be a int")
|
|
30
30
|
pulumi.set(__self__, "certificate_id", certificate_id)
|
|
31
31
|
if domain and not isinstance(domain, str):
|
|
32
32
|
raise TypeError("Expected argument 'domain' to be a str")
|
|
@@ -54,7 +54,7 @@ class GetCertificateResult:
|
|
|
54
54
|
|
|
55
55
|
@property
|
|
56
56
|
@pulumi.getter(name="certificateId")
|
|
57
|
-
def certificate_id(self) ->
|
|
57
|
+
def certificate_id(self) -> int:
|
|
58
58
|
return pulumi.get(self, "certificate_id")
|
|
59
59
|
|
|
60
60
|
@property
|
|
@@ -65,9 +65,6 @@ class GetCertificateResult:
|
|
|
65
65
|
@property
|
|
66
66
|
@pulumi.getter
|
|
67
67
|
def id(self) -> str:
|
|
68
|
-
"""
|
|
69
|
-
The provider-assigned unique ID for this managed resource.
|
|
70
|
-
"""
|
|
71
68
|
return pulumi.get(self, "id")
|
|
72
69
|
|
|
73
70
|
@property
|
|
@@ -110,7 +107,7 @@ class AwaitableGetCertificateResult(GetCertificateResult):
|
|
|
110
107
|
server_certificate=self.server_certificate)
|
|
111
108
|
|
|
112
109
|
|
|
113
|
-
def get_certificate(certificate_id: Optional[
|
|
110
|
+
def get_certificate(certificate_id: Optional[int] = None,
|
|
114
111
|
domain: Optional[str] = None,
|
|
115
112
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCertificateResult:
|
|
116
113
|
"""
|
|
@@ -118,18 +115,16 @@ def get_certificate(certificate_id: Optional[str] = None,
|
|
|
118
115
|
|
|
119
116
|
## Example Usage
|
|
120
117
|
|
|
121
|
-
<!--Start PulumiCodeChooser -->
|
|
122
118
|
```python
|
|
123
119
|
import pulumi
|
|
124
120
|
import pulumi_dnsimple as dnsimple
|
|
125
121
|
|
|
126
|
-
foobar = dnsimple.get_certificate(
|
|
127
|
-
|
|
122
|
+
foobar = dnsimple.get_certificate(domain=dnsimple_domain,
|
|
123
|
+
certificate_id=dnsimple_certificate_id)
|
|
128
124
|
```
|
|
129
|
-
<!--End PulumiCodeChooser -->
|
|
130
125
|
|
|
131
126
|
|
|
132
|
-
:param
|
|
127
|
+
:param int certificate_id: The ID of the SSL Certificate
|
|
133
128
|
:param str domain: The domain of the SSL Certificate
|
|
134
129
|
"""
|
|
135
130
|
__args__ = dict()
|
|
@@ -149,7 +144,7 @@ def get_certificate(certificate_id: Optional[str] = None,
|
|
|
149
144
|
|
|
150
145
|
|
|
151
146
|
@_utilities.lift_output_func(get_certificate)
|
|
152
|
-
def get_certificate_output(certificate_id: Optional[pulumi.Input[
|
|
147
|
+
def get_certificate_output(certificate_id: Optional[pulumi.Input[int]] = None,
|
|
153
148
|
domain: Optional[pulumi.Input[str]] = None,
|
|
154
149
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCertificateResult]:
|
|
155
150
|
"""
|
|
@@ -157,18 +152,16 @@ def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
|
|
|
157
152
|
|
|
158
153
|
## Example Usage
|
|
159
154
|
|
|
160
|
-
<!--Start PulumiCodeChooser -->
|
|
161
155
|
```python
|
|
162
156
|
import pulumi
|
|
163
157
|
import pulumi_dnsimple as dnsimple
|
|
164
158
|
|
|
165
|
-
foobar = dnsimple.get_certificate(
|
|
166
|
-
|
|
159
|
+
foobar = dnsimple.get_certificate(domain=dnsimple_domain,
|
|
160
|
+
certificate_id=dnsimple_certificate_id)
|
|
167
161
|
```
|
|
168
|
-
<!--End PulumiCodeChooser -->
|
|
169
162
|
|
|
170
163
|
|
|
171
|
-
:param
|
|
164
|
+
:param int certificate_id: The ID of the SSL Certificate
|
|
172
165
|
:param str domain: The domain of the SSL Certificate
|
|
173
166
|
"""
|
|
174
167
|
...
|