{-# 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.Schemas.ListSchemas
(
ListSchemas (..),
newListSchemas,
listSchemas_schemaNamePrefix,
listSchemas_nextToken,
listSchemas_limit,
listSchemas_registryName,
ListSchemasResponse (..),
newListSchemasResponse,
listSchemasResponse_schemas,
listSchemasResponse_nextToken,
listSchemasResponse_httpStatus,
)
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.Schemas.Types
data ListSchemas = ListSchemas'
{
ListSchemas -> Maybe Text
schemaNamePrefix :: Prelude.Maybe Prelude.Text,
ListSchemas -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSchemas -> Maybe Int
limit :: Prelude.Maybe Prelude.Int,
ListSchemas -> Text
registryName :: Prelude.Text
}
deriving (ListSchemas -> ListSchemas -> Bool
(ListSchemas -> ListSchemas -> Bool)
-> (ListSchemas -> ListSchemas -> Bool) -> Eq ListSchemas
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSchemas -> ListSchemas -> Bool
$c/= :: ListSchemas -> ListSchemas -> Bool
== :: ListSchemas -> ListSchemas -> Bool
$c== :: ListSchemas -> ListSchemas -> Bool
Prelude.Eq, ReadPrec [ListSchemas]
ReadPrec ListSchemas
Int -> ReadS ListSchemas
ReadS [ListSchemas]
(Int -> ReadS ListSchemas)
-> ReadS [ListSchemas]
-> ReadPrec ListSchemas
-> ReadPrec [ListSchemas]
-> Read ListSchemas
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSchemas]
$creadListPrec :: ReadPrec [ListSchemas]
readPrec :: ReadPrec ListSchemas
$creadPrec :: ReadPrec ListSchemas
readList :: ReadS [ListSchemas]
$creadList :: ReadS [ListSchemas]
readsPrec :: Int -> ReadS ListSchemas
$creadsPrec :: Int -> ReadS ListSchemas
Prelude.Read, Int -> ListSchemas -> ShowS
[ListSchemas] -> ShowS
ListSchemas -> String
(Int -> ListSchemas -> ShowS)
-> (ListSchemas -> String)
-> ([ListSchemas] -> ShowS)
-> Show ListSchemas
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSchemas] -> ShowS
$cshowList :: [ListSchemas] -> ShowS
show :: ListSchemas -> String
$cshow :: ListSchemas -> String
showsPrec :: Int -> ListSchemas -> ShowS
$cshowsPrec :: Int -> ListSchemas -> ShowS
Prelude.Show, (forall x. ListSchemas -> Rep ListSchemas x)
-> (forall x. Rep ListSchemas x -> ListSchemas)
-> Generic ListSchemas
forall x. Rep ListSchemas x -> ListSchemas
forall x. ListSchemas -> Rep ListSchemas x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSchemas x -> ListSchemas
$cfrom :: forall x. ListSchemas -> Rep ListSchemas x
Prelude.Generic)
newListSchemas ::
Prelude.Text ->
ListSchemas
newListSchemas :: Text -> ListSchemas
newListSchemas Text
pRegistryName_ =
ListSchemas' :: Maybe Text -> Maybe Text -> Maybe Int -> Text -> ListSchemas
ListSchemas'
{ $sel:schemaNamePrefix:ListSchemas' :: Maybe Text
schemaNamePrefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListSchemas' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListSchemas' :: Maybe Int
limit = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:registryName:ListSchemas' :: Text
registryName = Text
pRegistryName_
}
listSchemas_schemaNamePrefix :: Lens.Lens' ListSchemas (Prelude.Maybe Prelude.Text)
listSchemas_schemaNamePrefix :: (Maybe Text -> f (Maybe Text)) -> ListSchemas -> f ListSchemas
listSchemas_schemaNamePrefix = (ListSchemas -> Maybe Text)
-> (ListSchemas -> Maybe Text -> ListSchemas)
-> Lens ListSchemas ListSchemas (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSchemas' {Maybe Text
schemaNamePrefix :: Maybe Text
$sel:schemaNamePrefix:ListSchemas' :: ListSchemas -> Maybe Text
schemaNamePrefix} -> Maybe Text
schemaNamePrefix) (\s :: ListSchemas
s@ListSchemas' {} Maybe Text
a -> ListSchemas
s {$sel:schemaNamePrefix:ListSchemas' :: Maybe Text
schemaNamePrefix = Maybe Text
a} :: ListSchemas)
listSchemas_nextToken :: Lens.Lens' ListSchemas (Prelude.Maybe Prelude.Text)
listSchemas_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListSchemas -> f ListSchemas
listSchemas_nextToken = (ListSchemas -> Maybe Text)
-> (ListSchemas -> Maybe Text -> ListSchemas)
-> Lens ListSchemas ListSchemas (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSchemas' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSchemas' :: ListSchemas -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSchemas
s@ListSchemas' {} Maybe Text
a -> ListSchemas
s {$sel:nextToken:ListSchemas' :: Maybe Text
nextToken = Maybe Text
a} :: ListSchemas)
listSchemas_limit :: Lens.Lens' ListSchemas (Prelude.Maybe Prelude.Int)
listSchemas_limit :: (Maybe Int -> f (Maybe Int)) -> ListSchemas -> f ListSchemas
listSchemas_limit = (ListSchemas -> Maybe Int)
-> (ListSchemas -> Maybe Int -> ListSchemas)
-> Lens ListSchemas ListSchemas (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSchemas' {Maybe Int
limit :: Maybe Int
$sel:limit:ListSchemas' :: ListSchemas -> Maybe Int
limit} -> Maybe Int
limit) (\s :: ListSchemas
s@ListSchemas' {} Maybe Int
a -> ListSchemas
s {$sel:limit:ListSchemas' :: Maybe Int
limit = Maybe Int
a} :: ListSchemas)
listSchemas_registryName :: Lens.Lens' ListSchemas Prelude.Text
listSchemas_registryName :: (Text -> f Text) -> ListSchemas -> f ListSchemas
listSchemas_registryName = (ListSchemas -> Text)
-> (ListSchemas -> Text -> ListSchemas)
-> Lens ListSchemas ListSchemas Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSchemas' {Text
registryName :: Text
$sel:registryName:ListSchemas' :: ListSchemas -> Text
registryName} -> Text
registryName) (\s :: ListSchemas
s@ListSchemas' {} Text
a -> ListSchemas
s {$sel:registryName:ListSchemas' :: Text
registryName = Text
a} :: ListSchemas)
instance Core.AWSPager ListSchemas where
page :: ListSchemas -> AWSResponse ListSchemas -> Maybe ListSchemas
page ListSchemas
rq AWSResponse ListSchemas
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSchemas
ListSchemasResponse
rs
ListSchemasResponse
-> Getting (First Text) ListSchemasResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSchemasResponse -> Const (First Text) ListSchemasResponse
Lens' ListSchemasResponse (Maybe Text)
listSchemasResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSchemasResponse -> Const (First Text) ListSchemasResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSchemasResponse 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 ListSchemas
forall a. Maybe a
Prelude.Nothing
| Maybe [SchemaSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSchemas
ListSchemasResponse
rs
ListSchemasResponse
-> Getting
(First [SchemaSummary]) ListSchemasResponse [SchemaSummary]
-> Maybe [SchemaSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SchemaSummary]
-> Const (First [SchemaSummary]) (Maybe [SchemaSummary]))
-> ListSchemasResponse
-> Const (First [SchemaSummary]) ListSchemasResponse
Lens' ListSchemasResponse (Maybe [SchemaSummary])
listSchemasResponse_schemas ((Maybe [SchemaSummary]
-> Const (First [SchemaSummary]) (Maybe [SchemaSummary]))
-> ListSchemasResponse
-> Const (First [SchemaSummary]) ListSchemasResponse)
-> (([SchemaSummary]
-> Const (First [SchemaSummary]) [SchemaSummary])
-> Maybe [SchemaSummary]
-> Const (First [SchemaSummary]) (Maybe [SchemaSummary]))
-> Getting
(First [SchemaSummary]) ListSchemasResponse [SchemaSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SchemaSummary] -> Const (First [SchemaSummary]) [SchemaSummary])
-> Maybe [SchemaSummary]
-> Const (First [SchemaSummary]) (Maybe [SchemaSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListSchemas
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListSchemas -> Maybe ListSchemas
forall a. a -> Maybe a
Prelude.Just (ListSchemas -> Maybe ListSchemas)
-> ListSchemas -> Maybe ListSchemas
forall a b. (a -> b) -> a -> b
Prelude.$
ListSchemas
rq
ListSchemas -> (ListSchemas -> ListSchemas) -> ListSchemas
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListSchemas -> Identity ListSchemas
Lens ListSchemas ListSchemas (Maybe Text) (Maybe Text)
listSchemas_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListSchemas -> Identity ListSchemas)
-> Maybe Text -> ListSchemas -> ListSchemas
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSchemas
ListSchemasResponse
rs
ListSchemasResponse
-> Getting (First Text) ListSchemasResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSchemasResponse -> Const (First Text) ListSchemasResponse
Lens' ListSchemasResponse (Maybe Text)
listSchemasResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSchemasResponse -> Const (First Text) ListSchemasResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSchemasResponse 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 ListSchemas where
type AWSResponse ListSchemas = ListSchemasResponse
request :: ListSchemas -> Request ListSchemas
request = Service -> ListSchemas -> Request ListSchemas
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListSchemas
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListSchemas)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListSchemas))
-> Logger
-> Service
-> Proxy ListSchemas
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListSchemas)))
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 [SchemaSummary] -> Maybe Text -> Int -> ListSchemasResponse
ListSchemasResponse'
(Maybe [SchemaSummary] -> Maybe Text -> Int -> ListSchemasResponse)
-> Either String (Maybe [SchemaSummary])
-> Either String (Maybe Text -> Int -> ListSchemasResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [SchemaSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Schemas" Either String (Maybe (Maybe [SchemaSummary]))
-> Maybe [SchemaSummary] -> Either String (Maybe [SchemaSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SchemaSummary]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListSchemasResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListSchemasResponse)
forall (f :: * -> *) a b. Applicative f => 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 -> ListSchemasResponse)
-> Either String Int -> Either String ListSchemasResponse
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 ListSchemas
instance Prelude.NFData ListSchemas
instance Core.ToHeaders ListSchemas where
toHeaders :: ListSchemas -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListSchemas -> 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 ListSchemas where
toPath :: ListSchemas -> ByteString
toPath ListSchemas' {Maybe Int
Maybe Text
Text
registryName :: Text
limit :: Maybe Int
nextToken :: Maybe Text
schemaNamePrefix :: Maybe Text
$sel:registryName:ListSchemas' :: ListSchemas -> Text
$sel:limit:ListSchemas' :: ListSchemas -> Maybe Int
$sel:nextToken:ListSchemas' :: ListSchemas -> Maybe Text
$sel:schemaNamePrefix:ListSchemas' :: ListSchemas -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v1/registries/name/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
registryName,
ByteString
"/schemas"
]
instance Core.ToQuery ListSchemas where
toQuery :: ListSchemas -> QueryString
toQuery ListSchemas' {Maybe Int
Maybe Text
Text
registryName :: Text
limit :: Maybe Int
nextToken :: Maybe Text
schemaNamePrefix :: Maybe Text
$sel:registryName:ListSchemas' :: ListSchemas -> Text
$sel:limit:ListSchemas' :: ListSchemas -> Maybe Int
$sel:nextToken:ListSchemas' :: ListSchemas -> Maybe Text
$sel:schemaNamePrefix:ListSchemas' :: ListSchemas -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"schemaNamePrefix" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
schemaNamePrefix,
ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"limit" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
limit
]
data ListSchemasResponse = ListSchemasResponse'
{
ListSchemasResponse -> Maybe [SchemaSummary]
schemas :: Prelude.Maybe [SchemaSummary],
ListSchemasResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSchemasResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSchemasResponse -> ListSchemasResponse -> Bool
(ListSchemasResponse -> ListSchemasResponse -> Bool)
-> (ListSchemasResponse -> ListSchemasResponse -> Bool)
-> Eq ListSchemasResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSchemasResponse -> ListSchemasResponse -> Bool
$c/= :: ListSchemasResponse -> ListSchemasResponse -> Bool
== :: ListSchemasResponse -> ListSchemasResponse -> Bool
$c== :: ListSchemasResponse -> ListSchemasResponse -> Bool
Prelude.Eq, ReadPrec [ListSchemasResponse]
ReadPrec ListSchemasResponse
Int -> ReadS ListSchemasResponse
ReadS [ListSchemasResponse]
(Int -> ReadS ListSchemasResponse)
-> ReadS [ListSchemasResponse]
-> ReadPrec ListSchemasResponse
-> ReadPrec [ListSchemasResponse]
-> Read ListSchemasResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSchemasResponse]
$creadListPrec :: ReadPrec [ListSchemasResponse]
readPrec :: ReadPrec ListSchemasResponse
$creadPrec :: ReadPrec ListSchemasResponse
readList :: ReadS [ListSchemasResponse]
$creadList :: ReadS [ListSchemasResponse]
readsPrec :: Int -> ReadS ListSchemasResponse
$creadsPrec :: Int -> ReadS ListSchemasResponse
Prelude.Read, Int -> ListSchemasResponse -> ShowS
[ListSchemasResponse] -> ShowS
ListSchemasResponse -> String
(Int -> ListSchemasResponse -> ShowS)
-> (ListSchemasResponse -> String)
-> ([ListSchemasResponse] -> ShowS)
-> Show ListSchemasResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSchemasResponse] -> ShowS
$cshowList :: [ListSchemasResponse] -> ShowS
show :: ListSchemasResponse -> String
$cshow :: ListSchemasResponse -> String
showsPrec :: Int -> ListSchemasResponse -> ShowS
$cshowsPrec :: Int -> ListSchemasResponse -> ShowS
Prelude.Show, (forall x. ListSchemasResponse -> Rep ListSchemasResponse x)
-> (forall x. Rep ListSchemasResponse x -> ListSchemasResponse)
-> Generic ListSchemasResponse
forall x. Rep ListSchemasResponse x -> ListSchemasResponse
forall x. ListSchemasResponse -> Rep ListSchemasResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSchemasResponse x -> ListSchemasResponse
$cfrom :: forall x. ListSchemasResponse -> Rep ListSchemasResponse x
Prelude.Generic)
newListSchemasResponse ::
Prelude.Int ->
ListSchemasResponse
newListSchemasResponse :: Int -> ListSchemasResponse
newListSchemasResponse Int
pHttpStatus_ =
ListSchemasResponse' :: Maybe [SchemaSummary] -> Maybe Text -> Int -> ListSchemasResponse
ListSchemasResponse'
{ $sel:schemas:ListSchemasResponse' :: Maybe [SchemaSummary]
schemas = Maybe [SchemaSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListSchemasResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSchemasResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSchemasResponse_schemas :: Lens.Lens' ListSchemasResponse (Prelude.Maybe [SchemaSummary])
listSchemasResponse_schemas :: (Maybe [SchemaSummary] -> f (Maybe [SchemaSummary]))
-> ListSchemasResponse -> f ListSchemasResponse
listSchemasResponse_schemas = (ListSchemasResponse -> Maybe [SchemaSummary])
-> (ListSchemasResponse
-> Maybe [SchemaSummary] -> ListSchemasResponse)
-> Lens' ListSchemasResponse (Maybe [SchemaSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSchemasResponse' {Maybe [SchemaSummary]
schemas :: Maybe [SchemaSummary]
$sel:schemas:ListSchemasResponse' :: ListSchemasResponse -> Maybe [SchemaSummary]
schemas} -> Maybe [SchemaSummary]
schemas) (\s :: ListSchemasResponse
s@ListSchemasResponse' {} Maybe [SchemaSummary]
a -> ListSchemasResponse
s {$sel:schemas:ListSchemasResponse' :: Maybe [SchemaSummary]
schemas = Maybe [SchemaSummary]
a} :: ListSchemasResponse) ((Maybe [SchemaSummary] -> f (Maybe [SchemaSummary]))
-> ListSchemasResponse -> f ListSchemasResponse)
-> ((Maybe [SchemaSummary] -> f (Maybe [SchemaSummary]))
-> Maybe [SchemaSummary] -> f (Maybe [SchemaSummary]))
-> (Maybe [SchemaSummary] -> f (Maybe [SchemaSummary]))
-> ListSchemasResponse
-> f ListSchemasResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SchemaSummary] [SchemaSummary] [SchemaSummary] [SchemaSummary]
-> Iso
(Maybe [SchemaSummary])
(Maybe [SchemaSummary])
(Maybe [SchemaSummary])
(Maybe [SchemaSummary])
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
[SchemaSummary] [SchemaSummary] [SchemaSummary] [SchemaSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listSchemasResponse_nextToken :: Lens.Lens' ListSchemasResponse (Prelude.Maybe Prelude.Text)
listSchemasResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSchemasResponse -> f ListSchemasResponse
listSchemasResponse_nextToken = (ListSchemasResponse -> Maybe Text)
-> (ListSchemasResponse -> Maybe Text -> ListSchemasResponse)
-> Lens' ListSchemasResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSchemasResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSchemasResponse' :: ListSchemasResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSchemasResponse
s@ListSchemasResponse' {} Maybe Text
a -> ListSchemasResponse
s {$sel:nextToken:ListSchemasResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSchemasResponse)
listSchemasResponse_httpStatus :: Lens.Lens' ListSchemasResponse Prelude.Int
listSchemasResponse_httpStatus :: (Int -> f Int) -> ListSchemasResponse -> f ListSchemasResponse
listSchemasResponse_httpStatus = (ListSchemasResponse -> Int)
-> (ListSchemasResponse -> Int -> ListSchemasResponse)
-> Lens ListSchemasResponse ListSchemasResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSchemasResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSchemasResponse' :: ListSchemasResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSchemasResponse
s@ListSchemasResponse' {} Int
a -> ListSchemasResponse
s {$sel:httpStatus:ListSchemasResponse' :: Int
httpStatus = Int
a} :: ListSchemasResponse)
instance Prelude.NFData ListSchemasResponse