aws-sdk-lambda 0.12.0__tar.gz → 0.13.1__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 (59) hide show
  1. aws_sdk_lambda-0.13.1/.changes/0.13.0.json +76 -0
  2. aws_sdk_lambda-0.13.1/.changes/0.13.1.json +8 -0
  3. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/.gitignore +7 -0
  4. aws_sdk_lambda-0.13.1/CHANGELOG.md +82 -0
  5. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/PKG-INFO +11 -8
  6. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/README.md +4 -2
  7. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/pyproject.toml +16 -13
  8. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/__init__.py +29 -0
  9. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/endpoints.py +60 -0
  10. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/models_0.pyi +8898 -0
  11. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/models_1.pyi +6016 -0
  12. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/schemas.py +752 -0
  13. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/schemas_0.py +1201 -0
  14. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/schemas_1.py +1296 -0
  15. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/schemas_2.py +1194 -0
  16. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/schemas_3.py +1275 -0
  17. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/schemas_4.py +1309 -0
  18. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/schemas_5.py +1271 -0
  19. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/schemas_6.py +1374 -0
  20. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/_private/schemas_7.py +1370 -0
  21. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/aio/__init__.py +19 -0
  22. {aws_sdk_lambda-0.12.0/src/aws_sdk_lambda → aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/aio}/client.py +2359 -937
  23. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/aio/config.py +653 -0
  24. {aws_sdk_lambda-0.12.0/src/aws_sdk_lambda → aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/aio}/user_agent.py +1 -1
  25. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/client.py +4516 -0
  26. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/config.py +648 -0
  27. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/models.py +2126 -0
  28. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/models.pyi +792 -0
  29. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/py.typed +0 -0
  30. aws_sdk_lambda-0.13.1/src/aws_sdk_lambda/user_agent.py +17 -0
  31. aws_sdk_lambda-0.13.1/tests/_typecheck.py +2047 -0
  32. aws_sdk_lambda-0.13.1/tests/functional/__init__.py +2 -0
  33. aws_sdk_lambda-0.13.1/tests/functional/test_recursion_detection.py +21 -0
  34. aws_sdk_lambda-0.13.1/tests/functional/test_retry.py +24 -0
  35. aws_sdk_lambda-0.13.1/tests/functional/test_streams.py +105 -0
  36. aws_sdk_lambda-0.13.1/tests/test_endpoints.py +450 -0
  37. aws_sdk_lambda-0.13.1/tests/test_model_conformance.py +13 -0
  38. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/tests/test_restjson_protocol.py +10 -10
  39. aws_sdk_lambda-0.12.0/CHANGELOG.md +0 -47
  40. aws_sdk_lambda-0.12.0/Makefile +0 -25
  41. aws_sdk_lambda-0.12.0/docs/README.md +0 -18
  42. aws_sdk_lambda-0.12.0/docs/index.md +0 -1
  43. aws_sdk_lambda-0.12.0/docs/stylesheets/extra.css +0 -9
  44. aws_sdk_lambda-0.12.0/scripts/docs/generate_doc_stubs.py +0 -718
  45. aws_sdk_lambda-0.12.0/src/aws_sdk_lambda/__init__.py +0 -3
  46. aws_sdk_lambda-0.12.0/src/aws_sdk_lambda/_private/schemas.py +0 -9364
  47. aws_sdk_lambda-0.12.0/src/aws_sdk_lambda/config.py +0 -554
  48. aws_sdk_lambda-0.12.0/src/aws_sdk_lambda/models.py +0 -41166
  49. aws_sdk_lambda-0.12.0/zensical.toml +0 -83
  50. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/.changes/0.10.0.json +0 -0
  51. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/.changes/0.11.0.json +0 -0
  52. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/.changes/0.12.0.json +0 -0
  53. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/.changes/0.8.0.json +0 -0
  54. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/.changes/0.9.0.json +0 -0
  55. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/LICENSE +0 -0
  56. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/NOTICE +0 -0
  57. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/src/aws_sdk_lambda/_private/__init__.py +0 -0
  58. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/src/aws_sdk_lambda/auth.py +0 -0
  59. {aws_sdk_lambda-0.12.0 → aws_sdk_lambda-0.13.1}/tests/__init__.py +0 -0
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "changes": [
3
+ {
4
+ "type": "enhancement",
5
+ "description": "Update README with Developer Preview release status."
6
+ }
7
+ ]
8
+ }
@@ -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
@@ -23,3 +27,6 @@ dist/
23
27
 
24
28
  # scratch workspace
25
29
  /workspace
