boto3-refresh-session 5.1.1__py3-none-any.whl → 5.1.3__py3-none-any.whl

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.
@@ -9,7 +9,7 @@ from .session import *
9
9
 
10
10
  __all__.extend(session.__all__)
11
11
  __all__.extend(exceptions.__all__)
12
- __version__ = "5.1.1"
12
+ __version__ = "5.1.3"
13
13
  __title__ = "boto3-refresh-session"
14
14
  __author__ = "Mike Letts"
15
15
  __maintainer__ = "Mike Letts"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: boto3-refresh-session
3
- Version: 5.1.1
3
+ Version: 5.1.3
4
4
  Summary: A simple Python package for refreshing the temporary security credentials in a boto3.session.Session object automatically.
5
5
  License: MIT
6
6
  Keywords: boto3,botocore,aws,sts,credentials,token,refresh,iot,x509,mqtt
@@ -103,10 +103,10 @@ Description-Content-Type: text/markdown
103
103
  />
104
104
  </a>
105
105
 
106
- <a href="https://medium.com/@lettsmt/you-shouldnt-have-to-think-about-refreshing-aws-credentials-214f7cbbd83b">
106
+ <a href="https://michaelthomasletts.github.io/blog/brs-rationale/">
107
107
  <img
108
- src="https://img.shields.io/badge/Medium%20Article-📘-FF0000?style=flat&labelColor=555&logo=readthedocs"
109
- alt="medium"
108
+ src="https://img.shields.io/badge/Blog%20Post-📘-FF0000?style=flat&labelColor=555&logo=readthedocs"
109
+ alt="blog"
110
110
  />
111
111
  </a>
112
112
 
@@ -341,6 +341,22 @@ pip install boto3-refresh-session
341
341
  )
342
342
  ```
343
343
 
344
+ ### MQTT
345
+
346
+ After initializing a session object, you can can begin making actions with MQTT using the [mqtt method](https://github.com/michaelthomasletts/boto3-refresh-session/blob/deb68222925bf648f26e878ed4bc24b45317c7db/boto3_refresh_session/methods/iot/x509.py#L367)! You can reuse the same certificate, private key, et al as that used to initialize `RefreshableSession`. Or, alternatively, you can provide separate PKCS#11 or certificate information, whether those be file paths or bytes values. Either way, at a minimum, you will need to provide the endpoint and client identifier (i.e. thing name).
347
+
348
+ ```python
349
+ from awscrt.mqtt.QoS import AT_LEAST_ONCE
350
+ conn = session.mqtt(
351
+ endpoint="<your endpoint>-ats.iot.<region>.amazonaws.com",
352
+ client_id="<your thing name or client ID>",
353
+ )
354
+ conn.connect()
355
+ conn.connect().result()
356
+ conn.publish(topic="foo/bar", payload=b"hi", qos=AT_LEAST_ONCE)
357
+ conn.disconnect().result()
358
+ ```
359
+
344
360
  </details>
345
361
 
346
362
  ## ⚠️ Changes
@@ -1,4 +1,4 @@
1
- boto3_refresh_session/__init__.py,sha256=lLtO2SPPs53Xz2AGB-vW9jyUrjKgFQ_kD7vFJJ-1Il0,415
1
+ boto3_refresh_session/__init__.py,sha256=c2A9fVAb4Z2HOCPiMe8ufykRux01nDMuWyXH-I_dEvQ,415
2
2
  boto3_refresh_session/exceptions.py,sha256=QS5_xy3hNrfkdT_wKPZWH8WqSbFYCKPcK8DomGYIvcU,1218
3
3
  boto3_refresh_session/methods/__init__.py,sha256=FpwWixSVpy_6pUe1u4fXmjO-_fDH--qTk_xrMnBCHxU,193
4
4
  boto3_refresh_session/methods/custom.py,sha256=MLdUMU9s6NQoJWBKQ5Fsxeyxb_Xrm9V59pVX22M8fyI,4178
@@ -10,8 +10,8 @@ boto3_refresh_session/session.py,sha256=UM_dWHSo0Wn8gLN99zg36SRVb-Yy_to1wk8UgZEu
10
10
  boto3_refresh_session/utils/__init__.py,sha256=6F2ErbgBT2ZmZwFF3OzvQEd1Vh4XM3kaL6YGMTrcrkQ,156
11
11
  boto3_refresh_session/utils/internal.py,sha256=HbuIzT0pC8QS4pgNj3M7POGaW-OEz2l3ESfYI1Qouuo,7072
12
12
  boto3_refresh_session/utils/typing.py,sha256=YbnVYPe-ZEr79THp78u74PzF6LOIxpf91yGsvBmhEBM,3532
13
- boto3_refresh_session-5.1.1.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
14
- boto3_refresh_session-5.1.1.dist-info/METADATA,sha256=aZFKFsZXiNCmZqjRAHzaPVQBkHWPLsIJ4PxGpOPWE0E,14188
15
- boto3_refresh_session-5.1.1.dist-info/NOTICE,sha256=1s8r33qbl1z0YvPB942iWgvbkP94P_e8AnROr1qXXuw,939
16
- boto3_refresh_session-5.1.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
- boto3_refresh_session-5.1.1.dist-info/RECORD,,
13
+ boto3_refresh_session-5.1.3.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
14
+ boto3_refresh_session-5.1.3.dist-info/METADATA,sha256=7u3TtGWskAiy5LC5VvSzx1DUV_BrbrndqxSWithJkD8,15084
15
+ boto3_refresh_session-5.1.3.dist-info/NOTICE,sha256=1s8r33qbl1z0YvPB942iWgvbkP94P_e8AnROr1qXXuw,939
16
+ boto3_refresh_session-5.1.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
+ boto3_refresh_session-5.1.3.dist-info/RECORD,,