Safe Haskell | None |
---|---|
Language | Haskell2010 |
Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#8 private key. If a key with the specified name already exists, Amazon EC2 returns an error. You can have up to five thousand key pairs per region. The key pair returned to you is available only in the region in which you create it. To create a key pair that is available in all regions, use ImportKeyPair. For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateKeyPair.html
- data CreateKeyPair
- createKeyPair :: Text -> CreateKeyPair
- ckpDryRun :: Lens' CreateKeyPair (Maybe Bool)
- ckpKeyName :: Lens' CreateKeyPair Text
- data CreateKeyPairResponse
- createKeyPairResponse :: CreateKeyPairResponse
- ckprKeyFingerprint :: Lens' CreateKeyPairResponse (Maybe Text)
- ckprKeyMaterial :: Lens' CreateKeyPairResponse (Maybe Text)
- ckprKeyName :: Lens' CreateKeyPairResponse (Maybe Text)
Request
data CreateKeyPair Source
Request constructor
CreateKeyPair
constructor.
The fields accessible through corresponding lenses are:
ckpDryRun
::
Maybe
Bool
ckpKeyName
::
Text
Request lenses
ckpKeyName :: Lens' CreateKeyPair Text Source
A unique name for the key pair. Constraints: Up to 255 ASCII characters.
Response
Response constructor
createKeyPairResponse :: CreateKeyPairResponse Source
CreateKeyPairResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
ckprKeyFingerprint :: Lens' CreateKeyPairResponse (Maybe Text) Source
The SHA-1 digest of the DER encoded private key.
ckprKeyMaterial :: Lens' CreateKeyPairResponse (Maybe Text) Source
An unencrypted PEM encoded RSA private key.
ckprKeyName :: Lens' CreateKeyPairResponse (Maybe Text) Source
The name of the key pair.