aws-sdk-lambda 0.11.0__tar.gz → 0.13.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 (61) hide show
  1. aws_sdk_lambda-0.13.0/.changes/0.12.0.json +28 -0
  2. aws_sdk_lambda-0.13.0/.changes/0.13.0.json +76 -0
  3. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/.gitignore +10 -0
  4. aws_sdk_lambda-0.13.0/CHANGELOG.md +77 -0
  5. aws_sdk_lambda-0.13.0/PKG-INFO +50 -0
  6. aws_sdk_lambda-0.13.0/README.md +22 -0
  7. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/pyproject.toml +14 -13
  8. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/__init__.py +29 -0
  9. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/endpoints.py +60 -0
  10. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/models_0.pyi +8898 -0
  11. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/models_1.pyi +6016 -0
  12. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/schemas.py +752 -0
  13. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/schemas_0.py +1201 -0
  14. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/schemas_1.py +1296 -0
  15. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/schemas_2.py +1194 -0
  16. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/schemas_3.py +1275 -0
  17. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/schemas_4.py +1309 -0
  18. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/schemas_5.py +1271 -0
  19. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/schemas_6.py +1374 -0
  20. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/_private/schemas_7.py +1370 -0
  21. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/aio/__init__.py +19 -0
  22. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/aio/client.py +4586 -0
  23. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/aio/config.py +653 -0
  24. {aws_sdk_lambda-0.11.0/src/aws_sdk_lambda → aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/aio}/user_agent.py +1 -1
  25. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/client.py +4516 -0
  26. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/config.py +648 -0
  27. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/models.py +2126 -0
  28. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/models.pyi +792 -0
  29. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/py.typed +0 -0
  30. aws_sdk_lambda-0.13.0/src/aws_sdk_lambda/user_agent.py +17 -0
  31. aws_sdk_lambda-0.13.0/tests/_typecheck.py +2047 -0
  32. aws_sdk_lambda-0.13.0/tests/functional/__init__.py +2 -0
  33. aws_sdk_lambda-0.13.0/tests/functional/test_recursion_detection.py +21 -0
  34. aws_sdk_lambda-0.13.0/tests/functional/test_retry.py +24 -0
  35. aws_sdk_lambda-0.13.0/tests/functional/test_streams.py +105 -0
  36. aws_sdk_lambda-0.13.0/tests/test_endpoints.py +450 -0
  37. aws_sdk_lambda-0.13.0/tests/test_model_conformance.py +13 -0
  38. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/tests/test_restjson_protocol.py +10 -10
  39. aws_sdk_lambda-0.11.0/CHANGELOG.md +0 -33
  40. aws_sdk_lambda-0.11.0/Makefile +0 -25
  41. aws_sdk_lambda-0.11.0/PKG-INFO +0 -41
  42. aws_sdk_lambda-0.11.0/README.md +0 -14
  43. aws_sdk_lambda-0.11.0/docs/README.md +0 -18
  44. aws_sdk_lambda-0.11.0/docs/index.md +0 -1
  45. aws_sdk_lambda-0.11.0/docs/stylesheets/extra.css +0 -9
  46. aws_sdk_lambda-0.11.0/scripts/docs/generate_doc_stubs.py +0 -710
  47. aws_sdk_lambda-0.11.0/src/aws_sdk_lambda/__init__.py +0 -3
  48. aws_sdk_lambda-0.11.0/src/aws_sdk_lambda/_private/schemas.py +0 -25801
  49. aws_sdk_lambda-0.11.0/src/aws_sdk_lambda/client.py +0 -7052
  50. aws_sdk_lambda-0.11.0/src/aws_sdk_lambda/config.py +0 -539
  51. aws_sdk_lambda-0.11.0/src/aws_sdk_lambda/models.py +0 -40196
  52. aws_sdk_lambda-0.11.0/zensical.toml +0 -83
  53. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/.changes/0.10.0.json +0 -0
  54. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/.changes/0.11.0.json +0 -0
  55. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/.changes/0.8.0.json +0 -0
  56. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/.changes/0.9.0.json +0 -0
  57. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/LICENSE +0 -0
  58. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/NOTICE +0 -0
  59. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/src/aws_sdk_lambda/_private/__init__.py +0 -0
  60. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/src/aws_sdk_lambda/auth.py +0 -0
  61. {aws_sdk_lambda-0.11.0 → aws_sdk_lambda-0.13.0}/tests/__init__.py +0 -0
