def get_retention_policy(database, name, **client_args):
 client = _client(**client_args)
 try:
  return next((p for p in client.get_list_retention_policies(database) if (p.get('name') == name)))
 except StopIteration:
  return {}

def get_retention_policy ( database , name , ** client_args ) : client = _client ( ** client_args ) try : return next ( ( p for p in client . get_list_retention_policies ( database ) if ( p . get ( 'name' ) == name ) ) ) except StopIteration : return { }
get an existing retention policy .