@aws-sdk/client-lambda-web 3.1145.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.
Files changed (163) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +321 -0
  3. package/dist-cjs/index.js +1555 -0
  4. package/dist-es/LambdaWeb.js +69 -0
  5. package/dist-es/LambdaWebClient.js +47 -0
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  8. package/dist-es/commandBuilder.js +6 -0
  9. package/dist-es/commands/CreateWebFunctionCommand.js +4 -0
  10. package/dist-es/commands/CreateWebFunctionEndpointCommand.js +4 -0
  11. package/dist-es/commands/CreateWebFunctionRevisionCommand.js +4 -0
  12. package/dist-es/commands/DeleteResourcePolicyCommand.js +4 -0
  13. package/dist-es/commands/DeleteWebFunctionCommand.js +4 -0
  14. package/dist-es/commands/DeleteWebFunctionEndpointCommand.js +4 -0
  15. package/dist-es/commands/DeleteWebFunctionRevisionCommand.js +4 -0
  16. package/dist-es/commands/GetResourcePolicyCommand.js +4 -0
  17. package/dist-es/commands/GetWebAccountSettingsCommand.js +4 -0
  18. package/dist-es/commands/GetWebFunctionCommand.js +4 -0
  19. package/dist-es/commands/GetWebFunctionEndpointCommand.js +4 -0
  20. package/dist-es/commands/GetWebFunctionRevisionCommand.js +4 -0
  21. package/dist-es/commands/ListTagsCommand.js +4 -0
  22. package/dist-es/commands/ListWebFunctionEndpointsCommand.js +4 -0
  23. package/dist-es/commands/ListWebFunctionRevisionsCommand.js +4 -0
  24. package/dist-es/commands/ListWebFunctionsCommand.js +4 -0
  25. package/dist-es/commands/PutResourcePolicyCommand.js +4 -0
  26. package/dist-es/commands/TagResourceCommand.js +4 -0
  27. package/dist-es/commands/UntagResourceCommand.js +4 -0
  28. package/dist-es/commands/UpdateWebFunctionEndpointCommand.js +4 -0
  29. package/dist-es/commands/index.js +20 -0
  30. package/dist-es/endpoint/EndpointParameters.js +13 -0
  31. package/dist-es/endpoint/bdd.js +46 -0
  32. package/dist-es/endpoint/endpointResolver.js +14 -0
  33. package/dist-es/extensionConfiguration.js +1 -0
  34. package/dist-es/index.js +11 -0
  35. package/dist-es/models/LambdaWebServiceException.js +8 -0
  36. package/dist-es/models/enums.js +48 -0
  37. package/dist-es/models/errors.js +111 -0
  38. package/dist-es/models/models_0.js +1 -0
  39. package/dist-es/pagination/Interfaces.js +1 -0
  40. package/dist-es/pagination/ListWebFunctionEndpointsPaginator.js +4 -0
  41. package/dist-es/pagination/ListWebFunctionRevisionsPaginator.js +4 -0
  42. package/dist-es/pagination/ListWebFunctionsPaginator.js +4 -0
  43. package/dist-es/pagination/index.js +4 -0
  44. package/dist-es/runtimeConfig.browser.js +29 -0
  45. package/dist-es/runtimeConfig.js +43 -0
  46. package/dist-es/runtimeConfig.native.js +9 -0
  47. package/dist-es/runtimeConfig.shared.js +40 -0
  48. package/dist-es/runtimeExtensions.js +9 -0
  49. package/dist-es/schemas/schemas_0.js +593 -0
  50. package/dist-es/waiters/index.js +6 -0
  51. package/dist-es/waiters/waitForWebFunctionActive.js +58 -0
  52. package/dist-es/waiters/waitForWebFunctionDeleted.js +34 -0
  53. package/dist-es/waiters/waitForWebFunctionEndpointActive.js +58 -0
  54. package/dist-es/waiters/waitForWebFunctionEndpointDeleted.js +34 -0
  55. package/dist-es/waiters/waitForWebFunctionEndpointUpdated.js +49 -0
  56. package/dist-es/waiters/waitForWebFunctionRevisionActive.js +49 -0
  57. package/dist-types/LambdaWeb.d.ts +217 -0
  58. package/dist-types/LambdaWebClient.d.ts +206 -0
  59. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  60. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  61. package/dist-types/commandBuilder.d.ts +18 -0
  62. package/dist-types/commands/CreateWebFunctionCommand.d.ts +188 -0
  63. package/dist-types/commands/CreateWebFunctionEndpointCommand.d.ts +162 -0
  64. package/dist-types/commands/CreateWebFunctionRevisionCommand.d.ts +162 -0
  65. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +88 -0
  66. package/dist-types/commands/DeleteWebFunctionCommand.d.ts +87 -0
  67. package/dist-types/commands/DeleteWebFunctionEndpointCommand.d.ts +88 -0
  68. package/dist-types/commands/DeleteWebFunctionRevisionCommand.d.ts +88 -0
  69. package/dist-types/commands/GetResourcePolicyCommand.d.ts +87 -0
  70. package/dist-types/commands/GetWebAccountSettingsCommand.d.ts +86 -0
  71. package/dist-types/commands/GetWebFunctionCommand.d.ts +91 -0
  72. package/dist-types/commands/GetWebFunctionEndpointCommand.d.ts +137 -0
  73. package/dist-types/commands/GetWebFunctionRevisionCommand.d.ts +128 -0
  74. package/dist-types/commands/ListTagsCommand.d.ts +88 -0
  75. package/dist-types/commands/ListWebFunctionEndpointsCommand.d.ts +128 -0
  76. package/dist-types/commands/ListWebFunctionRevisionsCommand.d.ts +106 -0
  77. package/dist-types/commands/ListWebFunctionsCommand.d.ts +102 -0
  78. package/dist-types/commands/PutResourcePolicyCommand.d.ts +95 -0
  79. package/dist-types/commands/TagResourceCommand.d.ts +93 -0
  80. package/dist-types/commands/UntagResourceCommand.d.ts +90 -0
  81. package/dist-types/commands/UpdateWebFunctionEndpointCommand.d.ts +158 -0
  82. package/dist-types/commands/index.d.ts +20 -0
  83. package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
  84. package/dist-types/endpoint/bdd.d.ts +2 -0
  85. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  86. package/dist-types/extensionConfiguration.d.ts +9 -0
  87. package/dist-types/index.d.ts +19 -0
  88. package/dist-types/models/LambdaWebServiceException.d.ts +14 -0
  89. package/dist-types/models/enums.d.ts +120 -0
  90. package/dist-types/models/errors.d.ts +145 -0
  91. package/dist-types/models/models_0.d.ts +1554 -0
  92. package/dist-types/pagination/Interfaces.d.ts +8 -0
  93. package/dist-types/pagination/ListWebFunctionEndpointsPaginator.d.ts +7 -0
  94. package/dist-types/pagination/ListWebFunctionRevisionsPaginator.d.ts +7 -0
  95. package/dist-types/pagination/ListWebFunctionsPaginator.d.ts +7 -0
  96. package/dist-types/pagination/index.d.ts +4 -0
  97. package/dist-types/runtimeConfig.browser.d.ts +57 -0
  98. package/dist-types/runtimeConfig.d.ts +57 -0
  99. package/dist-types/runtimeConfig.native.d.ts +56 -0
  100. package/dist-types/runtimeConfig.shared.d.ts +28 -0
  101. package/dist-types/runtimeExtensions.d.ts +17 -0
  102. package/dist-types/schemas/schemas_0.d.ts +90 -0
  103. package/dist-types/ts3.4/LambdaWeb.d.ts +424 -0
  104. package/dist-types/ts3.4/LambdaWebClient.d.ts +215 -0
  105. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
  106. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  107. package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
  108. package/dist-types/ts3.4/commands/CreateWebFunctionCommand.d.ts +39 -0
  109. package/dist-types/ts3.4/commands/CreateWebFunctionEndpointCommand.d.ts +42 -0
  110. package/dist-types/ts3.4/commands/CreateWebFunctionRevisionCommand.d.ts +42 -0
  111. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +38 -0
  112. package/dist-types/ts3.4/commands/DeleteWebFunctionCommand.d.ts +38 -0
  113. package/dist-types/ts3.4/commands/DeleteWebFunctionEndpointCommand.d.ts +38 -0
  114. package/dist-types/ts3.4/commands/DeleteWebFunctionRevisionCommand.d.ts +38 -0
  115. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
  116. package/dist-types/ts3.4/commands/GetWebAccountSettingsCommand.d.ts +39 -0
  117. package/dist-types/ts3.4/commands/GetWebFunctionCommand.d.ts +38 -0
  118. package/dist-types/ts3.4/commands/GetWebFunctionEndpointCommand.d.ts +39 -0
  119. package/dist-types/ts3.4/commands/GetWebFunctionRevisionCommand.d.ts +39 -0
  120. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +38 -0
  121. package/dist-types/ts3.4/commands/ListWebFunctionEndpointsCommand.d.ts +42 -0
  122. package/dist-types/ts3.4/commands/ListWebFunctionRevisionsCommand.d.ts +42 -0
  123. package/dist-types/ts3.4/commands/ListWebFunctionsCommand.d.ts +38 -0
  124. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
  125. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +38 -0
  126. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  127. package/dist-types/ts3.4/commands/UpdateWebFunctionEndpointCommand.d.ts +42 -0
  128. package/dist-types/ts3.4/commands/index.d.ts +20 -0
  129. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  130. package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
  131. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  132. package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
  133. package/dist-types/ts3.4/index.d.ts +14 -0
  134. package/dist-types/ts3.4/models/LambdaWebServiceException.d.ts +9 -0
  135. package/dist-types/ts3.4/models/enums.d.ts +57 -0
  136. package/dist-types/ts3.4/models/errors.d.ts +52 -0
  137. package/dist-types/ts3.4/models/models_0.d.ts +364 -0
  138. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  139. package/dist-types/ts3.4/pagination/ListWebFunctionEndpointsPaginator.d.ts +11 -0
  140. package/dist-types/ts3.4/pagination/ListWebFunctionRevisionsPaginator.d.ts +11 -0
  141. package/dist-types/ts3.4/pagination/ListWebFunctionsPaginator.d.ts +11 -0
  142. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  143. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  144. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  145. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  146. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
  147. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  148. package/dist-types/ts3.4/schemas/schemas_0.d.ts +85 -0
  149. package/dist-types/ts3.4/waiters/index.d.ts +6 -0
  150. package/dist-types/ts3.4/waiters/waitForWebFunctionActive.d.ts +15 -0
  151. package/dist-types/ts3.4/waiters/waitForWebFunctionDeleted.d.ts +16 -0
  152. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointActive.d.ts +15 -0
  153. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointDeleted.d.ts +16 -0
  154. package/dist-types/ts3.4/waiters/waitForWebFunctionEndpointUpdated.d.ts +15 -0
  155. package/dist-types/ts3.4/waiters/waitForWebFunctionRevisionActive.d.ts +15 -0
  156. package/dist-types/waiters/index.d.ts +6 -0
  157. package/dist-types/waiters/waitForWebFunctionActive.d.ts +15 -0
  158. package/dist-types/waiters/waitForWebFunctionDeleted.d.ts +16 -0
  159. package/dist-types/waiters/waitForWebFunctionEndpointActive.d.ts +15 -0
  160. package/dist-types/waiters/waitForWebFunctionEndpointDeleted.d.ts +16 -0
  161. package/dist-types/waiters/waitForWebFunctionEndpointUpdated.d.ts +15 -0
  162. package/dist-types/waiters/waitForWebFunctionRevisionActive.d.ts +15 -0
  163. package/package.json +69 -0
