{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CloudDirectory.ListDevelopmentSchemaArns
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves each Amazon Resource Name (ARN) of schemas in the development
-- state.
--
-- This operation returns paginated results.
module Amazonka.CloudDirectory.ListDevelopmentSchemaArns
  ( -- * Creating a Request
    ListDevelopmentSchemaArns (..),
    newListDevelopmentSchemaArns,

    -- * Request Lenses
    listDevelopmentSchemaArns_nextToken,
    listDevelopmentSchemaArns_maxResults,

    -- * Destructuring the Response
    ListDevelopmentSchemaArnsResponse (..),
    newListDevelopmentSchemaArnsResponse,

    -- * Response Lenses
    listDevelopmentSchemaArnsResponse_schemaArns,
    listDevelopmentSchemaArnsResponse_nextToken,
    listDevelopmentSchemaArnsResponse_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

-- | /See:/ 'newListDevelopmentSchemaArns' smart constructor.
data ListDevelopmentSchemaArns = ListDevelopmentSchemaArns'
  { -- | The pagination token.
    ListDevelopmentSchemaArns -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to retrieve.
    ListDevelopmentSchemaArns -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListDevelopmentSchemaArns -> ListDevelopmentSchemaArns -> Bool
(ListDevelopmentSchemaArns -> ListDevelopmentSchemaArns -> Bool)
-> (ListDevelopmentSchemaArns -> ListDevelopmentSchemaArns -> Bool)
-> Eq ListDevelopmentSchemaArns
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDevelopmentSchemaArns -> ListDevelopmentSchemaArns -> Bool
$c/= :: ListDevelopmentSchemaArns -> ListDevelopmentSchemaArns -> Bool
== :: ListDevelopmentSchemaArns -> ListDevelopmentSchemaArns -> Bool
$c== :: ListDevelopmentSchemaArns -> ListDevelopmentSchemaArns -> Bool
Prelude.Eq, ReadPrec [ListDevelopmentSchemaArns]
ReadPrec ListDevelopmentSchemaArns
Int -> ReadS ListDevelopmentSchemaArns
ReadS [ListDevelopmentSchemaArns]
(Int -> ReadS ListDevelopmentSchemaArns)
-> ReadS [ListDevelopmentSchemaArns]
-> ReadPrec ListDevelopmentSchemaArns
-> ReadPrec [ListDevelopmentSchemaArns]
-> Read ListDevelopmentSchemaArns
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDevelopmentSchemaArns]
$creadListPrec :: ReadPrec [ListDevelopmentSchemaArns]
readPrec :: ReadPrec ListDevelopmentSchemaArns
$creadPrec :: ReadPrec ListDevelopmentSchemaArns
readList :: ReadS [ListDevelopmentSchemaArns]
$creadList :: ReadS [ListDevelopmentSchemaArns]
readsPrec :: Int -> ReadS ListDevelopmentSchemaArns
$creadsPrec :: Int -> ReadS ListDevelopmentSchemaArns
Prelude.Read, Int -> ListDevelopmentSchemaArns -> ShowS
[ListDevelopmentSchemaArns] -> ShowS
ListDevelopmentSchemaArns -> String
(Int -> ListDevelopmentSchemaArns -> ShowS)
-> (ListDevelopmentSchemaArns -> String)
-> ([ListDevelopmentSchemaArns] -> ShowS)
-> Show ListDevelopmentSchemaArns
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDevelopmentSchemaArns] -> ShowS
$cshowList :: [ListDevelopmentSchemaArns] -> ShowS
show :: ListDevelopmentSchemaArns -> String
$cshow :: ListDevelopmentSchemaArns -> String
showsPrec :: Int -> ListDevelopmentSchemaArns -> ShowS
$cshowsPrec :: Int -> ListDevelopmentSchemaArns -> ShowS
Prelude.Show, (forall x.
 ListDevelopmentSchemaArns -> Rep ListDevelopmentSchemaArns x)
-> (forall x.
    Rep ListDevelopmentSchemaArns x -> ListDevelopmentSchemaArns)
-> Generic ListDevelopmentSchemaArns
forall x.
Rep ListDevelopmentSchemaArns x -> ListDevelopmentSchemaArns
forall x.
ListDevelopmentSchemaArns -> Rep ListDevelopmentSchemaArns x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDevelopmentSchemaArns x -> ListDevelopmentSchemaArns
$cfrom :: forall x.
ListDevelopmentSchemaArns -> Rep ListDevelopmentSchemaArns x
Prelude.Generic)

