def _vpc_peering_conn_id_for_name(name, conn):
 log.debug('Retrieving VPC peering connection id')
 ids = _get_peering_connection_ids(name, conn)
 if (not ids):
  ids = [None]
 elif (len(ids) > 1):
  raise SaltInvocationError('Found multiple VPC peering connections with the same name!! Please make sure you have only one VPC peering connection named {0} or invoke this function with a VPC peering connection ID'.format(name))
 return ids[0]

def _vpc_peering_conn_id_for_name ( name , conn ) : log . debug ( 'Retrieving VPC peering connection id' ) ids = _get_peering_connection_ids ( name , conn ) if ( not ids ) : ids = [ None ] elif ( len ( ids ) > 1 ) : raise SaltInvocationError ( 'Found multiple VPC peering connections with the same name!! Please make sure you have only one VPC peering connection named {0} or invoke this function with a VPC peering connection ID' . format ( name ) ) return ids [ 0 ]
get the id associated with this name .