@@ -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
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "changes": [
3
+ {
4
+ "type": "breaking",
5
+ "description": "Codegen sync for [smithy-python b8ecead...d185e3b](https://github.com/smithy-lang/smithy-python/compare/b8eceadb0573bd0c757def9a2b26fe7bf938b239...d185e3b5b5ef2e24661a6256be721101631bdcb2): Add the synchronous `LambdaClient` and `LambdaConfig` in `aws_sdk_lambda.client` and `aws_sdk_lambda.config`. The async `AsyncLambdaClient` and `AsyncLambdaConfig` moved to `aws_sdk_lambda.aio.client` and `aws_sdk_lambda.aio.config`; update async imports to the `aio` paths. All four are also exported from `aws_sdk_lambda`. Event stream operations are only available on the async client."
6
+ },
7
+ {
8
+ "type": "breaking",
9
+ "description": "Operations take the members of their input as keyword arguments, or the whole request as a single positional-only input model or dictionary; the two can't be mixed in one call. `plugins` is keyword-only. Calls that pass the request as `input=` or pass `plugins` positionally must be updated. A request that leaves a required member unset, at any depth, raises a `TypeError` before it is sent."
10
+ },
11
+ {
12
+ "type": "api-change",
13
+ "description": "Adds ConsumptionMode to SelfManagedKafkaEventSourceConfig, letting Lambda event source mappings consume self-managed Apache Kafka topics as a queue. Set ConsumptionMode to Queue when creating an event source mapping."
14
+ },
15
+ {
16
+ "type": "api-change",
17
+ "description": "Adds support for customer-managed runtimes in the CreateFunction and UpdateFunctionConfiguration APIs. Functions can now use a customer-managed runtime and receive its updates automatically, or pin to a specific runtime version using the existing runtime controls."
18
+ },
19
+ {
20
+ "type": "api-change",
21
+ "description": "AWS Lambda now supports OAuth 2.0 (OAUTHBEARER), IAM, and IAM with OAUTHBEARER authentication for self-managed Apache Kafka event source mappings, including optional OAuth scope, audience, logical cluster, and identity pool parameters. OAuth 2.0 is also available for Confluent Schema Registry."
22
+ },
23
+ {
24
+ "type": "api-change",
25
+ "description": "AWS Lambda durable functions now supports payloads up to 1 MB for checkpoints, callback completion, and error details."
26
+ },
27
+ {
28
+ "type": "api-change",
29
+ "description": "Doc updates to reposition Lambda Functions as Lambda Event Functions"
30
+ },
31
+ {
32
+ "type": "api-change",
33
+ "description": "AWS Lambda now supports an optional X-Ray trace header for chained invocations in durable executions, enabling child invocations to be linked to the initiating span."
34
+ },
35
+ {
36
+ "type": "feature",
37
+ "description": "Generate an operation's idempotency token when it is omitted or `None`. It is generated once per call, so every retry sends the same token, and a token passed by the caller is sent unchanged."
38
+ },
39
+ {
40
+ "type": "feature",
41
+ "description": "Nested structures and unions in a request may be written as dictionaries. A dictionary may contain models, but the members of a model must be models. Each structure and union reachable from an operation input has a dictionary form with a `Dict` suffix, declared in `models.pyi`."
42
+ },
43
+ {
44
+ "type": "feature",
45
+ "description": "Resolve endpoints from the service's endpoint rules instead of the standard regional endpoint pattern. Add the `use_fips_endpoint` and `use_dualstack_endpoint` configuration options to select FIPS and dual-stack endpoints, also read from the `AWS_USE_FIPS_ENDPOINT` and `AWS_USE_DUALSTACK_ENDPOINT` environment variables and the `use_fips_endpoint` and `use_dualstack_endpoint` profile keys."
46
+ },
47
+ {
48
+ "type": "feature",
49
+ "description": "Support the `adaptive` retry mode, set with `retry_mode=\"adaptive\"`, the `AWS_RETRY_MODE` environment variable, or the `retry_mode` profile key. Previously `retry_mode=\"adaptive\"` was rejected, and the environment variable and profile key fell back to `standard` with a warning."
50
+ },
51
+ {
52
+ "type": "enhancement",
53
+ "description": "Add support for Python 3.15."
54
+ },
55
+ {
56
+ "type": "enhancement",
57
+ "description": "Load models, schemas, and operations lazily on first use."
58
+ },
59
+ {
60
+ "type": "enhancement",
61
+ "description": "Include a `py.typed` marker so type checkers use the types of the installed client, and expose the typed model surface, including member documentation, through `models.pyi`."
62
+ },
63
+ {
64
+ "type": "dependency",
65
+ "description": "Bump `smithy-http` from `~=0.6.0` to `~=0.10.0`."
66
+ },
67
+ {
68
+ "type": "dependency",
69
+ "description": "Bump `smithy-core` from `~=0.9.0` to `~=0.13.0`."
70
+ },
71
+ {
72
+ "type": "dependency",
73
+ "description": "Bump `smithy-aws-core` from `~=0.12.0` to `~=0.16.0`."
74
+ }
75
+ ]
76
+ }
@@ -1,6 +1,9 @@
1
1
  # macOS system files
