{-# 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.Wisdom.ListKnowledgeBases
(
ListKnowledgeBases (..),
newListKnowledgeBases,
listKnowledgeBases_nextToken,
listKnowledgeBases_maxResults,
ListKnowledgeBasesResponse (..),
newListKnowledgeBasesResponse,
listKnowledgeBasesResponse_nextToken,
listKnowledgeBasesResponse_httpStatus,
listKnowledgeBasesResponse_knowledgeBaseSummaries,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Wisdom.Types
data ListKnowledgeBases = ListKnowledgeBases'
{
ListKnowledgeBases -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListKnowledgeBases -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListKnowledgeBases -> ListKnowledgeBases -> Bool
(ListKnowledgeBases -> ListKnowledgeBases -> Bool)
-> (ListKnowledgeBases -> ListKnowledgeBases -> Bool)
-> Eq ListKnowledgeBases
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListKnowledgeBases -> ListKnowledgeBases -> Bool
$c/= :: ListKnowledgeBases -> ListKnowledgeBases -> Bool
== :: ListKnowledgeBases -> ListKnowledgeBases -> Bool
$c== :: ListKnowledgeBases -> ListKnowledgeBases -> Bool
Prelude.Eq, ReadPrec [ListKnowledgeBases]
ReadPrec ListKnowledgeBases
Int -> ReadS ListKnowledgeBases
ReadS [ListKnowledgeBases]
(Int -> ReadS ListKnowledgeBases)
-> ReadS [ListKnowledgeBases]
-> ReadPrec ListKnowledgeBases
-> ReadPrec [ListKnowledgeBases]
-> Read ListKnowledgeBases
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListKnowledgeBases]
$creadListPrec :: ReadPrec [ListKnowledgeBases]
readPrec :: ReadPrec ListKnowledgeBases
$creadPrec :: ReadPrec ListKnowledgeBases
readList :: ReadS [ListKnowledgeBases]
$creadList :: ReadS [ListKnowledgeBases]
readsPrec :: Int -> ReadS ListKnowledgeBases
$creadsPrec :: Int -> ReadS ListKnowledgeBases
Prelude.Read, Int -> ListKnowledgeBases -> ShowS
[ListKnowledgeBases] -> ShowS
ListKnowledgeBases -> String
(Int -> ListKnowledgeBases -> ShowS)
-> (ListKnowledgeBases -> String)
-> ([ListKnowledgeBases] -> ShowS)
-> Show ListKnowledgeBases
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListKnowledgeBases] -> ShowS
$cshowList :: [ListKnowledgeBases] -> ShowS
show :: ListKnowledgeBases -> String
$cshow :: ListKnowledgeBases -> String
showsPrec :: Int -> ListKnowledgeBases -> ShowS
$cshowsPrec :: Int -> ListKnowledgeBases -> ShowS
Prelude.Show, (forall x. ListKnowledgeBases -> Rep ListKnowledgeBases x)
-> (forall x. Rep ListKnowledgeBases x -> ListKnowledgeBases)
-> Generic ListKnowledgeBases
forall x. Rep ListKnowledgeBases x -> ListKnowledgeBases
forall x. ListKnowledgeBases -> Rep ListKnowledgeBases x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListKnowledgeBases x -> ListKnowledgeBases
$cfrom :: forall x. ListKnowledgeBases -> Rep ListKnowledgeBases x
Prelude.Generic)
newListKnowledgeBases ::
ListKnowledgeBases
newListKnowledgeBases :: ListKnowledgeBases
newListKnowledgeBases =
ListKnowledgeBases' :: Maybe Text -> Maybe Natural -> ListKnowledgeBases
ListKnowledgeBases'
{ $sel:nextToken:ListKnowledgeBases' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListKnowledgeBases' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listKnowledgeBases_nextToken :: Lens.Lens' ListKnowledgeBases (Prelude.Maybe Prelude.Text)
listKnowledgeBases_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListKnowledgeBases -> f ListKnowledgeBases
listKnowledgeBases_nextToken = (ListKnowledgeBases -> Maybe Text)
-> (ListKnowledgeBases -> Maybe Text -> ListKnowledgeBases)
-> Lens
ListKnowledgeBases ListKnowledgeBases (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListKnowledgeBases' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListKnowledgeBases' :: ListKnowledgeBases -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListKnowledgeBases
s@ListKnowledgeBases' {} Maybe Text
a -> ListKnowledgeBases
s {$sel:nextToken:ListKnowledgeBases' :: Maybe Text
nextToken = Maybe Text
a} :: ListKnowledgeBases)
listKnowledgeBases_maxResults :: Lens.Lens' ListKnowledgeBases (Prelude.Maybe Prelude.Natural)
listKnowledgeBases_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListKnowledgeBases -> f ListKnowledgeBases
listKnowledgeBases_maxResults = (ListKnowledgeBases -> Maybe Natural)
-> (ListKnowledgeBases -> Maybe Natural -> ListKnowledgeBases)
-> Lens
ListKnowledgeBases
ListKnowledgeBases
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListKnowledgeBases' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListKnowledgeBases' :: ListKnowledgeBases -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListKnowledgeBases
s@ListKnowledgeBases' {} Maybe Natural
a -> ListKnowledgeBases
s {$sel:maxResults:ListKnowledgeBases' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListKnowledgeBases)
instance Core.AWSPager ListKnowledgeBases where
page :: ListKnowledgeBases
-> AWSResponse ListKnowledgeBases -> Maybe ListKnowledgeBases
page ListKnowledgeBases
rq AWSResponse ListKnowledgeBases
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListKnowledgeBases
ListKnowledgeBasesResponse
rs
ListKnowledgeBasesResponse
-> Getting (First Text) ListKnowledgeBasesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListKnowledgeBasesResponse
-> Const (First Text) ListKnowledgeBasesResponse
Lens' ListKnowledgeBasesResponse (Maybe Text)
listKnowledgeBasesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListKnowledgeBasesResponse
-> Const (First Text) ListKnowledgeBasesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListKnowledgeBasesResponse 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 ListKnowledgeBases
forall a. Maybe a
Prelude.Nothing
| [KnowledgeBaseSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListKnowledgeBases
ListKnowledgeBasesResponse
rs
ListKnowledgeBasesResponse
-> Getting
[KnowledgeBaseSummary]
ListKnowledgeBasesResponse
[KnowledgeBaseSummary]
-> [KnowledgeBaseSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[KnowledgeBaseSummary]
ListKnowledgeBasesResponse
[KnowledgeBaseSummary]
Lens' ListKnowledgeBasesResponse [KnowledgeBaseSummary]
listKnowledgeBasesResponse_knowledgeBaseSummaries
) =
Maybe ListKnowledgeBases
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListKnowledgeBases -> Maybe ListKnowledgeBases
forall a. a -> Maybe a
Prelude.Just (ListKnowledgeBases -> Maybe ListKnowledgeBases)
-> ListKnowledgeBases -> Maybe ListKnowledgeBases
forall a b. (a -> b) -> a -> b
Prelude.$
ListKnowledgeBases
rq
ListKnowledgeBases
-> (ListKnowledgeBases -> ListKnowledgeBases) -> ListKnowledgeBases
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListKnowledgeBases -> Identity ListKnowledgeBases
Lens
ListKnowledgeBases ListKnowledgeBases (Maybe Text) (Maybe Text)
listKnowledgeBases_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListKnowledgeBases -> Identity ListKnowledgeBases)
-> Maybe Text -> ListKnowledgeBases -> ListKnowledgeBases
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListKnowledgeBases
ListKnowledgeBasesResponse
rs
ListKnowledgeBasesResponse
-> Getting (First Text) ListKnowledgeBasesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListKnowledgeBasesResponse
-> Const (First Text) ListKnowledgeBasesResponse
Lens' ListKnowledgeBasesResponse (Maybe Text)
listKnowledgeBasesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListKnowledgeBasesResponse
-> Const (First Text) ListKnowledgeBasesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListKnowledgeBasesResponse 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 ListKnowledgeBases where
type
AWSResponse ListKnowledgeBases =
ListKnowledgeBasesResponse
request :: ListKnowledgeBases -> Request ListKnowledgeBases
request = Service -> ListKnowledgeBases -> Request ListKnowledgeBases
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListKnowledgeBases
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListKnowledgeBases)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListKnowledgeBases))
-> Logger
-> Service
-> Proxy ListKnowledgeBases
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListKnowledgeBases)))
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
-> Int -> [KnowledgeBaseSummary] -> ListKnowledgeBasesResponse
ListKnowledgeBasesResponse'
(Maybe Text
-> Int -> [KnowledgeBaseSummary] -> ListKnowledgeBasesResponse)
-> Either String (Maybe Text)
-> Either
String
(Int -> [KnowledgeBaseSummary] -> ListKnowledgeBasesResponse)
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
"nextToken")
Either
String
(Int -> [KnowledgeBaseSummary] -> ListKnowledgeBasesResponse)
-> Either String Int
-> Either
String ([KnowledgeBaseSummary] -> ListKnowledgeBasesResponse)
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))
Either
String ([KnowledgeBaseSummary] -> ListKnowledgeBasesResponse)
-> Either String [KnowledgeBaseSummary]
-> Either String ListKnowledgeBasesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [KnowledgeBaseSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"knowledgeBaseSummaries"
Either String (Maybe [KnowledgeBaseSummary])
-> [KnowledgeBaseSummary] -> Either String [KnowledgeBaseSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [KnowledgeBaseSummary]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ListKnowledgeBases
instance Prelude.NFData ListKnowledgeBases
instance Core.ToHeaders ListKnowledgeBases where
toHeaders :: ListKnowledgeBases -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListKnowledgeBases -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath ListKnowledgeBases where
toPath :: ListKnowledgeBases -> ByteString
toPath = ByteString -> ListKnowledgeBases -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/knowledgeBases"
instance Core.ToQuery ListKnowledgeBases where
toQuery :: ListKnowledgeBases -> QueryString
toQuery ListKnowledgeBases' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListKnowledgeBases' :: ListKnowledgeBases -> Maybe Natural
$sel:nextToken:ListKnowledgeBases' :: ListKnowledgeBases -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListKnowledgeBasesResponse = ListKnowledgeBasesResponse'
{
ListKnowledgeBasesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListKnowledgeBasesResponse -> Int
httpStatus :: Prelude.Int,
ListKnowledgeBasesResponse -> [KnowledgeBaseSummary]
knowledgeBaseSummaries :: [KnowledgeBaseSummary]
}
deriving (ListKnowledgeBasesResponse -> ListKnowledgeBasesResponse -> Bool
(ListKnowledgeBasesResponse -> ListKnowledgeBasesResponse -> Bool)
-> (ListKnowledgeBasesResponse
-> ListKnowledgeBasesResponse -> Bool)
-> Eq ListKnowledgeBasesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListKnowledgeBasesResponse -> ListKnowledgeBasesResponse -> Bool
$c/= :: ListKnowledgeBasesResponse -> ListKnowledgeBasesResponse -> Bool
== :: ListKnowledgeBasesResponse -> ListKnowledgeBasesResponse -> Bool
$c== :: ListKnowledgeBasesResponse -> ListKnowledgeBasesResponse -> Bool
Prelude.Eq, ReadPrec [ListKnowledgeBasesResponse]
ReadPrec ListKnowledgeBasesResponse
Int -> ReadS ListKnowledgeBasesResponse
ReadS [ListKnowledgeBasesResponse]
(Int -> ReadS ListKnowledgeBasesResponse)
-> ReadS [ListKnowledgeBasesResponse]
-> ReadPrec ListKnowledgeBasesResponse
-> ReadPrec [ListKnowledgeBasesResponse]
-> Read ListKnowledgeBasesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListKnowledgeBasesResponse]
$creadListPrec :: ReadPrec [ListKnowledgeBasesResponse]
readPrec :: ReadPrec ListKnowledgeBasesResponse
$creadPrec :: ReadPrec ListKnowledgeBasesResponse
readList :: ReadS [ListKnowledgeBasesResponse]
$creadList :: ReadS [ListKnowledgeBasesResponse]
readsPrec :: Int -> ReadS ListKnowledgeBasesResponse
$creadsPrec :: Int -> ReadS ListKnowledgeBasesResponse
Prelude.Read, Int -> ListKnowledgeBasesResponse -> ShowS
[ListKnowledgeBasesResponse] -> ShowS
ListKnowledgeBasesResponse -> String
(Int -> ListKnowledgeBasesResponse -> ShowS)
-> (ListKnowledgeBasesResponse -> String)
-> ([ListKnowledgeBasesResponse] -> ShowS)
-> Show ListKnowledgeBasesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListKnowledgeBasesResponse] -> ShowS
$cshowList :: [ListKnowledgeBasesResponse] -> ShowS
show :: ListKnowledgeBasesResponse -> String
$cshow :: ListKnowledgeBasesResponse -> String
showsPrec :: Int -> ListKnowledgeBasesResponse -> ShowS
$cshowsPrec :: Int -> ListKnowledgeBasesResponse -> ShowS
Prelude.Show, (forall x.
ListKnowledgeBasesResponse -> Rep ListKnowledgeBasesResponse x)
-> (forall x.
Rep ListKnowledgeBasesResponse x -> ListKnowledgeBasesResponse)
-> Generic ListKnowledgeBasesResponse
forall x.
Rep ListKnowledgeBasesResponse x -> ListKnowledgeBasesResponse
forall x.
ListKnowledgeBasesResponse -> Rep ListKnowledgeBasesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListKnowledgeBasesResponse x -> ListKnowledgeBasesResponse
$cfrom :: forall x.
ListKnowledgeBasesResponse -> Rep ListKnowledgeBasesResponse x
Prelude.Generic)
newListKnowledgeBasesResponse ::
Prelude.Int ->
ListKnowledgeBasesResponse
newListKnowledgeBasesResponse :: Int -> ListKnowledgeBasesResponse
newListKnowledgeBasesResponse Int
pHttpStatus_ =
ListKnowledgeBasesResponse' :: Maybe Text
-> Int -> [KnowledgeBaseSummary] -> ListKnowledgeBasesResponse
ListKnowledgeBasesResponse'
{ $sel:nextToken:ListKnowledgeBasesResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListKnowledgeBasesResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:knowledgeBaseSummaries:ListKnowledgeBasesResponse' :: [KnowledgeBaseSummary]
knowledgeBaseSummaries = [KnowledgeBaseSummary]
forall a. Monoid a => a
Prelude.mempty
}
listKnowledgeBasesResponse_nextToken :: Lens.Lens' ListKnowledgeBasesResponse (Prelude.Maybe Prelude.Text)
listKnowledgeBasesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListKnowledgeBasesResponse -> f ListKnowledgeBasesResponse
listKnowledgeBasesResponse_nextToken = (ListKnowledgeBasesResponse -> Maybe Text)
-> (ListKnowledgeBasesResponse
-> Maybe Text -> ListKnowledgeBasesResponse)
-> Lens' ListKnowledgeBasesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListKnowledgeBasesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListKnowledgeBasesResponse' :: ListKnowledgeBasesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListKnowledgeBasesResponse
s@ListKnowledgeBasesResponse' {} Maybe Text
a -> ListKnowledgeBasesResponse
s {$sel:nextToken:ListKnowledgeBasesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListKnowledgeBasesResponse)
listKnowledgeBasesResponse_httpStatus :: Lens.Lens' ListKnowledgeBasesResponse Prelude.Int
listKnowledgeBasesResponse_httpStatus :: (Int -> f Int)
-> ListKnowledgeBasesResponse -> f ListKnowledgeBasesResponse
listKnowledgeBasesResponse_httpStatus = (ListKnowledgeBasesResponse -> Int)
-> (ListKnowledgeBasesResponse
-> Int -> ListKnowledgeBasesResponse)
-> Lens
ListKnowledgeBasesResponse ListKnowledgeBasesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListKnowledgeBasesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListKnowledgeBasesResponse' :: ListKnowledgeBasesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListKnowledgeBasesResponse
s@ListKnowledgeBasesResponse' {} Int
a -> ListKnowledgeBasesResponse
s {$sel:httpStatus:ListKnowledgeBasesResponse' :: Int
httpStatus = Int
a} :: ListKnowledgeBasesResponse)
listKnowledgeBasesResponse_knowledgeBaseSummaries :: Lens.Lens' ListKnowledgeBasesResponse [KnowledgeBaseSummary]
listKnowledgeBasesResponse_knowledgeBaseSummaries :: ([KnowledgeBaseSummary] -> f [KnowledgeBaseSummary])
-> ListKnowledgeBasesResponse -> f ListKnowledgeBasesResponse
listKnowledgeBasesResponse_knowledgeBaseSummaries = (ListKnowledgeBasesResponse -> [KnowledgeBaseSummary])
-> (ListKnowledgeBasesResponse
-> [KnowledgeBaseSummary] -> ListKnowledgeBasesResponse)
-> Lens' ListKnowledgeBasesResponse [KnowledgeBaseSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListKnowledgeBasesResponse' {[KnowledgeBaseSummary]
knowledgeBaseSummaries :: [KnowledgeBaseSummary]
$sel:knowledgeBaseSummaries:ListKnowledgeBasesResponse' :: ListKnowledgeBasesResponse -> [KnowledgeBaseSummary]
knowledgeBaseSummaries} -> [KnowledgeBaseSummary]
knowledgeBaseSummaries) (\s :: ListKnowledgeBasesResponse
s@ListKnowledgeBasesResponse' {} [KnowledgeBaseSummary]
a -> ListKnowledgeBasesResponse
s {$sel:knowledgeBaseSummaries:ListKnowledgeBasesResponse' :: [KnowledgeBaseSummary]
knowledgeBaseSummaries = [KnowledgeBaseSummary]
a} :: ListKnowledgeBasesResponse) (([KnowledgeBaseSummary] -> f [KnowledgeBaseSummary])
-> ListKnowledgeBasesResponse -> f ListKnowledgeBasesResponse)
-> (([KnowledgeBaseSummary] -> f [KnowledgeBaseSummary])
-> [KnowledgeBaseSummary] -> f [KnowledgeBaseSummary])
-> ([KnowledgeBaseSummary] -> f [KnowledgeBaseSummary])
-> ListKnowledgeBasesResponse
-> f ListKnowledgeBasesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([KnowledgeBaseSummary] -> f [KnowledgeBaseSummary])
-> [KnowledgeBaseSummary] -> f [KnowledgeBaseSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListKnowledgeBasesResponse