clear-skies-aws 2.0.10__tar.gz → 2.0.11__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.
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/.github/workflows/run-tests.yml +1 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/.github/workflows/tests-matrix.yaml +11 -23
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/.pre-commit-config.yaml +0 -6
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/CHANGELOG.md +12 -0
- clear_skies_aws-2.0.11/LATEST_CHANGELOG.md +8 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/PKG-INFO +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/pyproject.toml +2 -2
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/lambda_alb.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/lambda_api_gateway.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/lambda_api_gateway_web_socket.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/lambda_invoke.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/lambda_sns.py +4 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/lambda_sqs_standard.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/lambda_alb.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/lambda_api_gateway.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/lambda_api_gateway_web_socket.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/lambda_input_output.py +8 -2
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/lambda_invoke.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/lambda_sns.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/lambda_sqs_standard.py +2 -1
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/uv.lock +296 -249
- clear_skies_aws-2.0.10/LATEST_CHANGELOG.md +0 -5
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/.copier-answers.yml +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/.editorconfig +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/.github/workflows/create-version.yaml +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/.github/workflows/docs.yaml +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/.github/workflows/tests.yaml +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/.gitignore +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/.python-version +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/LICENSE +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/README.md +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/cliff.toml +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/ruff.toml +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/actions/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/actions/action_aws.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/actions/assume_role.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/actions/ses.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/actions/sns.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/actions/sqs.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/actions/step_function.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/backends/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/backends/backend.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/backends/dynamo_db_backend.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/backends/dynamo_db_condition_parser.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/backends/dynamo_db_parti_ql_backend.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/backends/sqs_backend.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/configs/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/cli_web_socket_mock.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/cursors/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/cursors/iam/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/cursors/iam/rds_mysql.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/cursors/port_forwarding/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/cursors/port_forwarding/ssm.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/di/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/di/aws_additional_config_auto_import.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/di/inject/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/di/inject/boto3.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/di/inject/boto3_session.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/di/inject/parameter_store.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/endpoints/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/endpoints/secrets_manager_rotation.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/endpoints/simple_body_routing.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/cli_web_socket_mock.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/mocks/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/mocks/actions/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/mocks/actions/ses.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/mocks/actions/sns.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/mocks/actions/sqs.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/mocks/actions/step_function.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/models/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/models/web_socket_connection_model.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/secrets/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/secrets/additional_configs/__init__.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/secrets/additional_configs/iam_db_auth.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/secrets/additional_configs/iam_db_auth_with_ssm.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/secrets/additional_configs/mysql_connection_dynamic_producer_via_ssh_cert_bastion.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/secrets/additional_configs/mysql_connection_dynamic_producer_via_ssm_bastion.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/secrets/akeyless_with_ssm_cache.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/secrets/parameter_store.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/secrets/secrets.py +0 -0
- {clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/secrets/secrets_manager.py +0 -0
|
@@ -67,8 +67,8 @@ jobs:
|
|
|
67
67
|
python-version: ${{ matrix.python-version }}
|
|
68
68
|
run-mypy: ${{ needs.changes.outputs.tests == 'true' }}
|
|
69
69
|
run-pytest: ${{ needs.changes.outputs.tests == 'true' }}
|
|
70
|
-
run-black: ${{ needs.changes.outputs.tests == 'true' }}
|
|
71
70
|
run-ruff-check: ${{ needs.changes.outputs.tests == 'true' }}
|
|
71
|
+
run-ruff-format: ${{ needs.changes.outputs.tests == 'true' }}
|
|
72
72
|
secrets: inherit
|
|
73
73
|
strategy:
|
|
74
74
|
matrix:
|
|
@@ -14,10 +14,10 @@ on:
|
|
|
14
14
|
run-pytest:
|
|
15
15
|
required: true
|
|
16
16
|
type: boolean
|
|
17
|
-
run-
|
|
17
|
+
run-ruff-check:
|
|
18
18
|
required: true
|
|
19
19
|
type: boolean
|
|
20
|
-
run-ruff-
|
|
20
|
+
run-ruff-format:
|
|
21
21
|
required: true
|
|
22
22
|
type: boolean
|
|
23
23
|
|
|
@@ -69,27 +69,6 @@ jobs:
|
|
|
69
69
|
- run: git diff --exit-code --stat
|
|
70
70
|
continue-on-error: true
|
|
71
71
|
|
|
72
|
-
black:
|
|
73
|
-
name: black
|
|
74
|
-
runs-on: ${{ inputs.runner }}
|
|
75
|
-
if: inputs.run-black
|
|
76
|
-
steps:
|
|
77
|
-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
78
|
-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
79
|
-
with:
|
|
80
|
-
persist-credentials: false
|
|
81
|
-
|
|
82
|
-
- name: Install uv and set the python version
|
|
83
|
-
uses: astral-sh/setup-uv@v6
|
|
84
|
-
with:
|
|
85
|
-
python-version: ${{ inputs.python-version }}
|
|
86
|
-
enable-cache: true
|
|
87
|
-
- name: Install dependencies
|
|
88
|
-
run: uv sync --locked --all-extras --dev
|
|
89
|
-
- uses: psf/black@stable
|
|
90
|
-
with:
|
|
91
|
-
options: "--check --verbose"
|
|
92
|
-
src: "./src"
|
|
93
72
|
|
|
94
73
|
ruff-check:
|
|
95
74
|
name: ruff-check
|
|
@@ -99,3 +78,12 @@ jobs:
|
|
|
99
78
|
- uses: astral-sh/ruff-action@v3
|
|
100
79
|
with:
|
|
101
80
|
args: "check --diff"
|
|
81
|
+
|
|
82
|
+
ruff-format:
|
|
83
|
+
name: ruff-format
|
|
84
|
+
runs-on: ${{ inputs.runner }}
|
|
85
|
+
if: inputs.run-ruff-format
|
|
86
|
+
steps:
|
|
87
|
+
- uses: astral-sh/ruff-action@v3
|
|
88
|
+
with:
|
|
89
|
+
args: "format --diff"
|
|
@@ -5,8 +5,19 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.0.11] - 2026-01-21
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Set correct type for context
|
|
12
|
+
|
|
13
|
+
### Removed
|
|
14
|
+
- Remove black
|
|
15
|
+
|
|
8
16
|
## [2.0.10] - 2026-01-21
|
|
9
17
|
|
|
18
|
+
### Changed
|
|
19
|
+
- Bump version to v2.0.10 by @github-actions[bot]
|
|
20
|
+
|
|
10
21
|
### Fixed
|
|
11
22
|
- Jinja2 import
|
|
12
23
|
|
|
@@ -136,6 +147,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
136
147
|
* @cmancone made their first contribution
|
|
137
148
|
* @ made their first contribution
|
|
138
149
|
* @github-actions[bot] made their first contribution
|
|
150
|
+
[2.0.11]: https://github.com/clearskies-py/aws/compare/v2.0.10..v2.0.11
|
|
139
151
|
[2.0.10]: https://github.com/clearskies-py/aws/compare/v2.0.9..v2.0.10
|
|
140
152
|
[2.0.9]: https://github.com/clearskies-py/aws/compare/v2.0.8..v2.0.9
|
|
141
153
|
[2.0.8]: https://github.com/clearskies-py/aws/compare/v2.0.7..v2.0.8
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: clear-skies-aws
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.11
|
|
4
4
|
Summary: clearskies bindings for working in AWS
|
|
5
5
|
Project-URL: Repository, https://github.com/clearskies-py/clearskies-aws
|
|
6
6
|
Project-URL: Issues, https://github.com/clearskies-py/clearskies-aws/issues
|
|
@@ -15,6 +15,7 @@ Classifier: Intended Audience :: Developers
|
|
|
15
15
|
Classifier: License :: OSI Approved :: MIT License
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
17
|
Requires-Python: <4.0,>=3.11
|
|
18
|
+
Requires-Dist: awslambdaric>=3.1.1
|
|
18
19
|
Requires-Dist: boto3<2.0.0,>=1.26.148
|
|
19
20
|
Requires-Dist: clear-skies<3.0.0,>=2.0.20
|
|
20
21
|
Requires-Dist: jinja2>=3.1.6
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
name = "clear-skies-aws"
|
|
4
4
|
description = "clearskies bindings for working in AWS"
|
|
5
5
|
license = "MIT"
|
|
6
|
-
version = "2.0.
|
|
6
|
+
version = "2.0.11"
|
|
7
7
|
readme = "./README.md"
|
|
8
8
|
authors = [{name = "tnijboer"}, {name = "Conor Mancone", email = "cmancone@gmail.com"}]
|
|
9
9
|
requires-python = '>=3.11,<4.0'
|
|
10
10
|
dependencies = [
|
|
11
|
+
"awslambdaric>=3.1.1",
|
|
11
12
|
'boto3 (>=1.26.148,<2.0.0)',
|
|
12
13
|
"clear-skies>=2.0.20,<3.0.0",
|
|
13
14
|
"jinja2>=3.1.6",
|
|
@@ -77,7 +78,6 @@ markers = [
|
|
|
77
78
|
# This is the dedicated section for uv"s configuration
|
|
78
79
|
[dependency-groups]
|
|
79
80
|
dev = [
|
|
80
|
-
"black>=25.1.0",
|
|
81
81
|
"mypy>=1.18.1",
|
|
82
82
|
"pre-commit>=4.3.0",
|
|
83
83
|
"pytest>=8.4.1",
|
|
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
5
6
|
from clearskies.contexts.context import Context
|
|
6
7
|
|
|
7
8
|
from clearskies_aws.input_outputs import LambdaAlb as LambdaAlbInputOutput
|
|
@@ -77,5 +78,5 @@ class LambdaAlb(Context):
|
|
|
77
78
|
```
|
|
78
79
|
"""
|
|
79
80
|
|
|
80
|
-
def __call__(self, event: dict[str, Any], context: dict[str, Any]) -> Any: # type: ignore[override]
|
|
81
|
+
def __call__(self, event: dict[str, Any], context: LambdaContext | dict[str, Any]) -> Any: # type: ignore[override]
|
|
81
82
|
return self.execute_application(LambdaAlbInputOutput(event, context))
|
{clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/lambda_api_gateway.py
RENAMED
|
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
5
6
|
from clearskies.contexts.context import Context
|
|
6
7
|
|
|
7
8
|
from clearskies_aws.input_outputs import LambdaApiGateway as LambdaApiGatewayInputOutput
|
|
@@ -77,5 +78,5 @@ class LambdaApiGateway(Context):
|
|
|
77
78
|
```
|
|
78
79
|
"""
|
|
79
80
|
|
|
80
|
-
def __call__(self, event: dict[str, Any], context: dict[str, Any]) -> dict[str, Any]: # type: ignore[override]
|
|
81
|
+
def __call__(self, event: dict[str, Any], context: LambdaContext | dict[str, Any]) -> dict[str, Any]: # type: ignore[override]
|
|
81
82
|
return self.execute_application(LambdaApiGatewayInputOutput(event, context))
|
|
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
5
6
|
from clearskies.contexts.context import Context
|
|
6
7
|
|
|
7
8
|
from clearskies_aws.input_outputs import (
|
|
@@ -74,6 +75,6 @@ class LambdaApiGatewayWebSocket(Context):
|
|
|
74
75
|
"""
|
|
75
76
|
|
|
76
77
|
def __call__( # type: ignore[override]
|
|
77
|
-
self, event: dict[str, Any], context: dict[str, Any], url: str = "", request_method: str = ""
|
|
78
|
+
self, event: dict[str, Any], context: LambdaContext | dict[str, Any], url: str = "", request_method: str = ""
|
|
78
79
|
) -> dict[str, Any]:
|
|
79
80
|
return self.execute_application(LambdaApiGatewayWebSocketInputOutput(event, context, url))
|
{clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/lambda_invoke.py
RENAMED
|
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
5
6
|
from clearskies.authentication import Public
|
|
6
7
|
from clearskies.contexts.context import Context
|
|
7
8
|
|
|
@@ -126,7 +127,7 @@ class LambdaInvoke(Context):
|
|
|
126
127
|
"""
|
|
127
128
|
|
|
128
129
|
def __call__( # type: ignore[override]
|
|
129
|
-
self, event: dict[str, Any], context: dict[str, Any], request_method: str = "", url: str = ""
|
|
130
|
+
self, event: dict[str, Any], context: LambdaContext | dict[str, Any], request_method: str = "", url: str = ""
|
|
130
131
|
) -> dict[str, Any]:
|
|
131
132
|
return self.execute_application(
|
|
132
133
|
LambdaInvokeInputOutput(
|
|
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
5
6
|
from clearskies.authentication import Public
|
|
6
7
|
from clearskies.contexts.context import Context
|
|
7
8
|
|
|
@@ -114,7 +115,9 @@ class LambdaSns(Context):
|
|
|
114
115
|
```
|
|
115
116
|
"""
|
|
116
117
|
|
|
117
|
-
def __call__(
|
|
118
|
+
def __call__(
|
|
119
|
+
self, event: dict[str, Any], context: LambdaContext | dict[str, Any], request_method: str = "", url: str = ""
|
|
120
|
+
): # type: ignore[override]
|
|
118
121
|
try:
|
|
119
122
|
return self.execute_application(
|
|
120
123
|
LambdaSnsInputOutput(event, context, request_method=request_method, url=url)
|
{clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/contexts/lambda_sqs_standard.py
RENAMED
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import traceback
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
6
7
|
from clearskies.authentication import Public
|
|
7
8
|
from clearskies.contexts.context import Context
|
|
8
9
|
|
|
@@ -121,7 +122,7 @@ class LambdaSqsStandard(Context):
|
|
|
121
122
|
"""
|
|
122
123
|
|
|
123
124
|
def __call__( # type: ignore[override]
|
|
124
|
-
self, event: dict[str, Any], context: dict[str, Any], url: str = "", request_method: str = ""
|
|
125
|
+
self, event: dict[str, Any], context: LambdaContext | dict[str, Any], url: str = "", request_method: str = ""
|
|
125
126
|
) -> dict[str, Any]:
|
|
126
127
|
item_failures = []
|
|
127
128
|
for record in event["Records"]:
|
{clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/lambda_alb.py
RENAMED
|
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
5
6
|
from clearskies.configs import String
|
|
6
7
|
from clearskies.input_outputs import Headers
|
|
7
8
|
|
|
@@ -11,7 +12,7 @@ from clearskies_aws.input_outputs import lambda_input_output
|
|
|
11
12
|
class LambdaAlb(lambda_input_output.LambdaInputOutput):
|
|
12
13
|
"""Application Load Balancer specific Lambda input/output handler."""
|
|
13
14
|
|
|
14
|
-
def __init__(self, event: dict[str, Any], context: dict[str, Any]):
|
|
15
|
+
def __init__(self, event: dict[str, Any], context: LambdaContext | dict[str, Any]):
|
|
15
16
|
# Call parent constructor
|
|
16
17
|
super().__init__(event, context)
|
|
17
18
|
|
|
@@ -2,6 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
5
6
|
from clearskies.configs import String
|
|
6
7
|
from clearskies.input_outputs import Headers
|
|
7
8
|
|
|
@@ -13,7 +14,7 @@ class LambdaApiGateway(lambda_input_output.LambdaInputOutput):
|
|
|
13
14
|
|
|
14
15
|
resource = String(default="")
|
|
15
16
|
|
|
16
|
-
def __init__(self, event: dict, context: dict[str, Any]):
|
|
17
|
+
def __init__(self, event: dict, context: LambdaContext | dict[str, Any]):
|
|
17
18
|
# Call parent constructor
|
|
18
19
|
super().__init__(event, context)
|
|
19
20
|
|
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import json
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
6
7
|
from clearskies.configs import String
|
|
7
8
|
from clearskies.input_outputs import Headers
|
|
8
9
|
|
|
@@ -15,7 +16,7 @@ class LambdaApiGatewayWebSocket(lambda_input_output.LambdaInputOutput):
|
|
|
15
16
|
route_key = String(default="")
|
|
16
17
|
connection_id = String(default="")
|
|
17
18
|
|
|
18
|
-
def __init__(self, event: dict[str, Any], context: dict[str, Any], url: str = ""):
|
|
19
|
+
def __init__(self, event: dict[str, Any], context: LambdaContext | dict[str, Any], url: str = ""):
|
|
19
20
|
# Call parent constructor
|
|
20
21
|
super().__init__(event, context)
|
|
21
22
|
|
|
@@ -6,6 +6,8 @@ from abc import abstractmethod
|
|
|
6
6
|
from typing import Any, cast
|
|
7
7
|
from urllib.parse import urlencode
|
|
8
8
|
|
|
9
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
10
|
+
from clearskies.configs import Any as AnyConfig
|
|
9
11
|
from clearskies.configs import AnyDict, String
|
|
10
12
|
from clearskies.input_outputs import InputOutput
|
|
11
13
|
|
|
@@ -14,14 +16,18 @@ class LambdaInputOutput(InputOutput):
|
|
|
14
16
|
"""Base class for Lambda input/output handlers that provides common Lambda functionality."""
|
|
15
17
|
|
|
16
18
|
event = AnyDict(default={})
|
|
17
|
-
context =
|
|
19
|
+
context = AnyConfig(default={})
|
|
18
20
|
path = String(default="/")
|
|
19
21
|
|
|
20
22
|
_cached_body = None
|
|
21
23
|
_body_was_cached = False
|
|
22
24
|
|
|
23
25
|
def __init__(
|
|
24
|
-
self,
|
|
26
|
+
self,
|
|
27
|
+
event: dict[str, Any],
|
|
28
|
+
context: LambdaContext | dict[str, Any],
|
|
29
|
+
url: str | None = "",
|
|
30
|
+
request_method: str | None = "",
|
|
25
31
|
):
|
|
26
32
|
# Store event and context
|
|
27
33
|
self.event = event
|
{clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/lambda_invoke.py
RENAMED
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import json
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
6
7
|
from clearskies.exceptions import ClientError
|
|
7
8
|
from clearskies.input_outputs import Headers
|
|
8
9
|
|
|
@@ -15,7 +16,7 @@ class LambdaInvoke(lambda_input_output.LambdaInputOutput):
|
|
|
15
16
|
def __init__(
|
|
16
17
|
self,
|
|
17
18
|
event: dict[str, Any],
|
|
18
|
-
context: dict[str, Any],
|
|
19
|
+
context: LambdaContext | dict[str, Any],
|
|
19
20
|
request_method: str = "",
|
|
20
21
|
url: str = "",
|
|
21
22
|
):
|
{clear_skies_aws-2.0.10 → clear_skies_aws-2.0.11}/src/clearskies_aws/input_outputs/lambda_sns.py
RENAMED
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import json
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
6
7
|
from clearskies.exceptions import ClientError
|
|
7
8
|
from clearskies.input_outputs import Headers
|
|
8
9
|
|
|
@@ -14,7 +15,7 @@ class LambdaSns(lambda_input_output.LambdaInputOutput):
|
|
|
14
15
|
|
|
15
16
|
record: dict[str, Any]
|
|
16
17
|
|
|
17
|
-
def __init__(self, event: dict, context: dict[str, Any], url: str = "", request_method: str = ""):
|
|
18
|
+
def __init__(self, event: dict, context: LambdaContext | dict[str, Any], url: str = "", request_method: str = ""):
|
|
18
19
|
# Call parent constructor
|
|
19
20
|
super().__init__(event, context)
|
|
20
21
|
|
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import json
|
|
4
4
|
from typing import Any
|
|
5
5
|
|
|
6
|
+
from awslambdaric.lambda_context import LambdaContext
|
|
6
7
|
from clearskies.configs import AnyDict, String
|
|
7
8
|
from clearskies.exceptions import ClientError
|
|
8
9
|
from clearskies.input_outputs import Headers
|
|
@@ -20,7 +21,7 @@ class LambdaSqsStandard(lambda_input_output.LambdaInputOutput):
|
|
|
20
21
|
self,
|
|
21
22
|
record: dict[str, Any],
|
|
22
23
|
event: dict[str, Any],
|
|
23
|
-
context: dict[str, Any],
|
|
24
|
+
context: LambdaContext | dict[str, Any],
|
|
24
25
|
url: str = "",
|
|
25
26
|
request_method: str = "",
|
|
26
27
|
):
|