Creates a new 2048-bit RSA key pair with the specified name. The public key is stored by Amazon EC2 and the private key is displayed on the console. The private key is returned as an unencrypted PEM encoded PKCS#8 private key. If a key with the specified name already exists, Amazon EC2 returns an error.

Namespace: Amazon.EC2.Model
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class CreateKeyPairRequest
Public Class CreateKeyPairRequest
public ref class CreateKeyPairRequest

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
CreateKeyPairRequest()()()()
Initializes a new instance of the CreateKeyPairRequest class
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
IsSetKeyName()()()()
Checks if KeyName property is set
KeyName
Gets and sets the KeyName property. A unique name for the key pair. Constraints: Accepts alphanumeric characters, spaces, dashes, and underscores.
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
WithKeyName(String)
Sets the KeyName property

Inheritance Hierarchy

System..::..Object
  Amazon.EC2.Model..::..CreateKeyPairRequest

See Also