30
+
31
+ # Codegen sync changelog text, read by `make clients`
32
+ /CODEGEN_SYNC_CHANGELOG.md
@@ -0,0 +1,82 @@
1
+ # Changelog
2
+
3
+ ## v0.13.1
4
+
5
+ ### Enhancements
6
+ * Update README with Developer Preview release status.
7
+
8
+ ## v0.13.0
9
+
10
+ ### API Changes
11
+ * 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.
12
+ * 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.
13
+ * 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.
14
+ * AWS Lambda durable functions now supports payloads up to 1 MB for checkpoints, callback completion, and error details.
15
+ * Doc updates to reposition Lambda Functions as Lambda Event Functions
16
+ * 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.
17
+
18
+ ### Breaking Changes
19
+ * 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.
20
+ * 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.
21
+
22
+ ### Features
23
+ * 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.
24
+ * 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`.
25
+ * 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.
26
+ * 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.
27
+
28
+ ### Enhancements
29
+ * Add support for Python 3.15.
30
+ * Load models, schemas, and operations lazily on first use.
31
+ * 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`.
32
+
33
+ ### Dependencies
34
+ * Bump `smithy-http` from `~=0.6.0` to `~=0.10.0`.
35
+ * Bump `smithy-core` from `~=0.9.0` to `~=0.13.0`.
36
+ * Bump `smithy-aws-core` from `~=0.12.0` to `~=0.16.0`.
37
+
38
+ ## v0.12.0
39
+
40
+ ### API Changes
41
+ * Updates documentation for lambda function timeout.
42
+ * 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.
43
+
44
+ ### Enhancements
45
+ * Re-generated with smithy-python 0.6.0
46
+
47
+ ### Dependencies
48
+ * Bump `smithy-core` from `~=0.8.0` to `~=0.9.0`.
49
+ * Bump `smithy-aws-core` from `~=0.11.0` to `~=0.12.0`.
50
+ * Bump `smithy-http` from `~=0.5.0` to `~=0.6.0`.
51
+
52
+ ## v0.11.0
53
+
54
+ ### API Changes
55
+ * Adds support for full JSON resource-based policies, enabling customers to create, retrieve, update, and delete function resource policies as complete JSON documents.
56
+
57
+ ### Enhancements
58
+ * Re-generated with smithy-python 0.5.0
59
+
60
+ ### Dependencies
61
+ * Bump `smithy-aws-core` from `~=0.10.0` to `~=0.11.0`.
62
+ * Bump `smithy-http` from `~=0.4.0` to `~=0.5.0`.
63
+
64
+ ## v0.10.0
65
+
66
+ ### Dependencies
67
+ * Bump `smithy-aws-core` from `~=0.9.0` to `~=0.10.0`.
68
+
69
+ ## v0.9.0
70
+
71
+ ### Dependencies
72
+ * Bump `smithy-core` from `~=0.7.0` to `~=0.8.0`.
73
+ * Bump `smithy-aws-core` from `~=0.8.0` to `~=0.9.0`.
74
+
75
+ ## v0.8.0
76
+
77
+ ### Features
78
+ * Initial client release with support for current AWS Lambda operations.
79
+
80
+ ### Dependencies
81
+ * Bump `smithy-aws-core` from `~=0.7.0` to `~=0.8.0`.
82
+ * Bump `smithy-core` from `~=0.6.0` to `~=0.7.0`.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: aws_sdk_lambda
3
- Version: 0.12.0
4
- Summary: aws_sdk_lambda client
3
+ Version: 0.13.1
4
+ Summary: Python client for AWS Lambda
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
7
7
  License-File: NOTICE
@@ -17,21 +17,24 @@ Classifier: Programming Language :: Python :: 3 :: Only
17
17
  Classifier: Programming Language :: Python :: 3.12
18
18
  Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Programming Language :: Python :: 3.15
20
21
  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
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
24
25
  Provides-Extra: awscrt
25
- Requires-Dist: smithy-http[awscrt]~=0.6.0; extra == 'awscrt'
26
+ Requires-Dist: smithy-http[awscrt]~=0.10.0; extra == 'awscrt'
26
27
  Description-Content-Type: text/markdown
27
28
 
29
+ <!-- Code generated by smithy-python-codegen DO NOT EDIT. -->
30
+
28
31
  # AWS Lambda Client
29
32
 
30
33
  The `aws-sdk-lambda` package provides a client for making
31
34
  requests to AWS Lambda.
32
35
 
33
- > **Note:** This SDK is experimental and in early development. Breaking changes
34
- > may occur prior to the release of version 1.0.0.
36
+ > **Note:** This SDK is in Developer Preview. Breaking changes may occur prior
37
+ > to the release of version 4.0.0.
35
38
 
36
39
  ## Installation
37
40
 
@@ -1,10 +1,12 @@
1
+ <!-- Code generated by smithy-python-codegen DO NOT EDIT. -->
2
+
1
3
  # AWS Lambda Client
2
4
 
3
5
  The `aws-sdk-lambda` package provides a client for making
4
6
  requests to AWS Lambda.
5
7
 
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
+ > **Note:** This SDK is in Developer Preview. Breaking changes may occur prior
9
+ > to the release of version 4.0.0.
8
10
 
9
11
  ## Installation
10
12
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  [project]
4
4
  name = "aws_sdk_lambda"
5
- version = "0.12.0"
6
- description = "aws_sdk_lambda client"
5
+ version = "0.13.1"
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.12.0",
27
- "smithy_core~=0.9.0",
28
- "smithy_http[aiohttp]~=0.6.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.6.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]
@@ -48,6 +46,7 @@ requires = ["hatchling"]
48
46
  build-backend = "hatchling.build"
49
47
 
50
48
  [tool.pyright]
49
+ extraPaths = ["src", "../../tests"]
51
50
  typeCheckingMode = "strict"
52
51
  reportPrivateUsage = false
53
52
  reportUnusedFunction = false
@@ -55,6 +54,9 @@ reportUnusedVariable = false
55
54
  reportUnnecessaryComparison = false
56
55
  reportUnusedClass = false
57
56
  enableExperimentalFeatures = true
57
+ # models.py is the dynamic runtime; models.pyi carries the typed
58
+ # surface for consumers, so don't type-check the implementation body.
59
+ exclude = ["**/models.py"]
58
60
 
59
61
  [tool.ruff]
60
62
  target-version = "py312"
@@ -66,5 +68,6 @@ ignore = ["F841"]
66
68
  skip-magic-trailing-comma = true
67
69
 
68
70
  [tool.pytest.ini_options]
71
+ pythonpath = ["../../tests"]
69
72
  python_classes = ["!Test"]
70
73
  asyncio_mode = "auto"
@@ -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.1"
@@ -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