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