File tree Expand file tree Collapse file tree 3 files changed +11
-19
lines changed Expand file tree Collapse file tree 3 files changed +11
-19
lines changed Original file line number Diff line number Diff line change 66
77.. warning::
88 ``AutoRefreshableSession`` was not tested for manually passing hard-coded
9- account credentials to the :class:`boto3.session.Session` or ``boto3.client``
10- objects! There are optional ``session_kwargs`` and ``client_kwargs``
11- parameters available for passing hard-coded account credentials, which
12- should work; however, that cannot be guaranteed! In any case, the ``boto3``
13- documentation generally recommends against passing hard-coded account credentials
14- as parameters; it is for that reason the documentation below, and everywhere
15- else, only mentions ``~/.aws/config`` and ``~/.aws/credentials`` for
16- authorization. Since the ``session_kwargs`` and ``client_kwargs`` parameters
17- were not tested, you will need to use those parameters at your own discretion.
9+ account credentials to the ``boto3.client`` object! There is an optional
10+ ``client_kwargs`` parameter available for doing so, which *should* work;
11+ however, that cannot be guaranteed as that functionality was not tested.
12+ Pass hard-coded credentials with the ``client_kwargs`` parameter at your
13+ own discretion.
1814"""
1915__all__ = ["AutoRefreshableSession" ]
2016
Original file line number Diff line number Diff line change @@ -5,15 +5,11 @@ Authorization
55
66.. warning ::
77 ``AutoRefreshableSession `` was not tested for manually passing hard-coded
8- account credentials to the :class: `boto3.session.Session ` or ``boto3.client ``
9- objects! There are optional ``session_kwargs `` and ``client_kwargs ``
10- parameters available for passing hard-coded account credentials, which
11- *should * work; however, that cannot be guaranteed! In any case, the ``boto3 ``
12- documentation generally recommends against passing hard-coded account credentials
13- as parameters; it is for that reason the documentation below, and everywhere
14- else, only mentions ``~/.aws/config `` and ``~/.aws/credentials `` for
15- authorization. Since the ``session_kwargs `` and ``client_kwargs `` parameters
16- were not tested, you will need to use those parameters at your own discretion.
8+ account credentials to the ``boto3.client `` object! There is an optional
9+ ``client_kwargs `` parameter available for doing so, which *should * work;
10+ however, that cannot be guaranteed as that functionality was not tested.
11+ Pass hard-coded credentials with the ``client_kwargs `` parameter at your
12+ own discretion.
1713
1814In order to use this package, it is **recommended ** that you follow one of the
1915below methods for authorizing access to your AWS instance:
Original file line number Diff line number Diff line change 11[project ]
22name = " boto3-refresh-session"
3- version = " 0.0.26 "
3+ version = " 0.0.27 "
44description = " A simple Python package for refreshing boto3 sessions automatically."
55authors = [
66 {
name =
" Mike Letts" ,
email =
" [email protected] " }
You can’t perform that action at this time.
0 commit comments