pulumi-dnsimple 5.1.0a1768541715__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.
- pulumi_dnsimple/__init__.py +120 -0
- pulumi_dnsimple/_enums.py +34 -0
- pulumi_dnsimple/_inputs.py +378 -0
- pulumi_dnsimple/_utilities.py +331 -0
- pulumi_dnsimple/config/__init__.py +9 -0
- pulumi_dnsimple/config/__init__.pyi +46 -0
- pulumi_dnsimple/config/vars.py +64 -0
- pulumi_dnsimple/contact.py +981 -0
- pulumi_dnsimple/domain.py +362 -0
- pulumi_dnsimple/domain_delegation.py +244 -0
- pulumi_dnsimple/ds_record.py +496 -0
- pulumi_dnsimple/email_forward.py +324 -0
- pulumi_dnsimple/get_certificate.py +203 -0
- pulumi_dnsimple/get_registrant_change_check.py +168 -0
- pulumi_dnsimple/get_zone.py +133 -0
- pulumi_dnsimple/lets_encrypt_certificate.py +594 -0
- pulumi_dnsimple/outputs.py +353 -0
- pulumi_dnsimple/provider.py +258 -0
- pulumi_dnsimple/pulumi-plugin.json +5 -0
- pulumi_dnsimple/py.typed +0 -0
- pulumi_dnsimple/registered_domain.py +839 -0
- pulumi_dnsimple/zone.py +357 -0
- pulumi_dnsimple/zone_record.py +629 -0
- pulumi_dnsimple-5.1.0a1768541715.dist-info/METADATA +73 -0
- pulumi_dnsimple-5.1.0a1768541715.dist-info/RECORD +27 -0
- pulumi_dnsimple-5.1.0a1768541715.dist-info/WHEEL +5 -0
- pulumi_dnsimple-5.1.0a1768541715.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
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
|
+
|
|
17
|
+
__all__ = ['LetsEncryptCertificateArgs', 'LetsEncryptCertificate']
|
|
18
|
+
|
|
19
|
+
@pulumi.input_type
|
|
20
|
+
class LetsEncryptCertificateArgs:
|
|
21
|
+
def __init__(__self__, *,
|
|
22
|
+
auto_renew: pulumi.Input[_builtins.bool],
|
|
23
|
+
domain_id: pulumi.Input[_builtins.str],
|
|
24
|
+
name: pulumi.Input[_builtins.str],
|
|
25
|
+
alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
26
|
+
signature_algorithm: Optional[pulumi.Input[_builtins.str]] = None):
|
|
27
|
+
"""
|
|
28
|
+
The set of arguments for constructing a LetsEncryptCertificate resource.
|
|
29
|
+
:param pulumi.Input[_builtins.bool] auto_renew: Whether the certificate should auto-renew.
|
|
30
|
+
:param pulumi.Input[_builtins.str] domain_id: The domain name or ID to issue the certificate for.
|
|
31
|
+
:param pulumi.Input[_builtins.str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] alternate_names: List of alternate names (SANs) for the certificate.
|
|
33
|
+
:param pulumi.Input[_builtins.str] signature_algorithm: The signature algorithm to use for the certificate.
|
|
34
|
+
"""
|
|
35
|
+
pulumi.set(__self__, "auto_renew", auto_renew)
|
|
36
|
+
pulumi.set(__self__, "domain_id", domain_id)
|
|
37
|
+
pulumi.set(__self__, "name", name)
|
|
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)
|
|
42
|
+
|
|
43
|
+
@_builtins.property
|
|
44
|
+
@pulumi.getter(name="autoRenew")
|
|
45
|
+
def auto_renew(self) -> pulumi.Input[_builtins.bool]:
|
|
46
|
+
"""
|
|
47
|
+
Whether the certificate should auto-renew.
|
|
48
|
+
"""
|
|
49
|
+
return pulumi.get(self, "auto_renew")
|
|
50
|
+
|
|
51
|
+
@auto_renew.setter
|
|
52
|
+
def auto_renew(self, value: pulumi.Input[_builtins.bool]):
|
|
53
|
+
pulumi.set(self, "auto_renew", value)
|
|
54
|
+
|
|
55
|
+
@_builtins.property
|
|
56
|
+
@pulumi.getter(name="domainId")
|
|
57
|
+
def domain_id(self) -> pulumi.Input[_builtins.str]:
|
|
58
|
+
"""
|
|
59
|
+
The domain name or ID to issue the certificate for.
|
|
60
|
+
"""
|
|
61
|
+
return pulumi.get(self, "domain_id")
|
|
62
|
+
|
|
63
|
+
@domain_id.setter
|
|
64
|
+
def domain_id(self, value: pulumi.Input[_builtins.str]):
|
|
65
|
+
pulumi.set(self, "domain_id", value)
|
|
66
|
+
|
|
67
|
+
@_builtins.property
|
|
68
|
+
@pulumi.getter
|
|
69
|
+
def name(self) -> pulumi.Input[_builtins.str]:
|
|
70
|
+
"""
|
|
71
|
+
The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
72
|
+
"""
|
|
73
|
+
return pulumi.get(self, "name")
|
|
74
|
+
|
|
75
|
+
@name.setter
|
|
76
|
+
def name(self, value: pulumi.Input[_builtins.str]):
|
|
77
|
+
pulumi.set(self, "name", value)
|
|
78
|
+
|
|
79
|
+
@_builtins.property
|
|
80
|
+
@pulumi.getter(name="alternateNames")
|
|
81
|
+
def alternate_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
82
|
+
"""
|
|
83
|
+
List of alternate names (SANs) for the certificate.
|
|
84
|
+
"""
|
|
85
|
+
return pulumi.get(self, "alternate_names")
|
|
86
|
+
|
|
87
|
+
@alternate_names.setter
|
|
88
|
+
def alternate_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
89
|
+
pulumi.set(self, "alternate_names", value)
|
|
90
|
+
|
|
91
|
+
@_builtins.property
|
|
92
|
+
@pulumi.getter(name="signatureAlgorithm")
|
|
93
|
+
def signature_algorithm(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
94
|
+
"""
|
|
95
|
+
The signature algorithm to use for the certificate.
|
|
96
|
+
"""
|
|
97
|
+
return pulumi.get(self, "signature_algorithm")
|
|
98
|
+
|
|
99
|
+
@signature_algorithm.setter
|
|
100
|
+
def signature_algorithm(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
101
|
+
pulumi.set(self, "signature_algorithm", value)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
@pulumi.input_type
|
|
105
|
+
class _LetsEncryptCertificateState:
|
|
106
|
+
def __init__(__self__, *,
|
|
107
|
+
alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
108
|
+
authority_identifier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
109
|
+
auto_renew: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
110
|
+
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
111
|
+
csr: Optional[pulumi.Input[_builtins.str]] = None,
|
|
112
|
+
domain_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
113
|
+
expires_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
114
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
115
|
+
signature_algorithm: Optional[pulumi.Input[_builtins.str]] = None,
|
|
116
|
+
state: Optional[pulumi.Input[_builtins.str]] = None,
|
|
117
|
+
updated_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
118
|
+
years: Optional[pulumi.Input[_builtins.int]] = None):
|
|
119
|
+
"""
|
|
120
|
+
Input properties used for looking up and filtering LetsEncryptCertificate resources.
|
|
121
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] alternate_names: List of alternate names (SANs) for the certificate.
|
|
122
|
+
:param pulumi.Input[_builtins.str] authority_identifier: The identifying certification authority (CA).
|
|
123
|
+
:param pulumi.Input[_builtins.bool] auto_renew: Whether the certificate should auto-renew.
|
|
124
|
+
:param pulumi.Input[_builtins.str] created_at: The datetime when the certificate was created.
|
|
125
|
+
:param pulumi.Input[_builtins.str] csr: The certificate signing request.
|
|
126
|
+
:param pulumi.Input[_builtins.str] domain_id: The domain name or ID to issue the certificate for.
|
|
127
|
+
:param pulumi.Input[_builtins.str] expires_at: The datetime when the certificate will expire.
|
|
128
|
+
:param pulumi.Input[_builtins.str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
129
|
+
:param pulumi.Input[_builtins.str] signature_algorithm: The signature algorithm to use for the certificate.
|
|
130
|
+
:param pulumi.Input[_builtins.str] state: The state of the certificate.
|
|
131
|
+
:param pulumi.Input[_builtins.str] updated_at: The datetime when the certificate was last updated.
|
|
132
|
+
:param pulumi.Input[_builtins.int] years: The number of years the certificate will last.
|
|
133
|
+
"""
|
|
134
|
+
if alternate_names is not None:
|
|
135
|
+
pulumi.set(__self__, "alternate_names", alternate_names)
|
|
136
|
+
if authority_identifier is not None:
|
|
137
|
+
pulumi.set(__self__, "authority_identifier", authority_identifier)
|
|
138
|
+
if auto_renew is not None:
|
|
139
|
+
pulumi.set(__self__, "auto_renew", auto_renew)
|
|
140
|
+
if created_at is not None:
|
|
141
|
+
pulumi.set(__self__, "created_at", created_at)
|
|
142
|
+
if csr is not None:
|
|
143
|
+
pulumi.set(__self__, "csr", csr)
|
|
144
|
+
if domain_id is not None:
|
|
145
|
+
pulumi.set(__self__, "domain_id", domain_id)
|
|
146
|
+
if expires_at is not None:
|
|
147
|
+
pulumi.set(__self__, "expires_at", expires_at)
|
|
148
|
+
if name is not None:
|
|
149
|
+
pulumi.set(__self__, "name", name)
|
|
150
|
+
if signature_algorithm is not None:
|
|
151
|
+
pulumi.set(__self__, "signature_algorithm", signature_algorithm)
|
|
152
|
+
if state is not None:
|
|
153
|
+
pulumi.set(__self__, "state", state)
|
|
154
|
+
if updated_at is not None:
|
|
155
|
+
pulumi.set(__self__, "updated_at", updated_at)
|
|
156
|
+
if years is not None:
|
|
157
|
+
pulumi.set(__self__, "years", years)
|
|
158
|
+
|
|
159
|
+
@_builtins.property
|
|
160
|
+
@pulumi.getter(name="alternateNames")
|
|
161
|
+
def alternate_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
162
|
+
"""
|
|
163
|
+
List of alternate names (SANs) for the certificate.
|
|
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[_builtins.str]]]]):
|
|
169
|
+
pulumi.set(self, "alternate_names", value)
|
|
170
|
+
|
|
171
|
+
@_builtins.property
|
|
172
|
+
@pulumi.getter(name="authorityIdentifier")
|
|
173
|
+
def authority_identifier(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
174
|
+
"""
|
|
175
|
+
The identifying certification authority (CA).
|
|
176
|
+
"""
|
|
177
|
+
return pulumi.get(self, "authority_identifier")
|
|
178
|
+
|
|
179
|
+
@authority_identifier.setter
|
|
180
|
+
def authority_identifier(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
181
|
+
pulumi.set(self, "authority_identifier", value)
|
|
182
|
+
|
|
183
|
+
@_builtins.property
|
|
184
|
+
@pulumi.getter(name="autoRenew")
|
|
185
|
+
def auto_renew(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
186
|
+
"""
|
|
187
|
+
Whether the certificate should auto-renew.
|
|
188
|
+
"""
|
|
189
|
+
return pulumi.get(self, "auto_renew")
|
|
190
|
+
|
|
191
|
+
@auto_renew.setter
|
|
192
|
+
def auto_renew(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
193
|
+
pulumi.set(self, "auto_renew", value)
|
|
194
|
+
|
|
195
|
+
@_builtins.property
|
|
196
|
+
@pulumi.getter(name="createdAt")
|
|
197
|
+
def created_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
198
|
+
"""
|
|
199
|
+
The datetime when the certificate was created.
|
|
200
|
+
"""
|
|
201
|
+
return pulumi.get(self, "created_at")
|
|
202
|
+
|
|
203
|
+
@created_at.setter
|
|
204
|
+
def created_at(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
205
|
+
pulumi.set(self, "created_at", value)
|
|
206
|
+
|
|
207
|
+
@_builtins.property
|
|
208
|
+
@pulumi.getter
|
|
209
|
+
def csr(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
210
|
+
"""
|
|
211
|
+
The certificate signing request.
|
|
212
|
+
"""
|
|
213
|
+
return pulumi.get(self, "csr")
|
|
214
|
+
|
|
215
|
+
@csr.setter
|
|
216
|
+
def csr(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
217
|
+
pulumi.set(self, "csr", value)
|
|
218
|
+
|
|
219
|
+
@_builtins.property
|
|
220
|
+
@pulumi.getter(name="domainId")
|
|
221
|
+
def domain_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
222
|
+
"""
|
|
223
|
+
The domain name or ID to issue the certificate for.
|
|
224
|
+
"""
|
|
225
|
+
return pulumi.get(self, "domain_id")
|
|
226
|
+
|
|
227
|
+
@domain_id.setter
|
|
228
|
+
def domain_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
229
|
+
pulumi.set(self, "domain_id", value)
|
|
230
|
+
|
|
231
|
+
@_builtins.property
|
|
232
|
+
@pulumi.getter(name="expiresAt")
|
|
233
|
+
def expires_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
234
|
+
"""
|
|
235
|
+
The datetime when the certificate will expire.
|
|
236
|
+
"""
|
|
237
|
+
return pulumi.get(self, "expires_at")
|
|
238
|
+
|
|
239
|
+
@expires_at.setter
|
|
240
|
+
def expires_at(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
241
|
+
pulumi.set(self, "expires_at", value)
|
|
242
|
+
|
|
243
|
+
@_builtins.property
|
|
244
|
+
@pulumi.getter
|
|
245
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
246
|
+
"""
|
|
247
|
+
The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
248
|
+
"""
|
|
249
|
+
return pulumi.get(self, "name")
|
|
250
|
+
|
|
251
|
+
@name.setter
|
|
252
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
253
|
+
pulumi.set(self, "name", value)
|
|
254
|
+
|
|
255
|
+
@_builtins.property
|
|
256
|
+
@pulumi.getter(name="signatureAlgorithm")
|
|
257
|
+
def signature_algorithm(self) -> Optional[pulumi.Input[_builtins.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[_builtins.str]]):
|
|
265
|
+
pulumi.set(self, "signature_algorithm", value)
|
|
266
|
+
|
|
267
|
+
@_builtins.property
|
|
268
|
+
@pulumi.getter
|
|
269
|
+
def state(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
270
|
+
"""
|
|
271
|
+
The state of the certificate.
|
|
272
|
+
"""
|
|
273
|
+
return pulumi.get(self, "state")
|
|
274
|
+
|
|
275
|
+
@state.setter
|
|
276
|
+
def state(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
277
|
+
pulumi.set(self, "state", value)
|
|
278
|
+
|
|
279
|
+
@_builtins.property
|
|
280
|
+
@pulumi.getter(name="updatedAt")
|
|
281
|
+
def updated_at(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
282
|
+
"""
|
|
283
|
+
The datetime when the certificate was last updated.
|
|
284
|
+
"""
|
|
285
|
+
return pulumi.get(self, "updated_at")
|
|
286
|
+
|
|
287
|
+
@updated_at.setter
|
|
288
|
+
def updated_at(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
289
|
+
pulumi.set(self, "updated_at", value)
|
|
290
|
+
|
|
291
|
+
@_builtins.property
|
|
292
|
+
@pulumi.getter
|
|
293
|
+
def years(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
294
|
+
"""
|
|
295
|
+
The number of years the certificate will last.
|
|
296
|
+
"""
|
|
297
|
+
return pulumi.get(self, "years")
|
|
298
|
+
|
|
299
|
+
@years.setter
|
|
300
|
+
def years(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
301
|
+
pulumi.set(self, "years", value)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
@pulumi.type_token("dnsimple:index/letsEncryptCertificate:LetsEncryptCertificate")
|
|
305
|
+
class LetsEncryptCertificate(pulumi.CustomResource):
|
|
306
|
+
@overload
|
|
307
|
+
def __init__(__self__,
|
|
308
|
+
resource_name: str,
|
|
309
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
310
|
+
alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
311
|
+
auto_renew: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
312
|
+
domain_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
313
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
314
|
+
signature_algorithm: Optional[pulumi.Input[_builtins.str]] = None,
|
|
315
|
+
__props__=None):
|
|
316
|
+
"""
|
|
317
|
+
Provides a DNSimple Let's Encrypt certificate resource.
|
|
318
|
+
|
|
319
|
+
## Example Usage
|
|
320
|
+
|
|
321
|
+
```python
|
|
322
|
+
import pulumi
|
|
323
|
+
import pulumi_dnsimple as dnsimple
|
|
324
|
+
|
|
325
|
+
example = dnsimple.LetsEncryptCertificate("example",
|
|
326
|
+
domain_id="example.com",
|
|
327
|
+
name="www",
|
|
328
|
+
auto_renew=True,
|
|
329
|
+
alternate_names=[
|
|
330
|
+
"docs.example.com",
|
|
331
|
+
"status.example.com",
|
|
332
|
+
])
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
## Import
|
|
336
|
+
|
|
337
|
+
DNSimple Let's Encrypt certificates can be imported using the domain name and certificate ID in the format `domain_name_certificate_id`.
|
|
338
|
+
|
|
339
|
+
bash
|
|
340
|
+
|
|
341
|
+
```sh
|
|
342
|
+
$ pulumi import dnsimple:index/letsEncryptCertificate:LetsEncryptCertificate example example.com_1234
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
The certificate ID can be found via the [DNSimple Certificates API](https://developer.dnsimple.com/v2/certificates/#listCertificates).
|
|
346
|
+
|
|
347
|
+
:param str resource_name: The name of the resource.
|
|
348
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
349
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] alternate_names: List of alternate names (SANs) for the certificate.
|
|
350
|
+
:param pulumi.Input[_builtins.bool] auto_renew: Whether the certificate should auto-renew.
|
|
351
|
+
:param pulumi.Input[_builtins.str] domain_id: The domain name or ID to issue the certificate for.
|
|
352
|
+
:param pulumi.Input[_builtins.str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
353
|
+
:param pulumi.Input[_builtins.str] signature_algorithm: The signature algorithm to use for the certificate.
|
|
354
|
+
"""
|
|
355
|
+
...
|
|
356
|
+
@overload
|
|
357
|
+
def __init__(__self__,
|
|
358
|
+
resource_name: str,
|
|
359
|
+
args: LetsEncryptCertificateArgs,
|
|
360
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
361
|
+
"""
|
|
362
|
+
Provides a DNSimple Let's Encrypt certificate resource.
|
|
363
|
+
|
|
364
|
+
## Example Usage
|
|
365
|
+
|
|
366
|
+
```python
|
|
367
|
+
import pulumi
|
|
368
|
+
import pulumi_dnsimple as dnsimple
|
|
369
|
+
|
|
370
|
+
example = dnsimple.LetsEncryptCertificate("example",
|
|
371
|
+
domain_id="example.com",
|
|
372
|
+
name="www",
|
|
373
|
+
auto_renew=True,
|
|
374
|
+
alternate_names=[
|
|
375
|
+
"docs.example.com",
|
|
376
|
+
"status.example.com",
|
|
377
|
+
])
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
## Import
|
|
381
|
+
|
|
382
|
+
DNSimple Let's Encrypt certificates can be imported using the domain name and certificate ID in the format `domain_name_certificate_id`.
|
|
383
|
+
|
|
384
|
+
bash
|
|
385
|
+
|
|
386
|
+
```sh
|
|
387
|
+
$ pulumi import dnsimple:index/letsEncryptCertificate:LetsEncryptCertificate example example.com_1234
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
The certificate ID can be found via the [DNSimple Certificates API](https://developer.dnsimple.com/v2/certificates/#listCertificates).
|
|
391
|
+
|
|
392
|
+
:param str resource_name: The name of the resource.
|
|
393
|
+
:param LetsEncryptCertificateArgs args: The arguments to use to populate this resource's properties.
|
|
394
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
395
|
+
"""
|
|
396
|
+
...
|
|
397
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
398
|
+
resource_args, opts = _utilities.get_resource_args_opts(LetsEncryptCertificateArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
399
|
+
if resource_args is not None:
|
|
400
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
401
|
+
else:
|
|
402
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
403
|
+
|
|
404
|
+
def _internal_init(__self__,
|
|
405
|
+
resource_name: str,
|
|
406
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
407
|
+
alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
408
|
+
auto_renew: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
409
|
+
domain_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
410
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
411
|
+
signature_algorithm: Optional[pulumi.Input[_builtins.str]] = None,
|
|
412
|
+
__props__=None):
|
|
413
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
414
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
415
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
416
|
+
if opts.id is None:
|
|
417
|
+
if __props__ is not None:
|
|
418
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
419
|
+
__props__ = LetsEncryptCertificateArgs.__new__(LetsEncryptCertificateArgs)
|
|
420
|
+
|
|
421
|
+
__props__.__dict__["alternate_names"] = alternate_names
|
|
422
|
+
if auto_renew is None and not opts.urn:
|
|
423
|
+
raise TypeError("Missing required property 'auto_renew'")
|
|
424
|
+
__props__.__dict__["auto_renew"] = auto_renew
|
|
425
|
+
if domain_id is None and not opts.urn:
|
|
426
|
+
raise TypeError("Missing required property 'domain_id'")
|
|
427
|
+
__props__.__dict__["domain_id"] = domain_id
|
|
428
|
+
if name is None and not opts.urn:
|
|
429
|
+
raise TypeError("Missing required property 'name'")
|
|
430
|
+
__props__.__dict__["name"] = name
|
|
431
|
+
__props__.__dict__["signature_algorithm"] = signature_algorithm
|
|
432
|
+
__props__.__dict__["authority_identifier"] = None
|
|
433
|
+
__props__.__dict__["created_at"] = None
|
|
434
|
+
__props__.__dict__["csr"] = None
|
|
435
|
+
__props__.__dict__["expires_at"] = None
|
|
436
|
+
__props__.__dict__["state"] = None
|
|
437
|
+
__props__.__dict__["updated_at"] = None
|
|
438
|
+
__props__.__dict__["years"] = None
|
|
439
|
+
super(LetsEncryptCertificate, __self__).__init__(
|
|
440
|
+
'dnsimple:index/letsEncryptCertificate:LetsEncryptCertificate',
|
|
441
|
+
resource_name,
|
|
442
|
+
__props__,
|
|
443
|
+
opts)
|
|
444
|
+
|
|
445
|
+
@staticmethod
|
|
446
|
+
def get(resource_name: str,
|
|
447
|
+
id: pulumi.Input[str],
|
|
448
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
449
|
+
alternate_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
450
|
+
authority_identifier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
451
|
+
auto_renew: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
452
|
+
created_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
453
|
+
csr: Optional[pulumi.Input[_builtins.str]] = None,
|
|
454
|
+
domain_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
455
|
+
expires_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
456
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
457
|
+
signature_algorithm: Optional[pulumi.Input[_builtins.str]] = None,
|
|
458
|
+
state: Optional[pulumi.Input[_builtins.str]] = None,
|
|
459
|
+
updated_at: Optional[pulumi.Input[_builtins.str]] = None,
|
|
460
|
+
years: Optional[pulumi.Input[_builtins.int]] = None) -> 'LetsEncryptCertificate':
|
|
461
|
+
"""
|
|
462
|
+
Get an existing LetsEncryptCertificate resource's state with the given name, id, and optional extra
|
|
463
|
+
properties used to qualify the lookup.
|
|
464
|
+
|
|
465
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
466
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
467
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
468
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] alternate_names: List of alternate names (SANs) for the certificate.
|
|
469
|
+
:param pulumi.Input[_builtins.str] authority_identifier: The identifying certification authority (CA).
|
|
470
|
+
:param pulumi.Input[_builtins.bool] auto_renew: Whether the certificate should auto-renew.
|
|
471
|
+
:param pulumi.Input[_builtins.str] created_at: The datetime when the certificate was created.
|
|
472
|
+
:param pulumi.Input[_builtins.str] csr: The certificate signing request.
|
|
473
|
+
:param pulumi.Input[_builtins.str] domain_id: The domain name or ID to issue the certificate for.
|
|
474
|
+
:param pulumi.Input[_builtins.str] expires_at: The datetime when the certificate will expire.
|
|
475
|
+
:param pulumi.Input[_builtins.str] name: The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
476
|
+
:param pulumi.Input[_builtins.str] signature_algorithm: The signature algorithm to use for the certificate.
|
|
477
|
+
:param pulumi.Input[_builtins.str] state: The state of the certificate.
|
|
478
|
+
:param pulumi.Input[_builtins.str] updated_at: The datetime when the certificate was last updated.
|
|
479
|
+
:param pulumi.Input[_builtins.int] years: The number of years the certificate will last.
|
|
480
|
+
"""
|
|
481
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
482
|
+
|
|
483
|
+
__props__ = _LetsEncryptCertificateState.__new__(_LetsEncryptCertificateState)
|
|
484
|
+
|
|
485
|
+
__props__.__dict__["alternate_names"] = alternate_names
|
|
486
|
+
__props__.__dict__["authority_identifier"] = authority_identifier
|
|
487
|
+
__props__.__dict__["auto_renew"] = auto_renew
|
|
488
|
+
__props__.__dict__["created_at"] = created_at
|
|
489
|
+
__props__.__dict__["csr"] = csr
|
|
490
|
+
__props__.__dict__["domain_id"] = domain_id
|
|
491
|
+
__props__.__dict__["expires_at"] = expires_at
|
|
492
|
+
__props__.__dict__["name"] = name
|
|
493
|
+
__props__.__dict__["signature_algorithm"] = signature_algorithm
|
|
494
|
+
__props__.__dict__["state"] = state
|
|
495
|
+
__props__.__dict__["updated_at"] = updated_at
|
|
496
|
+
__props__.__dict__["years"] = years
|
|
497
|
+
return LetsEncryptCertificate(resource_name, opts=opts, __props__=__props__)
|
|
498
|
+
|
|
499
|
+
@_builtins.property
|
|
500
|
+
@pulumi.getter(name="alternateNames")
|
|
501
|
+
def alternate_names(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
502
|
+
"""
|
|
503
|
+
List of alternate names (SANs) for the certificate.
|
|
504
|
+
"""
|
|
505
|
+
return pulumi.get(self, "alternate_names")
|
|
506
|
+
|
|
507
|
+
@_builtins.property
|
|
508
|
+
@pulumi.getter(name="authorityIdentifier")
|
|
509
|
+
def authority_identifier(self) -> pulumi.Output[_builtins.str]:
|
|
510
|
+
"""
|
|
511
|
+
The identifying certification authority (CA).
|
|
512
|
+
"""
|
|
513
|
+
return pulumi.get(self, "authority_identifier")
|
|
514
|
+
|
|
515
|
+
@_builtins.property
|
|
516
|
+
@pulumi.getter(name="autoRenew")
|
|
517
|
+
def auto_renew(self) -> pulumi.Output[_builtins.bool]:
|
|
518
|
+
"""
|
|
519
|
+
Whether the certificate should auto-renew.
|
|
520
|
+
"""
|
|
521
|
+
return pulumi.get(self, "auto_renew")
|
|
522
|
+
|
|
523
|
+
@_builtins.property
|
|
524
|
+
@pulumi.getter(name="createdAt")
|
|
525
|
+
def created_at(self) -> pulumi.Output[_builtins.str]:
|
|
526
|
+
"""
|
|
527
|
+
The datetime when the certificate was created.
|
|
528
|
+
"""
|
|
529
|
+
return pulumi.get(self, "created_at")
|
|
530
|
+
|
|
531
|
+
@_builtins.property
|
|
532
|
+
@pulumi.getter
|
|
533
|
+
def csr(self) -> pulumi.Output[_builtins.str]:
|
|
534
|
+
"""
|
|
535
|
+
The certificate signing request.
|
|
536
|
+
"""
|
|
537
|
+
return pulumi.get(self, "csr")
|
|
538
|
+
|
|
539
|
+
@_builtins.property
|
|
540
|
+
@pulumi.getter(name="domainId")
|
|
541
|
+
def domain_id(self) -> pulumi.Output[_builtins.str]:
|
|
542
|
+
"""
|
|
543
|
+
The domain name or ID to issue the certificate for.
|
|
544
|
+
"""
|
|
545
|
+
return pulumi.get(self, "domain_id")
|
|
546
|
+
|
|
547
|
+
@_builtins.property
|
|
548
|
+
@pulumi.getter(name="expiresAt")
|
|
549
|
+
def expires_at(self) -> pulumi.Output[_builtins.str]:
|
|
550
|
+
"""
|
|
551
|
+
The datetime when the certificate will expire.
|
|
552
|
+
"""
|
|
553
|
+
return pulumi.get(self, "expires_at")
|
|
554
|
+
|
|
555
|
+
@_builtins.property
|
|
556
|
+
@pulumi.getter
|
|
557
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
558
|
+
"""
|
|
559
|
+
The certificate name; use `""` for the root domain. Wildcard names are supported.
|
|
560
|
+
"""
|
|
561
|
+
return pulumi.get(self, "name")
|
|
562
|
+
|
|
563
|
+
@_builtins.property
|
|
564
|
+
@pulumi.getter(name="signatureAlgorithm")
|
|
565
|
+
def signature_algorithm(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
566
|
+
"""
|
|
567
|
+
The signature algorithm to use for the certificate.
|
|
568
|
+
"""
|
|
569
|
+
return pulumi.get(self, "signature_algorithm")
|
|
570
|
+
|
|
571
|
+
@_builtins.property
|
|
572
|
+
@pulumi.getter
|
|
573
|
+
def state(self) -> pulumi.Output[_builtins.str]:
|
|
574
|
+
"""
|
|
575
|
+
The state of the certificate.
|
|
576
|
+
"""
|
|
577
|
+
return pulumi.get(self, "state")
|
|
578
|
+
|
|
579
|
+
@_builtins.property
|
|
580
|
+
@pulumi.getter(name="updatedAt")
|
|
581
|
+
def updated_at(self) -> pulumi.Output[_builtins.str]:
|
|
582
|
+
"""
|
|
583
|
+
The datetime when the certificate was last updated.
|
|
584
|
+
"""
|
|
585
|
+
return pulumi.get(self, "updated_at")
|
|
586
|
+
|
|
587
|
+
@_builtins.property
|
|
588
|
+
@pulumi.getter
|
|
589
|
+
def years(self) -> pulumi.Output[_builtins.int]:
|
|
590
|
+
"""
|
|
591
|
+
The number of years the certificate will last.
|
|
592
|
+
"""
|
|
593
|
+
return pulumi.get(self, "years")
|
|
594
|
+
|