-- |
-- Create a value of 'ListDevelopmentSchemaArns' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listDevelopmentSchemaArns_nextToken' - The pagination token.
--
-- 'maxResults', 'listDevelopmentSchemaArns_maxResults' - The maximum number of results to retrieve.
newListDevelopmentSchemaArns ::
  ListDevelopmentSchemaArns
newListDevelopmentSchemaArns :: ListDevelopmentSchemaArns
newListDevelopmentSchemaArns =
  ListDevelopmentSchemaArns' :: Maybe Text -> Maybe Natural -> ListDevelopmentSchemaArns
ListDevelopmentSchemaArns'
    { $sel:nextToken:ListDevelopmentSchemaArns' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListDevelopmentSchemaArns' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The pagination token.
listDevelopmentSchemaArns_nextToken :: Lens.Lens' ListDevelopmentSchemaArns (Prelude.Maybe Prelude.Text)
listDevelopmentSchemaArns_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDevelopmentSchemaArns -> f ListDevelopmentSchemaArns
listDevelopmentSchemaArns_nextToken = (ListDevelopmentSchemaArns -> Maybe Text)
-> (ListDevelopmentSchemaArns
    -> Maybe Text -> ListDevelopmentSchemaArns)
-> Lens
     ListDevelopmentSchemaArns
     ListDevelopmentSchemaArns
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDevelopmentSchemaArns' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDevelopmentSchemaArns' :: ListDevelopmentSchemaArns -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDevelopmentSchemaArns
s@ListDevelopmentSchemaArns' {} Maybe Text
a -> ListDevelopmentSchemaArns
s {$sel:nextToken:ListDevelopmentSchemaArns' :: Maybe Text
nextToken = Maybe Text
a} :: ListDevelopmentSchemaArns)

-- | The maximum number of results to retrieve.
listDevelopmentSchemaArns_maxResults :: Lens.Lens' ListDevelopmentSchemaArns (Prelude.Maybe Prelude.Natural)
listDevelopmentSchemaArns_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDevelopmentSchemaArns -> f ListDevelopmentSchemaArns
listDevelopmentSchemaArns_maxResults = (ListDevelopmentSchemaArns -> Maybe Natural)
-> (ListDevelopmentSchemaArns
    -> Maybe Natural -> ListDevelopmentSchemaArns)
