types-boto3-lambda-web 1.43.107__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,429 @@
1
+ """
2
+ Type annotations for lambda-web service Client.
3
+
4
+ [Documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/)
5
+
6
+ Copyright 2026 Vlad Emelianov
7
+
8
+ Usage::
9
+
10
+ ```python
11
+ from boto3.session import Session
12
+ from types_boto3_lambda_web.client import LambdaWebClient
13
+
14
+ session = Session()
15
+ client: LambdaWebClient = session.client("lambda-web")
16
+ ```
17
+ """
18
+
19
+ from __future__ import annotations
20
+
21
+ import sys
22
+ from collections.abc import Mapping
23
+ from typing import Any, overload
24
+
25
+ from botocore.client import BaseClient, ClientMeta
26
+ from botocore.errorfactory import BaseClientExceptions
27
+ from botocore.exceptions import ClientError as BotocoreClientError
28
+
29
+ from .paginator import (
30
+ ListWebFunctionEndpointsPaginator,
31
+ ListWebFunctionRevisionsPaginator,
32
+ ListWebFunctionsPaginator,
33
+ )
34
+ from .type_defs import (
35
+ CreateWebFunctionEndpointRequestTypeDef,
36
+ CreateWebFunctionEndpointResponseTypeDef,
37
+ CreateWebFunctionRequestTypeDef,
38
+ CreateWebFunctionResponseTypeDef,
39
+ CreateWebFunctionRevisionRequestTypeDef,
40
+ CreateWebFunctionRevisionResponseTypeDef,
41
+ DeleteResourcePolicyRequestTypeDef,
42
+ DeleteWebFunctionEndpointRequestTypeDef,
43
+ DeleteWebFunctionRequestTypeDef,
44
+ DeleteWebFunctionRevisionRequestTypeDef,
45
+ EmptyResponseMetadataTypeDef,
46
+ GetResourcePolicyRequestTypeDef,
47
+ GetResourcePolicyResponseTypeDef,
48
+ GetWebAccountSettingsResponseTypeDef,
49
+ GetWebFunctionEndpointRequestTypeDef,
50
+ GetWebFunctionEndpointResponseTypeDef,
51
+ GetWebFunctionRequestTypeDef,
52
+ GetWebFunctionResponseTypeDef,
53
+ GetWebFunctionRevisionRequestTypeDef,
54
+ GetWebFunctionRevisionResponseTypeDef,
55
+ ListTagsRequestTypeDef,
56
+ ListTagsResponseTypeDef,
57
+ ListWebFunctionEndpointsRequestTypeDef,
58
+ ListWebFunctionEndpointsResponseTypeDef,
59
+ ListWebFunctionRevisionsRequestTypeDef,
60
+ ListWebFunctionRevisionsResponseTypeDef,
61
+ ListWebFunctionsRequestTypeDef,
62
+ ListWebFunctionsResponseTypeDef,
63
+ PutResourcePolicyRequestTypeDef,
64
+ PutResourcePolicyResponseTypeDef,
65
+ TagResourceRequestTypeDef,
66
+ UntagResourceRequestTypeDef,
67
+ UpdateWebFunctionEndpointRequestTypeDef,
68
+ UpdateWebFunctionEndpointResponseTypeDef,
69
+ )
70
+ from .waiter import (
71
+ WebFunctionActiveWaiter,
72
+ WebFunctionDeletedWaiter,
73
+ WebFunctionEndpointActiveWaiter,
74
+ WebFunctionEndpointDeletedWaiter,
75
+ WebFunctionEndpointUpdatedWaiter,
76
+ WebFunctionRevisionActiveWaiter,
77
+ )
78
+
79
+ if sys.version_info >= (3, 12):
80
+ from typing import Literal, Unpack
81
+ else:
82
+ from typing_extensions import Literal, Unpack
83
+
84
+ __all__ = ("LambdaWebClient",)
85
+
86
+ class Exceptions(BaseClientExceptions):
87
+ AccessDeniedException: type[BotocoreClientError]
88
+ ClientError: type[BotocoreClientError]
89
+ ConflictException: type[BotocoreClientError]
90
+ InternalServerException: type[BotocoreClientError]
91
+ ResourceNotFoundException: type[BotocoreClientError]
92
+ ServiceQuotaExceededException: type[BotocoreClientError]
93
+ ThrottlingException: type[BotocoreClientError]
94
+ ValidationException: type[BotocoreClientError]
95
+
96
+ class LambdaWebClient(BaseClient):
97
+ """
98
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web.html#LambdaWeb.Client)
99
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/)
100
+ """
101
+
102
+ meta: ClientMeta
103
+
104
+ @property
105
+ def exceptions(self) -> Exceptions:
106
+ """
107
+ LambdaWebClient exceptions.
108
+
109
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web.html#LambdaWeb.Client)
110
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#exceptions)
111
+ """
112
+
113
+ def can_paginate(self, operation_name: str) -> bool:
114
+ """
115
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/can_paginate.html)
116
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#can_paginate)
117
+ """
118
+
119
+ def generate_presigned_url(
120
+ self,
121
+ ClientMethod: str,
122
+ Params: Mapping[str, Any] = ...,
123
+ ExpiresIn: int = 3600,
124
+ HttpMethod: str = ...,
125
+ ) -> str:
126
+ """
127
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/generate_presigned_url.html)
128
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#generate_presigned_url)
129
+ """
130
+
131
+ def create_web_function(
132
+ self, **kwargs: Unpack[CreateWebFunctionRequestTypeDef]
133
+ ) -> CreateWebFunctionResponseTypeDef:
134
+ """
135
+ Creates a web function with an initial revision and endpoint.
136
+
137
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/create_web_function.html)
138
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#create_web_function)
139
+ """
140
+
141
+ def create_web_function_endpoint(
142
+ self, **kwargs: Unpack[CreateWebFunctionEndpointRequestTypeDef]
143
+ ) -> CreateWebFunctionEndpointResponseTypeDef:
144
+ """
145
+ Creates an endpoint for a web function.
146
+
147
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/create_web_function_endpoint.html)
148
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#create_web_function_endpoint)
149
+ """
150
+
151
+ def create_web_function_revision(
152
+ self, **kwargs: Unpack[CreateWebFunctionRevisionRequestTypeDef]
153
+ ) -> CreateWebFunctionRevisionResponseTypeDef:
154
+ """
155
+ Creates an immutable revision for a web function.
156
+
157
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/create_web_function_revision.html)
158
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#create_web_function_revision)
159
+ """
160
+
161
+ def delete_resource_policy(
162
+ self, **kwargs: Unpack[DeleteResourcePolicyRequestTypeDef]
163
+ ) -> EmptyResponseMetadataTypeDef:
164
+ """
165
+ Removes the resource-based policy from a web function.
166
+
167
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/delete_resource_policy.html)
168
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#delete_resource_policy)
169
+ """
170
+
171
+ def delete_web_function(
172
+ self, **kwargs: Unpack[DeleteWebFunctionRequestTypeDef]
173
+ ) -> EmptyResponseMetadataTypeDef:
174
+ """
175
+ Deletes a web function and all of its associated revisions and endpoints.
176
+
177
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/delete_web_function.html)
178
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#delete_web_function)
179
+ """
180
+
181
+ def delete_web_function_endpoint(
182
+ self, **kwargs: Unpack[DeleteWebFunctionEndpointRequestTypeDef]
183
+ ) -> EmptyResponseMetadataTypeDef:
184
+ """
185
+ Deletes a web function endpoint.
186
+
187
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/delete_web_function_endpoint.html)
188
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#delete_web_function_endpoint)
189
+ """
190
+
191
+ def delete_web_function_revision(
192
+ self, **kwargs: Unpack[DeleteWebFunctionRevisionRequestTypeDef]
193
+ ) -> EmptyResponseMetadataTypeDef:
194
+ """
195
+ Deletes a web function revision.
196
+
197
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/delete_web_function_revision.html)
198
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#delete_web_function_revision)
199
+ """
200
+
201
+ def get_resource_policy(
202
+ self, **kwargs: Unpack[GetResourcePolicyRequestTypeDef]
203
+ ) -> GetResourcePolicyResponseTypeDef:
204
+ """
205
+ Retrieves the resource-based policy attached to a web function.
206
+
207
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_resource_policy.html)
208
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_resource_policy)
209
+ """
210
+
211
+ def get_web_account_settings(self) -> GetWebAccountSettingsResponseTypeDef:
212
+ """
213
+ Retrieves details about your AWS Lambda Web Functions account settings for the
214
+ current AWS Region, including the quotas that apply to web functions and your
215
+ current usage.
216
+
217
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_web_account_settings.html)
218
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_web_account_settings)
219
+ """
220
+
221
+ def get_web_function(
222
+ self, **kwargs: Unpack[GetWebFunctionRequestTypeDef]
223
+ ) -> GetWebFunctionResponseTypeDef:
224
+ """
225
+ Retrieves details about a web function, including its current state and
226
+ configuration.
227
+
228
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_web_function.html)
229
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_web_function)
230
+ """
231
+
232
+ def get_web_function_endpoint(
233
+ self, **kwargs: Unpack[GetWebFunctionEndpointRequestTypeDef]
234
+ ) -> GetWebFunctionEndpointResponseTypeDef:
235
+ """
236
+ Retrieves details about a web function endpoint, including its current state,
237
+ configuration, and domain name.
238
+
239
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_web_function_endpoint.html)
240
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_web_function_endpoint)
241
+ """
242
+
243
+ def get_web_function_revision(
244
+ self, **kwargs: Unpack[GetWebFunctionRevisionRequestTypeDef]
245
+ ) -> GetWebFunctionRevisionResponseTypeDef:
246
+ """
247
+ Retrieves details about a web function revision, including its state and
248
+ configuration.
249
+
250
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_web_function_revision.html)
251
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_web_function_revision)
252
+ """
253
+
254
+ def list_tags(self, **kwargs: Unpack[ListTagsRequestTypeDef]) -> ListTagsResponseTypeDef:
255
+ """
256
+ Returns a list of tags applied to a web function.
257
+
258
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/list_tags.html)
259
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#list_tags)
260
+ """
261
+
262
+ def list_web_function_endpoints(
263
+ self, **kwargs: Unpack[ListWebFunctionEndpointsRequestTypeDef]
264
+ ) -> ListWebFunctionEndpointsResponseTypeDef:
265
+ """
266
+ Lists endpoints for a web function.
267
+
268
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/list_web_function_endpoints.html)
269
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#list_web_function_endpoints)
270
+ """
271
+
272
+ def list_web_function_revisions(
273
+ self, **kwargs: Unpack[ListWebFunctionRevisionsRequestTypeDef]
274
+ ) -> ListWebFunctionRevisionsResponseTypeDef:
275
+ """
276
+ Lists revisions for a web function.
277
+
278
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/list_web_function_revisions.html)
279
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#list_web_function_revisions)
280
+ """
281
+
282
+ def list_web_functions(
283
+ self, **kwargs: Unpack[ListWebFunctionsRequestTypeDef]
284
+ ) -> ListWebFunctionsResponseTypeDef:
285
+ """
286
+ Lists web functions in your account.
287
+
288
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/list_web_functions.html)
289
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#list_web_functions)
290
+ """
291
+
292
+ def put_resource_policy(
293
+ self, **kwargs: Unpack[PutResourcePolicyRequestTypeDef]
294
+ ) -> PutResourcePolicyResponseTypeDef:
295
+ """
296
+ Adds or updates a resource-based policy on a web function.
297
+
298
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/put_resource_policy.html)
299
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#put_resource_policy)
300
+ """
301
+
302
+ def tag_resource(
303
+ self, **kwargs: Unpack[TagResourceRequestTypeDef]
304
+ ) -> EmptyResponseMetadataTypeDef:
305
+ """
306
+ Adds tags to a web function.
307
+
308
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/tag_resource.html)
309
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#tag_resource)
310
+ """
311
+
312
+ def untag_resource(
313
+ self, **kwargs: Unpack[UntagResourceRequestTypeDef]
314
+ ) -> EmptyResponseMetadataTypeDef:
315
+ """
316
+ Removes tags from a web function.
317
+
318
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/untag_resource.html)
319
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#untag_resource)
320
+ """
321
+
322
+ def update_web_function_endpoint(
323
+ self, **kwargs: Unpack[UpdateWebFunctionEndpointRequestTypeDef]
324
+ ) -> UpdateWebFunctionEndpointResponseTypeDef:
325
+ """
326
+ Updates the configuration of a web function endpoint.
327
+
328
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/update_web_function_endpoint.html)
329
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#update_web_function_endpoint)
330
+ """
331
+
332
+ @overload # type: ignore[override]
333
+ def get_paginator( # type: ignore[override]
334
+ self, operation_name: Literal["list_web_function_endpoints"]
335
+ ) -> ListWebFunctionEndpointsPaginator:
336
+ """
337
+ Create a paginator for an operation.
338
+
339
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_paginator.html)
340
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_paginator)
341
+ """
342
+
343
+ @overload # type: ignore[override]
344
+ def get_paginator( # type: ignore[override]
345
+ self, operation_name: Literal["list_web_function_revisions"]
346
+ ) -> ListWebFunctionRevisionsPaginator:
347
+ """
348
+ Create a paginator for an operation.
349
+
350
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_paginator.html)
351
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_paginator)
352
+ """
353
+
354
+ @overload # type: ignore[override]
355
+ def get_paginator( # type: ignore[override]
356
+ self, operation_name: Literal["list_web_functions"]
357
+ ) -> ListWebFunctionsPaginator:
358
+ """
359
+ Create a paginator for an operation.
360
+
361
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_paginator.html)
362
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_paginator)
363
+ """
364
+
365
+ @overload # type: ignore[override]
366
+ def get_waiter( # type: ignore[override]
367
+ self, waiter_name: Literal["web_function_active"]
368
+ ) -> WebFunctionActiveWaiter:
369
+ """
370
+ Returns an object that can wait for some condition.
371
+
372
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_waiter.html)
373
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_waiter)
374
+ """
375
+
376
+ @overload # type: ignore[override]
377
+ def get_waiter( # type: ignore[override]
378
+ self, waiter_name: Literal["web_function_deleted"]
379
+ ) -> WebFunctionDeletedWaiter:
380
+ """
381
+ Returns an object that can wait for some condition.
382
+
383
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_waiter.html)
384
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_waiter)
385
+ """
386
+
387
+ @overload # type: ignore[override]
388
+ def get_waiter( # type: ignore[override]
389
+ self, waiter_name: Literal["web_function_endpoint_active"]
390
+ ) -> WebFunctionEndpointActiveWaiter:
391
+ """
392
+ Returns an object that can wait for some condition.
393
+
394
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_waiter.html)
395
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_waiter)
396
+ """
397
+
398
+ @overload # type: ignore[override]
399
+ def get_waiter( # type: ignore[override]
400
+ self, waiter_name: Literal["web_function_endpoint_deleted"]
401
+ ) -> WebFunctionEndpointDeletedWaiter:
402
+ """
403
+ Returns an object that can wait for some condition.
404
+
405
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_waiter.html)
406
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_waiter)
407
+ """
408
+
409
+ @overload # type: ignore[override]
410
+ def get_waiter( # type: ignore[override]
411
+ self, waiter_name: Literal["web_function_endpoint_updated"]
412
+ ) -> WebFunctionEndpointUpdatedWaiter:
413
+ """
414
+ Returns an object that can wait for some condition.
415
+
416
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_waiter.html)
417
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_waiter)
418
+ """
419
+
420
+ @overload # type: ignore[override]
421
+ def get_waiter( # type: ignore[override]
422
+ self, waiter_name: Literal["web_function_revision_active"]
423
+ ) -> WebFunctionRevisionActiveWaiter:
424
+ """
425
+ Returns an object that can wait for some condition.
426
+
427
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lambda-web/client/get_waiter.html)
428
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_lambda_web/client/#get_waiter)
429
+ """