pulumi-dnsimple 3.5.0a1710156168__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 +79 -8
- pulumi_dnsimple/domain_delegation.py +263 -0
- pulumi_dnsimple/ds_record.py +601 -0
- pulumi_dnsimple/email_forward.py +51 -28
- pulumi_dnsimple/get_certificate.py +50 -26
- pulumi_dnsimple/get_registrant_change_check.py +172 -0
- pulumi_dnsimple/get_zone.py +21 -13
- pulumi_dnsimple/lets_encrypt_certificate.py +171 -105
- 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 +170 -76
- {pulumi_dnsimple-3.5.0a1710156168.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.0a1710156168.dist-info → pulumi_dnsimple-4.3.0a1736832784.dist-info}/WHEEL +1 -1
- pulumi_dnsimple/record.py +0 -353
- pulumi_dnsimple-3.5.0a1710156168.dist-info/RECORD +0 -19
- {pulumi_dnsimple-3.5.0a1710156168.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
|
|
|
@@ -150,24 +155,33 @@ class EmailForward(pulumi.CustomResource):
|
|
|
150
155
|
|
|
151
156
|
## Example Usage
|
|
152
157
|
|
|
153
|
-
<!--Start PulumiCodeChooser -->
|
|
154
158
|
```python
|
|
155
159
|
import pulumi
|
|
156
160
|
import pulumi_dnsimple as dnsimple
|
|
157
161
|
|
|
158
|
-
# Add an email forwarding rule to the domain
|
|
159
162
|
foobar = dnsimple.EmailForward("foobar",
|
|
163
|
+
domain=dnsimple_domain["name"],
|
|
160
164
|
alias_name="sales",
|
|
161
|
-
destination_email="
|
|
162
|
-
|
|
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
|
|
163
178
|
```
|
|
164
|
-
<!--End PulumiCodeChooser -->
|
|
165
179
|
|
|
166
180
|
:param str resource_name: The name of the resource.
|
|
167
181
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
168
182
|
: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
|
|
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
|
|
171
185
|
"""
|
|
172
186
|
...
|
|
173
187
|
@overload
|
|
@@ -180,18 +194,27 @@ class EmailForward(pulumi.CustomResource):
|
|
|
180
194
|
|
|
181
195
|
## Example Usage
|
|
182
196
|
|
|
183
|
-
<!--Start PulumiCodeChooser -->
|
|
184
197
|
```python
|
|
185
198
|
import pulumi
|
|
186
199
|
import pulumi_dnsimple as dnsimple
|
|
187
200
|
|
|
188
|
-
# Add an email forwarding rule to the domain
|
|
189
201
|
foobar = dnsimple.EmailForward("foobar",
|
|
202
|
+
domain=dnsimple_domain["name"],
|
|
190
203
|
alias_name="sales",
|
|
191
|
-
destination_email="
|
|
192
|
-
|
|
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
|
|
193
217
|
```
|
|
194
|
-
<!--End PulumiCodeChooser -->
|
|
195
218
|
|
|
196
219
|
:param str resource_name: The name of the resource.
|
|
197
220
|
:param EmailForwardArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -251,10 +274,10 @@ class EmailForward(pulumi.CustomResource):
|
|
|
251
274
|
:param str resource_name: The unique name of the resulting resource.
|
|
252
275
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
253
276
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
254
|
-
: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.
|
|
255
278
|
: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
|
|
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
|
|
258
281
|
"""
|
|
259
282
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
260
283
|
|
|
@@ -270,7 +293,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
270
293
|
@pulumi.getter(name="aliasEmail")
|
|
271
294
|
def alias_email(self) -> pulumi.Output[str]:
|
|
272
295
|
"""
|
|
273
|
-
The source email address on the domain
|
|
296
|
+
The source email address on the domain, in full form. This is a computed attribute.
|
|
274
297
|
"""
|
|
275
298
|
return pulumi.get(self, "alias_email")
|
|
276
299
|
|
|
@@ -286,7 +309,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
286
309
|
@pulumi.getter(name="destinationEmail")
|
|
287
310
|
def destination_email(self) -> pulumi.Output[str]:
|
|
288
311
|
"""
|
|
289
|
-
The destination email address
|
|
312
|
+
The destination email address
|
|
290
313
|
"""
|
|
291
314
|
return pulumi.get(self, "destination_email")
|
|
292
315
|
|
|
@@ -294,7 +317,7 @@ class EmailForward(pulumi.CustomResource):
|
|
|
294
317
|
@pulumi.getter
|
|
295
318
|
def domain(self) -> pulumi.Output[str]:
|
|
296
319
|
"""
|
|
297
|
-
The domain to add the email forwarding rule to
|
|
320
|
+
The domain name to add the email forwarding rule to
|
|
298
321
|
"""
|
|
299
322
|
return pulumi.get(self, "domain")
|
|
300
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,34 +119,35 @@ 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.
|
|
118
132
|
|
|
119
133
|
## Example Usage
|
|
120
134
|
|
|
121
|
-
<!--Start PulumiCodeChooser -->
|
|
122
135
|
```python
|
|
123
136
|
import pulumi
|
|
124
137
|
import pulumi_dnsimple as dnsimple
|
|
125
138
|
|
|
126
|
-
foobar = dnsimple.get_certificate(
|
|
127
|
-
|
|
139
|
+
foobar = dnsimple.get_certificate(domain=dnsimple_domain,
|
|
140
|
+
certificate_id=dnsimple_certificate_id)
|
|
128
141
|
```
|
|
129
|
-
<!--End PulumiCodeChooser -->
|
|
130
142
|
|
|
131
143
|
|
|
132
|
-
:param
|
|
144
|
+
:param int certificate_id: The ID of the SSL Certificate
|
|
133
145
|
:param str domain: The domain of the SSL Certificate
|
|
134
146
|
"""
|
|
135
147
|
__args__ = dict()
|
|
136
148
|
__args__['certificateId'] = certificate_id
|
|
137
149
|
__args__['domain'] = domain
|
|
150
|
+
__args__['timeouts'] = timeouts
|
|
138
151
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
139
152
|
__ret__ = pulumi.runtime.invoke('dnsimple:index/getCertificate:getCertificate', __args__, opts=opts, typ=GetCertificateResult).value
|
|
140
153
|
|
|
@@ -145,30 +158,41 @@ def get_certificate(certificate_id: Optional[str] = None,
|
|
|
145
158
|
id=pulumi.get(__ret__, 'id'),
|
|
146
159
|
private_key=pulumi.get(__ret__, 'private_key'),
|
|
147
160
|
root_certificate=pulumi.get(__ret__, 'root_certificate'),
|
|
148
|
-
server_certificate=pulumi.get(__ret__, 'server_certificate')
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
@_utilities.lift_output_func(get_certificate)
|
|
152
|
-
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,
|
|
153
164
|
domain: Optional[pulumi.Input[str]] = None,
|
|
154
|
-
|
|
165
|
+
timeouts: Optional[pulumi.Input[Optional[Union['GetCertificateTimeoutsArgs', 'GetCertificateTimeoutsArgsDict']]]] = None,
|
|
166
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCertificateResult]:
|
|
155
167
|
"""
|
|
156
168
|
Provides a DNSimple certificate data source.
|
|
157
169
|
|
|
158
170
|
## Example Usage
|
|
159
171
|
|
|
160
|
-
<!--Start PulumiCodeChooser -->
|
|
161
172
|
```python
|
|
162
173
|
import pulumi
|
|
163
174
|
import pulumi_dnsimple as dnsimple
|
|
164
175
|
|
|
165
|
-
foobar = dnsimple.get_certificate(
|
|
166
|
-
|
|
176
|
+
foobar = dnsimple.get_certificate(domain=dnsimple_domain,
|
|
177
|
+
certificate_id=dnsimple_certificate_id)
|
|
167
178
|
```
|
|
168
|
-
<!--End PulumiCodeChooser -->
|
|
169
179
|
|
|
170
180
|
|
|
171
|
-
:param
|
|
181
|
+
:param int certificate_id: The ID of the SSL Certificate
|
|
172
182
|
:param str domain: The domain of the SSL Certificate
|
|
173
183
|
"""
|
|
174
|
-
|
|
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,26 +78,25 @@ 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
|
-
<!--Start PulumiCodeChooser -->
|
|
79
85
|
```python
|
|
80
86
|
import pulumi
|
|
81
87
|
import pulumi_dnsimple as dnsimple
|
|
82
88
|
|
|
83
89
|
foobar = dnsimple.get_zone(name="dnsimple.com")
|
|
84
90
|
```
|
|
85
|
-
<!--End PulumiCodeChooser -->
|
|
86
91
|
|
|
87
92
|
The following arguments are supported:
|
|
88
93
|
|
|
89
94
|
* `name` - (Required) The name of the zone
|
|
90
95
|
|
|
91
|
-
The following attributes are exported:
|
|
96
|
+
The following additional attributes are exported:
|
|
92
97
|
|
|
93
98
|
* `id` - The zone ID
|
|
94
99
|
* `account_id` - The account ID
|
|
95
|
-
* `name` - The name of the zone
|
|
96
100
|
* `reverse` - True for a reverse zone, false for a forward zone.
|
|
97
101
|
"""
|
|
98
102
|
__args__ = dict()
|
|
@@ -105,34 +109,38 @@ def get_zone(name: Optional[str] = None,
|
|
|
105
109
|
id=pulumi.get(__ret__, 'id'),
|
|
106
110
|
name=pulumi.get(__ret__, 'name'),
|
|
107
111
|
reverse=pulumi.get(__ret__, 'reverse'))
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
@_utilities.lift_output_func(get_zone)
|
|
111
112
|
def get_zone_output(name: Optional[pulumi.Input[str]] = None,
|
|
112
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetZoneResult]:
|
|
113
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetZoneResult]:
|
|
113
114
|
"""
|
|
114
115
|
Get information about a DNSimple zone.
|
|
115
116
|
|
|
117
|
+
!> Data source is getting deprecated in favor of `dnsimple\\_zone` resource.
|
|
118
|
+
|
|
116
119
|
Get zone:
|
|
117
120
|
|
|
118
|
-
<!--Start PulumiCodeChooser -->
|
|
119
121
|
```python
|
|
120
122
|
import pulumi
|
|
121
123
|
import pulumi_dnsimple as dnsimple
|
|
122
124
|
|
|
123
125
|
foobar = dnsimple.get_zone(name="dnsimple.com")
|
|
124
126
|
```
|
|
125
|
-
<!--End PulumiCodeChooser -->
|
|
126
127
|
|
|
127
128
|
The following arguments are supported:
|
|
128
129
|
|
|
129
130
|
* `name` - (Required) The name of the zone
|
|
130
131
|
|
|
131
|
-
The following attributes are exported:
|
|
132
|
+
The following additional attributes are exported:
|
|
132
133
|
|
|
133
134
|
* `id` - The zone ID
|
|
134
135
|
* `account_id` - The account ID
|
|
135
|
-
* `name` - The name of the zone
|
|
136
136
|
* `reverse` - True for a reverse zone, false for a forward zone.
|
|
137
137
|
"""
|
|
138
|
-
|
|
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')))
|