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/outputs.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
@@ -51,27 +50,27 @@ class CertRequestSubject(dict):
51
50
  return super().get(key, default)
52
51
 
53
52
  def __init__(__self__, *,
54
- common_name: Optional[builtins.str] = None,
55
- country: Optional[builtins.str] = None,
56
- email_address: Optional[builtins.str] = None,
57
- locality: Optional[builtins.str] = None,
58
- organization: Optional[builtins.str] = None,
59
- organizational_unit: Optional[builtins.str] = None,
60
- postal_code: Optional[builtins.str] = None,
61
- province: Optional[builtins.str] = None,
62
- serial_number: Optional[builtins.str] = None,
63
- street_addresses: Optional[Sequence[builtins.str]] = None):
64
- """
65
- :param builtins.str common_name: Distinguished name: `CN`
66
- :param builtins.str country: Distinguished name: `C`
67
- :param builtins.str email_address: ASN.1 Object Identifier (OID): `1.2.840.113549.1.9.1`
68
- :param builtins.str locality: Distinguished name: `L`
69
- :param builtins.str organization: Distinguished name: `O`
70
- :param builtins.str organizational_unit: Distinguished name: `OU`
71
- :param builtins.str postal_code: Distinguished name: `PC`
72
- :param builtins.str province: Distinguished name: `ST`
73
- :param builtins.str serial_number: Distinguished name: `SERIALNUMBER`
74
- :param Sequence[builtins.str] street_addresses: Distinguished name: `STREET`
53
+ common_name: Optional[_builtins.str] = None,
54
+ country: Optional[_builtins.str] = None,
55
+ email_address: Optional[_builtins.str] = None,
56
+ locality: Optional[_builtins.str] = None,
57
+ organization: Optional[_builtins.str] = None,
58
+ organizational_unit: Optional[_builtins.str] = None,
59
+ postal_code: Optional[_builtins.str] = None,
60
+ province: Optional[_builtins.str] = None,
61
+ serial_number: Optional[_builtins.str] = None,
62
+ street_addresses: Optional[Sequence[_builtins.str]] = None):
63
+ """
64
+ :param _builtins.str common_name: Distinguished name: `CN`
65
+ :param _builtins.str country: Distinguished name: `C`
66
+ :param _builtins.str email_address: ASN.1 Object Identifier (OID): `1.2.840.113549.1.9.1`
67
+ :param _builtins.str locality: Distinguished name: `L`
68
+ :param _builtins.str organization: Distinguished name: `O`
69
+ :param _builtins.str organizational_unit: Distinguished name: `OU`
70
+ :param _builtins.str postal_code: Distinguished name: `PC`
71
+ :param _builtins.str province: Distinguished name: `ST`
72
+ :param _builtins.str serial_number: Distinguished name: `SERIALNUMBER`
73
+ :param Sequence[_builtins.str] street_addresses: Distinguished name: `STREET`
75
74
  """
76
75
  if common_name is not None:
77
76
  pulumi.set(__self__, "common_name", common_name)
@@ -94,81 +93,81 @@ class CertRequestSubject(dict):
94
93
  if street_addresses is not None:
95
94
  pulumi.set(__self__, "street_addresses", street_addresses)
96
95
 
97
- @property
96
+ @_builtins.property
98
97
  @pulumi.getter(name="commonName")
99
- def common_name(self) -> Optional[builtins.str]:
98
+ def common_name(self) -> Optional[_builtins.str]:
100
99
  """
101
100
  Distinguished name: `CN`
102
101
  """
103
102
  return pulumi.get(self, "common_name")
104
103
 
105
- @property
104
+ @_builtins.property
106
105
  @pulumi.getter
107
- def country(self) -> Optional[builtins.str]:
106
+ def country(self) -> Optional[_builtins.str]:
108
107
  """
109
108
  Distinguished name: `C`
110
109
  """
111
110
  return pulumi.get(self, "country")
112
111
 
113
- @property
112
+ @_builtins.property
114
113
  @pulumi.getter(name="emailAddress")
115
- def email_address(self) -> Optional[builtins.str]:
114
+ def email_address(self) -> Optional[_builtins.str]:
116
115
  """
117
116
  ASN.1 Object Identifier (OID): `1.2.840.113549.1.9.1`
118
117
  """
119
118
  return pulumi.get(self, "email_address")
120
119
 
121
- @property
120
+ @_builtins.property
122
121
  @pulumi.getter
123
- def locality(self) -> Optional[builtins.str]:
122
+ def locality(self) -> Optional[_builtins.str]:
124
123
  """
