{-# 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.Glue.ListRegistries
(
ListRegistries (..),
newListRegistries,
listRegistries_nextToken,
listRegistries_maxResults,
ListRegistriesResponse (..),
newListRegistriesResponse,
listRegistriesResponse_registries,
listRegistriesResponse_nextToken,
listRegistriesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.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 ListRegistries = ListRegistries'
{
ListRegistries -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRegistries -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListRegistries -> ListRegistries -> Bool
(ListRegistries -> ListRegistries -> Bool)
-> (ListRegistries -> ListRegistries -> Bool) -> Eq ListRegistries
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRegistries -> ListRegistries -> Bool
$c/= :: ListRegistries -> ListRegistries -> Bool
== :: ListRegistries -> ListRegistries -> Bool
$c== :: ListRegistries -> ListRegistries -> Bool
Prelude.Eq, ReadPrec [ListRegistries]
ReadPrec ListRegistries
Int -> ReadS ListRegistries
ReadS [ListRegistries]
(Int -> ReadS ListRegistries)
-> ReadS [ListRegistries]
-> ReadPrec ListRegistries
-> ReadPrec [ListRegistries]
-> Read ListRegistries
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRegistries]
$creadListPrec :: ReadPrec [ListRegistries]
readPrec :: ReadPrec ListRegistries
$creadPrec :: ReadPrec ListRegistries
readList :: ReadS [ListRegistries]
$creadList :: ReadS [ListRegistries]
readsPrec :: Int -> ReadS ListRegistries
$creadsPrec :: Int -> ReadS ListRegistries
Prelude.Read, Int -> ListRegistries -> ShowS
[ListRegistries] -> ShowS
ListRegistries -> String
(Int -> ListRegistries -> ShowS)
-> (ListRegistries -> String)
-> ([ListRegistries] -> ShowS)
-> Show ListRegistries
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRegistries] -> ShowS
$cshowList :: [ListRegistries] -> ShowS
show :: ListRegistries -> String
$cshow :: ListRegistries -> String
showsPrec :: Int -> ListRegistries -> ShowS
$cshowsPrec :: Int -> ListRegistries -> ShowS
Prelude.Show, (forall x. ListRegistries -> Rep ListRegistries x)
-> (forall x. Rep ListRegistries x -> ListRegistries)
-> Generic ListRegistries
forall x. Rep ListRegistries x -> ListRegistries
forall x. ListRegistries -> Rep ListRegistries x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRegistries x -> ListRegistries
$cfrom :: forall x. ListRegistries -> Rep ListRegistries x
Prelude.Generic)
newListRegistries ::
ListRegistries
newListRegistries :: ListRegistries
newListRegistries =
ListRegistries' :: Maybe Text -> Maybe Natural -> ListRegistries
ListRegistries'
{ $sel:nextToken:ListRegistries' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListRegistries' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listRegistries_nextToken :: Lens.Lens' ListRegistries (Prelude.Maybe Prelude.Text)
listRegistries_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRegistries -> f ListRegistries
listRegistries_nextToken = (ListRegistries -> Maybe Text)
-> (ListRegistries -> Maybe Text -> ListRegistries)
-> Lens ListRegistries ListRegistries (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistries' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRegistries' :: ListRegistries -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRegistries
s@ListRegistries' {} Maybe Text
a -> ListRegistries
s {$sel:nextToken:ListRegistries' :: Maybe Text
nextToken = Maybe Text
a} :: ListRegistries)
listRegistries_maxResults :: Lens.Lens' ListRegistries (Prelude.Maybe Prelude.Natural)
listRegistries_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListRegistries -> f ListRegistries
listRegistries_maxResults = (ListRegistries -> Maybe Natural)
-> (ListRegistries -> Maybe Natural -> ListRegistries)
-> Lens
ListRegistries ListRegistries (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistries' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListRegistries' :: ListRegistries -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListRegistries
s@ListRegistries' {} Maybe Natural
a -> ListRegistries
s {$sel:maxResults:ListRegistries' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListRegistries)
instance Core.AWSPager ListRegistries where
page :: ListRegistries
-> AWSResponse ListRegistries -> Maybe ListRegistries
page ListRegistries
rq AWSResponse ListRegistries
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListRegistries
ListRegistriesResponse
rs
ListRegistriesResponse
-> Getting (First Text) ListRegistriesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListRegistriesResponse
-> Const (First Text) ListRegistriesResponse
Lens' ListRegistriesResponse (Maybe Text)
listRegistriesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListRegistriesResponse
-> Const (First Text) ListRegistriesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListRegistriesResponse 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 ListRegistries
forall a. Maybe a
Prelude.Nothing
| Maybe [RegistryListItem] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListRegistries
ListRegistriesResponse
rs
ListRegistriesResponse
-> Getting
(First [RegistryListItem])
ListRegistriesResponse
[RegistryListItem]
-> Maybe [RegistryListItem]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [RegistryListItem]
-> Const (First [RegistryListItem]) (Maybe [RegistryListItem]))
-> ListRegistriesResponse
-> Const (First [RegistryListItem]) ListRegistriesResponse
Lens' ListRegistriesResponse (Maybe [RegistryListItem])
listRegistriesResponse_registries
((Maybe [RegistryListItem]
-> Const (First [RegistryListItem]) (Maybe [RegistryListItem]))
-> ListRegistriesResponse
-> Const (First [RegistryListItem]) ListRegistriesResponse)
-> (([RegistryListItem]
-> Const (First [RegistryListItem]) [RegistryListItem])
-> Maybe [RegistryListItem]
-> Const (First [RegistryListItem]) (Maybe [RegistryListItem]))
-> Getting
(First [RegistryListItem])
ListRegistriesResponse
[RegistryListItem]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([RegistryListItem]
-> Const (First [RegistryListItem]) [RegistryListItem])
-> Maybe [RegistryListItem]
-> Const (First [RegistryListItem]) (Maybe [RegistryListItem])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListRegistries
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListRegistries -> Maybe ListRegistries
forall a. a -> Maybe a
Prelude.Just (ListRegistries -> Maybe ListRegistries)
-> ListRegistries -> Maybe ListRegistries
forall a b. (a -> b) -> a -> b
Prelude.$
ListRegistries
rq
ListRegistries
-> (ListRegistries -> ListRegistries) -> ListRegistries
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListRegistries -> Identity ListRegistries
Lens ListRegistries ListRegistries (Maybe Text) (Maybe Text)
listRegistries_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListRegistries -> Identity ListRegistries)
-> Maybe Text -> ListRegistries -> ListRegistries
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListRegistries
ListRegistriesResponse
rs
ListRegistriesResponse
-> Getting (First Text) ListRegistriesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListRegistriesResponse
-> Const (First Text) ListRegistriesResponse
Lens' ListRegistriesResponse (Maybe Text)
listRegistriesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListRegistriesResponse
-> Const (First Text) ListRegistriesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListRegistriesResponse 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 ListRegistries where
type
AWSResponse ListRegistries =
ListRegistriesResponse
request :: ListRegistries -> Request ListRegistries
request = Service -> ListRegistries -> Request ListRegistries
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListRegistries
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListRegistries)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListRegistries))
-> Logger
-> Service
-> Proxy ListRegistries
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListRegistries)))
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 [RegistryListItem]
-> Maybe Text -> Int -> ListRegistriesResponse
ListRegistriesResponse'
(Maybe [RegistryListItem]
-> Maybe Text -> Int -> ListRegistriesResponse)
-> Either String (Maybe [RegistryListItem])
-> Either String (Maybe Text -> Int -> ListRegistriesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [RegistryListItem]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Registries" Either String (Maybe (Maybe [RegistryListItem]))
-> Maybe [RegistryListItem]
-> Either String (Maybe [RegistryListItem])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RegistryListItem]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListRegistriesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListRegistriesResponse)
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 -> ListRegistriesResponse)
-> Either String Int -> Either String ListRegistriesResponse
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 ListRegistries
instance Prelude.NFData ListRegistries
instance Core.ToHeaders ListRegistries where
toHeaders :: ListRegistries -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListRegistries -> 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
"AWSGlue.ListRegistries" :: 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 ListRegistries where
toJSON :: ListRegistries -> Value
toJSON ListRegistries' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListRegistries' :: ListRegistries -> Maybe Natural
$sel:nextToken:ListRegistries' :: ListRegistries -> 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 ListRegistries where
toPath :: ListRegistries -> ByteString
toPath = ByteString -> ListRegistries -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListRegistries where
toQuery :: ListRegistries -> QueryString
toQuery = QueryString -> ListRegistries -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListRegistriesResponse = ListRegistriesResponse'
{
ListRegistriesResponse -> Maybe [RegistryListItem]
registries :: Prelude.Maybe [RegistryListItem],
ListRegistriesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRegistriesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListRegistriesResponse -> ListRegistriesResponse -> Bool
(ListRegistriesResponse -> ListRegistriesResponse -> Bool)
-> (ListRegistriesResponse -> ListRegistriesResponse -> Bool)
-> Eq ListRegistriesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRegistriesResponse -> ListRegistriesResponse -> Bool
$c/= :: ListRegistriesResponse -> ListRegistriesResponse -> Bool
== :: ListRegistriesResponse -> ListRegistriesResponse -> Bool
$c== :: ListRegistriesResponse -> ListRegistriesResponse -> Bool
Prelude.Eq, ReadPrec [ListRegistriesResponse]
ReadPrec ListRegistriesResponse
Int -> ReadS ListRegistriesResponse
ReadS [ListRegistriesResponse]
(Int -> ReadS ListRegistriesResponse)
-> ReadS [ListRegistriesResponse]
-> ReadPrec ListRegistriesResponse
-> ReadPrec [ListRegistriesResponse]
-> Read ListRegistriesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRegistriesResponse]
$creadListPrec :: ReadPrec [ListRegistriesResponse]
readPrec :: ReadPrec ListRegistriesResponse
$creadPrec :: ReadPrec ListRegistriesResponse
readList :: ReadS [ListRegistriesResponse]
$creadList :: ReadS [ListRegistriesResponse]
readsPrec :: Int -> ReadS ListRegistriesResponse
$creadsPrec :: Int -> ReadS ListRegistriesResponse
Prelude.Read, Int -> ListRegistriesResponse -> ShowS
[ListRegistriesResponse] -> ShowS
ListRegistriesResponse -> String
(Int -> ListRegistriesResponse -> ShowS)
-> (ListRegistriesResponse -> String)
-> ([ListRegistriesResponse] -> ShowS)
-> Show ListRegistriesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRegistriesResponse] -> ShowS
$cshowList :: [ListRegistriesResponse] -> ShowS
show :: ListRegistriesResponse -> String
$cshow :: ListRegistriesResponse -> String
showsPrec :: Int -> ListRegistriesResponse -> ShowS
$cshowsPrec :: Int -> ListRegistriesResponse -> ShowS
Prelude.Show, (forall x. ListRegistriesResponse -> Rep ListRegistriesResponse x)
-> (forall x.
Rep ListRegistriesResponse x -> ListRegistriesResponse)
-> Generic ListRegistriesResponse
forall x. Rep ListRegistriesResponse x -> ListRegistriesResponse
forall x. ListRegistriesResponse -> Rep ListRegistriesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListRegistriesResponse x -> ListRegistriesResponse
$cfrom :: forall x. ListRegistriesResponse -> Rep ListRegistriesResponse x
Prelude.Generic)
newListRegistriesResponse ::
Prelude.Int ->
ListRegistriesResponse
newListRegistriesResponse :: Int -> ListRegistriesResponse
newListRegistriesResponse Int
pHttpStatus_ =
ListRegistriesResponse' :: Maybe [RegistryListItem]
-> Maybe Text -> Int -> ListRegistriesResponse
ListRegistriesResponse'
{ $sel:registries:ListRegistriesResponse' :: Maybe [RegistryListItem]
registries =
Maybe [RegistryListItem]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListRegistriesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListRegistriesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listRegistriesResponse_registries :: Lens.Lens' ListRegistriesResponse (Prelude.Maybe [RegistryListItem])
listRegistriesResponse_registries :: (Maybe [RegistryListItem] -> f (Maybe [RegistryListItem]))
-> ListRegistriesResponse -> f ListRegistriesResponse
listRegistriesResponse_registries = (ListRegistriesResponse -> Maybe [RegistryListItem])
-> (ListRegistriesResponse
-> Maybe [RegistryListItem] -> ListRegistriesResponse)
-> Lens' ListRegistriesResponse (Maybe [RegistryListItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistriesResponse' {Maybe [RegistryListItem]
registries :: Maybe [RegistryListItem]
$sel:registries:ListRegistriesResponse' :: ListRegistriesResponse -> Maybe [RegistryListItem]
registries} -> Maybe [RegistryListItem]
registries) (\s :: ListRegistriesResponse
s@ListRegistriesResponse' {} Maybe [RegistryListItem]
a -> ListRegistriesResponse
s {$sel:registries:ListRegistriesResponse' :: Maybe [RegistryListItem]
registries = Maybe [RegistryListItem]
a} :: ListRegistriesResponse) ((Maybe [RegistryListItem] -> f (Maybe [RegistryListItem]))
-> ListRegistriesResponse -> f ListRegistriesResponse)
-> ((Maybe [RegistryListItem] -> f (Maybe [RegistryListItem]))
-> Maybe [RegistryListItem] -> f (Maybe [RegistryListItem]))
-> (Maybe [RegistryListItem] -> f (Maybe [RegistryListItem]))
-> ListRegistriesResponse
-> f ListRegistriesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RegistryListItem]
[RegistryListItem]
[RegistryListItem]
[RegistryListItem]
-> Iso
(Maybe [RegistryListItem])
(Maybe [RegistryListItem])
(Maybe [RegistryListItem])
(Maybe [RegistryListItem])
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
[RegistryListItem]
[RegistryListItem]
[RegistryListItem]
[RegistryListItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listRegistriesResponse_nextToken :: Lens.Lens' ListRegistriesResponse (Prelude.Maybe Prelude.Text)
listRegistriesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRegistriesResponse -> f ListRegistriesResponse
listRegistriesResponse_nextToken = (ListRegistriesResponse -> Maybe Text)
-> (ListRegistriesResponse -> Maybe Text -> ListRegistriesResponse)
-> Lens' ListRegistriesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistriesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRegistriesResponse' :: ListRegistriesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRegistriesResponse
s@ListRegistriesResponse' {} Maybe Text
a -> ListRegistriesResponse
s {$sel:nextToken:ListRegistriesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRegistriesResponse)
listRegistriesResponse_httpStatus :: Lens.Lens' ListRegistriesResponse Prelude.Int
listRegistriesResponse_httpStatus :: (Int -> f Int)
-> ListRegistriesResponse -> f ListRegistriesResponse
listRegistriesResponse_httpStatus = (ListRegistriesResponse -> Int)
-> (ListRegistriesResponse -> Int -> ListRegistriesResponse)
-> Lens ListRegistriesResponse ListRegistriesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRegistriesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListRegistriesResponse' :: ListRegistriesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListRegistriesResponse
s@ListRegistriesResponse' {} Int
a -> ListRegistriesResponse
s {$sel:httpStatus:ListRegistriesResponse' :: Int
httpStatus = Int
a} :: ListRegistriesResponse)
instance Prelude.NFData ListRegistriesResponse