Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data ImportKeyPair
- importKeyPair :: Text -> Base64 -> ImportKeyPair
- ikpDryRun :: Lens' ImportKeyPair (Maybe Bool)
- ikpKeyName :: Lens' ImportKeyPair Text
- ikpPublicKeyMaterial :: Lens' ImportKeyPair Base64
- data ImportKeyPairResponse
- importKeyPairResponse :: ImportKeyPairResponse
- ikprKeyFingerprint :: Lens' ImportKeyPairResponse (Maybe Text)
- ikprKeyName :: Lens' ImportKeyPairResponse (Maybe Text)
Request
data ImportKeyPair Source
Request constructor
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.