{-# 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.CloudDirectory.ListPublishedSchemaArns
(
ListPublishedSchemaArns (..),
newListPublishedSchemaArns,
listPublishedSchemaArns_nextToken,
listPublishedSchemaArns_schemaArn,
listPublishedSchemaArns_maxResults,
ListPublishedSchemaArnsResponse (..),
newListPublishedSchemaArnsResponse,
listPublishedSchemaArnsResponse_schemaArns,
listPublishedSchemaArnsResponse_nextToken,
listPublishedSchemaArnsResponse_httpStatus,
)
where
import Amazonka.CloudDirectory.Types
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
data ListPublishedSchemaArns = ListPublishedSchemaArns'
{
ListPublishedSchemaArns -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPublishedSchemaArns -> Maybe Text
schemaArn :: Prelude.Maybe Prelude.Text,
ListPublishedSchemaArns -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListPublishedSchemaArns -> ListPublishedSchemaArns -> Bool
(ListPublishedSchemaArns -> ListPublishedSchemaArns -> Bool)
-> (ListPublishedSchemaArns -> ListPublishedSchemaArns -> Bool)
-> Eq ListPublishedSchemaArns
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPublishedSchemaArns -> ListPublishedSchemaArns -> Bool
$c/= :: ListPublishedSchemaArns -> ListPublishedSchemaArns -> Bool
== :: ListPublishedSchemaArns -> ListPublishedSchemaArns -> Bool
$c== :: ListPublishedSchemaArns -> ListPublishedSchemaArns -> Bool
Prelude.Eq, ReadPrec [ListPublishedSchemaArns]
ReadPrec ListPublishedSchemaArns
Int -> ReadS ListPublishedSchemaArns
ReadS [ListPublishedSchemaArns]
(Int -> ReadS ListPublishedSchemaArns)
-> ReadS [ListPublishedSchemaArns]
-> ReadPrec ListPublishedSchemaArns
-> ReadPrec [ListPublishedSchemaArns]
-> Read ListPublishedSchemaArns
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPublishedSchemaArns]
$creadListPrec :: ReadPrec [ListPublishedSchemaArns]
readPrec :: ReadPrec ListPublishedSchemaArns
$creadPrec :: ReadPrec ListPublishedSchemaArns
readList :: ReadS [ListPublishedSchemaArns]
$creadList :: ReadS [ListPublishedSchemaArns]
readsPrec :: Int -> ReadS ListPublishedSchemaArns
$creadsPrec :: Int -> ReadS ListPublishedSchemaArns
Prelude.Read, Int -> ListPublishedSchemaArns -> ShowS
[ListPublishedSchemaArns] -> ShowS
ListPublishedSchemaArns -> String
(Int -> ListPublishedSchemaArns -> ShowS)
-> (ListPublishedSchemaArns -> String)
-> ([ListPublishedSchemaArns] -> ShowS)
-> Show ListPublishedSchemaArns
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPublishedSchemaArns] -> ShowS
$cshowList :: [ListPublishedSchemaArns] -> ShowS
show :: ListPublishedSchemaArns -> String
$cshow :: ListPublishedSchemaArns -> String
showsPrec :: Int -> ListPublishedSchemaArns -> ShowS
$cshowsPrec :: Int -> ListPublishedSchemaArns -> ShowS
Prelude.Show, (forall x.
ListPublishedSchemaArns -> Rep ListPublishedSchemaArns x)
-> (forall x.
Rep ListPublishedSchemaArns x -> ListPublishedSchemaArns)
-> Generic ListPublishedSchemaArns
forall x. Rep ListPublishedSchemaArns x -> ListPublishedSchemaArns
forall x. ListPublishedSchemaArns -> Rep ListPublishedSchemaArns x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListPublishedSchemaArns x -> ListPublishedSchemaArns
$cfrom :: forall x. ListPublishedSchemaArns -> Rep ListPublishedSchemaArns x
Prelude.Generic)
newListPublishedSchemaArns ::
ListPublishedSchemaArns
newListPublishedSchemaArns :: ListPublishedSchemaArns
newListPublishedSchemaArns =
ListPublishedSchemaArns' :: Maybe Text
-> Maybe Text -> Maybe Natural -> ListPublishedSchemaArns
ListPublishedSchemaArns'
{ $sel:nextToken:ListPublishedSchemaArns' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:schemaArn:ListPublishedSchemaArns' :: Maybe Text
schemaArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListPublishedSchemaArns' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listPublishedSchemaArns_nextToken :: Lens.Lens' ListPublishedSchemaArns (Prelude.Maybe Prelude.Text)
listPublishedSchemaArns_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPublishedSchemaArns -> f ListPublishedSchemaArns
listPublishedSchemaArns_nextToken = (ListPublishedSchemaArns -> Maybe Text)
-> (ListPublishedSchemaArns
-> Maybe Text -> ListPublishedSchemaArns)
-> Lens
ListPublishedSchemaArns
ListPublishedSchemaArns
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPublishedSchemaArns' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPublishedSchemaArns' :: ListPublishedSchemaArns -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPublishedSchemaArns
s@ListPublishedSchemaArns' {} Maybe Text
a -> ListPublishedSchemaArns
s {$sel:nextToken:ListPublishedSchemaArns' :: Maybe Text
nextToken = Maybe Text
a} :: ListPublishedSchemaArns)
listPublishedSchemaArns_schemaArn :: Lens.Lens' ListPublishedSchemaArns (Prelude.Maybe Prelude.Text)
listPublishedSchemaArns_schemaArn :: (Maybe Text -> f (Maybe Text))
-> ListPublishedSchemaArns -> f ListPublishedSchemaArns
listPublishedSchemaArns_schemaArn = (ListPublishedSchemaArns -> Maybe Text)
-> (ListPublishedSchemaArns
-> Maybe Text -> ListPublishedSchemaArns)
-> Lens
ListPublishedSchemaArns
ListPublishedSchemaArns
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPublishedSchemaArns' {Maybe Text
schemaArn :: Maybe Text
$sel:schemaArn:ListPublishedSchemaArns' :: ListPublishedSchemaArns -> Maybe Text
schemaArn} -> Maybe Text
schemaArn) (\s :: ListPublishedSchemaArns
s@ListPublishedSchemaArns' {} Maybe Text
a -> ListPublishedSchemaArns
s {$sel:schemaArn:ListPublishedSchemaArns' :: Maybe Text
schemaArn = Maybe Text
a} :: ListPublishedSchemaArns)
listPublishedSchemaArns_maxResults :: Lens.Lens' ListPublishedSchemaArns (Prelude.Maybe Prelude.Natural)
listPublishedSchemaArns_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListPublishedSchemaArns -> f ListPublishedSchemaArns
listPublishedSchemaArns_maxResults = (ListPublishedSchemaArns -> Maybe Natural)
-> (ListPublishedSchemaArns
-> Maybe Natural -> ListPublishedSchemaArns)
-> Lens
ListPublishedSchemaArns
ListPublishedSchemaArns
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPublishedSchemaArns' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListPublishedSchemaArns' :: ListPublishedSchemaArns -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListPublishedSchemaArns
s@ListPublishedSchemaArns' {} Maybe Natural
a -> ListPublishedSchemaArns
s {$sel:maxResults:ListPublishedSchemaArns' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListPublishedSchemaArns)
instance Core.AWSPager ListPublishedSchemaArns where
page :: ListPublishedSchemaArns
-> AWSResponse ListPublishedSchemaArns
-> Maybe ListPublishedSchemaArns
page ListPublishedSchemaArns
rq AWSResponse ListPublishedSchemaArns
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListPublishedSchemaArns
ListPublishedSchemaArnsResponse
rs
ListPublishedSchemaArnsResponse
-> Getting (First Text) ListPublishedSchemaArnsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPublishedSchemaArnsResponse
-> Const (First Text) ListPublishedSchemaArnsResponse
Lens' ListPublishedSchemaArnsResponse (Maybe Text)
listPublishedSchemaArnsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPublishedSchemaArnsResponse
-> Const (First Text) ListPublishedSchemaArnsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPublishedSchemaArnsResponse 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 ListPublishedSchemaArns
forall a. Maybe a
Prelude.Nothing
| Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListPublishedSchemaArns
ListPublishedSchemaArnsResponse
rs
ListPublishedSchemaArnsResponse
-> Getting (First [Text]) ListPublishedSchemaArnsResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListPublishedSchemaArnsResponse
-> Const (First [Text]) ListPublishedSchemaArnsResponse
Lens' ListPublishedSchemaArnsResponse (Maybe [Text])
listPublishedSchemaArnsResponse_schemaArns
((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListPublishedSchemaArnsResponse
-> Const (First [Text]) ListPublishedSchemaArnsResponse)
-> (([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) ListPublishedSchemaArnsResponse [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 ListPublishedSchemaArns
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListPublishedSchemaArns -> Maybe ListPublishedSchemaArns
forall a. a -> Maybe a
Prelude.Just (ListPublishedSchemaArns -> Maybe ListPublishedSchemaArns)
-> ListPublishedSchemaArns -> Maybe ListPublishedSchemaArns
forall a b. (a -> b) -> a -> b
Prelude.$
ListPublishedSchemaArns
rq
ListPublishedSchemaArns
-> (ListPublishedSchemaArns -> ListPublishedSchemaArns)
-> ListPublishedSchemaArns
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListPublishedSchemaArns -> Identity ListPublishedSchemaArns
Lens
ListPublishedSchemaArns
ListPublishedSchemaArns
(Maybe Text)
(Maybe Text)
listPublishedSchemaArns_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListPublishedSchemaArns -> Identity ListPublishedSchemaArns)
-> Maybe Text -> ListPublishedSchemaArns -> ListPublishedSchemaArns
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListPublishedSchemaArns
ListPublishedSchemaArnsResponse
rs
ListPublishedSchemaArnsResponse
-> Getting (First Text) ListPublishedSchemaArnsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListPublishedSchemaArnsResponse
-> Const (First Text) ListPublishedSchemaArnsResponse
Lens' ListPublishedSchemaArnsResponse (Maybe Text)
listPublishedSchemaArnsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListPublishedSchemaArnsResponse
-> Const (First Text) ListPublishedSchemaArnsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListPublishedSchemaArnsResponse 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 ListPublishedSchemaArns where
type
AWSResponse ListPublishedSchemaArns =
ListPublishedSchemaArnsResponse
request :: ListPublishedSchemaArns -> Request ListPublishedSchemaArns
request = Service
-> ListPublishedSchemaArns -> Request ListPublishedSchemaArns
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListPublishedSchemaArns
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListPublishedSchemaArns)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListPublishedSchemaArns))
-> Logger
-> Service
-> Proxy ListPublishedSchemaArns
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListPublishedSchemaArns)))
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 -> ListPublishedSchemaArnsResponse
ListPublishedSchemaArnsResponse'
(Maybe [Text]
-> Maybe Text -> Int -> ListPublishedSchemaArnsResponse)
-> Either String (Maybe [Text])
-> Either
String (Maybe Text -> Int -> ListPublishedSchemaArnsResponse)
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
"SchemaArns" 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 -> ListPublishedSchemaArnsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListPublishedSchemaArnsResponse)
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 -> ListPublishedSchemaArnsResponse)
-> Either String Int
-> Either String ListPublishedSchemaArnsResponse
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 ListPublishedSchemaArns
instance Prelude.NFData ListPublishedSchemaArns
instance Core.ToHeaders ListPublishedSchemaArns where
toHeaders :: ListPublishedSchemaArns -> ResponseHeaders
toHeaders = ResponseHeaders -> ListPublishedSchemaArns -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON ListPublishedSchemaArns where
toJSON :: ListPublishedSchemaArns -> Value
toJSON ListPublishedSchemaArns' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
schemaArn :: Maybe Text
nextToken :: Maybe Text
$sel:maxResults:ListPublishedSchemaArns' :: ListPublishedSchemaArns -> Maybe Natural
$sel:schemaArn:ListPublishedSchemaArns' :: ListPublishedSchemaArns -> Maybe Text
$sel:nextToken:ListPublishedSchemaArns' :: ListPublishedSchemaArns -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" 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
nextToken,
(Text
"SchemaArn" 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
schemaArn,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListPublishedSchemaArns where
toPath :: ListPublishedSchemaArns -> ByteString
toPath =
ByteString -> ListPublishedSchemaArns -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/amazonclouddirectory/2017-01-11/schema/published"
instance Core.ToQuery ListPublishedSchemaArns where
toQuery :: ListPublishedSchemaArns -> QueryString
toQuery = QueryString -> ListPublishedSchemaArns -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListPublishedSchemaArnsResponse = ListPublishedSchemaArnsResponse'
{
ListPublishedSchemaArnsResponse -> Maybe [Text]
schemaArns :: Prelude.Maybe [Prelude.Text],
ListPublishedSchemaArnsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListPublishedSchemaArnsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListPublishedSchemaArnsResponse
-> ListPublishedSchemaArnsResponse -> Bool
(ListPublishedSchemaArnsResponse
-> ListPublishedSchemaArnsResponse -> Bool)
-> (ListPublishedSchemaArnsResponse
-> ListPublishedSchemaArnsResponse -> Bool)
-> Eq ListPublishedSchemaArnsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPublishedSchemaArnsResponse
-> ListPublishedSchemaArnsResponse -> Bool
$c/= :: ListPublishedSchemaArnsResponse
-> ListPublishedSchemaArnsResponse -> Bool
== :: ListPublishedSchemaArnsResponse
-> ListPublishedSchemaArnsResponse -> Bool
$c== :: ListPublishedSchemaArnsResponse
-> ListPublishedSchemaArnsResponse -> Bool
Prelude.Eq, ReadPrec [ListPublishedSchemaArnsResponse]
ReadPrec ListPublishedSchemaArnsResponse
Int -> ReadS ListPublishedSchemaArnsResponse
ReadS [ListPublishedSchemaArnsResponse]
(Int -> ReadS ListPublishedSchemaArnsResponse)
-> ReadS [ListPublishedSchemaArnsResponse]
-> ReadPrec ListPublishedSchemaArnsResponse
-> ReadPrec [ListPublishedSchemaArnsResponse]
-> Read ListPublishedSchemaArnsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPublishedSchemaArnsResponse]
$creadListPrec :: ReadPrec [ListPublishedSchemaArnsResponse]
readPrec :: ReadPrec ListPublishedSchemaArnsResponse
$creadPrec :: ReadPrec ListPublishedSchemaArnsResponse
readList :: ReadS [ListPublishedSchemaArnsResponse]
$creadList :: ReadS [ListPublishedSchemaArnsResponse]
readsPrec :: Int -> ReadS ListPublishedSchemaArnsResponse
$creadsPrec :: Int -> ReadS ListPublishedSchemaArnsResponse
Prelude.Read, Int -> ListPublishedSchemaArnsResponse -> ShowS
[ListPublishedSchemaArnsResponse] -> ShowS
ListPublishedSchemaArnsResponse -> String
(Int -> ListPublishedSchemaArnsResponse -> ShowS)
-> (ListPublishedSchemaArnsResponse -> String)
-> ([ListPublishedSchemaArnsResponse] -> ShowS)
-> Show ListPublishedSchemaArnsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPublishedSchemaArnsResponse] -> ShowS
$cshowList :: [ListPublishedSchemaArnsResponse] -> ShowS
show :: ListPublishedSchemaArnsResponse -> String
$cshow :: ListPublishedSchemaArnsResponse -> String
showsPrec :: Int -> ListPublishedSchemaArnsResponse -> ShowS
$cshowsPrec :: Int -> ListPublishedSchemaArnsResponse -> ShowS
Prelude.Show, (forall x.
ListPublishedSchemaArnsResponse
-> Rep ListPublishedSchemaArnsResponse x)
-> (forall x.
Rep ListPublishedSchemaArnsResponse x
-> ListPublishedSchemaArnsResponse)
-> Generic ListPublishedSchemaArnsResponse
forall x.
Rep ListPublishedSchemaArnsResponse x
-> ListPublishedSchemaArnsResponse
forall x.
ListPublishedSchemaArnsResponse
-> Rep ListPublishedSchemaArnsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPublishedSchemaArnsResponse x
-> ListPublishedSchemaArnsResponse
$cfrom :: forall x.
ListPublishedSchemaArnsResponse
-> Rep ListPublishedSchemaArnsResponse x
Prelude.Generic)
newListPublishedSchemaArnsResponse ::
Prelude.Int ->
ListPublishedSchemaArnsResponse
newListPublishedSchemaArnsResponse :: Int -> ListPublishedSchemaArnsResponse
newListPublishedSchemaArnsResponse Int
pHttpStatus_ =
ListPublishedSchemaArnsResponse' :: Maybe [Text]
-> Maybe Text -> Int -> ListPublishedSchemaArnsResponse
ListPublishedSchemaArnsResponse'
{ $sel:schemaArns:ListPublishedSchemaArnsResponse' :: Maybe [Text]
schemaArns =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListPublishedSchemaArnsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListPublishedSchemaArnsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listPublishedSchemaArnsResponse_schemaArns :: Lens.Lens' ListPublishedSchemaArnsResponse (Prelude.Maybe [Prelude.Text])
listPublishedSchemaArnsResponse_schemaArns :: (Maybe [Text] -> f (Maybe [Text]))
-> ListPublishedSchemaArnsResponse
-> f ListPublishedSchemaArnsResponse
listPublishedSchemaArnsResponse_schemaArns = (ListPublishedSchemaArnsResponse -> Maybe [Text])
-> (ListPublishedSchemaArnsResponse
-> Maybe [Text] -> ListPublishedSchemaArnsResponse)
-> Lens' ListPublishedSchemaArnsResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPublishedSchemaArnsResponse' {Maybe [Text]
schemaArns :: Maybe [Text]
$sel:schemaArns:ListPublishedSchemaArnsResponse' :: ListPublishedSchemaArnsResponse -> Maybe [Text]
schemaArns} -> Maybe [Text]
schemaArns) (\s :: ListPublishedSchemaArnsResponse
s@ListPublishedSchemaArnsResponse' {} Maybe [Text]
a -> ListPublishedSchemaArnsResponse
s {$sel:schemaArns:ListPublishedSchemaArnsResponse' :: Maybe [Text]
schemaArns = Maybe [Text]
a} :: ListPublishedSchemaArnsResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> ListPublishedSchemaArnsResponse
-> f ListPublishedSchemaArnsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListPublishedSchemaArnsResponse
-> f ListPublishedSchemaArnsResponse
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
listPublishedSchemaArnsResponse_nextToken :: Lens.Lens' ListPublishedSchemaArnsResponse (Prelude.Maybe Prelude.Text)
listPublishedSchemaArnsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPublishedSchemaArnsResponse
-> f ListPublishedSchemaArnsResponse
listPublishedSchemaArnsResponse_nextToken = (ListPublishedSchemaArnsResponse -> Maybe Text)
-> (ListPublishedSchemaArnsResponse
-> Maybe Text -> ListPublishedSchemaArnsResponse)
-> Lens' ListPublishedSchemaArnsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPublishedSchemaArnsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPublishedSchemaArnsResponse' :: ListPublishedSchemaArnsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPublishedSchemaArnsResponse
s@ListPublishedSchemaArnsResponse' {} Maybe Text
a -> ListPublishedSchemaArnsResponse
s {$sel:nextToken:ListPublishedSchemaArnsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListPublishedSchemaArnsResponse)
listPublishedSchemaArnsResponse_httpStatus :: Lens.Lens' ListPublishedSchemaArnsResponse Prelude.Int
listPublishedSchemaArnsResponse_httpStatus :: (Int -> f Int)
-> ListPublishedSchemaArnsResponse
-> f ListPublishedSchemaArnsResponse
listPublishedSchemaArnsResponse_httpStatus = (ListPublishedSchemaArnsResponse -> Int)
-> (ListPublishedSchemaArnsResponse
-> Int -> ListPublishedSchemaArnsResponse)
-> Lens
ListPublishedSchemaArnsResponse
ListPublishedSchemaArnsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPublishedSchemaArnsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListPublishedSchemaArnsResponse' :: ListPublishedSchemaArnsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListPublishedSchemaArnsResponse
s@ListPublishedSchemaArnsResponse' {} Int
a -> ListPublishedSchemaArnsResponse
s {$sel:httpStatus:ListPublishedSchemaArnsResponse' :: Int
httpStatus = Int
a} :: ListPublishedSchemaArnsResponse)
instance
Prelude.NFData
ListPublishedSchemaArnsResponse