pulumi-tls 5.2.0a1745477258__py3-none-any.whl → 5.2.1a1753398320__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_tls/__init__.py +2 -2
- pulumi_tls/_inputs.py +148 -149
- pulumi_tls/_utilities.py +1 -1
- pulumi_tls/cert_request.py +92 -92
- pulumi_tls/config/__init__.py +2 -2
- pulumi_tls/config/__init__.pyi +2 -3
- pulumi_tls/config/outputs.py +18 -19
- pulumi_tls/config/vars.py +3 -4
- pulumi_tls/get_certificate.py +23 -24
- pulumi_tls/get_public_key.py +26 -27
- pulumi_tls/locally_signed_cert.py +180 -180
- pulumi_tls/outputs.py +129 -130
- pulumi_tls/private_key.py +117 -117
- pulumi_tls/provider.py +24 -4
- pulumi_tls/pulumi-plugin.json +1 -1
- pulumi_tls/self_signed_cert.py +217 -217
- {pulumi_tls-5.2.0a1745477258.dist-info → pulumi_tls-5.2.1a1753398320.dist-info}/METADATA +3 -3
- pulumi_tls-5.2.1a1753398320.dist-info/RECORD +21 -0
- {pulumi_tls-5.2.0a1745477258.dist-info → pulumi_tls-5.2.1a1753398320.dist-info}/WHEEL +1 -1
- pulumi_tls-5.2.0a1745477258.dist-info/RECORD +0 -21
- {pulumi_tls-5.2.0a1745477258.dist-info → pulumi_tls-5.2.1a1753398320.dist-info}/top_level.txt +0 -0
pulumi_tls/cert_request.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -22,18 +21,18 @@ __all__ = ['CertRequestArgs', 'CertRequest']
|
|
22
21
|
@pulumi.input_type
|
23
22
|
class CertRequestArgs:
|
24
23
|
def __init__(__self__, *,
|
25
|
-
private_key_pem: pulumi.Input[
|
26
|
-
dns_names: Optional[pulumi.Input[Sequence[pulumi.Input[
|
27
|
-
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[
|
24
|
+
private_key_pem: pulumi.Input[_builtins.str],
|
25
|
+
dns_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
26
|
+
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
28
27
|
subject: Optional[pulumi.Input['CertRequestSubjectArgs']] = None,
|
29
|
-
uris: Optional[pulumi.Input[Sequence[pulumi.Input[
|
28
|
+
uris: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
30
29
|
"""
|
31
30
|
The set of arguments for constructing a CertRequest resource.
|
32
|
-
:param pulumi.Input[
|
33
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
34
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
31
|
+
:param pulumi.Input[_builtins.str] private_key_pem: Private key in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format, that the certificate will belong to. This can be read from a separate file using the `file` interpolation function.
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] dns_names: List of DNS names for which a certificate is being requested (i.e. certificate subjects).
|
33
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ip_addresses: List of IP addresses for which a certificate is being requested (i.e. certificate subjects).
|
35
34
|
:param pulumi.Input['CertRequestSubjectArgs'] subject: The subject for which a certificate is being requested. The acceptable arguments are all optional and their naming is based upon [Issuer Distinguished Names (RFC5280)](https://tools.ietf.org/html/rfc5280#section-4.1.2.4) section.
|
36
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
35
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] uris: List of URIs for which a certificate is being requested (i.e. certificate subjects).
|
37
36
|
"""
|
38
37
|
pulumi.set(__self__, "private_key_pem", private_key_pem)
|
39
38
|
if dns_names is not None:
|
@@ -45,43 +44,43 @@ class CertRequestArgs:
|
|
45
44
|
if uris is not None:
|
46
45
|
pulumi.set(__self__, "uris", uris)
|
47
46
|
|
48
|
-
@property
|
47
|
+
@_builtins.property
|
49
48
|
@pulumi.getter(name="privateKeyPem")
|
50
|
-
def private_key_pem(self) -> pulumi.Input[
|
49
|
+
def private_key_pem(self) -> pulumi.Input[_builtins.str]:
|
51
50
|
"""
|
52
51
|
Private key in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format, that the certificate will belong to. This can be read from a separate file using the `file` interpolation function.
|
53
52
|
"""
|
54
53
|
return pulumi.get(self, "private_key_pem")
|
55
54
|
|
56
55
|
@private_key_pem.setter
|
57
|
-
def private_key_pem(self, value: pulumi.Input[
|
56
|
+
def private_key_pem(self, value: pulumi.Input[_builtins.str]):
|
58
57
|
pulumi.set(self, "private_key_pem", value)
|
59
58
|
|
60
|
-
@property
|
59
|
+
@_builtins.property
|
61
60
|
@pulumi.getter(name="dnsNames")
|
62
|
-
def dns_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
61
|
+
def dns_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
63
62
|
"""
|
64
63
|
List of DNS names for which a certificate is being requested (i.e. certificate subjects).
|
65
64
|
"""
|
66
65
|
return pulumi.get(self, "dns_names")
|
67
66
|
|
68
67
|
@dns_names.setter
|
69
|
-
def dns_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
68
|
+
def dns_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
70
69
|
pulumi.set(self, "dns_names", value)
|
71
70
|
|
72
|
-
@property
|
71
|
+
@_builtins.property
|
73
72
|
@pulumi.getter(name="ipAddresses")
|
74
|
-
def ip_addresses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
73
|
+
def ip_addresses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
75
74
|
"""
|
76
75
|
List of IP addresses for which a certificate is being requested (i.e. certificate subjects).
|
77
76
|
"""
|
78
77
|
return pulumi.get(self, "ip_addresses")
|
79
78
|
|
80
79
|
@ip_addresses.setter
|
81
|
-
def ip_addresses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
80
|
+
def ip_addresses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
82
81
|
pulumi.set(self, "ip_addresses", value)
|
83
82
|
|
84
|
-
@property
|
83
|
+
@_builtins.property
|
85
84
|
@pulumi.getter
|
86
85
|
def subject(self) -> Optional[pulumi.Input['CertRequestSubjectArgs']]:
|
87
86
|
"""
|
@@ -93,38 +92,38 @@ class CertRequestArgs:
|
|
93
92
|
def subject(self, value: Optional[pulumi.Input['CertRequestSubjectArgs']]):
|
94
93
|
pulumi.set(self, "subject", value)
|
95
94
|
|
96
|
-
@property
|
95
|
+
@_builtins.property
|
97
96
|
@pulumi.getter
|
98
|
-
def uris(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
97
|
+
def uris(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
99
98
|
"""
|
100
99
|
List of URIs for which a certificate is being requested (i.e. certificate subjects).
|
101
100
|
"""
|
102
101
|
return pulumi.get(self, "uris")
|
103
102
|
|
104
103
|
@uris.setter
|
105
|
-
def uris(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
104
|
+
def uris(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
106
105
|
pulumi.set(self, "uris", value)
|
107
106
|
|
108
107
|
|
109
108
|
@pulumi.input_type
|
110
109
|
class _CertRequestState:
|
111
110
|
def __init__(__self__, *,
|
112
|
-
cert_request_pem: Optional[pulumi.Input[
|
113
|
-
dns_names: Optional[pulumi.Input[Sequence[pulumi.Input[
|
114
|
-
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[
|
115
|
-
key_algorithm: Optional[pulumi.Input[
|
116
|
-
private_key_pem: Optional[pulumi.Input[
|
111
|
+
cert_request_pem: Optional[pulumi.Input[_builtins.str]] = None,
|
112
|
+
dns_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
113
|
+
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
114
|
+
key_algorithm: Optional[pulumi.Input[_builtins.str]] = None,
|
115
|
+
private_key_pem: Optional[pulumi.Input[_builtins.str]] = None,
|
117
116
|
subject: Optional[pulumi.Input['CertRequestSubjectArgs']] = None,
|
118
|
-
uris: Optional[pulumi.Input[Sequence[pulumi.Input[
|
117
|
+
uris: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
119
118
|
"""
|
120
119
|
Input properties used for looking up and filtering CertRequest resources.
|
121
|
-
:param pulumi.Input[
|
122
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
123
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
124
|
-
:param pulumi.Input[
|
125
|
-
:param pulumi.Input[
|
120
|
+
:param pulumi.Input[_builtins.str] cert_request_pem: The certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the [underlying](https://pkg.go.dev/encoding/pem#Encode) [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\\n` at the end of the PEM. In case this disrupts your use case, we recommend using `trimspace()`.
|
121
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] dns_names: List of DNS names for which a certificate is being requested (i.e. certificate subjects).
|
122
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ip_addresses: List of IP addresses for which a certificate is being requested (i.e. certificate subjects).
|
123
|
+
:param pulumi.Input[_builtins.str] key_algorithm: Name of the algorithm used when generating the private key provided in `private_key_pem`.
|
124
|
+
:param pulumi.Input[_builtins.str] private_key_pem: Private key in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format, that the certificate will belong to. This can be read from a separate file using the `file` interpolation function.
|
126
125
|
:param pulumi.Input['CertRequestSubjectArgs'] subject: The subject for which a certificate is being requested. The acceptable arguments are all optional and their naming is based upon [Issuer Distinguished Names (RFC5280)](https://tools.ietf.org/html/rfc5280#section-4.1.2.4) section.
|
127
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
126
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] uris: List of URIs for which a certificate is being requested (i.e. certificate subjects).
|
128
127
|
"""
|
129
128
|
if cert_request_pem is not None:
|
130
129
|
pulumi.set(__self__, "cert_request_pem", cert_request_pem)
|
@@ -141,67 +140,67 @@ class _CertRequestState:
|
|
141
140
|
if uris is not None:
|
142
141
|
pulumi.set(__self__, "uris", uris)
|
143
142
|
|
144
|
-
@property
|
143
|
+
@_builtins.property
|
145
144
|
@pulumi.getter(name="certRequestPem")
|
146
|
-
def cert_request_pem(self) -> Optional[pulumi.Input[
|
145
|
+
def cert_request_pem(self) -> Optional[pulumi.Input[_builtins.str]]:
|
147
146
|
"""
|
148
147
|
The certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the [underlying](https://pkg.go.dev/encoding/pem#Encode) [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\\n` at the end of the PEM. In case this disrupts your use case, we recommend using `trimspace()`.
|
149
148
|
"""
|
150
149
|
return pulumi.get(self, "cert_request_pem")
|
151
150
|
|
152
151
|
@cert_request_pem.setter
|
153
|
-
def cert_request_pem(self, value: Optional[pulumi.Input[
|
152
|
+
def cert_request_pem(self, value: Optional[pulumi.Input[_builtins.str]]):
|
154
153
|
pulumi.set(self, "cert_request_pem", value)
|
155
154
|
|
156
|
-
@property
|
155
|
+
@_builtins.property
|
157
156
|
@pulumi.getter(name="dnsNames")
|
158
|
-
def dns_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
157
|
+
def dns_names(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
159
158
|
"""
|
160
159
|
List of DNS names for which a certificate is being requested (i.e. certificate subjects).
|
161
160
|
"""
|
162
161
|
return pulumi.get(self, "dns_names")
|
163
162
|
|
164
163
|
@dns_names.setter
|
165
|
-
def dns_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
164
|
+
def dns_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
166
165
|
pulumi.set(self, "dns_names", value)
|
167
166
|
|
168
|
-
@property
|
167
|
+
@_builtins.property
|
169
168
|
@pulumi.getter(name="ipAddresses")
|
170
|
-
def ip_addresses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
169
|
+
def ip_addresses(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
171
170
|
"""
|
172
171
|
List of IP addresses for which a certificate is being requested (i.e. certificate subjects).
|
173
172
|
"""
|
174
173
|
return pulumi.get(self, "ip_addresses")
|
175
174
|
|
176
175
|
@ip_addresses.setter
|
177
|
-
def ip_addresses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
176
|
+
def ip_addresses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
178
177
|
pulumi.set(self, "ip_addresses", value)
|
179
178
|
|
180
|
-
@property
|
179
|
+
@_builtins.property
|
181
180
|
@pulumi.getter(name="keyAlgorithm")
|
182
|
-
def key_algorithm(self) -> Optional[pulumi.Input[
|
181
|
+
def key_algorithm(self) -> Optional[pulumi.Input[_builtins.str]]:
|
183
182
|
"""
|
184
183
|
Name of the algorithm used when generating the private key provided in `private_key_pem`.
|
185
184
|
"""
|
186
185
|
return pulumi.get(self, "key_algorithm")
|
187
186
|
|
188
187
|
@key_algorithm.setter
|
189
|
-
def key_algorithm(self, value: Optional[pulumi.Input[
|
188
|
+
def key_algorithm(self, value: Optional[pulumi.Input[_builtins.str]]):
|
190
189
|
pulumi.set(self, "key_algorithm", value)
|
191
190
|
|
192
|
-
@property
|
191
|
+
@_builtins.property
|
193
192
|
@pulumi.getter(name="privateKeyPem")
|
194
|
-
def private_key_pem(self) -> Optional[pulumi.Input[
|
193
|
+
def private_key_pem(self) -> Optional[pulumi.Input[_builtins.str]]:
|
195
194
|
"""
|
196
195
|
Private key in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format, that the certificate will belong to. This can be read from a separate file using the `file` interpolation function.
|
197
196
|
"""
|
198
197
|
return pulumi.get(self, "private_key_pem")
|
199
198
|
|
200
199
|
@private_key_pem.setter
|
201
|
-
def private_key_pem(self, value: Optional[pulumi.Input[
|
200
|
+
def private_key_pem(self, value: Optional[pulumi.Input[_builtins.str]]):
|
202
201
|
pulumi.set(self, "private_key_pem", value)
|
203
202
|
|
204
|
-
@property
|
203
|
+
@_builtins.property
|
205
204
|
@pulumi.getter
|
206
205
|
def subject(self) -> Optional[pulumi.Input['CertRequestSubjectArgs']]:
|
207
206
|
"""
|
@@ -213,29 +212,30 @@ class _CertRequestState:
|
|
213
212
|
def subject(self, value: Optional[pulumi.Input['CertRequestSubjectArgs']]):
|
214
213
|
pulumi.set(self, "subject", value)
|
215
214
|
|
216
|
-
@property
|
215
|
+
@_builtins.property
|
217
216
|
@pulumi.getter
|
218
|
-
def uris(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
217
|
+
def uris(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
219
218
|
"""
|
220
219
|
List of URIs for which a certificate is being requested (i.e. certificate subjects).
|
221
220
|
"""
|
222
221
|
return pulumi.get(self, "uris")
|
223
222
|
|
224
223
|
@uris.setter
|
225
|
-
def uris(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
224
|
+
def uris(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
226
225
|
pulumi.set(self, "uris", value)
|
227
226
|
|
228
227
|
|
228
|
+
@pulumi.type_token("tls:index/certRequest:CertRequest")
|
229
229
|
class CertRequest(pulumi.CustomResource):
|
230
230
|
@overload
|
231
231
|
def __init__(__self__,
|
232
232
|
resource_name: str,
|
233
233
|
opts: Optional[pulumi.ResourceOptions] = None,
|
234
|
-
dns_names: Optional[pulumi.Input[Sequence[pulumi.Input[
|
235
|
-
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[
|
236
|
-
private_key_pem: Optional[pulumi.Input[
|
234
|
+
dns_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
235
|
+
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
236
|
+
private_key_pem: Optional[pulumi.Input[_builtins.str]] = None,
|
237
237
|
subject: Optional[pulumi.Input[Union['CertRequestSubjectArgs', 'CertRequestSubjectArgsDict']]] = None,
|
238
|
-
uris: Optional[pulumi.Input[Sequence[pulumi.Input[
|
238
|
+
uris: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
239
239
|
__props__=None):
|
240
240
|
"""
|
241
241
|
## Example Usage
|
@@ -255,11 +255,11 @@ class CertRequest(pulumi.CustomResource):
|
|
255
255
|
|
256
256
|
:param str resource_name: The name of the resource.
|
257
257
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
258
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
259
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
260
|
-
:param pulumi.Input[
|
258
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] dns_names: List of DNS names for which a certificate is being requested (i.e. certificate subjects).
|
259
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ip_addresses: List of IP addresses for which a certificate is being requested (i.e. certificate subjects).
|
260
|
+
:param pulumi.Input[_builtins.str] private_key_pem: Private key in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format, that the certificate will belong to. This can be read from a separate file using the `file` interpolation function.
|
261
261
|
:param pulumi.Input[Union['CertRequestSubjectArgs', 'CertRequestSubjectArgsDict']] subject: The subject for which a certificate is being requested. The acceptable arguments are all optional and their naming is based upon [Issuer Distinguished Names (RFC5280)](https://tools.ietf.org/html/rfc5280#section-4.1.2.4) section.
|
262
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
262
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] uris: List of URIs for which a certificate is being requested (i.e. certificate subjects).
|
263
263
|
"""
|
264
264
|
...
|
265
265
|
@overload
|
@@ -298,11 +298,11 @@ class CertRequest(pulumi.CustomResource):
|
|
298
298
|
def _internal_init(__self__,
|
299
299
|
resource_name: str,
|
300
300
|
opts: Optional[pulumi.ResourceOptions] = None,
|
301
|
-
dns_names: Optional[pulumi.Input[Sequence[pulumi.Input[
|
302
|
-
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[
|
303
|
-
private_key_pem: Optional[pulumi.Input[
|
301
|
+
dns_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
302
|
+
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
303
|
+
private_key_pem: Optional[pulumi.Input[_builtins.str]] = None,
|
304
304
|
subject: Optional[pulumi.Input[Union['CertRequestSubjectArgs', 'CertRequestSubjectArgsDict']]] = None,
|
305
|
-
uris: Optional[pulumi.Input[Sequence[pulumi.Input[
|
305
|
+
uris: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
306
306
|
__props__=None):
|
307
307
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
308
308
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -333,13 +333,13 @@ class CertRequest(pulumi.CustomResource):
|
|
333
333
|
def get(resource_name: str,
|
334
334
|
id: pulumi.Input[str],
|
335
335
|
opts: Optional[pulumi.ResourceOptions] = None,
|
336
|
-
cert_request_pem: Optional[pulumi.Input[
|
337
|
-
dns_names: Optional[pulumi.Input[Sequence[pulumi.Input[
|
338
|
-
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[
|
339
|
-
key_algorithm: Optional[pulumi.Input[
|
340
|
-
private_key_pem: Optional[pulumi.Input[
|
336
|
+
cert_request_pem: Optional[pulumi.Input[_builtins.str]] = None,
|
337
|
+
dns_names: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
338
|
+
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
339
|
+
key_algorithm: Optional[pulumi.Input[_builtins.str]] = None,
|
340
|
+
private_key_pem: Optional[pulumi.Input[_builtins.str]] = None,
|
341
341
|
subject: Optional[pulumi.Input[Union['CertRequestSubjectArgs', 'CertRequestSubjectArgsDict']]] = None,
|
342
|
-
uris: Optional[pulumi.Input[Sequence[pulumi.Input[
|
342
|
+
uris: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'CertRequest':
|
343
343
|
"""
|
344
344
|
Get an existing CertRequest resource's state with the given name, id, and optional extra
|
345
345
|
properties used to qualify the lookup.
|
@@ -347,13 +347,13 @@ class CertRequest(pulumi.CustomResource):
|
|
347
347
|
:param str resource_name: The unique name of the resulting resource.
|
348
348
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
349
349
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
350
|
-
:param pulumi.Input[
|
351
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
352
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
353
|
-
:param pulumi.Input[
|
354
|
-
:param pulumi.Input[
|
350
|
+
:param pulumi.Input[_builtins.str] cert_request_pem: The certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the [underlying](https://pkg.go.dev/encoding/pem#Encode) [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\\n` at the end of the PEM. In case this disrupts your use case, we recommend using `trimspace()`.
|
351
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] dns_names: List of DNS names for which a certificate is being requested (i.e. certificate subjects).
|
352
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] ip_addresses: List of IP addresses for which a certificate is being requested (i.e. certificate subjects).
|
353
|
+
:param pulumi.Input[_builtins.str] key_algorithm: Name of the algorithm used when generating the private key provided in `private_key_pem`.
|
354
|
+
:param pulumi.Input[_builtins.str] private_key_pem: Private key in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format, that the certificate will belong to. This can be read from a separate file using the `file` interpolation function.
|
355
355
|
:param pulumi.Input[Union['CertRequestSubjectArgs', 'CertRequestSubjectArgsDict']] subject: The subject for which a certificate is being requested. The acceptable arguments are all optional and their naming is based upon [Issuer Distinguished Names (RFC5280)](https://tools.ietf.org/html/rfc5280#section-4.1.2.4) section.
|
356
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
356
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] uris: List of URIs for which a certificate is being requested (i.e. certificate subjects).
|
357
357
|
"""
|
358
358
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
359
359
|
|
@@ -368,47 +368,47 @@ class CertRequest(pulumi.CustomResource):
|
|
368
368
|
__props__.__dict__["uris"] = uris
|
369
369
|
return CertRequest(resource_name, opts=opts, __props__=__props__)
|
370
370
|
|
371
|
-
@property
|
371
|
+
@_builtins.property
|
372
372
|
@pulumi.getter(name="certRequestPem")
|
373
|
-
def cert_request_pem(self) -> pulumi.Output[
|
373
|
+
def cert_request_pem(self) -> pulumi.Output[_builtins.str]:
|
374
374
|
"""
|
375
375
|
The certificate request data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format. **NOTE**: the [underlying](https://pkg.go.dev/encoding/pem#Encode) [libraries](https://pkg.go.dev/golang.org/x/crypto/ssh#MarshalAuthorizedKey) that generate this value append a `\\n` at the end of the PEM. In case this disrupts your use case, we recommend using `trimspace()`.
|
376
376
|
"""
|
377
377
|
return pulumi.get(self, "cert_request_pem")
|
378
378
|
|
379
|
-
@property
|
379
|
+
@_builtins.property
|
380
380
|
@pulumi.getter(name="dnsNames")
|
381
|
-
def dns_names(self) -> pulumi.Output[Optional[Sequence[
|
381
|
+
def dns_names(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
382
382
|
"""
|
383
383
|
List of DNS names for which a certificate is being requested (i.e. certificate subjects).
|
384
384
|
"""
|
385
385
|
return pulumi.get(self, "dns_names")
|
386
386
|
|
387
|
-
@property
|
387
|
+
@_builtins.property
|
388
388
|
@pulumi.getter(name="ipAddresses")
|
389
|
-
def ip_addresses(self) -> pulumi.Output[Optional[Sequence[
|
389
|
+
def ip_addresses(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
390
390
|
"""
|
391
391
|
List of IP addresses for which a certificate is being requested (i.e. certificate subjects).
|
392
392
|
"""
|
393
393
|
return pulumi.get(self, "ip_addresses")
|
394
394
|
|
395
|
-
@property
|
395
|
+
@_builtins.property
|
396
396
|
@pulumi.getter(name="keyAlgorithm")
|
397
|
-
def key_algorithm(self) -> pulumi.Output[
|
397
|
+
def key_algorithm(self) -> pulumi.Output[_builtins.str]:
|
398
398
|
"""
|
399
399
|
Name of the algorithm used when generating the private key provided in `private_key_pem`.
|
400
400
|
"""
|
401
401
|
return pulumi.get(self, "key_algorithm")
|
402
402
|
|
403
|
-
@property
|
403
|
+
@_builtins.property
|
404
404
|
@pulumi.getter(name="privateKeyPem")
|
405
|
-
def private_key_pem(self) -> pulumi.Output[
|
405
|
+
def private_key_pem(self) -> pulumi.Output[_builtins.str]:
|
406
406
|
"""
|
407
407
|
Private key in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format, that the certificate will belong to. This can be read from a separate file using the `file` interpolation function.
|
408
408
|
"""
|
409
409
|
return pulumi.get(self, "private_key_pem")
|
410
410
|
|
411
|
-
@property
|
411
|
+
@_builtins.property
|
412
412
|
@pulumi.getter
|
413
413
|
def subject(self) -> pulumi.Output[Optional['outputs.CertRequestSubject']]:
|
414
414
|
"""
|
@@ -416,9 +416,9 @@ class CertRequest(pulumi.CustomResource):
|
|
416
416
|
"""
|
417
417
|
return pulumi.get(self, "subject")
|
418
418
|
|
419
|
-
@property
|
419
|
+
@_builtins.property
|
420
420
|
@pulumi.getter
|
421
|
-
def uris(self) -> pulumi.Output[Optional[Sequence[
|
421
|
+
def uris(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
422
422
|
"""
|
423
423
|
List of URIs for which a certificate is being requested (i.e. certificate subjects).
|
424
424
|
"""
|
pulumi_tls/config/__init__.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
5
|
+
import builtins as _builtins
|
6
6
|
import sys
|
7
7
|
from .vars import _ExportableConfig
|
8
8
|
|
pulumi_tls/config/__init__.pyi
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
pulumi_tls/config/outputs.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -22,15 +21,15 @@ __all__ = [
|
|
22
21
|
@pulumi.output_type
|
23
22
|
class Proxy(dict):
|
24
23
|
def __init__(__self__, *,
|
25
|
-
from_env: Optional[
|
26
|
-
password: Optional[
|
27
|
-
url: Optional[
|
28
|
-
username: Optional[
|
24
|
+
from_env: Optional[_builtins.bool] = None,
|
25
|
+
password: Optional[_builtins.str] = None,
|
26
|
+
url: Optional[_builtins.str] = None,
|
27
|
+
username: Optional[_builtins.str] = None):
|
29
28
|
"""
|
30
|
-
:param
|
31
|
-
:param
|
32
|
-
:param
|
33
|
-
:param
|
29
|
+
:param _builtins.bool from_env: When `true` the provider will discover the proxy configuration from environment variables. This is based upon [`http.ProxyFromEnvironment`](https://pkg.go.dev/net/http#ProxyFromEnvironment) and it supports the same environment variables (default: `true`).
|
30
|
+
:param _builtins.str password: Password used for Basic authentication against the Proxy.
|
31
|
+
:param _builtins.str url: URL used to connect to the Proxy. Accepted schemes are: `http`, `https`, `socks5`.
|
32
|
+
:param _builtins.str username: Username (or Token) used for Basic authentication against the Proxy.
|
34
33
|
"""
|
35
34
|
if from_env is not None:
|
36
35
|
pulumi.set(__self__, "from_env", from_env)
|
@@ -41,33 +40,33 @@ class Proxy(dict):
|
|
41
40
|
if username is not None:
|
42
41
|
pulumi.set(__self__, "username", username)
|
43
42
|
|
44
|
-
@property
|
43
|
+
@_builtins.property
|
45
44
|
@pulumi.getter(name="fromEnv")
|
46
|
-
def from_env(self) -> Optional[
|
45
|
+
def from_env(self) -> Optional[_builtins.bool]:
|
47
46
|
"""
|
48
47
|
When `true` the provider will discover the proxy configuration from environment variables. This is based upon [`http.ProxyFromEnvironment`](https://pkg.go.dev/net/http#ProxyFromEnvironment) and it supports the same environment variables (default: `true`).
|
49
48
|
"""
|
50
49
|
return pulumi.get(self, "from_env")
|
51
50
|
|
52
|
-
@property
|
51
|
+
@_builtins.property
|
53
52
|
@pulumi.getter
|
54
|
-
def password(self) -> Optional[
|
53
|
+
def password(self) -> Optional[_builtins.str]:
|
55
54
|
"""
|
56
55
|
Password used for Basic authentication against the Proxy.
|
57
56
|
"""
|
58
57
|
return pulumi.get(self, "password")
|
59
58
|
|
60
|
-
@property
|
59
|
+
@_builtins.property
|
61
60
|
@pulumi.getter
|
62
|
-
def url(self) -> Optional[
|
61
|
+
def url(self) -> Optional[_builtins.str]:
|
63
62
|
"""
|
64
63
|
URL used to connect to the Proxy. Accepted schemes are: `http`, `https`, `socks5`.
|
65
64
|
"""
|
66
65
|
return pulumi.get(self, "url")
|
67
66
|
|
68
|
-
@property
|
67
|
+
@_builtins.property
|
69
68
|
@pulumi.getter
|
70
|
-
def username(self) -> Optional[
|
69
|
+
def username(self) -> Optional[_builtins.str]:
|
71
70
|
"""
|
72
71
|
Username (or Token) used for Basic authentication against the Proxy.
|
73
72
|
"""
|
pulumi_tls/config/vars.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# coding=utf-8
|
2
|
-
# *** WARNING: this file was generated by
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -22,7 +21,7 @@ __config__ = pulumi.Config('tls')
|
|
22
21
|
|
23
22
|
|
24
23
|
class _ExportableConfig(types.ModuleType):
|
25
|
-
@property
|
24
|
+
@_builtins.property
|
26
25
|
def proxy(self) -> Optional[str]:
|
27
26
|
"""
|
28
27
|
Proxy used by resources and data sources that connect to external endpoints.
|