def get_security_group(client, group_name, vpc, **kwargs):
    'Method to fetch security group based on the group_name.\n    Args:\n        client (boto client): Region specific boto client\n        group_name (str): Security Group name\n        vpc (VPC object): The VPC in which to check for the SG\n    Returns:\n        SecurityGroup: Matching security group.\n    '
    filters = (get_filters('group-name', group_name) + get_filters('vpc-id', vpc.id))
    return next(iter(client.security_groups.filter(Filters=filters)), None)
Method to fetch security group based on the group_name.
Args:
    client (boto client): Region specific boto client
    group_name (str): Security Group name
    vpc (VPC object): The VPC in which to check for the SG
Returns:
    SecurityGroup: Matching security group.
def get_security_group(client, group_name, vpc, **kwargs):
    'Method to fetch security group based on the group_name.\n    Args:\n        client (boto client): Region specific boto client\n        group_name (str): Security Group name\n        vpc (VPC object): The VPC in which to check for the SG\n    Returns:\n        SecurityGroup: Matching security group.\n    '
    filters = (get_filters('group-name', group_name) + get_filters('vpc-id', vpc.id))
    return next(iter(client.security_groups.filter(Filters=filters)), None)