pulumi-tls 5.3.0a1753339655__py3-none-any.whl → 5.3.0a1753512319__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 +1 -1
- pulumi_tls/_inputs.py +147 -148
- pulumi_tls/cert_request.py +90 -91
- pulumi_tls/config/__init__.py +1 -1
- pulumi_tls/config/__init__.pyi +1 -2
- pulumi_tls/config/outputs.py +17 -18
- pulumi_tls/config/vars.py +2 -3
- pulumi_tls/get_certificate.py +22 -23
- pulumi_tls/get_public_key.py +25 -26
- pulumi_tls/locally_signed_cert.py +178 -179
- pulumi_tls/outputs.py +128 -129
- pulumi_tls/private_key.py +115 -116
- pulumi_tls/provider.py +3 -4
- pulumi_tls/pulumi-plugin.json +1 -1
- pulumi_tls/self_signed_cert.py +215 -216
- {pulumi_tls-5.3.0a1753339655.dist-info → pulumi_tls-5.3.0a1753512319.dist-info}/METADATA +1 -1
- pulumi_tls-5.3.0a1753512319.dist-info/RECORD +21 -0
- pulumi_tls-5.3.0a1753339655.dist-info/RECORD +0 -21
- {pulumi_tls-5.3.0a1753339655.dist-info → pulumi_tls-5.3.0a1753512319.dist-info}/WHEEL +0 -0
- {pulumi_tls-5.3.0a1753339655.dist-info → pulumi_tls-5.3.0a1753512319.dist-info}/top_level.txt +0 -0
pulumi_tls/private_key.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
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,124 +118,124 @@ 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
|
|
@@ -246,17 +245,17 @@ class PrivateKey(pulumi.CustomResource):
|
|
246
245
|
def __init__(__self__,
|
247
246
|
resource_name: str,
|
248
247
|
opts: Optional[pulumi.ResourceOptions] = None,
|
249
|
-
algorithm: Optional[pulumi.Input[
|
250
|
-
ecdsa_curve: Optional[pulumi.Input[
|
251
|
-
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,
|
252
251
|
__props__=None):
|
253
252
|
"""
|
254
253
|
Create a PrivateKey resource with the given unique name, props, and options.
|
255
254
|
:param str resource_name: The name of the resource.
|
256
255
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
257
|
-
:param pulumi.Input[
|
258
|
-
:param pulumi.Input[
|
259
|
-
: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`).
|
260
259
|
"""
|
261
260
|
...
|
262
261
|
@overload
|
@@ -281,9 +280,9 @@ class PrivateKey(pulumi.CustomResource):
|
|
281
280
|
def _internal_init(__self__,
|
282
281
|
resource_name: str,
|
283
282
|
opts: Optional[pulumi.ResourceOptions] = None,
|
284
|
-
algorithm: Optional[pulumi.Input[
|
285
|
-
ecdsa_curve: Optional[pulumi.Input[
|
286
|
-
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,
|
287
286
|
__props__=None):
|
288
287
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
289
288
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -317,16 +316,16 @@ class PrivateKey(pulumi.CustomResource):
|
|
317
316
|
def get(resource_name: str,
|
318
317
|
id: pulumi.Input[str],
|
319
318
|
opts: Optional[pulumi.ResourceOptions] = None,
|
320
|
-
algorithm: Optional[pulumi.Input[
|
321
|
-
ecdsa_curve: Optional[pulumi.Input[
|
322
|
-
private_key_openssh: Optional[pulumi.Input[
|
323
|
-
private_key_pem: Optional[pulumi.Input[
|
324
|
-
private_key_pem_pkcs8: Optional[pulumi.Input[
|
325
|
-
public_key_fingerprint_md5: Optional[pulumi.Input[
|
326
|
-
public_key_fingerprint_sha256: Optional[pulumi.Input[
|
327
|
-
public_key_openssh: Optional[pulumi.Input[
|
328
|
-
public_key_pem: Optional[pulumi.Input[
|
329
|
-
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':
|
330
329
|
"""
|
331
330
|
Get an existing PrivateKey resource's state with the given name, id, and optional extra
|
332
331
|
properties used to qualify the lookup.
|
@@ -334,16 +333,16 @@ class PrivateKey(pulumi.CustomResource):
|
|
334
333
|
:param str resource_name: The unique name of the resulting resource.
|
335
334
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
336
335
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
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[
|
346
|
-
: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`).
|
347
346
|
"""
|
348
347
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
349
348
|
|
@@ -361,81 +360,81 @@ class PrivateKey(pulumi.CustomResource):
|
|
361
360
|
__props__.__dict__["rsa_bits"] = rsa_bits
|
362
361
|
return PrivateKey(resource_name, opts=opts, __props__=__props__)
|
363
362
|
|
364
|
-
@property
|
363
|
+
@_builtins.property
|
365
364
|
@pulumi.getter
|
366
|
-
def algorithm(self) -> pulumi.Output[
|
365
|
+
def algorithm(self) -> pulumi.Output[_builtins.str]:
|
367
366
|
"""
|
368
367
|
Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
369
368
|
"""
|
370
369
|
return pulumi.get(self, "algorithm")
|
371
370
|
|
372
|
-
@property
|
371
|
+
@_builtins.property
|
373
372
|
@pulumi.getter(name="ecdsaCurve")
|
374
|
-
def ecdsa_curve(self) -> pulumi.Output[
|
373
|
+
def ecdsa_curve(self) -> pulumi.Output[_builtins.str]:
|
375
374
|
"""
|
376
375
|
When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
377
376
|
"""
|
378
377
|
return pulumi.get(self, "ecdsa_curve")
|
379
378
|
|
380
|
-
@property
|
379
|
+
@_builtins.property
|
381
380
|
@pulumi.getter(name="privateKeyOpenssh")
|
382
|
-
def private_key_openssh(self) -> pulumi.Output[
|
381
|
+
def private_key_openssh(self) -> pulumi.Output[_builtins.str]:
|
383
382
|
"""
|
384
383
|
Private key data in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format.
|
385
384
|
"""
|
386
385
|
return pulumi.get(self, "private_key_openssh")
|
387
386
|
|
388
|
-
@property
|
387
|
+
@_builtins.property
|
389
388
|
@pulumi.getter(name="privateKeyPem")
|
390
|
-
def private_key_pem(self) -> pulumi.Output[
|
389
|
+
def private_key_pem(self) -> pulumi.Output[_builtins.str]:
|
391
390
|
"""
|
392
391
|
Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
393
392
|
"""
|
394
393
|
return pulumi.get(self, "private_key_pem")
|
395
394
|
|
396
|
-
@property
|
395
|
+
@_builtins.property
|
397
396
|
@pulumi.getter(name="privateKeyPemPkcs8")
|
398
|
-
def private_key_pem_pkcs8(self) -> pulumi.Output[
|
397
|
+
def private_key_pem_pkcs8(self) -> pulumi.Output[_builtins.str]:
|
399
398
|
"""
|
400
399
|
Private key data in [PKCS#8 PEM (RFC 5208)](https://datatracker.ietf.org/doc/html/rfc5208) format.
|
401
400
|
"""
|
402
401
|
return pulumi.get(self, "private_key_pem_pkcs8")
|
403
402
|
|
404
|
-
@property
|
403
|
+
@_builtins.property
|
405
404
|
@pulumi.getter(name="publicKeyFingerprintMd5")
|
406
|
-
def public_key_fingerprint_md5(self) -> pulumi.Output[
|
405
|
+
def public_key_fingerprint_md5(self) -> pulumi.Output[_builtins.str]:
|
407
406
|
"""
|
408
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.
|
409
408
|
"""
|
410
409
|
return pulumi.get(self, "public_key_fingerprint_md5")
|
411
410
|
|
412
|
-
@property
|
411
|
+
@_builtins.property
|
413
412
|
@pulumi.getter(name="publicKeyFingerprintSha256")
|
414
|
-
def public_key_fingerprint_sha256(self) -> pulumi.Output[
|
413
|
+
def public_key_fingerprint_sha256(self) -> pulumi.Output[_builtins.str]:
|
415
414
|
"""
|
416
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.
|
417
416
|
"""
|
418
417
|
return pulumi.get(self, "public_key_fingerprint_sha256")
|
419
418
|
|
420
|
-
@property
|
419
|
+
@_builtins.property
|
421
420
|
@pulumi.getter(name="publicKeyOpenssh")
|
422
|
-
def public_key_openssh(self) -> pulumi.Output[
|
421
|
+
def public_key_openssh(self) -> pulumi.Output[_builtins.str]:
|
423
422
|
"""
|
424
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()`.
|
425
424
|
"""
|
426
425
|
return pulumi.get(self, "public_key_openssh")
|
427
426
|
|
428
|
-
@property
|
427
|
+
@_builtins.property
|
429
428
|
@pulumi.getter(name="publicKeyPem")
|
430
|
-
def public_key_pem(self) -> pulumi.Output[
|
429
|
+
def public_key_pem(self) -> pulumi.Output[_builtins.str]:
|
431
430
|
"""
|
432
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()`.
|
433
432
|
"""
|
434
433
|
return pulumi.get(self, "public_key_pem")
|
435
434
|
|
436
|
-
@property
|
435
|
+
@_builtins.property
|
437
436
|
@pulumi.getter(name="rsaBits")
|
438
|
-
def rsa_bits(self) -> pulumi.Output[
|
437
|
+
def rsa_bits(self) -> pulumi.Output[_builtins.int]:
|
439
438
|
"""
|
440
439
|
When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
441
440
|
"""
|
pulumi_tls/provider.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
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
|
"""
|
@@ -111,7 +110,7 @@ class Provider(pulumi.ProviderResource):
|
|
111
110
|
raise TypeError("Expected argument 'result' to be a dict")
|
112
111
|
pulumi.set(__self__, "result", result)
|
113
112
|
|
114
|
-
@property
|
113
|
+
@_builtins.property
|
115
114
|
@pulumi.getter
|
116
115
|
def result(self) -> Mapping[str, Any]:
|
117
116
|
return pulumi.get(self, "result")
|
pulumi_tls/pulumi-plugin.json
CHANGED