{-# 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.ListAssociatedAttributeGroups
(
ListAssociatedAttributeGroups (..),
newListAssociatedAttributeGroups,
listAssociatedAttributeGroups_nextToken,
listAssociatedAttributeGroups_maxResults,
listAssociatedAttributeGroups_application,
ListAssociatedAttributeGroupsResponse (..),
newListAssociatedAttributeGroupsResponse,
listAssociatedAttributeGroupsResponse_attributeGroups,
listAssociatedAttributeGroupsResponse_nextToken,
listAssociatedAttributeGroupsResponse_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 ListAssociatedAttributeGroups = ListAssociatedAttributeGroups'
{
ListAssociatedAttributeGroups -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAssociatedAttributeGroups -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListAssociatedAttributeGroups -> Text
application :: Prelude.Text
}
deriving (ListAssociatedAttributeGroups
-> ListAssociatedAttributeGroups -> Bool
(ListAssociatedAttributeGroups
-> ListAssociatedAttributeGroups -> Bool)
-> (ListAssociatedAttributeGroups
-> ListAssociatedAttributeGroups -> Bool)
-> Eq ListAssociatedAttributeGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssociatedAttributeGroups
-> ListAssociatedAttributeGroups -> Bool
$c/= :: ListAssociatedAttributeGroups
-> ListAssociatedAttributeGroups -> Bool
== :: ListAssociatedAttributeGroups
-> ListAssociatedAttributeGroups -> Bool
$c== :: ListAssociatedAttributeGroups
-> ListAssociatedAttributeGroups -> Bool
Prelude.Eq, ReadPrec [ListAssociatedAttributeGroups]
ReadPrec ListAssociatedAttributeGroups
Int -> ReadS ListAssociatedAttributeGroups
ReadS [ListAssociatedAttributeGroups]
(Int -> ReadS ListAssociatedAttributeGroups)
-> ReadS [ListAssociatedAttributeGroups]
-> ReadPrec ListAssociatedAttributeGroups
-> ReadPrec [ListAssociatedAttributeGroups]
-> Read ListAssociatedAttributeGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssociatedAttributeGroups]
$creadListPrec :: ReadPrec [ListAssociatedAttributeGroups]
readPrec :: ReadPrec ListAssociatedAttributeGroups
$creadPrec :: ReadPrec ListAssociatedAttributeGroups
readList :: ReadS [ListAssociatedAttributeGroups]
$creadList :: ReadS [ListAssociatedAttributeGroups]
readsPrec :: Int -> ReadS ListAssociatedAttributeGroups
$creadsPrec :: Int -> ReadS ListAssociatedAttributeGroups
Prelude.Read, Int -> ListAssociatedAttributeGroups -> ShowS
[ListAssociatedAttributeGroups] -> ShowS
ListAssociatedAttributeGroups -> String
(Int -> ListAssociatedAttributeGroups -> ShowS)
-> (ListAssociatedAttributeGroups -> String)
-> ([ListAssociatedAttributeGroups] -> ShowS)
-> Show ListAssociatedAttributeGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssociatedAttributeGroups] -> ShowS
$cshowList :: [ListAssociatedAttributeGroups] -> ShowS
show :: ListAssociatedAttributeGroups -> String
$cshow :: ListAssociatedAttributeGroups -> String
showsPrec :: Int -> ListAssociatedAttributeGroups -> ShowS
$cshowsPrec :: Int -> ListAssociatedAttributeGroups -> ShowS
Prelude.Show, (forall x.
ListAssociatedAttributeGroups
-> Rep ListAssociatedAttributeGroups x)
-> (forall x.
Rep ListAssociatedAttributeGroups x
-> ListAssociatedAttributeGroups)
-> Generic ListAssociatedAttributeGroups
forall x.
Rep ListAssociatedAttributeGroups x
-> ListAssociatedAttributeGroups
forall x.
ListAssociatedAttributeGroups
-> Rep ListAssociatedAttributeGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAssociatedAttributeGroups x
-> ListAssociatedAttributeGroups
$cfrom :: forall x.
ListAssociatedAttributeGroups
-> Rep ListAssociatedAttributeGroups x
Prelude.Generic)
newListAssociatedAttributeGroups ::
Prelude.Text ->
ListAssociatedAttributeGroups
newListAssociatedAttributeGroups :: Text -> ListAssociatedAttributeGroups
newListAssociatedAttributeGroups Text
pApplication_ =
ListAssociatedAttributeGroups' :: Maybe Text
-> Maybe Natural -> Text -> ListAssociatedAttributeGroups
ListAssociatedAttributeGroups'
{ $sel:nextToken:ListAssociatedAttributeGroups' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAssociatedAttributeGroups' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:application:ListAssociatedAttributeGroups' :: Text
application = Text
pApplication_
}
listAssociatedAttributeGroups_nextToken :: Lens.Lens' ListAssociatedAttributeGroups (Prelude.Maybe Prelude.Text)
listAssociatedAttributeGroups_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAssociatedAttributeGroups -> f ListAssociatedAttributeGroups
listAssociatedAttributeGroups_nextToken = (ListAssociatedAttributeGroups -> Maybe Text)
-> (ListAssociatedAttributeGroups
-> Maybe Text -> ListAssociatedAttributeGroups)
-> Lens
ListAssociatedAttributeGroups
ListAssociatedAttributeGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedAttributeGroups' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssociatedAttributeGroups' :: ListAssociatedAttributeGroups -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssociatedAttributeGroups
s@ListAssociatedAttributeGroups' {} Maybe Text
a -> ListAssociatedAttributeGroups
s {$sel:nextToken:ListAssociatedAttributeGroups' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssociatedAttributeGroups)
listAssociatedAttributeGroups_maxResults :: Lens.Lens' ListAssociatedAttributeGroups (Prelude.Maybe Prelude.Natural)
listAssociatedAttributeGroups_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListAssociatedAttributeGroups -> f ListAssociatedAttributeGroups
listAssociatedAttributeGroups_maxResults = (ListAssociatedAttributeGroups -> Maybe Natural)
-> (ListAssociatedAttributeGroups
-> Maybe Natural -> ListAssociatedAttributeGroups)
-> Lens
ListAssociatedAttributeGroups
ListAssociatedAttributeGroups
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedAttributeGroups' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAssociatedAttributeGroups' :: ListAssociatedAttributeGroups -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAssociatedAttributeGroups
s@ListAssociatedAttributeGroups' {} Maybe Natural
a -> ListAssociatedAttributeGroups
s {$sel:maxResults:ListAssociatedAttributeGroups' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAssociatedAttributeGroups)
listAssociatedAttributeGroups_application :: Lens.Lens' ListAssociatedAttributeGroups Prelude.Text
listAssociatedAttributeGroups_application :: (Text -> f Text)
-> ListAssociatedAttributeGroups -> f ListAssociatedAttributeGroups
listAssociatedAttributeGroups_application = (ListAssociatedAttributeGroups -> Text)
-> (ListAssociatedAttributeGroups
-> Text -> ListAssociatedAttributeGroups)
-> Lens
ListAssociatedAttributeGroups
ListAssociatedAttributeGroups
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedAttributeGroups' {Text
application :: Text
$sel:application:ListAssociatedAttributeGroups' :: ListAssociatedAttributeGroups -> Text
application} -> Text
application) (\s :: ListAssociatedAttributeGroups
s@ListAssociatedAttributeGroups' {} Text
a -> ListAssociatedAttributeGroups
s {$sel:application:ListAssociatedAttributeGroups' :: Text
application = Text
a} :: ListAssociatedAttributeGroups)
instance Core.AWSPager ListAssociatedAttributeGroups where
page :: ListAssociatedAttributeGroups
-> AWSResponse ListAssociatedAttributeGroups
-> Maybe ListAssociatedAttributeGroups
page ListAssociatedAttributeGroups
rq AWSResponse ListAssociatedAttributeGroups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAssociatedAttributeGroups
ListAssociatedAttributeGroupsResponse
rs
ListAssociatedAttributeGroupsResponse
-> Getting (First Text) ListAssociatedAttributeGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssociatedAttributeGroupsResponse
-> Const (First Text) ListAssociatedAttributeGroupsResponse
Lens' ListAssociatedAttributeGroupsResponse (Maybe Text)
listAssociatedAttributeGroupsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssociatedAttributeGroupsResponse
-> Const (First Text) ListAssociatedAttributeGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAssociatedAttributeGroupsResponse 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 ListAssociatedAttributeGroups
forall a. Maybe a
Prelude.Nothing
| Maybe [Text] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAssociatedAttributeGroups
ListAssociatedAttributeGroupsResponse
rs
ListAssociatedAttributeGroupsResponse
-> Getting
(First [Text]) ListAssociatedAttributeGroupsResponse [Text]
-> Maybe [Text]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListAssociatedAttributeGroupsResponse
-> Const (First [Text]) ListAssociatedAttributeGroupsResponse
Lens' ListAssociatedAttributeGroupsResponse (Maybe [Text])
listAssociatedAttributeGroupsResponse_attributeGroups
((Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> ListAssociatedAttributeGroupsResponse
-> Const (First [Text]) ListAssociatedAttributeGroupsResponse)
-> (([Text] -> Const (First [Text]) [Text])
-> Maybe [Text] -> Const (First [Text]) (Maybe [Text]))
-> Getting
(First [Text]) ListAssociatedAttributeGroupsResponse [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 ListAssociatedAttributeGroups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListAssociatedAttributeGroups
-> Maybe ListAssociatedAttributeGroups
forall a. a -> Maybe a
Prelude.Just (ListAssociatedAttributeGroups
-> Maybe ListAssociatedAttributeGroups)
-> ListAssociatedAttributeGroups
-> Maybe ListAssociatedAttributeGroups
forall a b. (a -> b) -> a -> b
Prelude.$
ListAssociatedAttributeGroups
rq
ListAssociatedAttributeGroups
-> (ListAssociatedAttributeGroups -> ListAssociatedAttributeGroups)
-> ListAssociatedAttributeGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListAssociatedAttributeGroups
-> Identity ListAssociatedAttributeGroups
Lens
ListAssociatedAttributeGroups
ListAssociatedAttributeGroups
(Maybe Text)
(Maybe Text)
listAssociatedAttributeGroups_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListAssociatedAttributeGroups
-> Identity ListAssociatedAttributeGroups)
-> Maybe Text
-> ListAssociatedAttributeGroups
-> ListAssociatedAttributeGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAssociatedAttributeGroups
ListAssociatedAttributeGroupsResponse
rs
ListAssociatedAttributeGroupsResponse
-> Getting (First Text) ListAssociatedAttributeGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssociatedAttributeGroupsResponse
-> Const (First Text) ListAssociatedAttributeGroupsResponse
Lens' ListAssociatedAttributeGroupsResponse (Maybe Text)
listAssociatedAttributeGroupsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAssociatedAttributeGroupsResponse
-> Const (First Text) ListAssociatedAttributeGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAssociatedAttributeGroupsResponse 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
ListAssociatedAttributeGroups
where
type
AWSResponse ListAssociatedAttributeGroups =
ListAssociatedAttributeGroupsResponse
request :: ListAssociatedAttributeGroups
-> Request ListAssociatedAttributeGroups
request = Service
-> ListAssociatedAttributeGroups
-> Request ListAssociatedAttributeGroups
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListAssociatedAttributeGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAssociatedAttributeGroups)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListAssociatedAttributeGroups))
-> Logger
-> Service
-> Proxy ListAssociatedAttributeGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAssociatedAttributeGroups)))
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 -> ListAssociatedAttributeGroupsResponse
ListAssociatedAttributeGroupsResponse'
(Maybe [Text]
-> Maybe Text -> Int -> ListAssociatedAttributeGroupsResponse)
-> Either String (Maybe [Text])
-> Either
String (Maybe Text -> Int -> ListAssociatedAttributeGroupsResponse)
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
"attributeGroups"
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 -> ListAssociatedAttributeGroupsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListAssociatedAttributeGroupsResponse)
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 -> ListAssociatedAttributeGroupsResponse)
-> Either String Int
-> Either String ListAssociatedAttributeGroupsResponse
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
ListAssociatedAttributeGroups
instance Prelude.NFData ListAssociatedAttributeGroups
instance Core.ToHeaders ListAssociatedAttributeGroups where
toHeaders :: ListAssociatedAttributeGroups -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListAssociatedAttributeGroups -> 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 ListAssociatedAttributeGroups where
toPath :: ListAssociatedAttributeGroups -> ByteString
toPath ListAssociatedAttributeGroups' {Maybe Natural
Maybe Text
Text
application :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:application:ListAssociatedAttributeGroups' :: ListAssociatedAttributeGroups -> Text
$sel:maxResults:ListAssociatedAttributeGroups' :: ListAssociatedAttributeGroups -> Maybe Natural
$sel:nextToken:ListAssociatedAttributeGroups' :: ListAssociatedAttributeGroups -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/applications/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
application,
ByteString
"/attribute-groups"
]
instance Core.ToQuery ListAssociatedAttributeGroups where
toQuery :: ListAssociatedAttributeGroups -> QueryString
toQuery ListAssociatedAttributeGroups' {Maybe Natural
Maybe Text
Text
application :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:application:ListAssociatedAttributeGroups' :: ListAssociatedAttributeGroups -> Text
$sel:maxResults:ListAssociatedAttributeGroups' :: ListAssociatedAttributeGroups -> Maybe Natural
$sel:nextToken:ListAssociatedAttributeGroups' :: ListAssociatedAttributeGroups -> 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 ListAssociatedAttributeGroupsResponse = ListAssociatedAttributeGroupsResponse'
{
ListAssociatedAttributeGroupsResponse -> Maybe [Text]
attributeGroups :: Prelude.Maybe [Prelude.Text],
ListAssociatedAttributeGroupsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAssociatedAttributeGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAssociatedAttributeGroupsResponse
-> ListAssociatedAttributeGroupsResponse -> Bool
(ListAssociatedAttributeGroupsResponse
-> ListAssociatedAttributeGroupsResponse -> Bool)
-> (ListAssociatedAttributeGroupsResponse
-> ListAssociatedAttributeGroupsResponse -> Bool)
-> Eq ListAssociatedAttributeGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAssociatedAttributeGroupsResponse
-> ListAssociatedAttributeGroupsResponse -> Bool
$c/= :: ListAssociatedAttributeGroupsResponse
-> ListAssociatedAttributeGroupsResponse -> Bool
== :: ListAssociatedAttributeGroupsResponse
-> ListAssociatedAttributeGroupsResponse -> Bool
$c== :: ListAssociatedAttributeGroupsResponse
-> ListAssociatedAttributeGroupsResponse -> Bool
Prelude.Eq, ReadPrec [ListAssociatedAttributeGroupsResponse]
ReadPrec ListAssociatedAttributeGroupsResponse
Int -> ReadS ListAssociatedAttributeGroupsResponse
ReadS [ListAssociatedAttributeGroupsResponse]
(Int -> ReadS ListAssociatedAttributeGroupsResponse)
-> ReadS [ListAssociatedAttributeGroupsResponse]
-> ReadPrec ListAssociatedAttributeGroupsResponse
-> ReadPrec [ListAssociatedAttributeGroupsResponse]
-> Read ListAssociatedAttributeGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAssociatedAttributeGroupsResponse]
$creadListPrec :: ReadPrec [ListAssociatedAttributeGroupsResponse]
readPrec :: ReadPrec ListAssociatedAttributeGroupsResponse
$creadPrec :: ReadPrec ListAssociatedAttributeGroupsResponse
readList :: ReadS [ListAssociatedAttributeGroupsResponse]
$creadList :: ReadS [ListAssociatedAttributeGroupsResponse]
readsPrec :: Int -> ReadS ListAssociatedAttributeGroupsResponse
$creadsPrec :: Int -> ReadS ListAssociatedAttributeGroupsResponse
Prelude.Read, Int -> ListAssociatedAttributeGroupsResponse -> ShowS
[ListAssociatedAttributeGroupsResponse] -> ShowS
ListAssociatedAttributeGroupsResponse -> String
(Int -> ListAssociatedAttributeGroupsResponse -> ShowS)
-> (ListAssociatedAttributeGroupsResponse -> String)
-> ([ListAssociatedAttributeGroupsResponse] -> ShowS)
-> Show ListAssociatedAttributeGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAssociatedAttributeGroupsResponse] -> ShowS
$cshowList :: [ListAssociatedAttributeGroupsResponse] -> ShowS
show :: ListAssociatedAttributeGroupsResponse -> String
$cshow :: ListAssociatedAttributeGroupsResponse -> String
showsPrec :: Int -> ListAssociatedAttributeGroupsResponse -> ShowS
$cshowsPrec :: Int -> ListAssociatedAttributeGroupsResponse -> ShowS
Prelude.Show, (forall x.
ListAssociatedAttributeGroupsResponse
-> Rep ListAssociatedAttributeGroupsResponse x)
-> (forall x.
Rep ListAssociatedAttributeGroupsResponse x
-> ListAssociatedAttributeGroupsResponse)
-> Generic ListAssociatedAttributeGroupsResponse
forall x.
Rep ListAssociatedAttributeGroupsResponse x
-> ListAssociatedAttributeGroupsResponse
forall x.
ListAssociatedAttributeGroupsResponse
-> Rep ListAssociatedAttributeGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAssociatedAttributeGroupsResponse x
-> ListAssociatedAttributeGroupsResponse
$cfrom :: forall x.
ListAssociatedAttributeGroupsResponse
-> Rep ListAssociatedAttributeGroupsResponse x
Prelude.Generic)
newListAssociatedAttributeGroupsResponse ::
Prelude.Int ->
ListAssociatedAttributeGroupsResponse
newListAssociatedAttributeGroupsResponse :: Int -> ListAssociatedAttributeGroupsResponse
newListAssociatedAttributeGroupsResponse Int
pHttpStatus_ =
ListAssociatedAttributeGroupsResponse' :: Maybe [Text]
-> Maybe Text -> Int -> ListAssociatedAttributeGroupsResponse
ListAssociatedAttributeGroupsResponse'
{ $sel:attributeGroups:ListAssociatedAttributeGroupsResponse' :: Maybe [Text]
attributeGroups =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAssociatedAttributeGroupsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAssociatedAttributeGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAssociatedAttributeGroupsResponse_attributeGroups :: Lens.Lens' ListAssociatedAttributeGroupsResponse (Prelude.Maybe [Prelude.Text])
listAssociatedAttributeGroupsResponse_attributeGroups :: (Maybe [Text] -> f (Maybe [Text]))
-> ListAssociatedAttributeGroupsResponse
-> f ListAssociatedAttributeGroupsResponse
listAssociatedAttributeGroupsResponse_attributeGroups = (ListAssociatedAttributeGroupsResponse -> Maybe [Text])
-> (ListAssociatedAttributeGroupsResponse
-> Maybe [Text] -> ListAssociatedAttributeGroupsResponse)
-> Lens' ListAssociatedAttributeGroupsResponse (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedAttributeGroupsResponse' {Maybe [Text]
attributeGroups :: Maybe [Text]
$sel:attributeGroups:ListAssociatedAttributeGroupsResponse' :: ListAssociatedAttributeGroupsResponse -> Maybe [Text]
attributeGroups} -> Maybe [Text]
attributeGroups) (\s :: ListAssociatedAttributeGroupsResponse
s@ListAssociatedAttributeGroupsResponse' {} Maybe [Text]
a -> ListAssociatedAttributeGroupsResponse
s {$sel:attributeGroups:ListAssociatedAttributeGroupsResponse' :: Maybe [Text]
attributeGroups = Maybe [Text]
a} :: ListAssociatedAttributeGroupsResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> ListAssociatedAttributeGroupsResponse
-> f ListAssociatedAttributeGroupsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ListAssociatedAttributeGroupsResponse
-> f ListAssociatedAttributeGroupsResponse
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
listAssociatedAttributeGroupsResponse_nextToken :: Lens.Lens' ListAssociatedAttributeGroupsResponse (Prelude.Maybe Prelude.Text)
listAssociatedAttributeGroupsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAssociatedAttributeGroupsResponse
-> f ListAssociatedAttributeGroupsResponse
listAssociatedAttributeGroupsResponse_nextToken = (ListAssociatedAttributeGroupsResponse -> Maybe Text)
-> (ListAssociatedAttributeGroupsResponse
-> Maybe Text -> ListAssociatedAttributeGroupsResponse)
-> Lens' ListAssociatedAttributeGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedAttributeGroupsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAssociatedAttributeGroupsResponse' :: ListAssociatedAttributeGroupsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAssociatedAttributeGroupsResponse
s@ListAssociatedAttributeGroupsResponse' {} Maybe Text
a -> ListAssociatedAttributeGroupsResponse
s {$sel:nextToken:ListAssociatedAttributeGroupsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAssociatedAttributeGroupsResponse)
listAssociatedAttributeGroupsResponse_httpStatus :: Lens.Lens' ListAssociatedAttributeGroupsResponse Prelude.Int
listAssociatedAttributeGroupsResponse_httpStatus :: (Int -> f Int)
-> ListAssociatedAttributeGroupsResponse
-> f ListAssociatedAttributeGroupsResponse
listAssociatedAttributeGroupsResponse_httpStatus = (ListAssociatedAttributeGroupsResponse -> Int)
-> (ListAssociatedAttributeGroupsResponse
-> Int -> ListAssociatedAttributeGroupsResponse)
-> Lens
ListAssociatedAttributeGroupsResponse
ListAssociatedAttributeGroupsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAssociatedAttributeGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAssociatedAttributeGroupsResponse' :: ListAssociatedAttributeGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAssociatedAttributeGroupsResponse
s@ListAssociatedAttributeGroupsResponse' {} Int
a -> ListAssociatedAttributeGroupsResponse
s {$sel:httpStatus:ListAssociatedAttributeGroupsResponse' :: Int
httpStatus = Int
a} :: ListAssociatedAttributeGroupsResponse)
instance
Prelude.NFData
ListAssociatedAttributeGroupsResponse