def show_keypair(kwargs=None, call=None):
 if (call != 'function'):
  log.error('The show_keypair function must be called with -f or --function.')
  return False
 if (not kwargs):
  kwargs = {}
 if ('keyname' not in kwargs):
  log.error('A keyname is required.')
  return False
 params = {'Action': 'DescribeKeyPairs', 'KeyName.1': kwargs['keyname']}
 data = aws.query(params, return_url=True, location=get_location(), provider=get_provider(), opts=__opts__, sigver='4')
 return data

def show_keypair ( kwargs = None , call = None ) : if ( call != 'function' ) : log . error ( 'The show_keypair function must be called with -f or --function.' ) return False if ( not kwargs ) : kwargs = { } if ( 'keyname' not in kwargs ) : log . error ( 'A keyname is required.' ) return False params = { 'Action' : 'DescribeKeyPairs' , 'KeyName.1' : kwargs [ 'keyname' ] } data = aws . query ( params , return_url = True , location = get_location ( ) , provider = get_provider ( ) , opts = __opts__ , sigver = '4' ) return data
show the details of an ssh keypair .