pulumi-dnsimple 3.5.0a1709211875__py3-none-any.whl → 4.3.0a1736832784__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 +43 -3
- pulumi_dnsimple/_enums.py +31 -0
- pulumi_dnsimple/_inputs.py +378 -0
- pulumi_dnsimple/_utilities.py +41 -5
- pulumi_dnsimple/config/__init__.pyi +5 -0
- pulumi_dnsimple/config/vars.py +5 -0
- pulumi_dnsimple/contact.py +1204 -0
- pulumi_dnsimple/domain.py +179 -104
- pulumi_dnsimple/domain_delegation.py +263 -0
- pulumi_dnsimple/ds_record.py +601 -0
- pulumi_dnsimple/email_forward.py +51 -24
- pulumi_dnsimple/get_certificate.py +50 -22
- pulumi_dnsimple/get_registrant_change_check.py +172 -0
- pulumi_dnsimple/get_zone.py +21 -9
- pulumi_dnsimple/lets_encrypt_certificate.py +171 -101
- pulumi_dnsimple/outputs.py +321 -0
- pulumi_dnsimple/provider.py +29 -26
- pulumi_dnsimple/pulumi-plugin.json +2 -1
- pulumi_dnsimple/registered_domain.py +810 -0
- pulumi_dnsimple/zone.py +432 -0
- pulumi_dnsimple/zone_record.py +176 -74
- {pulumi_dnsimple-3.5.0a1709211875.dist-info → pulumi_dnsimple-4.3.0a1736832784.dist-info}/METADATA +9 -8
- pulumi_dnsimple-4.3.0a1736832784.dist-info/RECORD +27 -0
- {pulumi_dnsimple-3.5.0a1709211875.dist-info → pulumi_dnsimple-4.3.0a1736832784.dist-info}/WHEEL +1 -1
- pulumi_dnsimple/record.py +0 -353
- pulumi_dnsimple-3.5.0a1709211875.dist-info/RECORD +0 -19
- {pulumi_dnsimple-3.5.0a1709211875.dist-info → pulumi_dnsimple-4.3.0a1736832784.dist-info}/top_level.txt +0 -0
pulumi_dnsimple/email_forward.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__ = ['EmailForwardArgs', 'EmailForward']
|
|
@@ -20,8 +25,8 @@ class EmailForwardArgs:
|
|
|
20
25
|
"""
|
|
21
26
|
The set of arguments for constructing a EmailForward resource.
|
|
22
27
|
: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
|
|
28
|
+
:param pulumi.Input[str] destination_email: The destination email address
|
|
29
|
+
:param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
|
|
25
30
|
"""
|
|
26
31
|
pulumi.set(__self__, "alias_name", alias_name)
|
|
27
32
|
pulumi.set(__self__, "destination_email", destination_email)
|
|
@@ -43,7 +48,7 @@ class EmailForwardArgs:
|
|
|
43
48
|
@pulumi.getter(name="destinationEmail")
|
|
44
49
|
def destination_email(self) -> pulumi.Input[str]:
|
|
45
50
|
"""
|
|
46
|
-
The destination email address
|
|
51
|
+
The destination email address
|
|
47
52
|
"""
|
|
48
53
|
return pulumi.get(self, "destination_email")
|
|
49
54
|
|
|
@@ -55,7 +60,7 @@ class EmailForwardArgs:
|
|
|
55
60
|
@pulumi.getter
|
|
56
61
|
def domain(self) -> pulumi.Input[str]:
|
|
57
62
|
"""
|
|
58
|
-
The domain to add the email forwarding rule to
|
|
63
|
+
The domain name to add the email forwarding rule to
|
|
59
64
|
"""
|
|
60
65
|
return pulumi.get(self, "domain")
|
|
61
66
|
|
|
@@ -73,10 +78,10 @@ class _EmailForwardState:
|
|
|
73
78
|
domain: Optional[pulumi.Input[str]] = None):
|
|
74
79
|
"""
|
|
75
80
|
Input properties used for looking up and filtering EmailForward resources.
|
|
76
|
-
:param pulumi.Input[str] alias_email: The source email address on the domain
|
|
81
|
+
:param pulumi.Input[str] alias_email: The source email address on the domain, in full form. This is a computed attribute.
|
|
77
82
|
: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
|
|
83
|
+
:param pulumi.Input[str] destination_email: The destination email address
|
|
84
|
+
:param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
|
|
80
85
|
"""
|
|
81
86
|
if alias_email is not None:
|
|
82
87
|
pulumi.set(__self__, "alias_email", alias_email)
|
|
@@ -91,7 +96,7 @@ class _EmailForwardState:
|
|
|
91
96
|
@pulumi.getter(name="aliasEmail")
|
|
92
97
|
def alias_email(self) -> Optional[pulumi.Input[str]]:
|
|
93
98
|
"""
|
|
94
|
-
The source email address on the domain
|
|
99
|
+
The source email address on the domain, in full form. This is a computed attribute.
|
|
95
100
|
"""
|
|
96
101
|
return pulumi.get(self, "alias_email")
|
|
97
102
|
|
|
@@ -115,7 +120,7 @@ class _EmailForwardState:
|
|
|
115
120
|
@pulumi.getter(name="destinationEmail")
|
|
116
121
|
def destination_email(self) -> Optional[pulumi.Input[str]]:
|
|
117
122
|
"""
|
|
118
|
-
The destination email address
|
|
123
|
+
The destination email address
|
|
119
124
|
"""
|
|
120
125
|
return pulumi.get(self, "destination_email")
|
|
121
126
|
|
|
@@ -127,7 +132,7 @@ class _EmailForwardState:
|
|
|
127
132
|
@pulumi.getter
|
|
128
133
|
def domain(self) -> Optional[pulumi.Input[str]]:
|
|
129
134
|
"""
|
|
130
|
-
The domain to add the email forwarding rule to
|
|
135
|
+
The domain name to add the email forwarding rule to
|
|
131
136
|
"""
|
|
132
137
|
return pulumi.get(self, "domain")
|
|
133
138
|
|
|
@@ -154,18 +159,29 @@ class EmailForward(pulumi.CustomResource):
|
|
|
154
159
|
import pulumi
|
|
155
160
|
import pulumi_dnsimple as dnsimple
|
|
156
161
|
|
|
157
|
-
# Add an email forwarding rule to the domain
|
|
158
162
|
foobar = dnsimple.EmailForward("foobar",
|
|
163
|
+
domain=dnsimple_domain["name"],
|
|
159
164
|
alias_name="sales",
|
|
160
|
-
destination_email="
|
|
161
|
-
|
|
165
|
+
destination_email="alice.appleseed@example.com")
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Import
|
|
169
|
+
|
|
170
|
+
DNSimple resources can be imported using the domain name and numeric email forward ID.
|
|
171
|
+
|
|
172
|
+
**Importing email forward for example.com with email forward ID 1234**
|
|
173
|
+
|
|
174
|
+
bash
|
|
175
|
+
|
|
176
|
+
```sh
|
|
177
|
+
$ pulumi import dnsimple:index/emailForward:EmailForward resource_name example.com_1234
|
|
162
178
|
```
|
|
163
179
|
|
|
164
180
|
:param str resource_name: The name of the resource.
|
|
165
181
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
166
182
|
: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
|
|
183
|
+
:param pulumi.Input[str] destination_email: The destination email address
|
|
184
|
+
:param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
|
|
169
185
|
"""
|
|
170
186
|
...
|
|
171
187
|
@overload
|
|
@@ -182,11 +198,22 @@ class EmailForward(pulumi.CustomResource):
|
|
|
182
198
|
import pulumi
|
|
183
199
|
import pulumi_dnsimple as dnsimple
|
|
184
200
|
|
|
185
|
-
# Add an email forwarding rule to the domain
|
|
186
201
|
foobar = dnsimple.EmailForward("foobar",
|
|
202
|
+
domain=dnsimple_domain["name"],
|
|
187
203
|
alias_name="sales",
|
|
188
|
-
destination_email="
|
|
189
|
-
|
|
204
|
+
destination_email="alice.appleseed@example.com")
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
## Import
|
|
208
|
+
|
|
209
|
+
DNSimple resources can be imported using the domain name and numeric email forward ID.
|
|
210
|
+
|
|
211
|
+
**Importing email forward for example.com with email forward ID 1234**
|
|
212
|
+
|
|
213
|
+
bash
|
|
214
|
+
|
|
215
|
+
```sh
|
|
216
|
+
$ pulumi import dnsimple:index/emailForward:EmailForward resource_name example.com_1234
|
|
190
217
|
```
|
|
191
218
|
|
|
192
219
|
:param str resource_name: The name of the resource.
|
|
@@ -247,10 +274,10 @@ class EmailForward(pulumi.CustomResource):
|
|
|
247
274
|
:param str resource_name: The unique name of the resulting resource.
|
|
248
275
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
249
276
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
250
|
-
:param pulumi.Input[str] alias_email: The source email address on the domain
|
|
277
|
+
:param pulumi.Input[str] alias_email: The source email address on the domain, in full form. This is a computed attribute.
|
|
251
278
|
: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
|
|
279
|
+
:param pulumi.Input[str] destination_email: The destination email address
|
|
280
|
+
:param pulumi.Input[str] domain: The domain name to add the email forwarding rule to
|
|
254
281
|
"""
|
|
255
282
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
256
283
|
|
|
@@ -266,7 +293,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
266
293
|
@pulumi.getter(name="aliasEmail")
|
|
267
294
|
def alias_email(self) -> pulumi.Output[str]:
|
|
268
295
|
"""
|
|
269
|
-
The source email address on the domain
|
|
296
|
+
The source email address on the domain, in full form. This is a computed attribute.
|
|
270
297
|
"""
|
|
271
298
|
return pulumi.get(self, "alias_email")
|
|
272
299
|
|
|
@@ -282,7 +309,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
282
309
|
@pulumi.getter(name="destinationEmail")
|
|
283
310
|
def destination_email(self) -> pulumi.Output[str]:
|
|
284
311
|
"""
|
|
285
|
-
The destination email address
|
|
312
|
+
The destination email address
|
|
286
313
|
"""
|
|
287
314
|
return pulumi.get(self, "destination_email")
|
|
288
315
|
|
|
@@ -290,7 +317,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
290
317
|
@pulumi.getter
|
|
291
318
|
def domain(self) -> pulumi.Output[str]:
|
|
292
319
|
"""
|
|
293
|
-
The domain to add the email forwarding rule to
|
|
320
|
+
The domain name to add the email forwarding rule to
|
|
294
321
|
"""
|
|
295
322
|
return pulumi.get(self, "domain")
|
|
296
323
|
|
|
@@ -4,10 +4,17 @@
|
|
|
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
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
11
18
|
|
|
12
19
|
__all__ = [
|
|
13
20
|
'GetCertificateResult',
|
|
@@ -21,12 +28,12 @@ class GetCertificateResult:
|
|
|
21
28
|
"""
|
|
22
29
|
A collection of values returned by getCertificate.
|
|
23
30
|
"""
|
|
24
|
-
def __init__(__self__, certificate_chains=None, certificate_id=None, domain=None, id=None, private_key=None, root_certificate=None, server_certificate=None):
|
|
31
|
+
def __init__(__self__, certificate_chains=None, certificate_id=None, domain=None, id=None, private_key=None, root_certificate=None, server_certificate=None, timeouts=None):
|
|
25
32
|
if certificate_chains and not isinstance(certificate_chains, list):
|
|
26
33
|
raise TypeError("Expected argument 'certificate_chains' to be a list")
|
|
27
34
|
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
|
|
35
|
+
if certificate_id and not isinstance(certificate_id, int):
|
|
36
|
+
raise TypeError("Expected argument 'certificate_id' to be a int")
|
|
30
37
|
pulumi.set(__self__, "certificate_id", certificate_id)
|
|
31
38
|
if domain and not isinstance(domain, str):
|
|
32
39
|
raise TypeError("Expected argument 'domain' to be a str")
|
|
@@ -43,6 +50,9 @@ class GetCertificateResult:
|
|
|
43
50
|
if server_certificate and not isinstance(server_certificate, str):
|
|
44
51
|
raise TypeError("Expected argument 'server_certificate' to be a str")
|
|
45
52
|
pulumi.set(__self__, "server_certificate", server_certificate)
|
|
53
|
+
if timeouts and not isinstance(timeouts, dict):
|
|
54
|
+
raise TypeError("Expected argument 'timeouts' to be a dict")
|
|
55
|
+
pulumi.set(__self__, "timeouts", timeouts)
|
|
46
56
|
|
|
47
57
|
@property
|
|
48
58
|
@pulumi.getter(name="certificateChains")
|
|
@@ -54,7 +64,7 @@ class GetCertificateResult:
|
|
|
54
64
|
|
|
55
65
|
@property
|
|
56
66
|
@pulumi.getter(name="certificateId")
|
|
57
|
-
def certificate_id(self) ->
|
|
67
|
+
def certificate_id(self) -> int:
|
|
58
68
|
return pulumi.get(self, "certificate_id")
|
|
59
69
|
|
|
60
70
|
@property
|
|
@@ -65,9 +75,6 @@ class GetCertificateResult:
|
|
|
65
75
|
@property
|
|
66
76
|
@pulumi.getter
|
|
67
77
|
def id(self) -> str:
|
|
68
|
-
"""
|
|
69
|
-
The provider-assigned unique ID for this managed resource.
|
|
70
|
-
"""
|
|
71
78
|
return pulumi.get(self, "id")
|
|
72
79
|
|
|
73
80
|
@property
|
|
@@ -94,6 +101,11 @@ class GetCertificateResult:
|
|
|
94
101
|
"""
|
|
95
102
|
return pulumi.get(self, "server_certificate")
|
|
96
103
|
|
|
104
|
+
@property
|
|
105
|
+
@pulumi.getter
|
|
106
|
+
def timeouts(self) -> Optional['outputs.GetCertificateTimeoutsResult']:
|
|
107
|
+
return pulumi.get(self, "timeouts")
|
|
108
|
+
|
|
97
109
|
|
|
98
110
|
class AwaitableGetCertificateResult(GetCertificateResult):
|
|
99
111
|
# pylint: disable=using-constant-test
|
|
@@ -107,11 +119,13 @@ class AwaitableGetCertificateResult(GetCertificateResult):
|
|
|
107
119
|
id=self.id,
|
|
108
120
|
private_key=self.private_key,
|
|
109
121
|
root_certificate=self.root_certificate,
|
|
110
|
-
server_certificate=self.server_certificate
|
|
122
|
+
server_certificate=self.server_certificate,
|
|
123
|
+
timeouts=self.timeouts)
|
|
111
124
|
|
|
112
125
|
|
|
113
|
-
def get_certificate(certificate_id: Optional[
|
|
126
|
+
def get_certificate(certificate_id: Optional[int] = None,
|
|
114
127
|
domain: Optional[str] = None,
|
|
128
|
+
timeouts: Optional[Union['GetCertificateTimeoutsArgs', 'GetCertificateTimeoutsArgsDict']] = None,
|
|
115
129
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCertificateResult:
|
|
116
130
|
"""
|
|
117
131
|
Provides a DNSimple certificate data source.
|
|
@@ -122,17 +136,18 @@ def get_certificate(certificate_id: Optional[str] = None,
|
|
|
122
136
|
import pulumi
|
|
123
137
|
import pulumi_dnsimple as dnsimple
|
|
124
138
|
|
|
125
|
-
foobar = dnsimple.get_certificate(
|
|
126
|
-
|
|
139
|
+
foobar = dnsimple.get_certificate(domain=dnsimple_domain,
|
|
140
|
+
certificate_id=dnsimple_certificate_id)
|
|
127
141
|
```
|
|
128
142
|
|
|
129
143
|
|
|
130
|
-
:param
|
|
144
|
+
:param int certificate_id: The ID of the SSL Certificate
|
|
131
145
|
:param str domain: The domain of the SSL Certificate
|
|
132
146
|
"""
|
|
133
147
|
__args__ = dict()
|
|
134
148
|
__args__['certificateId'] = certificate_id
|
|
135
149
|
__args__['domain'] = domain
|
|
150
|
+
__args__['timeouts'] = timeouts
|
|
136
151
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
137
152
|
__ret__ = pulumi.runtime.invoke('dnsimple:index/getCertificate:getCertificate', __args__, opts=opts, typ=GetCertificateResult).value
|
|
138
153
|
|
|
@@ -143,13 +158,12 @@ def get_certificate(certificate_id: Optional[str] = None,
|
|
|
143
158
|
id=pulumi.get(__ret__, 'id'),
|
|
144
159
|
private_key=pulumi.get(__ret__, 'private_key'),
|
|
145
160
|
root_certificate=pulumi.get(__ret__, 'root_certificate'),
|
|
146
|
-
server_certificate=pulumi.get(__ret__, 'server_certificate')
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
@_utilities.lift_output_func(get_certificate)
|
|
150
|
-
def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
|
|
161
|
+
server_certificate=pulumi.get(__ret__, 'server_certificate'),
|
|
162
|
+
timeouts=pulumi.get(__ret__, 'timeouts'))
|
|
163
|
+
def get_certificate_output(certificate_id: Optional[pulumi.Input[int]] = None,
|
|
151
164
|
domain: Optional[pulumi.Input[str]] = None,
|
|
152
|
-
|
|
165
|
+
timeouts: Optional[pulumi.Input[Optional[Union['GetCertificateTimeoutsArgs', 'GetCertificateTimeoutsArgsDict']]]] = None,
|
|
166
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCertificateResult]:
|
|
153
167
|
"""
|
|
154
168
|
Provides a DNSimple certificate data source.
|
|
155
169
|
|
|
@@ -159,12 +173,26 @@ def get_certificate_output(certificate_id: Optional[pulumi.Input[str]] = None,
|
|
|
159
173
|
import pulumi
|
|
160
174
|
import pulumi_dnsimple as dnsimple
|
|
161
175
|
|
|
162
|
-
foobar = dnsimple.get_certificate(
|
|
163
|
-
|
|
176
|
+
foobar = dnsimple.get_certificate(domain=dnsimple_domain,
|
|
177
|
+
certificate_id=dnsimple_certificate_id)
|
|
164
178
|
```
|
|
165
179
|
|
|
166
180
|
|
|
167
|
-
:param
|
|
181
|
+
:param int certificate_id: The ID of the SSL Certificate
|
|
168
182
|
:param str domain: The domain of the SSL Certificate
|
|
169
183
|
"""
|
|
170
|
-
|
|
184
|
+
__args__ = dict()
|
|
185
|
+
__args__['certificateId'] = certificate_id
|
|
186
|
+
__args__['domain'] = domain
|
|
187
|
+
__args__['timeouts'] = timeouts
|
|
188
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
189
|
+
__ret__ = pulumi.runtime.invoke_output('dnsimple:index/getCertificate:getCertificate', __args__, opts=opts, typ=GetCertificateResult)
|
|
190
|
+
return __ret__.apply(lambda __response__: GetCertificateResult(
|
|
191
|
+
certificate_chains=pulumi.get(__response__, 'certificate_chains'),
|
|
192
|
+
certificate_id=pulumi.get(__response__, 'certificate_id'),
|
|
193
|
+
domain=pulumi.get(__response__, 'domain'),
|
|
194
|
+
id=pulumi.get(__response__, 'id'),
|
|
195
|
+
private_key=pulumi.get(__response__, 'private_key'),
|
|
196
|
+
root_certificate=pulumi.get(__response__, 'root_certificate'),
|
|
197
|
+
server_certificate=pulumi.get(__response__, 'server_certificate'),
|
|
198
|
+
timeouts=pulumi.get(__response__, 'timeouts')))
|
|
@@ -0,0 +1,172 @@
|
|
|
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
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
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
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetRegistrantChangeCheckResult',
|
|
20
|
+
'AwaitableGetRegistrantChangeCheckResult',
|
|
21
|
+
'get_registrant_change_check',
|
|
22
|
+
'get_registrant_change_check_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetRegistrantChangeCheckResult:
|
|
27
|
+
"""
|
|
28
|
+
A collection of values returned by getRegistrantChangeCheck.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, contact_id=None, domain_id=None, extended_attributes=None, id=None, registry_owner_change=None):
|
|
31
|
+
if contact_id and not isinstance(contact_id, str):
|
|
32
|
+
raise TypeError("Expected argument 'contact_id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "contact_id", contact_id)
|
|
34
|
+
if domain_id and not isinstance(domain_id, str):
|
|
35
|
+
raise TypeError("Expected argument 'domain_id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "domain_id", domain_id)
|
|
37
|
+
if extended_attributes and not isinstance(extended_attributes, list):
|
|
38
|
+
raise TypeError("Expected argument 'extended_attributes' to be a list")
|
|
39
|
+
pulumi.set(__self__, "extended_attributes", extended_attributes)
|
|
40
|
+
if id and not isinstance(id, str):
|
|
41
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
42
|
+
pulumi.set(__self__, "id", id)
|
|
43
|
+
if registry_owner_change and not isinstance(registry_owner_change, bool):
|
|
44
|
+
raise TypeError("Expected argument 'registry_owner_change' to be a bool")
|
|
45
|
+
pulumi.set(__self__, "registry_owner_change", registry_owner_change)
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
@pulumi.getter(name="contactId")
|
|
49
|
+
def contact_id(self) -> str:
|
|
50
|
+
return pulumi.get(self, "contact_id")
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
@pulumi.getter(name="domainId")
|
|
54
|
+
def domain_id(self) -> str:
|
|
55
|
+
return pulumi.get(self, "domain_id")
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
@pulumi.getter(name="extendedAttributes")
|
|
59
|
+
def extended_attributes(self) -> Sequence['outputs.GetRegistrantChangeCheckExtendedAttributeResult']:
|
|
60
|
+
return pulumi.get(self, "extended_attributes")
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter
|
|
64
|
+
def id(self) -> str:
|
|
65
|
+
return pulumi.get(self, "id")
|
|
66
|
+
|
|
67
|
+
@property
|
|
68
|
+
@pulumi.getter(name="registryOwnerChange")
|
|
69
|
+
def registry_owner_change(self) -> bool:
|
|
70
|
+
return pulumi.get(self, "registry_owner_change")
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class AwaitableGetRegistrantChangeCheckResult(GetRegistrantChangeCheckResult):
|
|
74
|
+
# pylint: disable=using-constant-test
|
|
75
|
+
def __await__(self):
|
|
76
|
+
if False:
|
|
77
|
+
yield self
|
|
78
|
+
return GetRegistrantChangeCheckResult(
|
|
79
|
+
contact_id=self.contact_id,
|
|
80
|
+
domain_id=self.domain_id,
|
|
81
|
+
extended_attributes=self.extended_attributes,
|
|
82
|
+
id=self.id,
|
|
83
|
+
registry_owner_change=self.registry_owner_change)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
def get_registrant_change_check(contact_id: Optional[str] = None,
|
|
87
|
+
domain_id: Optional[str] = None,
|
|
88
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegistrantChangeCheckResult:
|
|
89
|
+
"""
|
|
90
|
+
Get information on the requirements of a registrant change.
|
|
91
|
+
|
|
92
|
+
> **Note:** The registrant change API is currently in developer preview and is subject to change.
|
|
93
|
+
|
|
94
|
+
Get registrant change requirements for the `dnsimple.com` domain and the contact with ID `1234`:
|
|
95
|
+
|
|
96
|
+
```python
|
|
97
|
+
import pulumi
|
|
98
|
+
import pulumi_dnsimple as dnsimple
|
|
99
|
+
|
|
100
|
+
example = dnsimple.get_registrant_change_check(domain_id="dnsimple.com",
|
|
101
|
+
contact_id="1234")
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
The following arguments are supported:
|
|
105
|
+
|
|
106
|
+
* `domain_id` - (Required) The name or ID of the domain.
|
|
107
|
+
* `contact_id` - (Required) The ID of the contact you are planning to change to.
|
|
108
|
+
|
|
109
|
+
The following additional attributes are exported:
|
|
110
|
+
|
|
111
|
+
* `contact_id` - The ID of the contact you are planning to change to.
|
|
112
|
+
* `domain_id` - The name or ID of the domain.
|
|
113
|
+
* `extended_attributes` - (List) A list of extended attributes that are required for the registrant change. (see below for nested schema)
|
|
114
|
+
* `registry_owner_change` - (Boolean) Whether the registrant change is going to result in an owner change at the registry.
|
|
115
|
+
|
|
116
|
+
<a id="nestedblock--extended_attributes"></a>
|
|
117
|
+
"""
|
|
118
|
+
__args__ = dict()
|
|
119
|
+
__args__['contactId'] = contact_id
|
|
120
|
+
__args__['domainId'] = domain_id
|
|
121
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
122
|
+
__ret__ = pulumi.runtime.invoke('dnsimple:index/getRegistrantChangeCheck:getRegistrantChangeCheck', __args__, opts=opts, typ=GetRegistrantChangeCheckResult).value
|
|
123
|
+
|
|
124
|
+
return AwaitableGetRegistrantChangeCheckResult(
|
|
125
|
+
contact_id=pulumi.get(__ret__, 'contact_id'),
|
|
126
|
+
domain_id=pulumi.get(__ret__, 'domain_id'),
|
|
127
|
+
extended_attributes=pulumi.get(__ret__, 'extended_attributes'),
|
|
128
|
+
id=pulumi.get(__ret__, 'id'),
|
|
129
|
+
registry_owner_change=pulumi.get(__ret__, 'registry_owner_change'))
|
|
130
|
+
def get_registrant_change_check_output(contact_id: Optional[pulumi.Input[str]] = None,
|
|
131
|
+
domain_id: Optional[pulumi.Input[str]] = None,
|
|
132
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetRegistrantChangeCheckResult]:
|
|
133
|
+
"""
|
|
134
|
+
Get information on the requirements of a registrant change.
|
|
135
|
+
|
|
136
|
+
> **Note:** The registrant change API is currently in developer preview and is subject to change.
|
|
137
|
+
|
|
138
|
+
Get registrant change requirements for the `dnsimple.com` domain and the contact with ID `1234`:
|
|
139
|
+
|
|
140
|
+
```python
|
|
141
|
+
import pulumi
|
|
142
|
+
import pulumi_dnsimple as dnsimple
|
|
143
|
+
|
|
144
|
+
example = dnsimple.get_registrant_change_check(domain_id="dnsimple.com",
|
|
145
|
+
contact_id="1234")
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
The following arguments are supported:
|
|
149
|
+
|
|
150
|
+
* `domain_id` - (Required) The name or ID of the domain.
|
|
151
|
+
* `contact_id` - (Required) The ID of the contact you are planning to change to.
|
|
152
|
+
|
|
153
|
+
The following additional attributes are exported:
|
|
154
|
+
|
|
155
|
+
* `contact_id` - The ID of the contact you are planning to change to.
|
|
156
|
+
* `domain_id` - The name or ID of the domain.
|
|
157
|
+
* `extended_attributes` - (List) A list of extended attributes that are required for the registrant change. (see below for nested schema)
|
|
158
|
+
* `registry_owner_change` - (Boolean) Whether the registrant change is going to result in an owner change at the registry.
|
|
159
|
+
|
|
160
|
+
<a id="nestedblock--extended_attributes"></a>
|
|
161
|
+
"""
|
|
162
|
+
__args__ = dict()
|
|
163
|
+
__args__['contactId'] = contact_id
|
|
164
|
+
__args__['domainId'] = domain_id
|
|
165
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
166
|
+
__ret__ = pulumi.runtime.invoke_output('dnsimple:index/getRegistrantChangeCheck:getRegistrantChangeCheck', __args__, opts=opts, typ=GetRegistrantChangeCheckResult)
|
|
167
|
+
return __ret__.apply(lambda __response__: GetRegistrantChangeCheckResult(
|
|
168
|
+
contact_id=pulumi.get(__response__, 'contact_id'),
|
|
169
|
+
domain_id=pulumi.get(__response__, 'domain_id'),
|
|
170
|
+
extended_attributes=pulumi.get(__response__, 'extended_attributes'),
|
|
171
|
+
id=pulumi.get(__response__, 'id'),
|
|
172
|
+
registry_owner_change=pulumi.get(__response__, 'registry_owner_change')))
|
pulumi_dnsimple/get_zone.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__ = [
|
|
@@ -73,6 +78,8 @@ def get_zone(name: Optional[str] = None,
|
|
|
73
78
|
"""
|
|
74
79
|
Get information about a DNSimple zone.
|
|
75
80
|
|
|
81
|
+
!> Data source is getting deprecated in favor of `dnsimple\\_zone` resource.
|
|
82
|
+
|
|
76
83
|
Get zone:
|
|
77
84
|
|
|
78
85
|
```python
|
|
@@ -86,11 +93,10 @@ def get_zone(name: Optional[str] = None,
|
|
|
86
93
|
|
|
87
94
|
* `name` - (Required) The name of the zone
|
|
88
95
|
|
|
89
|
-
The following attributes are exported:
|
|
96
|
+
The following additional attributes are exported:
|
|
90
97
|
|
|
91
98
|
* `id` - The zone ID
|
|
92
99
|
* `account_id` - The account ID
|
|
93
|
-
* `name` - The name of the zone
|
|
94
100
|
* `reverse` - True for a reverse zone, false for a forward zone.
|
|
95
101
|
"""
|
|
96
102
|
__args__ = dict()
|
|
@@ -103,14 +109,13 @@ def get_zone(name: Optional[str] = None,
|
|
|
103
109
|
id=pulumi.get(__ret__, 'id'),
|
|
104
110
|
name=pulumi.get(__ret__, 'name'),
|
|
105
111
|
reverse=pulumi.get(__ret__, 'reverse'))
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
@_utilities.lift_output_func(get_zone)
|
|
109
112
|
def get_zone_output(name: Optional[pulumi.Input[str]] = None,
|
|
110
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetZoneResult]:
|
|
113
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetZoneResult]:
|
|
111
114
|
"""
|
|
112
115
|
Get information about a DNSimple zone.
|
|
113
116
|
|
|
117
|
+
!> Data source is getting deprecated in favor of `dnsimple\\_zone` resource.
|
|
118
|
+
|
|
114
119
|
Get zone:
|
|
115
120
|
|
|
116
121
|
```python
|
|
@@ -124,11 +129,18 @@ def get_zone_output(name: Optional[pulumi.Input[str]] = None,
|
|
|
124
129
|
|
|
125
130
|
* `name` - (Required) The name of the zone
|
|
126
131
|
|
|
127
|
-
The following attributes are exported:
|
|
132
|
+
The following additional attributes are exported:
|
|
128
133
|
|
|
129
134
|
* `id` - The zone ID
|
|
130
135
|
* `account_id` - The account ID
|
|
131
|
-
* `name` - The name of the zone
|
|
132
136
|
* `reverse` - True for a reverse zone, false for a forward zone.
|
|
133
137
|
"""
|
|
134
|
-
|
|
138
|
+
__args__ = dict()
|
|
139
|
+
__args__['name'] = name
|
|
140
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
141
|
+
__ret__ = pulumi.runtime.invoke_output('dnsimple:index/getZone:getZone', __args__, opts=opts, typ=GetZoneResult)
|
|
142
|
+
return __ret__.apply(lambda __response__: GetZoneResult(
|
|
143
|
+
account_id=pulumi.get(__response__, 'account_id'),
|
|
144
|
+
id=pulumi.get(__response__, 'id'),
|
|
145
|
+
name=pulumi.get(__response__, 'name'),
|
|
146
|
+
reverse=pulumi.get(__response__, 'reverse')))
|