AWS SDK for .NET Documentation
ImportKeyPair Method (request)
AmazonAmazon.EC2AmazonEC2ClientImportKeyPair(ImportKeyPairRequest) Did this page help you?   Yes   No    Tell us about it...
Imports the public key from an RSA key pair created with a third-party tool.
Declaration Syntax
C#
public ImportKeyPairResponse ImportKeyPair(
	ImportKeyPairRequest request
)
Parameters
request (ImportKeyPairRequest)
Import Key Pair request
Return Value
Import Key Pair Response from the service
Remarks
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.
Exceptions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)