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 6
6
7
7
.. warning::
8
8
``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.
18
14
"""
19
15
__all__ = ["AutoRefreshableSession" ]
20
16
Original file line number Diff line number Diff line change @@ -5,15 +5,11 @@ Authorization
5
5
6
6
.. warning ::
7
7
``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.
17
13
18
14
In order to use this package, it is **recommended ** that you follow one of the
19
15
below methods for authorizing access to your AWS instance:
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " boto3-refresh-session"
3
- version = " 0.0.26 "
3
+ version = " 0.0.27 "
4
4
description = " A simple Python package for refreshing boto3 sessions automatically."
5
5
authors = [
6
6
{name = " Mike Letts" ,email = " michaelthomasletts@gmail.com" }
You can’t perform that action at this time.
0 commit comments