ImportKeyPairRequest Class

.NET Framework 4.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...
Container for the parameters to the ImportKeyPair operation.

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 .

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.EC2.Model.ImportKeyPairRequest

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
public class ImportKeyPairRequest : AmazonWebServiceRequest
         IRequestEvents

The ImportKeyPairRequest type exposes the following members

Constructors

  Name Description
Public Method ImportKeyPairRequest()

Properties

  Name Description
Public Property KeyName The unique name for the key pair.
Public Property PublicKeyMaterial The public key portion of the key pair being imported.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8

.NET for Windows Phone:
Supported in: Window Phone 8