pulumi-tls 5.2.0a1745465678__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.0a1745465678.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.0a1745465678.dist-info → pulumi_tls-5.2.1a1753398320.dist-info}/WHEEL +1 -1
- pulumi_tls-5.2.0a1745465678.dist-info/RECORD +0 -21
- {pulumi_tls-5.2.0a1745465678.dist-info → pulumi_tls-5.2.1a1753398320.dist-info}/top_level.txt +0 -0
pulumi_tls/private_key.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
|
@@ -20,14 +19,14 @@ __all__ = ['PrivateKeyArgs', 'PrivateKey']
|
|
20
19
|
@pulumi.input_type
|
21
20
|
class PrivateKeyArgs:
|
22
21
|
def __init__(__self__, *,
|
23
|
-
algorithm: pulumi.Input[
|
24
|
-
ecdsa_curve: Optional[pulumi.Input[
|
25
|
-
rsa_bits: Optional[pulumi.Input[
|
22
|
+
algorithm: pulumi.Input[_builtins.str],
|
23
|
+
ecdsa_curve: Optional[pulumi.Input[_builtins.str]] = None,
|
24
|
+
rsa_bits: Optional[pulumi.Input[_builtins.int]] = None):
|
26
25
|
"""
|
27
26
|
The set of arguments for constructing a PrivateKey resource.
|
28
|
-
:param pulumi.Input[
|
29
|
-
:param pulumi.Input[
|
30
|
-
:param pulumi.Input[
|
27
|
+
:param pulumi.Input[_builtins.str] algorithm: Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
28
|
+
:param pulumi.Input[_builtins.str] ecdsa_curve: When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
29
|
+
:param pulumi.Input[_builtins.int] rsa_bits: When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
31
30
|
"""
|
32
31
|
pulumi.set(__self__, "algorithm", algorithm)
|
33
32
|
if ecdsa_curve is not None:
|
@@ -35,68 +34,68 @@ class PrivateKeyArgs:
|
|
35
34
|
if rsa_bits is not None:
|
36
35
|
pulumi.set(__self__, "rsa_bits", rsa_bits)
|
37
36
|
|
38
|
-
@property
|
37
|
+
@_builtins.property
|
39
38
|
@pulumi.getter
|
40
|
-
def algorithm(self) -> pulumi.Input[
|
39
|
+
def algorithm(self) -> pulumi.Input[_builtins.str]:
|
41
40
|
"""
|
42
41
|
Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
43
42
|
"""
|
44
43
|
return pulumi.get(self, "algorithm")
|
45
44
|
|
46
45
|
@algorithm.setter
|
47
|
-
def algorithm(self, value: pulumi.Input[
|
46
|
+
def algorithm(self, value: pulumi.Input[_builtins.str]):
|
48
47
|
pulumi.set(self, "algorithm", value)
|
49
48
|
|
50
|
-
@property
|
49
|
+
@_builtins.property
|
51
50
|
@pulumi.getter(name="ecdsaCurve")
|
52
|
-
def ecdsa_curve(self) -> Optional[pulumi.Input[
|
51
|
+
def ecdsa_curve(self) -> Optional[pulumi.Input[_builtins.str]]:
|
53
52
|
"""
|
54
53
|
When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
55
54
|
"""
|
56
55
|
return pulumi.get(self, "ecdsa_curve")
|
57
56
|
|
58
57
|
@ecdsa_curve.setter
|
59
|
-
def ecdsa_curve(self, value: Optional[pulumi.Input[
|
58
|
+
def ecdsa_curve(self, value: Optional[pulumi.Input[_builtins.str]]):
|
60
59
|
pulumi.set(self, "ecdsa_curve", value)
|
61
60
|
|
62
|
-
@property
|
61
|
+
@_builtins.property
|
63
62
|
@pulumi.getter(name="rsaBits")
|
64
|
-
def rsa_bits(self) -> Optional[pulumi.Input[
|
63
|
+
def rsa_bits(self) -> Optional[pulumi.Input[_builtins.int]]:
|
65
64
|
"""
|
66
65
|
When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
67
66
|
"""
|
68
67
|
return pulumi.get(self, "rsa_bits")
|
69
68
|
|
70
69
|
@rsa_bits.setter
|
71
|
-
def rsa_bits(self, value: Optional[pulumi.Input[
|
70
|
+
def rsa_bits(self, value: Optional[pulumi.Input[_builtins.int]]):
|
72
71
|
pulumi.set(self, "rsa_bits", value)
|
73
72
|
|
74
73
|
|
75
74
|
@pulumi.input_type
|
76
75
|
class _PrivateKeyState:
|
77
76
|
def __init__(__self__, *,
|
78
|
-
algorithm: Optional[pulumi.Input[
|
79
|
-
ecdsa_curve: Optional[pulumi.Input[
|
80
|
-
private_key_openssh: Optional[pulumi.Input[
|
81
|
-
private_key_pem: Optional[pulumi.Input[
|
82
|
-
private_key_pem_pkcs8: Optional[pulumi.Input[
|
83
|
-
public_key_fingerprint_md5: Optional[pulumi.Input[
|
84
|
-
public_key_fingerprint_sha256: Optional[pulumi.Input[
|
85
|
-
public_key_openssh: Optional[pulumi.Input[
|
86
|
-
public_key_pem: Optional[pulumi.Input[
|
87
|
-
rsa_bits: Optional[pulumi.Input[
|
77
|
+
algorithm: Optional[pulumi.Input[_builtins.str]] = None,
|
78
|
+
ecdsa_curve: Optional[pulumi.Input[_builtins.str]] = None,
|
79
|
+
private_key_openssh: Optional[pulumi.Input[_builtins.str]] = None,
|
80
|
+
private_key_pem: Optional[pulumi.Input[_builtins.str]] = None,
|
81
|
+
private_key_pem_pkcs8: Optional[pulumi.Input[_builtins.str]] = None,
|
82
|
+
public_key_fingerprint_md5: Optional[pulumi.Input[_builtins.str]] = None,
|
83
|
+
public_key_fingerprint_sha256: Optional[pulumi.Input[_builtins.str]] = None,
|
84
|
+
public_key_openssh: Optional[pulumi.Input[_builtins.str]] = None,
|
85
|
+
public_key_pem: Optional[pulumi.Input[_builtins.str]] = None,
|
86
|
+
rsa_bits: Optional[pulumi.Input[_builtins.int]] = None):
|
88
87
|
"""
|
89
88
|
Input properties used for looking up and filtering PrivateKey resources.
|
90
|
-
:param pulumi.Input[
|
91
|
-
:param pulumi.Input[
|
92
|
-
:param pulumi.Input[
|
93
|
-
:param pulumi.Input[
|
94
|
-
:param pulumi.Input[
|
95
|
-
:param pulumi.Input[
|
96
|
-
:param pulumi.Input[
|
97
|
-
:param pulumi.Input[
|
98
|
-
:param pulumi.Input[
|
99
|
-
:param pulumi.Input[
|
89
|
+
:param pulumi.Input[_builtins.str] algorithm: Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
90
|
+
:param pulumi.Input[_builtins.str] ecdsa_curve: When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
91
|
+
:param pulumi.Input[_builtins.str] private_key_openssh: Private key data in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format.
|
92
|
+
:param pulumi.Input[_builtins.str] private_key_pem: Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
93
|
+
:param pulumi.Input[_builtins.str] private_key_pem_pkcs8: Private key data in [PKCS#8 PEM (RFC 5208)](https://datatracker.ietf.org/doc/html/rfc5208) format.
|
94
|
+
:param pulumi.Input[_builtins.str] public_key_fingerprint_md5: The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. `aa:bb:cc:...`. Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations.
|
95
|
+
:param pulumi.Input[_builtins.str] public_key_fingerprint_sha256: The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:...`. Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations.
|
96
|
+
:param pulumi.Input[_builtins.str] public_key_openssh: The public key data in ["Authorized Keys"](https://www.ssh.com/academy/ssh/authorized_keys/openssh#format-of-the-authorized-keys-file) format. This is not populated for `ECDSA` with curve `P224`, as it is not supported. **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()`.
|
97
|
+
:param pulumi.Input[_builtins.str] public_key_pem: Public key 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()`.
|
98
|
+
:param pulumi.Input[_builtins.int] rsa_bits: When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
100
99
|
"""
|
101
100
|
if algorithm is not None:
|
102
101
|
pulumi.set(__self__, "algorithm", algorithm)
|
@@ -119,143 +118,144 @@ class _PrivateKeyState:
|
|
119
118
|
if rsa_bits is not None:
|
120
119
|
pulumi.set(__self__, "rsa_bits", rsa_bits)
|
121
120
|
|
122
|
-
@property
|
121
|
+
@_builtins.property
|
123
122
|
@pulumi.getter
|
124
|
-
def algorithm(self) -> Optional[pulumi.Input[
|
123
|
+
def algorithm(self) -> Optional[pulumi.Input[_builtins.str]]:
|
125
124
|
"""
|
126
125
|
Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
127
126
|
"""
|
128
127
|
return pulumi.get(self, "algorithm")
|
129
128
|
|
130
129
|
@algorithm.setter
|
131
|
-
def algorithm(self, value: Optional[pulumi.Input[
|
130
|
+
def algorithm(self, value: Optional[pulumi.Input[_builtins.str]]):
|
132
131
|
pulumi.set(self, "algorithm", value)
|
133
132
|
|
134
|
-
@property
|
133
|
+
@_builtins.property
|
135
134
|
@pulumi.getter(name="ecdsaCurve")
|
136
|
-
def ecdsa_curve(self) -> Optional[pulumi.Input[
|
135
|
+
def ecdsa_curve(self) -> Optional[pulumi.Input[_builtins.str]]:
|
137
136
|
"""
|
138
137
|
When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
139
138
|
"""
|
140
139
|
return pulumi.get(self, "ecdsa_curve")
|
141
140
|
|
142
141
|
@ecdsa_curve.setter
|
143
|
-
def ecdsa_curve(self, value: Optional[pulumi.Input[
|
142
|
+
def ecdsa_curve(self, value: Optional[pulumi.Input[_builtins.str]]):
|
144
143
|
pulumi.set(self, "ecdsa_curve", value)
|
145
144
|
|
146
|
-
@property
|
145
|
+
@_builtins.property
|
147
146
|
@pulumi.getter(name="privateKeyOpenssh")
|
148
|
-
def private_key_openssh(self) -> Optional[pulumi.Input[
|
147
|
+
def private_key_openssh(self) -> Optional[pulumi.Input[_builtins.str]]:
|
149
148
|
"""
|
150
149
|
Private key data in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format.
|
151
150
|
"""
|
152
151
|
return pulumi.get(self, "private_key_openssh")
|
153
152
|
|
154
153
|
@private_key_openssh.setter
|
155
|
-
def private_key_openssh(self, value: Optional[pulumi.Input[
|
154
|
+
def private_key_openssh(self, value: Optional[pulumi.Input[_builtins.str]]):
|
156
155
|
pulumi.set(self, "private_key_openssh", value)
|
157
156
|
|
158
|
-
@property
|
157
|
+
@_builtins.property
|
159
158
|
@pulumi.getter(name="privateKeyPem")
|
160
|
-
def private_key_pem(self) -> Optional[pulumi.Input[
|
159
|
+
def private_key_pem(self) -> Optional[pulumi.Input[_builtins.str]]:
|
161
160
|
"""
|
162
161
|
Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
163
162
|
"""
|
164
163
|
return pulumi.get(self, "private_key_pem")
|
165
164
|
|
166
165
|
@private_key_pem.setter
|
167
|
-
def private_key_pem(self, value: Optional[pulumi.Input[
|
166
|
+
def private_key_pem(self, value: Optional[pulumi.Input[_builtins.str]]):
|
168
167
|
pulumi.set(self, "private_key_pem", value)
|
169
168
|
|
170
|
-
@property
|
169
|
+
@_builtins.property
|
171
170
|
@pulumi.getter(name="privateKeyPemPkcs8")
|
172
|
-
def private_key_pem_pkcs8(self) -> Optional[pulumi.Input[
|
171
|
+
def private_key_pem_pkcs8(self) -> Optional[pulumi.Input[_builtins.str]]:
|
173
172
|
"""
|
174
173
|
Private key data in [PKCS#8 PEM (RFC 5208)](https://datatracker.ietf.org/doc/html/rfc5208) format.
|
175
174
|
"""
|
176
175
|
return pulumi.get(self, "private_key_pem_pkcs8")
|
177
176
|
|
178
177
|
@private_key_pem_pkcs8.setter
|
179
|
-
def private_key_pem_pkcs8(self, value: Optional[pulumi.Input[
|
178
|
+
def private_key_pem_pkcs8(self, value: Optional[pulumi.Input[_builtins.str]]):
|
180
179
|
pulumi.set(self, "private_key_pem_pkcs8", value)
|
181
180
|
|
182
|
-
@property
|
181
|
+
@_builtins.property
|
183
182
|
@pulumi.getter(name="publicKeyFingerprintMd5")
|
184
|
-
def public_key_fingerprint_md5(self) -> Optional[pulumi.Input[
|
183
|
+
def public_key_fingerprint_md5(self) -> Optional[pulumi.Input[_builtins.str]]:
|
185
184
|
"""
|
186
185
|
The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. `aa:bb:cc:...`. Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations.
|
187
186
|
"""
|
188
187
|
return pulumi.get(self, "public_key_fingerprint_md5")
|
189
188
|
|
190
189
|
@public_key_fingerprint_md5.setter
|
191
|
-
def public_key_fingerprint_md5(self, value: Optional[pulumi.Input[
|
190
|
+
def public_key_fingerprint_md5(self, value: Optional[pulumi.Input[_builtins.str]]):
|
192
191
|
pulumi.set(self, "public_key_fingerprint_md5", value)
|
193
192
|
|
194
|
-
@property
|
193
|
+
@_builtins.property
|
195
194
|
@pulumi.getter(name="publicKeyFingerprintSha256")
|
196
|
-
def public_key_fingerprint_sha256(self) -> Optional[pulumi.Input[
|
195
|
+
def public_key_fingerprint_sha256(self) -> Optional[pulumi.Input[_builtins.str]]:
|
197
196
|
"""
|
198
197
|
The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:...`. Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations.
|
199
198
|
"""
|
200
199
|
return pulumi.get(self, "public_key_fingerprint_sha256")
|
201
200
|
|
202
201
|
@public_key_fingerprint_sha256.setter
|
203
|
-
def public_key_fingerprint_sha256(self, value: Optional[pulumi.Input[
|
202
|
+
def public_key_fingerprint_sha256(self, value: Optional[pulumi.Input[_builtins.str]]):
|
204
203
|
pulumi.set(self, "public_key_fingerprint_sha256", value)
|
205
204
|
|
206
|
-
@property
|
205
|
+
@_builtins.property
|
207
206
|
@pulumi.getter(name="publicKeyOpenssh")
|
208
|
-
def public_key_openssh(self) -> Optional[pulumi.Input[
|
207
|
+
def public_key_openssh(self) -> Optional[pulumi.Input[_builtins.str]]:
|
209
208
|
"""
|
210
209
|
The public key data in ["Authorized Keys"](https://www.ssh.com/academy/ssh/authorized_keys/openssh#format-of-the-authorized-keys-file) format. This is not populated for `ECDSA` with curve `P224`, as it is not supported. **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()`.
|
211
210
|
"""
|
212
211
|
return pulumi.get(self, "public_key_openssh")
|
213
212
|
|
214
213
|
@public_key_openssh.setter
|
215
|
-
def public_key_openssh(self, value: Optional[pulumi.Input[
|
214
|
+
def public_key_openssh(self, value: Optional[pulumi.Input[_builtins.str]]):
|
216
215
|
pulumi.set(self, "public_key_openssh", value)
|
217
216
|
|
218
|
-
@property
|
217
|
+
@_builtins.property
|
219
218
|
@pulumi.getter(name="publicKeyPem")
|
220
|
-
def public_key_pem(self) -> Optional[pulumi.Input[
|
219
|
+
def public_key_pem(self) -> Optional[pulumi.Input[_builtins.str]]:
|
221
220
|
"""
|
222
221
|
Public key 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()`.
|
223
222
|
"""
|
224
223
|
return pulumi.get(self, "public_key_pem")
|
225
224
|
|
226
225
|
@public_key_pem.setter
|
227
|
-
def public_key_pem(self, value: Optional[pulumi.Input[
|
226
|
+
def public_key_pem(self, value: Optional[pulumi.Input[_builtins.str]]):
|
228
227
|
pulumi.set(self, "public_key_pem", value)
|
229
228
|
|
230
|
-
@property
|
229
|
+
@_builtins.property
|
231
230
|
@pulumi.getter(name="rsaBits")
|
232
|
-
def rsa_bits(self) -> Optional[pulumi.Input[
|
231
|
+
def rsa_bits(self) -> Optional[pulumi.Input[_builtins.int]]:
|
233
232
|
"""
|
234
233
|
When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
235
234
|
"""
|
236
235
|
return pulumi.get(self, "rsa_bits")
|
237
236
|
|
238
237
|
@rsa_bits.setter
|
239
|
-
def rsa_bits(self, value: Optional[pulumi.Input[
|
238
|
+
def rsa_bits(self, value: Optional[pulumi.Input[_builtins.int]]):
|
240
239
|
pulumi.set(self, "rsa_bits", value)
|
241
240
|
|
242
241
|
|
242
|
+
@pulumi.type_token("tls:index/privateKey:PrivateKey")
|
243
243
|
class PrivateKey(pulumi.CustomResource):
|
244
244
|
@overload
|
245
245
|
def __init__(__self__,
|
246
246
|
resource_name: str,
|
247
247
|
opts: Optional[pulumi.ResourceOptions] = None,
|
248
|
-
algorithm: Optional[pulumi.Input[
|
249
|
-
ecdsa_curve: Optional[pulumi.Input[
|
250
|
-
rsa_bits: Optional[pulumi.Input[
|
248
|
+
algorithm: Optional[pulumi.Input[_builtins.str]] = None,
|
249
|
+
ecdsa_curve: Optional[pulumi.Input[_builtins.str]] = None,
|
250
|
+
rsa_bits: Optional[pulumi.Input[_builtins.int]] = None,
|
251
251
|
__props__=None):
|
252
252
|
"""
|
253
253
|
Create a PrivateKey resource with the given unique name, props, and options.
|
254
254
|
:param str resource_name: The name of the resource.
|
255
255
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
256
|
-
:param pulumi.Input[
|
257
|
-
:param pulumi.Input[
|
258
|
-
:param pulumi.Input[
|
256
|
+
:param pulumi.Input[_builtins.str] algorithm: Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
257
|
+
:param pulumi.Input[_builtins.str] ecdsa_curve: When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
258
|
+
:param pulumi.Input[_builtins.int] rsa_bits: When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
259
259
|
"""
|
260
260
|
...
|
261
261
|
@overload
|
@@ -280,9 +280,9 @@ class PrivateKey(pulumi.CustomResource):
|
|
280
280
|
def _internal_init(__self__,
|
281
281
|
resource_name: str,
|
282
282
|
opts: Optional[pulumi.ResourceOptions] = None,
|
283
|
-
algorithm: Optional[pulumi.Input[
|
284
|
-
ecdsa_curve: Optional[pulumi.Input[
|
285
|
-
rsa_bits: Optional[pulumi.Input[
|
283
|
+
algorithm: Optional[pulumi.Input[_builtins.str]] = None,
|
284
|
+
ecdsa_curve: Optional[pulumi.Input[_builtins.str]] = None,
|
285
|
+
rsa_bits: Optional[pulumi.Input[_builtins.int]] = None,
|
286
286
|
__props__=None):
|
287
287
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
288
288
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -316,16 +316,16 @@ class PrivateKey(pulumi.CustomResource):
|
|
316
316
|
def get(resource_name: str,
|
317
317
|
id: pulumi.Input[str],
|
318
318
|
opts: Optional[pulumi.ResourceOptions] = None,
|
319
|
-
algorithm: Optional[pulumi.Input[
|
320
|
-
ecdsa_curve: Optional[pulumi.Input[
|
321
|
-
private_key_openssh: Optional[pulumi.Input[
|
322
|
-
private_key_pem: Optional[pulumi.Input[
|
323
|
-
private_key_pem_pkcs8: Optional[pulumi.Input[
|
324
|
-
public_key_fingerprint_md5: Optional[pulumi.Input[
|
325
|
-
public_key_fingerprint_sha256: Optional[pulumi.Input[
|
326
|
-
public_key_openssh: Optional[pulumi.Input[
|
327
|
-
public_key_pem: Optional[pulumi.Input[
|
328
|
-
rsa_bits: Optional[pulumi.Input[
|
319
|
+
algorithm: Optional[pulumi.Input[_builtins.str]] = None,
|
320
|
+
ecdsa_curve: Optional[pulumi.Input[_builtins.str]] = None,
|
321
|
+
private_key_openssh: Optional[pulumi.Input[_builtins.str]] = None,
|
322
|
+
private_key_pem: Optional[pulumi.Input[_builtins.str]] = None,
|
323
|
+
private_key_pem_pkcs8: Optional[pulumi.Input[_builtins.str]] = None,
|
324
|
+
public_key_fingerprint_md5: Optional[pulumi.Input[_builtins.str]] = None,
|
325
|
+
public_key_fingerprint_sha256: Optional[pulumi.Input[_builtins.str]] = None,
|
326
|
+
public_key_openssh: Optional[pulumi.Input[_builtins.str]] = None,
|
327
|
+
public_key_pem: Optional[pulumi.Input[_builtins.str]] = None,
|
328
|
+
rsa_bits: Optional[pulumi.Input[_builtins.int]] = None) -> 'PrivateKey':
|
329
329
|
"""
|
330
330
|
Get an existing PrivateKey resource's state with the given name, id, and optional extra
|
331
331
|
properties used to qualify the lookup.
|
@@ -333,16 +333,16 @@ class PrivateKey(pulumi.CustomResource):
|
|
333
333
|
:param str resource_name: The unique name of the resulting resource.
|
334
334
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
335
335
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
336
|
-
:param pulumi.Input[
|
337
|
-
:param pulumi.Input[
|
338
|
-
:param pulumi.Input[
|
339
|
-
:param pulumi.Input[
|
340
|
-
:param pulumi.Input[
|
341
|
-
:param pulumi.Input[
|
342
|
-
:param pulumi.Input[
|
343
|
-
:param pulumi.Input[
|
344
|
-
:param pulumi.Input[
|
345
|
-
:param pulumi.Input[
|
336
|
+
:param pulumi.Input[_builtins.str] algorithm: Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
337
|
+
:param pulumi.Input[_builtins.str] ecdsa_curve: When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
338
|
+
:param pulumi.Input[_builtins.str] private_key_openssh: Private key data in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format.
|
339
|
+
:param pulumi.Input[_builtins.str] private_key_pem: Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
340
|
+
:param pulumi.Input[_builtins.str] private_key_pem_pkcs8: Private key data in [PKCS#8 PEM (RFC 5208)](https://datatracker.ietf.org/doc/html/rfc5208) format.
|
341
|
+
:param pulumi.Input[_builtins.str] public_key_fingerprint_md5: The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. `aa:bb:cc:...`. Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations.
|
342
|
+
:param pulumi.Input[_builtins.str] public_key_fingerprint_sha256: The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:...`. Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations.
|
343
|
+
:param pulumi.Input[_builtins.str] public_key_openssh: The public key data in ["Authorized Keys"](https://www.ssh.com/academy/ssh/authorized_keys/openssh#format-of-the-authorized-keys-file) format. This is not populated for `ECDSA` with curve `P224`, as it is not supported. **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()`.
|
344
|
+
:param pulumi.Input[_builtins.str] public_key_pem: Public key 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()`.
|
345
|
+
:param pulumi.Input[_builtins.int] rsa_bits: When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
346
346
|
"""
|
347
347
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
348
348
|
|
@@ -360,81 +360,81 @@ class PrivateKey(pulumi.CustomResource):
|
|
360
360
|
__props__.__dict__["rsa_bits"] = rsa_bits
|
361
361
|
return PrivateKey(resource_name, opts=opts, __props__=__props__)
|
362
362
|
|
363
|
-
@property
|
363
|
+
@_builtins.property
|
364
364
|
@pulumi.getter
|
365
|
-
def algorithm(self) -> pulumi.Output[
|
365
|
+
def algorithm(self) -> pulumi.Output[_builtins.str]:
|
366
366
|
"""
|
367
367
|
Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
368
368
|
"""
|
369
369
|
return pulumi.get(self, "algorithm")
|
370
370
|
|
371
|
-
@property
|
371
|
+
@_builtins.property
|
372
372
|
@pulumi.getter(name="ecdsaCurve")
|
373
|
-
def ecdsa_curve(self) -> pulumi.Output[
|
373
|
+
def ecdsa_curve(self) -> pulumi.Output[_builtins.str]:
|
374
374
|
"""
|
375
375
|
When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
376
376
|
"""
|
377
377
|
return pulumi.get(self, "ecdsa_curve")
|
378
378
|
|
379
|
-
@property
|
379
|
+
@_builtins.property
|
380
380
|
@pulumi.getter(name="privateKeyOpenssh")
|
381
|
-
def private_key_openssh(self) -> pulumi.Output[
|
381
|
+
def private_key_openssh(self) -> pulumi.Output[_builtins.str]:
|
382
382
|
"""
|
383
383
|
Private key data in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format.
|
384
384
|
"""
|
385
385
|
return pulumi.get(self, "private_key_openssh")
|
386
386
|
|
387
|
-
@property
|
387
|
+
@_builtins.property
|
388
388
|
@pulumi.getter(name="privateKeyPem")
|
389
|
-
def private_key_pem(self) -> pulumi.Output[
|
389
|
+
def private_key_pem(self) -> pulumi.Output[_builtins.str]:
|
390
390
|
"""
|
391
391
|
Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
392
392
|
"""
|
393
393
|
return pulumi.get(self, "private_key_pem")
|
394
394
|
|
395
|
-
@property
|
395
|
+
@_builtins.property
|
396
396
|
@pulumi.getter(name="privateKeyPemPkcs8")
|
397
|
-
def private_key_pem_pkcs8(self) -> pulumi.Output[
|
397
|
+
def private_key_pem_pkcs8(self) -> pulumi.Output[_builtins.str]:
|
398
398
|
"""
|
399
399
|
Private key data in [PKCS#8 PEM (RFC 5208)](https://datatracker.ietf.org/doc/html/rfc5208) format.
|
400
400
|
"""
|
401
401
|
return pulumi.get(self, "private_key_pem_pkcs8")
|
402
402
|
|
403
|
-
@property
|
403
|
+
@_builtins.property
|
404
404
|
@pulumi.getter(name="publicKeyFingerprintMd5")
|
405
|
-
def public_key_fingerprint_md5(self) -> pulumi.Output[
|
405
|
+
def public_key_fingerprint_md5(self) -> pulumi.Output[_builtins.str]:
|
406
406
|
"""
|
407
407
|
The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. `aa:bb:cc:...`. Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations.
|
408
408
|
"""
|
409
409
|
return pulumi.get(self, "public_key_fingerprint_md5")
|
410
410
|
|
411
|
-
@property
|
411
|
+
@_builtins.property
|
412
412
|
@pulumi.getter(name="publicKeyFingerprintSha256")
|
413
|
-
def public_key_fingerprint_sha256(self) -> pulumi.Output[
|
413
|
+
def public_key_fingerprint_sha256(self) -> pulumi.Output[_builtins.str]:
|
414
414
|
"""
|
415
415
|
The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. `SHA256:...`. Only available if the selected private key format is compatible, similarly to `public_key_openssh` and the ECDSA P224 limitations.
|
416
416
|
"""
|
417
417
|
return pulumi.get(self, "public_key_fingerprint_sha256")
|
418
418
|
|
419
|
-
@property
|
419
|
+
@_builtins.property
|
420
420
|
@pulumi.getter(name="publicKeyOpenssh")
|
421
|
-
def public_key_openssh(self) -> pulumi.Output[
|
421
|
+
def public_key_openssh(self) -> pulumi.Output[_builtins.str]:
|
422
422
|
"""
|
423
423
|
The public key data in ["Authorized Keys"](https://www.ssh.com/academy/ssh/authorized_keys/openssh#format-of-the-authorized-keys-file) format. This is not populated for `ECDSA` with curve `P224`, as it is not supported. **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()`.
|
424
424
|
"""
|
425
425
|
return pulumi.get(self, "public_key_openssh")
|
426
426
|
|
427
|
-
@property
|
427
|
+
@_builtins.property
|
428
428
|
@pulumi.getter(name="publicKeyPem")
|
429
|
-
def public_key_pem(self) -> pulumi.Output[
|
429
|
+
def public_key_pem(self) -> pulumi.Output[_builtins.str]:
|
430
430
|
"""
|
431
431
|
Public key 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()`.
|
432
432
|
"""
|
433
433
|
return pulumi.get(self, "public_key_pem")
|
434
434
|
|
435
|
-
@property
|
435
|
+
@_builtins.property
|
436
436
|
@pulumi.getter(name="rsaBits")
|
437
|
-
def rsa_bits(self) -> pulumi.Output[
|
437
|
+
def rsa_bits(self) -> pulumi.Output[_builtins.int]:
|
438
438
|
"""
|
439
439
|
When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
440
440
|
"""
|
pulumi_tls/provider.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
|
@@ -29,7 +28,7 @@ class ProviderArgs:
|
|
29
28
|
if proxy is not None:
|
30
29
|
pulumi.set(__self__, "proxy", proxy)
|
31
30
|
|
32
|
-
@property
|
31
|
+
@_builtins.property
|
33
32
|
@pulumi.getter
|
34
33
|
def proxy(self) -> Optional[pulumi.Input['ProviderProxyArgs']]:
|
35
34
|
"""
|
@@ -42,6 +41,7 @@ class ProviderArgs:
|
|
42
41
|
pulumi.set(self, "proxy", value)
|
43
42
|
|
44
43
|
|
44
|
+
@pulumi.type_token("pulumi:providers:tls")
|
45
45
|
class Provider(pulumi.ProviderResource):
|
46
46
|
@overload
|
47
47
|
def __init__(__self__,
|
@@ -103,3 +103,23 @@ class Provider(pulumi.ProviderResource):
|
|
103
103
|
__props__,
|
104
104
|
opts)
|
105
105
|
|
106
|
+
@pulumi.output_type
|
107
|
+
class TerraformConfigResult:
|
108
|
+
def __init__(__self__, result=None):
|
109
|
+
if result and not isinstance(result, dict):
|
110
|
+
raise TypeError("Expected argument 'result' to be a dict")
|
111
|
+
pulumi.set(__self__, "result", result)
|
112
|
+
|
113
|
+
@_builtins.property
|
114
|
+
@pulumi.getter
|
115
|
+
def result(self) -> Mapping[str, Any]:
|
116
|
+
return pulumi.get(self, "result")
|
117
|
+
|
118
|
+
def terraform_config(__self__) -> pulumi.Output['Provider.TerraformConfigResult']:
|
119
|
+
"""
|
120
|
+
This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
|
121
|
+
"""
|
122
|
+
__args__ = dict()
|
123
|
+
__args__['__self__'] = __self__
|
124
|
+
return pulumi.runtime.call('pulumi:providers:tls/terraformConfig', __args__, res=__self__, typ=Provider.TerraformConfigResult)
|
125
|
+
|
pulumi_tls/pulumi-plugin.json
CHANGED