aws-sdk-lambda 0.10.0__tar.gz → 0.12.0__tar.gz

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 (33) hide show
  1. aws_sdk_lambda-0.12.0/.changes/0.11.0.json +20 -0
  2. aws_sdk_lambda-0.12.0/.changes/0.12.0.json +28 -0
  3. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/.gitignore +3 -0
  4. aws_sdk_lambda-0.12.0/CHANGELOG.md +47 -0
  5. aws_sdk_lambda-0.12.0/PKG-INFO +47 -0
  6. aws_sdk_lambda-0.12.0/README.md +20 -0
  7. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/pyproject.toml +9 -4
  8. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/scripts/docs/generate_doc_stubs.py +48 -6
  9. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/src/aws_sdk_lambda/__init__.py +1 -1
  10. aws_sdk_lambda-0.12.0/src/aws_sdk_lambda/_private/schemas.py +9364 -0
  11. aws_sdk_lambda-0.12.0/src/aws_sdk_lambda/client.py +3164 -0
  12. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/src/aws_sdk_lambda/config.py +33 -9
  13. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/src/aws_sdk_lambda/models.py +1599 -179
  14. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/zensical.toml +1 -1
  15. aws_sdk_lambda-0.10.0/CHANGELOG.md +0 -21
  16. aws_sdk_lambda-0.10.0/PKG-INFO +0 -39
  17. aws_sdk_lambda-0.10.0/README.md +0 -14
  18. aws_sdk_lambda-0.10.0/src/aws_sdk_lambda/_private/schemas.py +0 -25489
  19. aws_sdk_lambda-0.10.0/src/aws_sdk_lambda/client.py +0 -6378
  20. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/.changes/0.10.0.json +0 -0
  21. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/.changes/0.8.0.json +0 -0
  22. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/.changes/0.9.0.json +0 -0
  23. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/LICENSE +0 -0
  24. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/Makefile +0 -0
  25. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/NOTICE +0 -0
  26. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/docs/README.md +0 -0
  27. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/docs/index.md +0 -0
  28. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/docs/stylesheets/extra.css +0 -0
  29. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/src/aws_sdk_lambda/_private/__init__.py +0 -0
  30. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/src/aws_sdk_lambda/auth.py +0 -0
  31. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/src/aws_sdk_lambda/user_agent.py +0 -0
  32. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/tests/__init__.py +0 -0
  33. {aws_sdk_lambda-0.10.0 → aws_sdk_lambda-0.12.0}/tests/test_restjson_protocol.py +0 -0