125
124
  Distinguished name: `L`
126
125
  """
127
126
  return pulumi.get(self, "locality")
128
127
 
129
- @property
128
+ @_builtins.property
130
129
  @pulumi.getter
131
- def organization(self) -> Optional[builtins.str]:
130
+ def organization(self) -> Optional[_builtins.str]:
132
131
  """
133
132
  Distinguished name: `O`
134
133
  """
135
134
  return pulumi.get(self, "organization")
136
135
 
137
- @property
136
+ @_builtins.property
138
137
  @pulumi.getter(name="organizationalUnit")
139
- def organizational_unit(self) -> Optional[builtins.str]:
138
+ def organizational_unit(self) -> Optional[_builtins.str]:
140
139
  """
141
140
  Distinguished name: `OU`
142
141
  """
143
142
  return pulumi.get(self, "organizational_unit")
144
143
 
145
- @property
144
+ @_builtins.property
146
145
  @pulumi.getter(name="postalCode")
147
- def postal_code(self) -> Optional[builtins.str]:
146
+ def postal_code(self) -> Optional[_builtins.str]:
148
147
  """
149
148
  Distinguished name: `PC`
150
149
  """
151
150
  return pulumi.get(self, "postal_code")
152
151
 
153
- @property
152
+ @_builtins.property
154
153
  @pulumi.getter
155
- def province(self) -> Optional[builtins.str]:
154
+ def province(self) -> Optional[_builtins.str]:
156
155
  """
157
156
  Distinguished name: `ST`
158
157
  """
159
158
  return pulumi.get(self, "province")
160
159
 
161
- @property
160
+ @_builtins.property
162
161
  @pulumi.getter(name="serialNumber")
163
- def serial_number(self) -> Optional[builtins.str]:
162
+ def serial_number(self) -> Optional[_builtins.str]:
164
163
  """
165
164
  Distinguished name: `SERIALNUMBER`
166
165
  """
167
166
  return pulumi.get(self, "serial_number")
168
167
 
169
- @property
168
+ @_builtins.property
170
169
  @pulumi.getter(name="streetAddresses")
171
- def street_addresses(self) -> Optional[Sequence[builtins.str]]:
170
+ def street_addresses(self) -> Optional[Sequence[_builtins.str]]:
172
171
  """
173
172
  Distinguished name: `STREET`
174
173
  """
@@ -205,27 +204,27 @@ class SelfSignedCertSubject(dict):
205
204
  return super().get(key, default)
206
205
 
207
206
  def __init__(__self__, *,
208
- common_name: Optional[builtins.str] = None,
209
- country: Optional[builtins.str] = None,
210
- email_address: Optional[builtins.str] = None,
211
- locality: Optional[builtins.str] = None,
212
- organization: Optional[builtins.str] = None,
213
- organizational_unit: Optional[builtins.str] = None,
214
- postal_code: Optional[builtins.str] = None,
215
- province: Optional[builtins.str] = None,
216
- serial_number: Optional[builtins.str] = None,
217
- street_addresses: Optional[Sequence[builtins.str]] = None):
218
- """
219
- :param builtins.str common_name: Distinguished name: `CN`
220
- :param builtins.str country: Distinguished name: `C`
221
- :param builtins.str email_address: ASN.1 Object Identifier (OID): `1.2.840.113549.1.9.1`
222
- :param builtins.str locality: Distinguished name: `L`
223
- :param builtins.str organization: Distinguished name: `O`
224
- :param builtins.str organizational_unit: Distinguished name: `OU`
225
- :param builtins.str postal_code: Distinguished name: `PC`
226
- :param builtins.str province: Distinguished name: `ST`
227
- :param builtins.str serial_number: Distinguished name: `SERIALNUMBER`
228
- :param Sequence[builtins.str] street_addresses: Distinguished name: `STREET`
207
+ common_name: Optional[_builtins.str] = None,
208
+ country: Optional[_builtins.str] = None,
209
+ email_address: Optional[_builtins.str] = None,
210
+ locality: Optional[_builtins.str] = None,
211
+ organization: Optional[_builtins.str] = None,
212
+ organizational_unit: Optional[_builtins.str] = None,
213
+ postal_code: Optional[_builtins.str] = None,
214
+ province: Optional[_builtins.str] = None,
215
+ serial_number: Optional[_builtins.str] = None,
216
+ street_addresses: Optional[Sequence[_builtins.str]] = None):
217
+ """
218
+ :param _builtins.str common_name: Distinguished name: `CN`
219
+ :param _builtins.str country: Distinguished name: `C`
220
+ :param _builtins.str email_address: ASN.1 Object Identifier (OID): `1.2.840.113549.1.9.1`
221
+ :param _builtins.str locality: Distinguished name: `L`
222
+ :param _builtins.str organization: Distinguished name: `O`
223
+ :param _builtins.str organizational_unit: Distinguished name: `OU`
224
+ :param _builtins.str postal_code: Distinguished name: `PC`
225
+ :param _builtins.str province: Distinguished name: `ST`
226
+ :param _builtins.str serial_number: Distinguished name: `SERIALNUMBER`
227
+ :param Sequence[_builtins.str] street_addresses: Distinguished name: `STREET`
229
228
  """
