pulumi-tls 5.2.0a1743575896__py3-none-any.whl → 5.2.0a1744183475__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 -0
- pulumi_tls/_inputs.py +113 -112
- pulumi_tls/cert_request.py +71 -70
- pulumi_tls/config/__init__.py +1 -0
- pulumi_tls/config/__init__.pyi +1 -0
- pulumi_tls/config/outputs.py +13 -12
- pulumi_tls/config/vars.py +1 -0
- pulumi_tls/get_certificate.py +17 -16
- pulumi_tls/get_public_key.py +17 -16
- pulumi_tls/locally_signed_cert.py +144 -143
- pulumi_tls/outputs.py +91 -90
- pulumi_tls/private_key.py +92 -91
- pulumi_tls/provider.py +1 -0
- pulumi_tls/pulumi-plugin.json +1 -1
- pulumi_tls/self_signed_cert.py +175 -174
- {pulumi_tls-5.2.0a1743575896.dist-info → pulumi_tls-5.2.0a1744183475.dist-info}/METADATA +1 -1
- pulumi_tls-5.2.0a1744183475.dist-info/RECORD +21 -0
- pulumi_tls-5.2.0a1743575896.dist-info/RECORD +0 -21
- {pulumi_tls-5.2.0a1743575896.dist-info → pulumi_tls-5.2.0a1744183475.dist-info}/WHEEL +0 -0
- {pulumi_tls-5.2.0a1743575896.dist-info → pulumi_tls-5.2.0a1744183475.dist-info}/top_level.txt +0 -0
pulumi_tls/private_key.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -19,14 +20,14 @@ __all__ = ['PrivateKeyArgs', 'PrivateKey']
|
|
19
20
|
@pulumi.input_type
|
20
21
|
class PrivateKeyArgs:
|
21
22
|
def __init__(__self__, *,
|
22
|
-
algorithm: pulumi.Input[str],
|
23
|
-
ecdsa_curve: Optional[pulumi.Input[str]] = None,
|
24
|
-
rsa_bits: Optional[pulumi.Input[int]] = None):
|
23
|
+
algorithm: pulumi.Input[builtins.str],
|
24
|
+
ecdsa_curve: Optional[pulumi.Input[builtins.str]] = None,
|
25
|
+
rsa_bits: Optional[pulumi.Input[builtins.int]] = None):
|
25
26
|
"""
|
26
27
|
The set of arguments for constructing a PrivateKey resource.
|
27
|
-
:param pulumi.Input[str] algorithm: Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
28
|
-
:param pulumi.Input[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[int] rsa_bits: When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
28
|
+
:param pulumi.Input[builtins.str] algorithm: Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
29
|
+
: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`).
|
30
|
+
:param pulumi.Input[builtins.int] rsa_bits: When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
30
31
|
"""
|
31
32
|
pulumi.set(__self__, "algorithm", algorithm)
|
32
33
|
if ecdsa_curve is not None:
|
@@ -36,66 +37,66 @@ class PrivateKeyArgs:
|
|
36
37
|
|
37
38
|
@property
|
38
39
|
@pulumi.getter
|
39
|
-
def algorithm(self) -> pulumi.Input[str]:
|
40
|
+
def algorithm(self) -> pulumi.Input[builtins.str]:
|
40
41
|
"""
|
41
42
|
Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
42
43
|
"""
|
43
44
|
return pulumi.get(self, "algorithm")
|
44
45
|
|
45
46
|
@algorithm.setter
|
46
|
-
def algorithm(self, value: pulumi.Input[str]):
|
47
|
+
def algorithm(self, value: pulumi.Input[builtins.str]):
|
47
48
|
pulumi.set(self, "algorithm", value)
|
48
49
|
|
49
50
|
@property
|
50
51
|
@pulumi.getter(name="ecdsaCurve")
|
51
|
-
def ecdsa_curve(self) -> Optional[pulumi.Input[str]]:
|
52
|
+
def ecdsa_curve(self) -> Optional[pulumi.Input[builtins.str]]:
|
52
53
|
"""
|
53
54
|
When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
54
55
|
"""
|
55
56
|
return pulumi.get(self, "ecdsa_curve")
|
56
57
|
|
57
58
|
@ecdsa_curve.setter
|
58
|
-
def ecdsa_curve(self, value: Optional[pulumi.Input[str]]):
|
59
|
+
def ecdsa_curve(self, value: Optional[pulumi.Input[builtins.str]]):
|
59
60
|
pulumi.set(self, "ecdsa_curve", value)
|
60
61
|
|
61
62
|
@property
|
62
63
|
@pulumi.getter(name="rsaBits")
|
63
|
-
def rsa_bits(self) -> Optional[pulumi.Input[int]]:
|
64
|
+
def rsa_bits(self) -> Optional[pulumi.Input[builtins.int]]:
|
64
65
|
"""
|
65
66
|
When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
66
67
|
"""
|
67
68
|
return pulumi.get(self, "rsa_bits")
|
68
69
|
|
69
70
|
@rsa_bits.setter
|
70
|
-
def rsa_bits(self, value: Optional[pulumi.Input[int]]):
|
71
|
+
def rsa_bits(self, value: Optional[pulumi.Input[builtins.int]]):
|
71
72
|
pulumi.set(self, "rsa_bits", value)
|
72
73
|
|
73
74
|
|
74
75
|
@pulumi.input_type
|
75
76
|
class _PrivateKeyState:
|
76
77
|
def __init__(__self__, *,
|
77
|
-
algorithm: Optional[pulumi.Input[str]] = None,
|
78
|
-
ecdsa_curve: Optional[pulumi.Input[str]] = None,
|
79
|
-
private_key_openssh: Optional[pulumi.Input[str]] = None,
|
80
|
-
private_key_pem: Optional[pulumi.Input[str]] = None,
|
81
|
-
private_key_pem_pkcs8: Optional[pulumi.Input[str]] = None,
|
82
|
-
public_key_fingerprint_md5: Optional[pulumi.Input[str]] = None,
|
83
|
-
public_key_fingerprint_sha256: Optional[pulumi.Input[str]] = None,
|
84
|
-
public_key_openssh: Optional[pulumi.Input[str]] = None,
|
85
|
-
public_key_pem: Optional[pulumi.Input[str]] = None,
|
86
|
-
rsa_bits: Optional[pulumi.Input[int]] = None):
|
78
|
+
algorithm: Optional[pulumi.Input[builtins.str]] = None,
|
79
|
+
ecdsa_curve: Optional[pulumi.Input[builtins.str]] = None,
|
80
|
+
private_key_openssh: Optional[pulumi.Input[builtins.str]] = None,
|
81
|
+
private_key_pem: Optional[pulumi.Input[builtins.str]] = None,
|
82
|
+
private_key_pem_pkcs8: Optional[pulumi.Input[builtins.str]] = None,
|
83
|
+
public_key_fingerprint_md5: Optional[pulumi.Input[builtins.str]] = None,
|
84
|
+
public_key_fingerprint_sha256: Optional[pulumi.Input[builtins.str]] = None,
|
85
|
+
public_key_openssh: Optional[pulumi.Input[builtins.str]] = None,
|
86
|
+
public_key_pem: Optional[pulumi.Input[builtins.str]] = None,
|
87
|
+
rsa_bits: Optional[pulumi.Input[builtins.int]] = None):
|
87
88
|
"""
|
88
89
|
Input properties used for looking up and filtering PrivateKey resources.
|
89
|
-
:param pulumi.Input[str] algorithm: Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
90
|
-
:param pulumi.Input[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[str] private_key_openssh: Private key data in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format.
|
92
|
-
:param pulumi.Input[str] private_key_pem: Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
93
|
-
:param pulumi.Input[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[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[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[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[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[int] rsa_bits: When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
90
|
+
:param pulumi.Input[builtins.str] algorithm: Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
91
|
+
: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`).
|
92
|
+
:param pulumi.Input[builtins.str] private_key_openssh: Private key data in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format.
|
93
|
+
:param pulumi.Input[builtins.str] private_key_pem: Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
94
|
+
: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.
|
95
|
+
: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.
|
96
|
+
: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.
|
97
|
+
: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()`.
|
98
|
+
: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()`.
|
99
|
+
:param pulumi.Input[builtins.int] rsa_bits: When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
99
100
|
"""
|
100
101
|
if algorithm is not None:
|
101
102
|
pulumi.set(__self__, "algorithm", algorithm)
|
@@ -120,122 +121,122 @@ class _PrivateKeyState:
|
|
120
121
|
|
121
122
|
@property
|
122
123
|
@pulumi.getter
|
123
|
-
def algorithm(self) -> Optional[pulumi.Input[str]]:
|
124
|
+
def algorithm(self) -> Optional[pulumi.Input[builtins.str]]:
|
124
125
|
"""
|
125
126
|
Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
126
127
|
"""
|
127
128
|
return pulumi.get(self, "algorithm")
|
128
129
|
|
129
130
|
@algorithm.setter
|
130
|
-
def algorithm(self, value: Optional[pulumi.Input[str]]):
|
131
|
+
def algorithm(self, value: Optional[pulumi.Input[builtins.str]]):
|
131
132
|
pulumi.set(self, "algorithm", value)
|
132
133
|
|
133
134
|
@property
|
134
135
|
@pulumi.getter(name="ecdsaCurve")
|
135
|
-
def ecdsa_curve(self) -> Optional[pulumi.Input[str]]:
|
136
|
+
def ecdsa_curve(self) -> Optional[pulumi.Input[builtins.str]]:
|
136
137
|
"""
|
137
138
|
When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
138
139
|
"""
|
139
140
|
return pulumi.get(self, "ecdsa_curve")
|
140
141
|
|
141
142
|
@ecdsa_curve.setter
|
142
|
-
def ecdsa_curve(self, value: Optional[pulumi.Input[str]]):
|
143
|
+
def ecdsa_curve(self, value: Optional[pulumi.Input[builtins.str]]):
|
143
144
|
pulumi.set(self, "ecdsa_curve", value)
|
144
145
|
|
145
146
|
@property
|
146
147
|
@pulumi.getter(name="privateKeyOpenssh")
|
147
|
-
def private_key_openssh(self) -> Optional[pulumi.Input[str]]:
|
148
|
+
def private_key_openssh(self) -> Optional[pulumi.Input[builtins.str]]:
|
148
149
|
"""
|
149
150
|
Private key data in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format.
|
150
151
|
"""
|
151
152
|
return pulumi.get(self, "private_key_openssh")
|
152
153
|
|
153
154
|
@private_key_openssh.setter
|
154
|
-
def private_key_openssh(self, value: Optional[pulumi.Input[str]]):
|
155
|
+
def private_key_openssh(self, value: Optional[pulumi.Input[builtins.str]]):
|
155
156
|
pulumi.set(self, "private_key_openssh", value)
|
156
157
|
|
157
158
|
@property
|
158
159
|
@pulumi.getter(name="privateKeyPem")
|
159
|
-
def private_key_pem(self) -> Optional[pulumi.Input[str]]:
|
160
|
+
def private_key_pem(self) -> Optional[pulumi.Input[builtins.str]]:
|
160
161
|
"""
|
161
162
|
Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
162
163
|
"""
|
163
164
|
return pulumi.get(self, "private_key_pem")
|
164
165
|
|
165
166
|
@private_key_pem.setter
|
166
|
-
def private_key_pem(self, value: Optional[pulumi.Input[str]]):
|
167
|
+
def private_key_pem(self, value: Optional[pulumi.Input[builtins.str]]):
|
167
168
|
pulumi.set(self, "private_key_pem", value)
|
168
169
|
|
169
170
|
@property
|
170
171
|
@pulumi.getter(name="privateKeyPemPkcs8")
|
171
|
-
def private_key_pem_pkcs8(self) -> Optional[pulumi.Input[str]]:
|
172
|
+
def private_key_pem_pkcs8(self) -> Optional[pulumi.Input[builtins.str]]:
|
172
173
|
"""
|
173
174
|
Private key data in [PKCS#8 PEM (RFC 5208)](https://datatracker.ietf.org/doc/html/rfc5208) format.
|
174
175
|
"""
|
175
176
|
return pulumi.get(self, "private_key_pem_pkcs8")
|
176
177
|
|
177
178
|
@private_key_pem_pkcs8.setter
|
178
|
-
def private_key_pem_pkcs8(self, value: Optional[pulumi.Input[str]]):
|
179
|
+
def private_key_pem_pkcs8(self, value: Optional[pulumi.Input[builtins.str]]):
|
179
180
|
pulumi.set(self, "private_key_pem_pkcs8", value)
|
180
181
|
|
181
182
|
@property
|
182
183
|
@pulumi.getter(name="publicKeyFingerprintMd5")
|
183
|
-
def public_key_fingerprint_md5(self) -> Optional[pulumi.Input[str]]:
|
184
|
+
def public_key_fingerprint_md5(self) -> Optional[pulumi.Input[builtins.str]]:
|
184
185
|
"""
|
185
186
|
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.
|
186
187
|
"""
|
187
188
|
return pulumi.get(self, "public_key_fingerprint_md5")
|
188
189
|
|
189
190
|
@public_key_fingerprint_md5.setter
|
190
|
-
def public_key_fingerprint_md5(self, value: Optional[pulumi.Input[str]]):
|
191
|
+
def public_key_fingerprint_md5(self, value: Optional[pulumi.Input[builtins.str]]):
|
191
192
|
pulumi.set(self, "public_key_fingerprint_md5", value)
|
192
193
|
|
193
194
|
@property
|
194
195
|
@pulumi.getter(name="publicKeyFingerprintSha256")
|
195
|
-
def public_key_fingerprint_sha256(self) -> Optional[pulumi.Input[str]]:
|
196
|
+
def public_key_fingerprint_sha256(self) -> Optional[pulumi.Input[builtins.str]]:
|
196
197
|
"""
|
197
198
|
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.
|
198
199
|
"""
|
199
200
|
return pulumi.get(self, "public_key_fingerprint_sha256")
|
200
201
|
|
201
202
|
@public_key_fingerprint_sha256.setter
|
202
|
-
def public_key_fingerprint_sha256(self, value: Optional[pulumi.Input[str]]):
|
203
|
+
def public_key_fingerprint_sha256(self, value: Optional[pulumi.Input[builtins.str]]):
|
203
204
|
pulumi.set(self, "public_key_fingerprint_sha256", value)
|
204
205
|
|
205
206
|
@property
|
206
207
|
@pulumi.getter(name="publicKeyOpenssh")
|
207
|
-
def public_key_openssh(self) -> Optional[pulumi.Input[str]]:
|
208
|
+
def public_key_openssh(self) -> Optional[pulumi.Input[builtins.str]]:
|
208
209
|
"""
|
209
210
|
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()`.
|
210
211
|
"""
|
211
212
|
return pulumi.get(self, "public_key_openssh")
|
212
213
|
|
213
214
|
@public_key_openssh.setter
|
214
|
-
def public_key_openssh(self, value: Optional[pulumi.Input[str]]):
|
215
|
+
def public_key_openssh(self, value: Optional[pulumi.Input[builtins.str]]):
|
215
216
|
pulumi.set(self, "public_key_openssh", value)
|
216
217
|
|
217
218
|
@property
|
218
219
|
@pulumi.getter(name="publicKeyPem")
|
219
|
-
def public_key_pem(self) -> Optional[pulumi.Input[str]]:
|
220
|
+
def public_key_pem(self) -> Optional[pulumi.Input[builtins.str]]:
|
220
221
|
"""
|
221
222
|
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()`.
|
222
223
|
"""
|
223
224
|
return pulumi.get(self, "public_key_pem")
|
224
225
|
|
225
226
|
@public_key_pem.setter
|
226
|
-
def public_key_pem(self, value: Optional[pulumi.Input[str]]):
|
227
|
+
def public_key_pem(self, value: Optional[pulumi.Input[builtins.str]]):
|
227
228
|
pulumi.set(self, "public_key_pem", value)
|
228
229
|
|
229
230
|
@property
|
230
231
|
@pulumi.getter(name="rsaBits")
|
231
|
-
def rsa_bits(self) -> Optional[pulumi.Input[int]]:
|
232
|
+
def rsa_bits(self) -> Optional[pulumi.Input[builtins.int]]:
|
232
233
|
"""
|
233
234
|
When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
234
235
|
"""
|
235
236
|
return pulumi.get(self, "rsa_bits")
|
236
237
|
|
237
238
|
@rsa_bits.setter
|
238
|
-
def rsa_bits(self, value: Optional[pulumi.Input[int]]):
|
239
|
+
def rsa_bits(self, value: Optional[pulumi.Input[builtins.int]]):
|
239
240
|
pulumi.set(self, "rsa_bits", value)
|
240
241
|
|
241
242
|
|
@@ -244,17 +245,17 @@ class PrivateKey(pulumi.CustomResource):
|
|
244
245
|
def __init__(__self__,
|
245
246
|
resource_name: str,
|
246
247
|
opts: Optional[pulumi.ResourceOptions] = None,
|
247
|
-
algorithm: Optional[pulumi.Input[str]] = None,
|
248
|
-
ecdsa_curve: Optional[pulumi.Input[str]] = None,
|
249
|
-
rsa_bits: Optional[pulumi.Input[int]] = None,
|
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,
|
250
251
|
__props__=None):
|
251
252
|
"""
|
252
253
|
Create a PrivateKey resource with the given unique name, props, and options.
|
253
254
|
:param str resource_name: The name of the resource.
|
254
255
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
255
|
-
:param pulumi.Input[str] algorithm: Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
256
|
-
:param pulumi.Input[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`).
|
257
|
-
:param pulumi.Input[int] rsa_bits: When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
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`).
|
258
259
|
"""
|
259
260
|
...
|
260
261
|
@overload
|
@@ -279,9 +280,9 @@ class PrivateKey(pulumi.CustomResource):
|
|
279
280
|
def _internal_init(__self__,
|
280
281
|
resource_name: str,
|
281
282
|
opts: Optional[pulumi.ResourceOptions] = None,
|
282
|
-
algorithm: Optional[pulumi.Input[str]] = None,
|
283
|
-
ecdsa_curve: Optional[pulumi.Input[str]] = None,
|
284
|
-
rsa_bits: Optional[pulumi.Input[int]] = None,
|
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,
|
285
286
|
__props__=None):
|
286
287
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
287
288
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -315,16 +316,16 @@ class PrivateKey(pulumi.CustomResource):
|
|
315
316
|
def get(resource_name: str,
|
316
317
|
id: pulumi.Input[str],
|
317
318
|
opts: Optional[pulumi.ResourceOptions] = None,
|
318
|
-
algorithm: Optional[pulumi.Input[str]] = None,
|
319
|
-
ecdsa_curve: Optional[pulumi.Input[str]] = None,
|
320
|
-
private_key_openssh: Optional[pulumi.Input[str]] = None,
|
321
|
-
private_key_pem: Optional[pulumi.Input[str]] = None,
|
322
|
-
private_key_pem_pkcs8: Optional[pulumi.Input[str]] = None,
|
323
|
-
public_key_fingerprint_md5: Optional[pulumi.Input[str]] = None,
|
324
|
-
public_key_fingerprint_sha256: Optional[pulumi.Input[str]] = None,
|
325
|
-
public_key_openssh: Optional[pulumi.Input[str]] = None,
|
326
|
-
public_key_pem: Optional[pulumi.Input[str]] = None,
|
327
|
-
rsa_bits: Optional[pulumi.Input[int]] = None) -> 'PrivateKey':
|
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':
|
328
329
|
"""
|
329
330
|
Get an existing PrivateKey resource's state with the given name, id, and optional extra
|
330
331
|
properties used to qualify the lookup.
|
@@ -332,16 +333,16 @@ class PrivateKey(pulumi.CustomResource):
|
|
332
333
|
:param str resource_name: The unique name of the resulting resource.
|
333
334
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
334
335
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
335
|
-
:param pulumi.Input[str] algorithm: Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
336
|
-
:param pulumi.Input[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`).
|
337
|
-
:param pulumi.Input[str] private_key_openssh: Private key data in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format.
|
338
|
-
:param pulumi.Input[str] private_key_pem: Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
339
|
-
:param pulumi.Input[str] private_key_pem_pkcs8: Private key data in [PKCS#8 PEM (RFC 5208)](https://datatracker.ietf.org/doc/html/rfc5208) format.
|
340
|
-
:param pulumi.Input[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.
|
341
|
-
:param pulumi.Input[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.
|
342
|
-
:param pulumi.Input[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()`.
|
343
|
-
:param pulumi.Input[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()`.
|
344
|
-
:param pulumi.Input[int] rsa_bits: When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
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`).
|
345
346
|
"""
|
346
347
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
347
348
|
|
@@ -361,7 +362,7 @@ class PrivateKey(pulumi.CustomResource):
|
|
361
362
|
|
362
363
|
@property
|
363
364
|
@pulumi.getter
|
364
|
-
def algorithm(self) -> pulumi.Output[str]:
|
365
|
+
def algorithm(self) -> pulumi.Output[builtins.str]:
|
365
366
|
"""
|
366
367
|
Name of the algorithm to use when generating the private key. Currently-supported values are: `RSA`, `ECDSA`, `ED25519`.
|
367
368
|
"""
|
@@ -369,7 +370,7 @@ class PrivateKey(pulumi.CustomResource):
|
|
369
370
|
|
370
371
|
@property
|
371
372
|
@pulumi.getter(name="ecdsaCurve")
|
372
|
-
def ecdsa_curve(self) -> pulumi.Output[str]:
|
373
|
+
def ecdsa_curve(self) -> pulumi.Output[builtins.str]:
|
373
374
|
"""
|
374
375
|
When `algorithm` is `ECDSA`, the name of the elliptic curve to use. Currently-supported values are: `P224`, `P256`, `P384`, `P521`. (default: `P224`).
|
375
376
|
"""
|
@@ -377,7 +378,7 @@ class PrivateKey(pulumi.CustomResource):
|
|
377
378
|
|
378
379
|
@property
|
379
380
|
@pulumi.getter(name="privateKeyOpenssh")
|
380
|
-
def private_key_openssh(self) -> pulumi.Output[str]:
|
381
|
+
def private_key_openssh(self) -> pulumi.Output[builtins.str]:
|
381
382
|
"""
|
382
383
|
Private key data in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format.
|
383
384
|
"""
|
@@ -385,7 +386,7 @@ class PrivateKey(pulumi.CustomResource):
|
|
385
386
|
|
386
387
|
@property
|
387
388
|
@pulumi.getter(name="privateKeyPem")
|
388
|
-
def private_key_pem(self) -> pulumi.Output[str]:
|
389
|
+
def private_key_pem(self) -> pulumi.Output[builtins.str]:
|
389
390
|
"""
|
390
391
|
Private key data in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
391
392
|
"""
|
@@ -393,7 +394,7 @@ class PrivateKey(pulumi.CustomResource):
|
|
393
394
|
|
394
395
|
@property
|
395
396
|
@pulumi.getter(name="privateKeyPemPkcs8")
|
396
|
-
def private_key_pem_pkcs8(self) -> pulumi.Output[str]:
|
397
|
+
def private_key_pem_pkcs8(self) -> pulumi.Output[builtins.str]:
|
397
398
|
"""
|
398
399
|
Private key data in [PKCS#8 PEM (RFC 5208)](https://datatracker.ietf.org/doc/html/rfc5208) format.
|
399
400
|
"""
|
@@ -401,7 +402,7 @@ class PrivateKey(pulumi.CustomResource):
|
|
401
402
|
|
402
403
|
@property
|
403
404
|
@pulumi.getter(name="publicKeyFingerprintMd5")
|
404
|
-
def public_key_fingerprint_md5(self) -> pulumi.Output[str]:
|
405
|
+
def public_key_fingerprint_md5(self) -> pulumi.Output[builtins.str]:
|
405
406
|
"""
|
406
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.
|
407
408
|
"""
|
@@ -409,7 +410,7 @@ class PrivateKey(pulumi.CustomResource):
|
|
409
410
|
|
410
411
|
@property
|
411
412
|
@pulumi.getter(name="publicKeyFingerprintSha256")
|
412
|
-
def public_key_fingerprint_sha256(self) -> pulumi.Output[str]:
|
413
|
+
def public_key_fingerprint_sha256(self) -> pulumi.Output[builtins.str]:
|
413
414
|
"""
|
414
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.
|
415
416
|
"""
|
@@ -417,7 +418,7 @@ class PrivateKey(pulumi.CustomResource):
|
|
417
418
|
|
418
419
|
@property
|
419
420
|
@pulumi.getter(name="publicKeyOpenssh")
|
420
|
-
def public_key_openssh(self) -> pulumi.Output[str]:
|
421
|
+
def public_key_openssh(self) -> pulumi.Output[builtins.str]:
|
421
422
|
"""
|
422
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()`.
|
423
424
|
"""
|
@@ -425,7 +426,7 @@ class PrivateKey(pulumi.CustomResource):
|
|
425
426
|
|
426
427
|
@property
|
427
428
|
@pulumi.getter(name="publicKeyPem")
|
428
|
-
def public_key_pem(self) -> pulumi.Output[str]:
|
429
|
+
def public_key_pem(self) -> pulumi.Output[builtins.str]:
|
429
430
|
"""
|
430
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()`.
|
431
432
|
"""
|
@@ -433,7 +434,7 @@ class PrivateKey(pulumi.CustomResource):
|
|
433
434
|
|
434
435
|
@property
|
435
436
|
@pulumi.getter(name="rsaBits")
|
436
|
-
def rsa_bits(self) -> pulumi.Output[int]:
|
437
|
+
def rsa_bits(self) -> pulumi.Output[builtins.int]:
|
437
438
|
"""
|
438
439
|
When `algorithm` is `RSA`, the size of the generated RSA key, in bits (default: `2048`).
|
439
440
|
"""
|
pulumi_tls/provider.py
CHANGED
pulumi_tls/pulumi-plugin.json
CHANGED