def replace_route_table_association(association_id, route_table_id, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  association_id = conn.replace_route_table_association_with_assoc(association_id, route_table_id)
  log.info('Route table {0} was reassociated with association id {1}'.format(route_table_id, association_id))
  return {'replaced': True, 'association_id': association_id}
 except BotoServerError as e:
  return {'replaced': False, 'error': salt.utils.boto.get_error(e)}

def replace_route_table_association ( association_id , route_table_id , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) association_id = conn . replace_route_table_association_with_assoc ( association_id , route_table_id ) log . info ( 'Route table {0} was reassociated with association id {1}' . format ( route_table_id , association_id ) ) return { 'replaced' : True , 'association_id' : association_id } except BotoServerError as e : return { 'replaced' : False , 'error' : salt . utils . boto . get_error ( e ) }
replaces a route table association .