{-# 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.IAM.GetGroup
(
GetGroup (..),
newGetGroup,
getGroup_marker,
getGroup_maxItems,
getGroup_groupName,
GetGroupResponse (..),
newGetGroupResponse,
getGroupResponse_marker,
getGroupResponse_isTruncated,
getGroupResponse_httpStatus,
getGroupResponse_group,
getGroupResponse_users,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IAM.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 GetGroup = GetGroup'
{
GetGroup -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
GetGroup -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
GetGroup -> Text
groupName :: Prelude.Text
}
deriving (GetGroup -> GetGroup -> Bool
(GetGroup -> GetGroup -> Bool)
-> (GetGroup -> GetGroup -> Bool) -> Eq GetGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetGroup -> GetGroup -> Bool
$c/= :: GetGroup -> GetGroup -> Bool
== :: GetGroup -> GetGroup -> Bool
$c== :: GetGroup -> GetGroup -> Bool
Prelude.Eq, ReadPrec [GetGroup]
ReadPrec GetGroup
Int -> ReadS GetGroup
ReadS [GetGroup]
(Int -> ReadS GetGroup)
-> ReadS [GetGroup]
-> ReadPrec GetGroup
-> ReadPrec [GetGroup]
-> Read GetGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetGroup]
$creadListPrec :: ReadPrec [GetGroup]
readPrec :: ReadPrec GetGroup
$creadPrec :: ReadPrec GetGroup
readList :: ReadS [GetGroup]
$creadList :: ReadS [GetGroup]
readsPrec :: Int -> ReadS GetGroup
$creadsPrec :: Int -> ReadS GetGroup
Prelude.Read, Int -> GetGroup -> ShowS
[GetGroup] -> ShowS
GetGroup -> String
(Int -> GetGroup -> ShowS)
-> (GetGroup -> String) -> ([GetGroup] -> ShowS) -> Show GetGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetGroup] -> ShowS
$cshowList :: [GetGroup] -> ShowS
show :: GetGroup -> String
$cshow :: GetGroup -> String
showsPrec :: Int -> GetGroup -> ShowS
$cshowsPrec :: Int -> GetGroup -> ShowS
Prelude.Show, (forall x. GetGroup -> Rep GetGroup x)
-> (forall x. Rep GetGroup x -> GetGroup) -> Generic GetGroup
forall x. Rep GetGroup x -> GetGroup
forall x. GetGroup -> Rep GetGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetGroup x -> GetGroup
$cfrom :: forall x. GetGroup -> Rep GetGroup x
Prelude.Generic)
newGetGroup ::
Prelude.Text ->
GetGroup
newGetGroup :: Text -> GetGroup
newGetGroup Text
pGroupName_ =
GetGroup' :: Maybe Text -> Maybe Natural -> Text -> GetGroup
GetGroup'
{ $sel:marker:GetGroup' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:GetGroup' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:groupName:GetGroup' :: Text
groupName = Text
pGroupName_
}
getGroup_marker :: Lens.Lens' GetGroup (Prelude.Maybe Prelude.Text)
getGroup_marker :: (Maybe Text -> f (Maybe Text)) -> GetGroup -> f GetGroup
getGroup_marker = (GetGroup -> Maybe Text)
-> (GetGroup -> Maybe Text -> GetGroup)
-> Lens GetGroup GetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroup' {Maybe Text
marker :: Maybe Text
$sel:marker:GetGroup' :: GetGroup -> Maybe Text
marker} -> Maybe Text
marker) (\s :: GetGroup
s@GetGroup' {} Maybe Text
a -> GetGroup
s {$sel:marker:GetGroup' :: Maybe Text
marker = Maybe Text
a} :: GetGroup)
getGroup_maxItems :: Lens.Lens' GetGroup (Prelude.Maybe Prelude.Natural)
getGroup_maxItems :: (Maybe Natural -> f (Maybe Natural)) -> GetGroup -> f GetGroup
getGroup_maxItems = (GetGroup -> Maybe Natural)
-> (GetGroup -> Maybe Natural -> GetGroup)
-> Lens GetGroup GetGroup (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroup' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:GetGroup' :: GetGroup -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: GetGroup
s@GetGroup' {} Maybe Natural
a -> GetGroup
s {$sel:maxItems:GetGroup' :: Maybe Natural
maxItems = Maybe Natural
a} :: GetGroup)
getGroup_groupName :: Lens.Lens' GetGroup Prelude.Text
getGroup_groupName :: (Text -> f Text) -> GetGroup -> f GetGroup
getGroup_groupName = (GetGroup -> Text)
-> (GetGroup -> Text -> GetGroup)
-> Lens GetGroup GetGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroup' {Text
groupName :: Text
$sel:groupName:GetGroup' :: GetGroup -> Text
groupName} -> Text
groupName) (\s :: GetGroup
s@GetGroup' {} Text
a -> GetGroup
s {$sel:groupName:GetGroup' :: Text
groupName = Text
a} :: GetGroup)
instance Core.AWSPager GetGroup where
page :: GetGroup -> AWSResponse GetGroup -> Maybe GetGroup
page GetGroup
rq AWSResponse GetGroup
rs
| Maybe Bool -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetGroup
GetGroupResponse
rs
GetGroupResponse
-> Getting (First Bool) GetGroupResponse Bool -> Maybe Bool
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Bool -> Const (First Bool) (Maybe Bool))
-> GetGroupResponse -> Const (First Bool) GetGroupResponse
Lens' GetGroupResponse (Maybe Bool)
getGroupResponse_isTruncated ((Maybe Bool -> Const (First Bool) (Maybe Bool))
-> GetGroupResponse -> Const (First Bool) GetGroupResponse)
-> ((Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool))
-> Getting (First Bool) GetGroupResponse Bool
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetGroup
forall a. Maybe a
Prelude.Nothing
| Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse GetGroup
GetGroupResponse
rs
GetGroupResponse
-> Getting (First Text) GetGroupResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetGroupResponse -> Const (First Text) GetGroupResponse
Lens' GetGroupResponse (Maybe Text)
getGroupResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetGroupResponse -> Const (First Text) GetGroupResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetGroupResponse 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 GetGroup
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetGroup -> Maybe GetGroup
forall a. a -> Maybe a
Prelude.Just (GetGroup -> Maybe GetGroup) -> GetGroup -> Maybe GetGroup
forall a b. (a -> b) -> a -> b
Prelude.$
GetGroup
rq
GetGroup -> (GetGroup -> GetGroup) -> GetGroup
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetGroup -> Identity GetGroup
Lens GetGroup GetGroup (Maybe Text) (Maybe Text)
getGroup_marker
((Maybe Text -> Identity (Maybe Text))
-> GetGroup -> Identity GetGroup)
-> Maybe Text -> GetGroup -> GetGroup
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetGroup
GetGroupResponse
rs
GetGroupResponse
-> Getting (First Text) GetGroupResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetGroupResponse -> Const (First Text) GetGroupResponse
Lens' GetGroupResponse (Maybe Text)
getGroupResponse_marker ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetGroupResponse -> Const (First Text) GetGroupResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetGroupResponse 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 GetGroup where
type AWSResponse GetGroup = GetGroupResponse
request :: GetGroup -> Request GetGroup
request = Service -> GetGroup -> Request GetGroup
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy GetGroup
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetGroup)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse GetGroup))
-> Logger
-> Service
-> Proxy GetGroup
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetGroup)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"GetGroupResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe Bool -> Int -> Group -> [User] -> GetGroupResponse
GetGroupResponse'
(Maybe Text
-> Maybe Bool -> Int -> Group -> [User] -> GetGroupResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Bool -> Int -> Group -> [User] -> GetGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Marker")
Either
String (Maybe Bool -> Int -> Group -> [User] -> GetGroupResponse)
-> Either String (Maybe Bool)
-> Either String (Int -> Group -> [User] -> GetGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"IsTruncated")
Either String (Int -> Group -> [User] -> GetGroupResponse)
-> Either String Int
-> Either String (Group -> [User] -> GetGroupResponse)
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))
Either String (Group -> [User] -> GetGroupResponse)
-> Either String Group
-> Either String ([User] -> GetGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Group
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"Group")
Either String ([User] -> GetGroupResponse)
-> Either String [User] -> Either String GetGroupResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Users" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String [User]) -> Either String [User]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [User]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member"
)
)
instance Prelude.Hashable GetGroup
instance Prelude.NFData GetGroup
instance Core.ToHeaders GetGroup where
toHeaders :: GetGroup -> ResponseHeaders
toHeaders = ResponseHeaders -> GetGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath GetGroup where
toPath :: GetGroup -> ByteString
toPath = ByteString -> GetGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetGroup where
toQuery :: GetGroup -> QueryString
toQuery GetGroup' {Maybe Natural
Maybe Text
Text
groupName :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:groupName:GetGroup' :: GetGroup -> Text
$sel:maxItems:GetGroup' :: GetGroup -> Maybe Natural
$sel:marker:GetGroup' :: GetGroup -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action" ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"GetGroup" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxItems" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxItems,
ByteString
"GroupName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
groupName
]
data GetGroupResponse = GetGroupResponse'
{
GetGroupResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
GetGroupResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
GetGroupResponse -> Int
httpStatus :: Prelude.Int,
GetGroupResponse -> Group
group' :: Group,
GetGroupResponse -> [User]
users :: [User]
}
deriving (GetGroupResponse -> GetGroupResponse -> Bool
(GetGroupResponse -> GetGroupResponse -> Bool)
-> (GetGroupResponse -> GetGroupResponse -> Bool)
-> Eq GetGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetGroupResponse -> GetGroupResponse -> Bool
$c/= :: GetGroupResponse -> GetGroupResponse -> Bool
== :: GetGroupResponse -> GetGroupResponse -> Bool
$c== :: GetGroupResponse -> GetGroupResponse -> Bool
Prelude.Eq, ReadPrec [GetGroupResponse]
ReadPrec GetGroupResponse
Int -> ReadS GetGroupResponse
ReadS [GetGroupResponse]
(Int -> ReadS GetGroupResponse)
-> ReadS [GetGroupResponse]
-> ReadPrec GetGroupResponse
-> ReadPrec [GetGroupResponse]
-> Read GetGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetGroupResponse]
$creadListPrec :: ReadPrec [GetGroupResponse]
readPrec :: ReadPrec GetGroupResponse
$creadPrec :: ReadPrec GetGroupResponse
readList :: ReadS [GetGroupResponse]
$creadList :: ReadS [GetGroupResponse]
readsPrec :: Int -> ReadS GetGroupResponse
$creadsPrec :: Int -> ReadS GetGroupResponse
Prelude.Read, Int -> GetGroupResponse -> ShowS
[GetGroupResponse] -> ShowS
GetGroupResponse -> String
(Int -> GetGroupResponse -> ShowS)
-> (GetGroupResponse -> String)
-> ([GetGroupResponse] -> ShowS)
-> Show GetGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetGroupResponse] -> ShowS
$cshowList :: [GetGroupResponse] -> ShowS
show :: GetGroupResponse -> String
$cshow :: GetGroupResponse -> String
showsPrec :: Int -> GetGroupResponse -> ShowS
$cshowsPrec :: Int -> GetGroupResponse -> ShowS
Prelude.Show, (forall x. GetGroupResponse -> Rep GetGroupResponse x)
-> (forall x. Rep GetGroupResponse x -> GetGroupResponse)
-> Generic GetGroupResponse
forall x. Rep GetGroupResponse x -> GetGroupResponse
forall x. GetGroupResponse -> Rep GetGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetGroupResponse x -> GetGroupResponse
$cfrom :: forall x. GetGroupResponse -> Rep GetGroupResponse x
Prelude.Generic)
newGetGroupResponse ::
Prelude.Int ->
Group ->
GetGroupResponse
newGetGroupResponse :: Int -> Group -> GetGroupResponse
newGetGroupResponse Int
pHttpStatus_ Group
pGroup_ =
GetGroupResponse' :: Maybe Text
-> Maybe Bool -> Int -> Group -> [User] -> GetGroupResponse
GetGroupResponse'
{ $sel:marker:GetGroupResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:GetGroupResponse' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetGroupResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:group':GetGroupResponse' :: Group
group' = Group
pGroup_,
$sel:users:GetGroupResponse' :: [User]
users = [User]
forall a. Monoid a => a
Prelude.mempty
}
getGroupResponse_marker :: Lens.Lens' GetGroupResponse (Prelude.Maybe Prelude.Text)
getGroupResponse_marker :: (Maybe Text -> f (Maybe Text))
-> GetGroupResponse -> f GetGroupResponse
getGroupResponse_marker = (GetGroupResponse -> Maybe Text)
-> (GetGroupResponse -> Maybe Text -> GetGroupResponse)
-> Lens' GetGroupResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:GetGroupResponse' :: GetGroupResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: GetGroupResponse
s@GetGroupResponse' {} Maybe Text
a -> GetGroupResponse
s {$sel:marker:GetGroupResponse' :: Maybe Text
marker = Maybe Text
a} :: GetGroupResponse)
getGroupResponse_isTruncated :: Lens.Lens' GetGroupResponse (Prelude.Maybe Prelude.Bool)
getGroupResponse_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> GetGroupResponse -> f GetGroupResponse
getGroupResponse_isTruncated = (GetGroupResponse -> Maybe Bool)
-> (GetGroupResponse -> Maybe Bool -> GetGroupResponse)
-> Lens' GetGroupResponse (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:GetGroupResponse' :: GetGroupResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: GetGroupResponse
s@GetGroupResponse' {} Maybe Bool
a -> GetGroupResponse
s {$sel:isTruncated:GetGroupResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: GetGroupResponse)
getGroupResponse_httpStatus :: Lens.Lens' GetGroupResponse Prelude.Int
getGroupResponse_httpStatus :: (Int -> f Int) -> GetGroupResponse -> f GetGroupResponse
getGroupResponse_httpStatus = (GetGroupResponse -> Int)
-> (GetGroupResponse -> Int -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetGroupResponse' :: GetGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetGroupResponse
s@GetGroupResponse' {} Int
a -> GetGroupResponse
s {$sel:httpStatus:GetGroupResponse' :: Int
httpStatus = Int
a} :: GetGroupResponse)
getGroupResponse_group :: Lens.Lens' GetGroupResponse Group
getGroupResponse_group :: (Group -> f Group) -> GetGroupResponse -> f GetGroupResponse
getGroupResponse_group = (GetGroupResponse -> Group)
-> (GetGroupResponse -> Group -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse Group Group
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {Group
group' :: Group
$sel:group':GetGroupResponse' :: GetGroupResponse -> Group
group'} -> Group
group') (\s :: GetGroupResponse
s@GetGroupResponse' {} Group
a -> GetGroupResponse
s {$sel:group':GetGroupResponse' :: Group
group' = Group
a} :: GetGroupResponse)
getGroupResponse_users :: Lens.Lens' GetGroupResponse [User]
getGroupResponse_users :: ([User] -> f [User]) -> GetGroupResponse -> f GetGroupResponse
getGroupResponse_users = (GetGroupResponse -> [User])
-> (GetGroupResponse -> [User] -> GetGroupResponse)
-> Lens GetGroupResponse GetGroupResponse [User] [User]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetGroupResponse' {[User]
users :: [User]
$sel:users:GetGroupResponse' :: GetGroupResponse -> [User]
users} -> [User]
users) (\s :: GetGroupResponse
s@GetGroupResponse' {} [User]
a -> GetGroupResponse
s {$sel:users:GetGroupResponse' :: [User]
users = [User]
a} :: GetGroupResponse) (([User] -> f [User]) -> GetGroupResponse -> f GetGroupResponse)
-> (([User] -> f [User]) -> [User] -> f [User])
-> ([User] -> f [User])
-> GetGroupResponse
-> f GetGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([User] -> f [User]) -> [User] -> f [User]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData GetGroupResponse