pulumi-tls 5.0.0__py3-none-any.whl → 5.0.2__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/_inputs.py CHANGED
@@ -173,6 +173,12 @@ class ProviderProxyArgs:
173
173
  password: Optional[pulumi.Input[str]] = None,
174
174
  url: Optional[pulumi.Input[str]] = None,
175
175
  username: Optional[pulumi.Input[str]] = None):
176
+ """
177
+ :param pulumi.Input[bool] from_env: When `true` the provider will discover the proxy configuration from environment variables. This is based upon [`http.ProxyFromEnvironment`](https://pkg.go.dev/net/http#ProxyFromEnvironment) and it supports the same environment variables (default: `true`).
178
+ :param pulumi.Input[str] password: Password used for Basic authentication against the Proxy.
179
+ :param pulumi.Input[str] url: URL used to connect to the Proxy. Accepted schemes are: `http`, `https`, `socks5`.
180
+ :param pulumi.Input[str] username: Username (or Token) used for Basic authentication against the Proxy.
181
+ """
176
182
  if from_env is not None:
177
183
  pulumi.set(__self__, "from_env", from_env)
178
184
  if password is not None:
@@ -185,6 +191,9 @@ class ProviderProxyArgs:
185
191
  @property
186
192
  @pulumi.getter(name="fromEnv")
187
193
  def from_env(self) -> Optional[pulumi.Input[bool]]:
194
+ """
195
+ When `true` the provider will discover the proxy configuration from environment variables. This is based upon [`http.ProxyFromEnvironment`](https://pkg.go.dev/net/http#ProxyFromEnvironment) and it supports the same environment variables (default: `true`).
196
+ """
188
197
  return pulumi.get(self, "from_env")
189
198
 
190
199
  @from_env.setter
@@ -194,6 +203,9 @@ class ProviderProxyArgs:
194
203
  @property
195
204
  @pulumi.getter
196
205
  def password(self) -> Optional[pulumi.Input[str]]:
206
+ """
207
+ Password used for Basic authentication against the Proxy.
208
+ """
197
209
  return pulumi.get(self, "password")
198
210
 
199
211
  @password.setter
@@ -203,6 +215,9 @@ class ProviderProxyArgs:
203
215
  @property
204
216
  @pulumi.getter
205
217
  def url(self) -> Optional[pulumi.Input[str]]:
218
+ """
219
+ URL used to connect to the Proxy. Accepted schemes are: `http`, `https`, `socks5`.
220
+ """
206
221
  return pulumi.get(self, "url")
207
222
 
208
223
  @url.setter
@@ -212,6 +227,9 @@ class ProviderProxyArgs:
212
227
  @property
213
228
  @pulumi.getter
214
229
  def username(self) -> Optional[pulumi.Input[str]]:
230
+ """
231
+ Username (or Token) used for Basic authentication against the Proxy.
232
+ """
215
233
  return pulumi.get(self, "username")
216
234
 
217
235
  @username.setter
pulumi_tls/_utilities.py CHANGED
@@ -3,16 +3,18 @@
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
5
 
6
+ import asyncio
7
+ import importlib.metadata
6
8
  import importlib.util
7
9
  import inspect
8
10
  import json
9
11
  import os
10
- import pkg_resources
11
12
  import sys
12
13
  import typing
13
14
 
14
15
  import pulumi
15
16
  import pulumi.runtime
17
+ from pulumi.runtime.sync_await import _sync_await
16
18
 
17
19
  from semver import VersionInfo as SemverVersion
18
20
  from parver import Version as PEP440Version
@@ -70,7 +72,7 @@ def _get_semver_version():
70
72
  # to receive a valid semver string when receiving requests from the language host, so it's our
71
73
  # responsibility as the library to convert our own PEP440 version into a valid semver string.
72
74
 
73
- pep440_version_string = pkg_resources.require(root_package)[0].version
75
+ pep440_version_string = importlib.metadata.version(root_package)
74
76
  pep440_version = PEP440Version.parse(pep440_version_string)
