{-# 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.DescribeThemePermissions
(
DescribeThemePermissions (..),
newDescribeThemePermissions,
describeThemePermissions_awsAccountId,
describeThemePermissions_themeId,
DescribeThemePermissionsResponse (..),
newDescribeThemePermissionsResponse,
describeThemePermissionsResponse_requestId,
describeThemePermissionsResponse_themeArn,
describeThemePermissionsResponse_themeId,
describeThemePermissionsResponse_permissions,
describeThemePermissionsResponse_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 DescribeThemePermissions = DescribeThemePermissions'
{
DescribeThemePermissions -> Text
awsAccountId :: Prelude.Text,
DescribeThemePermissions -> Text
themeId :: Prelude.Text
}
deriving (DescribeThemePermissions -> DescribeThemePermissions -> Bool
(DescribeThemePermissions -> DescribeThemePermissions -> Bool)
-> (DescribeThemePermissions -> DescribeThemePermissions -> Bool)
-> Eq DescribeThemePermissions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeThemePermissions -> DescribeThemePermissions -> Bool
$c/= :: DescribeThemePermissions -> DescribeThemePermissions -> Bool
== :: DescribeThemePermissions -> DescribeThemePermissions -> Bool
$c== :: DescribeThemePermissions -> DescribeThemePermissions -> Bool
Prelude.Eq, ReadPrec [DescribeThemePermissions]
ReadPrec DescribeThemePermissions
Int -> ReadS DescribeThemePermissions
ReadS [DescribeThemePermissions]
(Int -> ReadS DescribeThemePermissions)
-> ReadS [DescribeThemePermissions]
-> ReadPrec DescribeThemePermissions
-> ReadPrec [DescribeThemePermissions]
-> Read DescribeThemePermissions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeThemePermissions]
$creadListPrec :: ReadPrec [DescribeThemePermissions]
readPrec :: ReadPrec DescribeThemePermissions
$creadPrec :: ReadPrec DescribeThemePermissions
readList :: ReadS [DescribeThemePermissions]
$creadList :: ReadS [DescribeThemePermissions]
readsPrec :: Int -> ReadS DescribeThemePermissions
$creadsPrec :: Int -> ReadS DescribeThemePermissions
Prelude.Read, Int -> DescribeThemePermissions -> ShowS
[DescribeThemePermissions] -> ShowS
DescribeThemePermissions -> String
(Int -> DescribeThemePermissions -> ShowS)
-> (DescribeThemePermissions -> String)
-> ([DescribeThemePermissions] -> ShowS)
-> Show DescribeThemePermissions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeThemePermissions] -> ShowS
$cshowList :: [DescribeThemePermissions] -> ShowS
show :: DescribeThemePermissions -> String
$cshow :: DescribeThemePermissions -> String
showsPrec :: Int -> DescribeThemePermissions -> ShowS
$cshowsPrec :: Int -> DescribeThemePermissions -> ShowS
Prelude.Show, (forall x.
DescribeThemePermissions -> Rep DescribeThemePermissions x)
-> (forall x.
Rep DescribeThemePermissions x -> DescribeThemePermissions)
-> Generic DescribeThemePermissions
forall x.
Rep DescribeThemePermissions x -> DescribeThemePermissions
forall x.
DescribeThemePermissions -> Rep DescribeThemePermissions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeThemePermissions x -> DescribeThemePermissions
$cfrom :: forall x.
DescribeThemePermissions -> Rep DescribeThemePermissions x
Prelude.Generic)
newDescribeThemePermissions ::
Prelude.Text ->
Prelude.Text ->
DescribeThemePermissions
newDescribeThemePermissions :: Text -> Text -> DescribeThemePermissions
newDescribeThemePermissions Text
pAwsAccountId_ Text
pThemeId_ =
DescribeThemePermissions' :: Text -> Text -> DescribeThemePermissions
DescribeThemePermissions'
{ $sel:awsAccountId:DescribeThemePermissions' :: Text
awsAccountId =
Text
pAwsAccountId_,
$sel:themeId:DescribeThemePermissions' :: Text
themeId = Text
pThemeId_
}
describeThemePermissions_awsAccountId :: Lens.Lens' DescribeThemePermissions Prelude.Text
describeThemePermissions_awsAccountId :: (Text -> f Text)
-> DescribeThemePermissions -> f DescribeThemePermissions
describeThemePermissions_awsAccountId = (DescribeThemePermissions -> Text)
-> (DescribeThemePermissions -> Text -> DescribeThemePermissions)
-> Lens DescribeThemePermissions DescribeThemePermissions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThemePermissions' {Text
awsAccountId :: Text
$sel:awsAccountId:DescribeThemePermissions' :: DescribeThemePermissions -> Text
awsAccountId} -> Text
awsAccountId) (\s :: DescribeThemePermissions
s@DescribeThemePermissions' {} Text
a -> DescribeThemePermissions
s {$sel:awsAccountId:DescribeThemePermissions' :: Text
awsAccountId = Text
a} :: DescribeThemePermissions)
describeThemePermissions_themeId :: Lens.Lens' DescribeThemePermissions Prelude.Text
describeThemePermissions_themeId :: (Text -> f Text)
-> DescribeThemePermissions -> f DescribeThemePermissions
describeThemePermissions_themeId = (DescribeThemePermissions -> Text)
-> (DescribeThemePermissions -> Text -> DescribeThemePermissions)
-> Lens DescribeThemePermissions DescribeThemePermissions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThemePermissions' {Text
themeId :: Text
$sel:themeId:DescribeThemePermissions' :: DescribeThemePermissions -> Text
themeId} -> Text
themeId) (\s :: DescribeThemePermissions
s@DescribeThemePermissions' {} Text
a -> DescribeThemePermissions
s {$sel:themeId:DescribeThemePermissions' :: Text
themeId = Text
a} :: DescribeThemePermissions)
instance Core.AWSRequest DescribeThemePermissions where
type
AWSResponse DescribeThemePermissions =
DescribeThemePermissionsResponse
request :: DescribeThemePermissions -> Request DescribeThemePermissions
request = Service
-> DescribeThemePermissions -> Request DescribeThemePermissions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeThemePermissions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeThemePermissions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeThemePermissions))
-> Logger
-> Service
-> Proxy DescribeThemePermissions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeThemePermissions)))
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
-> DescribeThemePermissionsResponse
DescribeThemePermissionsResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeThemePermissionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeThemePermissionsResponse)
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
-> DescribeThemePermissionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeThemePermissionsResponse)
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
"ThemeArn")
Either
String
(Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeThemePermissionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (NonEmpty ResourcePermission)
-> Int -> DescribeThemePermissionsResponse)
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
"ThemeId")
Either
String
(Maybe (NonEmpty ResourcePermission)
-> Int -> DescribeThemePermissionsResponse)
-> Either String (Maybe (NonEmpty ResourcePermission))
-> Either String (Int -> DescribeThemePermissionsResponse)
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 -> DescribeThemePermissionsResponse)
-> Either String Int
-> Either String DescribeThemePermissionsResponse
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 DescribeThemePermissions
instance Prelude.NFData DescribeThemePermissions
instance Core.ToHeaders DescribeThemePermissions where
toHeaders :: DescribeThemePermissions -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeThemePermissions -> 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 DescribeThemePermissions where
toPath :: DescribeThemePermissions -> ByteString
toPath DescribeThemePermissions' {Text
themeId :: Text
awsAccountId :: Text
$sel:themeId:DescribeThemePermissions' :: DescribeThemePermissions -> Text
$sel:awsAccountId:DescribeThemePermissions' :: DescribeThemePermissions -> 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
"/themes/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
themeId,
ByteString
"/permissions"
]
instance Core.ToQuery DescribeThemePermissions where
toQuery :: DescribeThemePermissions -> QueryString
toQuery = QueryString -> DescribeThemePermissions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeThemePermissionsResponse = DescribeThemePermissionsResponse'
{
DescribeThemePermissionsResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
DescribeThemePermissionsResponse -> Maybe Text
themeArn :: Prelude.Maybe Prelude.Text,
DescribeThemePermissionsResponse -> Maybe Text
themeId :: Prelude.Maybe Prelude.Text,
DescribeThemePermissionsResponse
-> Maybe (NonEmpty ResourcePermission)
permissions :: Prelude.Maybe (Prelude.NonEmpty ResourcePermission),
DescribeThemePermissionsResponse -> Int
status :: Prelude.Int
}
deriving (DescribeThemePermissionsResponse
-> DescribeThemePermissionsResponse -> Bool
(DescribeThemePermissionsResponse
-> DescribeThemePermissionsResponse -> Bool)
-> (DescribeThemePermissionsResponse
-> DescribeThemePermissionsResponse -> Bool)
-> Eq DescribeThemePermissionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeThemePermissionsResponse
-> DescribeThemePermissionsResponse -> Bool
$c/= :: DescribeThemePermissionsResponse
-> DescribeThemePermissionsResponse -> Bool
== :: DescribeThemePermissionsResponse
-> DescribeThemePermissionsResponse -> Bool
$c== :: DescribeThemePermissionsResponse
-> DescribeThemePermissionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeThemePermissionsResponse]
ReadPrec DescribeThemePermissionsResponse
Int -> ReadS DescribeThemePermissionsResponse
ReadS [DescribeThemePermissionsResponse]
(Int -> ReadS DescribeThemePermissionsResponse)
-> ReadS [DescribeThemePermissionsResponse]
-> ReadPrec DescribeThemePermissionsResponse
-> ReadPrec [DescribeThemePermissionsResponse]
-> Read DescribeThemePermissionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeThemePermissionsResponse]
$creadListPrec :: ReadPrec [DescribeThemePermissionsResponse]
readPrec :: ReadPrec DescribeThemePermissionsResponse
$creadPrec :: ReadPrec DescribeThemePermissionsResponse
readList :: ReadS [DescribeThemePermissionsResponse]
$creadList :: ReadS [DescribeThemePermissionsResponse]
readsPrec :: Int -> ReadS DescribeThemePermissionsResponse
$creadsPrec :: Int -> ReadS DescribeThemePermissionsResponse
Prelude.Read, Int -> DescribeThemePermissionsResponse -> ShowS
[DescribeThemePermissionsResponse] -> ShowS
DescribeThemePermissionsResponse -> String
(Int -> DescribeThemePermissionsResponse -> ShowS)
-> (DescribeThemePermissionsResponse -> String)
-> ([DescribeThemePermissionsResponse] -> ShowS)
-> Show DescribeThemePermissionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeThemePermissionsResponse] -> ShowS
$cshowList :: [DescribeThemePermissionsResponse] -> ShowS
show :: DescribeThemePermissionsResponse -> String
$cshow :: DescribeThemePermissionsResponse -> String
showsPrec :: Int -> DescribeThemePermissionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeThemePermissionsResponse -> ShowS
Prelude.Show, (forall x.
DescribeThemePermissionsResponse
-> Rep DescribeThemePermissionsResponse x)
-> (forall x.
Rep DescribeThemePermissionsResponse x
-> DescribeThemePermissionsResponse)
-> Generic DescribeThemePermissionsResponse
forall x.
Rep DescribeThemePermissionsResponse x
-> DescribeThemePermissionsResponse
forall x.
DescribeThemePermissionsResponse
-> Rep DescribeThemePermissionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeThemePermissionsResponse x
-> DescribeThemePermissionsResponse
$cfrom :: forall x.
DescribeThemePermissionsResponse
-> Rep DescribeThemePermissionsResponse x
Prelude.Generic)
newDescribeThemePermissionsResponse ::
Prelude.Int ->
DescribeThemePermissionsResponse
newDescribeThemePermissionsResponse :: Int -> DescribeThemePermissionsResponse
newDescribeThemePermissionsResponse Int
pStatus_ =
DescribeThemePermissionsResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeThemePermissionsResponse
DescribeThemePermissionsResponse'
{ $sel:requestId:DescribeThemePermissionsResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:themeArn:DescribeThemePermissionsResponse' :: Maybe Text
themeArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:themeId:DescribeThemePermissionsResponse' :: Maybe Text
themeId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:permissions:DescribeThemePermissionsResponse' :: Maybe (NonEmpty ResourcePermission)
permissions = Maybe (NonEmpty ResourcePermission)
forall a. Maybe a
Prelude.Nothing,
$sel:status:DescribeThemePermissionsResponse' :: Int
status = Int
pStatus_
}
describeThemePermissionsResponse_requestId :: Lens.Lens' DescribeThemePermissionsResponse (Prelude.Maybe Prelude.Text)
describeThemePermissionsResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> DescribeThemePermissionsResponse
-> f DescribeThemePermissionsResponse
describeThemePermissionsResponse_requestId = (DescribeThemePermissionsResponse -> Maybe Text)
-> (DescribeThemePermissionsResponse
-> Maybe Text -> DescribeThemePermissionsResponse)
-> Lens
DescribeThemePermissionsResponse
DescribeThemePermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThemePermissionsResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:DescribeThemePermissionsResponse' :: DescribeThemePermissionsResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: DescribeThemePermissionsResponse
s@DescribeThemePermissionsResponse' {} Maybe Text
a -> DescribeThemePermissionsResponse
s {$sel:requestId:DescribeThemePermissionsResponse' :: Maybe Text
requestId = Maybe Text
a} :: DescribeThemePermissionsResponse)
describeThemePermissionsResponse_themeArn :: Lens.Lens' DescribeThemePermissionsResponse (Prelude.Maybe Prelude.Text)
describeThemePermissionsResponse_themeArn :: (Maybe Text -> f (Maybe Text))
-> DescribeThemePermissionsResponse
-> f DescribeThemePermissionsResponse
describeThemePermissionsResponse_themeArn = (DescribeThemePermissionsResponse -> Maybe Text)
-> (DescribeThemePermissionsResponse
-> Maybe Text -> DescribeThemePermissionsResponse)
-> Lens
DescribeThemePermissionsResponse
DescribeThemePermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThemePermissionsResponse' {Maybe Text
themeArn :: Maybe Text
$sel:themeArn:DescribeThemePermissionsResponse' :: DescribeThemePermissionsResponse -> Maybe Text
themeArn} -> Maybe Text
themeArn) (\s :: DescribeThemePermissionsResponse
s@DescribeThemePermissionsResponse' {} Maybe Text
a -> DescribeThemePermissionsResponse
s {$sel:themeArn:DescribeThemePermissionsResponse' :: Maybe Text
themeArn = Maybe Text
a} :: DescribeThemePermissionsResponse)
describeThemePermissionsResponse_themeId :: Lens.Lens' DescribeThemePermissionsResponse (Prelude.Maybe Prelude.Text)
describeThemePermissionsResponse_themeId :: (Maybe Text -> f (Maybe Text))
-> DescribeThemePermissionsResponse
-> f DescribeThemePermissionsResponse
describeThemePermissionsResponse_themeId = (DescribeThemePermissionsResponse -> Maybe Text)
-> (DescribeThemePermissionsResponse
-> Maybe Text -> DescribeThemePermissionsResponse)
-> Lens
DescribeThemePermissionsResponse
DescribeThemePermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThemePermissionsResponse' {Maybe Text
themeId :: Maybe Text
$sel:themeId:DescribeThemePermissionsResponse' :: DescribeThemePermissionsResponse -> Maybe Text
themeId} -> Maybe Text
themeId) (\s :: DescribeThemePermissionsResponse
s@DescribeThemePermissionsResponse' {} Maybe Text
a -> DescribeThemePermissionsResponse
s {$sel:themeId:DescribeThemePermissionsResponse' :: Maybe Text
themeId = Maybe Text
a} :: DescribeThemePermissionsResponse)
describeThemePermissionsResponse_permissions :: Lens.Lens' DescribeThemePermissionsResponse (Prelude.Maybe (Prelude.NonEmpty ResourcePermission))
describeThemePermissionsResponse_permissions :: (Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> DescribeThemePermissionsResponse
-> f DescribeThemePermissionsResponse
describeThemePermissionsResponse_permissions = (DescribeThemePermissionsResponse
-> Maybe (NonEmpty ResourcePermission))
-> (DescribeThemePermissionsResponse
-> Maybe (NonEmpty ResourcePermission)
-> DescribeThemePermissionsResponse)
-> Lens
DescribeThemePermissionsResponse
DescribeThemePermissionsResponse
(Maybe (NonEmpty ResourcePermission))
(Maybe (NonEmpty ResourcePermission))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThemePermissionsResponse' {Maybe (NonEmpty ResourcePermission)
permissions :: Maybe (NonEmpty ResourcePermission)
$sel:permissions:DescribeThemePermissionsResponse' :: DescribeThemePermissionsResponse
-> Maybe (NonEmpty ResourcePermission)
permissions} -> Maybe (NonEmpty ResourcePermission)
permissions) (\s :: DescribeThemePermissionsResponse
s@DescribeThemePermissionsResponse' {} Maybe (NonEmpty ResourcePermission)
a -> DescribeThemePermissionsResponse
s {$sel:permissions:DescribeThemePermissionsResponse' :: Maybe (NonEmpty ResourcePermission)
permissions = Maybe (NonEmpty ResourcePermission)
a} :: DescribeThemePermissionsResponse) ((Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> DescribeThemePermissionsResponse
-> f DescribeThemePermissionsResponse)
-> ((Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> (Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> DescribeThemePermissionsResponse
-> f DescribeThemePermissionsResponse
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
describeThemePermissionsResponse_status :: Lens.Lens' DescribeThemePermissionsResponse Prelude.Int
describeThemePermissionsResponse_status :: (Int -> f Int)
-> DescribeThemePermissionsResponse
-> f DescribeThemePermissionsResponse
describeThemePermissionsResponse_status = (DescribeThemePermissionsResponse -> Int)
-> (DescribeThemePermissionsResponse
-> Int -> DescribeThemePermissionsResponse)
-> Lens
DescribeThemePermissionsResponse
DescribeThemePermissionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeThemePermissionsResponse' {Int
status :: Int
$sel:status:DescribeThemePermissionsResponse' :: DescribeThemePermissionsResponse -> Int
status} -> Int
status) (\s :: DescribeThemePermissionsResponse
s@DescribeThemePermissionsResponse' {} Int
a -> DescribeThemePermissionsResponse
s {$sel:status:DescribeThemePermissionsResponse' :: Int
status = Int
a} :: DescribeThemePermissionsResponse)
instance
Prelude.NFData
DescribeThemePermissionsResponse