Skip to content

Commit 5aaae62

Browse files
committed
updated to latest version of OSBot_Utils
1 parent 3f98e01 commit 5aaae62

File tree

6 files changed

+33
-28
lines changed

6 files changed

+33
-28
lines changed

osbot_aws/aws/lambda_/dependencies/Lambda__Dependency__Inside_Lambda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
22
from osbot_utils.utils.Zip import zip_bytes__extract_to_folder
3-
from osbot_utils.type_safe.primitives.safe_str.identifiers.Safe_Id import Safe_Id
3+
from osbot_utils.type_safe.primitives.domains.identifiers.Safe_Id import Safe_Id
44
from osbot_utils.utils.Files import path_combine, folder_exists, files_list__virtual_paths
55
from osbot_aws.aws.lambda_.dependencies.Lambda__Dependency__Base import Lambda__Dependency__Base
66
from osbot_aws.aws.lambda_.dependencies.Lambda__Dependency__S3 import Lambda__Dependency__S3

osbot_aws/aws/lambda_/dependencies/Lambda__Dependency__Local.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from osbot_aws.aws.lambda_.dependencies.Lambda__Dependency__Base import Lambda__Dependency__Base
2-
from osbot_utils.type_safe.primitives.safe_str.identifiers.Safe_Id import Safe_Id
2+
from osbot_utils.type_safe.primitives.domains.identifiers.Safe_Id import Safe_Id
33
from osbot_utils.utils.Zip import zip_folder_to_bytes
44
from osbot_aws.aws.lambda_.schemas.Safe_Str__File__Path__Python_Package import Safe_Str__File__Path__Python_Package
55
from osbot_aws.aws.lambda_.schemas.Schema__Lambda__Dependency__Local_Install__Data import Schema__Lambda__Dependency__Local_Install__Data

osbot_aws/aws/s3/S3__Key_Generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from datetime import datetime
22
from osbot_utils.type_safe.type_safe_core.decorators.type_safe import type_safe
33
from osbot_utils.type_safe.Type_Safe import Type_Safe
4-
from osbot_utils.type_safe.primitives.safe_str.identifiers.Safe_Id import Safe_Id
4+
from osbot_utils.type_safe.primitives.domains.identifiers.Safe_Id import Safe_Id
55
from osbot_utils.utils.Misc import utc_now, date_today
66

77
S3_PATH__WHEN_BLOCK_SIZE = 5

osbot_aws/aws/s3/S3__with_temp_role.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@
55

66

77
class S3__with_temp_role(S3):
8-
temp_service_name : str = "s3"
9-
temp_role__services : str = ["s3"]
10-
temp_role__action : str = "*"
11-
temp_role__resource : str = "*"
12-
temp_role__name : str = 'osbot__temp_role_for__test_S3'
8+
temp_service_name : str = "s3"
9+
temp_role__services : list = None
10+
temp_role__action : str = "*"
11+
temp_role__resource : str = "*"
12+
temp_role__name : str = 'osbot__temp_role_for__test_S3'
1313
temp_role__recreate : bool = False
1414

15+
def __init__(self, **kwargs):
16+
self.temp_role__services = ["s3"]
17+
super().__init__(**kwargs)
18+
19+
1520
def iam_assume_role(self):
1621
load_dotenv()
1722
action = self.temp_role__action

poetry.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/unit/aws/s3/test_S3__Key_Generator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from unittest import TestCase
2-
from datetime import datetime
3-
from osbot_utils.type_safe.primitives.safe_str.identifiers.Safe_Id import Safe_Id
4-
from osbot_utils.utils.Misc import utc_now, date_today
5-
from osbot_aws.aws.s3.S3__Key_Generator import S3__Key_Generator
1+
from unittest import TestCase
2+
from datetime import datetime
3+
from osbot_utils.type_safe.primitives.domains.identifiers.Safe_Id import Safe_Id
4+
from osbot_utils.utils.Misc import utc_now, date_today
5+
from osbot_aws.aws.s3.S3__Key_Generator import S3__Key_Generator
66

77

88
class test_S3__Key_Generator(TestCase):

0 commit comments

Comments
 (0)