try:
            log.debug('Listing tags for CloudFront resource `%s`.', kwargs.get('Resource'))
            ret = conn.list_tags_for_resource(**kwargs)
            tags = {t['Key']: t['Value'] for t in ret.get('Tags', {}).get('Items', [])}
            return tags