{-# 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.ListPoliciesGrantingServiceAccess
(
ListPoliciesGrantingServiceAccess (..),
newListPoliciesGrantingServiceAccess,
listPoliciesGrantingServiceAccess_marker,
listPoliciesGrantingServiceAccess_arn,
listPoliciesGrantingServiceAccess_serviceNamespaces,
ListPoliciesGrantingServiceAccessResponse (..),
newListPoliciesGrantingServiceAccessResponse,
listPoliciesGrantingServiceAccessResponse_marker,
listPoliciesGrantingServiceAccessResponse_isTruncated,
listPoliciesGrantingServiceAccessResponse_httpStatus,
listPoliciesGrantingServiceAccessResponse_policiesGrantingServiceAccess,
)
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 ListPoliciesGrantingServiceAccess = ListPoliciesGrantingServiceAccess'
{
ListPoliciesGrantingServiceAccess -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListPoliciesGrantingServiceAccess -> Text
arn :: Prelude.Text,
ListPoliciesGrantingServiceAccess -> NonEmpty Text
serviceNamespaces :: Prelude.NonEmpty Prelude.Text
}
deriving (ListPoliciesGrantingServiceAccess
-> ListPoliciesGrantingServiceAccess -> Bool
(ListPoliciesGrantingServiceAccess
-> ListPoliciesGrantingServiceAccess -> Bool)
-> (ListPoliciesGrantingServiceAccess
-> ListPoliciesGrantingServiceAccess -> Bool)
-> Eq ListPoliciesGrantingServiceAccess
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPoliciesGrantingServiceAccess
-> ListPoliciesGrantingServiceAccess -> Bool
$c/= :: ListPoliciesGrantingServiceAccess
-> ListPoliciesGrantingServiceAccess -> Bool
== :: ListPoliciesGrantingServiceAccess
-> ListPoliciesGrantingServiceAccess -> Bool
$c== :: ListPoliciesGrantingServiceAccess
-> ListPoliciesGrantingServiceAccess -> Bool
Prelude.Eq, ReadPrec [ListPoliciesGrantingServiceAccess]
ReadPrec ListPoliciesGrantingServiceAccess
Int -> ReadS ListPoliciesGrantingServiceAccess
ReadS [ListPoliciesGrantingServiceAccess]
(Int -> ReadS ListPoliciesGrantingServiceAccess)
-> ReadS [ListPoliciesGrantingServiceAccess]
-> ReadPrec ListPoliciesGrantingServiceAccess
-> ReadPrec [ListPoliciesGrantingServiceAccess]
-> Read ListPoliciesGrantingServiceAccess
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPoliciesGrantingServiceAccess]
$creadListPrec :: ReadPrec [ListPoliciesGrantingServiceAccess]
readPrec :: ReadPrec ListPoliciesGrantingServiceAccess
$creadPrec :: ReadPrec ListPoliciesGrantingServiceAccess
readList :: ReadS [ListPoliciesGrantingServiceAccess]
$creadList :: ReadS [ListPoliciesGrantingServiceAccess]
readsPrec :: Int -> ReadS ListPoliciesGrantingServiceAccess
$creadsPrec :: Int -> ReadS ListPoliciesGrantingServiceAccess
Prelude.Read, Int -> ListPoliciesGrantingServiceAccess -> ShowS
[ListPoliciesGrantingServiceAccess] -> ShowS
ListPoliciesGrantingServiceAccess -> String
(Int -> ListPoliciesGrantingServiceAccess -> ShowS)
-> (ListPoliciesGrantingServiceAccess -> String)
-> ([ListPoliciesGrantingServiceAccess] -> ShowS)
-> Show ListPoliciesGrantingServiceAccess
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPoliciesGrantingServiceAccess] -> ShowS
$cshowList :: [ListPoliciesGrantingServiceAccess] -> ShowS
show :: ListPoliciesGrantingServiceAccess -> String
$cshow :: ListPoliciesGrantingServiceAccess -> String
showsPrec :: Int -> ListPoliciesGrantingServiceAccess -> ShowS
$cshowsPrec :: Int -> ListPoliciesGrantingServiceAccess -> ShowS
Prelude.Show, (forall x.
ListPoliciesGrantingServiceAccess
-> Rep ListPoliciesGrantingServiceAccess x)
-> (forall x.
Rep ListPoliciesGrantingServiceAccess x
-> ListPoliciesGrantingServiceAccess)
-> Generic ListPoliciesGrantingServiceAccess
forall x.
Rep ListPoliciesGrantingServiceAccess x
-> ListPoliciesGrantingServiceAccess
forall x.
ListPoliciesGrantingServiceAccess
-> Rep ListPoliciesGrantingServiceAccess x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPoliciesGrantingServiceAccess x
-> ListPoliciesGrantingServiceAccess
$cfrom :: forall x.
ListPoliciesGrantingServiceAccess
-> Rep ListPoliciesGrantingServiceAccess x
Prelude.Generic)
newListPoliciesGrantingServiceAccess ::
Prelude.Text ->
Prelude.NonEmpty Prelude.Text ->
ListPoliciesGrantingServiceAccess
newListPoliciesGrantingServiceAccess :: Text -> NonEmpty Text -> ListPoliciesGrantingServiceAccess
newListPoliciesGrantingServiceAccess
Text
pArn_
NonEmpty Text
pServiceNamespaces_ =
ListPoliciesGrantingServiceAccess' :: Maybe Text
-> Text -> NonEmpty Text -> ListPoliciesGrantingServiceAccess
ListPoliciesGrantingServiceAccess'
{ $sel:marker:ListPoliciesGrantingServiceAccess' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:ListPoliciesGrantingServiceAccess' :: Text
arn = Text
pArn_,
$sel:serviceNamespaces:ListPoliciesGrantingServiceAccess' :: NonEmpty Text
serviceNamespaces =
Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
(Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pServiceNamespaces_
}
listPoliciesGrantingServiceAccess_marker :: Lens.Lens' ListPoliciesGrantingServiceAccess (Prelude.Maybe Prelude.Text)
listPoliciesGrantingServiceAccess_marker :: (Maybe Text -> f (Maybe Text))
-> ListPoliciesGrantingServiceAccess
-> f ListPoliciesGrantingServiceAccess
listPoliciesGrantingServiceAccess_marker = (ListPoliciesGrantingServiceAccess -> Maybe Text)
-> (ListPoliciesGrantingServiceAccess
-> Maybe Text -> ListPoliciesGrantingServiceAccess)
-> Lens
ListPoliciesGrantingServiceAccess
ListPoliciesGrantingServiceAccess
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPoliciesGrantingServiceAccess' {Maybe Text
marker :: Maybe Text
$sel:marker:ListPoliciesGrantingServiceAccess' :: ListPoliciesGrantingServiceAccess -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListPoliciesGrantingServiceAccess
s@ListPoliciesGrantingServiceAccess' {} Maybe Text
a -> ListPoliciesGrantingServiceAccess
s {$sel:marker:ListPoliciesGrantingServiceAccess' :: Maybe Text
marker = Maybe Text
a} :: ListPoliciesGrantingServiceAccess)
listPoliciesGrantingServiceAccess_arn :: Lens.Lens' ListPoliciesGrantingServiceAccess Prelude.Text
listPoliciesGrantingServiceAccess_arn :: (Text -> f Text)
-> ListPoliciesGrantingServiceAccess
-> f ListPoliciesGrantingServiceAccess
listPoliciesGrantingServiceAccess_arn = (ListPoliciesGrantingServiceAccess -> Text)
-> (ListPoliciesGrantingServiceAccess
-> Text -> ListPoliciesGrantingServiceAccess)
-> Lens
ListPoliciesGrantingServiceAccess
ListPoliciesGrantingServiceAccess
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPoliciesGrantingServiceAccess' {Text
arn :: Text
$sel:arn:ListPoliciesGrantingServiceAccess' :: ListPoliciesGrantingServiceAccess -> Text
arn} -> Text
arn) (\s :: ListPoliciesGrantingServiceAccess
s@ListPoliciesGrantingServiceAccess' {} Text
a -> ListPoliciesGrantingServiceAccess
s {$sel:arn:ListPoliciesGrantingServiceAccess' :: Text
arn = Text
a} :: ListPoliciesGrantingServiceAccess)
listPoliciesGrantingServiceAccess_serviceNamespaces :: Lens.Lens' ListPoliciesGrantingServiceAccess (Prelude.NonEmpty Prelude.Text)
listPoliciesGrantingServiceAccess_serviceNamespaces :: (NonEmpty Text -> f (NonEmpty Text))
-> ListPoliciesGrantingServiceAccess
-> f ListPoliciesGrantingServiceAccess
listPoliciesGrantingServiceAccess_serviceNamespaces = (ListPoliciesGrantingServiceAccess -> NonEmpty Text)
-> (ListPoliciesGrantingServiceAccess
-> NonEmpty Text -> ListPoliciesGrantingServiceAccess)
-> Lens
ListPoliciesGrantingServiceAccess
ListPoliciesGrantingServiceAccess
(NonEmpty Text)
(NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPoliciesGrantingServiceAccess' {NonEmpty Text
serviceNamespaces :: NonEmpty Text
$sel:serviceNamespaces:ListPoliciesGrantingServiceAccess' :: ListPoliciesGrantingServiceAccess -> NonEmpty Text
serviceNamespaces} -> NonEmpty Text
serviceNamespaces) (\s :: ListPoliciesGrantingServiceAccess
s@ListPoliciesGrantingServiceAccess' {} NonEmpty Text
a -> ListPoliciesGrantingServiceAccess
s {$sel:serviceNamespaces:ListPoliciesGrantingServiceAccess' :: NonEmpty Text
serviceNamespaces = NonEmpty Text
a} :: ListPoliciesGrantingServiceAccess) ((NonEmpty Text -> f (NonEmpty Text))
-> ListPoliciesGrantingServiceAccess
-> f ListPoliciesGrantingServiceAccess)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> ListPoliciesGrantingServiceAccess
-> f ListPoliciesGrantingServiceAccess
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSRequest
ListPoliciesGrantingServiceAccess
where
type
AWSResponse ListPoliciesGrantingServiceAccess =
ListPoliciesGrantingServiceAccessResponse
request :: ListPoliciesGrantingServiceAccess
-> Request ListPoliciesGrantingServiceAccess
request = Service
-> ListPoliciesGrantingServiceAccess
-> Request ListPoliciesGrantingServiceAccess
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ListPoliciesGrantingServiceAccess
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListPoliciesGrantingServiceAccess)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListPoliciesGrantingServiceAccess))
-> Logger
-> Service
-> Proxy ListPoliciesGrantingServiceAccess
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListPoliciesGrantingServiceAccess)))
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
"ListPoliciesGrantingServiceAccessResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe Bool
-> Int
-> [ListPoliciesGrantingServiceAccessEntry]
-> ListPoliciesGrantingServiceAccessResponse
ListPoliciesGrantingServiceAccessResponse'
(Maybe Text
-> Maybe Bool
-> Int
-> [ListPoliciesGrantingServiceAccessEntry]
-> ListPoliciesGrantingServiceAccessResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Int
-> [ListPoliciesGrantingServiceAccessEntry]
-> ListPoliciesGrantingServiceAccessResponse)
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
-> [ListPoliciesGrantingServiceAccessEntry]
-> ListPoliciesGrantingServiceAccessResponse)
-> Either String (Maybe Bool)
-> Either
String
(Int
-> [ListPoliciesGrantingServiceAccessEntry]
-> ListPoliciesGrantingServiceAccessResponse)
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
-> [ListPoliciesGrantingServiceAccessEntry]
-> ListPoliciesGrantingServiceAccessResponse)
-> Either String Int
-> Either
String
([ListPoliciesGrantingServiceAccessEntry]
-> ListPoliciesGrantingServiceAccessResponse)
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
([ListPoliciesGrantingServiceAccessEntry]
-> ListPoliciesGrantingServiceAccessResponse)
-> Either String [ListPoliciesGrantingServiceAccessEntry]
-> Either String ListPoliciesGrantingServiceAccessResponse
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
"PoliciesGrantingServiceAccess"
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 [ListPoliciesGrantingServiceAccessEntry])
-> Either String [ListPoliciesGrantingServiceAccessEntry]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text
-> [Node] -> Either String [ListPoliciesGrantingServiceAccessEntry]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member"
)
)
instance
Prelude.Hashable
ListPoliciesGrantingServiceAccess
instance
Prelude.NFData
ListPoliciesGrantingServiceAccess
instance
Core.ToHeaders
ListPoliciesGrantingServiceAccess
where
toHeaders :: ListPoliciesGrantingServiceAccess -> ResponseHeaders
toHeaders = ResponseHeaders
-> ListPoliciesGrantingServiceAccess -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
ListPoliciesGrantingServiceAccess
where
toPath :: ListPoliciesGrantingServiceAccess -> ByteString
toPath = ByteString -> ListPoliciesGrantingServiceAccess -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
ListPoliciesGrantingServiceAccess
where
toQuery :: ListPoliciesGrantingServiceAccess -> QueryString
toQuery ListPoliciesGrantingServiceAccess' {Maybe Text
NonEmpty Text
Text
serviceNamespaces :: NonEmpty Text
arn :: Text
marker :: Maybe Text
$sel:serviceNamespaces:ListPoliciesGrantingServiceAccess' :: ListPoliciesGrantingServiceAccess -> NonEmpty Text
$sel:arn:ListPoliciesGrantingServiceAccess' :: ListPoliciesGrantingServiceAccess -> Text
$sel:marker:ListPoliciesGrantingServiceAccess' :: ListPoliciesGrantingServiceAccess -> 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
"ListPoliciesGrantingServiceAccess" ::
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
"Arn" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
arn,
ByteString
"ServiceNamespaces"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ByteString -> NonEmpty Text -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" NonEmpty Text
serviceNamespaces
]
data ListPoliciesGrantingServiceAccessResponse = ListPoliciesGrantingServiceAccessResponse'
{
ListPoliciesGrantingServiceAccessResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListPoliciesGrantingServiceAccessResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
ListPoliciesGrantingServiceAccessResponse -> Int
httpStatus :: Prelude.Int,
ListPoliciesGrantingServiceAccessResponse
-> [ListPoliciesGrantingServiceAccessEntry]
policiesGrantingServiceAccess :: [ListPoliciesGrantingServiceAccessEntry]
}
deriving (ListPoliciesGrantingServiceAccessResponse
-> ListPoliciesGrantingServiceAccessResponse -> Bool
(ListPoliciesGrantingServiceAccessResponse
-> ListPoliciesGrantingServiceAccessResponse -> Bool)
-> (ListPoliciesGrantingServiceAccessResponse
-> ListPoliciesGrantingServiceAccessResponse -> Bool)
-> Eq ListPoliciesGrantingServiceAccessResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPoliciesGrantingServiceAccessResponse
-> ListPoliciesGrantingServiceAccessResponse -> Bool
$c/= :: ListPoliciesGrantingServiceAccessResponse
-> ListPoliciesGrantingServiceAccessResponse -> Bool
== :: ListPoliciesGrantingServiceAccessResponse
-> ListPoliciesGrantingServiceAccessResponse -> Bool
$c== :: ListPoliciesGrantingServiceAccessResponse
-> ListPoliciesGrantingServiceAccessResponse -> Bool
Prelude.Eq, ReadPrec [ListPoliciesGrantingServiceAccessResponse]
ReadPrec ListPoliciesGrantingServiceAccessResponse
Int -> ReadS ListPoliciesGrantingServiceAccessResponse
ReadS [ListPoliciesGrantingServiceAccessResponse]
(Int -> ReadS ListPoliciesGrantingServiceAccessResponse)
-> ReadS [ListPoliciesGrantingServiceAccessResponse]
-> ReadPrec ListPoliciesGrantingServiceAccessResponse
-> ReadPrec [ListPoliciesGrantingServiceAccessResponse]
-> Read ListPoliciesGrantingServiceAccessResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPoliciesGrantingServiceAccessResponse]
$creadListPrec :: ReadPrec [ListPoliciesGrantingServiceAccessResponse]
readPrec :: ReadPrec ListPoliciesGrantingServiceAccessResponse
$creadPrec :: ReadPrec ListPoliciesGrantingServiceAccessResponse
readList :: ReadS [ListPoliciesGrantingServiceAccessResponse]
$creadList :: ReadS [ListPoliciesGrantingServiceAccessResponse]
readsPrec :: Int -> ReadS ListPoliciesGrantingServiceAccessResponse
$creadsPrec :: Int -> ReadS ListPoliciesGrantingServiceAccessResponse
Prelude.Read, Int -> ListPoliciesGrantingServiceAccessResponse -> ShowS
[ListPoliciesGrantingServiceAccessResponse] -> ShowS
ListPoliciesGrantingServiceAccessResponse -> String
(Int -> ListPoliciesGrantingServiceAccessResponse -> ShowS)
-> (ListPoliciesGrantingServiceAccessResponse -> String)
-> ([ListPoliciesGrantingServiceAccessResponse] -> ShowS)
-> Show ListPoliciesGrantingServiceAccessResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPoliciesGrantingServiceAccessResponse] -> ShowS
$cshowList :: [ListPoliciesGrantingServiceAccessResponse] -> ShowS
show :: ListPoliciesGrantingServiceAccessResponse -> String
$cshow :: ListPoliciesGrantingServiceAccessResponse -> String
showsPrec :: Int -> ListPoliciesGrantingServiceAccessResponse -> ShowS
$cshowsPrec :: Int -> ListPoliciesGrantingServiceAccessResponse -> ShowS
Prelude.Show, (forall x.
ListPoliciesGrantingServiceAccessResponse
-> Rep ListPoliciesGrantingServiceAccessResponse x)
-> (forall x.
Rep ListPoliciesGrantingServiceAccessResponse x
-> ListPoliciesGrantingServiceAccessResponse)
-> Generic ListPoliciesGrantingServiceAccessResponse
forall x.
Rep ListPoliciesGrantingServiceAccessResponse x
-> ListPoliciesGrantingServiceAccessResponse
forall x.
ListPoliciesGrantingServiceAccessResponse
-> Rep ListPoliciesGrantingServiceAccessResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPoliciesGrantingServiceAccessResponse x
-> ListPoliciesGrantingServiceAccessResponse
$cfrom :: forall x.
ListPoliciesGrantingServiceAccessResponse
-> Rep ListPoliciesGrantingServiceAccessResponse x
Prelude.Generic)
newListPoliciesGrantingServiceAccessResponse ::
Prelude.Int ->
ListPoliciesGrantingServiceAccessResponse
newListPoliciesGrantingServiceAccessResponse :: Int -> ListPoliciesGrantingServiceAccessResponse
newListPoliciesGrantingServiceAccessResponse
Int
pHttpStatus_ =
ListPoliciesGrantingServiceAccessResponse' :: Maybe Text
-> Maybe Bool
-> Int
-> [ListPoliciesGrantingServiceAccessEntry]
-> ListPoliciesGrantingServiceAccessResponse
ListPoliciesGrantingServiceAccessResponse'
{ $sel:marker:ListPoliciesGrantingServiceAccessResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:ListPoliciesGrantingServiceAccessResponse' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListPoliciesGrantingServiceAccessResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:policiesGrantingServiceAccess:ListPoliciesGrantingServiceAccessResponse' :: [ListPoliciesGrantingServiceAccessEntry]
policiesGrantingServiceAccess =
[ListPoliciesGrantingServiceAccessEntry]
forall a. Monoid a => a
Prelude.mempty
}
listPoliciesGrantingServiceAccessResponse_marker :: Lens.Lens' ListPoliciesGrantingServiceAccessResponse (Prelude.Maybe Prelude.Text)
listPoliciesGrantingServiceAccessResponse_marker :: (Maybe Text -> f (Maybe Text))
-> ListPoliciesGrantingServiceAccessResponse
-> f ListPoliciesGrantingServiceAccessResponse
listPoliciesGrantingServiceAccessResponse_marker = (ListPoliciesGrantingServiceAccessResponse -> Maybe Text)
-> (ListPoliciesGrantingServiceAccessResponse
-> Maybe Text -> ListPoliciesGrantingServiceAccessResponse)
-> Lens
ListPoliciesGrantingServiceAccessResponse
ListPoliciesGrantingServiceAccessResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPoliciesGrantingServiceAccessResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListPoliciesGrantingServiceAccessResponse' :: ListPoliciesGrantingServiceAccessResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListPoliciesGrantingServiceAccessResponse
s@ListPoliciesGrantingServiceAccessResponse' {} Maybe Text
a -> ListPoliciesGrantingServiceAccessResponse
s {$sel:marker:ListPoliciesGrantingServiceAccessResponse' :: Maybe Text
marker = Maybe Text
a} :: ListPoliciesGrantingServiceAccessResponse)
listPoliciesGrantingServiceAccessResponse_isTruncated :: Lens.Lens' ListPoliciesGrantingServiceAccessResponse (Prelude.Maybe Prelude.Bool)
listPoliciesGrantingServiceAccessResponse_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> ListPoliciesGrantingServiceAccessResponse
-> f ListPoliciesGrantingServiceAccessResponse
listPoliciesGrantingServiceAccessResponse_isTruncated = (ListPoliciesGrantingServiceAccessResponse -> Maybe Bool)
-> (ListPoliciesGrantingServiceAccessResponse
-> Maybe Bool -> ListPoliciesGrantingServiceAccessResponse)
-> Lens
ListPoliciesGrantingServiceAccessResponse
ListPoliciesGrantingServiceAccessResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPoliciesGrantingServiceAccessResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListPoliciesGrantingServiceAccessResponse' :: ListPoliciesGrantingServiceAccessResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListPoliciesGrantingServiceAccessResponse
s@ListPoliciesGrantingServiceAccessResponse' {} Maybe Bool
a -> ListPoliciesGrantingServiceAccessResponse
s {$sel:isTruncated:ListPoliciesGrantingServiceAccessResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListPoliciesGrantingServiceAccessResponse)
listPoliciesGrantingServiceAccessResponse_httpStatus :: Lens.Lens' ListPoliciesGrantingServiceAccessResponse Prelude.Int
listPoliciesGrantingServiceAccessResponse_httpStatus :: (Int -> f Int)
-> ListPoliciesGrantingServiceAccessResponse
-> f ListPoliciesGrantingServiceAccessResponse
listPoliciesGrantingServiceAccessResponse_httpStatus = (ListPoliciesGrantingServiceAccessResponse -> Int)
-> (ListPoliciesGrantingServiceAccessResponse
-> Int -> ListPoliciesGrantingServiceAccessResponse)
-> Lens
ListPoliciesGrantingServiceAccessResponse
ListPoliciesGrantingServiceAccessResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPoliciesGrantingServiceAccessResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListPoliciesGrantingServiceAccessResponse' :: ListPoliciesGrantingServiceAccessResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListPoliciesGrantingServiceAccessResponse
s@ListPoliciesGrantingServiceAccessResponse' {} Int
a -> ListPoliciesGrantingServiceAccessResponse
s {$sel:httpStatus:ListPoliciesGrantingServiceAccessResponse' :: Int
httpStatus = Int
a} :: ListPoliciesGrantingServiceAccessResponse)
listPoliciesGrantingServiceAccessResponse_policiesGrantingServiceAccess :: Lens.Lens' ListPoliciesGrantingServiceAccessResponse [ListPoliciesGrantingServiceAccessEntry]
listPoliciesGrantingServiceAccessResponse_policiesGrantingServiceAccess :: ([ListPoliciesGrantingServiceAccessEntry]
-> f [ListPoliciesGrantingServiceAccessEntry])
-> ListPoliciesGrantingServiceAccessResponse
-> f ListPoliciesGrantingServiceAccessResponse
listPoliciesGrantingServiceAccessResponse_policiesGrantingServiceAccess = (ListPoliciesGrantingServiceAccessResponse
-> [ListPoliciesGrantingServiceAccessEntry])
-> (ListPoliciesGrantingServiceAccessResponse
-> [ListPoliciesGrantingServiceAccessEntry]
-> ListPoliciesGrantingServiceAccessResponse)
-> Lens
ListPoliciesGrantingServiceAccessResponse
ListPoliciesGrantingServiceAccessResponse
[ListPoliciesGrantingServiceAccessEntry]
[ListPoliciesGrantingServiceAccessEntry]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPoliciesGrantingServiceAccessResponse' {[ListPoliciesGrantingServiceAccessEntry]
policiesGrantingServiceAccess :: [ListPoliciesGrantingServiceAccessEntry]
$sel:policiesGrantingServiceAccess:ListPoliciesGrantingServiceAccessResponse' :: ListPoliciesGrantingServiceAccessResponse
-> [ListPoliciesGrantingServiceAccessEntry]
policiesGrantingServiceAccess} -> [ListPoliciesGrantingServiceAccessEntry]
policiesGrantingServiceAccess) (\s :: ListPoliciesGrantingServiceAccessResponse
s@ListPoliciesGrantingServiceAccessResponse' {} [ListPoliciesGrantingServiceAccessEntry]
a -> ListPoliciesGrantingServiceAccessResponse
s {$sel:policiesGrantingServiceAccess:ListPoliciesGrantingServiceAccessResponse' :: [ListPoliciesGrantingServiceAccessEntry]
policiesGrantingServiceAccess = [ListPoliciesGrantingServiceAccessEntry]
a} :: ListPoliciesGrantingServiceAccessResponse) (([ListPoliciesGrantingServiceAccessEntry]
-> f [ListPoliciesGrantingServiceAccessEntry])
-> ListPoliciesGrantingServiceAccessResponse
-> f ListPoliciesGrantingServiceAccessResponse)
-> (([ListPoliciesGrantingServiceAccessEntry]
-> f [ListPoliciesGrantingServiceAccessEntry])
-> [ListPoliciesGrantingServiceAccessEntry]
-> f [ListPoliciesGrantingServiceAccessEntry])
-> ([ListPoliciesGrantingServiceAccessEntry]
-> f [ListPoliciesGrantingServiceAccessEntry])
-> ListPoliciesGrantingServiceAccessResponse
-> f ListPoliciesGrantingServiceAccessResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ListPoliciesGrantingServiceAccessEntry]
-> f [ListPoliciesGrantingServiceAccessEntry])
-> [ListPoliciesGrantingServiceAccessEntry]
-> f [ListPoliciesGrantingServiceAccessEntry]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
ListPoliciesGrantingServiceAccessResponse