clear-skies-aws 1.9.15__tar.gz → 1.9.16__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.15 → clear_skies_aws-1.9.16}/PKG-INFO +1 -1
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/pyproject.toml +1 -1
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_sns.py +2 -2
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_sqs_standard_partial_batch.py +2 -2
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/lambda_sns.py +3 -1
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/lambda_sqs_standard.py +3 -1
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/LICENSE +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/README.md +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/action_aws.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/assume_role.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/assume_role_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/ses.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/ses_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/sns.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/sns_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/sqs.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/sqs_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/step_function.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/step_function_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/backends/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/backends/dynamo_db_backend.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/backends/dynamo_db_backend_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/backends/sqs_backend.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/backends/sqs_backend_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/__pycache__/aws_http_api_gateway.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/__pycache__/aws_lambda_api_gateway.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/__pycache__/aws_lambda_elb.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/cli.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/cli_websocket_mock.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_api_gateway.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_api_gateway_web_socket.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_elb.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_http_gateway.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_invocation.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_sqs_standard_partial_batch_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/wsgi.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/di/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/di/standard_dependencies.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/handlers/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/handlers/secrets_manager_rotation.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/handlers/simple_body_routing.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/__pycache__/aws_http_api_gateway.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/__pycache__/aws_lambda_api_gateway.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/__pycache__/aws_lambda_api_gateway_test.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/__pycache__/aws_lambda_elb.cpython-38.pyc +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/cli_websocket_mock.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/lambda_api_gateway.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/lambda_api_gateway_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/lambda_api_gateway_web_socket.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/lambda_elb.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/lambda_http_gateway.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/lambda_invocation.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/mocks/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/mocks/actions/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/mocks/actions/ses.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/mocks/actions/sns.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/mocks/actions/sqs.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/mocks/actions/step_function.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/additional_configs/__init__.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/additional_configs/iam_db_auth.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/additional_configs/iam_db_auth_with_ssm.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/additional_configs/mysql_connection_dynamic_producer_via_ssh_cert_bastion.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/additional_configs/mysql_connection_dynamic_producer_via_ssm_bastion.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/akeyless_with_ssm_cache.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/parameter_store.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/parameter_store_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/secrets_manager.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/secrets_manager_test.py +0 -0
- {clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/web_socket_connection_model.py +0 -0
|
@@ -14,12 +14,12 @@ class LambdaSns(Context):
|
|
|
14
14
|
**config,
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
def __call__(self, event, context):
|
|
17
|
+
def __call__(self, event, context, method=None, url=None):
|
|
18
18
|
if self.handler is None:
|
|
19
19
|
raise ValueError("Cannot execute LambdaSnsEvent context without first configuring it")
|
|
20
20
|
|
|
21
21
|
try:
|
|
22
|
-
return self.handler(LambdaSnsInputOutput(event, context))
|
|
22
|
+
return self.handler(LambdaSnsInputOutput(event, context, method=method, url=url))
|
|
23
23
|
except Exception as e:
|
|
24
24
|
print('Failed message ' + event['Records'][0]['Sns']['MessageId'] + '. Error error: ' + str(e))
|
|
25
25
|
raise e
|
|
@@ -14,14 +14,14 @@ class LambdaSqsStandardPartialBatch(Context):
|
|
|
14
14
|
**config,
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
def __call__(self, event, context):
|
|
17
|
+
def __call__(self, event, context, url=None, method=None):
|
|
18
18
|
if self.handler is None:
|
|
19
19
|
raise ValueError("Cannot execute LambdaELB context without first configuring it")
|
|
20
20
|
|
|
21
21
|
item_failures = []
|
|
22
22
|
for record in event['Records']:
|
|
23
23
|
try:
|
|
24
|
-
self.handler(LambdaSqsStandardInputOutput(record['body'], event, context))
|
|
24
|
+
self.handler(LambdaSqsStandardInputOutput(record['body'], event, context, url=url, method=method))
|
|
25
25
|
except Exception as e:
|
|
26
26
|
print('Failed message ' + record['messageId'] + ' being returned for retry. Error error: ' + str(e))
|
|
27
27
|
traceback.print_tb(e.__traceback__)
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/lambda_sns.py
RENAMED
|
@@ -2,9 +2,11 @@ from .lambda_api_gateway import LambdaAPIGateway
|
|
|
2
2
|
from clearskies.handlers.exceptions import ClientError
|
|
3
3
|
import json
|
|
4
4
|
class LambdaSns(LambdaAPIGateway):
|
|
5
|
-
def __init__(self, event, context):
|
|
5
|
+
def __init__(self, event, context, url=None, method=None):
|
|
6
6
|
self._event = event
|
|
7
7
|
self._context = context
|
|
8
|
+
self._path = url if url else ''
|
|
9
|
+
self._request_method = method.upper() if method else 'GET'
|
|
8
10
|
record = event['Records'][0]['Sns']['Message']
|
|
9
11
|
try:
|
|
10
12
|
self._record = json.loads(record)
|
|
@@ -2,10 +2,12 @@ from .lambda_api_gateway import LambdaAPIGateway
|
|
|
2
2
|
from clearskies.handlers.exceptions import ClientError
|
|
3
3
|
import json
|
|
4
4
|
class LambdaSqsStandard(LambdaAPIGateway):
|
|
5
|
-
def __init__(self, record, event, context):
|
|
5
|
+
def __init__(self, record, event, context, url=None, method=None):
|
|
6
6
|
self._record = record
|
|
7
7
|
self._context = context
|
|
8
8
|
self._event = event
|
|
9
|
+
self._path = url if url else ''
|
|
10
|
+
self._request_method = method.upper() if method else 'GET'
|
|
9
11
|
|
|
10
12
|
def respond(self, body, status_code=200):
|
|
11
13
|
pass
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/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
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/step_function.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/actions/step_function_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/backends/dynamo_db_backend.py
RENAMED
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/backends/sqs_backend.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/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.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/cli_websocket_mock.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_api_gateway.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_http_gateway.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/contexts/lambda_invocation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/di/standard_dependencies.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/handlers/simple_body_routing.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/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.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/input_outputs/lambda_elb.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/mocks/actions/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/mocks/actions/step_function.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.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/parameter_store.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/parameter_store_test.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/secrets_manager.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/secrets/secrets_manager_test.py
RENAMED
|
File without changes
|
{clear_skies_aws-1.9.15 → clear_skies_aws-1.9.16}/src/clearskies_aws/web_socket_connection_model.py
RENAMED
|
File without changes
|