{-# 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.QuickSight.DescribeAnalysisPermissions
(
DescribeAnalysisPermissions (..),
newDescribeAnalysisPermissions,
describeAnalysisPermissions_awsAccountId,
describeAnalysisPermissions_analysisId,
DescribeAnalysisPermissionsResponse (..),
newDescribeAnalysisPermissionsResponse,
describeAnalysisPermissionsResponse_requestId,
describeAnalysisPermissionsResponse_analysisId,
describeAnalysisPermissionsResponse_analysisArn,
describeAnalysisPermissionsResponse_permissions,
describeAnalysisPermissionsResponse_status,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeAnalysisPermissions = DescribeAnalysisPermissions'
{
DescribeAnalysisPermissions -> Text
awsAccountId :: Prelude.Text,
DescribeAnalysisPermissions -> Text
analysisId :: Prelude.Text
}
deriving (DescribeAnalysisPermissions -> DescribeAnalysisPermissions -> Bool
(DescribeAnalysisPermissions
-> DescribeAnalysisPermissions -> Bool)
-> (DescribeAnalysisPermissions
-> DescribeAnalysisPermissions -> Bool)
-> Eq DescribeAnalysisPermissions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAnalysisPermissions -> DescribeAnalysisPermissions -> Bool
$c/= :: DescribeAnalysisPermissions -> DescribeAnalysisPermissions -> Bool
== :: DescribeAnalysisPermissions -> DescribeAnalysisPermissions -> Bool
$c== :: DescribeAnalysisPermissions -> DescribeAnalysisPermissions -> Bool
Prelude.Eq, ReadPrec [DescribeAnalysisPermissions]
ReadPrec DescribeAnalysisPermissions
Int -> ReadS DescribeAnalysisPermissions
ReadS [DescribeAnalysisPermissions]
(Int -> ReadS DescribeAnalysisPermissions)
-> ReadS [DescribeAnalysisPermissions]
-> ReadPrec DescribeAnalysisPermissions
-> ReadPrec [DescribeAnalysisPermissions]
-> Read DescribeAnalysisPermissions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAnalysisPermissions]
$creadListPrec :: ReadPrec [DescribeAnalysisPermissions]
readPrec :: ReadPrec DescribeAnalysisPermissions
$creadPrec :: ReadPrec DescribeAnalysisPermissions
readList :: ReadS [DescribeAnalysisPermissions]
$creadList :: ReadS [DescribeAnalysisPermissions]
readsPrec :: Int -> ReadS DescribeAnalysisPermissions
$creadsPrec :: Int -> ReadS DescribeAnalysisPermissions
Prelude.Read, Int -> DescribeAnalysisPermissions -> ShowS
[DescribeAnalysisPermissions] -> ShowS
DescribeAnalysisPermissions -> String
(Int -> DescribeAnalysisPermissions -> ShowS)
-> (DescribeAnalysisPermissions -> String)
-> ([DescribeAnalysisPermissions] -> ShowS)
-> Show DescribeAnalysisPermissions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAnalysisPermissions] -> ShowS
$cshowList :: [DescribeAnalysisPermissions] -> ShowS
show :: DescribeAnalysisPermissions -> String
$cshow :: DescribeAnalysisPermissions -> String
showsPrec :: Int -> DescribeAnalysisPermissions -> ShowS
$cshowsPrec :: Int -> DescribeAnalysisPermissions -> ShowS
Prelude.Show, (forall x.
DescribeAnalysisPermissions -> Rep DescribeAnalysisPermissions x)
-> (forall x.
Rep DescribeAnalysisPermissions x -> DescribeAnalysisPermissions)
-> Generic DescribeAnalysisPermissions
forall x.
Rep DescribeAnalysisPermissions x -> DescribeAnalysisPermissions
forall x.
DescribeAnalysisPermissions -> Rep DescribeAnalysisPermissions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAnalysisPermissions x -> DescribeAnalysisPermissions
$cfrom :: forall x.
DescribeAnalysisPermissions -> Rep DescribeAnalysisPermissions x
Prelude.Generic)
newDescribeAnalysisPermissions ::
Prelude.Text ->
Prelude.Text ->
DescribeAnalysisPermissions
newDescribeAnalysisPermissions :: Text -> Text -> DescribeAnalysisPermissions
newDescribeAnalysisPermissions
Text
pAwsAccountId_
Text
pAnalysisId_ =
DescribeAnalysisPermissions' :: Text -> Text -> DescribeAnalysisPermissions
DescribeAnalysisPermissions'
{ $sel:awsAccountId:DescribeAnalysisPermissions' :: Text
awsAccountId =
Text
pAwsAccountId_,
$sel:analysisId:DescribeAnalysisPermissions' :: Text
analysisId = Text
pAnalysisId_
}
describeAnalysisPermissions_awsAccountId :: Lens.Lens' DescribeAnalysisPermissions Prelude.Text
describeAnalysisPermissions_awsAccountId :: (Text -> f Text)
-> DescribeAnalysisPermissions -> f DescribeAnalysisPermissions
describeAnalysisPermissions_awsAccountId = (DescribeAnalysisPermissions -> Text)
-> (DescribeAnalysisPermissions
-> Text -> DescribeAnalysisPermissions)
-> Lens
DescribeAnalysisPermissions DescribeAnalysisPermissions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnalysisPermissions' {Text
awsAccountId :: Text
$sel:awsAccountId:DescribeAnalysisPermissions' :: DescribeAnalysisPermissions -> Text
awsAccountId} -> Text
awsAccountId) (\s :: DescribeAnalysisPermissions
s@DescribeAnalysisPermissions' {} Text
a -> DescribeAnalysisPermissions
s {$sel:awsAccountId:DescribeAnalysisPermissions' :: Text
awsAccountId = Text
a} :: DescribeAnalysisPermissions)
describeAnalysisPermissions_analysisId :: Lens.Lens' DescribeAnalysisPermissions Prelude.Text
describeAnalysisPermissions_analysisId :: (Text -> f Text)
-> DescribeAnalysisPermissions -> f DescribeAnalysisPermissions
describeAnalysisPermissions_analysisId = (DescribeAnalysisPermissions -> Text)
-> (DescribeAnalysisPermissions
-> Text -> DescribeAnalysisPermissions)
-> Lens
DescribeAnalysisPermissions DescribeAnalysisPermissions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnalysisPermissions' {Text
analysisId :: Text
$sel:analysisId:DescribeAnalysisPermissions' :: DescribeAnalysisPermissions -> Text
analysisId} -> Text
analysisId) (\s :: DescribeAnalysisPermissions
s@DescribeAnalysisPermissions' {} Text
a -> DescribeAnalysisPermissions
s {$sel:analysisId:DescribeAnalysisPermissions' :: Text
analysisId = Text
a} :: DescribeAnalysisPermissions)
instance Core.AWSRequest DescribeAnalysisPermissions where
type
AWSResponse DescribeAnalysisPermissions =
DescribeAnalysisPermissionsResponse
request :: DescribeAnalysisPermissions -> Request DescribeAnalysisPermissions
request = Service
-> DescribeAnalysisPermissions
-> Request DescribeAnalysisPermissions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeAnalysisPermissions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAnalysisPermissions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeAnalysisPermissions))
-> Logger
-> Service
-> Proxy DescribeAnalysisPermissions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAnalysisPermissions)))
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 Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeAnalysisPermissionsResponse
DescribeAnalysisPermissionsResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeAnalysisPermissionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeAnalysisPermissionsResponse)
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
"RequestId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeAnalysisPermissionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeAnalysisPermissionsResponse)
forall (f :: * -> *) a b. Applicative f => 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
"AnalysisId")
Either
String
(Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeAnalysisPermissionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (NonEmpty ResourcePermission)
-> Int -> DescribeAnalysisPermissionsResponse)
forall (f :: * -> *) a b. Applicative f => 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
"AnalysisArn")
Either
String
(Maybe (NonEmpty ResourcePermission)
-> Int -> DescribeAnalysisPermissionsResponse)
-> Either String (Maybe (NonEmpty ResourcePermission))
-> Either String (Int -> DescribeAnalysisPermissionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (NonEmpty ResourcePermission))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Permissions")
Either String (Int -> DescribeAnalysisPermissionsResponse)
-> Either String Int
-> Either String DescribeAnalysisPermissionsResponse
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 DescribeAnalysisPermissions
instance Prelude.NFData DescribeAnalysisPermissions
instance Core.ToHeaders DescribeAnalysisPermissions where
toHeaders :: DescribeAnalysisPermissions -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeAnalysisPermissions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DescribeAnalysisPermissions where
toPath :: DescribeAnalysisPermissions -> ByteString
toPath DescribeAnalysisPermissions' {Text
analysisId :: Text
awsAccountId :: Text
$sel:analysisId:DescribeAnalysisPermissions' :: DescribeAnalysisPermissions -> Text
$sel:awsAccountId:DescribeAnalysisPermissions' :: DescribeAnalysisPermissions -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/accounts/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
awsAccountId,
ByteString
"/analyses/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
analysisId,
ByteString
"/permissions"
]
instance Core.ToQuery DescribeAnalysisPermissions where
toQuery :: DescribeAnalysisPermissions -> QueryString
toQuery = QueryString -> DescribeAnalysisPermissions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeAnalysisPermissionsResponse = DescribeAnalysisPermissionsResponse'
{
DescribeAnalysisPermissionsResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
DescribeAnalysisPermissionsResponse -> Maybe Text
analysisId :: Prelude.Maybe Prelude.Text,
DescribeAnalysisPermissionsResponse -> Maybe Text
analysisArn :: Prelude.Maybe Prelude.Text,
DescribeAnalysisPermissionsResponse
-> Maybe (NonEmpty ResourcePermission)
permissions :: Prelude.Maybe (Prelude.NonEmpty ResourcePermission),
DescribeAnalysisPermissionsResponse -> Int
status :: Prelude.Int
}
deriving (DescribeAnalysisPermissionsResponse
-> DescribeAnalysisPermissionsResponse -> Bool
(DescribeAnalysisPermissionsResponse
-> DescribeAnalysisPermissionsResponse -> Bool)
-> (DescribeAnalysisPermissionsResponse
-> DescribeAnalysisPermissionsResponse -> Bool)
-> Eq DescribeAnalysisPermissionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAnalysisPermissionsResponse
-> DescribeAnalysisPermissionsResponse -> Bool
$c/= :: DescribeAnalysisPermissionsResponse
-> DescribeAnalysisPermissionsResponse -> Bool
== :: DescribeAnalysisPermissionsResponse
-> DescribeAnalysisPermissionsResponse -> Bool
$c== :: DescribeAnalysisPermissionsResponse
-> DescribeAnalysisPermissionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAnalysisPermissionsResponse]
ReadPrec DescribeAnalysisPermissionsResponse
Int -> ReadS DescribeAnalysisPermissionsResponse
ReadS [DescribeAnalysisPermissionsResponse]
(Int -> ReadS DescribeAnalysisPermissionsResponse)
-> ReadS [DescribeAnalysisPermissionsResponse]
-> ReadPrec DescribeAnalysisPermissionsResponse
-> ReadPrec [DescribeAnalysisPermissionsResponse]
-> Read DescribeAnalysisPermissionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAnalysisPermissionsResponse]
$creadListPrec :: ReadPrec [DescribeAnalysisPermissionsResponse]
readPrec :: ReadPrec DescribeAnalysisPermissionsResponse
$creadPrec :: ReadPrec DescribeAnalysisPermissionsResponse
readList :: ReadS [DescribeAnalysisPermissionsResponse]
$creadList :: ReadS [DescribeAnalysisPermissionsResponse]
readsPrec :: Int -> ReadS DescribeAnalysisPermissionsResponse
$creadsPrec :: Int -> ReadS DescribeAnalysisPermissionsResponse
Prelude.Read, Int -> DescribeAnalysisPermissionsResponse -> ShowS
[DescribeAnalysisPermissionsResponse] -> ShowS
DescribeAnalysisPermissionsResponse -> String
(Int -> DescribeAnalysisPermissionsResponse -> ShowS)
-> (DescribeAnalysisPermissionsResponse -> String)
-> ([DescribeAnalysisPermissionsResponse] -> ShowS)
-> Show DescribeAnalysisPermissionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAnalysisPermissionsResponse] -> ShowS
$cshowList :: [DescribeAnalysisPermissionsResponse] -> ShowS
show :: DescribeAnalysisPermissionsResponse -> String
$cshow :: DescribeAnalysisPermissionsResponse -> String
showsPrec :: Int -> DescribeAnalysisPermissionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeAnalysisPermissionsResponse -> ShowS
Prelude.Show, (forall x.
DescribeAnalysisPermissionsResponse
-> Rep DescribeAnalysisPermissionsResponse x)
-> (forall x.
Rep DescribeAnalysisPermissionsResponse x
-> DescribeAnalysisPermissionsResponse)
-> Generic DescribeAnalysisPermissionsResponse
forall x.
Rep DescribeAnalysisPermissionsResponse x
-> DescribeAnalysisPermissionsResponse
forall x.
DescribeAnalysisPermissionsResponse
-> Rep DescribeAnalysisPermissionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAnalysisPermissionsResponse x
-> DescribeAnalysisPermissionsResponse
$cfrom :: forall x.
DescribeAnalysisPermissionsResponse
-> Rep DescribeAnalysisPermissionsResponse x
Prelude.Generic)
newDescribeAnalysisPermissionsResponse ::
Prelude.Int ->
DescribeAnalysisPermissionsResponse
newDescribeAnalysisPermissionsResponse :: Int -> DescribeAnalysisPermissionsResponse
newDescribeAnalysisPermissionsResponse Int
pStatus_ =
DescribeAnalysisPermissionsResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeAnalysisPermissionsResponse
DescribeAnalysisPermissionsResponse'
{ $sel:requestId:DescribeAnalysisPermissionsResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:analysisId:DescribeAnalysisPermissionsResponse' :: Maybe Text
analysisId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:analysisArn:DescribeAnalysisPermissionsResponse' :: Maybe Text
analysisArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:permissions:DescribeAnalysisPermissionsResponse' :: Maybe (NonEmpty ResourcePermission)
permissions = Maybe (NonEmpty ResourcePermission)
forall a. Maybe a
Prelude.Nothing,
$sel:status:DescribeAnalysisPermissionsResponse' :: Int
status = Int
pStatus_
}
describeAnalysisPermissionsResponse_requestId :: Lens.Lens' DescribeAnalysisPermissionsResponse (Prelude.Maybe Prelude.Text)
describeAnalysisPermissionsResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> DescribeAnalysisPermissionsResponse
-> f DescribeAnalysisPermissionsResponse
describeAnalysisPermissionsResponse_requestId = (DescribeAnalysisPermissionsResponse -> Maybe Text)
-> (DescribeAnalysisPermissionsResponse
-> Maybe Text -> DescribeAnalysisPermissionsResponse)
-> Lens
DescribeAnalysisPermissionsResponse
DescribeAnalysisPermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnalysisPermissionsResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:DescribeAnalysisPermissionsResponse' :: DescribeAnalysisPermissionsResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: DescribeAnalysisPermissionsResponse
s@DescribeAnalysisPermissionsResponse' {} Maybe Text
a -> DescribeAnalysisPermissionsResponse
s {$sel:requestId:DescribeAnalysisPermissionsResponse' :: Maybe Text
requestId = Maybe Text
a} :: DescribeAnalysisPermissionsResponse)
describeAnalysisPermissionsResponse_analysisId :: Lens.Lens' DescribeAnalysisPermissionsResponse (Prelude.Maybe Prelude.Text)
describeAnalysisPermissionsResponse_analysisId :: (Maybe Text -> f (Maybe Text))
-> DescribeAnalysisPermissionsResponse
-> f DescribeAnalysisPermissionsResponse
describeAnalysisPermissionsResponse_analysisId = (DescribeAnalysisPermissionsResponse -> Maybe Text)
-> (DescribeAnalysisPermissionsResponse
-> Maybe Text -> DescribeAnalysisPermissionsResponse)
-> Lens
DescribeAnalysisPermissionsResponse
DescribeAnalysisPermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnalysisPermissionsResponse' {Maybe Text
analysisId :: Maybe Text
$sel:analysisId:DescribeAnalysisPermissionsResponse' :: DescribeAnalysisPermissionsResponse -> Maybe Text
analysisId} -> Maybe Text
analysisId) (\s :: DescribeAnalysisPermissionsResponse
s@DescribeAnalysisPermissionsResponse' {} Maybe Text
a -> DescribeAnalysisPermissionsResponse
s {$sel:analysisId:DescribeAnalysisPermissionsResponse' :: Maybe Text
analysisId = Maybe Text
a} :: DescribeAnalysisPermissionsResponse)
describeAnalysisPermissionsResponse_analysisArn :: Lens.Lens' DescribeAnalysisPermissionsResponse (Prelude.Maybe Prelude.Text)
describeAnalysisPermissionsResponse_analysisArn :: (Maybe Text -> f (Maybe Text))
-> DescribeAnalysisPermissionsResponse
-> f DescribeAnalysisPermissionsResponse
describeAnalysisPermissionsResponse_analysisArn = (DescribeAnalysisPermissionsResponse -> Maybe Text)
-> (DescribeAnalysisPermissionsResponse
-> Maybe Text -> DescribeAnalysisPermissionsResponse)
-> Lens
DescribeAnalysisPermissionsResponse
DescribeAnalysisPermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnalysisPermissionsResponse' {Maybe Text
analysisArn :: Maybe Text
$sel:analysisArn:DescribeAnalysisPermissionsResponse' :: DescribeAnalysisPermissionsResponse -> Maybe Text
analysisArn} -> Maybe Text
analysisArn) (\s :: DescribeAnalysisPermissionsResponse
s@DescribeAnalysisPermissionsResponse' {} Maybe Text
a -> DescribeAnalysisPermissionsResponse
s {$sel:analysisArn:DescribeAnalysisPermissionsResponse' :: Maybe Text
analysisArn = Maybe Text
a} :: DescribeAnalysisPermissionsResponse)
describeAnalysisPermissionsResponse_permissions :: Lens.Lens' DescribeAnalysisPermissionsResponse (Prelude.Maybe (Prelude.NonEmpty ResourcePermission))
describeAnalysisPermissionsResponse_permissions :: (Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> DescribeAnalysisPermissionsResponse
-> f DescribeAnalysisPermissionsResponse
describeAnalysisPermissionsResponse_permissions = (DescribeAnalysisPermissionsResponse
-> Maybe (NonEmpty ResourcePermission))
-> (DescribeAnalysisPermissionsResponse
-> Maybe (NonEmpty ResourcePermission)
-> DescribeAnalysisPermissionsResponse)
-> Lens
DescribeAnalysisPermissionsResponse
DescribeAnalysisPermissionsResponse
(Maybe (NonEmpty ResourcePermission))
(Maybe (NonEmpty ResourcePermission))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnalysisPermissionsResponse' {Maybe (NonEmpty ResourcePermission)
permissions :: Maybe (NonEmpty ResourcePermission)
$sel:permissions:DescribeAnalysisPermissionsResponse' :: DescribeAnalysisPermissionsResponse
-> Maybe (NonEmpty ResourcePermission)
permissions} -> Maybe (NonEmpty ResourcePermission)
permissions) (\s :: DescribeAnalysisPermissionsResponse
s@DescribeAnalysisPermissionsResponse' {} Maybe (NonEmpty ResourcePermission)
a -> DescribeAnalysisPermissionsResponse
s {$sel:permissions:DescribeAnalysisPermissionsResponse' :: Maybe (NonEmpty ResourcePermission)
permissions = Maybe (NonEmpty ResourcePermission)
a} :: DescribeAnalysisPermissionsResponse) ((Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> DescribeAnalysisPermissionsResponse
-> f DescribeAnalysisPermissionsResponse)
-> ((Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> (Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> DescribeAnalysisPermissionsResponse
-> f DescribeAnalysisPermissionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty ResourcePermission)
(NonEmpty ResourcePermission)
(NonEmpty ResourcePermission)
(NonEmpty ResourcePermission)
-> Iso
(Maybe (NonEmpty ResourcePermission))
(Maybe (NonEmpty ResourcePermission))
(Maybe (NonEmpty ResourcePermission))
(Maybe (NonEmpty ResourcePermission))
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
(NonEmpty ResourcePermission)
(NonEmpty ResourcePermission)
(NonEmpty ResourcePermission)
(NonEmpty ResourcePermission)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeAnalysisPermissionsResponse_status :: Lens.Lens' DescribeAnalysisPermissionsResponse Prelude.Int
describeAnalysisPermissionsResponse_status :: (Int -> f Int)
-> DescribeAnalysisPermissionsResponse
-> f DescribeAnalysisPermissionsResponse
describeAnalysisPermissionsResponse_status = (DescribeAnalysisPermissionsResponse -> Int)
-> (DescribeAnalysisPermissionsResponse
-> Int -> DescribeAnalysisPermissionsResponse)
-> Lens
DescribeAnalysisPermissionsResponse
DescribeAnalysisPermissionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnalysisPermissionsResponse' {Int
status :: Int
$sel:status:DescribeAnalysisPermissionsResponse' :: DescribeAnalysisPermissionsResponse -> Int
status} -> Int
status) (\s :: DescribeAnalysisPermissionsResponse
s@DescribeAnalysisPermissionsResponse' {} Int
a -> DescribeAnalysisPermissionsResponse
s {$sel:status:DescribeAnalysisPermissionsResponse' :: Int
status = Int
a} :: DescribeAnalysisPermissionsResponse)
instance
Prelude.NFData
DescribeAnalysisPermissionsResponse