75
77
  (major, minor, patch) = pep440_version.release
76
78
  prerelease = None
@@ -246,5 +248,44 @@ def lift_output_func(func: typing.Any) -> typing.Callable[[_F], _F]:
246
248
 
247
249
  return (lambda _: lifted_func)
248
250
 
251
+
252
+ def call_plain(
253
+ tok: str,
254
+ props: pulumi.Inputs,
255
+ res: typing.Optional[pulumi.Resource] = None,
256
+ typ: typing.Optional[type] = None,
257
+ ) -> typing.Any:
258
+ """
259
+ Wraps pulumi.runtime.plain to force the output and return it plainly.
260
+ """
261
+
262
+ output = pulumi.runtime.call(tok, props, res, typ)
263
+
264
+ # Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
265
+ result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output)))
266
+
267
+ problem = None
268
+ if not known:
269
+ problem = ' an unknown value'
270
+ elif secret:
271
+ problem = ' a secret value'
272
+
273
+ if problem:
274
+ raise AssertionError(
275
+ f"Plain resource method '{tok}' incorrectly returned {problem}. "
276
+ + "This is an error in the provider, please report this to the provider developer."
277
+ )
278
+
279
+ return result
280
+
281
+
282
+ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bool, bool, set]:
283
+ return (
284
+ await o._future,
285
+ await o._is_known,
286
+ await o._is_secret,
287
+ await o._resources,
288
+ )
289
+
249
290
  def get_plugin_download_url():
250
291
  return None
@@ -234,6 +234,7 @@ class CertRequest(pulumi.CustomResource):
234
234
  """
235
235
  ## Example Usage
236
236
 
237
+ <!--Start PulumiCodeChooser -->
237
238
  ```python
238
239
  import pulumi
239
240
  import pulumi_tls as tls
@@ -245,6 +246,7 @@ class CertRequest(pulumi.CustomResource):
245
246
  organization="ACME Examples, Inc",
246
247
  ))
247
248
  ```
249
+ <!--End PulumiCodeChooser -->
248
250
 
249
251
  :param str resource_name: The name of the resource.
250
252
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -263,6 +265,7 @@ class CertRequest(pulumi.CustomResource):
263
265
  """
264
266
  ## Example Usage
265
267
 
268
+ <!--Start PulumiCodeChooser -->
266
269
  ```python
267
270
  import pulumi
268
271
  import pulumi_tls as tls
@@ -274,6 +277,7 @@ class CertRequest(pulumi.CustomResource):
274
277
  organization="ACME Examples, Inc",
275
278
  ))
276
279
  ```
280
+ <!--End PulumiCodeChooser -->
277
281
 
278
282
  :param str resource_name: The name of the resource.
279
283
  :param CertRequestArgs args: The arguments to use to populate this resource's properties.
@@ -20,6 +20,12 @@ class Proxy(dict):
20
20
  password: Optional[str] = None,
21
21
  url: Optional[str] = None,
22
22
  username: Optional[str] = None):
23
+ """
24
+ :param bool from_env: When `true` the provider will discover the proxy configuration from environment variables. This is based upon [`http.ProxyFromEnvironment`](https://pkg.go.dev/net/http#ProxyFromEnvironment) and it supports the same environment variables (default: `true`).
25
+ :param str password: Password used for Basic authentication against the Proxy.
26
+ :param str url: URL used to connect to the Proxy. Accepted schemes are: `http`, `https`, `socks5`.
27
+ :param str username: Username (or Token) used for Basic authentication against the Proxy.
28
+ """
23
29
  if from_env is not None:
24
30
  pulumi.set(__self__, "from_env", from_env)
25
31
  if password is not None:
@@ -32,21 +38,33 @@ class Proxy(dict):
32
38
  @property
33
39
  @pulumi.getter(name="fromEnv")
34
40
  def from_env(self) -> Optional[bool]:
