{-# 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.LakeFormation.GetEffectivePermissionsForPath
(
GetEffectivePermissionsForPath (..),
newGetEffectivePermissionsForPath,
getEffectivePermissionsForPath_catalogId,
getEffectivePermissionsForPath_nextToken,
getEffectivePermissionsForPath_maxResults,
getEffectivePermissionsForPath_resourceArn,
GetEffectivePermissionsForPathResponse (..),
newGetEffectivePermissionsForPathResponse,
getEffectivePermissionsForPathResponse_nextToken,
getEffectivePermissionsForPathResponse_permissions,
getEffectivePermissionsForPathResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.LakeFormation.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 GetEffectivePermissionsForPath = GetEffectivePermissionsForPath'
{
GetEffectivePermissionsForPath -> Maybe Text
catalogId :: Prelude.Maybe Prelude.Text,
GetEffectivePermissionsForPath -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetEffectivePermissionsForPath -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetEffectivePermissionsForPath -> Text
resourceArn :: Prelude.Text
}
deriving (GetEffectivePermissionsForPath
-> GetEffectivePermissionsForPath -> Bool
(GetEffectivePermissionsForPath
-> GetEffectivePermissionsForPath -> Bool)
-> (GetEffectivePermissionsForPath
-> GetEffectivePermissionsForPath -> Bool)
-> Eq GetEffectivePermissionsForPath
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEffectivePermissionsForPath
-> GetEffectivePermissionsForPath -> Bool
$c/= :: GetEffectivePermissionsForPath
-> GetEffectivePermissionsForPath -> Bool
== :: GetEffectivePermissionsForPath
-> GetEffectivePermissionsForPath -> Bool
$c== :: GetEffectivePermissionsForPath
-> GetEffectivePermissionsForPath -> Bool
Prelude.Eq, ReadPrec [GetEffectivePermissionsForPath]
ReadPrec GetEffectivePermissionsForPath
Int -> ReadS GetEffectivePermissionsForPath
ReadS [GetEffectivePermissionsForPath]
(Int -> ReadS GetEffectivePermissionsForPath)
-> ReadS [GetEffectivePermissionsForPath]
-> ReadPrec GetEffectivePermissionsForPath
-> ReadPrec [GetEffectivePermissionsForPath]
-> Read GetEffectivePermissionsForPath
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEffectivePermissionsForPath]
$creadListPrec :: ReadPrec [GetEffectivePermissionsForPath]
readPrec :: ReadPrec GetEffectivePermissionsForPath
$creadPrec :: ReadPrec GetEffectivePermissionsForPath
readList :: ReadS [GetEffectivePermissionsForPath]
$creadList :: ReadS [GetEffectivePermissionsForPath]
readsPrec :: Int -> ReadS GetEffectivePermissionsForPath
$creadsPrec :: Int -> ReadS GetEffectivePermissionsForPath
Prelude.Read, Int -> GetEffectivePermissionsForPath -> ShowS
[GetEffectivePermissionsForPath] -> ShowS
GetEffectivePermissionsForPath -> String
(Int -> GetEffectivePermissionsForPath -> ShowS)
-> (GetEffectivePermissionsForPath -> String)
-> ([GetEffectivePermissionsForPath] -> ShowS)
-> Show GetEffectivePermissionsForPath
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEffectivePermissionsForPath] -> ShowS
$cshowList :: [GetEffectivePermissionsForPath] -> ShowS
show :: GetEffectivePermissionsForPath -> String
$cshow :: GetEffectivePermissionsForPath -> String
showsPrec :: Int -> GetEffectivePermissionsForPath -> ShowS
$cshowsPrec :: Int -> GetEffectivePermissionsForPath -> ShowS
Prelude.Show, (forall x.
GetEffectivePermissionsForPath
-> Rep GetEffectivePermissionsForPath x)
-> (forall x.
Rep GetEffectivePermissionsForPath x
-> GetEffectivePermissionsForPath)
-> Generic GetEffectivePermissionsForPath
forall x.
Rep GetEffectivePermissionsForPath x
-> GetEffectivePermissionsForPath
forall x.
GetEffectivePermissionsForPath
-> Rep GetEffectivePermissionsForPath x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetEffectivePermissionsForPath x
-> GetEffectivePermissionsForPath
$cfrom :: forall x.
GetEffectivePermissionsForPath
-> Rep GetEffectivePermissionsForPath x
Prelude.Generic)
newGetEffectivePermissionsForPath ::
Prelude.Text ->
GetEffectivePermissionsForPath
newGetEffectivePermissionsForPath :: Text -> GetEffectivePermissionsForPath
newGetEffectivePermissionsForPath Text
pResourceArn_ =
GetEffectivePermissionsForPath' :: Maybe Text
-> Maybe Text
-> Maybe Natural
-> Text
-> GetEffectivePermissionsForPath
GetEffectivePermissionsForPath'
{ $sel:catalogId:GetEffectivePermissionsForPath' :: Maybe Text
catalogId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetEffectivePermissionsForPath' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetEffectivePermissionsForPath' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:resourceArn:GetEffectivePermissionsForPath' :: Text
resourceArn = Text
pResourceArn_
}
getEffectivePermissionsForPath_catalogId :: Lens.Lens' GetEffectivePermissionsForPath (Prelude.Maybe Prelude.Text)
getEffectivePermissionsForPath_catalogId :: (Maybe Text -> f (Maybe Text))
-> GetEffectivePermissionsForPath
-> f GetEffectivePermissionsForPath
getEffectivePermissionsForPath_catalogId = (GetEffectivePermissionsForPath -> Maybe Text)
-> (GetEffectivePermissionsForPath
-> Maybe Text -> GetEffectivePermissionsForPath)
-> Lens
GetEffectivePermissionsForPath
GetEffectivePermissionsForPath
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEffectivePermissionsForPath' {Maybe Text
catalogId :: Maybe Text
$sel:catalogId:GetEffectivePermissionsForPath' :: GetEffectivePermissionsForPath -> Maybe Text
catalogId} -> Maybe Text
catalogId) (\s :: GetEffectivePermissionsForPath
s@GetEffectivePermissionsForPath' {} Maybe Text
a -> GetEffectivePermissionsForPath
s {$sel:catalogId:GetEffectivePermissionsForPath' :: Maybe Text
catalogId = Maybe Text
a} :: GetEffectivePermissionsForPath)
getEffectivePermissionsForPath_nextToken :: Lens.Lens' GetEffectivePermissionsForPath (Prelude.Maybe Prelude.Text)
getEffectivePermissionsForPath_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetEffectivePermissionsForPath
-> f GetEffectivePermissionsForPath
getEffectivePermissionsForPath_nextToken = (GetEffectivePermissionsForPath -> Maybe Text)
-> (GetEffectivePermissionsForPath
-> Maybe Text -> GetEffectivePermissionsForPath)
-> Lens
GetEffectivePermissionsForPath
GetEffectivePermissionsForPath
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEffectivePermissionsForPath' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetEffectivePermissionsForPath' :: GetEffectivePermissionsForPath -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetEffectivePermissionsForPath
s@GetEffectivePermissionsForPath' {} Maybe Text
a -> GetEffectivePermissionsForPath
s {$sel:nextToken:GetEffectivePermissionsForPath' :: Maybe Text
nextToken = Maybe Text
a} :: GetEffectivePermissionsForPath)
getEffectivePermissionsForPath_maxResults :: Lens.Lens' GetEffectivePermissionsForPath (Prelude.Maybe Prelude.Natural)
getEffectivePermissionsForPath_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetEffectivePermissionsForPath
-> f GetEffectivePermissionsForPath
getEffectivePermissionsForPath_maxResults = (GetEffectivePermissionsForPath -> Maybe Natural)
-> (GetEffectivePermissionsForPath
-> Maybe Natural -> GetEffectivePermissionsForPath)
-> Lens
GetEffectivePermissionsForPath
GetEffectivePermissionsForPath
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEffectivePermissionsForPath' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetEffectivePermissionsForPath' :: GetEffectivePermissionsForPath -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetEffectivePermissionsForPath
s@GetEffectivePermissionsForPath' {} Maybe Natural
a -> GetEffectivePermissionsForPath
s {$sel:maxResults:GetEffectivePermissionsForPath' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetEffectivePermissionsForPath)
getEffectivePermissionsForPath_resourceArn :: Lens.Lens' GetEffectivePermissionsForPath Prelude.Text
getEffectivePermissionsForPath_resourceArn :: (Text -> f Text)
-> GetEffectivePermissionsForPath
-> f GetEffectivePermissionsForPath
getEffectivePermissionsForPath_resourceArn = (GetEffectivePermissionsForPath -> Text)
-> (GetEffectivePermissionsForPath
-> Text -> GetEffectivePermissionsForPath)
-> Lens
GetEffectivePermissionsForPath
GetEffectivePermissionsForPath
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEffectivePermissionsForPath' {Text
resourceArn :: Text
$sel:resourceArn:GetEffectivePermissionsForPath' :: GetEffectivePermissionsForPath -> Text
resourceArn} -> Text
resourceArn) (\s :: GetEffectivePermissionsForPath
s@GetEffectivePermissionsForPath' {} Text
a -> GetEffectivePermissionsForPath
s {$sel:resourceArn:GetEffectivePermissionsForPath' :: Text
resourceArn = Text
a} :: GetEffectivePermissionsForPath)
instance
Core.AWSRequest
GetEffectivePermissionsForPath
where
type
AWSResponse GetEffectivePermissionsForPath =
GetEffectivePermissionsForPathResponse
request :: GetEffectivePermissionsForPath
-> Request GetEffectivePermissionsForPath
request = Service
-> GetEffectivePermissionsForPath
-> Request GetEffectivePermissionsForPath
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetEffectivePermissionsForPath
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetEffectivePermissionsForPath)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetEffectivePermissionsForPath))
-> Logger
-> Service
-> Proxy GetEffectivePermissionsForPath
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetEffectivePermissionsForPath)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [PrincipalResourcePermissions]
-> Int
-> GetEffectivePermissionsForPathResponse
GetEffectivePermissionsForPathResponse'
(Maybe Text
-> Maybe [PrincipalResourcePermissions]
-> Int
-> GetEffectivePermissionsForPathResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [PrincipalResourcePermissions]
-> Int -> GetEffectivePermissionsForPathResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either
String
(Maybe [PrincipalResourcePermissions]
-> Int -> GetEffectivePermissionsForPathResponse)
-> Either String (Maybe [PrincipalResourcePermissions])
-> Either String (Int -> GetEffectivePermissionsForPathResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [PrincipalResourcePermissions]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Permissions" Either String (Maybe (Maybe [PrincipalResourcePermissions]))
-> Maybe [PrincipalResourcePermissions]
-> Either String (Maybe [PrincipalResourcePermissions])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PrincipalResourcePermissions]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetEffectivePermissionsForPathResponse)
-> Either String Int
-> Either String GetEffectivePermissionsForPathResponse
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))
)
instance
Prelude.Hashable
GetEffectivePermissionsForPath
instance
Prelude.NFData
GetEffectivePermissionsForPath
instance
Core.ToHeaders
GetEffectivePermissionsForPath
where
toHeaders :: GetEffectivePermissionsForPath -> ResponseHeaders
toHeaders =
ResponseHeaders
-> GetEffectivePermissionsForPath -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSLakeFormation.GetEffectivePermissionsForPath" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON GetEffectivePermissionsForPath where
toJSON :: GetEffectivePermissionsForPath -> Value
toJSON GetEffectivePermissionsForPath' {Maybe Natural
Maybe Text
Text
resourceArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
catalogId :: Maybe Text
$sel:resourceArn:GetEffectivePermissionsForPath' :: GetEffectivePermissionsForPath -> Text
$sel:maxResults:GetEffectivePermissionsForPath' :: GetEffectivePermissionsForPath -> Maybe Natural
$sel:nextToken:GetEffectivePermissionsForPath' :: GetEffectivePermissionsForPath -> Maybe Text
$sel:catalogId:GetEffectivePermissionsForPath' :: GetEffectivePermissionsForPath -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"CatalogId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
catalogId,
(Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ResourceArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceArn)
]
)
instance Core.ToPath GetEffectivePermissionsForPath where
toPath :: GetEffectivePermissionsForPath -> ByteString
toPath = ByteString -> GetEffectivePermissionsForPath -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetEffectivePermissionsForPath where
toQuery :: GetEffectivePermissionsForPath -> QueryString
toQuery = QueryString -> GetEffectivePermissionsForPath -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetEffectivePermissionsForPathResponse = GetEffectivePermissionsForPathResponse'
{
GetEffectivePermissionsForPathResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetEffectivePermissionsForPathResponse
-> Maybe [PrincipalResourcePermissions]
permissions :: Prelude.Maybe [PrincipalResourcePermissions],
GetEffectivePermissionsForPathResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetEffectivePermissionsForPathResponse
-> GetEffectivePermissionsForPathResponse -> Bool
(GetEffectivePermissionsForPathResponse
-> GetEffectivePermissionsForPathResponse -> Bool)
-> (GetEffectivePermissionsForPathResponse
-> GetEffectivePermissionsForPathResponse -> Bool)
-> Eq GetEffectivePermissionsForPathResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEffectivePermissionsForPathResponse
-> GetEffectivePermissionsForPathResponse -> Bool
$c/= :: GetEffectivePermissionsForPathResponse
-> GetEffectivePermissionsForPathResponse -> Bool
== :: GetEffectivePermissionsForPathResponse
-> GetEffectivePermissionsForPathResponse -> Bool
$c== :: GetEffectivePermissionsForPathResponse
-> GetEffectivePermissionsForPathResponse -> Bool
Prelude.Eq, ReadPrec [GetEffectivePermissionsForPathResponse]
ReadPrec GetEffectivePermissionsForPathResponse
Int -> ReadS GetEffectivePermissionsForPathResponse
ReadS [GetEffectivePermissionsForPathResponse]
(Int -> ReadS GetEffectivePermissionsForPathResponse)
-> ReadS [GetEffectivePermissionsForPathResponse]
-> ReadPrec GetEffectivePermissionsForPathResponse
-> ReadPrec [GetEffectivePermissionsForPathResponse]
-> Read GetEffectivePermissionsForPathResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEffectivePermissionsForPathResponse]
$creadListPrec :: ReadPrec [GetEffectivePermissionsForPathResponse]
readPrec :: ReadPrec GetEffectivePermissionsForPathResponse
$creadPrec :: ReadPrec GetEffectivePermissionsForPathResponse
readList :: ReadS [GetEffectivePermissionsForPathResponse]
$creadList :: ReadS [GetEffectivePermissionsForPathResponse]
readsPrec :: Int -> ReadS GetEffectivePermissionsForPathResponse
$creadsPrec :: Int -> ReadS GetEffectivePermissionsForPathResponse
Prelude.Read, Int -> GetEffectivePermissionsForPathResponse -> ShowS
[GetEffectivePermissionsForPathResponse] -> ShowS
GetEffectivePermissionsForPathResponse -> String
(Int -> GetEffectivePermissionsForPathResponse -> ShowS)
-> (GetEffectivePermissionsForPathResponse -> String)
-> ([GetEffectivePermissionsForPathResponse] -> ShowS)
-> Show GetEffectivePermissionsForPathResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEffectivePermissionsForPathResponse] -> ShowS
$cshowList :: [GetEffectivePermissionsForPathResponse] -> ShowS
show :: GetEffectivePermissionsForPathResponse -> String
$cshow :: GetEffectivePermissionsForPathResponse -> String
showsPrec :: Int -> GetEffectivePermissionsForPathResponse -> ShowS
$cshowsPrec :: Int -> GetEffectivePermissionsForPathResponse -> ShowS
Prelude.Show, (forall x.
GetEffectivePermissionsForPathResponse
-> Rep GetEffectivePermissionsForPathResponse x)
-> (forall x.
Rep GetEffectivePermissionsForPathResponse x
-> GetEffectivePermissionsForPathResponse)
-> Generic GetEffectivePermissionsForPathResponse
forall x.
Rep GetEffectivePermissionsForPathResponse x
-> GetEffectivePermissionsForPathResponse
forall x.
GetEffectivePermissionsForPathResponse
-> Rep GetEffectivePermissionsForPathResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetEffectivePermissionsForPathResponse x
-> GetEffectivePermissionsForPathResponse
$cfrom :: forall x.
GetEffectivePermissionsForPathResponse
-> Rep GetEffectivePermissionsForPathResponse x
Prelude.Generic)
newGetEffectivePermissionsForPathResponse ::
Prelude.Int ->
GetEffectivePermissionsForPathResponse
newGetEffectivePermissionsForPathResponse :: Int -> GetEffectivePermissionsForPathResponse
newGetEffectivePermissionsForPathResponse
Int
pHttpStatus_ =
GetEffectivePermissionsForPathResponse' :: Maybe Text
-> Maybe [PrincipalResourcePermissions]
-> Int
-> GetEffectivePermissionsForPathResponse
GetEffectivePermissionsForPathResponse'
{ $sel:nextToken:GetEffectivePermissionsForPathResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:permissions:GetEffectivePermissionsForPathResponse' :: Maybe [PrincipalResourcePermissions]
permissions = Maybe [PrincipalResourcePermissions]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetEffectivePermissionsForPathResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getEffectivePermissionsForPathResponse_nextToken :: Lens.Lens' GetEffectivePermissionsForPathResponse (Prelude.Maybe Prelude.Text)
getEffectivePermissionsForPathResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetEffectivePermissionsForPathResponse
-> f GetEffectivePermissionsForPathResponse
getEffectivePermissionsForPathResponse_nextToken = (GetEffectivePermissionsForPathResponse -> Maybe Text)
-> (GetEffectivePermissionsForPathResponse
-> Maybe Text -> GetEffectivePermissionsForPathResponse)
-> Lens
GetEffectivePermissionsForPathResponse
GetEffectivePermissionsForPathResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEffectivePermissionsForPathResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetEffectivePermissionsForPathResponse' :: GetEffectivePermissionsForPathResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetEffectivePermissionsForPathResponse
s@GetEffectivePermissionsForPathResponse' {} Maybe Text
a -> GetEffectivePermissionsForPathResponse
s {$sel:nextToken:GetEffectivePermissionsForPathResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetEffectivePermissionsForPathResponse)
getEffectivePermissionsForPathResponse_permissions :: Lens.Lens' GetEffectivePermissionsForPathResponse (Prelude.Maybe [PrincipalResourcePermissions])
getEffectivePermissionsForPathResponse_permissions :: (Maybe [PrincipalResourcePermissions]
-> f (Maybe [PrincipalResourcePermissions]))
-> GetEffectivePermissionsForPathResponse
-> f GetEffectivePermissionsForPathResponse
getEffectivePermissionsForPathResponse_permissions = (GetEffectivePermissionsForPathResponse
-> Maybe [PrincipalResourcePermissions])
-> (GetEffectivePermissionsForPathResponse
-> Maybe [PrincipalResourcePermissions]
-> GetEffectivePermissionsForPathResponse)
-> Lens
GetEffectivePermissionsForPathResponse
GetEffectivePermissionsForPathResponse
(Maybe [PrincipalResourcePermissions])
(Maybe [PrincipalResourcePermissions])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEffectivePermissionsForPathResponse' {Maybe [PrincipalResourcePermissions]
permissions :: Maybe [PrincipalResourcePermissions]
$sel:permissions:GetEffectivePermissionsForPathResponse' :: GetEffectivePermissionsForPathResponse
-> Maybe [PrincipalResourcePermissions]
permissions} -> Maybe [PrincipalResourcePermissions]
permissions) (\s :: GetEffectivePermissionsForPathResponse
s@GetEffectivePermissionsForPathResponse' {} Maybe [PrincipalResourcePermissions]
a -> GetEffectivePermissionsForPathResponse
s {$sel:permissions:GetEffectivePermissionsForPathResponse' :: Maybe [PrincipalResourcePermissions]
permissions = Maybe [PrincipalResourcePermissions]
a} :: GetEffectivePermissionsForPathResponse) ((Maybe [PrincipalResourcePermissions]
-> f (Maybe [PrincipalResourcePermissions]))
-> GetEffectivePermissionsForPathResponse
-> f GetEffectivePermissionsForPathResponse)
-> ((Maybe [PrincipalResourcePermissions]
-> f (Maybe [PrincipalResourcePermissions]))
-> Maybe [PrincipalResourcePermissions]
-> f (Maybe [PrincipalResourcePermissions]))
-> (Maybe [PrincipalResourcePermissions]
-> f (Maybe [PrincipalResourcePermissions]))
-> GetEffectivePermissionsForPathResponse
-> f GetEffectivePermissionsForPathResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PrincipalResourcePermissions]
[PrincipalResourcePermissions]
[PrincipalResourcePermissions]
[PrincipalResourcePermissions]
-> Iso
(Maybe [PrincipalResourcePermissions])
(Maybe [PrincipalResourcePermissions])
(Maybe [PrincipalResourcePermissions])
(Maybe [PrincipalResourcePermissions])
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 AnIso
[PrincipalResourcePermissions]
[PrincipalResourcePermissions]
[PrincipalResourcePermissions]
[PrincipalResourcePermissions]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getEffectivePermissionsForPathResponse_httpStatus :: Lens.Lens' GetEffectivePermissionsForPathResponse Prelude.Int
getEffectivePermissionsForPathResponse_httpStatus :: (Int -> f Int)
-> GetEffectivePermissionsForPathResponse
-> f GetEffectivePermissionsForPathResponse
getEffectivePermissionsForPathResponse_httpStatus = (GetEffectivePermissionsForPathResponse -> Int)
-> (GetEffectivePermissionsForPathResponse
-> Int -> GetEffectivePermissionsForPathResponse)
-> Lens
GetEffectivePermissionsForPathResponse
GetEffectivePermissionsForPathResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEffectivePermissionsForPathResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetEffectivePermissionsForPathResponse' :: GetEffectivePermissionsForPathResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetEffectivePermissionsForPathResponse
s@GetEffectivePermissionsForPathResponse' {} Int
a -> GetEffectivePermissionsForPathResponse
s {$sel:httpStatus:GetEffectivePermissionsForPathResponse' :: Int
httpStatus = Int
a} :: GetEffectivePermissionsForPathResponse)
instance
Prelude.NFData
GetEffectivePermissionsForPathResponse