{-# 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.ListAttachedRolePolicies
(
ListAttachedRolePolicies (..),
newListAttachedRolePolicies,
listAttachedRolePolicies_marker,
listAttachedRolePolicies_maxItems,
listAttachedRolePolicies_pathPrefix,
listAttachedRolePolicies_roleName,
ListAttachedRolePoliciesResponse (..),
newListAttachedRolePoliciesResponse,
listAttachedRolePoliciesResponse_attachedPolicies,
listAttachedRolePoliciesResponse_isTruncated,
listAttachedRolePoliciesResponse_marker,
listAttachedRolePoliciesResponse_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 ListAttachedRolePolicies = ListAttachedRolePolicies'
{
ListAttachedRolePolicies -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListAttachedRolePolicies -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
ListAttachedRolePolicies -> Maybe Text
pathPrefix :: Prelude.Maybe Prelude.Text,
ListAttachedRolePolicies -> Text
roleName :: Prelude.Text
}
deriving (ListAttachedRolePolicies -> ListAttachedRolePolicies -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAttachedRolePolicies -> ListAttachedRolePolicies -> Bool
$c/= :: ListAttachedRolePolicies -> ListAttachedRolePolicies -> Bool
== :: ListAttachedRolePolicies -> ListAttachedRolePolicies -> Bool
$c== :: ListAttachedRolePolicies -> ListAttachedRolePolicies -> Bool
Prelude.Eq, ReadPrec [ListAttachedRolePolicies]
ReadPrec ListAttachedRolePolicies
Int -> ReadS ListAttachedRolePolicies
ReadS [ListAttachedRolePolicies]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAttachedRolePolicies]
$creadListPrec :: ReadPrec [ListAttachedRolePolicies]
readPrec :: ReadPrec ListAttachedRolePolicies
$creadPrec :: ReadPrec ListAttachedRolePolicies
readList :: ReadS [ListAttachedRolePolicies]
$creadList :: ReadS [ListAttachedRolePolicies]
readsPrec :: Int -> ReadS ListAttachedRolePolicies
$creadsPrec :: Int -> ReadS ListAttachedRolePolicies
Prelude.Read, Int -> ListAttachedRolePolicies -> ShowS
[ListAttachedRolePolicies] -> ShowS
ListAttachedRolePolicies -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAttachedRolePolicies] -> ShowS
$cshowList :: [ListAttachedRolePolicies] -> ShowS
show :: ListAttachedRolePolicies -> String
$cshow :: ListAttachedRolePolicies -> String
showsPrec :: Int -> ListAttachedRolePolicies -> ShowS
$cshowsPrec :: Int -> ListAttachedRolePolicies -> ShowS
Prelude.Show, forall x.
Rep ListAttachedRolePolicies x -> ListAttachedRolePolicies
forall x.
ListAttachedRolePolicies -> Rep ListAttachedRolePolicies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAttachedRolePolicies x -> ListAttachedRolePolicies
$cfrom :: forall x.
ListAttachedRolePolicies -> Rep ListAttachedRolePolicies x
Prelude.Generic)
newListAttachedRolePolicies ::
Prelude.Text ->
ListAttachedRolePolicies
newListAttachedRolePolicies :: Text -> ListAttachedRolePolicies
newListAttachedRolePolicies Text
pRoleName_ =
ListAttachedRolePolicies'
{ $sel:marker:ListAttachedRolePolicies' :: Maybe Text
marker = forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListAttachedRolePolicies' :: Maybe Natural
maxItems = forall a. Maybe a
Prelude.Nothing,
$sel:pathPrefix:ListAttachedRolePolicies' :: Maybe Text
pathPrefix = forall a. Maybe a
Prelude.Nothing,
$sel:roleName:ListAttachedRolePolicies' :: Text
roleName = Text
pRoleName_
}
listAttachedRolePolicies_marker :: Lens.Lens' ListAttachedRolePolicies (Prelude.Maybe Prelude.Text)
listAttachedRolePolicies_marker :: Lens' ListAttachedRolePolicies (Maybe Text)
listAttachedRolePolicies_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedRolePolicies' {Maybe Text
marker :: Maybe Text
$sel:marker:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListAttachedRolePolicies
s@ListAttachedRolePolicies' {} Maybe Text
a -> ListAttachedRolePolicies
s {$sel:marker:ListAttachedRolePolicies' :: Maybe Text
marker = Maybe Text
a} :: ListAttachedRolePolicies)
listAttachedRolePolicies_maxItems :: Lens.Lens' ListAttachedRolePolicies (Prelude.Maybe Prelude.Natural)
listAttachedRolePolicies_maxItems :: Lens' ListAttachedRolePolicies (Maybe Natural)
listAttachedRolePolicies_maxItems = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedRolePolicies' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListAttachedRolePolicies
s@ListAttachedRolePolicies' {} Maybe Natural
a -> ListAttachedRolePolicies
s {$sel:maxItems:ListAttachedRolePolicies' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListAttachedRolePolicies)
listAttachedRolePolicies_pathPrefix :: Lens.Lens' ListAttachedRolePolicies (Prelude.Maybe Prelude.Text)
listAttachedRolePolicies_pathPrefix :: Lens' ListAttachedRolePolicies (Maybe Text)
listAttachedRolePolicies_pathPrefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedRolePolicies' {Maybe Text
pathPrefix :: Maybe Text
$sel:pathPrefix:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Maybe Text
pathPrefix} -> Maybe Text
pathPrefix) (\s :: ListAttachedRolePolicies
s@ListAttachedRolePolicies' {} Maybe Text
a -> ListAttachedRolePolicies
s {$sel:pathPrefix:ListAttachedRolePolicies' :: Maybe Text
pathPrefix = Maybe Text
a} :: ListAttachedRolePolicies)
listAttachedRolePolicies_roleName :: Lens.Lens' ListAttachedRolePolicies Prelude.Text
listAttachedRolePolicies_roleName :: Lens' ListAttachedRolePolicies Text
listAttachedRolePolicies_roleName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedRolePolicies' {Text
roleName :: Text
$sel:roleName:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Text
roleName} -> Text
roleName) (\s :: ListAttachedRolePolicies
s@ListAttachedRolePolicies' {} Text
a -> ListAttachedRolePolicies
s {$sel:roleName:ListAttachedRolePolicies' :: Text
roleName = Text
a} :: ListAttachedRolePolicies)
instance Core.AWSPager ListAttachedRolePolicies where
page :: ListAttachedRolePolicies
-> AWSResponse ListAttachedRolePolicies
-> Maybe ListAttachedRolePolicies
page ListAttachedRolePolicies
rq AWSResponse ListAttachedRolePolicies
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAttachedRolePolicies
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedRolePoliciesResponse (Maybe Bool)
listAttachedRolePoliciesResponse_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 ListAttachedRolePolicies
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedRolePoliciesResponse (Maybe Text)
listAttachedRolePoliciesResponse_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.$ ListAttachedRolePolicies
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListAttachedRolePolicies (Maybe Text)
listAttachedRolePolicies_marker
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAttachedRolePolicies
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedRolePoliciesResponse (Maybe Text)
listAttachedRolePoliciesResponse_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 ListAttachedRolePolicies where
type
AWSResponse ListAttachedRolePolicies =
ListAttachedRolePoliciesResponse
request :: (Service -> Service)
-> ListAttachedRolePolicies -> Request ListAttachedRolePolicies
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 ListAttachedRolePolicies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAttachedRolePolicies)))
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
"ListAttachedRolePoliciesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [AttachedPolicy]
-> Maybe Bool
-> Maybe Text
-> Int
-> ListAttachedRolePoliciesResponse
ListAttachedRolePoliciesResponse'
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 ListAttachedRolePolicies where
hashWithSalt :: Int -> ListAttachedRolePolicies -> Int
hashWithSalt Int
_salt ListAttachedRolePolicies' {Maybe Natural
Maybe Text
Text
roleName :: Text
pathPrefix :: Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:roleName:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Text
$sel:pathPrefix:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Maybe Text
$sel:maxItems:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Maybe Natural
$sel:marker:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> 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
roleName
instance Prelude.NFData ListAttachedRolePolicies where
rnf :: ListAttachedRolePolicies -> ()
rnf ListAttachedRolePolicies' {Maybe Natural
Maybe Text
Text
roleName :: Text
pathPrefix :: Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:roleName:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Text
$sel:pathPrefix:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Maybe Text
$sel:maxItems:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Maybe Natural
$sel:marker:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> 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
roleName
instance Data.ToHeaders ListAttachedRolePolicies where
toHeaders :: ListAttachedRolePolicies -> ResponseHeaders
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath ListAttachedRolePolicies where
toPath :: ListAttachedRolePolicies -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ListAttachedRolePolicies where
toQuery :: ListAttachedRolePolicies -> QueryString
toQuery ListAttachedRolePolicies' {Maybe Natural
Maybe Text
Text
roleName :: Text
pathPrefix :: Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:roleName:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Text
$sel:pathPrefix:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Maybe Text
$sel:maxItems:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Maybe Natural
$sel:marker:ListAttachedRolePolicies' :: ListAttachedRolePolicies -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"ListAttachedRolePolicies" :: 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
"RoleName" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
roleName
]
data ListAttachedRolePoliciesResponse = ListAttachedRolePoliciesResponse'
{
ListAttachedRolePoliciesResponse -> Maybe [AttachedPolicy]
attachedPolicies :: Prelude.Maybe [AttachedPolicy],
ListAttachedRolePoliciesResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
ListAttachedRolePoliciesResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListAttachedRolePoliciesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAttachedRolePoliciesResponse
-> ListAttachedRolePoliciesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAttachedRolePoliciesResponse
-> ListAttachedRolePoliciesResponse -> Bool
$c/= :: ListAttachedRolePoliciesResponse
-> ListAttachedRolePoliciesResponse -> Bool
== :: ListAttachedRolePoliciesResponse
-> ListAttachedRolePoliciesResponse -> Bool
$c== :: ListAttachedRolePoliciesResponse
-> ListAttachedRolePoliciesResponse -> Bool
Prelude.Eq, ReadPrec [ListAttachedRolePoliciesResponse]
ReadPrec ListAttachedRolePoliciesResponse
Int -> ReadS ListAttachedRolePoliciesResponse
ReadS [ListAttachedRolePoliciesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAttachedRolePoliciesResponse]
$creadListPrec :: ReadPrec [ListAttachedRolePoliciesResponse]
readPrec :: ReadPrec ListAttachedRolePoliciesResponse
$creadPrec :: ReadPrec ListAttachedRolePoliciesResponse
readList :: ReadS [ListAttachedRolePoliciesResponse]
$creadList :: ReadS [ListAttachedRolePoliciesResponse]
readsPrec :: Int -> ReadS ListAttachedRolePoliciesResponse
$creadsPrec :: Int -> ReadS ListAttachedRolePoliciesResponse
Prelude.Read, Int -> ListAttachedRolePoliciesResponse -> ShowS
[ListAttachedRolePoliciesResponse] -> ShowS
ListAttachedRolePoliciesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAttachedRolePoliciesResponse] -> ShowS
$cshowList :: [ListAttachedRolePoliciesResponse] -> ShowS
show :: ListAttachedRolePoliciesResponse -> String
$cshow :: ListAttachedRolePoliciesResponse -> String
showsPrec :: Int -> ListAttachedRolePoliciesResponse -> ShowS
$cshowsPrec :: Int -> ListAttachedRolePoliciesResponse -> ShowS
Prelude.Show, forall x.
Rep ListAttachedRolePoliciesResponse x
-> ListAttachedRolePoliciesResponse
forall x.
ListAttachedRolePoliciesResponse
-> Rep ListAttachedRolePoliciesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAttachedRolePoliciesResponse x
-> ListAttachedRolePoliciesResponse
$cfrom :: forall x.
ListAttachedRolePoliciesResponse
-> Rep ListAttachedRolePoliciesResponse x
Prelude.Generic)
newListAttachedRolePoliciesResponse ::
Prelude.Int ->
ListAttachedRolePoliciesResponse
newListAttachedRolePoliciesResponse :: Int -> ListAttachedRolePoliciesResponse
newListAttachedRolePoliciesResponse Int
pHttpStatus_ =
ListAttachedRolePoliciesResponse'
{ $sel:attachedPolicies:ListAttachedRolePoliciesResponse' :: Maybe [AttachedPolicy]
attachedPolicies =
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:ListAttachedRolePoliciesResponse' :: Maybe Bool
isTruncated = forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListAttachedRolePoliciesResponse' :: Maybe Text
marker = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAttachedRolePoliciesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAttachedRolePoliciesResponse_attachedPolicies :: Lens.Lens' ListAttachedRolePoliciesResponse (Prelude.Maybe [AttachedPolicy])
listAttachedRolePoliciesResponse_attachedPolicies :: Lens' ListAttachedRolePoliciesResponse (Maybe [AttachedPolicy])
listAttachedRolePoliciesResponse_attachedPolicies = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedRolePoliciesResponse' {Maybe [AttachedPolicy]
attachedPolicies :: Maybe [AttachedPolicy]
$sel:attachedPolicies:ListAttachedRolePoliciesResponse' :: ListAttachedRolePoliciesResponse -> Maybe [AttachedPolicy]
attachedPolicies} -> Maybe [AttachedPolicy]
attachedPolicies) (\s :: ListAttachedRolePoliciesResponse
s@ListAttachedRolePoliciesResponse' {} Maybe [AttachedPolicy]
a -> ListAttachedRolePoliciesResponse
s {$sel:attachedPolicies:ListAttachedRolePoliciesResponse' :: Maybe [AttachedPolicy]
attachedPolicies = Maybe [AttachedPolicy]
a} :: ListAttachedRolePoliciesResponse) 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
listAttachedRolePoliciesResponse_isTruncated :: Lens.Lens' ListAttachedRolePoliciesResponse (Prelude.Maybe Prelude.Bool)
listAttachedRolePoliciesResponse_isTruncated :: Lens' ListAttachedRolePoliciesResponse (Maybe Bool)
listAttachedRolePoliciesResponse_isTruncated = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedRolePoliciesResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListAttachedRolePoliciesResponse' :: ListAttachedRolePoliciesResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListAttachedRolePoliciesResponse
s@ListAttachedRolePoliciesResponse' {} Maybe Bool
a -> ListAttachedRolePoliciesResponse
s {$sel:isTruncated:ListAttachedRolePoliciesResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListAttachedRolePoliciesResponse)
listAttachedRolePoliciesResponse_marker :: Lens.Lens' ListAttachedRolePoliciesResponse (Prelude.Maybe Prelude.Text)
listAttachedRolePoliciesResponse_marker :: Lens' ListAttachedRolePoliciesResponse (Maybe Text)
listAttachedRolePoliciesResponse_marker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedRolePoliciesResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListAttachedRolePoliciesResponse' :: ListAttachedRolePoliciesResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListAttachedRolePoliciesResponse
s@ListAttachedRolePoliciesResponse' {} Maybe Text
a -> ListAttachedRolePoliciesResponse
s {$sel:marker:ListAttachedRolePoliciesResponse' :: Maybe Text
marker = Maybe Text
a} :: ListAttachedRolePoliciesResponse)
listAttachedRolePoliciesResponse_httpStatus :: Lens.Lens' ListAttachedRolePoliciesResponse Prelude.Int
listAttachedRolePoliciesResponse_httpStatus :: Lens' ListAttachedRolePoliciesResponse Int
listAttachedRolePoliciesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedRolePoliciesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAttachedRolePoliciesResponse' :: ListAttachedRolePoliciesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAttachedRolePoliciesResponse
s@ListAttachedRolePoliciesResponse' {} Int
a -> ListAttachedRolePoliciesResponse
s {$sel:httpStatus:ListAttachedRolePoliciesResponse' :: Int
httpStatus = Int
a} :: ListAttachedRolePoliciesResponse)
instance
Prelude.NFData
ListAttachedRolePoliciesResponse
where
rnf :: ListAttachedRolePoliciesResponse -> ()
rnf ListAttachedRolePoliciesResponse' {Int
Maybe Bool
Maybe [AttachedPolicy]
Maybe Text
httpStatus :: Int
marker :: Maybe Text
isTruncated :: Maybe Bool
attachedPolicies :: Maybe [AttachedPolicy]
$sel:httpStatus:ListAttachedRolePoliciesResponse' :: ListAttachedRolePoliciesResponse -> Int
$sel:marker:ListAttachedRolePoliciesResponse' :: ListAttachedRolePoliciesResponse -> Maybe Text
$sel:isTruncated:ListAttachedRolePoliciesResponse' :: ListAttachedRolePoliciesResponse -> Maybe Bool
$sel:attachedPolicies:ListAttachedRolePoliciesResponse' :: ListAttachedRolePoliciesResponse -> 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