41
+ """
42
+ When `true` the provider will discover the proxy configuration from environment variables. This is based upon [`http.ProxyFromEnvironment`](https://pkg.go.dev/net/http#ProxyFromEnvironment) and it supports the same environment variables (default: `true`).
43
+ """
35
44
  return pulumi.get(self, "from_env")
36
45
 
37
46
  @property
38
47
  @pulumi.getter
39
48
  def password(self) -> Optional[str]:
49
+ """
50
+ Password used for Basic authentication against the Proxy.
51
+ """
40
52
  return pulumi.get(self, "password")
41
53
 
42
54
  @property
43
55
  @pulumi.getter
44
56
  def url(self) -> Optional[str]:
57
+ """
58
+ URL used to connect to the Proxy. Accepted schemes are: `http`, `https`, `socks5`.
59
+ """
45
60
  return pulumi.get(self, "url")
46
61
 
47
62
  @property
48
63
  @pulumi.getter
49
64
  def username(self) -> Optional[str]:
65
+ """
66
+ Username (or Token) used for Basic authentication against the Proxy.
67
+ """
50
68
  return pulumi.get(self, "username")
51
69
 
52
70
 
@@ -138,6 +138,7 @@ def get_public_key(private_key_openssh: Optional[str] = None,
138
138
 
139
139
  ## Example Usage
140
140
 
141
+ <!--Start PulumiCodeChooser -->
141
142
  ```python
142
143
  import pulumi
143
144
  import pulumi_tls as tls
@@ -146,6 +147,7 @@ def get_public_key(private_key_openssh: Optional[str] = None,
146
147
  private_key_pem_example = tls.get_public_key_output(private_key_pem=ed25519_example.private_key_pem)
147
148
  private_key_openssh_example = tls.get_public_key(private_key_openssh=(lambda path: open(path).read())("~/.ssh/id_rsa_rfc4716"))
148
149
  ```
150
+ <!--End PulumiCodeChooser -->
149
151
 
150
152
 
151
153
  :param str private_key_openssh: The private key (in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format) to extract the public key from. This is *mutually exclusive* with `private_key_pem`. Currently-supported algorithms for keys are: `RSA`, `ECDSA`, `ED25519`.
@@ -179,6 +181,7 @@ def get_public_key_output(private_key_openssh: Optional[pulumi.Input[Optional[st
179
181
 
180
182
  ## Example Usage
181
183
 
184
+ <!--Start PulumiCodeChooser -->
182
185
  ```python
183
186
  import pulumi
184
187
  import pulumi_tls as tls
@@ -187,6 +190,7 @@ def get_public_key_output(private_key_openssh: Optional[pulumi.Input[Optional[st
187
190
  private_key_pem_example = tls.get_public_key_output(private_key_pem=ed25519_example.private_key_pem)
188
191
  private_key_openssh_example = tls.get_public_key(private_key_openssh=(lambda path: open(path).read())("~/.ssh/id_rsa_rfc4716"))
189
192
  ```
193
+ <!--End PulumiCodeChooser -->
190
194
 
191
195
 
192
196
  :param str private_key_openssh: The private key (in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format) to extract the public key from. This is *mutually exclusive* with `private_key_pem`. Currently-supported algorithms for keys are: `RSA`, `ECDSA`, `ED25519`.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
- Name: pulumi-tls
3
- Version: 5.0.0
2
+ Name: pulumi_tls
3
+ Version: 5.0.2
4
4
  Summary: A Pulumi package to create TLS resources in Pulumi programs.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
7
7
  Project-URL: Repository, https://github.com/pulumi/pulumi-tls
8
8
  Keywords: pulumi,tls
9
- Requires-Python: >=3.7
9
+ Requires-Python: >=3.8
10
10
  Description-Content-Type: text/markdown
11
11
  Requires-Dist: parver >=0.2.1
12
12
  Requires-Dist: pulumi <4.0.0,>=3.0.0
@@ -1,9 +1,9 @@
1
1
  pulumi_tls/__init__.py,sha256=Fk7hjyRIMx42E0iGoNp4d238SBG6PAUxDzvlIndTJck,1523
2
- pulumi_tls/_inputs.py,sha256=JjQ3K8U2n9LfP0b1LDRcIoUVU2sjplfTdrJ09qu9v_A,13099
3
- pulumi_tls/_utilities.py,sha256=fRvpCIKutW049SlpPUAoouFyjnSSk1J-OY0b8SDzJaE,8081
4
- pulumi_tls/cert_request.py,sha256=36qmjbtEgZE6QAqYk0oNVtPjn8VSha50_Tzs8XNR7Mw,20391
2
+ pulumi_tls/_inputs.py,sha256=KVpnu-mvOyzrpVpdrb90KBWDhaN_i67rIkdR3d8qJlw,14351
3
+ pulumi_tls/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
4
+ pulumi_tls/cert_request.py,sha256=rHD9oA0Whh3gsRzgAdCpFj0cRjB1jEaIeyJZ-OIAUJs,20547
5
5
  pulumi_tls/get_certificate.py,sha256=lUy1OLl5oA8GbQnOeVy6F7Sfd8pWSgCnZ1g9gV9Jr30,5540
6
- pulumi_tls/get_public_key.py,sha256=1vo4D1xf6z33AwgCrh4tR6qARrp7PBwUlAEli5Y-ldE,9965
6
+ pulumi_tls/get_public_key.py,sha256=xi9De65moARolWkV91G1zAtJMjhRFTn4e9U6sl7ftzg,10105
7
7
  pulumi_tls/locally_signed_cert.py,sha256=4NvYD8E-YpLQ-rIncp90RC7FDtJoMSYkoOjmuXHm2zM,41155
8
8
  pulumi_tls/outputs.py,sha256=3Yjo4iKbFD4gJQhCGGWwocpCAuS3V-d6nvQ9lseB3Qg,14909
9
9
  pulumi_tls/private_key.py,sha256=l7YLkUhXlp-lLWST8p34AoR0zMI_Dj2qRlQEf8sjMVg,22201
@@ -13,9 +13,9 @@ pulumi_tls/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  pulumi_tls/self_signed_cert.py,sha256=t_MyOK6xCSMMiBeCcNZEKdafd5w903BTKt5ufrfKl4M,50239
14
14
  pulumi_tls/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
15
15
  pulumi_tls/config/__init__.pyi,sha256=kaPJpeRs8A7zNA-3MY-QL0zyxMV0oqUrYrsLj3HpqEg,474
16
- pulumi_tls/config/outputs.py,sha256=dA-Pt9uV2GYOUeiz1_qye69Jx-C80s3uCreEDydK-so,1457
16
+ pulumi_tls/config/outputs.py,sha256=SYfBlhKnqFeIaEpQLFgdBfABD4pzTkAlZTuwWWsGQ4A,2653
17
17
  pulumi_tls/config/vars.py,sha256=wTZ5QbW-pH76tJ5PSA2zAFV4bPdtC5pmxQsV7jRd3c8,661
18
- pulumi_tls-5.0.0.dist-info/METADATA,sha256=5Mmzdwp3ExzS8POmFArZpqheOr6CLh8tNC8dByf-YTc,2416
19
- pulumi_tls-5.0.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
20
- pulumi_tls-5.0.0.dist-info/top_level.txt,sha256=w0yJOTuCUb1BpNsSTm0FJZPucueobFIfzPGzjYklx1U,11
21
- pulumi_tls-5.0.0.dist-info/RECORD,,
18
+ pulumi_tls-5.0.2.dist-info/METADATA,sha256=NqzeSfc87PwPg-_jC3yWrZG0HylGAIIWbcAWYacCXrg,2416
19
+ pulumi_tls-5.0.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
20
+ pulumi_tls-5.0.2.dist-info/top_level.txt,sha256=w0yJOTuCUb1BpNsSTm0FJZPucueobFIfzPGzjYklx1U,11
21
+ pulumi_tls-5.0.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5