AWSSession class that extends BaseUrlSession from requests and automatically authenticates through IAM.
poetry add requests-iam-session
from requests_iam_session import AWSSession
session = AWSSession("https://example.com/")
response = session.get("/users/1")
print(response.json())