def fix_route53_ids(params, model, **kwargs):
 input_shape = model.input_shape
 if ((not input_shape) or (not hasattr(input_shape, 'members'))):
  return
 members = [name for (name, shape) in input_shape.members.items() if (shape.name in ['ResourceId', 'DelegationSetId'])]
 for name in members:
  if (name in params):
   orig_value = params[name]
   params[name] = orig_value.split('/')[(-1)]
   logger.debug('%s %s -> %s', name, orig_value, params[name])

def fix_route53_ids ( params , model , ** kwargs ) : input_shape = model . input_shape if ( ( not input_shape ) or ( not hasattr ( input_shape , 'members' ) ) ) : return members = [ name for ( name , shape ) in input_shape . members . items ( ) if ( shape . name in [ 'ResourceId' , 'DelegationSetId' ] ) ] for name in members : if ( name in params ) : orig_value = params [ name ] params [ name ] = orig_value . split ( '/' ) [ ( - 1 ) ] logger . debug ( '%s %s -> %s' , name , orig_value , params [ name ] )
check for and split apart route53 resource ids .