amazonka-ec2-0.1.0: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.ImportKeyPair

Contents

Description

Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.

For more information about key pairs, see Key Pairs in the Amazon ElasticCompute Cloud User Guide.

http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-ImportKeyPair.html

Synopsis

Request

Request constructor

importKeyPair Source

ImportKeyPair constructor.

The fields accessible through corresponding lenses are:

Request lenses

ikpKeyName :: Lens' ImportKeyPair Text Source

A unique name for the key pair.

ikpPublicKeyMaterial :: Lens' ImportKeyPair Base64 Source

The public key. You must base64 encode the public key material before sending it to AWS.

Response

Response constructor

importKeyPairResponse :: ImportKeyPairResponse Source

ImportKeyPairResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

ikprKeyFingerprint :: Lens' ImportKeyPairResponse (Maybe Text) Source

The MD5 public key fingerprint as specified in section 4 of RFC 4716.

ikprKeyName :: Lens' ImportKeyPairResponse (Maybe Text) Source

The key pair name you provided.