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.ModelAssembly: 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 |
| Member | Description | |
|---|---|---|
| CreateKeyPairRequest()()()() | Initializes a new instance of the CreateKeyPairRequest class | |
| Equals(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()()()() | (Inherited from Object.) | |
| WithKeyName(String) |
Sets the KeyName property
|