AWS SDK for .NET Documentation
ImportKeyPairRequest Class
AmazonAmazon.EC2.ModelImportKeyPairRequest 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 class ImportKeyPairRequest : EC2Request
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
ImportKeyPairRequest()()()()
Initializes a new instance of the ImportKeyPairRequest 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

IsSetPublicKeyMaterial()()()()
Checks if PublicKeyMaterial property is set

KeyName
The unique name for the key pair.

PublicKeyMaterial
The public key. The key must be base64 encoded.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithKeyName(String) Obsolete.
Sets the unique name for the key pair.

WithPublicKeyMaterial(String) Obsolete.
Sets the public key.

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.
Inheritance Hierarchy
Object
EC2Request
 ImportKeyPairRequest

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