| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Lightsail.DownloadDefaultKeyPair
Description
Downloads the regional Amazon Lightsail default key pair.
This action also creates a Lightsail default key pair if a default key pair does not currently exist in the Amazon Web Services Region.
Synopsis
- data DownloadDefaultKeyPair = DownloadDefaultKeyPair' {
- newDownloadDefaultKeyPair :: DownloadDefaultKeyPair
- data DownloadDefaultKeyPairResponse = DownloadDefaultKeyPairResponse' {}
- newDownloadDefaultKeyPairResponse :: Int -> DownloadDefaultKeyPairResponse
- downloadDefaultKeyPairResponse_createdAt :: Lens' DownloadDefaultKeyPairResponse (Maybe UTCTime)
- downloadDefaultKeyPairResponse_privateKeyBase64 :: Lens' DownloadDefaultKeyPairResponse (Maybe Text)
- downloadDefaultKeyPairResponse_publicKeyBase64 :: Lens' DownloadDefaultKeyPairResponse (Maybe Text)
- downloadDefaultKeyPairResponse_httpStatus :: Lens' DownloadDefaultKeyPairResponse Int
Creating a Request
data DownloadDefaultKeyPair Source #
See: newDownloadDefaultKeyPair smart constructor.
Constructors
| DownloadDefaultKeyPair' | |
Instances
newDownloadDefaultKeyPair :: DownloadDefaultKeyPair Source #
Create a value of DownloadDefaultKeyPair with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data DownloadDefaultKeyPairResponse Source #
See: newDownloadDefaultKeyPairResponse smart constructor.
Constructors
| DownloadDefaultKeyPairResponse' | |
Fields
| |
Instances
newDownloadDefaultKeyPairResponse Source #
Create a value of DownloadDefaultKeyPairResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DownloadDefaultKeyPairResponse, downloadDefaultKeyPairResponse_createdAt - The timestamp when the default key pair was created.
$sel:privateKeyBase64:DownloadDefaultKeyPairResponse', downloadDefaultKeyPairResponse_privateKeyBase64 - A base64-encoded RSA private key.
$sel:publicKeyBase64:DownloadDefaultKeyPairResponse', downloadDefaultKeyPairResponse_publicKeyBase64 - A base64-encoded public key of the ssh-rsa type.
$sel:httpStatus:DownloadDefaultKeyPairResponse', downloadDefaultKeyPairResponse_httpStatus - The response's http status code.
Response Lenses
downloadDefaultKeyPairResponse_createdAt :: Lens' DownloadDefaultKeyPairResponse (Maybe UTCTime) Source #
The timestamp when the default key pair was created.
downloadDefaultKeyPairResponse_privateKeyBase64 :: Lens' DownloadDefaultKeyPairResponse (Maybe Text) Source #
A base64-encoded RSA private key.
downloadDefaultKeyPairResponse_publicKeyBase64 :: Lens' DownloadDefaultKeyPairResponse (Maybe Text) Source #
A base64-encoded public key of the ssh-rsa type.
downloadDefaultKeyPairResponse_httpStatus :: Lens' DownloadDefaultKeyPairResponse Int Source #
The response's http status code.