{-# 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.ListAttachedUserPolicies
(
ListAttachedUserPolicies (..),
newListAttachedUserPolicies,
listAttachedUserPolicies_marker,
listAttachedUserPolicies_maxItems,
listAttachedUserPolicies_pathPrefix,
listAttachedUserPolicies_userName,
ListAttachedUserPoliciesResponse (..),
newListAttachedUserPoliciesResponse,
listAttachedUserPoliciesResponse_attachedPolicies,
listAttachedUserPoliciesResponse_isTruncated,
listAttachedUserPoliciesResponse_marker,
listAttachedUserPoliciesResponse_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 ListAttachedUserPolicies = ListAttachedUserPolicies'
{
ListAttachedUserPolicies -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListAttachedUserPolicies -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
ListAttachedUserPolicies -> Maybe Text
pathPrefix :: Prelude.Maybe Prelude.Text,
ListAttachedUserPolicies -> Text
userName :: Prelude.Text
}
deriving (ListAttachedUserPolicies -> ListAttachedUserPolicies -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAttachedUserPolicies -> ListAttachedUserPolicies -> Bool
$c/= :: ListAttachedUserPolicies -> ListAttachedUserPolicies -> Bool
== :: ListAttachedUserPolicies -> ListAttachedUserPolicies -> Bool
$c== :: ListAttachedUserPolicies -> ListAttachedUserPolicies -> Bool
Prelude.Eq, ReadPrec [ListAttachedUserPolicies]
ReadPrec ListAttachedUserPolicies
Int -> ReadS ListAttachedUserPolicies
ReadS [ListAttachedUserPolicies]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAttachedUserPolicies]
$creadListPrec :: ReadPrec [ListAttachedUserPolicies]
readPrec :: ReadPrec ListAttachedUserPolicies
$creadPrec :: ReadPrec ListAttachedUserPolicies
readList :: ReadS [ListAttachedUserPolicies]
$creadList :: ReadS [ListAttachedUserPolicies]
readsPrec :: Int -> ReadS ListAttachedUserPolicies
$creadsPrec :: Int -> ReadS ListAttachedUserPolicies
Prelude.Read, Int -> ListAttachedUserPolicies -> ShowS
[ListAttachedUserPolicies] -> ShowS
ListAttachedUserPolicies -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAttachedUserPolicies] -> ShowS
$cshowList :: [ListAttachedUserPolicies] -> ShowS
show :: ListAttachedUserPolicies -> String
$cshow :: ListAttachedUserPolicies -> String
showsPrec :: Int -> ListAttachedUserPolicies -> ShowS
$cshowsPrec :: Int -> ListAttachedUserPolicies -> ShowS
Prelude.Show, forall x.
Rep ListAttachedUserPolicies x -> ListAttachedUserPolicies
forall x.
ListAttachedUserPolicies -> Rep ListAttachedUserPolicies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAttachedUserPolicies x -> ListAttachedUserPolicies
$cfrom :: forall x.
ListAttachedUserPolicies -> Rep ListAttachedUserPolicies x
Prelude.Generic)
newListAttachedUserPolicies ::
Prelude.Text ->
ListAttachedUserPolicies
newListAttachedUserPolicies :: Text -> ListAttachedUserPolicies
newListAttachedUserPolicies Text
pUserName_ =
ListAttachedUserPolicies'
{ $sel:marker:ListAttachedUserPolicies' :: Maybe Text
marker = forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListAttachedUserPolicies' :: Maybe Natural
maxItems = forall a. Maybe a
Prelude.Nothing,
$sel:pathPrefix:ListAttachedUserPolicies' :: Maybe Text
pathPrefix = forall a. Maybe a
Prelude.Nothing,
$sel:userName:ListAttachedUserPolicies' :: Text
userName = Text
pUserName_
}
listAttachedUserPolicies_marker :: Lens.Lens' ListAttachedUserPolicies (Prelude.Maybe Prelude.Text)
listAttachedUserPolicies_marker :: Lens' ListAttachedUserPolicies (Maybe Text)
listAttachedUserPolicies_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedUserPolicies' {Maybe Text
marker :: Maybe Text
$sel:marker:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListAttachedUserPolicies
s@ListAttachedUserPolicies' {} Maybe Text
a -> ListAttachedUserPolicies
s {$sel:marker:ListAttachedUserPolicies' :: Maybe Text
marker = Maybe Text
a} :: ListAttachedUserPolicies)
listAttachedUserPolicies_maxItems :: Lens.Lens' ListAttachedUserPolicies (Prelude.Maybe Prelude.Natural)
listAttachedUserPolicies_maxItems :: Lens' ListAttachedUserPolicies (Maybe Natural)
listAttachedUserPolicies_maxItems = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedUserPolicies' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListAttachedUserPolicies
s@ListAttachedUserPolicies' {} Maybe Natural
a -> ListAttachedUserPolicies
s {$sel:maxItems:ListAttachedUserPolicies' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListAttachedUserPolicies)
listAttachedUserPolicies_pathPrefix :: Lens.Lens' ListAttachedUserPolicies (Prelude.Maybe Prelude.Text)
listAttachedUserPolicies_pathPrefix :: Lens' ListAttachedUserPolicies (Maybe Text)
listAttachedUserPolicies_pathPrefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedUserPolicies' {Maybe Text
pathPrefix :: Maybe Text
$sel:pathPrefix:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Maybe Text
pathPrefix} -> Maybe Text
pathPrefix) (\s :: ListAttachedUserPolicies
s@ListAttachedUserPolicies' {} Maybe Text
a -> ListAttachedUserPolicies
s {$sel:pathPrefix:ListAttachedUserPolicies' :: Maybe Text
pathPrefix = Maybe Text
a} :: ListAttachedUserPolicies)
listAttachedUserPolicies_userName :: Lens.Lens' ListAttachedUserPolicies Prelude.Text
listAttachedUserPolicies_userName :: Lens' ListAttachedUserPolicies Text
listAttachedUserPolicies_userName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedUserPolicies' {Text
userName :: Text
$sel:userName:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Text
userName} -> Text
userName) (\s :: ListAttachedUserPolicies
s@ListAttachedUserPolicies' {} Text
a -> ListAttachedUserPolicies
s {$sel:userName:ListAttachedUserPolicies' :: Text
userName = Text
a} :: ListAttachedUserPolicies)
instance Core.AWSPager ListAttachedUserPolicies where
page :: ListAttachedUserPolicies
-> AWSResponse ListAttachedUserPolicies
-> Maybe ListAttachedUserPolicies
page ListAttachedUserPolicies
rq AWSResponse ListAttachedUserPolicies
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAttachedUserPolicies
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedUserPoliciesResponse (Maybe Bool)
listAttachedUserPoliciesResponse_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 ListAttachedUserPolicies
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedUserPoliciesResponse (Maybe Text)
listAttachedUserPoliciesResponse_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.$ ListAttachedUserPolicies
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListAttachedUserPolicies (Maybe Text)
listAttachedUserPolicies_marker
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAttachedUserPolicies
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedUserPoliciesResponse (Maybe Text)
listAttachedUserPoliciesResponse_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 ListAttachedUserPolicies where
type
AWSResponse ListAttachedUserPolicies =
ListAttachedUserPoliciesResponse
request :: (Service -> Service)
-> ListAttachedUserPolicies -> Request ListAttachedUserPolicies
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 ListAttachedUserPolicies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAttachedUserPolicies)))
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
"ListAttachedUserPoliciesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [AttachedPolicy]
-> Maybe Bool
-> Maybe Text
-> Int
-> ListAttachedUserPoliciesResponse
ListAttachedUserPoliciesResponse'
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 ListAttachedUserPolicies where
hashWithSalt :: Int -> ListAttachedUserPolicies -> Int
hashWithSalt Int
_salt ListAttachedUserPolicies' {Maybe Natural
Maybe Text
Text
userName :: Text
pathPrefix :: Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:userName:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Text
$sel:pathPrefix:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Maybe Text
$sel:maxItems:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Maybe Natural
$sel:marker:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> 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
userName
instance Prelude.NFData ListAttachedUserPolicies where
rnf :: ListAttachedUserPolicies -> ()
rnf ListAttachedUserPolicies' {Maybe Natural
Maybe Text
Text
userName :: Text
pathPrefix :: Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:userName:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Text
$sel:pathPrefix:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Maybe Text
$sel:maxItems:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Maybe Natural
$sel:marker:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> 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
userName
instance Data.ToHeaders ListAttachedUserPolicies where
toHeaders :: ListAttachedUserPolicies -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath ListAttachedUserPolicies where
toPath :: ListAttachedUserPolicies -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ListAttachedUserPolicies where
toQuery :: ListAttachedUserPolicies -> QueryString
toQuery ListAttachedUserPolicies' {Maybe Natural
Maybe Text
Text
userName :: Text
pathPrefix :: Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:userName:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Text
$sel:pathPrefix:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Maybe Text
$sel:maxItems:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Maybe Natural
$sel:marker:ListAttachedUserPolicies' :: ListAttachedUserPolicies -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"ListAttachedUserPolicies" :: 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
"UserName" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
userName
]
data ListAttachedUserPoliciesResponse = ListAttachedUserPoliciesResponse'
{
ListAttachedUserPoliciesResponse -> Maybe [AttachedPolicy]
attachedPolicies :: Prelude.Maybe [AttachedPolicy],
ListAttachedUserPoliciesResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
ListAttachedUserPoliciesResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListAttachedUserPoliciesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAttachedUserPoliciesResponse
-> ListAttachedUserPoliciesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAttachedUserPoliciesResponse
-> ListAttachedUserPoliciesResponse -> Bool
$c/= :: ListAttachedUserPoliciesResponse
-> ListAttachedUserPoliciesResponse -> Bool
== :: ListAttachedUserPoliciesResponse
-> ListAttachedUserPoliciesResponse -> Bool
$c== :: ListAttachedUserPoliciesResponse
-> ListAttachedUserPoliciesResponse -> Bool
Prelude.Eq, ReadPrec [ListAttachedUserPoliciesResponse]
ReadPrec ListAttachedUserPoliciesResponse
Int -> ReadS ListAttachedUserPoliciesResponse
ReadS [ListAttachedUserPoliciesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAttachedUserPoliciesResponse]
$creadListPrec :: ReadPrec [ListAttachedUserPoliciesResponse]
readPrec :: ReadPrec ListAttachedUserPoliciesResponse
$creadPrec :: ReadPrec ListAttachedUserPoliciesResponse
readList :: ReadS [ListAttachedUserPoliciesResponse]
$creadList :: ReadS [ListAttachedUserPoliciesResponse]
readsPrec :: Int -> ReadS ListAttachedUserPoliciesResponse
$creadsPrec :: Int -> ReadS ListAttachedUserPoliciesResponse
Prelude.Read, Int -> ListAttachedUserPoliciesResponse -> ShowS
[ListAttachedUserPoliciesResponse] -> ShowS
ListAttachedUserPoliciesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAttachedUserPoliciesResponse] -> ShowS
$cshowList :: [ListAttachedUserPoliciesResponse] -> ShowS
show :: ListAttachedUserPoliciesResponse -> String
$cshow :: ListAttachedUserPoliciesResponse -> String
showsPrec :: Int -> ListAttachedUserPoliciesResponse -> ShowS
$cshowsPrec :: Int -> ListAttachedUserPoliciesResponse -> ShowS
Prelude.Show, forall x.
Rep ListAttachedUserPoliciesResponse x
-> ListAttachedUserPoliciesResponse
forall x.
ListAttachedUserPoliciesResponse
-> Rep ListAttachedUserPoliciesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAttachedUserPoliciesResponse x
-> ListAttachedUserPoliciesResponse
$cfrom :: forall x.
ListAttachedUserPoliciesResponse
-> Rep ListAttachedUserPoliciesResponse x
Prelude.Generic)
newListAttachedUserPoliciesResponse ::
Prelude.Int ->
ListAttachedUserPoliciesResponse
newListAttachedUserPoliciesResponse :: Int -> ListAttachedUserPoliciesResponse
newListAttachedUserPoliciesResponse Int
pHttpStatus_ =
ListAttachedUserPoliciesResponse'
{ $sel:attachedPolicies:ListAttachedUserPoliciesResponse' :: Maybe [AttachedPolicy]
attachedPolicies =
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:ListAttachedUserPoliciesResponse' :: Maybe Bool
isTruncated = forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListAttachedUserPoliciesResponse' :: Maybe Text
marker = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAttachedUserPoliciesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAttachedUserPoliciesResponse_attachedPolicies :: Lens.Lens' ListAttachedUserPoliciesResponse (Prelude.Maybe [AttachedPolicy])
listAttachedUserPoliciesResponse_attachedPolicies :: Lens' ListAttachedUserPoliciesResponse (Maybe [AttachedPolicy])
listAttachedUserPoliciesResponse_attachedPolicies = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedUserPoliciesResponse' {Maybe [AttachedPolicy]
attachedPolicies :: Maybe [AttachedPolicy]
$sel:attachedPolicies:ListAttachedUserPoliciesResponse' :: ListAttachedUserPoliciesResponse -> Maybe [AttachedPolicy]
attachedPolicies} -> Maybe [AttachedPolicy]
attachedPolicies) (\s :: ListAttachedUserPoliciesResponse
s@ListAttachedUserPoliciesResponse' {} Maybe [AttachedPolicy]
a -> ListAttachedUserPoliciesResponse
s {$sel:attachedPolicies:ListAttachedUserPoliciesResponse' :: Maybe [AttachedPolicy]
attachedPolicies = Maybe [AttachedPolicy]
a} :: ListAttachedUserPoliciesResponse) 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
listAttachedUserPoliciesResponse_isTruncated :: Lens.Lens' ListAttachedUserPoliciesResponse (Prelude.Maybe Prelude.Bool)
listAttachedUserPoliciesResponse_isTruncated :: Lens' ListAttachedUserPoliciesResponse (Maybe Bool)
listAttachedUserPoliciesResponse_isTruncated = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedUserPoliciesResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListAttachedUserPoliciesResponse' :: ListAttachedUserPoliciesResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListAttachedUserPoliciesResponse
s@ListAttachedUserPoliciesResponse' {} Maybe Bool
a -> ListAttachedUserPoliciesResponse
s {$sel:isTruncated:ListAttachedUserPoliciesResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListAttachedUserPoliciesResponse)
listAttachedUserPoliciesResponse_marker :: Lens.Lens' ListAttachedUserPoliciesResponse (Prelude.Maybe Prelude.Text)
listAttachedUserPoliciesResponse_marker :: Lens' ListAttachedUserPoliciesResponse (Maybe Text)
listAttachedUserPoliciesResponse_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedUserPoliciesResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListAttachedUserPoliciesResponse' :: ListAttachedUserPoliciesResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListAttachedUserPoliciesResponse
s@ListAttachedUserPoliciesResponse' {} Maybe Text
a -> ListAttachedUserPoliciesResponse
s {$sel:marker:ListAttachedUserPoliciesResponse' :: Maybe Text
marker = Maybe Text
a} :: ListAttachedUserPoliciesResponse)
listAttachedUserPoliciesResponse_httpStatus :: Lens.Lens' ListAttachedUserPoliciesResponse Prelude.Int
listAttachedUserPoliciesResponse_httpStatus :: Lens' ListAttachedUserPoliciesResponse Int
listAttachedUserPoliciesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedUserPoliciesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAttachedUserPoliciesResponse' :: ListAttachedUserPoliciesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAttachedUserPoliciesResponse
s@ListAttachedUserPoliciesResponse' {} Int
a -> ListAttachedUserPoliciesResponse
s {$sel:httpStatus:ListAttachedUserPoliciesResponse' :: Int
httpStatus = Int
a} :: ListAttachedUserPoliciesResponse)
instance
Prelude.NFData
ListAttachedUserPoliciesResponse
where
rnf :: ListAttachedUserPoliciesResponse -> ()
rnf ListAttachedUserPoliciesResponse' {Int
Maybe Bool
Maybe [AttachedPolicy]
Maybe Text
httpStatus :: Int
marker :: Maybe Text
isTruncated :: Maybe Bool
attachedPolicies :: Maybe [AttachedPolicy]
$sel:httpStatus:ListAttachedUserPoliciesResponse' :: ListAttachedUserPoliciesResponse -> Int
$sel:marker:ListAttachedUserPoliciesResponse' :: ListAttachedUserPoliciesResponse -> Maybe Text
$sel:isTruncated:ListAttachedUserPoliciesResponse' :: ListAttachedUserPoliciesResponse -> Maybe Bool
$sel:attachedPolicies:ListAttachedUserPoliciesResponse' :: ListAttachedUserPoliciesResponse -> 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