# File lib/aws/ec2/instance.rb, line 420 def key_pair KeyPair.new(key_name, :config => config) if key_name end