230
229
  if common_name is not None:
231
230
  pulumi.set(__self__, "common_name", common_name)
@@ -248,81 +247,81 @@ class SelfSignedCertSubject(dict):
248
247
  if street_addresses is not None:
249
248
  pulumi.set(__self__, "street_addresses", street_addresses)
250
249
 
251
- @property
250
+ @_builtins.property
252
251
  @pulumi.getter(name="commonName")
253
- def common_name(self) -> Optional[builtins.str]:
252
+ def common_name(self) -> Optional[_builtins.str]:
254
253
  """
255
254
  Distinguished name: `CN`
256
255
  """
257
256
  return pulumi.get(self, "common_name")
258
257
 
259
- @property
258
+ @_builtins.property
260
259
  @pulumi.getter
261
- def country(self) -> Optional[builtins.str]:
260
+ def country(self) -> Optional[_builtins.str]:
262
261
  """
263
262
  Distinguished name: `C`
264
263
  """
265
264
  return pulumi.get(self, "country")
266
265
 
267
- @property
266
+ @_builtins.property
268
267
  @pulumi.getter(name="emailAddress")
269
- def email_address(self) -> Optional[builtins.str]:
268
+ def email_address(self) -> Optional[_builtins.str]:
270
269
  """
271
270
  ASN.1 Object Identifier (OID): `1.2.840.113549.1.9.1`
272
271
  """
273
272
  return pulumi.get(self, "email_address")
274
273
 
275
- @property
274
+ @_builtins.property
276
275
  @pulumi.getter
277
- def locality(self) -> Optional[builtins.str]:
276
+ def locality(self) -> Optional[_builtins.str]:
278
277
  """
279
278
  Distinguished name: `L`
280
279
  """
281
280
  return pulumi.get(self, "locality")
282
281
 
283
- @property
282
+ @_builtins.property
284
283
  @pulumi.getter
285
- def organization(self) -> Optional[builtins.str]:
284
+ def organization(self) -> Optional[_builtins.str]:
286
285
  """
287
286
  Distinguished name: `O`
288
287
  """
289
288
  return pulumi.get(self, "organization")
290
289
 
291
- @property
290
+ @_builtins.property
292
291
  @pulumi.getter(name="organizationalUnit")
293
- def organizational_unit(self) -> Optional[builtins.str]:
292
+ def organizational_unit(self) -> Optional[_builtins.str]:
294
293
  """
295
294
  Distinguished name: `OU`
296
295
  """
297
296
  return pulumi.get(self, "organizational_unit")
298
297
 
299
- @property
298
+ @_builtins.property
300
299
  @pulumi.getter(name="postalCode")
301
- def postal_code(self) -> Optional[builtins.str]:
300
+ def postal_code(self) -> Optional[_builtins.str]:
302
301
  """
303
302
  Distinguished name: `PC`
304
303
  """
305
304
  return pulumi.get(self, "postal_code")
306
305
 
307
- @property
306
+ @_builtins.property
308
307
  @pulumi.getter
309
- def province(self) -> Optional[builtins.str]:
308
+ def province(self) -> Optional[_builtins.str]:
310
309
  """
311
310
  Distinguished name: `ST`
312
311
  """
313
312
  return pulumi.get(self, "province")
314
313
 
315
- @property
314
+ @_builtins.property
316
315
  @pulumi.getter(name="serialNumber")
317
- def serial_number(self) -> Optional[builtins.str]:
316
+ def serial_number(self) -> Optional[_builtins.str]:
318
317
  """
319
318
  Distinguished name: `SERIALNUMBER`
320
319
  """