-> Lens
     ListDevelopmentSchemaArns
     ListDevelopmentSchemaArns
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDevelopmentSchemaArns' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDevelopmentSchemaArns' :: ListDevelopmentSchemaArns -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDevelopmentSchemaArns
s@ListDevelopmentSchemaArns' {} Maybe Natural
a -> ListDevelopmentSchemaArns
s {$sel:maxResults:ListDevelopmentSchemaArns' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDevelopmentSchemaArns)

instance Core.AWSPager ListDevelopmentSchemaArns where
  page :: ListDevelopmentSchemaArns
-> AWSResponse ListDevelopmentSchemaArns
-> Maybe ListDevelopmentSchemaArns
page ListDevelopmentSchemaArns
rq AWSResponse ListDevelopmentSchemaArns
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListDevelopmentSchemaArns
ListDevelopmentSchemaArnsResponse
rs
            ListDevelopmentSchemaArnsResponse
-> Getting (First Text) ListDevelopmentSchemaArnsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDevelopmentSchemaArnsResponse
-> Const (First Text) ListDevelopmentSchemaArnsResponse
Lens' ListDevelopmentSchemaArnsResponse (Maybe Text)
listDevelopmentSchemaArnsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListDevelopmentSchemaArnsResponse
 -> Const (First Text) ListDevelopmentSchemaArnsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDevelopmentSchemaArnsResponse 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 ListDevelopmentSchemaArns
forall a. Maybe a
Prelude.Nothing
    | Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListDevelopmentSchemaArns
ListDevelopmentSchemaArnsResponse
rs
            ListDevelopmentSchemaArnsResponse
-> Getting (First [Text]) ListDevelopmentSchemaArnsResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListDevelopmentSchemaArnsResponse
-> Const (First [Text]) ListDevelopmentSchemaArnsResponse
Lens' ListDevelopmentSchemaArnsResponse (Maybe [Text])
listDevelopmentSchemaArnsResponse_schemaArns
              ((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
 -> ListDevelopmentSchemaArnsResponse
 -> Const (First [Text]) ListDevelopmentSchemaArnsResponse)
-> (([Text] -> Const (First [Text]) [Text])
    -> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting (First [Text]) ListDevelopmentSchemaArnsResponse [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 ListDevelopmentSchemaArns
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListDevelopmentSchemaArns -> Maybe ListDevelopmentSchemaArns
forall a. a -> Maybe a
Prelude.Just (ListDevelopmentSchemaArns -> Maybe ListDevelopmentSchemaArns)
-> ListDevelopmentSchemaArns -> Maybe ListDevelopmentSchemaArns
forall a b. (a -> b) -> a -> b
Prelude.$
        ListDevelopmentSchemaArns
rq
          ListDevelopmentSchemaArns
-> (ListDevelopmentSchemaArns -> ListDevelopmentSchemaArns)
-> ListDevelopmentSchemaArns
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListDevelopmentSchemaArns -> Identity ListDevelopmentSchemaArns
Lens
  ListDevelopmentSchemaArns
  ListDevelopmentSchemaArns
  (Maybe Text)
  (Maybe Text)
listDevelopmentSchemaArns_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListDevelopmentSchemaArns -> Identity ListDevelopmentSchemaArns)
-> Maybe Text
-> ListDevelopmentSchemaArns
-> ListDevelopmentSchemaArns
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDevelopmentSchemaArns
ListDevelopmentSchemaArnsResponse
rs
          ListDevelopmentSchemaArnsResponse
-> Getting (First Text) ListDevelopmentSchemaArnsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDevelopmentSchemaArnsResponse
-> Const (First Text) ListDevelopmentSchemaArnsResponse
Lens' ListDevelopmentSchemaArnsResponse (Maybe Text)
listDevelopmentSchemaArnsResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListDevelopmentSchemaArnsResponse
 -> Const (First Text) ListDevelopmentSchemaArnsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDevelopmentSchemaArnsResponse 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 ListDevelopmentSchemaArns where
  type
    AWSResponse ListDevelopmentSchemaArns =
      ListDevelopmentSchemaArnsResponse
  request :: ListDevelopmentSchemaArns -> Request ListDevelopmentSchemaArns
request = Service
-> ListDevelopmentSchemaArns -> Request ListDevelopmentSchemaArns
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListDevelopmentSchemaArns
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListDevelopmentSchemaArns)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListDevelopmentSchemaArns))
-> Logger
-> Service
-> Proxy ListDevelopmentSchemaArns
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListDevelopmentSchemaArns)))
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 -> ListDevelopmentSchemaArnsResponse
ListDevelopmentSchemaArnsResponse'
            (Maybe [Text]
 -> Maybe Text -> Int -> ListDevelopmentSchemaArnsResponse)
-> Either String (Maybe [Text])
-> Either
     String (Maybe Text -> Int -> ListDevelopmentSchemaArnsResponse)
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 -> ListDevelopmentSchemaArnsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListDevelopmentSchemaArnsResponse)
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 -> ListDevelopmentSchemaArnsResponse)
-> Either String Int
-> Either String ListDevelopmentSchemaArnsResponse
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 ListDevelopmentSchemaArns

instance Prelude.NFData ListDevelopmentSchemaArns

instance Core.ToHeaders ListDevelopmentSchemaArns where
  toHeaders :: ListDevelopmentSchemaArns -> ResponseHeaders
toHeaders = ResponseHeaders -> ListDevelopmentSchemaArns -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToJSON ListDevelopmentSchemaArns where
  toJSON :: ListDevelopmentSchemaArns -> Value
toJSON ListDevelopmentSchemaArns' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListDevelopmentSchemaArns' :: ListDevelopmentSchemaArns -> Maybe Natural
$sel:nextToken:ListDevelopmentSchemaArns' :: ListDevelopmentSchemaArns -> 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
"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 ListDevelopmentSchemaArns where
  toPath :: ListDevelopmentSchemaArns -> ByteString
toPath =
    ByteString -> ListDevelopmentSchemaArns -> ByteString
forall a b. a -> b -> a
Prelude.const
      ByteString
"/amazonclouddirectory/2017-01-11/schema/development"

instance Core.ToQuery ListDevelopmentSchemaArns where
  toQuery :: ListDevelopmentSchemaArns -> QueryString
