@cdktn/provider-tls 11.1.0 → 12.0.0

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.
@@ -1,142 +1,148 @@
1
1
  /**
2
- * Copyright (c) HashiCorp, Inc.
2
+ * Copyright IBM Corp. 2021, 2026
3
3
  * SPDX-License-Identifier: MPL-2.0
4
4
  */
5
5
  import { Construct } from 'constructs';
6
- import * as cdktf from 'cdktf';
7
- export interface SelfSignedCertConfig extends cdktf.TerraformMetaArguments {
6
+ import * as cdktn from 'cdktn';
7
+ export interface SelfSignedCertConfig extends cdktn.TerraformMetaArguments {
8
8
  /**
9
9
  * List of key usages allowed for the issued certificate. Values are defined in [RFC 5280](https://datatracker.ietf.org/doc/html/rfc5280) and combine flags defined by both [Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.3) and [Extended Key Usages](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.12). Accepted values: `any_extended`, `cert_signing`, `client_auth`, `code_signing`, `content_commitment`, `crl_signing`, `data_encipherment`, `decipher_only`, `digital_signature`, `email_protection`, `encipher_only`, `ipsec_end_system`, `ipsec_tunnel`, `ipsec_user`, `key_agreement`, `key_encipherment`, `microsoft_commercial_code_signing`, `microsoft_kernel_code_signing`, `microsoft_server_gated_crypto`, `netscape_server_gated_crypto`, `ocsp_signing`, `server_auth`, `timestamping`.
10
10
  *
11
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#allowed_uses SelfSignedCert#allowed_uses}
11
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#allowed_uses SelfSignedCert#allowed_uses}
12
12
  */
13
13
  readonly allowedUses: string[];
14
14
  /**
15
15
  * List of DNS names for which a certificate is being requested (i.e. certificate subjects).
16
16
  *
17
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#dns_names SelfSignedCert#dns_names}
17
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#dns_names SelfSignedCert#dns_names}
18
18
  */
19
19
  readonly dnsNames?: string[];
20
20
  /**
21
21
  * The resource will consider the certificate to have expired the given number of hours before its actual expiry time. This can be useful to deploy an updated certificate in advance of the expiration of the current certificate. However, the old certificate remains valid until its true expiration time, since this resource does not (and cannot) support certificate revocation. Also, this advance update can only be performed should the Terraform configuration be applied during the early renewal period. (default: `0`)
22
22
  *
23
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#early_renewal_hours SelfSignedCert#early_renewal_hours}
23
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#early_renewal_hours SelfSignedCert#early_renewal_hours}
24
24
  */
25
25
  readonly earlyRenewalHours?: number;
26
26
  /**
27
27
  * List of IP addresses for which a certificate is being requested (i.e. certificate subjects).
28
28
  *
29
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#ip_addresses SelfSignedCert#ip_addresses}
29
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#ip_addresses SelfSignedCert#ip_addresses}
30
30
  */
31
31
  readonly ipAddresses?: string[];
32
32
  /**
33
33
  * Is the generated certificate representing a Certificate Authority (CA) (default: `false`).
34
34
  *
35
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#is_ca_certificate SelfSignedCert#is_ca_certificate}
35
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#is_ca_certificate SelfSignedCert#is_ca_certificate}
36
36
  */
37
- readonly isCaCertificate?: boolean | cdktf.IResolvable;
37
+ readonly isCaCertificate?: boolean | cdktn.IResolvable;
38
+ /**
39
+ * Maximum number of intermediate certificates that may follow this certificate in a valid certification path. If `is_ca_certificate` is `false`, this value is ignored.
40
+ *
41
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#max_path_length SelfSignedCert#max_path_length}
42
+ */
43
+ readonly maxPathLength?: number;
38
44
  /**
39
45
  * 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`](https://www.terraform.io/language/functions/file) interpolation function.
40
46
  *
41
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#private_key_pem SelfSignedCert#private_key_pem}
47
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#private_key_pem SelfSignedCert#private_key_pem}
42
48
  */
43
49
  readonly privateKeyPem: string;
44
50
  /**
45
51
  * Should the generated certificate include an [authority key identifier](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.1): for self-signed certificates this is the same value as the [subject key identifier](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.2) (default: `false`).
46
52
  *
47
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#set_authority_key_id SelfSignedCert#set_authority_key_id}
53
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#set_authority_key_id SelfSignedCert#set_authority_key_id}
48
54
  */
49
- readonly setAuthorityKeyId?: boolean | cdktf.IResolvable;
55
+ readonly setAuthorityKeyId?: boolean | cdktn.IResolvable;
50
56
  /**
51
57
  * Should the generated certificate include a [subject key identifier](https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.2) (default: `false`).
52
58
  *
53
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#set_subject_key_id SelfSignedCert#set_subject_key_id}
59
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#set_subject_key_id SelfSignedCert#set_subject_key_id}
54
60
  */
55
- readonly setSubjectKeyId?: boolean | cdktf.IResolvable;
61
+ readonly setSubjectKeyId?: boolean | cdktn.IResolvable;
56
62
  /**
57
63
  * List of URIs for which a certificate is being requested (i.e. certificate subjects).
58
64
  *
59
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#uris SelfSignedCert#uris}
65
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#uris SelfSignedCert#uris}
60
66
  */
61
67
  readonly uris?: string[];
62
68
  /**
63
69
  * Number of hours, after initial issuing, that the certificate will remain valid for.
64
70
  *
65
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#validity_period_hours SelfSignedCert#validity_period_hours}
71
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#validity_period_hours SelfSignedCert#validity_period_hours}
66
72
  */
67
73
  readonly validityPeriodHours: number;
68
74
  /**
69
75
  * subject block
70
76
  *
71
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#subject SelfSignedCert#subject}
77
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#subject SelfSignedCert#subject}
72
78
  */
73
- readonly subject?: SelfSignedCertSubject[] | cdktf.IResolvable;
79
+ readonly subject?: SelfSignedCertSubject[] | cdktn.IResolvable;
74
80
  }
75
81
  export interface SelfSignedCertSubject {
76
82
  /**
77
83
  * Distinguished name: `CN`
78
84
  *
79
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#common_name SelfSignedCert#common_name}
85
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#common_name SelfSignedCert#common_name}
80
86
  */
81
87
  readonly commonName?: string;
82
88
  /**
83
89
  * Distinguished name: `C`
84
90
  *
85
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#country SelfSignedCert#country}
91
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#country SelfSignedCert#country}
86
92
  */
87
93
  readonly country?: string;
88
94
  /**
89
95
  * ASN.1 Object Identifier (OID): `1.2.840.113549.1.9.1`
90
96
  *
91
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#email_address SelfSignedCert#email_address}
97
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#email_address SelfSignedCert#email_address}
92
98
  */
93
99
  readonly emailAddress?: string;
94
100
  /**
95
101
  * Distinguished name: `L`
96
102
  *
97
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#locality SelfSignedCert#locality}
103
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#locality SelfSignedCert#locality}
98
104
  */
99
105
  readonly locality?: string;
100
106
  /**
101
107
  * Distinguished name: `O`
102
108
  *
103
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#organization SelfSignedCert#organization}
109
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#organization SelfSignedCert#organization}
104
110
  */
105
111
  readonly organization?: string;
106
112
  /**
107
113
  * Distinguished name: `OU`
108
114
  *
109
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#organizational_unit SelfSignedCert#organizational_unit}
115
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#organizational_unit SelfSignedCert#organizational_unit}
110
116
  */
111
117
  readonly organizationalUnit?: string;
112
118
  /**
113
119
  * Distinguished name: `PC`
114
120
  *
115
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#postal_code SelfSignedCert#postal_code}
121
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#postal_code SelfSignedCert#postal_code}
116
122
  */
117
123
  readonly postalCode?: string;
118
124
  /**
119
125
  * Distinguished name: `ST`
120
126
  *
121
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#province SelfSignedCert#province}
127
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#province SelfSignedCert#province}
122
128
  */
123
129
  readonly province?: string;
124
130
  /**
125
131
  * Distinguished name: `SERIALNUMBER`
126
132
  *
127
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#serial_number SelfSignedCert#serial_number}
133
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#serial_number SelfSignedCert#serial_number}
128
134
  */
129
135
  readonly serialNumber?: string;
130
136
  /**
131
137
  * Distinguished name: `STREET`
132
138
  *
133
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#street_address SelfSignedCert#street_address}
139
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#street_address SelfSignedCert#street_address}
134
140
  */
135
141
  readonly streetAddress?: string[];
136
142
  }
137
- export declare function selfSignedCertSubjectToTerraform(struct?: SelfSignedCertSubject | cdktf.IResolvable): any;
138
- export declare function selfSignedCertSubjectToHclTerraform(struct?: SelfSignedCertSubject | cdktf.IResolvable): any;
139
- export declare class SelfSignedCertSubjectOutputReference extends cdktf.ComplexObject {
143
+ export declare function selfSignedCertSubjectToTerraform(struct?: SelfSignedCertSubject | cdktn.IResolvable): any;
144
+ export declare function selfSignedCertSubjectToHclTerraform(struct?: SelfSignedCertSubject | cdktn.IResolvable): any;
145
+ export declare class SelfSignedCertSubjectOutputReference extends cdktn.ComplexObject {
140
146
  private isEmptyObject;
141
147
  private resolvableValue?;
142
148
  /**
@@ -145,9 +151,9 @@ export declare class SelfSignedCertSubjectOutputReference extends cdktf.ComplexO
145
151
  * @param complexObjectIndex the index of this item in the list
146
152
  * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
147
153
  */
148
- constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
149
- get internalValue(): SelfSignedCertSubject | cdktf.IResolvable | undefined;
150
- set internalValue(value: SelfSignedCertSubject | cdktf.IResolvable | undefined);
154
+ constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean);
155
+ get internalValue(): SelfSignedCertSubject | cdktn.IResolvable | undefined;
156
+ set internalValue(value: SelfSignedCertSubject | cdktn.IResolvable | undefined);
151
157
  private _commonName?;
152
158
  get commonName(): string;
153
159
  set commonName(value: string);
@@ -199,37 +205,37 @@ export declare class SelfSignedCertSubjectOutputReference extends cdktf.ComplexO
199
205
  resetStreetAddress(): void;
200
206
  get streetAddressInput(): string[] | undefined;
201
207
  }
202
- export declare class SelfSignedCertSubjectList extends cdktf.ComplexList {
203
- protected terraformResource: cdktf.IInterpolatingParent;
208
+ export declare class SelfSignedCertSubjectList extends cdktn.ComplexList {
209
+ protected terraformResource: cdktn.IInterpolatingParent;
204
210
  protected terraformAttribute: string;
205
211
  protected wrapsSet: boolean;
206
- internalValue?: SelfSignedCertSubject[] | cdktf.IResolvable;
212
+ internalValue?: SelfSignedCertSubject[] | cdktn.IResolvable;
207
213
  /**
208
214
  * @param terraformResource The parent resource
209
215
  * @param terraformAttribute The attribute on the parent resource this class is referencing
210
216
  * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
211
217
  */
212
- constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
218
+ constructor(terraformResource: cdktn.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean);
213
219
  /**
214
220
  * @param index the index of the item to return
215
221
  */
216
222
  get(index: number): SelfSignedCertSubjectOutputReference;
217
223
  }
218
224
  /**
219
- * Represents a {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert tls_self_signed_cert}
225
+ * Represents a {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert tls_self_signed_cert}
220
226
  */
221
- export declare class SelfSignedCert extends cdktf.TerraformResource {
227
+ export declare class SelfSignedCert extends cdktn.TerraformResource {
222
228
  static readonly tfResourceType = "tls_self_signed_cert";
223
229
  /**
224
- * Generates CDKTF code for importing a SelfSignedCert resource upon running "cdktf plan <stack-name>"
230
+ * Generates CDKTN code for importing a SelfSignedCert resource upon running "cdktn plan <stack-name>"
225
231
  * @param scope The scope in which to define this construct
226
232
  * @param importToId The construct id used in the generated config for the SelfSignedCert to import
227
- * @param importFromId The id of the existing SelfSignedCert that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert#import import section} in the documentation of this resource for the id to use
233
+ * @param importFromId The id of the existing SelfSignedCert that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert#import import section} in the documentation of this resource for the id to use
228
234
  * @param provider? Optional instance of the provider where the SelfSignedCert to import is found
229
235
  */
230
- static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
236
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktn.TerraformProvider): cdktn.ImportableResource;
231
237
  /**
232
- * Create a new {@link https://registry.terraform.io/providers/hashicorp/tls/4.1.0/docs/resources/self_signed_cert tls_self_signed_cert} Resource
238
+ * Create a new {@link https://registry.terraform.io/providers/hashicorp/tls/4.2.1/docs/resources/self_signed_cert tls_self_signed_cert} Resource
233
239
  *
234
240
  * @param scope The scope in which to define this construct
235
241
  * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
@@ -258,26 +264,31 @@ export declare class SelfSignedCert extends cdktf.TerraformResource {
258
264
  resetIpAddresses(): void;
259
265
  get ipAddressesInput(): string[] | undefined;
260
266
  private _isCaCertificate?;
261
- get isCaCertificate(): boolean | cdktf.IResolvable;
262
- set isCaCertificate(value: boolean | cdktf.IResolvable);
267
+ get isCaCertificate(): boolean | cdktn.IResolvable;
268
+ set isCaCertificate(value: boolean | cdktn.IResolvable);
263
269
  resetIsCaCertificate(): void;
264
- get isCaCertificateInput(): boolean | cdktf.IResolvable | undefined;
270
+ get isCaCertificateInput(): boolean | cdktn.IResolvable | undefined;
265
271
  get keyAlgorithm(): string;
272
+ private _maxPathLength?;
273
+ get maxPathLength(): number;
274
+ set maxPathLength(value: number);
275
+ resetMaxPathLength(): void;
276
+ get maxPathLengthInput(): number | undefined;
266
277
  private _privateKeyPem?;
267
278
  get privateKeyPem(): string;
268
279
  set privateKeyPem(value: string);
269
280
  get privateKeyPemInput(): string | undefined;
270
- get readyForRenewal(): cdktf.IResolvable;
281
+ get readyForRenewal(): cdktn.IResolvable;
271
282
  private _setAuthorityKeyId?;
272
- get setAuthorityKeyId(): boolean | cdktf.IResolvable;
273
- set setAuthorityKeyId(value: boolean | cdktf.IResolvable);
283
+ get setAuthorityKeyId(): boolean | cdktn.IResolvable;
284
+ set setAuthorityKeyId(value: boolean | cdktn.IResolvable);
274
285
  resetSetAuthorityKeyId(): void;
275
- get setAuthorityKeyIdInput(): boolean | cdktf.IResolvable | undefined;
286
+ get setAuthorityKeyIdInput(): boolean | cdktn.IResolvable | undefined;
276
287
  private _setSubjectKeyId?;
277
- get setSubjectKeyId(): boolean | cdktf.IResolvable;
278
- set setSubjectKeyId(value: boolean | cdktf.IResolvable);
288
+ get setSubjectKeyId(): boolean | cdktn.IResolvable;
289
+ set setSubjectKeyId(value: boolean | cdktn.IResolvable);
279
290
  resetSetSubjectKeyId(): void;
280
- get setSubjectKeyIdInput(): boolean | cdktf.IResolvable | undefined;
291
+ get setSubjectKeyIdInput(): boolean | cdktn.IResolvable | undefined;
281
292
  private _uris?;
282
293
  get uris(): string[];
283
294
  set uris(value: string[]);
@@ -291,9 +302,9 @@ export declare class SelfSignedCert extends cdktf.TerraformResource {
291
302
  get validityStartTime(): string;
292
303
  private _subject;
293
304
  get subject(): SelfSignedCertSubjectList;
294
- putSubject(value: SelfSignedCertSubject[] | cdktf.IResolvable): void;
305
+ putSubject(value: SelfSignedCertSubject[] | cdktn.IResolvable): void;
295
306
  resetSubject(): void;
296
- get subjectInput(): cdktf.IResolvable | SelfSignedCertSubject[] | undefined;
307
+ get subjectInput(): cdktn.IResolvable | SelfSignedCertSubject[] | undefined;
297
308
  protected synthesizeAttributes(): {
298
309
  [name: string]: any;
299
310
  };