| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.Lightsail.CreateKeyPair
Description
Creates sn SSH key pair.
- createKeyPair :: Text -> CreateKeyPair
- data CreateKeyPair
- ckpKeyPairName :: Lens' CreateKeyPair Text
- createKeyPairResponse :: Int -> CreateKeyPairResponse
- data CreateKeyPairResponse
- ckprsKeyPair :: Lens' CreateKeyPairResponse (Maybe KeyPair)
- ckprsOperation :: Lens' CreateKeyPairResponse (Maybe Operation)
- ckprsPublicKeyBase64 :: Lens' CreateKeyPairResponse (Maybe Text)
- ckprsPrivateKeyBase64 :: Lens' CreateKeyPairResponse (Maybe Text)
- ckprsResponseStatus :: Lens' CreateKeyPairResponse Int
Creating a Request
Arguments
| :: Text | |
| -> CreateKeyPair |
Creates a value of CreateKeyPair with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ckpKeyPairName- The name for your new key pair.
data CreateKeyPair Source #
See: createKeyPair smart constructor.
Instances
Request Lenses
ckpKeyPairName :: Lens' CreateKeyPair Text Source #
The name for your new key pair.
Destructuring the Response
createKeyPairResponse Source #
Arguments
| :: Int | |
| -> CreateKeyPairResponse |
Creates a value of CreateKeyPairResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ckprsKeyPair- An array of key-value pairs containing information about the new key pair you just created.ckprsOperation- An array of key-value pairs containing information about the results of your create key pair request.ckprsPublicKeyBase64- A base64-encoded public key of thessh-rsatype.ckprsPrivateKeyBase64- A base64-encoded RSA private key.ckprsResponseStatus- -- | The response status code.
data CreateKeyPairResponse Source #
See: createKeyPairResponse smart constructor.
Response Lenses
ckprsKeyPair :: Lens' CreateKeyPairResponse (Maybe KeyPair) Source #
An array of key-value pairs containing information about the new key pair you just created.
ckprsOperation :: Lens' CreateKeyPairResponse (Maybe Operation) Source #
An array of key-value pairs containing information about the results of your create key pair request.
ckprsPublicKeyBase64 :: Lens' CreateKeyPairResponse (Maybe Text) Source #
A base64-encoded public key of the ssh-rsa type.
ckprsPrivateKeyBase64 :: Lens' CreateKeyPairResponse (Maybe Text) Source #
A base64-encoded RSA private key.
ckprsResponseStatus :: Lens' CreateKeyPairResponse Int Source #
- - | The response status code.