@cdktn/provider-http 10.1.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.
- package/.jsii +1549 -0
- package/LICENSE +355 -0
- package/README.md +94 -0
- package/lib/data-http/index.d.ts +208 -0
- package/lib/data-http/index.js +446 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.js +11 -0
- package/lib/lazy-index.d.ts +4 -0
- package/lib/lazy-index.js +9 -0
- package/lib/provider/index.d.ts +47 -0
- package/lib/provider/index.js +87 -0
- package/package.json +152 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
Copyright (c) 2026 HashiCorp, Inc.
|
|
2
|
+
|
|
3
|
+
Mozilla Public License, version 2.0
|
|
4
|
+
|
|
5
|
+
1. Definitions
|
|
6
|
+
|
|
7
|
+
1.1. “Contributor”
|
|
8
|
+
|
|
9
|
+
means each individual or legal entity that creates, contributes to the
|
|
10
|
+
creation of, or owns Covered Software.
|
|
11
|
+
|
|
12
|
+
1.2. “Contributor Version”
|
|
13
|
+
|
|
14
|
+
means the combination of the Contributions of others (if any) used by a
|
|
15
|
+
Contributor and that particular Contributor’s Contribution.
|
|
16
|
+
|
|
17
|
+
1.3. “Contribution”
|
|
18
|
+
|
|
19
|
+
means Covered Software of a particular Contributor.
|
|
20
|
+
|
|
21
|
+
1.4. “Covered Software”
|
|
22
|
+
|
|
23
|
+
means Source Code Form to which the initial Contributor has attached the
|
|
24
|
+
notice in Exhibit A, the Executable Form of such Source Code Form, and
|
|
25
|
+
Modifications of such Source Code Form, in each case including portions
|
|
26
|
+
thereof.
|
|
27
|
+
|
|
28
|
+
1.5. “Incompatible With Secondary Licenses”
|
|
29
|
+
means
|
|
30
|
+
|
|
31
|
+
a. that the initial Contributor has attached the notice described in
|
|
32
|
+
Exhibit B to the Covered Software; or
|
|
33
|
+
|
|
34
|
+
b. that the Covered Software was made available under the terms of version
|
|
35
|
+
1.1 or earlier of the License, but not also under the terms of a
|
|
36
|
+
Secondary License.
|
|
37
|
+
|
|
38
|
+
1.6. “Executable Form”
|
|
39
|
+
|
|
40
|
+
means any form of the work other than Source Code Form.
|
|
41
|
+
|
|
42
|
+
1.7. “Larger Work”
|
|
43
|
+
|
|
44
|
+
means a work that combines Covered Software with other material, in a separate
|
|
45
|
+
file or files, that is not Covered Software.
|
|
46
|
+
|
|
47
|
+
1.8. “License”
|
|
48
|
+
|
|
49
|
+
means this document.
|
|
50
|
+
|
|
51
|
+
1.9. “Licensable”
|
|
52
|
+
|
|
53
|
+
means having the right to grant, to the maximum extent possible, whether at the
|
|
54
|
+
time of the initial grant or subsequently, any and all of the rights conveyed by
|
|
55
|
+
this License.
|
|
56
|
+
|
|
57
|
+
1.10. “Modifications”
|
|
58
|
+
|
|
59
|
+
means any of the following:
|
|
60
|
+
|
|
61
|
+
a. any file in Source Code Form that results from an addition to, deletion
|
|
62
|
+
from, or modification of the contents of Covered Software; or
|
|
63
|
+
|
|
64
|
+
b. any new file in Source Code Form that contains any Covered Software.
|
|
65
|
+
|
|
66
|
+
1.11. “Patent Claims” of a Contributor
|
|
67
|
+
|
|
68
|
+
means any patent claim(s), including without limitation, method, process,
|
|
69
|
+
and apparatus claims, in any patent Licensable by such Contributor that
|
|
70
|
+
would be infringed, but for the grant of the License, by the making,
|
|
71
|
+
using, selling, offering for sale, having made, import, or transfer of
|
|
72
|
+
either its Contributions or its Contributor Version.
|
|
73
|
+
|
|
74
|
+
1.12. “Secondary License”
|
|
75
|
+
|
|
76
|
+
means either the GNU General Public License, Version 2.0, the GNU Lesser
|
|
77
|
+
General Public License, Version 2.1, the GNU Affero General Public
|
|
78
|
+
License, Version 3.0, or any later versions of those licenses.
|
|
79
|
+
|
|
80
|
+
1.13. “Source Code Form”
|
|
81
|
+
|
|
82
|
+
means the form of the work preferred for making modifications.
|
|
83
|
+
|
|
84
|
+
1.14. “You” (or “Your”)
|
|
85
|
+
|
|
86
|
+
means an individual or a legal entity exercising rights under this
|
|
87
|
+
License. For legal entities, “You” includes any entity that controls, is
|
|
88
|
+
controlled by, or is under common control with You. For purposes of this
|
|
89
|
+
definition, “control” means (a) the power, direct or indirect, to cause
|
|
90
|
+
the direction or management of such entity, whether by contract or
|
|
91
|
+
otherwise, or (b) ownership of more than fifty percent (50%) of the
|
|
92
|
+
outstanding shares or beneficial ownership of such entity.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
2. License Grants and Conditions
|
|
96
|
+
|
|
97
|
+
2.1. Grants
|
|
98
|
+
|
|
99
|
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
|
100
|
+
non-exclusive license:
|
|
101
|
+
|
|
102
|
+
a. under intellectual property rights (other than patent or trademark)
|
|
103
|
+
Licensable by such Contributor to use, reproduce, make available,
|
|
104
|
+
modify, display, perform, distribute, and otherwise exploit its
|
|
105
|
+
Contributions, either on an unmodified basis, with Modifications, or as
|
|
106
|
+
part of a Larger Work; and
|
|
107
|
+
|
|
108
|
+
b. under Patent Claims of such Contributor to make, use, sell, offer for
|
|
109
|
+
sale, have made, import, and otherwise transfer either its Contributions
|
|
110
|
+
or its Contributor Version.
|
|
111
|
+
|
|
112
|
+
2.2. Effective Date
|
|
113
|
+
|
|
114
|
+
The licenses granted in Section 2.1 with respect to any Contribution become
|
|
115
|
+
effective for each Contribution on the date the Contributor first distributes
|
|
116
|
+
such Contribution.
|
|
117
|
+
|
|
118
|
+
2.3. Limitations on Grant Scope
|
|
119
|
+
|
|
120
|
+
The licenses granted in this Section 2 are the only rights granted under this
|
|
121
|
+
License. No additional rights or licenses will be implied from the distribution
|
|
122
|
+
or licensing of Covered Software under this License. Notwithstanding Section
|
|
123
|
+
2.1(b) above, no patent license is granted by a Contributor:
|
|
124
|
+
|
|
125
|
+
a. for any code that a Contributor has removed from Covered Software; or
|
|
126
|
+
|
|
127
|
+
b. for infringements caused by: (i) Your and any other third party’s
|
|
128
|
+
modifications of Covered Software, or (ii) the combination of its
|
|
129
|
+
Contributions with other software (except as part of its Contributor
|
|
130
|
+
Version); or
|
|
131
|
+
|
|
132
|
+
c. under Patent Claims infringed by Covered Software in the absence of its
|
|
133
|
+
Contributions.
|
|
134
|
+
|
|
135
|
+
This License does not grant any rights in the trademarks, service marks, or
|
|
136
|
+
logos of any Contributor (except as may be necessary to comply with the
|
|
137
|
+
notice requirements in Section 3.4).
|
|
138
|
+
|
|
139
|
+
2.4. Subsequent Licenses
|
|
140
|
+
|
|
141
|
+
No Contributor makes additional grants as a result of Your choice to
|
|
142
|
+
distribute the Covered Software under a subsequent version of this License
|
|
143
|
+
(see Section 10.2) or under the terms of a Secondary License (if permitted
|
|
144
|
+
under the terms of Section 3.3).
|
|
145
|
+
|
|
146
|
+
2.5. Representation
|
|
147
|
+
|
|
148
|
+
Each Contributor represents that the Contributor believes its Contributions
|
|
149
|
+
are its original creation(s) or it has sufficient rights to grant the
|
|
150
|
+
rights to its Contributions conveyed by this License.
|
|
151
|
+
|
|
152
|
+
2.6. Fair Use
|
|
153
|
+
|
|
154
|
+
This License is not intended to limit any rights You have under applicable
|
|
155
|
+
copyright doctrines of fair use, fair dealing, or other equivalents.
|
|
156
|
+
|
|
157
|
+
2.7. Conditions
|
|
158
|
+
|
|
159
|
+
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
|
|
160
|
+
Section 2.1.
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
3. Responsibilities
|
|
164
|
+
|
|
165
|
+
3.1. Distribution of Source Form
|
|
166
|
+
|
|
167
|
+
All distribution of Covered Software in Source Code Form, including any
|
|
168
|
+
Modifications that You create or to which You contribute, must be under the
|
|
169
|
+
terms of this License. You must inform recipients that the Source Code Form
|
|
170
|
+
of the Covered Software is governed by the terms of this License, and how
|
|
171
|
+
they can obtain a copy of this License. You may not attempt to alter or
|
|
172
|
+
restrict the recipients’ rights in the Source Code Form.
|
|
173
|
+
|
|
174
|
+
3.2. Distribution of Executable Form
|
|
175
|
+
|
|
176
|
+
If You distribute Covered Software in Executable Form then:
|
|
177
|
+
|
|
178
|
+
a. such Covered Software must also be made available in Source Code Form,
|
|
179
|
+
as described in Section 3.1, and You must inform recipients of the
|
|
180
|
+
Executable Form how they can obtain a copy of such Source Code Form by
|
|
181
|
+
reasonable means in a timely manner, at a charge no more than the cost
|
|
182
|
+
of distribution to the recipient; and
|
|
183
|
+
|
|
184
|
+
b. You may distribute such Executable Form under the terms of this License,
|
|
185
|
+
or sublicense it under different terms, provided that the license for
|
|
186
|
+
the Executable Form does not attempt to limit or alter the recipients’
|
|
187
|
+
rights in the Source Code Form under this License.
|
|
188
|
+
|
|
189
|
+
3.3. Distribution of a Larger Work
|
|
190
|
+
|
|
191
|
+
You may create and distribute a Larger Work under terms of Your choice,
|
|
192
|
+
provided that You also comply with the requirements of this License for the
|
|
193
|
+
Covered Software. If the Larger Work is a combination of Covered Software
|
|
194
|
+
with a work governed by one or more Secondary Licenses, and the Covered
|
|
195
|
+
Software is not Incompatible With Secondary Licenses, this License permits
|
|
196
|
+
You to additionally distribute such Covered Software under the terms of
|
|
197
|
+
such Secondary License(s), so that the recipient of the Larger Work may, at
|
|
198
|
+
their option, further distribute the Covered Software under the terms of
|
|
199
|
+
either this License or such Secondary License(s).
|
|
200
|
+
|
|
201
|
+
3.4. Notices
|
|
202
|
+
|
|
203
|
+
You may not remove or alter the substance of any license notices (including
|
|
204
|
+
copyright notices, patent notices, disclaimers of warranty, or limitations
|
|
205
|
+
of liability) contained within the Source Code Form of the Covered
|
|
206
|
+
Software, except that You may alter any license notices to the extent
|
|
207
|
+
required to remedy known factual inaccuracies.
|
|
208
|
+
|
|
209
|
+
3.5. Application of Additional Terms
|
|
210
|
+
|
|
211
|
+
You may choose to offer, and to charge a fee for, warranty, support,
|
|
212
|
+
indemnity or liability obligations to one or more recipients of Covered
|
|
213
|
+
Software. However, You may do so only on Your own behalf, and not on behalf
|
|
214
|
+
of any Contributor. You must make it absolutely clear that any such
|
|
215
|
+
warranty, support, indemnity, or liability obligation is offered by You
|
|
216
|
+
alone, and You hereby agree to indemnify every Contributor for any
|
|
217
|
+
liability incurred by such Contributor as a result of warranty, support,
|
|
218
|
+
indemnity or liability terms You offer. You may include additional
|
|
219
|
+
disclaimers of warranty and limitations of liability specific to any
|
|
220
|
+
jurisdiction.
|
|
221
|
+
|
|
222
|
+
4. Inability to Comply Due to Statute or Regulation
|
|
223
|
+
|
|
224
|
+
If it is impossible for You to comply with any of the terms of this License
|
|
225
|
+
with respect to some or all of the Covered Software due to statute, judicial
|
|
226
|
+
order, or regulation then You must: (a) comply with the terms of this License
|
|
227
|
+
to the maximum extent possible; and (b) describe the limitations and the code
|
|
228
|
+
they affect. Such description must be placed in a text file included with all
|
|
229
|
+
distributions of the Covered Software under this License. Except to the
|
|
230
|
+
extent prohibited by statute or regulation, such description must be
|
|
231
|
+
sufficiently detailed for a recipient of ordinary skill to be able to
|
|
232
|
+
understand it.
|
|
233
|
+
|
|
234
|
+
5. Termination
|
|
235
|
+
|
|
236
|
+
5.1. The rights granted under this License will terminate automatically if You
|
|
237
|
+
fail to comply with any of its terms. However, if You become compliant,
|
|
238
|
+
then the rights granted under this License from a particular Contributor
|
|
239
|
+
are reinstated (a) provisionally, unless and until such Contributor
|
|
240
|
+
explicitly and finally terminates Your grants, and (b) on an ongoing basis,
|
|
241
|
+
if such Contributor fails to notify You of the non-compliance by some
|
|
242
|
+
reasonable means prior to 60 days after You have come back into compliance.
|
|
243
|
+
Moreover, Your grants from a particular Contributor are reinstated on an
|
|
244
|
+
ongoing basis if such Contributor notifies You of the non-compliance by
|
|
245
|
+
some reasonable means, this is the first time You have received notice of
|
|
246
|
+
non-compliance with this License from such Contributor, and You become
|
|
247
|
+
compliant prior to 30 days after Your receipt of the notice.
|
|
248
|
+
|
|
249
|
+
5.2. If You initiate litigation against any entity by asserting a patent
|
|
250
|
+
infringement claim (excluding declaratory judgment actions, counter-claims,
|
|
251
|
+
and cross-claims) alleging that a Contributor Version directly or
|
|
252
|
+
indirectly infringes any patent, then the rights granted to You by any and
|
|
253
|
+
all Contributors for the Covered Software under Section 2.1 of this License
|
|
254
|
+
shall terminate.
|
|
255
|
+
|
|
256
|
+
5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
|
|
257
|
+
license agreements (excluding distributors and resellers) which have been
|
|
258
|
+
validly granted by You or Your distributors under this License prior to
|
|
259
|
+
termination shall survive termination.
|
|
260
|
+
|
|
261
|
+
6. Disclaimer of Warranty
|
|
262
|
+
|
|
263
|
+
Covered Software is provided under this License on an “as is” basis, without
|
|
264
|
+
warranty of any kind, either expressed, implied, or statutory, including,
|
|
265
|
+
without limitation, warranties that the Covered Software is free of defects,
|
|
266
|
+
merchantable, fit for a particular purpose or non-infringing. The entire
|
|
267
|
+
risk as to the quality and performance of the Covered Software is with You.
|
|
268
|
+
Should any Covered Software prove defective in any respect, You (not any
|
|
269
|
+
Contributor) assume the cost of any necessary servicing, repair, or
|
|
270
|
+
correction. This disclaimer of warranty constitutes an essential part of this
|
|
271
|
+
License. No use of any Covered Software is authorized under this License
|
|
272
|
+
except under this disclaimer.
|
|
273
|
+
|
|
274
|
+
7. Limitation of Liability
|
|
275
|
+
|
|
276
|
+
Under no circumstances and under no legal theory, whether tort (including
|
|
277
|
+
negligence), contract, or otherwise, shall any Contributor, or anyone who
|
|
278
|
+
distributes Covered Software as permitted above, be liable to You for any
|
|
279
|
+
direct, indirect, special, incidental, or consequential damages of any
|
|
280
|
+
character including, without limitation, damages for lost profits, loss of
|
|
281
|
+
goodwill, work stoppage, computer failure or malfunction, or any and all
|
|
282
|
+
other commercial damages or losses, even if such party shall have been
|
|
283
|
+
informed of the possibility of such damages. This limitation of liability
|
|
284
|
+
shall not apply to liability for death or personal injury resulting from such
|
|
285
|
+
party’s negligence to the extent applicable law prohibits such limitation.
|
|
286
|
+
Some jurisdictions do not allow the exclusion or limitation of incidental or
|
|
287
|
+
consequential damages, so this exclusion and limitation may not apply to You.
|
|
288
|
+
|
|
289
|
+
8. Litigation
|
|
290
|
+
|
|
291
|
+
Any litigation relating to this License may be brought only in the courts of
|
|
292
|
+
a jurisdiction where the defendant maintains its principal place of business
|
|
293
|
+
and such litigation shall be governed by laws of that jurisdiction, without
|
|
294
|
+
reference to its conflict-of-law provisions. Nothing in this Section shall
|
|
295
|
+
prevent a party’s ability to bring cross-claims or counter-claims.
|
|
296
|
+
|
|
297
|
+
9. Miscellaneous
|
|
298
|
+
|
|
299
|
+
This License represents the complete agreement concerning the subject matter
|
|
300
|
+
hereof. If any provision of this License is held to be unenforceable, such
|
|
301
|
+
provision shall be reformed only to the extent necessary to make it
|
|
302
|
+
enforceable. Any law or regulation which provides that the language of a
|
|
303
|
+
contract shall be construed against the drafter shall not be used to construe
|
|
304
|
+
this License against a Contributor.
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
10. Versions of the License
|
|
308
|
+
|
|
309
|
+
10.1. New Versions
|
|
310
|
+
|
|
311
|
+
Mozilla Foundation is the license steward. Except as provided in Section
|
|
312
|
+
10.3, no one other than the license steward has the right to modify or
|
|
313
|
+
publish new versions of this License. Each version will be given a
|
|
314
|
+
distinguishing version number.
|
|
315
|
+
|
|
316
|
+
10.2. Effect of New Versions
|
|
317
|
+
|
|
318
|
+
You may distribute the Covered Software under the terms of the version of
|
|
319
|
+
the License under which You originally received the Covered Software, or
|
|
320
|
+
under the terms of any subsequent version published by the license
|
|
321
|
+
steward.
|
|
322
|
+
|
|
323
|
+
10.3. Modified Versions
|
|
324
|
+
|
|
325
|
+
If you create software not governed by this License, and you want to
|
|
326
|
+
create a new license for such software, you may create and use a modified
|
|
327
|
+
version of this License if you rename the license and remove any
|
|
328
|
+
references to the name of the license steward (except to note that such
|
|
329
|
+
modified license differs from this License).
|
|
330
|
+
|
|
331
|
+
10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
|
|
332
|
+
If You choose to distribute Source Code Form that is Incompatible With
|
|
333
|
+
Secondary Licenses under the terms of this version of the License, the
|
|
334
|
+
notice described in Exhibit B of this License must be attached.
|
|
335
|
+
|
|
336
|
+
Exhibit A - Source Code Form License Notice
|
|
337
|
+
|
|
338
|
+
This Source Code Form is subject to the
|
|
339
|
+
terms of the Mozilla Public License, v.
|
|
340
|
+
2.0. If a copy of the MPL was not
|
|
341
|
+
distributed with this file, You can
|
|
342
|
+
obtain one at
|
|
343
|
+
http://mozilla.org/MPL/2.0/.
|
|
344
|
+
|
|
345
|
+
If it is not possible or desirable to put the notice in a particular file, then
|
|
346
|
+
You may include the notice in a location (such as a LICENSE file in a relevant
|
|
347
|
+
directory) where a recipient would be likely to look for such a notice.
|
|
348
|
+
|
|
349
|
+
You may add additional accurate notices of copyright ownership.
|
|
350
|
+
|
|
351
|
+
Exhibit B - “Incompatible With Secondary Licenses” Notice
|
|
352
|
+
|
|
353
|
+
This Source Code Form is “Incompatible
|
|
354
|
+
With Secondary Licenses”, as defined by
|
|
355
|
+
the Mozilla Public License, v. 2.0.
|
package/README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
|
|
2
|
+
# CDKTF prebuilt bindings for hashicorp/http provider version 3.5.0
|
|
3
|
+
|
|
4
|
+
This repo builds and publishes the [Terraform http provider](https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs) bindings for [CDK for Terraform](https://cdk.tf).
|
|
5
|
+
|
|
6
|
+
## Available Packages
|
|
7
|
+
|
|
8
|
+
### NPM
|
|
9
|
+
|
|
10
|
+
The npm package is available at [https://www.npmjs.com/package/@cdktn/provider-http](https://www.npmjs.com/package/@cdktn/provider-http).
|
|
11
|
+
|
|
12
|
+
`npm install @cdktn/provider-http`
|
|
13
|
+
|
|
14
|
+
### PyPI
|
|
15
|
+
|
|
16
|
+
The PyPI package is available at [https://pypi.org/project/cdktn-provider-http](https://pypi.org/project/cdktn-provider-http).
|
|
17
|
+
|
|
18
|
+
`pipenv install cdktn-provider-http`
|
|
19
|
+
|
|
20
|
+
### Nuget
|
|
21
|
+
|
|
22
|
+
The Nuget package is available at [https://www.nuget.org/packages/Io.Cdktn.Cdktn.Providers.Http](https://www.nuget.org/packages/Io.Cdktn.Cdktn.Providers.Http).
|
|
23
|
+
|
|
24
|
+
`dotnet add package Io.Cdktn.Cdktn.Providers.Http`
|
|
25
|
+
|
|
26
|
+
### Maven
|
|
27
|
+
|
|
28
|
+
The Maven package is available at [https://mvnrepository.com/artifact/com.Io.Cdktn/cdktn-provider-http](https://mvnrepository.com/artifact/com.Io.Cdktn/cdktn-provider-http).
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
<dependency>
|
|
32
|
+
<groupId>com.Io.Cdktn</groupId>
|
|
33
|
+
<artifactId>cdktn-provider-http</artifactId>
|
|
34
|
+
<version>[REPLACE WITH DESIRED VERSION]</version>
|
|
35
|
+
</dependency>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Go
|
|
39
|
+
|
|
40
|
+
The go package is generated into the [`github.com/cdktn-io/cdktn-provider-http-go`](https://github.com/cdktn-io/cdktn-provider-http-go) package.
|
|
41
|
+
|
|
42
|
+
`go get github.com/cdktn-io/cdktn-provider-http-go/http/<version>`
|
|
43
|
+
|
|
44
|
+
Where `<version>` is the version of the prebuilt provider you would like to use e.g. `v11`. The full module name can be found
|
|
45
|
+
within the [go.mod](https://github.com/cdktn-io/cdktn-provider-http-go/blob/main/http/go.mod#L1) file.
|
|
46
|
+
|
|
47
|
+
## Docs
|
|
48
|
+
|
|
49
|
+
Find auto-generated docs for this provider here:
|
|
50
|
+
|
|
51
|
+
- [Typescript](./docs/API.typescript.md)
|
|
52
|
+
- [Python](./docs/API.python.md)
|
|
53
|
+
- [Java](./docs/API.java.md)
|
|
54
|
+
- [C#](./docs/API.csharp.md)
|
|
55
|
+
- [Go](./docs/API.go.md)
|
|
56
|
+
|
|
57
|
+
You can also visit a hosted version of the documentation on [constructs.dev](https://constructs.dev/packages/@cdktn/provider-http).
|
|
58
|
+
|
|
59
|
+
## Versioning
|
|
60
|
+
|
|
61
|
+
This project is explicitly not tracking the Terraform http provider version 1:1. In fact, it always tracks `latest` of `~> 3.1` with every release. If there are scenarios where you explicitly have to pin your provider version, you can do so by [generating the provider constructs manually](https://cdk.tf/imports).
|
|
62
|
+
|
|
63
|
+
These are the upstream dependencies:
|
|
64
|
+
|
|
65
|
+
- [CDK for Terraform](https://cdk.tf) - Last official release
|
|
66
|
+
- [Terraform http provider](https://registry.terraform.io/providers/hashicorp/http/3.5.0)
|
|
67
|
+
- [Terraform Engine](https://terraform.io)
|
|
68
|
+
|
|
69
|
+
If there are breaking changes (backward incompatible) in any of the above, the major version of this project will be bumped.
|
|
70
|
+
|
|
71
|
+
## Features / Issues / Bugs
|
|
72
|
+
|
|
73
|
+
Please report bugs and issues to the [CDK for Terraform](https://cdk.tf) project:
|
|
74
|
+
|
|
75
|
+
- [Create bug report](https://cdk.tf/bug)
|
|
76
|
+
- [Create feature request](https://cdk.tf/feature)
|
|
77
|
+
|
|
78
|
+
## Contributing
|
|
79
|
+
|
|
80
|
+
### Projen
|
|
81
|
+
|
|
82
|
+
This is mostly based on [Projen](https://projen.io), which takes care of generating the entire repository.
|
|
83
|
+
|
|
84
|
+
### cdktn-provider-project based on Projen
|
|
85
|
+
|
|
86
|
+
There's a custom [project builder](https://github.com/cdktn-io/cdktn-provider-project) which encapsulate the common settings for all `cdktf` prebuilt providers.
|
|
87
|
+
|
|
88
|
+
### Provider Version
|
|
89
|
+
|
|
90
|
+
The provider version can be adjusted in [./.projenrc.js](./.projenrc.js).
|
|
91
|
+
|
|
92
|
+
### Repository Management
|
|
93
|
+
|
|
94
|
+
The repository is managed by [CDKTN Repository Manager](https://github.com/cdktn-io/cdktn-repository-manager/).
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) HashiCorp, Inc.
|
|
3
|
+
* SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { Construct } from 'constructs';
|
|
6
|
+
import * as cdktf from 'cdktf';
|
|
7
|
+
export interface DataHttpConfig extends cdktf.TerraformMetaArguments {
|
|
8
|
+
/**
|
|
9
|
+
* Certificate Authority (CA) in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
|
10
|
+
*
|
|
11
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#ca_cert_pem DataHttp#ca_cert_pem}
|
|
12
|
+
*/
|
|
13
|
+
readonly caCertPem?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Client certificate in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
|
16
|
+
*
|
|
17
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#client_cert_pem DataHttp#client_cert_pem}
|
|
18
|
+
*/
|
|
19
|
+
readonly clientCertPem?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Client key in [PEM (RFC 1421)](https://datatracker.ietf.org/doc/html/rfc1421) format.
|
|
22
|
+
*
|
|
23
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#client_key_pem DataHttp#client_key_pem}
|
|
24
|
+
*/
|
|
25
|
+
readonly clientKeyPem?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Disables verification of the server's certificate chain and hostname. Defaults to `false`
|
|
28
|
+
*
|
|
29
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#insecure DataHttp#insecure}
|
|
30
|
+
*/
|
|
31
|
+
readonly insecure?: boolean | cdktf.IResolvable;
|
|
32
|
+
/**
|
|
33
|
+
* The HTTP Method for the request. Allowed methods are a subset of methods defined in [RFC7231](https://datatracker.ietf.org/doc/html/rfc7231#section-4.3) namely, `GET`, `HEAD`, and `POST`. `POST` support is only intended for read-only URLs, such as submitting a search.
|
|
34
|
+
*
|
|
35
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#method DataHttp#method}
|
|
36
|
+
*/
|
|
37
|
+
readonly method?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The request body as a string.
|
|
40
|
+
*
|
|
41
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#request_body DataHttp#request_body}
|
|
42
|
+
*/
|
|
43
|
+
readonly requestBody?: string;
|
|
44
|
+
/**
|
|
45
|
+
* A map of request header field names and values.
|
|
46
|
+
*
|
|
47
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#request_headers DataHttp#request_headers}
|
|
48
|
+
*/
|
|
49
|
+
readonly requestHeaders?: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* The request timeout in milliseconds.
|
|
54
|
+
*
|
|
55
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#request_timeout_ms DataHttp#request_timeout_ms}
|
|
56
|
+
*/
|
|
57
|
+
readonly requestTimeoutMs?: number;
|
|
58
|
+
/**
|
|
59
|
+
* The URL for the request. Supported schemes are `http` and `https`.
|
|
60
|
+
*
|
|
61
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#url DataHttp#url}
|
|
62
|
+
*/
|
|
63
|
+
readonly url: string;
|
|
64
|
+
/**
|
|
65
|
+
* retry block
|
|
66
|
+
*
|
|
67
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#retry DataHttp#retry}
|
|
68
|
+
*/
|
|
69
|
+
readonly retry?: DataHttpRetry;
|
|
70
|
+
}
|
|
71
|
+
export interface DataHttpRetry {
|
|
72
|
+
/**
|
|
73
|
+
* The number of times the request is to be retried. For example, if 2 is specified, the request will be tried a maximum of 3 times.
|
|
74
|
+
*
|
|
75
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#attempts DataHttp#attempts}
|
|
76
|
+
*/
|
|
77
|
+
readonly attempts?: number;
|
|
78
|
+
/**
|
|
79
|
+
* The maximum delay between retry requests in milliseconds.
|
|
80
|
+
*
|
|
81
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#max_delay_ms DataHttp#max_delay_ms}
|
|
82
|
+
*/
|
|
83
|
+
readonly maxDelayMs?: number;
|
|
84
|
+
/**
|
|
85
|
+
* The minimum delay between retry requests in milliseconds.
|
|
86
|
+
*
|
|
87
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#min_delay_ms DataHttp#min_delay_ms}
|
|
88
|
+
*/
|
|
89
|
+
readonly minDelayMs?: number;
|
|
90
|
+
}
|
|
91
|
+
export declare function dataHttpRetryToTerraform(struct?: DataHttpRetry | cdktf.IResolvable): any;
|
|
92
|
+
export declare function dataHttpRetryToHclTerraform(struct?: DataHttpRetry | cdktf.IResolvable): any;
|
|
93
|
+
export declare class DataHttpRetryOutputReference extends cdktf.ComplexObject {
|
|
94
|
+
private isEmptyObject;
|
|
95
|
+
private resolvableValue?;
|
|
96
|
+
/**
|
|
97
|
+
* @param terraformResource The parent resource
|
|
98
|
+
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
99
|
+
*/
|
|
100
|
+
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
|
|
101
|
+
get internalValue(): DataHttpRetry | cdktf.IResolvable | undefined;
|
|
102
|
+
set internalValue(value: DataHttpRetry | cdktf.IResolvable | undefined);
|
|
103
|
+
private _attempts?;
|
|
104
|
+
get attempts(): number;
|
|
105
|
+
set attempts(value: number);
|
|
106
|
+
resetAttempts(): void;
|
|
107
|
+
get attemptsInput(): number | undefined;
|
|
108
|
+
private _maxDelayMs?;
|
|
109
|
+
get maxDelayMs(): number;
|
|
110
|
+
set maxDelayMs(value: number);
|
|
111
|
+
resetMaxDelayMs(): void;
|
|
112
|
+
get maxDelayMsInput(): number | undefined;
|
|
113
|
+
private _minDelayMs?;
|
|
114
|
+
get minDelayMs(): number;
|
|
115
|
+
set minDelayMs(value: number);
|
|
116
|
+
resetMinDelayMs(): void;
|
|
117
|
+
get minDelayMsInput(): number | undefined;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Represents a {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http http}
|
|
121
|
+
*/
|
|
122
|
+
export declare class DataHttp extends cdktf.TerraformDataSource {
|
|
123
|
+
static readonly tfResourceType = "http";
|
|
124
|
+
/**
|
|
125
|
+
* Generates CDKTF code for importing a DataHttp resource upon running "cdktf plan <stack-name>"
|
|
126
|
+
* @param scope The scope in which to define this construct
|
|
127
|
+
* @param importToId The construct id used in the generated config for the DataHttp to import
|
|
128
|
+
* @param importFromId The id of the existing DataHttp that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http#import import section} in the documentation of this resource for the id to use
|
|
129
|
+
* @param provider? Optional instance of the provider where the DataHttp to import is found
|
|
130
|
+
*/
|
|
131
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
|
|
132
|
+
/**
|
|
133
|
+
* Create a new {@link https://registry.terraform.io/providers/hashicorp/http/3.5.0/docs/data-sources/http http} Data Source
|
|
134
|
+
*
|
|
135
|
+
* @param scope The scope in which to define this construct
|
|
136
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
137
|
+
* @param options DataHttpConfig
|
|
138
|
+
*/
|
|
139
|
+
constructor(scope: Construct, id: string, config: DataHttpConfig);
|
|
140
|
+
get body(): string;
|
|
141
|
+
private _caCertPem?;
|
|
142
|
+
get caCertPem(): string;
|
|
143
|
+
set caCertPem(value: string);
|
|
144
|
+
resetCaCertPem(): void;
|
|
145
|
+
get caCertPemInput(): string | undefined;
|
|
146
|
+
private _clientCertPem?;
|
|
147
|
+
get clientCertPem(): string;
|
|
148
|
+
set clientCertPem(value: string);
|
|
149
|
+
resetClientCertPem(): void;
|
|
150
|
+
get clientCertPemInput(): string | undefined;
|
|
151
|
+
private _clientKeyPem?;
|
|
152
|
+
get clientKeyPem(): string;
|
|
153
|
+
set clientKeyPem(value: string);
|
|
154
|
+
resetClientKeyPem(): void;
|
|
155
|
+
get clientKeyPemInput(): string | undefined;
|
|
156
|
+
get id(): string;
|
|
157
|
+
private _insecure?;
|
|
158
|
+
get insecure(): boolean | cdktf.IResolvable;
|
|
159
|
+
set insecure(value: boolean | cdktf.IResolvable);
|
|
160
|
+
resetInsecure(): void;
|
|
161
|
+
get insecureInput(): boolean | cdktf.IResolvable | undefined;
|
|
162
|
+
private _method?;
|
|
163
|
+
get method(): string;
|
|
164
|
+
set method(value: string);
|
|
165
|
+
resetMethod(): void;
|
|
166
|
+
get methodInput(): string | undefined;
|
|
167
|
+
private _requestBody?;
|
|
168
|
+
get requestBody(): string;
|
|
169
|
+
set requestBody(value: string);
|
|
170
|
+
resetRequestBody(): void;
|
|
171
|
+
get requestBodyInput(): string | undefined;
|
|
172
|
+
private _requestHeaders?;
|
|
173
|
+
get requestHeaders(): {
|
|
174
|
+
[key: string]: string;
|
|
175
|
+
};
|
|
176
|
+
set requestHeaders(value: {
|
|
177
|
+
[key: string]: string;
|
|
178
|
+
});
|
|
179
|
+
resetRequestHeaders(): void;
|
|
180
|
+
get requestHeadersInput(): {
|
|
181
|
+
[key: string]: string;
|
|
182
|
+
} | undefined;
|
|
183
|
+
private _requestTimeoutMs?;
|
|
184
|
+
get requestTimeoutMs(): number;
|
|
185
|
+
set requestTimeoutMs(value: number);
|
|
186
|
+
resetRequestTimeoutMs(): void;
|
|
187
|
+
get requestTimeoutMsInput(): number | undefined;
|
|
188
|
+
get responseBody(): string;
|
|
189
|
+
get responseBodyBase64(): string;
|
|
190
|
+
private _responseHeaders;
|
|
191
|
+
get responseHeaders(): cdktf.StringMap;
|
|
192
|
+
get statusCode(): number;
|
|
193
|
+
private _url?;
|
|
194
|
+
get url(): string;
|
|
195
|
+
set url(value: string);
|
|
196
|
+
get urlInput(): string | undefined;
|
|
197
|
+
private _retry;
|
|
198
|
+
get retry(): DataHttpRetryOutputReference;
|
|
199
|
+
putRetry(value: DataHttpRetry): void;
|
|
200
|
+
resetRetry(): void;
|
|
201
|
+
get retryInput(): cdktf.IResolvable | DataHttpRetry | undefined;
|
|
202
|
+
protected synthesizeAttributes(): {
|
|
203
|
+
[name: string]: any;
|
|
204
|
+
};
|
|
205
|
+
protected synthesizeHclAttributes(): {
|
|
206
|
+
[name: string]: any;
|
|
207
|
+
};
|
|
208
|
+
}
|