"""Amazon STS connector.""" from functools import cache import boto3 from mypy_boto3_sts.client import STSClient @cache def get_sts_client() -> STSClient: """Connect to STS. Connect to STS via AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY env vars Returns: STSClient: Client object provides access to sts. """ return boto3.client("sts")