@@ -0,0 +1,20 @@
1
+ {
2
+ "changes": [
3
+ {
4
+ "type": "api-change",
5
+ "description": "Adds support for full JSON resource-based policies, enabling customers to create, retrieve, update, and delete function resource policies as complete JSON documents."
6
+ },
7
+ {
8
+ "type": "enhancement",
9
+ "description": "Re-generated with smithy-python 0.5.0"
10
+ },
11
+ {
12
+ "type": "dependency",
13
+ "description": "Bump `smithy-aws-core` from `~=0.10.0` to `~=0.11.0`."
14
+ },
15
+ {
16
+ "type": "dependency",
17
+ "description": "Bump `smithy-http` from `~=0.4.0` to `~=0.5.0`."
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "changes": [
3
+ {
4
+ "type": "api-change",
5
+ "description": "Updates documentation for lambda function timeout."
6
+ },
7
+ {
8
+ "type": "api-change",
9
+ "description": "AWS Lambda now provides configurable control over S3 direct access, allowing you to explicitly enable or disable how functions stream file reads directly from S3 buckets. This gives you flexibility to tune data access behavior based on your workload requirements, independent of memory size."
10
+ },
11
+ {
12
+ "type": "enhancement",
13
+ "description": "Re-generated with smithy-python 0.6.0"
14
+ },
15
+ {
16
+ "type": "dependency",
17
+ "description": "Bump `smithy-core` from `~=0.8.0` to `~=0.9.0`."
18
+ },
19
+ {
20
+ "type": "dependency",
21
+ "description": "Bump `smithy-aws-core` from `~=0.11.0` to `~=0.12.0`."
22
+ },
23
+ {
24
+ "type": "dependency",
25
+ "description": "Bump `smithy-http` from `~=0.5.0` to `~=0.6.0`."
26
+ }
27
+ ]
28
+ }
@@ -20,3 +20,6 @@ uv.lock
20
20
 
21
21
  # Distribution / packaging
22
22
  dist/
23
+
24
+ # scratch workspace
25
+ /workspace
@@ -0,0 +1,47 @@
1
+ # Changelog
2
+
3
+ ## v0.12.0
4
+
5
+ ### API Changes
6
+ * Updates documentation for lambda function timeout.
7
+ * AWS Lambda now provides configurable control over S3 direct access, allowing you to explicitly enable or disable how functions stream file reads directly from S3 buckets. This gives you flexibility to tune data access behavior based on your workload requirements, independent of memory size.
8
+
9
+ ### Enhancements
10
+ * Re-generated with smithy-python 0.6.0
11
+
12
+ ### Dependencies
13
+ * Bump `smithy-core` from `~=0.8.0` to `~=0.9.0`.
14
+ * Bump `smithy-aws-core` from `~=0.11.0` to `~=0.12.0`.
15
+ * Bump `smithy-http` from `~=0.5.0` to `~=0.6.0`.
16
+
17
+ ## v0.11.0
18
+
19
+ ### API Changes
20
+ * Adds support for full JSON resource-based policies, enabling customers to create, retrieve, update, and delete function resource policies as complete JSON documents.
21
+
22
+ ### Enhancements
23
+ * Re-generated with smithy-python 0.5.0
24
+
25
+ ### Dependencies
26
+ * Bump `smithy-aws-core` from `~=0.10.0` to `~=0.11.0`.
27
+ * Bump `smithy-http` from `~=0.4.0` to `~=0.5.0`.
28
+
29
+ ## v0.10.0
30
+
31
+ ### Dependencies
32
+ * Bump `smithy-aws-core` from `~=0.9.0` to `~=0.10.0`.
33
+
34
+ ## v0.9.0
35
+
36
+ ### Dependencies
37
+ * Bump `smithy-core` from `~=0.7.0` to `~=0.8.0`.
38
+ * Bump `smithy-aws-core` from `~=0.8.0` to `~=0.9.0`.
39
+
40
+ ## v0.8.0
41
+
42
+ ### Features
43
+ * Initial client release with support for current AWS Lambda operations.
44
+
45
+ ### Dependencies
46
+ * Bump `smithy-aws-core` from `~=0.7.0` to `~=0.8.0`.
47
+ * Bump `smithy-core` from `~=0.6.0` to `~=0.7.0`.
@@ -0,0 +1,47 @@
1
+ Metadata-Version: 2.5
2
+ Name: aws_sdk_lambda
3
+ Version: 0.12.0
4
+ Summary: aws_sdk_lambda client
5
+ License: Apache-2.0
6
+ License-File: LICENSE
7
+ License-File: NOTICE
8
+ Keywords: aws_sdk_lambda,smithy
9
+ Classifier: Development Status :: 2 - Pre-Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Intended Audience :: System Administrators
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Natural Language :: English
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: smithy-aws-core[eventstream,json]~=0.12.0
22
+ Requires-Dist: smithy-core~=0.9.0
23
+ Requires-Dist: smithy-http[aiohttp]~=0.6.0
24
+ Provides-Extra: awscrt
25
+ Requires-Dist: smithy-http[awscrt]~=0.6.0; extra == 'awscrt'
26
+ Description-Content-Type: text/markdown
27
+
28
+ # AWS Lambda Client
29
+
30
+ The `aws-sdk-lambda` package provides a client for making
31
+ requests to AWS Lambda.
32
+
33
+ > **Note:** This SDK is experimental and in early development. Breaking changes
34
+ > may occur prior to the release of version 1.0.0.
35
+
36
+ ## Installation
37
+
38
+ ```bash
39
+ python -m pip install aws-sdk-lambda
40
+ ```
41
+
42
+ ## Documentation
43
+
44
+ - [API Reference](https://docs.aws.amazon.com/sdk-for-python/v4/reference/clients/lambda/) -
45
+ the Lambda client, available operations, and types.
46
+ - [Developer Guide](https://docs.aws.amazon.com/sdk-for-python/v4/guide/) -
47
+ configuration, authentication, and usage of the AWS SDK for Python v4.
@@ -0,0 +1,20 @@
1
+ # AWS Lambda Client
2
+
3
+ The `aws-sdk-lambda` package provides a client for making
4
+ requests to AWS Lambda.
5
+
6
+ > **Note:** This SDK is experimental and in early development. Breaking changes
7
+ > may occur prior to the release of version 1.0.0.
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ python -m pip install aws-sdk-lambda
13
+ ```
14
+
15
+ ## Documentation
16
+
17
+ - [API Reference](https://docs.aws.amazon.com/sdk-for-python/v4/reference/clients/lambda/) -
18
+ the Lambda client, available operations, and types.
19
+ - [Developer Guide](https://docs.aws.amazon.com/sdk-for-python/v4/guide/) -
20
+ configuration, authentication, and usage of the AWS SDK for Python v4.
@@ -2,7 +2,7 @@
2
2
 
3
3
  [project]
4
4
  name = "aws_sdk_lambda"
5
- version = "0.10.0"
5
+ version = "0.12.0"
6
6
  description = "aws_sdk_lambda client"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.12"
@@ -23,9 +23,14 @@ classifiers = [
23
23
  ]
24
24
 
25
25
  dependencies = [
26
- "smithy_aws_core[eventstream, json]~=0.10.0",
27
- "smithy_core~=0.8.0",
28
- "smithy_http[awscrt]~=0.4.0"
26
+ "smithy_aws_core[eventstream, json]~=0.12.0",
27
+ "smithy_core~=0.9.0",
28
+ "smithy_http[aiohttp]~=0.6.0"
29
+ ]
30
+
31
+ [project.optional-dependencies]
32
+ awscrt = [
33
+ "smithy_http[awscrt]~=0.6.0"
29
34
  ]
30
35
 
31
36
  [dependency-groups]
@@ -1,5 +1,5 @@
1
1
  """
2
- Generate markdown API Reference stubs for AWS SDK for Python clients.
2
+ Generate markdown API Reference stubs for AWS SDK for Python v4 clients.
3
3
 
4
4
  This script generates markdown stub files for a single client package.
5
5
  It uses griffe to analyze the Python source and outputs mkdocstrings directives
@@ -40,6 +40,7 @@ logger = logging.getLogger("generate_doc_stubs")
40
40
 
41
41
  ENUM_BASE_CLASSES = ("StrEnum", "IntEnum")
42
42
  ERROR_BASE_CLASSES = ("ServiceError", "ModeledError")
43
+ CLIENT_METHOD_NAMES = ("close",)
43
44
 
44
45
 
45
46
  class StreamType(Enum):
@@ -90,6 +91,14 @@ class OperationInfo:
90
91
  event_output_type: str | None # For output/duplex streams
91
92
 
92
93
 
94
+ @dataclass
95
+ class ClientMethodInfo:
96
+ """Information about a non-operation client method."""
97
+
98
+ name: str
99
+ module_path: str
100
+
101
+
93
102
  @dataclass
94
103
  class ModelsInfo:
95
104
  """Information about all modeled types."""
@@ -109,12 +118,13 @@ class ClientInfo:
109
118
  package_name: str # e.g., "aws_sdk_bedrock_runtime"
110
119
  config: TypeInfo
111
120
  plugin: TypeInfo
121
+ client_methods: list[ClientMethodInfo]
112
122
  operations: list[OperationInfo]
113
123
  models: ModelsInfo
114
124
 
115
125
 
116
126
  class DocStubGenerator:
117
- """Generate markdown API Reference stubs for AWS SDK for Python clients."""
127
+ """Generate markdown API Reference stubs for AWS SDK for Python v4 clients."""
118
128
 
119
129
  def __init__(self, client_dir: Path, output_dir: Path, service_name: str | None = None) -> None:
120
130
  """
@@ -202,11 +212,13 @@ class DocStubGenerator:
202
212
  config = TypeInfo(name=config_class.name, module_path=config_class.path)
203
213
  plugin = TypeInfo(name=plugin_alias.name, module_path=plugin_alias.path)
204
214
 
215
+ client_methods = self._extract_client_methods(client_class)
205
216
  operations = self._extract_operations(client_class)
206
217
  models = self._extract_models(models_module, operations)
207
218
 
208
219
  logger.info(
209
- f"Analyzed {client_class.name}: {len(operations)} operations, "
220
+ f"Analyzed {client_class.name}: {len(client_methods)} client methods, "
221
+ f"{len(operations)} operations, "
210
222
  f"{len(models.structures)} structures, {len(models.errors)} errors, "
211
223
  f"{len(models.unions)} unions, {len(models.enums)} enums"
212
224
  )
@@ -217,6 +229,7 @@ class DocStubGenerator:
217
229
  package_name=package_name,
218
230
  config=config,
219
231
  plugin=plugin,
232
+ client_methods=client_methods,
220
233
  operations=operations,
221
234
  models=models,
222
235
  )
@@ -236,11 +249,24 @@ class DocStubGenerator:
236
249
  """Extract operation information from client class."""
237
250
  operations = []
238
251
  for op in client_class.functions.values():
239
- if op.is_private or op.is_init_method:
252
+ if (
253
+ op.is_private
254
+ or op.is_init_method
255
+ or op.is_special
256
+ or op.name in CLIENT_METHOD_NAMES
257
+ ):
240
258
  continue
241
259
  operations.append(self._analyze_operation(op))
242
260
  return operations
243
261
 
262
+ def _extract_client_methods(self, client_class: Class) -> list[ClientMethodInfo]:
263
+ """Extract public client methods that are not service operations."""
264
+ return [
265
+ ClientMethodInfo(name=method.name, module_path=method.path)
266
+ for method in client_class.functions.values()
267
+ if not method.is_private and method.name in CLIENT_METHOD_NAMES
268
+ ]
269
+
244
270
  def _analyze_operation(self, operation: Function) -> OperationInfo:
245
271
  """Analyze an operation method to extract information."""
246
272
  stream_type = None
@@ -271,7 +297,8 @@ class DocStubGenerator:
271
297
  event_output_type = stream_args[idx].canonical_name
272
298
 
273
299
  output_info = TypeInfo(
274
- name=stream_args[-1].canonical_name, module_path=stream_args[-1].canonical_path
300
+ name=stream_args[-1].canonical_name,
301
+ module_path=stream_args[-1].canonical_path,
275
302
  )
276
303
  else:
277
304
  output_info = TypeInfo(name=output_type, module_path=returns.canonical_path)
@@ -423,6 +450,14 @@ class DocStubGenerator:
423
450
  lines = [
424
451
  f"# {self.service_name}",
425
452
  "",
453
+ "## Installation",
454
+ "",
455
+ f"To install the {self.service_name} client:",
456
+ "",
457
+ "```bash",
458
+ f"python -m pip install {client_info.package_name.replace('_', '-')}",
459
+ "```",
460
+ "",
426
461
  "## Client",
427
462
  "",
428
463
  *self._mkdocs_directive(
@@ -434,6 +469,9 @@ class DocStubGenerator:
434
469
  "",
435
470
  ]
436
471
 
472
+ for method in sorted(client_info.client_methods, key=lambda x: x.name):
473
+ lines.extend([*self._mkdocs_directive(method.module_path, heading_level=4), ""])
474
+
437
475
  # Operations section
438
476
  if client_info.operations:
439
477
  lines.append("## Operations")
@@ -639,7 +677,11 @@ def main() -> int:
639
677
  description="Generate API documentation stubs for AWS SDK Python client."
640
678
  )
641
679
  parser.add_argument(
642
- "-c", "--client-dir", type=Path, required=True, help="Path to the client source package"
680
+ "-c",
681
+ "--client-dir",
682
+ type=Path,
683
+ required=True,
684
+ help="Path to the client source package",
643
685
  )
644
686
  parser.add_argument(
645
687
  "-o",
@@ -1,3 +1,3 @@
1
1
  # Code generated by smithy-python-codegen DO NOT EDIT.
2
2
 
3
- __version__: str = "0.10.0"
3
+ __version__: str = "0.12.0"