{-# 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.ListAttachedGroupPolicies
(
ListAttachedGroupPolicies (..),
newListAttachedGroupPolicies,
listAttachedGroupPolicies_marker,
listAttachedGroupPolicies_maxItems,
listAttachedGroupPolicies_pathPrefix,
listAttachedGroupPolicies_groupName,
ListAttachedGroupPoliciesResponse (..),
newListAttachedGroupPoliciesResponse,
listAttachedGroupPoliciesResponse_attachedPolicies,
listAttachedGroupPoliciesResponse_isTruncated,
listAttachedGroupPoliciesResponse_marker,
listAttachedGroupPoliciesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.IAM.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListAttachedGroupPolicies = ListAttachedGroupPolicies'
{
ListAttachedGroupPolicies -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListAttachedGroupPolicies -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
ListAttachedGroupPolicies -> Maybe Text
pathPrefix :: Prelude.Maybe Prelude.Text,
ListAttachedGroupPolicies -> Text
groupName :: Prelude.Text
}
deriving (ListAttachedGroupPolicies -> ListAttachedGroupPolicies -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAttachedGroupPolicies -> ListAttachedGroupPolicies -> Bool
$c/= :: ListAttachedGroupPolicies -> ListAttachedGroupPolicies -> Bool
== :: ListAttachedGroupPolicies -> ListAttachedGroupPolicies -> Bool
$c== :: ListAttachedGroupPolicies -> ListAttachedGroupPolicies -> Bool
Prelude.Eq, ReadPrec [ListAttachedGroupPolicies]
ReadPrec ListAttachedGroupPolicies
Int -> ReadS ListAttachedGroupPolicies
ReadS [ListAttachedGroupPolicies]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAttachedGroupPolicies]
$creadListPrec :: ReadPrec [ListAttachedGroupPolicies]
readPrec :: ReadPrec ListAttachedGroupPolicies
$creadPrec :: ReadPrec ListAttachedGroupPolicies
readList :: ReadS [ListAttachedGroupPolicies]
$creadList :: ReadS [ListAttachedGroupPolicies]
readsPrec :: Int -> ReadS ListAttachedGroupPolicies
$creadsPrec :: Int -> ReadS ListAttachedGroupPolicies
Prelude.Read, Int -> ListAttachedGroupPolicies -> ShowS
[ListAttachedGroupPolicies] -> ShowS
ListAttachedGroupPolicies -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAttachedGroupPolicies] -> ShowS
$cshowList :: [ListAttachedGroupPolicies] -> ShowS
show :: ListAttachedGroupPolicies -> String
$cshow :: ListAttachedGroupPolicies -> String
showsPrec :: Int -> ListAttachedGroupPolicies -> ShowS
$cshowsPrec :: Int -> ListAttachedGroupPolicies -> ShowS
Prelude.Show, forall x.
Rep ListAttachedGroupPolicies x -> ListAttachedGroupPolicies
forall x.
ListAttachedGroupPolicies -> Rep ListAttachedGroupPolicies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAttachedGroupPolicies x -> ListAttachedGroupPolicies
$cfrom :: forall x.
ListAttachedGroupPolicies -> Rep ListAttachedGroupPolicies x
Prelude.Generic)
newListAttachedGroupPolicies ::
Prelude.Text ->
ListAttachedGroupPolicies
newListAttachedGroupPolicies :: Text -> ListAttachedGroupPolicies
newListAttachedGroupPolicies Text
pGroupName_ =
ListAttachedGroupPolicies'
{ $sel:marker:ListAttachedGroupPolicies' :: Maybe Text
marker =
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListAttachedGroupPolicies' :: Maybe Natural
maxItems = forall a. Maybe a
Prelude.Nothing,
$sel:pathPrefix:ListAttachedGroupPolicies' :: Maybe Text
pathPrefix = forall a. Maybe a
Prelude.Nothing,
$sel:groupName:ListAttachedGroupPolicies' :: Text
groupName = Text
pGroupName_
}
listAttachedGroupPolicies_marker :: Lens.Lens' ListAttachedGroupPolicies (Prelude.Maybe Prelude.Text)
listAttachedGroupPolicies_marker :: Lens' ListAttachedGroupPolicies (Maybe Text)
listAttachedGroupPolicies_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedGroupPolicies' {Maybe Text
marker :: Maybe Text
$sel:marker:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListAttachedGroupPolicies
s@ListAttachedGroupPolicies' {} Maybe Text
a -> ListAttachedGroupPolicies
s {$sel:marker:ListAttachedGroupPolicies' :: Maybe Text
marker = Maybe Text
a} :: ListAttachedGroupPolicies)
listAttachedGroupPolicies_maxItems :: Lens.Lens' ListAttachedGroupPolicies (Prelude.Maybe Prelude.Natural)
listAttachedGroupPolicies_maxItems :: Lens' ListAttachedGroupPolicies (Maybe Natural)
listAttachedGroupPolicies_maxItems = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedGroupPolicies' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListAttachedGroupPolicies
s@ListAttachedGroupPolicies' {} Maybe Natural
a -> ListAttachedGroupPolicies
s {$sel:maxItems:ListAttachedGroupPolicies' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListAttachedGroupPolicies)
listAttachedGroupPolicies_pathPrefix :: Lens.Lens' ListAttachedGroupPolicies (Prelude.Maybe Prelude.Text)
listAttachedGroupPolicies_pathPrefix :: Lens' ListAttachedGroupPolicies (Maybe Text)
listAttachedGroupPolicies_pathPrefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedGroupPolicies' {Maybe Text
pathPrefix :: Maybe Text
$sel:pathPrefix:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Text
pathPrefix} -> Maybe Text
pathPrefix) (\s :: ListAttachedGroupPolicies
s@ListAttachedGroupPolicies' {} Maybe Text
a -> ListAttachedGroupPolicies
s {$sel:pathPrefix:ListAttachedGroupPolicies' :: Maybe Text
pathPrefix = Maybe Text
a} :: ListAttachedGroupPolicies)
listAttachedGroupPolicies_groupName :: Lens.Lens' ListAttachedGroupPolicies Prelude.Text
listAttachedGroupPolicies_groupName :: Lens' ListAttachedGroupPolicies Text
listAttachedGroupPolicies_groupName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedGroupPolicies' {Text
groupName :: Text
$sel:groupName:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Text
groupName} -> Text
groupName) (\s :: ListAttachedGroupPolicies
s@ListAttachedGroupPolicies' {} Text
a -> ListAttachedGroupPolicies
s {$sel:groupName:ListAttachedGroupPolicies' :: Text
groupName = Text
a} :: ListAttachedGroupPolicies)
instance Core.AWSPager ListAttachedGroupPolicies where
page :: ListAttachedGroupPolicies
-> AWSResponse ListAttachedGroupPolicies
-> Maybe ListAttachedGroupPolicies
page ListAttachedGroupPolicies
rq AWSResponse ListAttachedGroupPolicies
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAttachedGroupPolicies
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedGroupPoliciesResponse (Maybe Bool)
listAttachedGroupPoliciesResponse_isTruncated
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse ListAttachedGroupPolicies
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedGroupPoliciesResponse (Maybe Text)
listAttachedGroupPoliciesResponse_marker
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListAttachedGroupPolicies
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListAttachedGroupPolicies (Maybe Text)
listAttachedGroupPolicies_marker
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAttachedGroupPolicies
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedGroupPoliciesResponse (Maybe Text)
listAttachedGroupPoliciesResponse_marker
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListAttachedGroupPolicies where
type
AWSResponse ListAttachedGroupPolicies =
ListAttachedGroupPoliciesResponse
request :: (Service -> Service)
-> ListAttachedGroupPolicies -> Request ListAttachedGroupPolicies
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListAttachedGroupPolicies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAttachedGroupPolicies)))
response =
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"ListAttachedGroupPoliciesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [AttachedPolicy]
-> Maybe Bool
-> Maybe Text
-> Int
-> ListAttachedGroupPoliciesResponse
ListAttachedGroupPoliciesResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"AttachedPolicies"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (forall a. FromXML a => Text -> [Node] -> Either String [a]
Data.parseXMLList Text
"member")
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"IsTruncated")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Data..@? Text
"Marker")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListAttachedGroupPolicies where
hashWithSalt :: Int -> ListAttachedGroupPolicies -> Int
hashWithSalt Int
_salt ListAttachedGroupPolicies' {Maybe Natural
Maybe Text
Text
groupName :: Text
pathPrefix :: Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:groupName:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Text
$sel:pathPrefix:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Text
$sel:maxItems:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Natural
$sel:marker:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
marker
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxItems
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
pathPrefix
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
groupName
instance Prelude.NFData ListAttachedGroupPolicies where
rnf :: ListAttachedGroupPolicies -> ()
rnf ListAttachedGroupPolicies' {Maybe Natural
Maybe Text
Text
groupName :: Text
pathPrefix :: Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:groupName:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Text
$sel:pathPrefix:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Text
$sel:maxItems:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Natural
$sel:marker:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
marker
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxItems
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
pathPrefix
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
groupName
instance Data.ToHeaders ListAttachedGroupPolicies where
toHeaders :: ListAttachedGroupPolicies -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath ListAttachedGroupPolicies where
toPath :: ListAttachedGroupPolicies -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ListAttachedGroupPolicies where
toQuery :: ListAttachedGroupPolicies -> QueryString
toQuery ListAttachedGroupPolicies' {Maybe Natural
Maybe Text
Text
groupName :: Text
pathPrefix :: Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:groupName:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Text
$sel:pathPrefix:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Text
$sel:maxItems:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Natural
$sel:marker:ListAttachedGroupPolicies' :: ListAttachedGroupPolicies -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"ListAttachedGroupPolicies" :: Prelude.ByteString),
ByteString
"Version"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
ByteString
"Marker" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
marker,
ByteString
"MaxItems" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxItems,
ByteString
"PathPrefix" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
pathPrefix,
ByteString
"GroupName" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
groupName
]
data ListAttachedGroupPoliciesResponse = ListAttachedGroupPoliciesResponse'
{
ListAttachedGroupPoliciesResponse -> Maybe [AttachedPolicy]
attachedPolicies :: Prelude.Maybe [AttachedPolicy],
ListAttachedGroupPoliciesResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
ListAttachedGroupPoliciesResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListAttachedGroupPoliciesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAttachedGroupPoliciesResponse
-> ListAttachedGroupPoliciesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAttachedGroupPoliciesResponse
-> ListAttachedGroupPoliciesResponse -> Bool
$c/= :: ListAttachedGroupPoliciesResponse
-> ListAttachedGroupPoliciesResponse -> Bool
== :: ListAttachedGroupPoliciesResponse
-> ListAttachedGroupPoliciesResponse -> Bool
$c== :: ListAttachedGroupPoliciesResponse
-> ListAttachedGroupPoliciesResponse -> Bool
Prelude.Eq, ReadPrec [ListAttachedGroupPoliciesResponse]
ReadPrec ListAttachedGroupPoliciesResponse
Int -> ReadS ListAttachedGroupPoliciesResponse
ReadS [ListAttachedGroupPoliciesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAttachedGroupPoliciesResponse]
$creadListPrec :: ReadPrec [ListAttachedGroupPoliciesResponse]
readPrec :: ReadPrec ListAttachedGroupPoliciesResponse
$creadPrec :: ReadPrec ListAttachedGroupPoliciesResponse
readList :: ReadS [ListAttachedGroupPoliciesResponse]
$creadList :: ReadS [ListAttachedGroupPoliciesResponse]
readsPrec :: Int -> ReadS ListAttachedGroupPoliciesResponse
$creadsPrec :: Int -> ReadS ListAttachedGroupPoliciesResponse
Prelude.Read, Int -> ListAttachedGroupPoliciesResponse -> ShowS
[ListAttachedGroupPoliciesResponse] -> ShowS
ListAttachedGroupPoliciesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAttachedGroupPoliciesResponse] -> ShowS
$cshowList :: [ListAttachedGroupPoliciesResponse] -> ShowS
show :: ListAttachedGroupPoliciesResponse -> String
$cshow :: ListAttachedGroupPoliciesResponse -> String
showsPrec :: Int -> ListAttachedGroupPoliciesResponse -> ShowS
$cshowsPrec :: Int -> ListAttachedGroupPoliciesResponse -> ShowS
Prelude.Show, forall x.
Rep ListAttachedGroupPoliciesResponse x
-> ListAttachedGroupPoliciesResponse
forall x.
ListAttachedGroupPoliciesResponse
-> Rep ListAttachedGroupPoliciesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAttachedGroupPoliciesResponse x
-> ListAttachedGroupPoliciesResponse
$cfrom :: forall x.
ListAttachedGroupPoliciesResponse
-> Rep ListAttachedGroupPoliciesResponse x
Prelude.Generic)
newListAttachedGroupPoliciesResponse ::
Prelude.Int ->
ListAttachedGroupPoliciesResponse
newListAttachedGroupPoliciesResponse :: Int -> ListAttachedGroupPoliciesResponse
newListAttachedGroupPoliciesResponse Int
pHttpStatus_ =
ListAttachedGroupPoliciesResponse'
{ $sel:attachedPolicies:ListAttachedGroupPoliciesResponse' :: Maybe [AttachedPolicy]
attachedPolicies =
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:ListAttachedGroupPoliciesResponse' :: Maybe Bool
isTruncated = forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListAttachedGroupPoliciesResponse' :: Maybe Text
marker = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAttachedGroupPoliciesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAttachedGroupPoliciesResponse_attachedPolicies :: Lens.Lens' ListAttachedGroupPoliciesResponse (Prelude.Maybe [AttachedPolicy])
listAttachedGroupPoliciesResponse_attachedPolicies :: Lens' ListAttachedGroupPoliciesResponse (Maybe [AttachedPolicy])
listAttachedGroupPoliciesResponse_attachedPolicies = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedGroupPoliciesResponse' {Maybe [AttachedPolicy]
attachedPolicies :: Maybe [AttachedPolicy]
$sel:attachedPolicies:ListAttachedGroupPoliciesResponse' :: ListAttachedGroupPoliciesResponse -> Maybe [AttachedPolicy]
attachedPolicies} -> Maybe [AttachedPolicy]
attachedPolicies) (\s :: ListAttachedGroupPoliciesResponse
s@ListAttachedGroupPoliciesResponse' {} Maybe [AttachedPolicy]
a -> ListAttachedGroupPoliciesResponse
s {$sel:attachedPolicies:ListAttachedGroupPoliciesResponse' :: Maybe [AttachedPolicy]
attachedPolicies = Maybe [AttachedPolicy]
a} :: ListAttachedGroupPoliciesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAttachedGroupPoliciesResponse_isTruncated :: Lens.Lens' ListAttachedGroupPoliciesResponse (Prelude.Maybe Prelude.Bool)
listAttachedGroupPoliciesResponse_isTruncated :: Lens' ListAttachedGroupPoliciesResponse (Maybe Bool)
listAttachedGroupPoliciesResponse_isTruncated = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedGroupPoliciesResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListAttachedGroupPoliciesResponse' :: ListAttachedGroupPoliciesResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListAttachedGroupPoliciesResponse
s@ListAttachedGroupPoliciesResponse' {} Maybe Bool
a -> ListAttachedGroupPoliciesResponse
s {$sel:isTruncated:ListAttachedGroupPoliciesResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListAttachedGroupPoliciesResponse)
listAttachedGroupPoliciesResponse_marker :: Lens.Lens' ListAttachedGroupPoliciesResponse (Prelude.Maybe Prelude.Text)
listAttachedGroupPoliciesResponse_marker :: Lens' ListAttachedGroupPoliciesResponse (Maybe Text)
listAttachedGroupPoliciesResponse_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedGroupPoliciesResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListAttachedGroupPoliciesResponse' :: ListAttachedGroupPoliciesResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListAttachedGroupPoliciesResponse
s@ListAttachedGroupPoliciesResponse' {} Maybe Text
a -> ListAttachedGroupPoliciesResponse
s {$sel:marker:ListAttachedGroupPoliciesResponse' :: Maybe Text
marker = Maybe Text
a} :: ListAttachedGroupPoliciesResponse)
listAttachedGroupPoliciesResponse_httpStatus :: Lens.Lens' ListAttachedGroupPoliciesResponse Prelude.Int
listAttachedGroupPoliciesResponse_httpStatus :: Lens' ListAttachedGroupPoliciesResponse Int
listAttachedGroupPoliciesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedGroupPoliciesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAttachedGroupPoliciesResponse' :: ListAttachedGroupPoliciesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAttachedGroupPoliciesResponse
s@ListAttachedGroupPoliciesResponse' {} Int
a -> ListAttachedGroupPoliciesResponse
s {$sel:httpStatus:ListAttachedGroupPoliciesResponse' :: Int
httpStatus = Int
a} :: ListAttachedGroupPoliciesResponse)
instance
Prelude.NFData
ListAttachedGroupPoliciesResponse
where
rnf :: ListAttachedGroupPoliciesResponse -> ()
rnf ListAttachedGroupPoliciesResponse' {Int
Maybe Bool
Maybe [AttachedPolicy]
Maybe Text
httpStatus :: Int
marker :: Maybe Text
isTruncated :: Maybe Bool
attachedPolicies :: Maybe [AttachedPolicy]
$sel:httpStatus:ListAttachedGroupPoliciesResponse' :: ListAttachedGroupPoliciesResponse -> Int
$sel:marker:ListAttachedGroupPoliciesResponse' :: ListAttachedGroupPoliciesResponse -> Maybe Text
$sel:isTruncated:ListAttachedGroupPoliciesResponse' :: ListAttachedGroupPoliciesResponse -> Maybe Bool
$sel:attachedPolicies:ListAttachedGroupPoliciesResponse' :: ListAttachedGroupPoliciesResponse -> Maybe [AttachedPolicy]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [AttachedPolicy]
attachedPolicies
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isTruncated
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
marker
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus