Imports the public key from an RSA key pair created with a third-party tool.
This operation differs from CreateKeyPair as the private key is never
transferred between the caller and AWS servers.
RSA key pairs are easily created on Microsoft Windows and Linux OS systems using
the ssh-keygen command line tool provided with the standard OpenSSH
installation. Standard library support for RSA key pair creation is also available
for Java, Ruby, Python, and many other programming languages.
The following formats are supported:
- OpenSSH public key format,
- Base64 encoded DER format.
- SSH public key file format as specified in
RFC4716.
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 ImportKeyPairRequest
Public Class ImportKeyPairRequest
public ref class ImportKeyPairRequest
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| ImportKeyPairRequest()()()() | Initializes a new instance of the ImportKeyPairRequest 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
| |
| IsSetPublicKeyMaterial()()()() |
Checks if PublicKeyMaterial property is set
| |
| KeyName |
Gets and sets the KeyName property.
The unique name for the key pair.
| |
| PublicKeyMaterial |
Gets and sets the PublicKeyMaterial property.
The public key. This key must be base64 encoded before calling
this operation.
| |
| ToString()()()() | (Inherited from Object.) | |
| WithKeyName(String) |
Sets the KeyName property
| |
| WithPublicKeyMaterial(String) |
Sets the PublicKeyMaterial property
|