boto3-refresh-session 0.0.23__py3-none-any.whl → 0.0.24__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- boto3_refresh_session/session.py +4 -3
- {boto3_refresh_session-0.0.23.dist-info → boto3_refresh_session-0.0.24.dist-info}/METADATA +1 -1
- boto3_refresh_session-0.0.24.dist-info/RECORD +6 -0
- boto3_refresh_session-0.0.23.dist-info/RECORD +0 -6
- {boto3_refresh_session-0.0.23.dist-info → boto3_refresh_session-0.0.24.dist-info}/LICENSE +0 -0
- {boto3_refresh_session-0.0.23.dist-info → boto3_refresh_session-0.0.24.dist-info}/WHEEL +0 -0
boto3_refresh_session/session.py
CHANGED
@@ -21,7 +21,7 @@ __all__ = ["AutoRefreshableSession"]
|
|
21
21
|
from typing import Type
|
22
22
|
|
23
23
|
from attrs import define, field
|
24
|
-
from attrs.validators import
|
24
|
+
from attrs.validators import ge, instance_of, optional
|
25
25
|
from boto3 import Session
|
26
26
|
from botocore.credentials import (
|
27
27
|
DeferredRefreshableCredentials,
|
@@ -51,7 +51,8 @@ class AutoRefreshableSession:
|
|
51
51
|
they are explicitly needed. If ``False`` then temporary credentials refresh
|
52
52
|
immediately upon expiration. Default is ``True``.
|
53
53
|
ttl : int, optional
|
54
|
-
Number of seconds until temporary credentials expire
|
54
|
+
Number of seconds until temporary credentials expire. Must be greater than or
|
55
|
+
equal to 900 seconds. Default is 900.
|
55
56
|
session_kwargs : dict, optional
|
56
57
|
Optional keyword arguments for :class:`boto3.session.Session`.
|
57
58
|
client_kwargs : dict, optional
|
@@ -89,7 +90,7 @@ class AutoRefreshableSession:
|
|
89
90
|
session_name: str = field(validator=instance_of(str))
|
90
91
|
defer_refresh: bool = field(default=True, validator=instance_of(bool))
|
91
92
|
ttl: int = field(
|
92
|
-
default=900, validator=optional([instance_of(int),
|
93
|
+
default=900, validator=optional([instance_of(int), ge(900)])
|
93
94
|
)
|
94
95
|
session_kwargs: dict = field(
|
95
96
|
default={}, validator=optional(instance_of(dict))
|
@@ -0,0 +1,6 @@
|
|
1
|
+
boto3_refresh_session/__init__.py,sha256=OMY8el4qROyEvo0vr1Kv8rtFU7g3xnjHuBss54XRTEA,135
|
2
|
+
boto3_refresh_session/session.py,sha256=nrUQRTGmXJGKvUJbr0nw56lx9Ww3BlDy8ceOoFBA6O0,5292
|
3
|
+
boto3_refresh_session-0.0.24.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
|
4
|
+
boto3_refresh_session-0.0.24.dist-info/METADATA,sha256=iXy14yzlkd2SHzuKHubtY2k0-8QktHchlySrRLu0T7A,3990
|
5
|
+
boto3_refresh_session-0.0.24.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
6
|
+
boto3_refresh_session-0.0.24.dist-info/RECORD,,
|
@@ -1,6 +0,0 @@
|
|
1
|
-
boto3_refresh_session/__init__.py,sha256=OMY8el4qROyEvo0vr1Kv8rtFU7g3xnjHuBss54XRTEA,135
|
2
|
-
boto3_refresh_session/session.py,sha256=W5LAPD_s7oRUDmneqI3rTcB-MRd96RSbIr93QwtVW_s,5235
|
3
|
-
boto3_refresh_session-0.0.23.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
|
4
|
-
boto3_refresh_session-0.0.23.dist-info/METADATA,sha256=NS6-RSO485PN4a-Ok1m5A3etch71w8ClfdGwLpk67ak,3990
|
5
|
-
boto3_refresh_session-0.0.23.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
6
|
-
boto3_refresh_session-0.0.23.dist-info/RECORD,,
|
File without changes
|
File without changes
|