toQuery = QueryString -> ListDevelopmentSchemaArns -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListDevelopmentSchemaArnsResponse' smart constructor.
data ListDevelopmentSchemaArnsResponse = ListDevelopmentSchemaArnsResponse'
  { -- | The ARNs of retrieved development schemas.
    ListDevelopmentSchemaArnsResponse -> Maybe [Text]
schemaArns :: Prelude.Maybe [Prelude.Text],
    -- | The pagination token.
    ListDevelopmentSchemaArnsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListDevelopmentSchemaArnsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDevelopmentSchemaArnsResponse
-> ListDevelopmentSchemaArnsResponse -> Bool
(ListDevelopmentSchemaArnsResponse
 -> ListDevelopmentSchemaArnsResponse -> Bool)
-> (ListDevelopmentSchemaArnsResponse
    -> ListDevelopmentSchemaArnsResponse -> Bool)
-> Eq ListDevelopmentSchemaArnsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDevelopmentSchemaArnsResponse
-> ListDevelopmentSchemaArnsResponse -> Bool
$c/= :: ListDevelopmentSchemaArnsResponse
-> ListDevelopmentSchemaArnsResponse -> Bool
== :: ListDevelopmentSchemaArnsResponse
-> ListDevelopmentSchemaArnsResponse -> Bool
$c== :: ListDevelopmentSchemaArnsResponse
-> ListDevelopmentSchemaArnsResponse -> Bool
Prelude.Eq, ReadPrec [ListDevelopmentSchemaArnsResponse]
ReadPrec ListDevelopmentSchemaArnsResponse
Int -> ReadS ListDevelopmentSchemaArnsResponse
ReadS [ListDevelopmentSchemaArnsResponse]
(Int -> ReadS ListDevelopmentSchemaArnsResponse)
-> ReadS [ListDevelopmentSchemaArnsResponse]
-> ReadPrec ListDevelopmentSchemaArnsResponse
-> ReadPrec [ListDevelopmentSchemaArnsResponse]
-> Read ListDevelopmentSchemaArnsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDevelopmentSchemaArnsResponse]
$creadListPrec :: ReadPrec [ListDevelopmentSchemaArnsResponse]
readPrec :: ReadPrec ListDevelopmentSchemaArnsResponse
$creadPrec :: ReadPrec ListDevelopmentSchemaArnsResponse
readList :: ReadS [ListDevelopmentSchemaArnsResponse]
$creadList :: ReadS [ListDevelopmentSchemaArnsResponse]
readsPrec :: Int -> ReadS ListDevelopmentSchemaArnsResponse
$creadsPrec :: Int -> ReadS ListDevelopmentSchemaArnsResponse
Prelude.Read, Int -> ListDevelopmentSchemaArnsResponse -> ShowS
[ListDevelopmentSchemaArnsResponse] -> ShowS
ListDevelopmentSchemaArnsResponse -> String
(Int -> ListDevelopmentSchemaArnsResponse -> ShowS)
-> (ListDevelopmentSchemaArnsResponse -> String)
-> ([ListDevelopmentSchemaArnsResponse] -> ShowS)
-> Show ListDevelopmentSchemaArnsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDevelopmentSchemaArnsResponse] -> ShowS
$cshowList :: [ListDevelopmentSchemaArnsResponse] -> ShowS
show :: ListDevelopmentSchemaArnsResponse -> String
$cshow :: ListDevelopmentSchemaArnsResponse -> String
showsPrec :: Int -> ListDevelopmentSchemaArnsResponse -> ShowS
$cshowsPrec :: Int -> ListDevelopmentSchemaArnsResponse -> ShowS
Prelude.Show, (forall x.
 ListDevelopmentSchemaArnsResponse
 -> Rep ListDevelopmentSchemaArnsResponse x)
-> (forall x.
    Rep ListDevelopmentSchemaArnsResponse x
    -> ListDevelopmentSchemaArnsResponse)
-> Generic ListDevelopmentSchemaArnsResponse
forall x.
Rep ListDevelopmentSchemaArnsResponse x
-> ListDevelopmentSchemaArnsResponse
forall x.
ListDevelopmentSchemaArnsResponse
-> Rep ListDevelopmentSchemaArnsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDevelopmentSchemaArnsResponse x
-> ListDevelopmentSchemaArnsResponse
$cfrom :: forall x.
ListDevelopmentSchemaArnsResponse
-> Rep ListDevelopmentSchemaArnsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDevelopmentSchemaArnsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'schemaArns', 'listDevelopmentSchemaArnsResponse_schemaArns' - The ARNs of retrieved development schemas.
--
-- 'nextToken', 'listDevelopmentSchemaArnsResponse_nextToken' - The pagination token.
--
-- 'httpStatus', 'listDevelopmentSchemaArnsResponse_httpStatus' - The response's http status code.
newListDevelopmentSchemaArnsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDevelopmentSchemaArnsResponse
newListDevelopmentSchemaArnsResponse :: Int -> ListDevelopmentSchemaArnsResponse
newListDevelopmentSchemaArnsResponse Int
pHttpStatus_ =
  ListDevelopmentSchemaArnsResponse' :: Maybe [Text]