321
320
  return pulumi.get(self, "serial_number")
322
321
 
323
- @property
322
+ @_builtins.property
324
323
  @pulumi.getter(name="streetAddresses")
325
- def street_addresses(self) -> Optional[Sequence[builtins.str]]:
324
+ def street_addresses(self) -> Optional[Sequence[_builtins.str]]:
326
325
  """
327
326
  Distinguished name: `STREET`
328
327
  """
@@ -332,30 +331,30 @@ class SelfSignedCertSubject(dict):
332
331
  @pulumi.output_type
333
332
  class GetCertificateCertificateResult(dict):
334
333
  def __init__(__self__, *,
335
- cert_pem: builtins.str,
336
- is_ca: builtins.bool,
337
- issuer: builtins.str,
338
- not_after: builtins.str,
339
- not_before: builtins.str,
340
- public_key_algorithm: builtins.str,
341
- serial_number: builtins.str,
342
- sha1_fingerprint: builtins.str,
343
- signature_algorithm: builtins.str,
344
- subject: builtins.str,
345
- version: builtins.int):
346
- """
347
- :param builtins.str cert_pem: Certificate 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()`.
348
- :param builtins.bool is_ca: `true` if the certificate is of a CA (Certificate Authority).
349
- :param builtins.str issuer: Who verified and signed the certificate, roughly following [RFC2253](https://tools.ietf.org/html/rfc2253).
350
- :param builtins.str not_after: The time until which the certificate is invalid, as an [RFC3339](https://tools.ietf.org/html/rfc3339) timestamp.
351
- :param builtins.str not_before: The time after which the certificate is valid, as an [RFC3339](https://tools.ietf.org/html/rfc3339) timestamp.
352
- :param builtins.str public_key_algorithm: The key algorithm used to create the certificate.
353
- :param builtins.str serial_number: Number that uniquely identifies the certificate with the CA's system.
334
+ cert_pem: _builtins.str,
335
+ is_ca: _builtins.bool,
336
+ issuer: _builtins.str,
337
+ not_after: _builtins.str,
338
+ not_before: _builtins.str,
339
+ public_key_algorithm: _builtins.str,
340
+ serial_number: _builtins.str,
341
+ sha1_fingerprint: _builtins.str,
342
+ signature_algorithm: _builtins.str,
343
+ subject: _builtins.str,
344
+ version: _builtins.int):
345
+ """
346
+ :param _builtins.str cert_pem: Certificate 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()`.
347
+ :param _builtins.bool is_ca: `true` if the certificate is of a CA (Certificate Authority).
348
+ :param _builtins.str issuer: Who verified and signed the certificate, roughly following [RFC2253](https://tools.ietf.org/html/rfc2253).
349
+ :param _builtins.str not_after: The time until which the certificate is invalid, as an [RFC3339](https://tools.ietf.org/html/rfc3339) timestamp.
350
+ :param _builtins.str not_before: The time after which the certificate is valid, as an [RFC3339](https://tools.ietf.org/html/rfc3339) timestamp.
351
+ :param _builtins.str public_key_algorithm: The key algorithm used to create the certificate.
352
+ :param _builtins.str serial_number: Number that uniquely identifies the certificate with the CA's system.
354
353
  The `format` function can be used to convert this *base 10* number into other bases, such as hex.
355
- :param builtins.str sha1_fingerprint: The SHA1 fingerprint of the public key of the certificate.
356
- :param builtins.str signature_algorithm: The algorithm used to sign the certificate.
357
- :param builtins.str subject: The entity the certificate belongs to, roughly following [RFC2253](https://tools.ietf.org/html/rfc2253).
358
- :param builtins.int version: The version the certificate is in.
354
+ :param _builtins.str sha1_fingerprint: The SHA1 fingerprint of the public key of the certificate.
355
+ :param _builtins.str signature_algorithm: The algorithm used to sign the certificate.
356
+ :param _builtins.str subject: The entity the certificate belongs to, roughly following [RFC2253](https://tools.ietf.org/html/rfc2253).
357
+ :param _builtins.int version: The version the certificate is in.
359
358
  """
360
359
  pulumi.set(__self__, "cert_pem", cert_pem)
361
360
  pulumi.set(__self__, "is_ca", is_ca)
@@ -369,90 +368,90 @@ class GetCertificateCertificateResult(dict):
369
368
  pulumi.set(__self__, "subject", subject)
370
369
  pulumi.set(__self__, "version", version)
371
370
 
372
- @property
371
+ @_builtins.property
373
372
  @pulumi.getter(name="certPem")
374
- def cert_pem(self) -> builtins.str:
373
+ def cert_pem(self) -> _builtins.str:
375
374
  """
376
375
  Certificate 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_pem")
379
378
 
380
- @property
379
+ @_builtins.property
381
380
  @pulumi.getter(name="isCa")
382
- def is_ca(self) -> builtins.bool:
381
+ def is_ca(self) -> _builtins.bool:
383
382
  """
384
383
  `true` if the certificate is of a CA (Certificate Authority).
385
384
  """
386
385
  return pulumi.get(self, "is_ca")
387
386
 
388
- @property
387
+ @_builtins.property
389
388
  @pulumi.getter
390
- def issuer(self) -> builtins.str:
389
+ def issuer(self) -> _builtins.str:
391
390
  """
392
391
  Who verified and signed the certificate, roughly following [RFC2253](https://tools.ietf.org/html/rfc2253).
393
392
  """
394
393
  return pulumi.get(self, "issuer")
395
394
 
396
- @property
395
+ @_builtins.property
397
396
  @pulumi.getter(name="notAfter")
398
- def not_after(self) -> builtins.str:
397
+ def not_after(self) -> _builtins.str:
399
398
  """
400
399
  The time until which the certificate is invalid, as an [RFC3339](https://tools.ietf.org/html/rfc3339) timestamp.
401
400
  """
402
401
  return pulumi.get(self, "not_after")
403
402
 
404
- @property
403
+ @_builtins.property
405
404
  @pulumi.getter(name="notBefore")
406
- def not_before(self) -> builtins.str:
405
+ def not_before(self) -> _builtins.str:
407
406
  """
408
407
  The time after which the certificate is valid, as an [RFC3339](https://tools.ietf.org/html/rfc3339) timestamp.
409
408
  """
410
409
  return pulumi.get(self, "not_before")
411
410
 
412
- @property
411
+ @_builtins.property
413
412
  @pulumi.getter(name="publicKeyAlgorithm")
414
- def public_key_algorithm(self) -> builtins.str:
413
+ def public_key_algorithm(self) -> _builtins.str:
415
414
  """
416
415
  The key algorithm used to create the certificate.
417
416
  """
418
417
  return pulumi.get(self, "public_key_algorithm")
419
418
 
420
- @property
419
+ @_builtins.property
421
420
  @pulumi.getter(name="serialNumber")
422
- def serial_number(self) -> builtins.str:
421
+ def serial_number(self) -> _builtins.str:
423
422
  """
424
423
  Number that uniquely identifies the certificate with the CA's system.
425
424
  The `format` function can be used to convert this *base 10* number into other bases, such as hex.
426
425
  """
427
426
  return pulumi.get(self, "serial_number")
428
427
 
429
- @property
428
+ @_builtins.property
430
429
  @pulumi.getter(name="sha1Fingerprint")
431
- def sha1_fingerprint(self) -> builtins.str:
430
+ def sha1_fingerprint(self) -> _builtins.str:
432
431
  """
433
432
  The SHA1 fingerprint of the public key of the certificate.
434
433
  """
435
434
  return pulumi.get(self, "sha1_fingerprint")
436
435
 
437
- @property
436
+ @_builtins.property
438
437
  @pulumi.getter(name="signatureAlgorithm")
439
- def signature_algorithm(self) -> builtins.str:
438
+ def signature_algorithm(self) -> _builtins.str:
440
439
  """
441
440
  The algorithm used to sign the certificate.
442
441
  """
443
442
  return pulumi.get(self, "signature_algorithm")
444
443
 
445
- @property
444
+ @_builtins.property
446
445
  @pulumi.getter
447
- def subject(self) -> builtins.str:
446
+ def subject(self) -> _builtins.str:
448
447
  """
449
448
  The entity the certificate belongs to, roughly following [RFC2253](https://tools.ietf.org/html/rfc2253).
450
449
  """
451
450
  return pulumi.get(self, "subject")
452
451
 
453
- @property
452
+ @_builtins.property
454
453
  @pulumi.getter
455
- def version(self) -> builtins.int:
454
+ def version(self) -> _builtins.int:
456
455
  """
457
456
  The version the certificate is in.
458
457
  """