clear-skies-aws 1.9.2__tar.gz → 1.9.4__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-1.9.2 → clear_skies_aws-1.9.4}/PKG-INFO +2 -4
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/pyproject.toml +2 -2
- clear_skies_aws-1.9.4/src/clearskies_aws/mocks/actions/__init__.py +6 -0
- clear_skies_aws-1.9.4/src/clearskies_aws/mocks/actions/sns.py +23 -0
- clear_skies_aws-1.9.4/src/clearskies_aws/mocks/actions/sqs.py +23 -0
- clear_skies_aws-1.9.4/src/clearskies_aws/mocks/actions/step_function.py +26 -0
- clear_skies_aws-1.9.2/src/clearskies_aws/mocks/actions/__init__.py +0 -1
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/LICENSE +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/README.md +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/__init__.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/__init__.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/action_aws.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/assume_role.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/assume_role_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/ses.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/ses_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/sns.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/sns_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/sqs.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/sqs_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/step_function.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/step_function_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/backends/__init__.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/backends/dynamo_db_backend.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/backends/dynamo_db_backend_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/backends/sqs_backend.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/backends/sqs_backend_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/__init__.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/__pycache__/aws_http_api_gateway.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/__pycache__/aws_lambda_api_gateway.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/__pycache__/aws_lambda_elb.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/cli.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/cli_websocket_mock.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_api_gateway.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_api_gateway_web_socket.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_elb.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_http_gateway.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_invocation.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_sns.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_sqs_standard_partial_batch.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_sqs_standard_partial_batch_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/wsgi.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/di/__init__.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/di/standard_dependencies.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/handlers/__init__.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/handlers/secrets_manager_rotation.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/handlers/simple_body_routing.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/__init__.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/__pycache__/aws_http_api_gateway.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/__pycache__/aws_lambda_api_gateway.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/__pycache__/aws_lambda_api_gateway_test.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/__pycache__/aws_lambda_elb.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/cli_websocket_mock.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/lambda_api_gateway.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/lambda_api_gateway_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/lambda_api_gateway_web_socket.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/lambda_elb.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/lambda_http_gateway.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/lambda_invocation.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/lambda_sns.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/lambda_sqs_standard.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/mocks/__init__.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/mocks/actions/ses.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/__init__.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/additional_configs/__init__.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/additional_configs/iam_db_auth.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/additional_configs/iam_db_auth_with_ssm.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/additional_configs/mysql_connection_dynamic_producer_via_ssh_cert_bastion.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/additional_configs/mysql_connection_dynamic_producer_via_ssm_bastion.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/akeyless_with_ssm_cache.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/parameter_store.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/parameter_store_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/secrets_manager.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/secrets_manager_test.py +0 -0
- {clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/web_socket_connection_model.py +0 -0
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: clear-skies-aws
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.4
|
|
4
4
|
Summary: clearskies bindings for working in AWS
|
|
5
5
|
Home-page: https://github.com/cmancone/clearskies-aws
|
|
6
6
|
License: MIT
|
|
7
7
|
Author: Conor Mancone
|
|
8
8
|
Author-email: cmancone@gmail.com
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.10,<4.0
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
14
|
Provides-Extra: akeyless
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[tool.poetry]
|
|
4
4
|
name = "clear-skies-aws"
|
|
5
|
-
version = "1.9.
|
|
5
|
+
version = "1.9.4"
|
|
6
6
|
description = "clearskies bindings for working in AWS"
|
|
7
7
|
authors = [
|
|
8
8
|
"Conor Mancone <cmancone@gmail.com>",
|
|
@@ -16,7 +16,7 @@ packages = [
|
|
|
16
16
|
]
|
|
17
17
|
|
|
18
18
|
[tool.poetry.dependencies]
|
|
19
|
-
python = "^3.
|
|
19
|
+
python = "^3.10"
|
|
20
20
|
clear-skies = "^1.14.4"
|
|
21
21
|
boto3 = "^1.26.148"
|
|
22
22
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from types import ModuleType
|
|
2
|
+
from clearskies import Model
|
|
3
|
+
from ...actions.sns import SNS as BaseSNS
|
|
4
|
+
class SNS(BaseSNS):
|
|
5
|
+
calls = None
|
|
6
|
+
|
|
7
|
+
def __init__(self, environment, boto3, di):
|
|
8
|
+
super().__init__(environment, boto3, di)
|
|
9
|
+
|
|
10
|
+
@classmethod
|
|
11
|
+
def mock(cls, di):
|
|
12
|
+
cls.calls = []
|
|
13
|
+
di.mock_class(BaseSNS, SNS)
|
|
14
|
+
|
|
15
|
+
def _execute_action(self, client: ModuleType, model: Model) -> None:
|
|
16
|
+
"""Send a notification as configured."""
|
|
17
|
+
if SNS.calls == None:
|
|
18
|
+
SNS.calls = []
|
|
19
|
+
|
|
20
|
+
SNS.calls.append({
|
|
21
|
+
"TopicArn": self.get_topic_arn(model),
|
|
22
|
+
"Message": self.get_message_body(model),
|
|
23
|
+
})
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from types import ModuleType
|
|
2
|
+
from clearskies import Model
|
|
3
|
+
from ...actions.sqs import SQS as BaseSQS
|
|
4
|
+
class SQS(BaseSQS):
|
|
5
|
+
calls = None
|
|
6
|
+
|
|
7
|
+
def __init__(self, environment, boto3, di):
|
|
8
|
+
super().__init__(environment, boto3, di)
|
|
9
|
+
|
|
10
|
+
@classmethod
|
|
11
|
+
def mock(cls, di):
|
|
12
|
+
cls.calls = []
|
|
13
|
+
di.mock_class(BaseSQS, SQS)
|
|
14
|
+
|
|
15
|
+
def _execute_action(self, client: ModuleType, model: Model) -> None:
|
|
16
|
+
"""Send a notification as configured."""
|
|
17
|
+
if SQS.calls == None:
|
|
18
|
+
SQS.calls = []
|
|
19
|
+
|
|
20
|
+
SQS.calls.append({
|
|
21
|
+
"QueueUrl": self.get_queue_url(model),
|
|
22
|
+
"MessageBody": self.get_message_body(model),
|
|
23
|
+
})
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from types import ModuleType
|
|
2
|
+
from clearskies import Model
|
|
3
|
+
from ...actions.step_function import StepFunction as BaseStepFunction
|
|
4
|
+
class StepFunction(BaseStepFunction):
|
|
5
|
+
calls = None
|
|
6
|
+
|
|
7
|
+
def __init__(self, environment, boto3, di):
|
|
8
|
+
super().__init__(environment, boto3, di)
|
|
9
|
+
|
|
10
|
+
@classmethod
|
|
11
|
+
def mock(cls, di):
|
|
12
|
+
StepFunction.calls = []
|
|
13
|
+
di.mock_class(BaseStepFunction, StepFunction)
|
|
14
|
+
|
|
15
|
+
def _execute_action(self, client: ModuleType, model: Model) -> None:
|
|
16
|
+
"""Send a notification as configured."""
|
|
17
|
+
if StepFunction.calls == None:
|
|
18
|
+
StepFunction.calls = []
|
|
19
|
+
|
|
20
|
+
StepFunction.calls.append({
|
|
21
|
+
"stateMachineArn": self.get_arn(model),
|
|
22
|
+
"input": self.get_message_body(model),
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
if self.column_to_store_execution_arn:
|
|
26
|
+
model.save({self.column_to_store_execution_arn: "mock_execution_arn"})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
from .ses import SES
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/assume_role_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/actions/step_function_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/backends/dynamo_db_backend.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/backends/sqs_backend_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/cli_websocket_mock.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_api_gateway.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_http_gateway.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/contexts/lambda_invocation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/di/standard_dependencies.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/handlers/simple_body_routing.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/lambda_elb.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/input_outputs/lambda_sns.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/parameter_store.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/parameter_store_test.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/secrets_manager.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/secrets/secrets_manager_test.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.2 → clear_skies_aws-1.9.4}/src/clearskies_aws/web_socket_connection_model.py
RENAMED
|
File without changes
|