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 |
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.
GetKeyPair' | |
|
Instances
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:
$sel:keyPairName: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.
GetKeyPairResponse' | |
|
Instances
newGetKeyPairResponse Source #
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.