vendor/bundle/ruby/1.8/gems/aws-2.5.6/lib/ec2/ec2.rb
# Retrieve a list of SSH keys. Returns an array of keys or an exception. Each key is
# represented as a two-element hash.
#
#  ec2.describe_key_pairs #=>
#    [{:aws_fingerprint=> "01:02:03:f4:25:e6:97:e8:9b:02:1a:26:32:4e:58:6b:7a:8c:9f:03", :aws_key_name=>"key-1"},
#     {:aws_fingerprint=> "1e:29:30:47:58:6d:7b:8c:9f:08:11:20:3c:44:52:69:74:80:97:08", :aws_key_name=>"key-2"},
#      ..., {...} ]
#
Retrieve a list of SSH keys. Returns an array of keys or an exception. Each key is
represented as a two-element hash.


Retrieve a list of SSH keys . Returns an array of keys or an exception . Each key is represented as a two - element hash .
def describe_key_pairs(list=[])
      link = generate_request("DescribeKeyPairs", hash_params('KeyName', list.to_a))
      request_cache_or_info :describe_key_pairs, link, QEc2DescribeKeyPairParser, @@bench, list.nil? || list.empty?
    rescue Exception
      on_exception
    end
def describe_key_pairs ( list = [ ] ) link = generate_request ( "DescribeKeyPairs" , hash_params ( 'KeyName' , list . to_a ) ) request_cache_or_info :describe_key_pairs , link , QEc2DescribeKeyPairParser , @@bench , list . nil? || list . empty? rescue Exception on_exception end
Retrieve a list of SSH keys.
Retrieve a list of SSH keys .
list