{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Lightsail.GetKeyPairs
(
GetKeyPairs (..),
newGetKeyPairs,
getKeyPairs_pageToken,
GetKeyPairsResponse (..),
newGetKeyPairsResponse,
getKeyPairsResponse_nextPageToken,
getKeyPairsResponse_keyPairs,
getKeyPairsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Lightsail.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetKeyPairs = GetKeyPairs'
{
GetKeyPairs -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text
}
deriving (GetKeyPairs -> GetKeyPairs -> Bool
(GetKeyPairs -> GetKeyPairs -> Bool)
-> (GetKeyPairs -> GetKeyPairs -> Bool) -> Eq GetKeyPairs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetKeyPairs -> GetKeyPairs -> Bool
$c/= :: GetKeyPairs -> GetKeyPairs -> Bool
== :: GetKeyPairs -> GetKeyPairs -> Bool
$c== :: GetKeyPairs -> GetKeyPairs -> Bool
Prelude.Eq, ReadPrec [GetKeyPairs]
ReadPrec GetKeyPairs
Int -> ReadS GetKeyPairs
ReadS [GetKeyPairs]
(Int -> ReadS GetKeyPairs)
-> ReadS [GetKeyPairs]
-> ReadPrec GetKeyPairs
-> ReadPrec [GetKeyPairs]
-> Read GetKeyPairs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetKeyPairs]
$creadListPrec :: ReadPrec [GetKeyPairs]
readPrec :: ReadPrec GetKeyPairs
$creadPrec :: ReadPrec GetKeyPairs
readList :: ReadS [GetKeyPairs]
$creadList :: ReadS [GetKeyPairs]
readsPrec :: Int -> ReadS GetKeyPairs
$creadsPrec :: Int -> ReadS GetKeyPairs
Prelude.Read, Int -> GetKeyPairs -> ShowS
[GetKeyPairs] -> ShowS
GetKeyPairs -> String
(Int -> GetKeyPairs -> ShowS)
-> (GetKeyPairs -> String)
-> ([GetKeyPairs] -> ShowS)
-> Show GetKeyPairs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetKeyPairs] -> ShowS
$cshowList :: [GetKeyPairs] -> ShowS
show :: GetKeyPairs -> String
$cshow :: GetKeyPairs -> String
showsPrec :: Int -> GetKeyPairs -> ShowS
$cshowsPrec :: Int -> GetKeyPairs -> ShowS
Prelude.Show, (forall x. GetKeyPairs -> Rep GetKeyPairs x)
-> (forall x. Rep GetKeyPairs x -> GetKeyPairs)
-> Generic GetKeyPairs
forall x. Rep GetKeyPairs x -> GetKeyPairs
forall x. GetKeyPairs -> Rep GetKeyPairs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetKeyPairs x -> GetKeyPairs
$cfrom :: forall x. GetKeyPairs -> Rep GetKeyPairs x
Prelude.Generic)
newGetKeyPairs ::
GetKeyPairs
newGetKeyPairs :: GetKeyPairs
newGetKeyPairs =
GetKeyPairs' :: Maybe Text -> GetKeyPairs
GetKeyPairs' {$sel:pageToken:GetKeyPairs' :: Maybe Text
pageToken = Maybe Text
forall a. Maybe a
Prelude.Nothing}
getKeyPairs_pageToken :: Lens.Lens' GetKeyPairs (Prelude.Maybe Prelude.Text)
getKeyPairs_pageToken :: (Maybe Text -> f (Maybe Text)) -> GetKeyPairs -> f GetKeyPairs
getKeyPairs_pageToken = (GetKeyPairs -> Maybe Text)
-> (GetKeyPairs -> Maybe Text -> GetKeyPairs)
-> Lens GetKeyPairs GetKeyPairs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetKeyPairs' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetKeyPairs' :: GetKeyPairs -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: GetKeyPairs
s@GetKeyPairs' {} Maybe Text
a -> GetKeyPairs
s {$sel:pageToken:GetKeyPairs' :: Maybe Text
pageToken = Maybe Text
a} :: GetKeyPairs)
instance Core.AWSPager GetKeyPairs where
page :: GetKeyPairs -> AWSResponse GetKeyPairs -> Maybe GetKeyPairs
page GetKeyPairs
rq AWSResponse GetKeyPairs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetKeyPairs
GetKeyPairsResponse
rs
GetKeyPairsResponse
-> Getting (First Text) GetKeyPairsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetKeyPairsResponse -> Const (First Text) GetKeyPairsResponse
Lens' GetKeyPairsResponse (Maybe Text)
getKeyPairsResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetKeyPairsResponse -> Const (First Text) GetKeyPairsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetKeyPairsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetKeyPairs
forall a. Maybe a
Prelude.Nothing
| Maybe [KeyPair] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetKeyPairs
GetKeyPairsResponse
rs
GetKeyPairsResponse
-> Getting (First [KeyPair]) GetKeyPairsResponse [KeyPair]
-> Maybe [KeyPair]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [KeyPair] -> Const (First [KeyPair]) (Maybe [KeyPair]))
-> GetKeyPairsResponse
-> Const (First [KeyPair]) GetKeyPairsResponse
Lens' GetKeyPairsResponse (Maybe [KeyPair])
getKeyPairsResponse_keyPairs ((Maybe [KeyPair] -> Const (First [KeyPair]) (Maybe [KeyPair]))
-> GetKeyPairsResponse
-> Const (First [KeyPair]) GetKeyPairsResponse)
-> (([KeyPair] -> Const (First [KeyPair]) [KeyPair])
-> Maybe [KeyPair] -> Const (First [KeyPair]) (Maybe [KeyPair]))
-> Getting (First [KeyPair]) GetKeyPairsResponse [KeyPair]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([KeyPair] -> Const (First [KeyPair]) [KeyPair])
-> Maybe [KeyPair] -> Const (First [KeyPair]) (Maybe [KeyPair])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetKeyPairs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetKeyPairs -> Maybe GetKeyPairs
forall a. a -> Maybe a
Prelude.Just (GetKeyPairs -> Maybe GetKeyPairs)
-> GetKeyPairs -> Maybe GetKeyPairs
forall a b. (a -> b) -> a -> b
Prelude.$
GetKeyPairs
rq
GetKeyPairs -> (GetKeyPairs -> GetKeyPairs) -> GetKeyPairs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetKeyPairs -> Identity GetKeyPairs
Lens GetKeyPairs GetKeyPairs (Maybe Text) (Maybe Text)
getKeyPairs_pageToken
((Maybe Text -> Identity (Maybe Text))
-> GetKeyPairs -> Identity GetKeyPairs)
-> Maybe Text -> GetKeyPairs -> GetKeyPairs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetKeyPairs
GetKeyPairsResponse
rs
GetKeyPairsResponse
-> Getting (First Text) GetKeyPairsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetKeyPairsResponse -> Const (First Text) GetKeyPairsResponse
Lens' GetKeyPairsResponse (Maybe Text)
getKeyPairsResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetKeyPairsResponse -> Const (First Text) GetKeyPairsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetKeyPairsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest GetKeyPairs where
type AWSResponse GetKeyPairs = GetKeyPairsResponse
request :: GetKeyPairs -> Request GetKeyPairs
request = Service -> GetKeyPairs -> Request GetKeyPairs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetKeyPairs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetKeyPairs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetKeyPairs))
-> Logger
-> Service
-> Proxy GetKeyPairs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetKeyPairs)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Maybe [KeyPair] -> Int -> GetKeyPairsResponse
GetKeyPairsResponse'
(Maybe Text -> Maybe [KeyPair] -> Int -> GetKeyPairsResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [KeyPair] -> Int -> GetKeyPairsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nextPageToken")
Either String (Maybe [KeyPair] -> Int -> GetKeyPairsResponse)
-> Either String (Maybe [KeyPair])
-> Either String (Int -> GetKeyPairsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [KeyPair]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"keyPairs" Either String (Maybe (Maybe [KeyPair]))
-> Maybe [KeyPair] -> Either String (Maybe [KeyPair])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [KeyPair]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetKeyPairsResponse)
-> Either String Int -> Either String GetKeyPairsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable GetKeyPairs
instance Prelude.NFData GetKeyPairs
instance Core.ToHeaders GetKeyPairs where
toHeaders :: GetKeyPairs -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetKeyPairs -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"Lightsail_20161128.GetKeyPairs" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON GetKeyPairs where
toJSON :: GetKeyPairs -> Value
toJSON GetKeyPairs' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetKeyPairs' :: GetKeyPairs -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"pageToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pageToken]
)
instance Core.ToPath GetKeyPairs where
toPath :: GetKeyPairs -> ByteString
toPath = ByteString -> GetKeyPairs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetKeyPairs where
toQuery :: GetKeyPairs -> QueryString
toQuery = QueryString -> GetKeyPairs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetKeyPairsResponse = GetKeyPairsResponse'
{
GetKeyPairsResponse -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
GetKeyPairsResponse -> Maybe [KeyPair]
keyPairs :: Prelude.Maybe [KeyPair],
GetKeyPairsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetKeyPairsResponse -> GetKeyPairsResponse -> Bool
(GetKeyPairsResponse -> GetKeyPairsResponse -> Bool)
-> (GetKeyPairsResponse -> GetKeyPairsResponse -> Bool)
-> Eq GetKeyPairsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetKeyPairsResponse -> GetKeyPairsResponse -> Bool
$c/= :: GetKeyPairsResponse -> GetKeyPairsResponse -> Bool
== :: GetKeyPairsResponse -> GetKeyPairsResponse -> Bool
$c== :: GetKeyPairsResponse -> GetKeyPairsResponse -> Bool
Prelude.Eq, ReadPrec [GetKeyPairsResponse]
ReadPrec GetKeyPairsResponse
Int -> ReadS GetKeyPairsResponse
ReadS [GetKeyPairsResponse]
(Int -> ReadS GetKeyPairsResponse)
-> ReadS [GetKeyPairsResponse]
-> ReadPrec GetKeyPairsResponse
-> ReadPrec [GetKeyPairsResponse]
-> Read GetKeyPairsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetKeyPairsResponse]
$creadListPrec :: ReadPrec [GetKeyPairsResponse]
readPrec :: ReadPrec GetKeyPairsResponse
$creadPrec :: ReadPrec GetKeyPairsResponse
readList :: ReadS [GetKeyPairsResponse]
$creadList :: ReadS [GetKeyPairsResponse]
readsPrec :: Int -> ReadS GetKeyPairsResponse
$creadsPrec :: Int -> ReadS GetKeyPairsResponse
Prelude.Read, Int -> GetKeyPairsResponse -> ShowS
[GetKeyPairsResponse] -> ShowS
GetKeyPairsResponse -> String
(Int -> GetKeyPairsResponse -> ShowS)
-> (GetKeyPairsResponse -> String)
-> ([GetKeyPairsResponse] -> ShowS)
-> Show GetKeyPairsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetKeyPairsResponse] -> ShowS
$cshowList :: [GetKeyPairsResponse] -> ShowS
show :: GetKeyPairsResponse -> String
$cshow :: GetKeyPairsResponse -> String
showsPrec :: Int -> GetKeyPairsResponse -> ShowS
$cshowsPrec :: Int -> GetKeyPairsResponse -> ShowS
Prelude.Show, (forall x. GetKeyPairsResponse -> Rep GetKeyPairsResponse x)
-> (forall x. Rep GetKeyPairsResponse x -> GetKeyPairsResponse)
-> Generic GetKeyPairsResponse
forall x. Rep GetKeyPairsResponse x -> GetKeyPairsResponse
forall x. GetKeyPairsResponse -> Rep GetKeyPairsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetKeyPairsResponse x -> GetKeyPairsResponse
$cfrom :: forall x. GetKeyPairsResponse -> Rep GetKeyPairsResponse x
Prelude.Generic)
newGetKeyPairsResponse ::
Prelude.Int ->
GetKeyPairsResponse
newGetKeyPairsResponse :: Int -> GetKeyPairsResponse
newGetKeyPairsResponse Int
pHttpStatus_ =
GetKeyPairsResponse' :: Maybe Text -> Maybe [KeyPair] -> Int -> GetKeyPairsResponse
GetKeyPairsResponse'
{ $sel:nextPageToken:GetKeyPairsResponse' :: Maybe Text
nextPageToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:keyPairs:GetKeyPairsResponse' :: Maybe [KeyPair]
keyPairs = Maybe [KeyPair]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetKeyPairsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getKeyPairsResponse_nextPageToken :: Lens.Lens' GetKeyPairsResponse (Prelude.Maybe Prelude.Text)
getKeyPairsResponse_nextPageToken :: (Maybe Text -> f (Maybe Text))
-> GetKeyPairsResponse -> f GetKeyPairsResponse
getKeyPairsResponse_nextPageToken = (GetKeyPairsResponse -> Maybe Text)
-> (GetKeyPairsResponse -> Maybe Text -> GetKeyPairsResponse)
-> Lens' GetKeyPairsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetKeyPairsResponse' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:GetKeyPairsResponse' :: GetKeyPairsResponse -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: GetKeyPairsResponse
s@GetKeyPairsResponse' {} Maybe Text
a -> GetKeyPairsResponse
s {$sel:nextPageToken:GetKeyPairsResponse' :: Maybe Text
nextPageToken = Maybe Text
a} :: GetKeyPairsResponse)
getKeyPairsResponse_keyPairs :: Lens.Lens' GetKeyPairsResponse (Prelude.Maybe [KeyPair])
getKeyPairsResponse_keyPairs :: (Maybe [KeyPair] -> f (Maybe [KeyPair]))
-> GetKeyPairsResponse -> f GetKeyPairsResponse
getKeyPairsResponse_keyPairs = (GetKeyPairsResponse -> Maybe [KeyPair])
-> (GetKeyPairsResponse -> Maybe [KeyPair] -> GetKeyPairsResponse)
-> Lens' GetKeyPairsResponse (Maybe [KeyPair])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetKeyPairsResponse' {Maybe [KeyPair]
keyPairs :: Maybe [KeyPair]
$sel:keyPairs:GetKeyPairsResponse' :: GetKeyPairsResponse -> Maybe [KeyPair]
keyPairs} -> Maybe [KeyPair]
keyPairs) (\s :: GetKeyPairsResponse
s@GetKeyPairsResponse' {} Maybe [KeyPair]
a -> GetKeyPairsResponse
s {$sel:keyPairs:GetKeyPairsResponse' :: Maybe [KeyPair]
keyPairs = Maybe [KeyPair]
a} :: GetKeyPairsResponse) ((Maybe [KeyPair] -> f (Maybe [KeyPair]))
-> GetKeyPairsResponse -> f GetKeyPairsResponse)
-> ((Maybe [KeyPair] -> f (Maybe [KeyPair]))
-> Maybe [KeyPair] -> f (Maybe [KeyPair]))
-> (Maybe [KeyPair] -> f (Maybe [KeyPair]))
-> GetKeyPairsResponse
-> f GetKeyPairsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [KeyPair] [KeyPair] [KeyPair] [KeyPair]
-> Iso
(Maybe [KeyPair])
(Maybe [KeyPair])
(Maybe [KeyPair])
(Maybe [KeyPair])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [KeyPair] [KeyPair] [KeyPair] [KeyPair]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getKeyPairsResponse_httpStatus :: Lens.Lens' GetKeyPairsResponse Prelude.Int
getKeyPairsResponse_httpStatus :: (Int -> f Int) -> GetKeyPairsResponse -> f GetKeyPairsResponse
getKeyPairsResponse_httpStatus = (GetKeyPairsResponse -> Int)
-> (GetKeyPairsResponse -> Int -> GetKeyPairsResponse)
-> Lens GetKeyPairsResponse GetKeyPairsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetKeyPairsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetKeyPairsResponse' :: GetKeyPairsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetKeyPairsResponse
s@GetKeyPairsResponse' {} Int
a -> GetKeyPairsResponse
s {$sel:httpStatus:GetKeyPairsResponse' :: Int
httpStatus = Int
a} :: GetKeyPairsResponse)
instance Prelude.NFData GetKeyPairsResponse