Copyright | (c) 2013-2021 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 |
Imports a public SSH key from a specific key pair.
Synopsis
- data ImportKeyPair = ImportKeyPair' {}
- newImportKeyPair :: Text -> Text -> ImportKeyPair
- importKeyPair_keyPairName :: Lens' ImportKeyPair Text
- importKeyPair_publicKeyBase64 :: Lens' ImportKeyPair Text
- data ImportKeyPairResponse = ImportKeyPairResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newImportKeyPairResponse :: Int -> ImportKeyPairResponse
- importKeyPairResponse_operation :: Lens' ImportKeyPairResponse (Maybe Operation)
- importKeyPairResponse_httpStatus :: Lens' ImportKeyPairResponse Int
Creating a Request
data ImportKeyPair Source #
See: newImportKeyPair
smart constructor.
ImportKeyPair' | |
|
Instances
Create a value of ImportKeyPair
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:
$sel:keyPairName:ImportKeyPair'
, importKeyPair_keyPairName
- The name of the key pair for which you want to import the public key.
$sel:publicKeyBase64:ImportKeyPair'
, importKeyPair_publicKeyBase64
- A base64-encoded public key of the ssh-rsa
type.
Request Lenses
importKeyPair_keyPairName :: Lens' ImportKeyPair Text Source #
The name of the key pair for which you want to import the public key.
importKeyPair_publicKeyBase64 :: Lens' ImportKeyPair Text Source #
A base64-encoded public key of the ssh-rsa
type.
Destructuring the Response
data ImportKeyPairResponse Source #
See: newImportKeyPairResponse
smart constructor.
ImportKeyPairResponse' | |
|
Instances
newImportKeyPairResponse Source #
Create a value of ImportKeyPairResponse
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:
$sel:operation:ImportKeyPairResponse'
, importKeyPairResponse_operation
- An array of objects that describe the result of the action, such as the
status of the request, the timestamp of the request, and the resources
affected by the request.
$sel:httpStatus:ImportKeyPairResponse'
, importKeyPairResponse_httpStatus
- The response's http status code.
Response Lenses
importKeyPairResponse_operation :: Lens' ImportKeyPairResponse (Maybe Operation) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
importKeyPairResponse_httpStatus :: Lens' ImportKeyPairResponse Int Source #
The response's http status code.