| 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.GetKeyPair
Description
Returns information about a specific key pair.
Synopsis
- data GetKeyPair = GetKeyPair' {
- keyPairName :: Text
- newGetKeyPair :: Text -> GetKeyPair
- getKeyPair_keyPairName :: Lens' GetKeyPair Text
- data GetKeyPairResponse = GetKeyPairResponse' {
- keyPair :: Maybe KeyPair
- httpStatus :: Int
- newGetKeyPairResponse :: Int -> GetKeyPairResponse
- getKeyPairResponse_keyPair :: Lens' GetKeyPairResponse (Maybe KeyPair)
- getKeyPairResponse_httpStatus :: Lens' GetKeyPairResponse Int
Creating a Request
data GetKeyPair Source #
See: newGetKeyPair smart constructor.
Constructors
| GetKeyPair' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetKeyPair |
Create a value of GetKeyPair 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:
GetKeyPair, getKeyPair_keyPairName - The name of the key pair for which you are requesting information.
Request Lenses
getKeyPair_keyPairName :: Lens' GetKeyPair Text Source #
The name of the key pair for which you are requesting information.
Destructuring the Response
data GetKeyPairResponse Source #
See: newGetKeyPairResponse smart constructor.
Constructors
| GetKeyPairResponse' | |
Fields
| |
Instances
newGetKeyPairResponse Source #
Arguments
| :: Int | |
| -> GetKeyPairResponse |
Create a value of GetKeyPairResponse 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:keyPair:GetKeyPairResponse', getKeyPairResponse_keyPair - An array of key-value pairs containing information about the key pair.
$sel:httpStatus:GetKeyPairResponse', getKeyPairResponse_httpStatus - The response's http status code.
Response Lenses
getKeyPairResponse_keyPair :: Lens' GetKeyPairResponse (Maybe KeyPair) Source #
An array of key-value pairs containing information about the key pair.
getKeyPairResponse_httpStatus :: Lens' GetKeyPairResponse Int Source #
The response's http status code.