-> Maybe Text -> Int -> ListDevelopmentSchemaArnsResponse
ListDevelopmentSchemaArnsResponse'
    { $sel:schemaArns:ListDevelopmentSchemaArnsResponse' :: Maybe [Text]
schemaArns =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListDevelopmentSchemaArnsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListDevelopmentSchemaArnsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The ARNs of retrieved development schemas.
listDevelopmentSchemaArnsResponse_schemaArns :: Lens.Lens' ListDevelopmentSchemaArnsResponse (Prelude.Maybe [Prelude.Text])
listDevelopmentSchemaArnsResponse_schemaArns :: (Maybe [Text] -> f (Maybe [Text]))
-> ListDevelopmentSchemaArnsResponse
-> f ListDevelopmentSchemaArnsResponse
listDevelopmentSchemaArnsResponse_schemaArns = (ListDevelopmentSchemaArnsResponse -> Maybe [Text])
-> (ListDevelopmentSchemaArnsResponse
    -> Maybe [Text] -> ListDevelopmentSchemaArnsResponse)
-> Lens' ListDevelopmentSchemaArnsResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDevelopmentSchemaArnsResponse' {Maybe [Text]
schemaArns :: Maybe [Text]
$sel:schemaArns:ListDevelopmentSchemaArnsResponse' :: ListDevelopmentSchemaArnsResponse -> Maybe [Text]
schemaArns} -> Maybe [Text]
schemaArns) (\s :: ListDevelopmentSchemaArnsResponse
s@ListDevelopmentSchemaArnsResponse' {} Maybe [Text]
a -> ListDevelopmentSchemaArnsResponse
s {$sel:schemaArns:ListDevelopmentSchemaArnsResponse' :: Maybe [Text]
schemaArns = Maybe [Text]
a} :: ListDevelopmentSchemaArnsResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> ListDevelopmentSchemaArnsResponse
 -> f ListDevelopmentSchemaArnsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListDevelopmentSchemaArnsResponse
-> f ListDevelopmentSchemaArnsResponse
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

-- | The pagination token.
listDevelopmentSchemaArnsResponse_nextToken :: Lens.Lens' ListDevelopmentSchemaArnsResponse (Prelude.Maybe Prelude.Text)
listDevelopmentSchemaArnsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDevelopmentSchemaArnsResponse
-> f ListDevelopmentSchemaArnsResponse
listDevelopmentSchemaArnsResponse_nextToken = (ListDevelopmentSchemaArnsResponse -> Maybe Text)
-> (ListDevelopmentSchemaArnsResponse
    -> Maybe Text -> ListDevelopmentSchemaArnsResponse)
-> Lens' ListDevelopmentSchemaArnsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDevelopmentSchemaArnsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDevelopmentSchemaArnsResponse' :: ListDevelopmentSchemaArnsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDevelopmentSchemaArnsResponse
s@ListDevelopmentSchemaArnsResponse' {} Maybe Text
a -> ListDevelopmentSchemaArnsResponse
s {$sel:nextToken:ListDevelopmentSchemaArnsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDevelopmentSchemaArnsResponse)

-- | The response's http status code.
listDevelopmentSchemaArnsResponse_httpStatus :: Lens.Lens' ListDevelopmentSchemaArnsResponse Prelude.Int
listDevelopmentSchemaArnsResponse_httpStatus :: (Int -> f Int)
-> ListDevelopmentSchemaArnsResponse
-> f ListDevelopmentSchemaArnsResponse
listDevelopmentSchemaArnsResponse_httpStatus = (ListDevelopmentSchemaArnsResponse -> Int)
-> (ListDevelopmentSchemaArnsResponse
    -> Int -> ListDevelopmentSchemaArnsResponse)
-> Lens
     ListDevelopmentSchemaArnsResponse
     ListDevelopmentSchemaArnsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDevelopmentSchemaArnsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDevelopmentSchemaArnsResponse' :: ListDevelopmentSchemaArnsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDevelopmentSchemaArnsResponse
s@ListDevelopmentSchemaArnsResponse' {} Int
a -> ListDevelopmentSchemaArnsResponse
s {$sel:httpStatus:ListDevelopmentSchemaArnsResponse' :: Int
httpStatus = Int
a} :: ListDevelopmentSchemaArnsResponse)

instance
  Prelude.NFData
    ListDevelopmentSchemaArnsResponse