2009-07-13 22:14:59 -04:00
|
|
|
module Fog
|
|
|
|
module AWS
|
|
|
|
class EC2
|
|
|
|
|
|
|
|
# Create a new key pair
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * key_name<~String> - Unique name for key pair.
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Fog::AWS::Response>:
|
|
|
|
# * body<~Hash>:
|
2009-08-01 04:15:44 -04:00
|
|
|
# * 'keyName'<~String> - Name of key
|
|
|
|
# * 'keyFingerprint'<~String> - SHA-1 digest of DER encoded private key
|
|
|
|
# * 'keyMaterial'<~String> - Unencrypted encoded PEM private key
|
|
|
|
# * 'requestId'<~String> - Id of request
|
2009-07-13 22:14:59 -04:00
|
|
|
def create_key_pair(key_name)
|
|
|
|
request({
|
|
|
|
'Action' => 'CreateKeyPair',
|
|
|
|
'KeyName' => key_name
|
|
|
|
}, Fog::Parsers::AWS::EC2::CreateKeyPair.new)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|