pulumi-dnsimple 3.5.0a1710156168__py3-none-any.whl → 4.3.0a1736849266__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.0a1736849266.dist-info}/METADATA +9 -8
- pulumi_dnsimple-4.3.0a1736849266.dist-info/RECORD +27 -0
- {pulumi_dnsimple-3.5.0a1710156168.dist-info → pulumi_dnsimple-4.3.0a1736849266.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.0a1736849266.dist-info}/top_level.txt +0 -0
|
@@ -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__ = ['LetsEncryptCertificateArgs', 'LetsEncryptCertificate']
|
|
@@ -15,31 +20,31 @@ __all__ = ['LetsEncryptCertificateArgs', 'LetsEncryptCertificate']
|
|
|
15
20
|
class LetsEncryptCertificateArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
22
|
auto_renew: pulumi.Input[bool],
|
|
23
|
+
domain_id: pulumi.Input[str],
|
|
18
24
|
name: pulumi.Input[str],
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
26
|
+
signature_algorithm: Optional[pulumi.Input[str]] = None):
|
|
21
27
|
"""
|
|
22
28
|
The set of arguments for constructing a LetsEncryptCertificate resource.
|
|
23
|
-
:param pulumi.Input[bool] auto_renew:
|
|
24
|
-
:param pulumi.Input[str] name: The certificate name
|
|
25
|
-
:param pulumi.Input[int] contact_id: The contact id for the certificate
|
|
29
|
+
:param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
|
|
26
30
|
:param pulumi.Input[str] domain_id: The domain to be issued the certificate for
|
|
31
|
+
:param pulumi.Input[str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] alternate_names: The certificate alternate names
|
|
33
|
+
:param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
|
|
27
34
|
"""
|
|
28
35
|
pulumi.set(__self__, "auto_renew", auto_renew)
|
|
36
|
+
pulumi.set(__self__, "domain_id", domain_id)
|
|
29
37
|
pulumi.set(__self__, "name", name)
|
|
30
|
-
if
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
pulumi.set(__self__, "contact_id", contact_id)
|
|
35
|
-
if domain_id is not None:
|
|
36
|
-
pulumi.set(__self__, "domain_id", domain_id)
|
|
38
|
+
if alternate_names is not None:
|
|
39
|
+
pulumi.set(__self__, "alternate_names", alternate_names)
|
|
40
|
+
if signature_algorithm is not None:
|
|
41
|
+
pulumi.set(__self__, "signature_algorithm", signature_algorithm)
|
|
37
42
|
|
|
38
43
|
@property
|
|
39
44
|
@pulumi.getter(name="autoRenew")
|
|
40
45
|
def auto_renew(self) -> pulumi.Input[bool]:
|
|
41
46
|
"""
|
|
42
|
-
|
|
47
|
+
True if the certificate should auto-renew
|
|
43
48
|
"""
|
|
44
49
|
return pulumi.get(self, "auto_renew")
|
|
45
50
|
|
|
@@ -47,11 +52,23 @@ class LetsEncryptCertificateArgs:
|
|
|
47
52
|
def auto_renew(self, value: pulumi.Input[bool]):
|
|
48
53
|
pulumi.set(self, "auto_renew", value)
|
|
49
54
|
|
|
55
|
+
@property
|
|
56
|
+
@pulumi.getter(name="domainId")
|
|
57
|
+
def domain_id(self) -> pulumi.Input[str]:
|
|
58
|
+
"""
|
|
59
|
+
The domain to be issued the certificate for
|
|
60
|
+
"""
|
|
61
|
+
return pulumi.get(self, "domain_id")
|
|
62
|
+
|
|
63
|
+
@domain_id.setter
|
|
64
|
+
def domain_id(self, value: pulumi.Input[str]):
|
|
65
|
+
pulumi.set(self, "domain_id", value)
|
|
66
|
+
|
|
50
67
|
@property
|
|
51
68
|
@pulumi.getter
|
|
52
69
|
def name(self) -> pulumi.Input[str]:
|
|
53
70
|
"""
|
|
54
|
-
The certificate name
|
|
71
|
+
The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
55
72
|
"""
|
|
56
73
|
return pulumi.get(self, "name")
|
|
57
74
|
|
|
@@ -60,77 +77,78 @@ class LetsEncryptCertificateArgs:
|
|
|
60
77
|
pulumi.set(self, "name", value)
|
|
61
78
|
|
|
62
79
|
@property
|
|
63
|
-
@pulumi.getter(name="
|
|
64
|
-
def
|
|
80
|
+
@pulumi.getter(name="alternateNames")
|
|
81
|
+
def alternate_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
65
82
|
"""
|
|
66
|
-
The
|
|
83
|
+
The certificate alternate names
|
|
67
84
|
"""
|
|
68
|
-
|
|
69
|
-
pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
|
|
85
|
+
return pulumi.get(self, "alternate_names")
|
|
70
86
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
def contact_id(self, value: Optional[pulumi.Input[int]]):
|
|
75
|
-
pulumi.set(self, "contact_id", value)
|
|
87
|
+
@alternate_names.setter
|
|
88
|
+
def alternate_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
89
|
+
pulumi.set(self, "alternate_names", value)
|
|
76
90
|
|
|
77
91
|
@property
|
|
78
|
-
@pulumi.getter(name="
|
|
79
|
-
def
|
|
92
|
+
@pulumi.getter(name="signatureAlgorithm")
|
|
93
|
+
def signature_algorithm(self) -> Optional[pulumi.Input[str]]:
|
|
80
94
|
"""
|
|
81
|
-
The
|
|
95
|
+
The signature algorithm to use for the certificate
|
|
82
96
|
"""
|
|
83
|
-
return pulumi.get(self, "
|
|
97
|
+
return pulumi.get(self, "signature_algorithm")
|
|
84
98
|
|
|
85
|
-
@
|
|
86
|
-
def
|
|
87
|
-
pulumi.set(self, "
|
|
99
|
+
@signature_algorithm.setter
|
|
100
|
+
def signature_algorithm(self, value: Optional[pulumi.Input[str]]):
|
|
101
|
+
pulumi.set(self, "signature_algorithm", value)
|
|
88
102
|
|
|
89
103
|
|
|
90
104
|
@pulumi.input_type
|
|
91
105
|
class _LetsEncryptCertificateState:
|
|
92
106
|
def __init__(__self__, *,
|
|
107
|
+
alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
93
108
|
authority_identifier: Optional[pulumi.Input[str]] = None,
|
|
94
109
|
auto_renew: Optional[pulumi.Input[bool]] = None,
|
|
95
|
-
contact_id: Optional[pulumi.Input[int]] = None,
|
|
96
110
|
created_at: Optional[pulumi.Input[str]] = None,
|
|
97
111
|
csr: Optional[pulumi.Input[str]] = None,
|
|
98
112
|
domain_id: Optional[pulumi.Input[str]] = None,
|
|
99
|
-
|
|
113
|
+
expires_at: Optional[pulumi.Input[str]] = None,
|
|
100
114
|
name: Optional[pulumi.Input[str]] = None,
|
|
115
|
+
signature_algorithm: Optional[pulumi.Input[str]] = None,
|
|
101
116
|
state: Optional[pulumi.Input[str]] = None,
|
|
102
117
|
updated_at: Optional[pulumi.Input[str]] = None,
|
|
103
118
|
years: Optional[pulumi.Input[int]] = None):
|
|
104
119
|
"""
|
|
105
120
|
Input properties used for looking up and filtering LetsEncryptCertificate resources.
|
|
121
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] alternate_names: The certificate alternate names
|
|
106
122
|
:param pulumi.Input[str] authority_identifier: The identifying certification authority (CA)
|
|
107
|
-
:param pulumi.Input[bool] auto_renew:
|
|
108
|
-
:param pulumi.Input[
|
|
123
|
+
:param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
|
|
124
|
+
:param pulumi.Input[str] created_at: The datetime the certificate was created
|
|
109
125
|
:param pulumi.Input[str] csr: The certificate signing request
|
|
110
126
|
:param pulumi.Input[str] domain_id: The domain to be issued the certificate for
|
|
111
|
-
:param pulumi.Input[str]
|
|
127
|
+
:param pulumi.Input[str] expires_at: The datetime the certificate will expire
|
|
128
|
+
:param pulumi.Input[str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
129
|
+
:param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
|
|
112
130
|
:param pulumi.Input[str] state: The state of the certificate
|
|
131
|
+
:param pulumi.Input[str] updated_at: The datetime the certificate was last updated
|
|
113
132
|
:param pulumi.Input[int] years: The years the certificate will last
|
|
114
133
|
"""
|
|
134
|
+
if alternate_names is not None:
|
|
135
|
+
pulumi.set(__self__, "alternate_names", alternate_names)
|
|
115
136
|
if authority_identifier is not None:
|
|
116
137
|
pulumi.set(__self__, "authority_identifier", authority_identifier)
|
|
117
138
|
if auto_renew is not None:
|
|
118
139
|
pulumi.set(__self__, "auto_renew", auto_renew)
|
|
119
|
-
if contact_id is not None:
|
|
120
|
-
warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
|
|
121
|
-
pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
|
|
122
|
-
if contact_id is not None:
|
|
123
|
-
pulumi.set(__self__, "contact_id", contact_id)
|
|
124
140
|
if created_at is not None:
|
|
125
141
|
pulumi.set(__self__, "created_at", created_at)
|
|
126
142
|
if csr is not None:
|
|
127
143
|
pulumi.set(__self__, "csr", csr)
|
|
128
144
|
if domain_id is not None:
|
|
129
145
|
pulumi.set(__self__, "domain_id", domain_id)
|
|
130
|
-
if
|
|
131
|
-
pulumi.set(__self__, "
|
|
146
|
+
if expires_at is not None:
|
|
147
|
+
pulumi.set(__self__, "expires_at", expires_at)
|
|
132
148
|
if name is not None:
|
|
133
149
|
pulumi.set(__self__, "name", name)
|
|
150
|
+
if signature_algorithm is not None:
|
|
151
|
+
pulumi.set(__self__, "signature_algorithm", signature_algorithm)
|
|
134
152
|
if state is not None:
|
|
135
153
|
pulumi.set(__self__, "state", state)
|
|
136
154
|
if updated_at is not None:
|
|
@@ -138,6 +156,18 @@ class _LetsEncryptCertificateState:
|
|
|
138
156
|
if years is not None:
|
|
139
157
|
pulumi.set(__self__, "years", years)
|
|
140
158
|
|
|
159
|
+
@property
|
|
160
|
+
@pulumi.getter(name="alternateNames")
|
|
161
|
+
def alternate_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
162
|
+
"""
|
|
163
|
+
The certificate alternate names
|
|
164
|
+
"""
|
|
165
|
+
return pulumi.get(self, "alternate_names")
|
|
166
|
+
|
|
167
|
+
@alternate_names.setter
|
|
168
|
+
def alternate_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
169
|
+
pulumi.set(self, "alternate_names", value)
|
|
170
|
+
|
|
141
171
|
@property
|
|
142
172
|
@pulumi.getter(name="authorityIdentifier")
|
|
143
173
|
def authority_identifier(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -154,7 +184,7 @@ class _LetsEncryptCertificateState:
|
|
|
154
184
|
@pulumi.getter(name="autoRenew")
|
|
155
185
|
def auto_renew(self) -> Optional[pulumi.Input[bool]]:
|
|
156
186
|
"""
|
|
157
|
-
|
|
187
|
+
True if the certificate should auto-renew
|
|
158
188
|
"""
|
|
159
189
|
return pulumi.get(self, "auto_renew")
|
|
160
190
|
|
|
@@ -162,24 +192,12 @@ class _LetsEncryptCertificateState:
|
|
|
162
192
|
def auto_renew(self, value: Optional[pulumi.Input[bool]]):
|
|
163
193
|
pulumi.set(self, "auto_renew", value)
|
|
164
194
|
|
|
165
|
-
@property
|
|
166
|
-
@pulumi.getter(name="contactId")
|
|
167
|
-
def contact_id(self) -> Optional[pulumi.Input[int]]:
|
|
168
|
-
"""
|
|
169
|
-
The contact id for the certificate
|
|
170
|
-
"""
|
|
171
|
-
warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
|
|
172
|
-
pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
|
|
173
|
-
|
|
174
|
-
return pulumi.get(self, "contact_id")
|
|
175
|
-
|
|
176
|
-
@contact_id.setter
|
|
177
|
-
def contact_id(self, value: Optional[pulumi.Input[int]]):
|
|
178
|
-
pulumi.set(self, "contact_id", value)
|
|
179
|
-
|
|
180
195
|
@property
|
|
181
196
|
@pulumi.getter(name="createdAt")
|
|
182
197
|
def created_at(self) -> Optional[pulumi.Input[str]]:
|
|
198
|
+
"""
|
|
199
|
+
The datetime the certificate was created
|
|
200
|
+
"""
|
|
183
201
|
return pulumi.get(self, "created_at")
|
|
184
202
|
|
|
185
203
|
@created_at.setter
|
|
@@ -211,19 +229,22 @@ class _LetsEncryptCertificateState:
|
|
|
211
229
|
pulumi.set(self, "domain_id", value)
|
|
212
230
|
|
|
213
231
|
@property
|
|
214
|
-
@pulumi.getter(name="
|
|
215
|
-
def
|
|
216
|
-
|
|
232
|
+
@pulumi.getter(name="expiresAt")
|
|
233
|
+
def expires_at(self) -> Optional[pulumi.Input[str]]:
|
|
234
|
+
"""
|
|
235
|
+
The datetime the certificate will expire
|
|
236
|
+
"""
|
|
237
|
+
return pulumi.get(self, "expires_at")
|
|
217
238
|
|
|
218
|
-
@
|
|
219
|
-
def
|
|
220
|
-
pulumi.set(self, "
|
|
239
|
+
@expires_at.setter
|
|
240
|
+
def expires_at(self, value: Optional[pulumi.Input[str]]):
|
|
241
|
+
pulumi.set(self, "expires_at", value)
|
|
221
242
|
|
|
222
243
|
@property
|
|
223
244
|
@pulumi.getter
|
|
224
245
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
225
246
|
"""
|
|
226
|
-
The certificate name
|
|
247
|
+
The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
227
248
|
"""
|
|
228
249
|
return pulumi.get(self, "name")
|
|
229
250
|
|
|
@@ -231,6 +252,18 @@ class _LetsEncryptCertificateState:
|
|
|
231
252
|
def name(self, value: Optional[pulumi.Input[str]]):
|
|
232
253
|
pulumi.set(self, "name", value)
|
|
233
254
|
|
|
255
|
+
@property
|
|
256
|
+
@pulumi.getter(name="signatureAlgorithm")
|
|
257
|
+
def signature_algorithm(self) -> Optional[pulumi.Input[str]]:
|
|
258
|
+
"""
|
|
259
|
+
The signature algorithm to use for the certificate
|
|
260
|
+
"""
|
|
261
|
+
return pulumi.get(self, "signature_algorithm")
|
|
262
|
+
|
|
263
|
+
@signature_algorithm.setter
|
|
264
|
+
def signature_algorithm(self, value: Optional[pulumi.Input[str]]):
|
|
265
|
+
pulumi.set(self, "signature_algorithm", value)
|
|
266
|
+
|
|
234
267
|
@property
|
|
235
268
|
@pulumi.getter
|
|
236
269
|
def state(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -246,6 +279,9 @@ class _LetsEncryptCertificateState:
|
|
|
246
279
|
@property
|
|
247
280
|
@pulumi.getter(name="updatedAt")
|
|
248
281
|
def updated_at(self) -> Optional[pulumi.Input[str]]:
|
|
282
|
+
"""
|
|
283
|
+
The datetime the certificate was last updated
|
|
284
|
+
"""
|
|
249
285
|
return pulumi.get(self, "updated_at")
|
|
250
286
|
|
|
251
287
|
@updated_at.setter
|
|
@@ -270,34 +306,38 @@ class LetsEncryptCertificate(pulumi.CustomResource):
|
|
|
270
306
|
def __init__(__self__,
|
|
271
307
|
resource_name: str,
|
|
272
308
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
309
|
+
alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
273
310
|
auto_renew: Optional[pulumi.Input[bool]] = None,
|
|
274
|
-
contact_id: Optional[pulumi.Input[int]] = None,
|
|
275
311
|
domain_id: Optional[pulumi.Input[str]] = None,
|
|
276
312
|
name: Optional[pulumi.Input[str]] = None,
|
|
313
|
+
signature_algorithm: Optional[pulumi.Input[str]] = None,
|
|
277
314
|
__props__=None):
|
|
278
315
|
"""
|
|
279
316
|
Provides a DNSimple Let's Encrypt certificate resource.
|
|
280
317
|
|
|
281
318
|
## Example Usage
|
|
282
319
|
|
|
283
|
-
<!--Start PulumiCodeChooser -->
|
|
284
320
|
```python
|
|
285
321
|
import pulumi
|
|
286
322
|
import pulumi_dnsimple as dnsimple
|
|
287
323
|
|
|
288
324
|
foobar = dnsimple.LetsEncryptCertificate("foobar",
|
|
289
|
-
domain_id=
|
|
325
|
+
domain_id=dnsimple["domainId"],
|
|
290
326
|
auto_renew=False,
|
|
291
|
-
name="www"
|
|
327
|
+
name="www",
|
|
328
|
+
alternate_names=[
|
|
329
|
+
"docs.example.com",
|
|
330
|
+
"status.example.com",
|
|
331
|
+
])
|
|
292
332
|
```
|
|
293
|
-
<!--End PulumiCodeChooser -->
|
|
294
333
|
|
|
295
334
|
:param str resource_name: The name of the resource.
|
|
296
335
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
297
|
-
:param pulumi.Input[
|
|
298
|
-
:param pulumi.Input[
|
|
336
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] alternate_names: The certificate alternate names
|
|
337
|
+
:param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
|
|
299
338
|
:param pulumi.Input[str] domain_id: The domain to be issued the certificate for
|
|
300
|
-
:param pulumi.Input[str] name: The certificate name
|
|
339
|
+
:param pulumi.Input[str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
340
|
+
:param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
|
|
301
341
|
"""
|
|
302
342
|
...
|
|
303
343
|
@overload
|
|
@@ -310,17 +350,19 @@ class LetsEncryptCertificate(pulumi.CustomResource):
|
|
|
310
350
|
|
|
311
351
|
## Example Usage
|
|
312
352
|
|
|
313
|
-
<!--Start PulumiCodeChooser -->
|
|
314
353
|
```python
|
|
315
354
|
import pulumi
|
|
316
355
|
import pulumi_dnsimple as dnsimple
|
|
317
356
|
|
|
318
357
|
foobar = dnsimple.LetsEncryptCertificate("foobar",
|
|
319
|
-
domain_id=
|
|
358
|
+
domain_id=dnsimple["domainId"],
|
|
320
359
|
auto_renew=False,
|
|
321
|
-
name="www"
|
|
360
|
+
name="www",
|
|
361
|
+
alternate_names=[
|
|
362
|
+
"docs.example.com",
|
|
363
|
+
"status.example.com",
|
|
364
|
+
])
|
|
322
365
|
```
|
|
323
|
-
<!--End PulumiCodeChooser -->
|
|
324
366
|
|
|
325
367
|
:param str resource_name: The name of the resource.
|
|
326
368
|
:param LetsEncryptCertificateArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -337,10 +379,11 @@ class LetsEncryptCertificate(pulumi.CustomResource):
|
|
|
337
379
|
def _internal_init(__self__,
|
|
338
380
|
resource_name: str,
|
|
339
381
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
382
|
+
alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
340
383
|
auto_renew: Optional[pulumi.Input[bool]] = None,
|
|
341
|
-
contact_id: Optional[pulumi.Input[int]] = None,
|
|
342
384
|
domain_id: Optional[pulumi.Input[str]] = None,
|
|
343
385
|
name: Optional[pulumi.Input[str]] = None,
|
|
386
|
+
signature_algorithm: Optional[pulumi.Input[str]] = None,
|
|
344
387
|
__props__=None):
|
|
345
388
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
346
389
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -350,18 +393,21 @@ class LetsEncryptCertificate(pulumi.CustomResource):
|
|
|
350
393
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
351
394
|
__props__ = LetsEncryptCertificateArgs.__new__(LetsEncryptCertificateArgs)
|
|
352
395
|
|
|
396
|
+
__props__.__dict__["alternate_names"] = alternate_names
|
|
353
397
|
if auto_renew is None and not opts.urn:
|
|
354
398
|
raise TypeError("Missing required property 'auto_renew'")
|
|
355
399
|
__props__.__dict__["auto_renew"] = auto_renew
|
|
356
|
-
|
|
400
|
+
if domain_id is None and not opts.urn:
|
|
401
|
+
raise TypeError("Missing required property 'domain_id'")
|
|
357
402
|
__props__.__dict__["domain_id"] = domain_id
|
|
358
403
|
if name is None and not opts.urn:
|
|
359
404
|
raise TypeError("Missing required property 'name'")
|
|
360
405
|
__props__.__dict__["name"] = name
|
|
406
|
+
__props__.__dict__["signature_algorithm"] = signature_algorithm
|
|
361
407
|
__props__.__dict__["authority_identifier"] = None
|
|
362
408
|
__props__.__dict__["created_at"] = None
|
|
363
409
|
__props__.__dict__["csr"] = None
|
|
364
|
-
__props__.__dict__["
|
|
410
|
+
__props__.__dict__["expires_at"] = None
|
|
365
411
|
__props__.__dict__["state"] = None
|
|
366
412
|
__props__.__dict__["updated_at"] = None
|
|
367
413
|
__props__.__dict__["years"] = None
|
|
@@ -375,14 +421,15 @@ class LetsEncryptCertificate(pulumi.CustomResource):
|
|
|
375
421
|
def get(resource_name: str,
|
|
376
422
|
id: pulumi.Input[str],
|
|
377
423
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
424
|
+
alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
378
425
|
authority_identifier: Optional[pulumi.Input[str]] = None,
|
|
379
426
|
auto_renew: Optional[pulumi.Input[bool]] = None,
|
|
380
|
-
contact_id: Optional[pulumi.Input[int]] = None,
|
|
381
427
|
created_at: Optional[pulumi.Input[str]] = None,
|
|
382
428
|
csr: Optional[pulumi.Input[str]] = None,
|
|
383
429
|
domain_id: Optional[pulumi.Input[str]] = None,
|
|
384
|
-
|
|
430
|
+
expires_at: Optional[pulumi.Input[str]] = None,
|
|
385
431
|
name: Optional[pulumi.Input[str]] = None,
|
|
432
|
+
signature_algorithm: Optional[pulumi.Input[str]] = None,
|
|
386
433
|
state: Optional[pulumi.Input[str]] = None,
|
|
387
434
|
updated_at: Optional[pulumi.Input[str]] = None,
|
|
388
435
|
years: Optional[pulumi.Input[int]] = None) -> 'LetsEncryptCertificate':
|
|
@@ -393,32 +440,45 @@ class LetsEncryptCertificate(pulumi.CustomResource):
|
|
|
393
440
|
:param str resource_name: The unique name of the resulting resource.
|
|
394
441
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
395
442
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
443
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] alternate_names: The certificate alternate names
|
|
396
444
|
:param pulumi.Input[str] authority_identifier: The identifying certification authority (CA)
|
|
397
|
-
:param pulumi.Input[bool] auto_renew:
|
|
398
|
-
:param pulumi.Input[
|
|
445
|
+
:param pulumi.Input[bool] auto_renew: True if the certificate should auto-renew
|
|
446
|
+
:param pulumi.Input[str] created_at: The datetime the certificate was created
|
|
399
447
|
:param pulumi.Input[str] csr: The certificate signing request
|
|
400
448
|
:param pulumi.Input[str] domain_id: The domain to be issued the certificate for
|
|
401
|
-
:param pulumi.Input[str]
|
|
449
|
+
:param pulumi.Input[str] expires_at: The datetime the certificate will expire
|
|
450
|
+
:param pulumi.Input[str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
451
|
+
:param pulumi.Input[str] signature_algorithm: The signature algorithm to use for the certificate
|
|
402
452
|
:param pulumi.Input[str] state: The state of the certificate
|
|
453
|
+
:param pulumi.Input[str] updated_at: The datetime the certificate was last updated
|
|
403
454
|
:param pulumi.Input[int] years: The years the certificate will last
|
|
404
455
|
"""
|
|
405
456
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
406
457
|
|
|
407
458
|
__props__ = _LetsEncryptCertificateState.__new__(_LetsEncryptCertificateState)
|
|
408
459
|
|
|
460
|
+
__props__.__dict__["alternate_names"] = alternate_names
|
|
409
461
|
__props__.__dict__["authority_identifier"] = authority_identifier
|
|
410
462
|
__props__.__dict__["auto_renew"] = auto_renew
|
|
411
|
-
__props__.__dict__["contact_id"] = contact_id
|
|
412
463
|
__props__.__dict__["created_at"] = created_at
|
|
413
464
|
__props__.__dict__["csr"] = csr
|
|
414
465
|
__props__.__dict__["domain_id"] = domain_id
|
|
415
|
-
__props__.__dict__["
|
|
466
|
+
__props__.__dict__["expires_at"] = expires_at
|
|
416
467
|
__props__.__dict__["name"] = name
|
|
468
|
+
__props__.__dict__["signature_algorithm"] = signature_algorithm
|
|
417
469
|
__props__.__dict__["state"] = state
|
|
418
470
|
__props__.__dict__["updated_at"] = updated_at
|
|
419
471
|
__props__.__dict__["years"] = years
|
|
420
472
|
return LetsEncryptCertificate(resource_name, opts=opts, __props__=__props__)
|
|
421
473
|
|
|
474
|
+
@property
|
|
475
|
+
@pulumi.getter(name="alternateNames")
|
|
476
|
+
def alternate_names(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
477
|
+
"""
|
|
478
|
+
The certificate alternate names
|
|
479
|
+
"""
|
|
480
|
+
return pulumi.get(self, "alternate_names")
|
|
481
|
+
|
|
422
482
|
@property
|
|
423
483
|
@pulumi.getter(name="authorityIdentifier")
|
|
424
484
|
def authority_identifier(self) -> pulumi.Output[str]:
|
|
@@ -431,24 +491,16 @@ class LetsEncryptCertificate(pulumi.CustomResource):
|
|
|
431
491
|
@pulumi.getter(name="autoRenew")
|
|
432
492
|
def auto_renew(self) -> pulumi.Output[bool]:
|
|
433
493
|
"""
|
|
434
|
-
|
|
494
|
+
True if the certificate should auto-renew
|
|
435
495
|
"""
|
|
436
496
|
return pulumi.get(self, "auto_renew")
|
|
437
497
|
|
|
438
|
-
@property
|
|
439
|
-
@pulumi.getter(name="contactId")
|
|
440
|
-
def contact_id(self) -> pulumi.Output[Optional[int]]:
|
|
441
|
-
"""
|
|
442
|
-
The contact id for the certificate
|
|
443
|
-
"""
|
|
444
|
-
warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
|
|
445
|
-
pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
|
|
446
|
-
|
|
447
|
-
return pulumi.get(self, "contact_id")
|
|
448
|
-
|
|
449
498
|
@property
|
|
450
499
|
@pulumi.getter(name="createdAt")
|
|
451
500
|
def created_at(self) -> pulumi.Output[str]:
|
|
501
|
+
"""
|
|
502
|
+
The datetime the certificate was created
|
|
503
|
+
"""
|
|
452
504
|
return pulumi.get(self, "created_at")
|
|
453
505
|
|
|
454
506
|
@property
|
|
@@ -461,25 +513,36 @@ class LetsEncryptCertificate(pulumi.CustomResource):
|
|
|
461
513
|
|
|
462
514
|
@property
|
|
463
515
|
@pulumi.getter(name="domainId")
|
|
464
|
-
def domain_id(self) -> pulumi.Output[
|
|
516
|
+
def domain_id(self) -> pulumi.Output[str]:
|
|
465
517
|
"""
|
|
466
518
|
The domain to be issued the certificate for
|
|
467
519
|
"""
|
|
468
520
|
return pulumi.get(self, "domain_id")
|
|
469
521
|
|
|
470
522
|
@property
|
|
471
|
-
@pulumi.getter(name="
|
|
472
|
-
def
|
|
473
|
-
|
|
523
|
+
@pulumi.getter(name="expiresAt")
|
|
524
|
+
def expires_at(self) -> pulumi.Output[str]:
|
|
525
|
+
"""
|
|
526
|
+
The datetime the certificate will expire
|
|
527
|
+
"""
|
|
528
|
+
return pulumi.get(self, "expires_at")
|
|
474
529
|
|
|
475
530
|
@property
|
|
476
531
|
@pulumi.getter
|
|
477
532
|
def name(self) -> pulumi.Output[str]:
|
|
478
533
|
"""
|
|
479
|
-
The certificate name
|
|
534
|
+
The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
480
535
|
"""
|
|
481
536
|
return pulumi.get(self, "name")
|
|
482
537
|
|
|
538
|
+
@property
|
|
539
|
+
@pulumi.getter(name="signatureAlgorithm")
|
|
540
|
+
def signature_algorithm(self) -> pulumi.Output[Optional[str]]:
|
|
541
|
+
"""
|
|
542
|
+
The signature algorithm to use for the certificate
|
|
543
|
+
"""
|
|
544
|
+
return pulumi.get(self, "signature_algorithm")
|
|
545
|
+
|
|
483
546
|
@property
|
|
484
547
|
@pulumi.getter
|
|
485
548
|
def state(self) -> pulumi.Output[str]:
|
|
@@ -491,6 +554,9 @@ class LetsEncryptCertificate(pulumi.CustomResource):
|
|
|
491
554
|
@property
|
|
492
555
|
@pulumi.getter(name="updatedAt")
|
|
493
556
|
def updated_at(self) -> pulumi.Output[str]:
|
|
557
|
+
"""
|
|
558
|
+
The datetime the certificate was last updated
|
|
559
|
+
"""
|
|
494
560
|
return pulumi.get(self, "updated_at")
|
|
495
561
|
|
|
496
562
|
@property
|