@@ -0,0 +1,424 @@
1
+ import { WaiterResult } from "@smithy/core/client";
2
+ import {
3
+ HttpHandlerOptions as __HttpHandlerOptions,
4
+ MetricsRecorder as __MetricsRecorder,
5
+ PaginationConfiguration,
6
+ Paginator,
7
+ WaiterConfiguration,
8
+ } from "@smithy/types";
9
+ import {
10
+ CreateWebFunctionCommandInput,
11
+ CreateWebFunctionCommandOutput,
12
+ } from "./commands/CreateWebFunctionCommand";
13
+ import {
14
+ CreateWebFunctionEndpointCommandInput,
15
+ CreateWebFunctionEndpointCommandOutput,
16
+ } from "./commands/CreateWebFunctionEndpointCommand";
17
+ import {
18
+ CreateWebFunctionRevisionCommandInput,
19
+ CreateWebFunctionRevisionCommandOutput,
20
+ } from "./commands/CreateWebFunctionRevisionCommand";
21
+ import {
22
+ DeleteResourcePolicyCommandInput,
23
+ DeleteResourcePolicyCommandOutput,
24
+ } from "./commands/DeleteResourcePolicyCommand";
25
+ import {
26
+ DeleteWebFunctionCommandInput,
27
+ DeleteWebFunctionCommandOutput,
28
+ } from "./commands/DeleteWebFunctionCommand";
29
+ import {
30
+ DeleteWebFunctionEndpointCommandInput,
31
+ DeleteWebFunctionEndpointCommandOutput,
32
+ } from "./commands/DeleteWebFunctionEndpointCommand";
33
+ import {
34
+ DeleteWebFunctionRevisionCommandInput,
35
+ DeleteWebFunctionRevisionCommandOutput,
36
+ } from "./commands/DeleteWebFunctionRevisionCommand";
37
+ import {
38
+ GetResourcePolicyCommandInput,
39
+ GetResourcePolicyCommandOutput,
40
+ } from "./commands/GetResourcePolicyCommand";
41
+ import {
42
+ GetWebAccountSettingsCommandInput,
43
+ GetWebAccountSettingsCommandOutput,
44
+ } from "./commands/GetWebAccountSettingsCommand";
45
+ import {
46
+ GetWebFunctionCommandInput,
47
+ GetWebFunctionCommandOutput,
48
+ } from "./commands/GetWebFunctionCommand";
49
+ import {
50
+ GetWebFunctionEndpointCommandInput,
51
+ GetWebFunctionEndpointCommandOutput,
52
+ } from "./commands/GetWebFunctionEndpointCommand";
53
+ import {
54
+ GetWebFunctionRevisionCommandInput,
55
+ GetWebFunctionRevisionCommandOutput,
56
+ } from "./commands/GetWebFunctionRevisionCommand";
57
+ import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
58
+ import {
59
+ ListWebFunctionEndpointsCommandInput,
60
+ ListWebFunctionEndpointsCommandOutput,
61
+ } from "./commands/ListWebFunctionEndpointsCommand";
62
+ import {
63
+ ListWebFunctionRevisionsCommandInput,
64
+ ListWebFunctionRevisionsCommandOutput,
65
+ } from "./commands/ListWebFunctionRevisionsCommand";
66
+ import {
67
+ ListWebFunctionsCommandInput,
68
+ ListWebFunctionsCommandOutput,
69
+ } from "./commands/ListWebFunctionsCommand";
70
+ import {
71
+ PutResourcePolicyCommandInput,
72
+ PutResourcePolicyCommandOutput,
73
+ } from "./commands/PutResourcePolicyCommand";
74
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
75
+ import {
76
+ UntagResourceCommandInput,
77
+ UntagResourceCommandOutput,
78
+ } from "./commands/UntagResourceCommand";
79
+ import {
80
+ UpdateWebFunctionEndpointCommandInput,
81
+ UpdateWebFunctionEndpointCommandOutput,
82
+ } from "./commands/UpdateWebFunctionEndpointCommand";
83
+ import { LambdaWebClient } from "./LambdaWebClient";
84
+ import { ResourceNotFoundException } from "./models/errors";
85
+ export interface LambdaWebRequestOptions extends __HttpHandlerOptions {
86
+ metricsRecorder?: __MetricsRecorder<unknown>;
87
+ }
88
+ export interface LambdaWeb {
89
+ createWebFunction(
90
+ args: CreateWebFunctionCommandInput,
91
+ options?: LambdaWebRequestOptions,
92
+ ): Promise<CreateWebFunctionCommandOutput>;
93
+ createWebFunction(
94
+ args: CreateWebFunctionCommandInput,
95
+ cb: (err: any, data?: CreateWebFunctionCommandOutput) => void,
96
+ ): void;
97
+ createWebFunction(
98
+ args: CreateWebFunctionCommandInput,
99
+ options: LambdaWebRequestOptions,
100
+ cb: (err: any, data?: CreateWebFunctionCommandOutput) => void,
101
+ ): void;
102
+ createWebFunctionEndpoint(
103
+ args: CreateWebFunctionEndpointCommandInput,
104
+ options?: LambdaWebRequestOptions,
105
+ ): Promise<CreateWebFunctionEndpointCommandOutput>;
106
+ createWebFunctionEndpoint(
107
+ args: CreateWebFunctionEndpointCommandInput,
108
+ cb: (err: any, data?: CreateWebFunctionEndpointCommandOutput) => void,
109
+ ): void;
110
+ createWebFunctionEndpoint(
111
+ args: CreateWebFunctionEndpointCommandInput,
112
+ options: LambdaWebRequestOptions,
113
+ cb: (err: any, data?: CreateWebFunctionEndpointCommandOutput) => void,
114
+ ): void;
115
+ createWebFunctionRevision(
116
+ args: CreateWebFunctionRevisionCommandInput,
117
+ options?: LambdaWebRequestOptions,
118
+ ): Promise<CreateWebFunctionRevisionCommandOutput>;
119
+ createWebFunctionRevision(
120
+ args: CreateWebFunctionRevisionCommandInput,
121
+ cb: (err: any, data?: CreateWebFunctionRevisionCommandOutput) => void,
122
+ ): void;
123
+ createWebFunctionRevision(
124
+ args: CreateWebFunctionRevisionCommandInput,
125
+ options: LambdaWebRequestOptions,
126
+ cb: (err: any, data?: CreateWebFunctionRevisionCommandOutput) => void,
127
+ ): void;
128
+ deleteResourcePolicy(
129
+ args: DeleteResourcePolicyCommandInput,
130
+ options?: LambdaWebRequestOptions,
131
+ ): Promise<DeleteResourcePolicyCommandOutput>;
132
+ deleteResourcePolicy(
133
+ args: DeleteResourcePolicyCommandInput,
134
+ cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void,
135
+ ): void;
136
+ deleteResourcePolicy(
137
+ args: DeleteResourcePolicyCommandInput,
138
+ options: LambdaWebRequestOptions,
139
+ cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void,
140
+ ): void;
141
+ deleteWebFunction(
142
+ args: DeleteWebFunctionCommandInput,
143
+ options?: LambdaWebRequestOptions,
144
+ ): Promise<DeleteWebFunctionCommandOutput>;
145
+ deleteWebFunction(
146
+ args: DeleteWebFunctionCommandInput,
147
+ cb: (err: any, data?: DeleteWebFunctionCommandOutput) => void,
148
+ ): void;
149
+ deleteWebFunction(
150
+ args: DeleteWebFunctionCommandInput,
151
+ options: LambdaWebRequestOptions,
152
+ cb: (err: any, data?: DeleteWebFunctionCommandOutput) => void,
153
+ ): void;
154
+ deleteWebFunctionEndpoint(
155
+ args: DeleteWebFunctionEndpointCommandInput,
156
+ options?: LambdaWebRequestOptions,
157
+ ): Promise<DeleteWebFunctionEndpointCommandOutput>;
158
+ deleteWebFunctionEndpoint(
159
+ args: DeleteWebFunctionEndpointCommandInput,
160
+ cb: (err: any, data?: DeleteWebFunctionEndpointCommandOutput) => void,
161
+ ): void;
162
+ deleteWebFunctionEndpoint(
163
+ args: DeleteWebFunctionEndpointCommandInput,
164
+ options: LambdaWebRequestOptions,
165
+ cb: (err: any, data?: DeleteWebFunctionEndpointCommandOutput) => void,
166
+ ): void;
167
+ deleteWebFunctionRevision(
168
+ args: DeleteWebFunctionRevisionCommandInput,
169
+ options?: LambdaWebRequestOptions,
170
+ ): Promise<DeleteWebFunctionRevisionCommandOutput>;
171
+ deleteWebFunctionRevision(
172
+ args: DeleteWebFunctionRevisionCommandInput,
173
+ cb: (err: any, data?: DeleteWebFunctionRevisionCommandOutput) => void,
174
+ ): void;
175
+ deleteWebFunctionRevision(
176
+ args: DeleteWebFunctionRevisionCommandInput,
177
+ options: LambdaWebRequestOptions,
178
+ cb: (err: any, data?: DeleteWebFunctionRevisionCommandOutput) => void,
179
+ ): void;
180
+ getResourcePolicy(
181
+ args: GetResourcePolicyCommandInput,
182
+ options?: LambdaWebRequestOptions,
183
+ ): Promise<GetResourcePolicyCommandOutput>;
184
+ getResourcePolicy(
185
+ args: GetResourcePolicyCommandInput,
186
+ cb: (err: any, data?: GetResourcePolicyCommandOutput) => void,
187
+ ): void;
188
+ getResourcePolicy(
189
+ args: GetResourcePolicyCommandInput,
190
+ options: LambdaWebRequestOptions,
191
+ cb: (err: any, data?: GetResourcePolicyCommandOutput) => void,
192
+ ): void;
193
+ getWebAccountSettings(): Promise<GetWebAccountSettingsCommandOutput>;
194
+ getWebAccountSettings(
195
+ args: GetWebAccountSettingsCommandInput,
196
+ options?: LambdaWebRequestOptions,
197
+ ): Promise<GetWebAccountSettingsCommandOutput>;
198
+ getWebAccountSettings(
199
+ args: GetWebAccountSettingsCommandInput,
200
+ cb: (err: any, data?: GetWebAccountSettingsCommandOutput) => void,
201
+ ): void;
202
+ getWebAccountSettings(
203
+ args: GetWebAccountSettingsCommandInput,
204
+ options: LambdaWebRequestOptions,
205
+ cb: (err: any, data?: GetWebAccountSettingsCommandOutput) => void,
206
+ ): void;
207
+ getWebFunction(
208
+ args: GetWebFunctionCommandInput,
209
+ options?: LambdaWebRequestOptions,
210
+ ): Promise<GetWebFunctionCommandOutput>;
211
+ getWebFunction(
212
+ args: GetWebFunctionCommandInput,
213
+ cb: (err: any, data?: GetWebFunctionCommandOutput) => void,
214
+ ): void;
215
+ getWebFunction(
216
+ args: GetWebFunctionCommandInput,
217
+ options: LambdaWebRequestOptions,
218
+ cb: (err: any, data?: GetWebFunctionCommandOutput) => void,
219
+ ): void;
220
+ getWebFunctionEndpoint(
221
+ args: GetWebFunctionEndpointCommandInput,
222
+ options?: LambdaWebRequestOptions,
223
+ ): Promise<GetWebFunctionEndpointCommandOutput>;
224
+ getWebFunctionEndpoint(
225
+ args: GetWebFunctionEndpointCommandInput,
226
+ cb: (err: any, data?: GetWebFunctionEndpointCommandOutput) => void,
227
+ ): void;
228
+ getWebFunctionEndpoint(
229
+ args: GetWebFunctionEndpointCommandInput,
230
+ options: LambdaWebRequestOptions,
231
+ cb: (err: any, data?: GetWebFunctionEndpointCommandOutput) => void,
232
+ ): void;
233
+ getWebFunctionRevision(
234
+ args: GetWebFunctionRevisionCommandInput,
235
+ options?: LambdaWebRequestOptions,
236
+ ): Promise<GetWebFunctionRevisionCommandOutput>;
237
+ getWebFunctionRevision(
238
+ args: GetWebFunctionRevisionCommandInput,
239
+ cb: (err: any, data?: GetWebFunctionRevisionCommandOutput) => void,
240
+ ): void;
241
+ getWebFunctionRevision(
242
+ args: GetWebFunctionRevisionCommandInput,
243
+ options: LambdaWebRequestOptions,
244
+ cb: (err: any, data?: GetWebFunctionRevisionCommandOutput) => void,
245
+ ): void;
246
+ listTags(
247
+ args: ListTagsCommandInput,
248
+ options?: LambdaWebRequestOptions,
249
+ ): Promise<ListTagsCommandOutput>;
250
+ listTags(args: ListTagsCommandInput, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
251
+ listTags(
252
+ args: ListTagsCommandInput,
253
+ options: LambdaWebRequestOptions,
254
+ cb: (err: any, data?: ListTagsCommandOutput) => void,
255
+ ): void;
256
+ listWebFunctionEndpoints(
257
+ args: ListWebFunctionEndpointsCommandInput,
258
+ options?: LambdaWebRequestOptions,
259
+ ): Promise<ListWebFunctionEndpointsCommandOutput>;
260
+ listWebFunctionEndpoints(
261
+ args: ListWebFunctionEndpointsCommandInput,
262
+ cb: (err: any, data?: ListWebFunctionEndpointsCommandOutput) => void,
263
+ ): void;
264
+ listWebFunctionEndpoints(
265
+ args: ListWebFunctionEndpointsCommandInput,
266
+ options: LambdaWebRequestOptions,
267
+ cb: (err: any, data?: ListWebFunctionEndpointsCommandOutput) => void,
268
+ ): void;
269
+ listWebFunctionRevisions(
270
+ args: ListWebFunctionRevisionsCommandInput,
271
+ options?: LambdaWebRequestOptions,
272
+ ): Promise<ListWebFunctionRevisionsCommandOutput>;
273
+ listWebFunctionRevisions(
274
+ args: ListWebFunctionRevisionsCommandInput,
275
+ cb: (err: any, data?: ListWebFunctionRevisionsCommandOutput) => void,
276
+ ): void;
277
+ listWebFunctionRevisions(
278
+ args: ListWebFunctionRevisionsCommandInput,
279
+ options: LambdaWebRequestOptions,
280
+ cb: (err: any, data?: ListWebFunctionRevisionsCommandOutput) => void,
281
+ ): void;
282
+ listWebFunctions(): Promise<ListWebFunctionsCommandOutput>;
283
+ listWebFunctions(
284
+ args: ListWebFunctionsCommandInput,
285
+ options?: LambdaWebRequestOptions,
286
+ ): Promise<ListWebFunctionsCommandOutput>;
287
+ listWebFunctions(
288
+ args: ListWebFunctionsCommandInput,
289
+ cb: (err: any, data?: ListWebFunctionsCommandOutput) => void,
290
+ ): void;
291
+ listWebFunctions(
292
+ args: ListWebFunctionsCommandInput,
293
+ options: LambdaWebRequestOptions,
294
+ cb: (err: any, data?: ListWebFunctionsCommandOutput) => void,
295
+ ): void;
296
+ putResourcePolicy(
297
+ args: PutResourcePolicyCommandInput,
298
+ options?: LambdaWebRequestOptions,
299
+ ): Promise<PutResourcePolicyCommandOutput>;
300
+ putResourcePolicy(
301
+ args: PutResourcePolicyCommandInput,
302
+ cb: (err: any, data?: PutResourcePolicyCommandOutput) => void,
303
+ ): void;
304
+ putResourcePolicy(
305
+ args: PutResourcePolicyCommandInput,
306
+ options: LambdaWebRequestOptions,
307
+ cb: (err: any, data?: PutResourcePolicyCommandOutput) => void,
308
+ ): void;
309
+ tagResource(
310
+ args: TagResourceCommandInput,
311
+ options?: LambdaWebRequestOptions,
312
+ ): Promise<TagResourceCommandOutput>;
313
+ tagResource(
314
+ args: TagResourceCommandInput,
315
+ cb: (err: any, data?: TagResourceCommandOutput) => void,
316
+ ): void;
317
+ tagResource(
318
+ args: TagResourceCommandInput,
319
+ options: LambdaWebRequestOptions,
320
+ cb: (err: any, data?: TagResourceCommandOutput) => void,
321
+ ): void;
322
+ untagResource(
323
+ args: UntagResourceCommandInput,
324
+ options?: LambdaWebRequestOptions,
325
+ ): Promise<UntagResourceCommandOutput>;
326
+ untagResource(
327
+ args: UntagResourceCommandInput,
328
+ cb: (err: any, data?: UntagResourceCommandOutput) => void,
329
+ ): void;
330
+ untagResource(
331
+ args: UntagResourceCommandInput,
332
+ options: LambdaWebRequestOptions,
333
+ cb: (err: any, data?: UntagResourceCommandOutput) => void,
334
+ ): void;
335
+ updateWebFunctionEndpoint(
336
+ args: UpdateWebFunctionEndpointCommandInput,
337
+ options?: LambdaWebRequestOptions,
338
+ ): Promise<UpdateWebFunctionEndpointCommandOutput>;
339
+ updateWebFunctionEndpoint(
340
+ args: UpdateWebFunctionEndpointCommandInput,
341
+ cb: (err: any, data?: UpdateWebFunctionEndpointCommandOutput) => void,
342
+ ): void;
343
+ updateWebFunctionEndpoint(
344
+ args: UpdateWebFunctionEndpointCommandInput,
345
+ options: LambdaWebRequestOptions,
346
+ cb: (err: any, data?: UpdateWebFunctionEndpointCommandOutput) => void,
347
+ ): void;
348
+ paginateListWebFunctionEndpoints(
349
+ args: ListWebFunctionEndpointsCommandInput,
350
+ paginationConfig?: Pick<
351
+ PaginationConfiguration,
352
+ Exclude<keyof PaginationConfiguration, "client">
353
+ >,
354
+ ): Paginator<ListWebFunctionEndpointsCommandOutput>;
355
+ paginateListWebFunctionRevisions(
356
+ args: ListWebFunctionRevisionsCommandInput,
357
+ paginationConfig?: Pick<
358
+ PaginationConfiguration,
359
+ Exclude<keyof PaginationConfiguration, "client">
360
+ >,
361
+ ): Paginator<ListWebFunctionRevisionsCommandOutput>;
362
+ paginateListWebFunctions(
363
+ args?: ListWebFunctionsCommandInput,
364
+ paginationConfig?: Pick<
365
+ PaginationConfiguration,
366
+ Exclude<keyof PaginationConfiguration, "client">
367
+ >,
368
+ ): Paginator<ListWebFunctionsCommandOutput>;
369
+ waitUntilWebFunctionActive(
370
+ args: GetWebFunctionCommandInput,
371
+ waiterConfig:
372
+ | number
373
+ | Pick<
374
+ WaiterConfiguration<LambdaWeb>,
375
+ Exclude<keyof WaiterConfiguration<LambdaWeb>, "client">
376
+ >,
377
+ ): Promise<WaiterResult<GetWebFunctionCommandOutput>>;
378
+ waitUntilWebFunctionDeleted(
379
+ args: GetWebFunctionCommandInput,
380
+ waiterConfig:
381
+ | number
382
+ | Pick<
383
+ WaiterConfiguration<LambdaWeb>,
384
+ Exclude<keyof WaiterConfiguration<LambdaWeb>, "client">
385
+ >,
386
+ ): Promise<WaiterResult<ResourceNotFoundException>>;
387
+ waitUntilWebFunctionEndpointActive(
388
+ args: GetWebFunctionEndpointCommandInput,
389
+ waiterConfig:
390
+ | number
391
+ | Pick<
392
+ WaiterConfiguration<LambdaWeb>,
393
+ Exclude<keyof WaiterConfiguration<LambdaWeb>, "client">
394
+ >,
395
+ ): Promise<WaiterResult<GetWebFunctionEndpointCommandOutput>>;
396
+ waitUntilWebFunctionEndpointDeleted(
397
+ args: GetWebFunctionEndpointCommandInput,
398
+ waiterConfig:
399
+ | number
400
+ | Pick<
401
+ WaiterConfiguration<LambdaWeb>,
402
+ Exclude<keyof WaiterConfiguration<LambdaWeb>, "client">
403
+ >,
404
+ ): Promise<WaiterResult<ResourceNotFoundException>>;
405
+ waitUntilWebFunctionEndpointUpdated(
406
+ args: GetWebFunctionEndpointCommandInput,
407
+ waiterConfig:
408
+ | number
409
+ | Pick<
410
+ WaiterConfiguration<LambdaWeb>,
411
+ Exclude<keyof WaiterConfiguration<LambdaWeb>, "client">
412
+ >,
413
+ ): Promise<WaiterResult<GetWebFunctionEndpointCommandOutput>>;
414
+ waitUntilWebFunctionRevisionActive(
415
+ args: GetWebFunctionRevisionCommandInput,
416
+ waiterConfig:
417
+ | number
418
+ | Pick<
419
+ WaiterConfiguration<LambdaWeb>,
420
+ Exclude<keyof WaiterConfiguration<LambdaWeb>, "client">
421
+ >,
422
+ ): Promise<WaiterResult<GetWebFunctionRevisionCommandOutput>>;
423
+ }
424
+ export declare class LambdaWeb extends LambdaWebClient implements LambdaWeb {}
@@ -0,0 +1,215 @@
1
+ import {
2
+ HostHeaderInputConfig,
3
+ HostHeaderResolvedConfig,
4
+ UserAgentInputConfig,
5
+ UserAgentResolvedConfig,
6
+ } from "@aws-sdk/core/client";
7
+ import {
8
+ DefaultsMode as __DefaultsMode,
9
+ SmithyConfiguration as __SmithyConfiguration,
10
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
11
+ Client as __Client,
12
+ } from "@smithy/core/client";
13
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/core/config";
14
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/core/endpoints";
15
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
16
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/core/retry";
17
+ import {
18
+ AwsCredentialIdentityProvider,
19
+ BodyLengthCalculator as __BodyLengthCalculator,
20
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
21
+ ChecksumConstructor as __ChecksumConstructor,
22
+ Decoder as __Decoder,
23
+ Encoder as __Encoder,
24
+ HashConstructor as __HashConstructor,
25
+ HttpHandlerOptions as __HttpHandlerOptions,
26
+ Logger as __Logger,
27
+ Provider as __Provider,
28
+ StreamCollector as __StreamCollector,
29
+ UrlParser as __UrlParser,
30
+ UserAgent as __UserAgent,
31
+ } from "@smithy/types";
32
+ import {
33
+ HttpAuthSchemeInputConfig,
34
+ HttpAuthSchemeResolvedConfig,
35
+ } from "./auth/httpAuthSchemeProvider";
36
+ import {
37
+ CreateWebFunctionCommandInput,
38
+ CreateWebFunctionCommandOutput,
39
+ } from "./commands/CreateWebFunctionCommand";
40
+ import {
41
+ CreateWebFunctionEndpointCommandInput,
42
+ CreateWebFunctionEndpointCommandOutput,
43
+ } from "./commands/CreateWebFunctionEndpointCommand";
44
+ import {
45
+ CreateWebFunctionRevisionCommandInput,
46
+ CreateWebFunctionRevisionCommandOutput,
47
+ } from "./commands/CreateWebFunctionRevisionCommand";
48
+ import {
49
+ DeleteResourcePolicyCommandInput,
50
+ DeleteResourcePolicyCommandOutput,
51
+ } from "./commands/DeleteResourcePolicyCommand";
52
+ import {
53
+ DeleteWebFunctionCommandInput,
54
+ DeleteWebFunctionCommandOutput,
55
+ } from "./commands/DeleteWebFunctionCommand";
56
+ import {
57
+ DeleteWebFunctionEndpointCommandInput,
58
+ DeleteWebFunctionEndpointCommandOutput,
59
+ } from "./commands/DeleteWebFunctionEndpointCommand";
60
+ import {
61
+ DeleteWebFunctionRevisionCommandInput,
62
+ DeleteWebFunctionRevisionCommandOutput,
63
+ } from "./commands/DeleteWebFunctionRevisionCommand";
64
+ import {
65
+ GetResourcePolicyCommandInput,
66
+ GetResourcePolicyCommandOutput,
67
+ } from "./commands/GetResourcePolicyCommand";
68
+ import {
69
+ GetWebAccountSettingsCommandInput,
70
+ GetWebAccountSettingsCommandOutput,
71
+ } from "./commands/GetWebAccountSettingsCommand";
72
+ import {
73
+ GetWebFunctionCommandInput,
74
+ GetWebFunctionCommandOutput,
75
+ } from "./commands/GetWebFunctionCommand";
76
+ import {
77
+ GetWebFunctionEndpointCommandInput,
78
+ GetWebFunctionEndpointCommandOutput,
79
+ } from "./commands/GetWebFunctionEndpointCommand";
80
+ import {
81
+ GetWebFunctionRevisionCommandInput,
82
+ GetWebFunctionRevisionCommandOutput,
83
+ } from "./commands/GetWebFunctionRevisionCommand";
84
+ import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
85
+ import {
86
+ ListWebFunctionEndpointsCommandInput,
87
+ ListWebFunctionEndpointsCommandOutput,
88
+ } from "./commands/ListWebFunctionEndpointsCommand";
89
+ import {
90
+ ListWebFunctionRevisionsCommandInput,
91
+ ListWebFunctionRevisionsCommandOutput,
92
+ } from "./commands/ListWebFunctionRevisionsCommand";
93
+ import {
94
+ ListWebFunctionsCommandInput,
95
+ ListWebFunctionsCommandOutput,
96
+ } from "./commands/ListWebFunctionsCommand";
97
+ import {
98
+ PutResourcePolicyCommandInput,
99
+ PutResourcePolicyCommandOutput,
100
+ } from "./commands/PutResourcePolicyCommand";
101
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
102
+ import {
103
+ UntagResourceCommandInput,
104
+ UntagResourceCommandOutput,
105
+ } from "./commands/UntagResourceCommand";
106
+ import {
107
+ UpdateWebFunctionEndpointCommandInput,
108
+ UpdateWebFunctionEndpointCommandOutput,
109
+ } from "./commands/UpdateWebFunctionEndpointCommand";
110
+ import {
111
+ ClientInputEndpointParameters,
112
+ ClientResolvedEndpointParameters,
113
+ EndpointParameters,
114
+ } from "./endpoint/EndpointParameters";
115
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
116
+ export { __Client };
117
+ export type ServiceInputTypes =
118
+ | CreateWebFunctionCommandInput
119
+ | CreateWebFunctionEndpointCommandInput
120
+ | CreateWebFunctionRevisionCommandInput
121
+ | DeleteResourcePolicyCommandInput
122
+ | DeleteWebFunctionCommandInput
123
+ | DeleteWebFunctionEndpointCommandInput
124
+ | DeleteWebFunctionRevisionCommandInput
125
+ | GetResourcePolicyCommandInput
126
+ | GetWebAccountSettingsCommandInput
127
+ | GetWebFunctionCommandInput
128
+ | GetWebFunctionEndpointCommandInput
129
+ | GetWebFunctionRevisionCommandInput
130
+ | ListTagsCommandInput
131
+ | ListWebFunctionEndpointsCommandInput
132
+ | ListWebFunctionRevisionsCommandInput
133
+ | ListWebFunctionsCommandInput
134
+ | PutResourcePolicyCommandInput
135
+ | TagResourceCommandInput
136
+ | UntagResourceCommandInput
137
+ | UpdateWebFunctionEndpointCommandInput;
138
+ export type ServiceOutputTypes =
139
+ | CreateWebFunctionCommandOutput
140
+ | CreateWebFunctionEndpointCommandOutput
141
+ | CreateWebFunctionRevisionCommandOutput
142
+ | DeleteResourcePolicyCommandOutput
143
+ | DeleteWebFunctionCommandOutput
144
+ | DeleteWebFunctionEndpointCommandOutput
145
+ | DeleteWebFunctionRevisionCommandOutput
146
+ | GetResourcePolicyCommandOutput
147
+ | GetWebAccountSettingsCommandOutput
148
+ | GetWebFunctionCommandOutput
149
+ | GetWebFunctionEndpointCommandOutput
150
+ | GetWebFunctionRevisionCommandOutput
151
+ | ListTagsCommandOutput
152
+ | ListWebFunctionEndpointsCommandOutput
153
+ | ListWebFunctionRevisionsCommandOutput
154
+ | ListWebFunctionsCommandOutput
155
+ | PutResourcePolicyCommandOutput
156
+ | TagResourceCommandOutput
157
+ | UntagResourceCommandOutput
158
+ | UpdateWebFunctionEndpointCommandOutput;
159
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
160
+ requestHandler?: __HttpHandlerUserInput;
161
+ sha256?: __ChecksumConstructor | __HashConstructor;
162
+ urlParser?: __UrlParser;
163
+ bodyLengthChecker?: __BodyLengthCalculator;
164
+ streamCollector?: __StreamCollector;
165
+ base64Decoder?: __Decoder;
166
+ base64Encoder?: __Encoder;
167
+ utf8Decoder?: __Decoder;
168
+ utf8Encoder?: __Encoder;
169
+ runtime?: string;
170
+ disableHostPrefix?: boolean;
171
+ serviceId?: string;
172
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
173
+ useFipsEndpoint?: boolean | __Provider<boolean>;
174
+ region?: string | __Provider<string>;
175
+ profile?: string;
176
+ defaultUserAgentProvider?: __Provider<__UserAgent>;
177
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
178
+ maxAttempts?: number | __Provider<number>;
179
+ retryMode?: string | __Provider<string>;
180
+ logger?: __Logger;
181
+ extensions?: RuntimeExtension[];
182
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
183
+ }
184
+ export type LambdaWebClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
185
+ ClientDefaults &
186
+ UserAgentInputConfig &
187
+ RetryInputConfig &
188
+ RegionInputConfig &
189
+ HostHeaderInputConfig &
190
+ EndpointInputConfig<EndpointParameters> &
191
+ HttpAuthSchemeInputConfig &
192
+ ClientInputEndpointParameters;
193
+ export interface LambdaWebClientConfig extends LambdaWebClientConfigType {}
194
+ export type LambdaWebClientResolvedConfigType =
195
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
196
+ Required<ClientDefaults> &
197
+ RuntimeExtensionsConfig &
198
+ UserAgentResolvedConfig &
199
+ RetryResolvedConfig &
200
+ RegionResolvedConfig &
201
+ HostHeaderResolvedConfig &
202
+ EndpointResolvedConfig<EndpointParameters> &
203
+ HttpAuthSchemeResolvedConfig &
204
+ ClientResolvedEndpointParameters;
205
+ export interface LambdaWebClientResolvedConfig extends LambdaWebClientResolvedConfigType {}
206
+ export declare class LambdaWebClient extends __Client<
207
+ __HttpHandlerOptions,
208
+ ServiceInputTypes,
209
+ ServiceOutputTypes,
210
+ LambdaWebClientResolvedConfig
211
+ > {
212
+ readonly config: LambdaWebClientResolvedConfig;
213
+ constructor(...[configuration]: __CheckOptionalClientConfig<LambdaWebClientConfig>);
214
+ destroy(): void;
215
+ }
@@ -0,0 +1,25 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { LambdaWebHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: LambdaWebHttpAuthSchemeProvider): void;
11
+ httpAuthSchemeProvider(): LambdaWebHttpAuthSchemeProvider;
12
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
13
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
14
+ }
15
+ export type HttpAuthRuntimeConfig = Partial<{
16
+ httpAuthSchemes: HttpAuthScheme[];
17
+ httpAuthSchemeProvider: LambdaWebHttpAuthSchemeProvider;
18
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
19
+ }>;
20
+ export declare const getHttpAuthExtensionConfiguration: (
21
+ runtimeConfig: HttpAuthRuntimeConfig,
22
+ ) => HttpAuthExtensionConfiguration;
23
+ export declare const resolveHttpAuthRuntimeConfig: (
24
+ config: HttpAuthExtensionConfiguration,
25
+ ) => HttpAuthRuntimeConfig;