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