{-# 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.ServiceCatalogAppRegistry.ListAttributeGroups
(
ListAttributeGroups (..),
newListAttributeGroups,
listAttributeGroups_nextToken,
listAttributeGroups_maxResults,
ListAttributeGroupsResponse (..),
newListAttributeGroupsResponse,
listAttributeGroupsResponse_attributeGroups,
listAttributeGroupsResponse_nextToken,
listAttributeGroupsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.ServiceCatalogAppRegistry.Types
data ListAttributeGroups = ListAttributeGroups'
{
ListAttributeGroups -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAttributeGroups -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListAttributeGroups -> ListAttributeGroups -> Bool
(ListAttributeGroups -> ListAttributeGroups -> Bool)
-> (ListAttributeGroups -> ListAttributeGroups -> Bool)
-> Eq ListAttributeGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAttributeGroups -> ListAttributeGroups -> Bool
$c/= :: ListAttributeGroups -> ListAttributeGroups -> Bool
== :: ListAttributeGroups -> ListAttributeGroups -> Bool
$c== :: ListAttributeGroups -> ListAttributeGroups -> Bool
Prelude.Eq, ReadPrec [ListAttributeGroups]
ReadPrec ListAttributeGroups
Int -> ReadS ListAttributeGroups
ReadS [ListAttributeGroups]
(Int -> ReadS ListAttributeGroups)
-> ReadS [ListAttributeGroups]
-> ReadPrec ListAttributeGroups
-> ReadPrec [ListAttributeGroups]
-> Read ListAttributeGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAttributeGroups]
$creadListPrec :: ReadPrec [ListAttributeGroups]
readPrec :: ReadPrec ListAttributeGroups
$creadPrec :: ReadPrec ListAttributeGroups
readList :: ReadS [ListAttributeGroups]
$creadList :: ReadS [ListAttributeGroups]
readsPrec :: Int -> ReadS ListAttributeGroups
$creadsPrec :: Int -> ReadS ListAttributeGroups
Prelude.Read, Int -> ListAttributeGroups -> ShowS
[ListAttributeGroups] -> ShowS
ListAttributeGroups -> String
(Int -> ListAttributeGroups -> ShowS)
-> (ListAttributeGroups -> String)
-> ([ListAttributeGroups] -> ShowS)
-> Show ListAttributeGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAttributeGroups] -> ShowS
$cshowList :: [ListAttributeGroups] -> ShowS
show :: ListAttributeGroups -> String
$cshow :: ListAttributeGroups -> String
showsPrec :: Int -> ListAttributeGroups -> ShowS
$cshowsPrec :: Int -> ListAttributeGroups -> ShowS
Prelude.Show, (forall x. ListAttributeGroups -> Rep ListAttributeGroups x)
-> (forall x. Rep ListAttributeGroups x -> ListAttributeGroups)
-> Generic ListAttributeGroups
forall x. Rep ListAttributeGroups x -> ListAttributeGroups
forall x. ListAttributeGroups -> Rep ListAttributeGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAttributeGroups x -> ListAttributeGroups
$cfrom :: forall x. ListAttributeGroups -> Rep ListAttributeGroups x
Prelude.Generic)
newListAttributeGroups ::
ListAttributeGroups
newListAttributeGroups :: ListAttributeGroups
newListAttributeGroups =
ListAttributeGroups' :: Maybe Text -> Maybe Natural -> ListAttributeGroups
ListAttributeGroups'
{ $sel:nextToken:ListAttributeGroups' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAttributeGroups' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listAttributeGroups_nextToken :: Lens.Lens' ListAttributeGroups (Prelude.Maybe Prelude.Text)
listAttributeGroups_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAttributeGroups -> f ListAttributeGroups
listAttributeGroups_nextToken = (ListAttributeGroups -> Maybe Text)
-> (ListAttributeGroups -> Maybe Text -> ListAttributeGroups)
-> Lens
ListAttributeGroups ListAttributeGroups (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttributeGroups' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAttributeGroups' :: ListAttributeGroups -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAttributeGroups
s@ListAttributeGroups' {} Maybe Text
a -> ListAttributeGroups
s {$sel:nextToken:ListAttributeGroups' :: Maybe Text
nextToken = Maybe Text
a} :: ListAttributeGroups)
listAttributeGroups_maxResults :: Lens.Lens' ListAttributeGroups (Prelude.Maybe Prelude.Natural)
listAttributeGroups_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListAttributeGroups -> f ListAttributeGroups
listAttributeGroups_maxResults = (ListAttributeGroups -> Maybe Natural)
-> (ListAttributeGroups -> Maybe Natural -> ListAttributeGroups)
-> Lens
ListAttributeGroups
ListAttributeGroups
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttributeGroups' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAttributeGroups' :: ListAttributeGroups -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAttributeGroups
s@ListAttributeGroups' {} Maybe Natural
a -> ListAttributeGroups
s {$sel:maxResults:ListAttributeGroups' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAttributeGroups)
instance Core.AWSPager ListAttributeGroups where
page :: ListAttributeGroups
-> AWSResponse ListAttributeGroups -> Maybe ListAttributeGroups
page ListAttributeGroups
rq AWSResponse ListAttributeGroups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAttributeGroups
ListAttributeGroupsResponse
rs
ListAttributeGroupsResponse
-> Getting (First Text) ListAttributeGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAttributeGroupsResponse
-> Const (First Text) ListAttributeGroupsResponse
Lens' ListAttributeGroupsResponse (Maybe Text)
listAttributeGroupsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAttributeGroupsResponse
-> Const (First Text) ListAttributeGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAttributeGroupsResponse 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 ListAttributeGroups
forall a. Maybe a
Prelude.Nothing
| Maybe [AttributeGroupSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAttributeGroups
ListAttributeGroupsResponse
rs
ListAttributeGroupsResponse
-> Getting
(First [AttributeGroupSummary])
ListAttributeGroupsResponse
[AttributeGroupSummary]
-> Maybe [AttributeGroupSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [AttributeGroupSummary]
-> Const
(First [AttributeGroupSummary]) (Maybe [AttributeGroupSummary]))
-> ListAttributeGroupsResponse
-> Const
(First [AttributeGroupSummary]) ListAttributeGroupsResponse
Lens' ListAttributeGroupsResponse (Maybe [AttributeGroupSummary])
listAttributeGroupsResponse_attributeGroups
((Maybe [AttributeGroupSummary]
-> Const
(First [AttributeGroupSummary]) (Maybe [AttributeGroupSummary]))
-> ListAttributeGroupsResponse
-> Const
(First [AttributeGroupSummary]) ListAttributeGroupsResponse)
-> (([AttributeGroupSummary]
-> Const (First [AttributeGroupSummary]) [AttributeGroupSummary])
-> Maybe [AttributeGroupSummary]
-> Const
(First [AttributeGroupSummary]) (Maybe [AttributeGroupSummary]))
-> Getting
(First [AttributeGroupSummary])
ListAttributeGroupsResponse
[AttributeGroupSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AttributeGroupSummary]
-> Const (First [AttributeGroupSummary]) [AttributeGroupSummary])
-> Maybe [AttributeGroupSummary]
-> Const
(First [AttributeGroupSummary]) (Maybe [AttributeGroupSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListAttributeGroups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListAttributeGroups -> Maybe ListAttributeGroups
forall a. a -> Maybe a
Prelude.Just (ListAttributeGroups -> Maybe ListAttributeGroups)
-> ListAttributeGroups -> Maybe ListAttributeGroups
forall a b. (a -> b) -> a -> b
Prelude.$
ListAttributeGroups
rq
ListAttributeGroups
-> (ListAttributeGroups -> ListAttributeGroups)
-> ListAttributeGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListAttributeGroups -> Identity ListAttributeGroups
Lens
ListAttributeGroups ListAttributeGroups (Maybe Text) (Maybe Text)
listAttributeGroups_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListAttributeGroups -> Identity ListAttributeGroups)
-> Maybe Text -> ListAttributeGroups -> ListAttributeGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAttributeGroups
ListAttributeGroupsResponse
rs
ListAttributeGroupsResponse
-> Getting (First Text) ListAttributeGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAttributeGroupsResponse
-> Const (First Text) ListAttributeGroupsResponse
Lens' ListAttributeGroupsResponse (Maybe Text)
listAttributeGroupsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAttributeGroupsResponse
-> Const (First Text) ListAttributeGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAttributeGroupsResponse 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 ListAttributeGroups where
type
AWSResponse ListAttributeGroups =
ListAttributeGroupsResponse
request :: ListAttributeGroups -> Request ListAttributeGroups
request = Service -> ListAttributeGroups -> Request ListAttributeGroups
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListAttributeGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAttributeGroups)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListAttributeGroups))
-> Logger
-> Service
-> Proxy ListAttributeGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAttributeGroups)))
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 [AttributeGroupSummary]
-> Maybe Text -> Int -> ListAttributeGroupsResponse
ListAttributeGroupsResponse'
(Maybe [AttributeGroupSummary]
-> Maybe Text -> Int -> ListAttributeGroupsResponse)
-> Either String (Maybe [AttributeGroupSummary])
-> Either String (Maybe Text -> Int -> ListAttributeGroupsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [AttributeGroupSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"attributeGroups"
Either String (Maybe (Maybe [AttributeGroupSummary]))
-> Maybe [AttributeGroupSummary]
-> Either String (Maybe [AttributeGroupSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AttributeGroupSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListAttributeGroupsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListAttributeGroupsResponse)
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 -> ListAttributeGroupsResponse)
-> Either String Int -> Either String ListAttributeGroupsResponse
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 ListAttributeGroups
instance Prelude.NFData ListAttributeGroups
instance Core.ToHeaders ListAttributeGroups where
toHeaders :: ListAttributeGroups -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListAttributeGroups -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath ListAttributeGroups where
toPath :: ListAttributeGroups -> ByteString
toPath = ByteString -> ListAttributeGroups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/attribute-groups"
instance Core.ToQuery ListAttributeGroups where
toQuery :: ListAttributeGroups -> QueryString
toQuery ListAttributeGroups' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListAttributeGroups' :: ListAttributeGroups -> Maybe Natural
$sel:nextToken:ListAttributeGroups' :: ListAttributeGroups -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListAttributeGroupsResponse = ListAttributeGroupsResponse'
{
ListAttributeGroupsResponse -> Maybe [AttributeGroupSummary]
attributeGroups :: Prelude.Maybe [AttributeGroupSummary],
ListAttributeGroupsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAttributeGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAttributeGroupsResponse -> ListAttributeGroupsResponse -> Bool
(ListAttributeGroupsResponse
-> ListAttributeGroupsResponse -> Bool)
-> (ListAttributeGroupsResponse
-> ListAttributeGroupsResponse -> Bool)
-> Eq ListAttributeGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAttributeGroupsResponse -> ListAttributeGroupsResponse -> Bool
$c/= :: ListAttributeGroupsResponse -> ListAttributeGroupsResponse -> Bool
== :: ListAttributeGroupsResponse -> ListAttributeGroupsResponse -> Bool
$c== :: ListAttributeGroupsResponse -> ListAttributeGroupsResponse -> Bool
Prelude.Eq, ReadPrec [ListAttributeGroupsResponse]
ReadPrec ListAttributeGroupsResponse
Int -> ReadS ListAttributeGroupsResponse
ReadS [ListAttributeGroupsResponse]
(Int -> ReadS ListAttributeGroupsResponse)
-> ReadS [ListAttributeGroupsResponse]
-> ReadPrec ListAttributeGroupsResponse
-> ReadPrec [ListAttributeGroupsResponse]
-> Read ListAttributeGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAttributeGroupsResponse]
$creadListPrec :: ReadPrec [ListAttributeGroupsResponse]
readPrec :: ReadPrec ListAttributeGroupsResponse
$creadPrec :: ReadPrec ListAttributeGroupsResponse
readList :: ReadS [ListAttributeGroupsResponse]
$creadList :: ReadS [ListAttributeGroupsResponse]
readsPrec :: Int -> ReadS ListAttributeGroupsResponse
$creadsPrec :: Int -> ReadS ListAttributeGroupsResponse
Prelude.Read, Int -> ListAttributeGroupsResponse -> ShowS
[ListAttributeGroupsResponse] -> ShowS
ListAttributeGroupsResponse -> String
(Int -> ListAttributeGroupsResponse -> ShowS)
-> (ListAttributeGroupsResponse -> String)
-> ([ListAttributeGroupsResponse] -> ShowS)
-> Show ListAttributeGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAttributeGroupsResponse] -> ShowS
$cshowList :: [ListAttributeGroupsResponse] -> ShowS
show :: ListAttributeGroupsResponse -> String
$cshow :: ListAttributeGroupsResponse -> String
showsPrec :: Int -> ListAttributeGroupsResponse -> ShowS
$cshowsPrec :: Int -> ListAttributeGroupsResponse -> ShowS
Prelude.Show, (forall x.
ListAttributeGroupsResponse -> Rep ListAttributeGroupsResponse x)
-> (forall x.
Rep ListAttributeGroupsResponse x -> ListAttributeGroupsResponse)
-> Generic ListAttributeGroupsResponse
forall x.
Rep ListAttributeGroupsResponse x -> ListAttributeGroupsResponse
forall x.
ListAttributeGroupsResponse -> Rep ListAttributeGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAttributeGroupsResponse x -> ListAttributeGroupsResponse
$cfrom :: forall x.
ListAttributeGroupsResponse -> Rep ListAttributeGroupsResponse x
Prelude.Generic)
newListAttributeGroupsResponse ::
Prelude.Int ->
ListAttributeGroupsResponse
newListAttributeGroupsResponse :: Int -> ListAttributeGroupsResponse
newListAttributeGroupsResponse Int
pHttpStatus_ =
ListAttributeGroupsResponse' :: Maybe [AttributeGroupSummary]
-> Maybe Text -> Int -> ListAttributeGroupsResponse
ListAttributeGroupsResponse'
{ $sel:attributeGroups:ListAttributeGroupsResponse' :: Maybe [AttributeGroupSummary]
attributeGroups =
Maybe [AttributeGroupSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAttributeGroupsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAttributeGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAttributeGroupsResponse_attributeGroups :: Lens.Lens' ListAttributeGroupsResponse (Prelude.Maybe [AttributeGroupSummary])
listAttributeGroupsResponse_attributeGroups :: (Maybe [AttributeGroupSummary]
-> f (Maybe [AttributeGroupSummary]))
-> ListAttributeGroupsResponse -> f ListAttributeGroupsResponse
listAttributeGroupsResponse_attributeGroups = (ListAttributeGroupsResponse -> Maybe [AttributeGroupSummary])
-> (ListAttributeGroupsResponse
-> Maybe [AttributeGroupSummary] -> ListAttributeGroupsResponse)
-> Lens'
ListAttributeGroupsResponse (Maybe [AttributeGroupSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttributeGroupsResponse' {Maybe [AttributeGroupSummary]
attributeGroups :: Maybe [AttributeGroupSummary]
$sel:attributeGroups:ListAttributeGroupsResponse' :: ListAttributeGroupsResponse -> Maybe [AttributeGroupSummary]
attributeGroups} -> Maybe [AttributeGroupSummary]
attributeGroups) (\s :: ListAttributeGroupsResponse
s@ListAttributeGroupsResponse' {} Maybe [AttributeGroupSummary]
a -> ListAttributeGroupsResponse
s {$sel:attributeGroups:ListAttributeGroupsResponse' :: Maybe [AttributeGroupSummary]
attributeGroups = Maybe [AttributeGroupSummary]
a} :: ListAttributeGroupsResponse) ((Maybe [AttributeGroupSummary]
-> f (Maybe [AttributeGroupSummary]))
-> ListAttributeGroupsResponse -> f ListAttributeGroupsResponse)
-> ((Maybe [AttributeGroupSummary]
-> f (Maybe [AttributeGroupSummary]))
-> Maybe [AttributeGroupSummary]
-> f (Maybe [AttributeGroupSummary]))
-> (Maybe [AttributeGroupSummary]
-> f (Maybe [AttributeGroupSummary]))
-> ListAttributeGroupsResponse
-> f ListAttributeGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AttributeGroupSummary]
[AttributeGroupSummary]
[AttributeGroupSummary]
[AttributeGroupSummary]
-> Iso
(Maybe [AttributeGroupSummary])
(Maybe [AttributeGroupSummary])
(Maybe [AttributeGroupSummary])
(Maybe [AttributeGroupSummary])
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
[AttributeGroupSummary]
[AttributeGroupSummary]
[AttributeGroupSummary]
[AttributeGroupSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAttributeGroupsResponse_nextToken :: Lens.Lens' ListAttributeGroupsResponse (Prelude.Maybe Prelude.Text)
listAttributeGroupsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAttributeGroupsResponse -> f ListAttributeGroupsResponse
listAttributeGroupsResponse_nextToken = (ListAttributeGroupsResponse -> Maybe Text)
-> (ListAttributeGroupsResponse
-> Maybe Text -> ListAttributeGroupsResponse)
-> Lens' ListAttributeGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttributeGroupsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAttributeGroupsResponse' :: ListAttributeGroupsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAttributeGroupsResponse
s@ListAttributeGroupsResponse' {} Maybe Text
a -> ListAttributeGroupsResponse
s {$sel:nextToken:ListAttributeGroupsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAttributeGroupsResponse)
listAttributeGroupsResponse_httpStatus :: Lens.Lens' ListAttributeGroupsResponse Prelude.Int
listAttributeGroupsResponse_httpStatus :: (Int -> f Int)
-> ListAttributeGroupsResponse -> f ListAttributeGroupsResponse
listAttributeGroupsResponse_httpStatus = (ListAttributeGroupsResponse -> Int)
-> (ListAttributeGroupsResponse
-> Int -> ListAttributeGroupsResponse)
-> Lens
ListAttributeGroupsResponse ListAttributeGroupsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttributeGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAttributeGroupsResponse' :: ListAttributeGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAttributeGroupsResponse
s@ListAttributeGroupsResponse' {} Int
a -> ListAttributeGroupsResponse
s {$sel:httpStatus:ListAttributeGroupsResponse' :: Int
httpStatus = Int
a} :: ListAttributeGroupsResponse)
instance Prelude.NFData ListAttributeGroupsResponse