clear-skies-aws 1.9.1__tar.gz → 1.9.3__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 (75) hide show
  1. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/PKG-INFO +1 -1
  2. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/pyproject.toml +4 -4
  3. clear_skies_aws-1.9.3/src/clearskies_aws/mocks/actions/__init__.py +6 -0
  4. clear_skies_aws-1.9.3/src/clearskies_aws/mocks/actions/sns.py +23 -0
  5. clear_skies_aws-1.9.3/src/clearskies_aws/mocks/actions/sqs.py +23 -0
  6. clear_skies_aws-1.9.3/src/clearskies_aws/mocks/actions/step_function.py +26 -0
  7. clear_skies_aws-1.9.1/src/clearskies_aws/mocks/actions/__init__.py +0 -1
  8. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/LICENSE +0 -0
  9. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/README.md +0 -0
  10. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/__init__.py +0 -0
  11. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/__init__.py +0 -0
  12. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/action_aws.py +0 -0
  13. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/assume_role.py +0 -0
  14. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/assume_role_test.py +0 -0
  15. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/ses.py +0 -0
  16. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/ses_test.py +0 -0
  17. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/sns.py +0 -0
  18. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/sns_test.py +0 -0
  19. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/sqs.py +0 -0
  20. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/sqs_test.py +0 -0
  21. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/step_function.py +0 -0
  22. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/actions/step_function_test.py +0 -0
  23. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/backends/__init__.py +0 -0
  24. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/backends/dynamo_db_backend.py +0 -0
  25. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/backends/dynamo_db_backend_test.py +0 -0
  26. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/backends/sqs_backend.py +0 -0
  27. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/backends/sqs_backend_test.py +0 -0
  28. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/__init__.py +0 -0
  29. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/__pycache__/aws_http_api_gateway.cpython-38.pyc +0 -0
  30. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/__pycache__/aws_lambda_api_gateway.cpython-38.pyc +0 -0
  31. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/__pycache__/aws_lambda_elb.cpython-38.pyc +0 -0
  32. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/cli.py +0 -0
  33. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/cli_websocket_mock.py +0 -0
  34. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/lambda_api_gateway.py +0 -0
  35. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/lambda_api_gateway_web_socket.py +0 -0
  36. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/lambda_elb.py +0 -0
  37. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/lambda_http_gateway.py +0 -0
  38. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/lambda_invocation.py +0 -0
  39. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/lambda_sns.py +0 -0
  40. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/lambda_sqs_standard_partial_batch.py +0 -0
  41. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/lambda_sqs_standard_partial_batch_test.py +0 -0
  42. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/contexts/wsgi.py +0 -0
  43. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/di/__init__.py +0 -0
  44. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/di/standard_dependencies.py +0 -0
  45. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/handlers/__init__.py +0 -0
  46. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/handlers/secrets_manager_rotation.py +0 -0
  47. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/handlers/simple_body_routing.py +0 -0
  48. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/__init__.py +0 -0
  49. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/__pycache__/aws_http_api_gateway.cpython-38.pyc +0 -0
  50. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/__pycache__/aws_lambda_api_gateway.cpython-38.pyc +0 -0
  51. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/__pycache__/aws_lambda_api_gateway_test.cpython-38.pyc +0 -0
  52. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/__pycache__/aws_lambda_elb.cpython-38.pyc +0 -0
  53. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/cli_websocket_mock.py +0 -0
  54. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/lambda_api_gateway.py +0 -0
  55. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/lambda_api_gateway_test.py +0 -0
  56. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/lambda_api_gateway_web_socket.py +0 -0
  57. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/lambda_elb.py +0 -0
  58. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/lambda_http_gateway.py +0 -0
  59. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/lambda_invocation.py +0 -0
  60. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/lambda_sns.py +0 -0
  61. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/input_outputs/lambda_sqs_standard.py +0 -0
  62. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/mocks/__init__.py +0 -0
  63. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/mocks/actions/ses.py +0 -0
  64. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/__init__.py +0 -0
  65. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/additional_configs/__init__.py +0 -0
  66. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/additional_configs/iam_db_auth.py +0 -0
  67. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/additional_configs/iam_db_auth_with_ssm.py +0 -0
  68. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/additional_configs/mysql_connection_dynamic_producer_via_ssh_cert_bastion.py +0 -0
  69. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/additional_configs/mysql_connection_dynamic_producer_via_ssm_bastion.py +0 -0
  70. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/akeyless_with_ssm_cache.py +0 -0
  71. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/parameter_store.py +0 -0
  72. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/parameter_store_test.py +0 -0
  73. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/secrets_manager.py +0 -0
  74. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/secrets/secrets_manager_test.py +0 -0
  75. {clear_skies_aws-1.9.1 → clear_skies_aws-1.9.3}/src/clearskies_aws/web_socket_connection_model.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: clear-skies-aws
3
- Version: 1.9.1
3
+ Version: 1.9.3
4
4
  Summary: clearskies bindings for working in AWS
5
5
  Home-page: https://github.com/cmancone/clearskies-aws
6
6
  License: MIT
@@ -2,7 +2,7 @@
2
2
 
3
3
  [tool.poetry]
4
4
  name = "clear-skies-aws"
5
- version = "1.9.1"
5
+ version = "1.9.3"
6
6
  description = "clearskies bindings for working in AWS"
7
7
  authors = [
8
8
  "Conor Mancone <cmancone@gmail.com>",
@@ -26,9 +26,9 @@ priority = "primary"
26
26
 
27
27
  [tool.poetry.group.dev.dependencies]
28
28
  pre-commit = "^3.2.2"
29
- akeyless = "^3.3.6"
30
- akeyless-cloud-id = "^0.2.0"
31
- jinja2 = "^3.1.2"
29
+ jinja2 = {version = "^3.1.2", optional = true}
30
+ akeyless = {version = "^4.0.0", optional = true}
31
+ akeyless-cloud-id = {version = "^0.2.3", optional = true}
32
32
 
33
33
  [tool.poetry.extras]
34
34
  akeyless = ["akeyless-cloud-id", "akeyless"]
@@ -0,0 +1,6 @@
1
+ from .ses import SES
2
+ from .sns import SNS
3
+ from .sqs import SQS
4
+ from .step_function import StepFunction
5
+
6
+ __all__ = ["SES", "SNS", "SQS", "StepFunction"]
@@ -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