def get(bucket_name, prefixed_object_name, **kwargs):
    """
    Use STS to get an object
    """
    try:
        response = kwargs["client"].get_object(Bucket=bucket_name, Key=prefixed_object_name)
        current_app.logger.debug(f"Get data from S3. Bucket: {bucket_name},"
                                 f"object_name: {prefixed_object_name}")
        return response['Body'].read().decode("utf-8")
    except ClientError:
        capture_exception()
        return None

    Use STS to get an object
    
lemur/plugins/lemur_aws/s3.py