{-# 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.DMS.DescribeSchemas
(
DescribeSchemas (..),
newDescribeSchemas,
describeSchemas_marker,
describeSchemas_maxRecords,
describeSchemas_endpointArn,
DescribeSchemasResponse (..),
newDescribeSchemasResponse,
describeSchemasResponse_schemas,
describeSchemasResponse_marker,
describeSchemasResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DMS.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeSchemas = DescribeSchemas'
{
DescribeSchemas -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeSchemas -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
DescribeSchemas -> Text
endpointArn :: Prelude.Text
}
deriving (DescribeSchemas -> DescribeSchemas -> Bool
(DescribeSchemas -> DescribeSchemas -> Bool)
-> (DescribeSchemas -> DescribeSchemas -> Bool)
-> Eq DescribeSchemas
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSchemas -> DescribeSchemas -> Bool
$c/= :: DescribeSchemas -> DescribeSchemas -> Bool
== :: DescribeSchemas -> DescribeSchemas -> Bool
$c== :: DescribeSchemas -> DescribeSchemas -> Bool
Prelude.Eq, ReadPrec [DescribeSchemas]
ReadPrec DescribeSchemas
Int -> ReadS DescribeSchemas
ReadS [DescribeSchemas]
(Int -> ReadS DescribeSchemas)
-> ReadS [DescribeSchemas]
-> ReadPrec DescribeSchemas
-> ReadPrec [DescribeSchemas]
-> Read DescribeSchemas
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSchemas]
$creadListPrec :: ReadPrec [DescribeSchemas]
readPrec :: ReadPrec DescribeSchemas
$creadPrec :: ReadPrec DescribeSchemas
readList :: ReadS [DescribeSchemas]
$creadList :: ReadS [DescribeSchemas]
readsPrec :: Int -> ReadS DescribeSchemas
$creadsPrec :: Int -> ReadS DescribeSchemas
Prelude.Read, Int -> DescribeSchemas -> ShowS
[DescribeSchemas] -> ShowS
DescribeSchemas -> String
(Int -> DescribeSchemas -> ShowS)
-> (DescribeSchemas -> String)
-> ([DescribeSchemas] -> ShowS)
-> Show DescribeSchemas
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSchemas] -> ShowS
$cshowList :: [DescribeSchemas] -> ShowS
show :: DescribeSchemas -> String
$cshow :: DescribeSchemas -> String
showsPrec :: Int -> DescribeSchemas -> ShowS
$cshowsPrec :: Int -> DescribeSchemas -> ShowS
Prelude.Show, (forall x. DescribeSchemas -> Rep DescribeSchemas x)
-> (forall x. Rep DescribeSchemas x -> DescribeSchemas)
-> Generic DescribeSchemas
forall x. Rep DescribeSchemas x -> DescribeSchemas
forall x. DescribeSchemas -> Rep DescribeSchemas x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeSchemas x -> DescribeSchemas
$cfrom :: forall x. DescribeSchemas -> Rep DescribeSchemas x
Prelude.Generic)
newDescribeSchemas ::
Prelude.Text ->
DescribeSchemas
newDescribeSchemas :: Text -> DescribeSchemas
newDescribeSchemas Text
pEndpointArn_ =
DescribeSchemas' :: Maybe Text -> Maybe Int -> Text -> DescribeSchemas
DescribeSchemas'
{ $sel:marker:DescribeSchemas' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribeSchemas' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:endpointArn:DescribeSchemas' :: Text
endpointArn = Text
pEndpointArn_
}
describeSchemas_marker :: Lens.Lens' DescribeSchemas (Prelude.Maybe Prelude.Text)
describeSchemas_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeSchemas -> f DescribeSchemas
describeSchemas_marker = (DescribeSchemas -> Maybe Text)
-> (DescribeSchemas -> Maybe Text -> DescribeSchemas)
-> Lens DescribeSchemas DescribeSchemas (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemas' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeSchemas' :: DescribeSchemas -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeSchemas
s@DescribeSchemas' {} Maybe Text
a -> DescribeSchemas
s {$sel:marker:DescribeSchemas' :: Maybe Text
marker = Maybe Text
a} :: DescribeSchemas)
describeSchemas_maxRecords :: Lens.Lens' DescribeSchemas (Prelude.Maybe Prelude.Int)
describeSchemas_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeSchemas -> f DescribeSchemas
describeSchemas_maxRecords = (DescribeSchemas -> Maybe Int)
-> (DescribeSchemas -> Maybe Int -> DescribeSchemas)
-> Lens DescribeSchemas DescribeSchemas (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemas' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeSchemas' :: DescribeSchemas -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeSchemas
s@DescribeSchemas' {} Maybe Int
a -> DescribeSchemas
s {$sel:maxRecords:DescribeSchemas' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeSchemas)
describeSchemas_endpointArn :: Lens.Lens' DescribeSchemas Prelude.Text
describeSchemas_endpointArn :: (Text -> f Text) -> DescribeSchemas -> f DescribeSchemas
describeSchemas_endpointArn = (DescribeSchemas -> Text)
-> (DescribeSchemas -> Text -> DescribeSchemas)
-> Lens DescribeSchemas DescribeSchemas Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemas' {Text
endpointArn :: Text
$sel:endpointArn:DescribeSchemas' :: DescribeSchemas -> Text
endpointArn} -> Text
endpointArn) (\s :: DescribeSchemas
s@DescribeSchemas' {} Text
a -> DescribeSchemas
s {$sel:endpointArn:DescribeSchemas' :: Text
endpointArn = Text
a} :: DescribeSchemas)
instance Core.AWSPager DescribeSchemas where
page :: DescribeSchemas
-> AWSResponse DescribeSchemas -> Maybe DescribeSchemas
page DescribeSchemas
rq AWSResponse DescribeSchemas
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeSchemas
DescribeSchemasResponse
rs
DescribeSchemasResponse
-> Getting (First Text) DescribeSchemasResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeSchemasResponse
-> Const (First Text) DescribeSchemasResponse
Lens' DescribeSchemasResponse (Maybe Text)
describeSchemasResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeSchemasResponse
-> Const (First Text) DescribeSchemasResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeSchemasResponse 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 DescribeSchemas
forall a. Maybe a
Prelude.Nothing
| Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeSchemas
DescribeSchemasResponse
rs
DescribeSchemasResponse
-> Getting (First [Text]) DescribeSchemasResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> DescribeSchemasResponse
-> Const (First [Text]) DescribeSchemasResponse
Lens' DescribeSchemasResponse (Maybe [Text])
describeSchemasResponse_schemas ((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> DescribeSchemasResponse
-> Const (First [Text]) DescribeSchemasResponse)
-> (([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) DescribeSchemasResponse [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 DescribeSchemas
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeSchemas -> Maybe DescribeSchemas
forall a. a -> Maybe a
Prelude.Just (DescribeSchemas -> Maybe DescribeSchemas)
-> DescribeSchemas -> Maybe DescribeSchemas
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeSchemas
rq
DescribeSchemas
-> (DescribeSchemas -> DescribeSchemas) -> DescribeSchemas
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeSchemas -> Identity DescribeSchemas
Lens DescribeSchemas DescribeSchemas (Maybe Text) (Maybe Text)
describeSchemas_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeSchemas -> Identity DescribeSchemas)
-> Maybe Text -> DescribeSchemas -> DescribeSchemas
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeSchemas
DescribeSchemasResponse
rs
DescribeSchemasResponse
-> Getting (First Text) DescribeSchemasResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeSchemasResponse
-> Const (First Text) DescribeSchemasResponse
Lens' DescribeSchemasResponse (Maybe Text)
describeSchemasResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeSchemasResponse
-> Const (First Text) DescribeSchemasResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeSchemasResponse 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 DescribeSchemas where
type
AWSResponse DescribeSchemas =
DescribeSchemasResponse
request :: DescribeSchemas -> Request DescribeSchemas
request = Service -> DescribeSchemas -> Request DescribeSchemas
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeSchemas
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeSchemas)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeSchemas))
-> Logger
-> Service
-> Proxy DescribeSchemas
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeSchemas)))
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 Text -> Int -> DescribeSchemasResponse
DescribeSchemasResponse'
(Maybe [Text] -> Maybe Text -> Int -> DescribeSchemasResponse)
-> Either String (Maybe [Text])
-> Either String (Maybe Text -> Int -> DescribeSchemasResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Schemas" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> DescribeSchemasResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeSchemasResponse)
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
"Marker")
Either String (Int -> DescribeSchemasResponse)
-> Either String Int -> Either String DescribeSchemasResponse
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 DescribeSchemas
instance Prelude.NFData DescribeSchemas
instance Core.ToHeaders DescribeSchemas where
toHeaders :: DescribeSchemas -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeSchemas -> 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
"AmazonDMSv20160101.DescribeSchemas" ::
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 DescribeSchemas where
toJSON :: DescribeSchemas -> Value
toJSON DescribeSchemas' {Maybe Int
Maybe Text
Text
endpointArn :: Text
maxRecords :: Maybe Int
marker :: Maybe Text
$sel:endpointArn:DescribeSchemas' :: DescribeSchemas -> Text
$sel:maxRecords:DescribeSchemas' :: DescribeSchemas -> Maybe Int
$sel:marker:DescribeSchemas' :: DescribeSchemas -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Marker" 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
marker,
(Text
"MaxRecords" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxRecords,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"EndpointArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
endpointArn)
]
)
instance Core.ToPath DescribeSchemas where
toPath :: DescribeSchemas -> ByteString
toPath = ByteString -> DescribeSchemas -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeSchemas where
toQuery :: DescribeSchemas -> QueryString
toQuery = QueryString -> DescribeSchemas -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeSchemasResponse = DescribeSchemasResponse'
{
DescribeSchemasResponse -> Maybe [Text]
schemas :: Prelude.Maybe [Prelude.Text],
DescribeSchemasResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeSchemasResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeSchemasResponse -> DescribeSchemasResponse -> Bool
(DescribeSchemasResponse -> DescribeSchemasResponse -> Bool)
-> (DescribeSchemasResponse -> DescribeSchemasResponse -> Bool)
-> Eq DescribeSchemasResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSchemasResponse -> DescribeSchemasResponse -> Bool
$c/= :: DescribeSchemasResponse -> DescribeSchemasResponse -> Bool
== :: DescribeSchemasResponse -> DescribeSchemasResponse -> Bool
$c== :: DescribeSchemasResponse -> DescribeSchemasResponse -> Bool
Prelude.Eq, ReadPrec [DescribeSchemasResponse]
ReadPrec DescribeSchemasResponse
Int -> ReadS DescribeSchemasResponse
ReadS [DescribeSchemasResponse]
(Int -> ReadS DescribeSchemasResponse)
-> ReadS [DescribeSchemasResponse]
-> ReadPrec DescribeSchemasResponse
-> ReadPrec [DescribeSchemasResponse]
-> Read DescribeSchemasResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSchemasResponse]
$creadListPrec :: ReadPrec [DescribeSchemasResponse]
readPrec :: ReadPrec DescribeSchemasResponse
$creadPrec :: ReadPrec DescribeSchemasResponse
readList :: ReadS [DescribeSchemasResponse]
$creadList :: ReadS [DescribeSchemasResponse]
readsPrec :: Int -> ReadS DescribeSchemasResponse
$creadsPrec :: Int -> ReadS DescribeSchemasResponse
Prelude.Read, Int -> DescribeSchemasResponse -> ShowS
[DescribeSchemasResponse] -> ShowS
DescribeSchemasResponse -> String
(Int -> DescribeSchemasResponse -> ShowS)
-> (DescribeSchemasResponse -> String)
-> ([DescribeSchemasResponse] -> ShowS)
-> Show DescribeSchemasResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSchemasResponse] -> ShowS
$cshowList :: [DescribeSchemasResponse] -> ShowS
show :: DescribeSchemasResponse -> String
$cshow :: DescribeSchemasResponse -> String
showsPrec :: Int -> DescribeSchemasResponse -> ShowS
$cshowsPrec :: Int -> DescribeSchemasResponse -> ShowS
Prelude.Show, (forall x.
DescribeSchemasResponse -> Rep DescribeSchemasResponse x)
-> (forall x.
Rep DescribeSchemasResponse x -> DescribeSchemasResponse)
-> Generic DescribeSchemasResponse
forall x. Rep DescribeSchemasResponse x -> DescribeSchemasResponse
forall x. DescribeSchemasResponse -> Rep DescribeSchemasResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeSchemasResponse x -> DescribeSchemasResponse
$cfrom :: forall x. DescribeSchemasResponse -> Rep DescribeSchemasResponse x
Prelude.Generic)
newDescribeSchemasResponse ::
Prelude.Int ->
DescribeSchemasResponse
newDescribeSchemasResponse :: Int -> DescribeSchemasResponse
newDescribeSchemasResponse Int
pHttpStatus_ =
DescribeSchemasResponse' :: Maybe [Text] -> Maybe Text -> Int -> DescribeSchemasResponse
DescribeSchemasResponse'
{ $sel:schemas:DescribeSchemasResponse' :: Maybe [Text]
schemas = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribeSchemasResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeSchemasResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeSchemasResponse_schemas :: Lens.Lens' DescribeSchemasResponse (Prelude.Maybe [Prelude.Text])
describeSchemasResponse_schemas :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeSchemasResponse -> f DescribeSchemasResponse
describeSchemasResponse_schemas = (DescribeSchemasResponse -> Maybe [Text])
-> (DescribeSchemasResponse
-> Maybe [Text] -> DescribeSchemasResponse)
-> Lens' DescribeSchemasResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemasResponse' {Maybe [Text]
schemas :: Maybe [Text]
$sel:schemas:DescribeSchemasResponse' :: DescribeSchemasResponse -> Maybe [Text]
schemas} -> Maybe [Text]
schemas) (\s :: DescribeSchemasResponse
s@DescribeSchemasResponse' {} Maybe [Text]
a -> DescribeSchemasResponse
s {$sel:schemas:DescribeSchemasResponse' :: Maybe [Text]
schemas = Maybe [Text]
a} :: DescribeSchemasResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeSchemasResponse -> f DescribeSchemasResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeSchemasResponse
-> f DescribeSchemasResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeSchemasResponse_marker :: Lens.Lens' DescribeSchemasResponse (Prelude.Maybe Prelude.Text)
describeSchemasResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeSchemasResponse -> f DescribeSchemasResponse
describeSchemasResponse_marker = (DescribeSchemasResponse -> Maybe Text)
-> (DescribeSchemasResponse
-> Maybe Text -> DescribeSchemasResponse)
-> Lens' DescribeSchemasResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemasResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeSchemasResponse' :: DescribeSchemasResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeSchemasResponse
s@DescribeSchemasResponse' {} Maybe Text
a -> DescribeSchemasResponse
s {$sel:marker:DescribeSchemasResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeSchemasResponse)
describeSchemasResponse_httpStatus :: Lens.Lens' DescribeSchemasResponse Prelude.Int
describeSchemasResponse_httpStatus :: (Int -> f Int)
-> DescribeSchemasResponse -> f DescribeSchemasResponse
describeSchemasResponse_httpStatus = (DescribeSchemasResponse -> Int)
-> (DescribeSchemasResponse -> Int -> DescribeSchemasResponse)
-> Lens DescribeSchemasResponse DescribeSchemasResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSchemasResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeSchemasResponse' :: DescribeSchemasResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeSchemasResponse
s@DescribeSchemasResponse' {} Int
a -> DescribeSchemasResponse
s {$sel:httpStatus:DescribeSchemasResponse' :: Int
httpStatus = Int
a} :: DescribeSchemasResponse)
instance Prelude.NFData DescribeSchemasResponse