2
2
  .DS_Store
3
3
 
4
+ # IDE
5
+ .idea/
6
+
4
7
  # Docs build artifacts
5
8
  site/
6
9
  docs/clients/
@@ -8,6 +11,7 @@ docs/clients/
8
11
 
9
12
  # Virtual environments
10
13
  .venv
14
+ .venv-verify
11
15
  venv
12
16
 
13
17
  # Caches
@@ -20,3 +24,9 @@ uv.lock
20
24
 
21
25
  # Distribution / packaging
22
26
  dist/
27
+
28
+ # scratch workspace
29
+ /workspace
30
+
31
+ # Codegen sync changelog text, read by `make clients`
32
+ /CODEGEN_SYNC_CHANGELOG.md
@@ -0,0 +1,77 @@
1
+ # Changelog
2
+
3
+ ## v0.13.0
4
+
5
+ ### API Changes
6
+ * Adds ConsumptionMode to SelfManagedKafkaEventSourceConfig, letting Lambda event source mappings consume self-managed Apache Kafka topics as a queue. Set ConsumptionMode to Queue when creating an event source mapping.
7
+ * Adds support for customer-managed runtimes in the CreateFunction and UpdateFunctionConfiguration APIs. Functions can now use a customer-managed runtime and receive its updates automatically, or pin to a specific runtime version using the existing runtime controls.
8
+ * AWS Lambda now supports OAuth 2.0 (OAUTHBEARER), IAM, and IAM with OAUTHBEARER authentication for self-managed Apache Kafka event source mappings, including optional OAuth scope, audience, logical cluster, and identity pool parameters. OAuth 2.0 is also available for Confluent Schema Registry.
9
+ * AWS Lambda durable functions now supports payloads up to 1 MB for checkpoints, callback completion, and error details.
10
+ * Doc updates to reposition Lambda Functions as Lambda Event Functions
11
+ * AWS Lambda now supports an optional X-Ray trace header for chained invocations in durable executions, enabling child invocations to be linked to the initiating span.
12
+
13
+ ### Breaking Changes
14
+ * Codegen sync for [smithy-python b8ecead...d185e3b](https://github.com/smithy-lang/smithy-python/compare/b8eceadb0573bd0c757def9a2b26fe7bf938b239...d185e3b5b5ef2e24661a6256be721101631bdcb2): Add the synchronous `LambdaClient` and `LambdaConfig` in `aws_sdk_lambda.client` and `aws_sdk_lambda.config`. The async `AsyncLambdaClient` and `AsyncLambdaConfig` moved to `aws_sdk_lambda.aio.client` and `aws_sdk_lambda.aio.config`; update async imports to the `aio` paths. All four are also exported from `aws_sdk_lambda`. Event stream operations are only available on the async client.
15
+ * Operations take the members of their input as keyword arguments, or the whole request as a single positional-only input model or dictionary; the two can't be mixed in one call. `plugins` is keyword-only. Calls that pass the request as `input=` or pass `plugins` positionally must be updated. A request that leaves a required member unset, at any depth, raises a `TypeError` before it is sent.
16
+
17
+ ### Features
18
+ * Generate an operation's idempotency token when it is omitted or `None`. It is generated once per call, so every retry sends the same token, and a token passed by the caller is sent unchanged.
19
+ * Nested structures and unions in a request may be written as dictionaries. A dictionary may contain models, but the members of a model must be models. Each structure and union reachable from an operation input has a dictionary form with a `Dict` suffix, declared in `models.pyi`.
20
+ * Resolve endpoints from the service's endpoint rules instead of the standard regional endpoint pattern. Add the `use_fips_endpoint` and `use_dualstack_endpoint` configuration options to select FIPS and dual-stack endpoints, also read from the `AWS_USE_FIPS_ENDPOINT` and `AWS_USE_DUALSTACK_ENDPOINT` environment variables and the `use_fips_endpoint` and `use_dualstack_endpoint` profile keys.
21
+ * Support the `adaptive` retry mode, set with `retry_mode="adaptive"`, the `AWS_RETRY_MODE` environment variable, or the `retry_mode` profile key. Previously `retry_mode="adaptive"` was rejected, and the environment variable and profile key fell back to `standard` with a warning.
22
+
23
+ ### Enhancements
24
+ * Add support for Python 3.15.
25
+ * Load models, schemas, and operations lazily on first use.
26
+ * Include a `py.typed` marker so type checkers use the types of the installed client, and expose the typed model surface, including member documentation, through `models.pyi`.
27
+
28
+ ### Dependencies
29
+ * Bump `smithy-http` from `~=0.6.0` to `~=0.10.0`.
30
+ * Bump `smithy-core` from `~=0.9.0` to `~=0.13.0`.
31
+ * Bump `smithy-aws-core` from `~=0.12.0` to `~=0.16.0`.
32
+
33
+ ## v0.12.0
34
+
35
+ ### API Changes
36
+ * Updates documentation for lambda function timeout.
37
+ * 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.
38
+
39
+ ### Enhancements
40
+ * Re-generated with smithy-python 0.6.0
41
+
42
+ ### Dependencies
43
+ * Bump `smithy-core` from `~=0.8.0` to `~=0.9.0`.
44
+ * Bump `smithy-aws-core` from `~=0.11.0` to `~=0.12.0`.
45
+ * Bump `smithy-http` from `~=0.5.0` to `~=0.6.0`.
46
+
47
+ ## v0.11.0
48
+
49
+ ### API Changes
50
+ * Adds support for full JSON resource-based policies, enabling customers to create, retrieve, update, and delete function resource policies as complete JSON documents.
51
+
52
+ ### Enhancements
53
+ * Re-generated with smithy-python 0.5.0
54
+
55
+ ### Dependencies
56
+ * Bump `smithy-aws-core` from `~=0.10.0` to `~=0.11.0`.
57
+ * Bump `smithy-http` from `~=0.4.0` to `~=0.5.0`.
58
+
59
+ ## v0.10.0
60
+
61
+ ### Dependencies
62
+ * Bump `smithy-aws-core` from `~=0.9.0` to `~=0.10.0`.
63
+
64
+ ## v0.9.0
65
+
66
+ ### Dependencies
67
+ * Bump `smithy-core` from `~=0.7.0` to `~=0.8.0`.
68
+ * Bump `smithy-aws-core` from `~=0.8.0` to `~=0.9.0`.
69
+
70
+ ## v0.8.0
71
+
72
+ ### Features
73
+ * Initial client release with support for current AWS Lambda operations.
74
+
75
+ ### Dependencies
76
+ * Bump `smithy-aws-core` from `~=0.7.0` to `~=0.8.0`.
77
+ * Bump `smithy-core` from `~=0.6.0` to `~=0.7.0`.
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.5
2
+ Name: aws_sdk_lambda
3
+ Version: 0.13.0
4
+ Summary: Python client for AWS Lambda
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
+ Classifier: Programming Language :: Python :: 3.15
21
+ Requires-Python: >=3.12
22
+ Requires-Dist: smithy-aws-core[eventstream,json]~=0.16.0
23
+ Requires-Dist: smithy-core~=0.13.0
24
+ Requires-Dist: smithy-http[aiohttp,urllib3]~=0.10.0
25
+ Provides-Extra: awscrt
26
+ Requires-Dist: smithy-http[awscrt]~=0.10.0; extra == 'awscrt'
27
+ Description-Content-Type: text/markdown
28
+
29
+ <!-- Code generated by smithy-python-codegen DO NOT EDIT. -->
30
+
31
+ # AWS Lambda Client
32
+
33
+ The `aws-sdk-lambda` package provides a client for making
34
+ requests to AWS Lambda.
35
+
36
+ > **Note:** This SDK is experimental and in early development. Breaking changes
37
+ > may occur prior to the release of version 1.0.0.
38
+
39
+ ## Installation
40
+
41
+ ```bash
42
+ python -m pip install aws-sdk-lambda
43
+ ```
44
+
45
+ ## Documentation
46
+
47
+ - [API Reference](https://docs.aws.amazon.com/sdk-for-python/v4/reference/clients/lambda/) -
48
+ the Lambda client, available operations, and types.
49
+ - [Developer Guide](https://docs.aws.amazon.com/sdk-for-python/v4/guide/) -
50
+ configuration, authentication, and usage of the AWS SDK for Python v4.
@@ -0,0 +1,22 @@
1
+ <!-- Code generated by smithy-python-codegen DO NOT EDIT. -->
2
+
3
+ # AWS Lambda Client
4
+
5
+ The `aws-sdk-lambda` package provides a client for making
6
+ requests to AWS Lambda.
7
+
8
+ > **Note:** This SDK is experimental and in early development. Breaking changes
9
+ > may occur prior to the release of version 1.0.0.
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ python -m pip install aws-sdk-lambda
15
+ ```
16
+
17
+ ## Documentation
18
+
19
+ - [API Reference](https://docs.aws.amazon.com/sdk-for-python/v4/reference/clients/lambda/) -
20
+ the Lambda client, available operations, and types.
21
+ - [Developer Guide](https://docs.aws.amazon.com/sdk-for-python/v4/guide/) -
22
+ configuration, authentication, and usage of the AWS SDK for Python v4.
@@ -2,8 +2,8 @@
2
2
 
3
3
  [project]
4
4
  name = "aws_sdk_lambda"
5
- version = "0.11.0"
6
- description = "aws_sdk_lambda client"
5
+ version = "0.13.0"
6
+ description = "Python client for AWS Lambda"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.12"
9
9
  keywords = ["smithy", "aws_sdk_lambda"]
@@ -19,28 +19,26 @@ classifiers = [
19
19
  "Programming Language :: Python :: 3 :: Only",
20
20
  "Programming Language :: Python :: 3.12",
21
21
  "Programming Language :: Python :: 3.13",
22
- "Programming Language :: Python :: 3.14"
22
+ "Programming Language :: Python :: 3.14",
23
+ "Programming Language :: Python :: 3.15"
23
24
  ]
24
25
 
25
26
  dependencies = [
26
- "smithy_aws_core[eventstream, json]~=0.11.0",
27
- "smithy_core~=0.8.0",
28
- "smithy_http[aiohttp]~=0.5.0"
27
+ "smithy_aws_core[eventstream, json]~=0.16.0",
28
+ "smithy_core~=0.13.0",
29
+ "smithy_http[aiohttp, urllib3]~=0.10.0"
29
30
  ]
30
31
 
31
32
  [project.optional-dependencies]
32
33
  awscrt = [
33
- "smithy_http[awscrt]~=0.5.0"
34
+ "smithy_http[awscrt]~=0.10.0"
34
35
  ]
35
36
 
36
37
  [dependency-groups]
37
- docs = [
38
- "mkdocstrings[python]~=1.0.4",
39
- "zensical~=0.0.53",
40
- ]
41
38
  test = [
42
- "pytest>=9.0.1,<10.0.0",
43
- "pytest-asyncio>=1.3.0,<1.4.0"
39
+ "pytest>=9.0.3,<10.0.0",
40
+ "pytest-asyncio>=1.3.0,<1.4.0",
41
+ "smithy_test~=0.5.0"
44
42
  ]
45
43
 
46
44
  [build-system]
@@ -55,6 +53,9 @@ reportUnusedVariable = false
55
53
  reportUnnecessaryComparison = false
56
54
  reportUnusedClass = false
57
55
  enableExperimentalFeatures = true
56
+ # models.py is the dynamic runtime; models.pyi carries the typed
57
+ # surface for consumers, so don't type-check the implementation body.
58
+ exclude = ["**/models.py"]
58
59
 
59
60
  [tool.ruff]
60
61
  target-version = "py312"
@@ -0,0 +1,29 @@
1
+ # Code generated by smithy-python-codegen DO NOT EDIT.
2
+
3
+ from importlib import import_module
4
+ from typing import Any, TYPE_CHECKING
5
+
6
+
7
+ if TYPE_CHECKING:
8
+ from .client import LambdaClient
9
+ from .config import LambdaConfig
10
+ from .aio.client import AsyncLambdaClient
11
+ from .aio.config import AsyncLambdaConfig
12
+
13
+ __all__ = ["LambdaClient", "LambdaConfig", "AsyncLambdaClient", "AsyncLambdaConfig"]
14
+
15
+ _EXPORTS = {
16
+ "LambdaClient": ".client",
17
+ "LambdaConfig": ".config",
18
+ "AsyncLambdaClient": ".aio.client",
19
+ "AsyncLambdaConfig": ".aio.config",
20
+ }
21
+
22
+
23
+ def __getattr__(name: str) -> Any:
24
+ if name in _EXPORTS:
25
+ return getattr(import_module(_EXPORTS[name], __name__), name)
26
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
27
+
28
+
29
+ __version__: str = "0.13.0"
@@ -0,0 +1,60 @@
1
+ # Code generated by smithy-python-codegen DO NOT EDIT.
2
+
3
+ """Endpoint BDD for com.amazonaws.lambda#AWSGirApiService."""
4
+
5
+ from smithy_core.endpoints import EndpointBdd
6
+
7
+ # fmt: off
8
+ # Tags: ref=0, attr=1, call=2, list=3, map=4, error=5, endpoint=6.
9
+ BDD = EndpointBdd(
10
+ # (name, type, required, default, builtin, client_context_attribute)
11
+ parameters=(
12
+ ("Region", "string", False, None, "AWS::Region", None),
13
+ ("UseDualStack", "boolean", True, False, "AWS::UseDualStack", None),
14
+ ("UseFIPS", "boolean", True, False, "AWS::UseFIPS", None),
15
+ ("Endpoint", "string", False, None, "SDK::Endpoint", None),
16
+ ),
17
+ functions=("aws.partition", "booleanEquals", "isSet"),
18
+ conditions=(
19
+ ((2, "isSet", (0, "Endpoint")), None), # 0: isSet(Endpoint)
20
+ ((2, "isSet", (0, "Region")), None), # 1: isSet(Region)
21
+ ((2, "aws.partition", (0, "Region")), "PartitionResult"), # 2: PartitionResult = aws.partition(Region)
22
+ ((2, "booleanEquals", (0, "UseFIPS"), True), None), # 3: booleanEquals(UseFIPS, true)
23
+ ((2, "booleanEquals", (0, "UseDualStack"), True), None), # 4: booleanEquals(UseDualStack, true)
24
+ ((2, "booleanEquals", (1, (0, "PartitionResult"), "supportsDualStack"), True), None), # 5: booleanEquals(PartitionResult#supportsDualStack, true)
25
+ ((2, "booleanEquals", (1, (0, "PartitionResult"), "supportsFIPS"), True), None), # 6: booleanEquals(PartitionResult#supportsFIPS, true)
26
+ ),
27
+ results=(
28
+ None, # 0: no match
29
+ (5, "Invalid Configuration: FIPS and custom endpoint are not supported"), # 1
30
+ (5, "Invalid Configuration: Dualstack and custom endpoint are not supported"), # 2
31
+ (6, (0, "Endpoint"), None, ()), # 3
32
+ (6, "https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", None, ()), # 4
33
+ (5, "FIPS and DualStack are enabled, but this partition does not support one or both"), # 5
34
+ (6, "https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}", None, ()), # 6
35
+ (5, "FIPS is enabled but this partition does not support FIPS"), # 7
36
+ (6, "https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}", None, ()), # 8
37
+ (5, "DualStack is enabled but this partition does not support DualStack"), # 9
38
+ (6, "https://lambda.{Region}.{PartitionResult#dnsSuffix}", None, ()), # 10
39
+ (5, "Invalid Configuration: Missing Region"), # 11
40
+ ),
41
+ root=2,
42
+ # (condition, high, low); 1 and -1 are terminals, a negative reference is a
43
+ # complement edge, and 100_000_000 + k is result k.
44
+ nodes=(
45
+ -1, 1, -1,
46
+ 0, 12, 3,
47
+ 1, 4, 100_000_011,
48
+ 2, 5, 100_000_011,
49
+ 3, 8, 6,
50
+ 4, 7, 100_000_010,
51
+ 5, 100_000_008, 100_000_009,
52
+ 4, 10, 9,
53
+ 6, 100_000_006, 100_000_007,
54
+ 5, 11, 100_000_005,
55
+ 6, 100_000_004, 100_000_005,
56
+ 3, 100_000_001, 13,
57
+ 4, 100_000_002, 100_000_003,
58
+ ),
59
+ )
60
+ # fmt: on