pulumi-dnsimple 3.5.0a1721194262__py3-none-any.whl → 3.5.0a1721425071__py3-none-any.whl
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/__init__.py +1 -9
- pulumi_dnsimple/_enums.py +31 -0
- pulumi_dnsimple/_utilities.py +3 -4
- pulumi_dnsimple/domain.py +72 -2
- pulumi_dnsimple/email_forward.py +46 -22
- pulumi_dnsimple/get_certificate.py +7 -10
- pulumi_dnsimple/get_zone.py +2 -4
- pulumi_dnsimple/lets_encrypt_certificate.py +106 -90
- pulumi_dnsimple/provider.py +24 -26
- pulumi_dnsimple/pulumi-plugin.json +1 -1
- pulumi_dnsimple/zone_record.py +51 -49
- {pulumi_dnsimple-3.5.0a1721194262.dist-info → pulumi_dnsimple-3.5.0a1721425071.dist-info}/METADATA +1 -1
- pulumi_dnsimple-3.5.0a1721425071.dist-info/RECORD +19 -0
- {pulumi_dnsimple-3.5.0a1721194262.dist-info → pulumi_dnsimple-3.5.0a1721425071.dist-info}/WHEEL +1 -1
- pulumi_dnsimple/record.py +0 -353
- pulumi_dnsimple-3.5.0a1721194262.dist-info/RECORD +0 -19
- {pulumi_dnsimple-3.5.0a1721194262.dist-info → pulumi_dnsimple-3.5.0a1721425071.dist-info}/top_level.txt +0 -0
pulumi_dnsimple/__init__.py
CHANGED
|
@@ -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"
|
pulumi_dnsimple/_utilities.py
CHANGED
|
@@ -100,10 +100,6 @@ def _get_semver_version():
|
|
|
100
100
|
_version = _get_semver_version()
|
|
101
101
|
_version_str = str(_version)
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
def get_version():
|
|
105
|
-
return _version_str
|
|
106
|
-
|
|
107
103
|
def get_resource_opts_defaults() -> pulumi.ResourceOptions:
|
|
108
104
|
return pulumi.ResourceOptions(
|
|
109
105
|
version=get_version(),
|
|
@@ -324,3 +320,6 @@ def deprecated(message: str) -> typing.Callable[[C], C]:
|
|
|
324
320
|
|
|
325
321
|
def get_plugin_download_url():
|
|
326
322
|
return None
|
|
323
|
+
|
|
324
|
+
def get_version():
|
|
325
|
+
return _version_str
|
pulumi_dnsimple/domain.py
CHANGED
|
@@ -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
|
|
@@ -154,13 +186,17 @@ class Domain(pulumi.CustomResource):
|
|
|
154
186
|
|
|
155
187
|
DNSimple domains can be imported using their numeric record ID.
|
|
156
188
|
|
|
189
|
+
bash
|
|
190
|
+
|
|
157
191
|
```sh
|
|
158
192
|
$ pulumi import dnsimple:index/domain:Domain resource_name 5678
|
|
159
193
|
```
|
|
160
194
|
|
|
161
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.
|
|
162
196
|
|
|
163
|
-
|
|
197
|
+
bash
|
|
198
|
+
|
|
199
|
+
curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
|
|
164
200
|
|
|
165
201
|
{
|
|
166
202
|
|
|
@@ -213,6 +249,8 @@ class Domain(pulumi.CustomResource):
|
|
|
213
249
|
:param str resource_name: The name of the resource.
|
|
214
250
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
215
251
|
:param pulumi.Input[str] name: The domain name to be created
|
|
252
|
+
|
|
253
|
+
# Attributes Reference
|
|
216
254
|
"""
|
|
217
255
|
...
|
|
218
256
|
@overload
|
|
@@ -237,13 +275,17 @@ class Domain(pulumi.CustomResource):
|
|
|
237
275
|
|
|
238
276
|
DNSimple domains can be imported using their numeric record ID.
|
|
239
277
|
|
|
278
|
+
bash
|
|
279
|
+
|
|
240
280
|
```sh
|
|
241
281
|
$ pulumi import dnsimple:index/domain:Domain resource_name 5678
|
|
242
282
|
```
|
|
243
283
|
|
|
244
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.
|
|
245
285
|
|
|
246
|
-
|
|
286
|
+
bash
|
|
287
|
+
|
|
288
|
+
curl -u 'EMAIL:PASSWORD' https://api.dnsimple.com/v2/1234/domains?name_like=example.com | jq
|
|
247
289
|
|
|
248
290
|
{
|
|
249
291
|
|
|
@@ -351,7 +393,15 @@ class Domain(pulumi.CustomResource):
|
|
|
351
393
|
:param str resource_name: The unique name of the resulting resource.
|
|
352
394
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
353
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.
|
|
354
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.
|
|
355
405
|
"""
|
|
356
406
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
357
407
|
|
|
@@ -369,11 +419,17 @@ class Domain(pulumi.CustomResource):
|
|
|
369
419
|
@property
|
|
370
420
|
@pulumi.getter(name="accountId")
|
|
371
421
|
def account_id(self) -> pulumi.Output[int]:
|
|
422
|
+
"""
|
|
423
|
+
The account ID for the domain.
|
|
424
|
+
"""
|
|
372
425
|
return pulumi.get(self, "account_id")
|
|
373
426
|
|
|
374
427
|
@property
|
|
375
428
|
@pulumi.getter(name="autoRenew")
|
|
376
429
|
def auto_renew(self) -> pulumi.Output[bool]:
|
|
430
|
+
"""
|
|
431
|
+
Whether the domain is set to auto-renew.
|
|
432
|
+
"""
|
|
377
433
|
return pulumi.get(self, "auto_renew")
|
|
378
434
|
|
|
379
435
|
@property
|
|
@@ -381,26 +437,40 @@ class Domain(pulumi.CustomResource):
|
|
|
381
437
|
def name(self) -> pulumi.Output[str]:
|
|
382
438
|
"""
|
|
383
439
|
The domain name to be created
|
|
440
|
+
|
|
441
|
+
# Attributes Reference
|
|
384
442
|
"""
|
|
385
443
|
return pulumi.get(self, "name")
|
|
386
444
|
|
|
387
445
|
@property
|
|
388
446
|
@pulumi.getter(name="privateWhois")
|
|
389
447
|
def private_whois(self) -> pulumi.Output[bool]:
|
|
448
|
+
"""
|
|
449
|
+
Whether the domain has WhoIs privacy enabled.
|
|
450
|
+
"""
|
|
390
451
|
return pulumi.get(self, "private_whois")
|
|
391
452
|
|
|
392
453
|
@property
|
|
393
454
|
@pulumi.getter(name="registrantId")
|
|
394
455
|
def registrant_id(self) -> pulumi.Output[int]:
|
|
456
|
+
"""
|
|
457
|
+
The ID of the registrant (contact) for the domain.
|
|
458
|
+
"""
|
|
395
459
|
return pulumi.get(self, "registrant_id")
|
|
396
460
|
|
|
397
461
|
@property
|
|
398
462
|
@pulumi.getter
|
|
399
463
|
def state(self) -> pulumi.Output[str]:
|
|
464
|
+
"""
|
|
465
|
+
The state of the domain.
|
|
466
|
+
"""
|
|
400
467
|
return pulumi.get(self, "state")
|
|
401
468
|
|
|
402
469
|
@property
|
|
403
470
|
@pulumi.getter(name="unicodeName")
|
|
404
471
|
def unicode_name(self) -> pulumi.Output[str]:
|
|
472
|
+
"""
|
|
473
|
+
The domain name in Unicode format.
|
|
474
|
+
"""
|
|
405
475
|
return pulumi.get(self, "unicode_name")
|
|
406
476
|
|
pulumi_dnsimple/email_forward.py
CHANGED
|
@@ -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
|
|
|
@@ -156,16 +156,28 @@ class EmailForward(pulumi.CustomResource):
|
|
|
156
156
|
|
|
157
157
|
# Add an email forwarding rule to the domain
|
|
158
158
|
foobar = dnsimple.EmailForward("foobar",
|
|
159
|
-
domain=dnsimple_domain,
|
|
159
|
+
domain=dnsimple_domain["name"],
|
|
160
160
|
alias_name="sales",
|
|
161
|
-
destination_email="
|
|
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
|
|
162
174
|
```
|
|
163
175
|
|
|
164
176
|
:param str resource_name: The name of the resource.
|
|
165
177
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
166
178
|
:param pulumi.Input[str] alias_name: The name part (the part before the @) of the source email address on the domain
|
|
167
|
-
:param pulumi.Input[str] destination_email: The destination email address
|
|
168
|
-
: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
|
|
169
181
|
"""
|
|
170
182
|
...
|
|
171
183
|
@overload
|
|
@@ -184,9 +196,21 @@ class EmailForward(pulumi.CustomResource):
|
|
|
184
196
|
|
|
185
197
|
# Add an email forwarding rule to the domain
|
|
186
198
|
foobar = dnsimple.EmailForward("foobar",
|
|
187
|
-
domain=dnsimple_domain,
|
|
199
|
+
domain=dnsimple_domain["name"],
|
|
188
200
|
alias_name="sales",
|
|
189
|
-
destination_email="
|
|
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
|
|
190
214
|
```
|
|
191
215
|
|
|
192
216
|
:param str resource_name: The name of the resource.
|
|
@@ -247,10 +271,10 @@ class EmailForward(pulumi.CustomResource):
|
|
|
247
271
|
:param str resource_name: The unique name of the resulting resource.
|
|
248
272
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
249
273
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
250
|
-
: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.
|
|
251
275
|
:param pulumi.Input[str] alias_name: The name part (the part before the @) of the source email address on the domain
|
|
252
|
-
:param pulumi.Input[str] destination_email: The destination email address
|
|
253
|
-
: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
|
|
254
278
|
"""
|
|
255
279
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
256
280
|
|
|
@@ -266,7 +290,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
266
290
|
@pulumi.getter(name="aliasEmail")
|
|
267
291
|
def alias_email(self) -> pulumi.Output[str]:
|
|
268
292
|
"""
|
|
269
|
-
The source email address on the domain
|
|
293
|
+
The source email address on the domain, in full form. This is a computed attribute.
|
|
270
294
|
"""
|
|
271
295
|
return pulumi.get(self, "alias_email")
|
|
272
296
|
|
|
@@ -282,7 +306,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
282
306
|
@pulumi.getter(name="destinationEmail")
|
|
283
307
|
def destination_email(self) -> pulumi.Output[str]:
|
|
284
308
|
"""
|
|
285
|
-
The destination email address
|
|
309
|
+
The destination email address
|
|
286
310
|
"""
|
|
287
311
|
return pulumi.get(self, "destination_email")
|
|
288
312
|
|
|
@@ -290,7 +314,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
290
314
|
@pulumi.getter
|
|
291
315
|
def domain(self) -> pulumi.Output[str]:
|
|
292
316
|
"""
|
|
293
|
-
The domain to add the email forwarding rule to
|
|
317
|
+
The domain name to add the email forwarding rule to
|
|
294
318
|
"""
|
|
295
319
|
return pulumi.get(self, "domain")
|
|
296
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
|
"""
|
|
@@ -127,7 +124,7 @@ def get_certificate(certificate_id: Optional[str] = None,
|
|
|
127
124
|
```
|
|
128
125
|
|
|
129
126
|
|
|
130
|
-
:param
|
|
127
|
+
:param int certificate_id: The ID of the SSL Certificate
|
|
131
128
|
:param str domain: The domain of the SSL Certificate
|
|
132
129
|
"""
|
|
133
130
|
__args__ = dict()
|
|
@@ -147,7 +144,7 @@ def get_certificate(certificate_id: Optional[str] = None,
|
|
|
147
144
|
|
|
148
145
|
|
|
149
146
|
@_utilities.lift_output_func(get_certificate)
|
|
150
|
-
def get_certificate_output(certificate_id: Optional[pulumi.Input[
|
|
147
|
+
def get_certificate_output(certificate_id: Optional[pulumi.Input[int]] = None,
|
|
151
148
|
domain: Optional[pulumi.Input[str]] = None,
|
|
152
149
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCertificateResult]:
|
|
153
150
|
"""
|
|
@@ -164,7 +161,7 @@ def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
|
|
|
164
161
|
```
|
|
165
162
|
|
|
166
163
|
|
|
167
|
-
:param
|
|
164
|
+
:param int certificate_id: The ID of the SSL Certificate
|
|
168
165
|
:param str domain: The domain of the SSL Certificate
|
|
169
166
|
"""
|
|
170
167
|
...
|
pulumi_dnsimple/get_zone.py
CHANGED
|
@@ -86,11 +86,10 @@ def get_zone(name: Optional[str] = None,
|
|
|
86
86
|
|
|
87
87
|
* `name` - (Required) The name of the zone
|
|
88
88
|
|
|
89
|
-
The following attributes are exported:
|
|
89
|
+
The following additional attributes are exported:
|
|
90
90
|
|
|
91
91
|
* `id` - The zone ID
|
|
92
92
|
* `account_id` - The account ID
|
|
93
|
-
* `name` - The name of the zone
|
|
94
93
|
* `reverse` - True for a reverse zone, false for a forward zone.
|
|
95
94
|
"""
|
|
96
95
|
__args__ = dict()
|
|
@@ -124,11 +123,10 @@ def get_zone_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
124
123
|
|
|
125
124
|
* `name` - (Required) The name of the zone
|
|
126
125
|
|
|
127
|
-
The following attributes are exported:
|
|
126
|
+
The following additional attributes are exported:
|
|
128
127
|
|
|
129
128
|
* `id` - The zone ID
|
|
130
129
|
* `account_id` - The account ID
|
|
131
|
-
* `name` - The name of the zone
|
|
132
130
|
* `reverse` - True for a reverse zone, false for a forward zone.
|
|
133
131
|
"""
|
|
134
132
|
...
|