def elb_name(b):
    elb_name_re = compile('^[a-zA-Z0-9](?:[a-zA-Z0-9\\-]{0,30}[a-zA-Z0-9]{1})?$')
    if elb_name_re.match(b):
        return b
    else:
        raise ValueError(('%s is not a valid elb name' % b))
def elb_name(b):
    elb_name_re = compile('^[a-zA-Z0-9](?:[a-zA-Z0-9\\-]{0,30}[a-zA-Z0-9]{1})?$')
    if elb_name_re.match(b):
        return b
    else:
        raise ValueError(('%s is not a valid elb name' % b))