{-# 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.DescribeTemplatePermissions
(
DescribeTemplatePermissions (..),
newDescribeTemplatePermissions,
describeTemplatePermissions_awsAccountId,
describeTemplatePermissions_templateId,
DescribeTemplatePermissionsResponse (..),
newDescribeTemplatePermissionsResponse,
describeTemplatePermissionsResponse_requestId,
describeTemplatePermissionsResponse_templateId,
describeTemplatePermissionsResponse_templateArn,
describeTemplatePermissionsResponse_permissions,
describeTemplatePermissionsResponse_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 DescribeTemplatePermissions = DescribeTemplatePermissions'
{
DescribeTemplatePermissions -> Text
awsAccountId :: Prelude.Text,
DescribeTemplatePermissions -> Text
templateId :: Prelude.Text
}
deriving (DescribeTemplatePermissions -> DescribeTemplatePermissions -> Bool
(DescribeTemplatePermissions
-> DescribeTemplatePermissions -> Bool)
-> (DescribeTemplatePermissions
-> DescribeTemplatePermissions -> Bool)
-> Eq DescribeTemplatePermissions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTemplatePermissions -> DescribeTemplatePermissions -> Bool
$c/= :: DescribeTemplatePermissions -> DescribeTemplatePermissions -> Bool
== :: DescribeTemplatePermissions -> DescribeTemplatePermissions -> Bool
$c== :: DescribeTemplatePermissions -> DescribeTemplatePermissions -> Bool
Prelude.Eq, ReadPrec [DescribeTemplatePermissions]
ReadPrec DescribeTemplatePermissions
Int -> ReadS DescribeTemplatePermissions
ReadS [DescribeTemplatePermissions]
(Int -> ReadS DescribeTemplatePermissions)
-> ReadS [DescribeTemplatePermissions]
-> ReadPrec DescribeTemplatePermissions
-> ReadPrec [DescribeTemplatePermissions]
-> Read DescribeTemplatePermissions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTemplatePermissions]
$creadListPrec :: ReadPrec [DescribeTemplatePermissions]
readPrec :: ReadPrec DescribeTemplatePermissions
$creadPrec :: ReadPrec DescribeTemplatePermissions
readList :: ReadS [DescribeTemplatePermissions]
$creadList :: ReadS [DescribeTemplatePermissions]
readsPrec :: Int -> ReadS DescribeTemplatePermissions
$creadsPrec :: Int -> ReadS DescribeTemplatePermissions
Prelude.Read, Int -> DescribeTemplatePermissions -> ShowS
[DescribeTemplatePermissions] -> ShowS
DescribeTemplatePermissions -> String
(Int -> DescribeTemplatePermissions -> ShowS)
-> (DescribeTemplatePermissions -> String)
-> ([DescribeTemplatePermissions] -> ShowS)
-> Show DescribeTemplatePermissions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTemplatePermissions] -> ShowS
$cshowList :: [DescribeTemplatePermissions] -> ShowS
show :: DescribeTemplatePermissions -> String
$cshow :: DescribeTemplatePermissions -> String
showsPrec :: Int -> DescribeTemplatePermissions -> ShowS
$cshowsPrec :: Int -> DescribeTemplatePermissions -> ShowS
Prelude.Show, (forall x.
DescribeTemplatePermissions -> Rep DescribeTemplatePermissions x)
-> (forall x.
Rep DescribeTemplatePermissions x -> DescribeTemplatePermissions)
-> Generic DescribeTemplatePermissions
forall x.
Rep DescribeTemplatePermissions x -> DescribeTemplatePermissions
forall x.
DescribeTemplatePermissions -> Rep DescribeTemplatePermissions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTemplatePermissions x -> DescribeTemplatePermissions
$cfrom :: forall x.
DescribeTemplatePermissions -> Rep DescribeTemplatePermissions x
Prelude.Generic)
newDescribeTemplatePermissions ::
Prelude.Text ->
Prelude.Text ->
DescribeTemplatePermissions
newDescribeTemplatePermissions :: Text -> Text -> DescribeTemplatePermissions
newDescribeTemplatePermissions
Text
pAwsAccountId_
Text
pTemplateId_ =
DescribeTemplatePermissions' :: Text -> Text -> DescribeTemplatePermissions
DescribeTemplatePermissions'
{ $sel:awsAccountId:DescribeTemplatePermissions' :: Text
awsAccountId =
Text
pAwsAccountId_,
$sel:templateId:DescribeTemplatePermissions' :: Text
templateId = Text
pTemplateId_
}
describeTemplatePermissions_awsAccountId :: Lens.Lens' DescribeTemplatePermissions Prelude.Text
describeTemplatePermissions_awsAccountId :: (Text -> f Text)
-> DescribeTemplatePermissions -> f DescribeTemplatePermissions
describeTemplatePermissions_awsAccountId = (DescribeTemplatePermissions -> Text)
-> (DescribeTemplatePermissions
-> Text -> DescribeTemplatePermissions)
-> Lens
DescribeTemplatePermissions DescribeTemplatePermissions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTemplatePermissions' {Text
awsAccountId :: Text
$sel:awsAccountId:DescribeTemplatePermissions' :: DescribeTemplatePermissions -> Text
awsAccountId} -> Text
awsAccountId) (\s :: DescribeTemplatePermissions
s@DescribeTemplatePermissions' {} Text
a -> DescribeTemplatePermissions
s {$sel:awsAccountId:DescribeTemplatePermissions' :: Text
awsAccountId = Text
a} :: DescribeTemplatePermissions)
describeTemplatePermissions_templateId :: Lens.Lens' DescribeTemplatePermissions Prelude.Text
describeTemplatePermissions_templateId :: (Text -> f Text)
-> DescribeTemplatePermissions -> f DescribeTemplatePermissions
describeTemplatePermissions_templateId = (DescribeTemplatePermissions -> Text)
-> (DescribeTemplatePermissions
-> Text -> DescribeTemplatePermissions)
-> Lens
DescribeTemplatePermissions DescribeTemplatePermissions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTemplatePermissions' {Text
templateId :: Text
$sel:templateId:DescribeTemplatePermissions' :: DescribeTemplatePermissions -> Text
templateId} -> Text
templateId) (\s :: DescribeTemplatePermissions
s@DescribeTemplatePermissions' {} Text
a -> DescribeTemplatePermissions
s {$sel:templateId:DescribeTemplatePermissions' :: Text
templateId = Text
a} :: DescribeTemplatePermissions)
instance Core.AWSRequest DescribeTemplatePermissions where
type
AWSResponse DescribeTemplatePermissions =
DescribeTemplatePermissionsResponse
request :: DescribeTemplatePermissions -> Request DescribeTemplatePermissions
request = Service
-> DescribeTemplatePermissions
-> Request DescribeTemplatePermissions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeTemplatePermissions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeTemplatePermissions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeTemplatePermissions))
-> Logger
-> Service
-> Proxy DescribeTemplatePermissions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeTemplatePermissions)))
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
-> DescribeTemplatePermissionsResponse
DescribeTemplatePermissionsResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeTemplatePermissionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeTemplatePermissionsResponse)
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
-> DescribeTemplatePermissionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeTemplatePermissionsResponse)
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
"TemplateId")
Either
String
(Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeTemplatePermissionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (NonEmpty ResourcePermission)
-> Int -> DescribeTemplatePermissionsResponse)
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
"TemplateArn")
Either
String
(Maybe (NonEmpty ResourcePermission)
-> Int -> DescribeTemplatePermissionsResponse)
-> Either String (Maybe (NonEmpty ResourcePermission))
-> Either String (Int -> DescribeTemplatePermissionsResponse)
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 -> DescribeTemplatePermissionsResponse)
-> Either String Int
-> Either String DescribeTemplatePermissionsResponse
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 DescribeTemplatePermissions
instance Prelude.NFData DescribeTemplatePermissions
instance Core.ToHeaders DescribeTemplatePermissions where
toHeaders :: DescribeTemplatePermissions -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeTemplatePermissions -> 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 DescribeTemplatePermissions where
toPath :: DescribeTemplatePermissions -> ByteString
toPath DescribeTemplatePermissions' {Text
templateId :: Text
awsAccountId :: Text
$sel:templateId:DescribeTemplatePermissions' :: DescribeTemplatePermissions -> Text
$sel:awsAccountId:DescribeTemplatePermissions' :: DescribeTemplatePermissions -> 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
"/templates/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
templateId,
ByteString
"/permissions"
]
instance Core.ToQuery DescribeTemplatePermissions where
toQuery :: DescribeTemplatePermissions -> QueryString
toQuery = QueryString -> DescribeTemplatePermissions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeTemplatePermissionsResponse = DescribeTemplatePermissionsResponse'
{
DescribeTemplatePermissionsResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
DescribeTemplatePermissionsResponse -> Maybe Text
templateId :: Prelude.Maybe Prelude.Text,
DescribeTemplatePermissionsResponse -> Maybe Text
templateArn :: Prelude.Maybe Prelude.Text,
DescribeTemplatePermissionsResponse
-> Maybe (NonEmpty ResourcePermission)
permissions :: Prelude.Maybe (Prelude.NonEmpty ResourcePermission),
DescribeTemplatePermissionsResponse -> Int
status :: Prelude.Int
}
deriving (DescribeTemplatePermissionsResponse
-> DescribeTemplatePermissionsResponse -> Bool
(DescribeTemplatePermissionsResponse
-> DescribeTemplatePermissionsResponse -> Bool)
-> (DescribeTemplatePermissionsResponse
-> DescribeTemplatePermissionsResponse -> Bool)
-> Eq DescribeTemplatePermissionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTemplatePermissionsResponse
-> DescribeTemplatePermissionsResponse -> Bool
$c/= :: DescribeTemplatePermissionsResponse
-> DescribeTemplatePermissionsResponse -> Bool
== :: DescribeTemplatePermissionsResponse
-> DescribeTemplatePermissionsResponse -> Bool
$c== :: DescribeTemplatePermissionsResponse
-> DescribeTemplatePermissionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeTemplatePermissionsResponse]
ReadPrec DescribeTemplatePermissionsResponse
Int -> ReadS DescribeTemplatePermissionsResponse
ReadS [DescribeTemplatePermissionsResponse]
(Int -> ReadS DescribeTemplatePermissionsResponse)
-> ReadS [DescribeTemplatePermissionsResponse]
-> ReadPrec DescribeTemplatePermissionsResponse
-> ReadPrec [DescribeTemplatePermissionsResponse]
-> Read DescribeTemplatePermissionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTemplatePermissionsResponse]
$creadListPrec :: ReadPrec [DescribeTemplatePermissionsResponse]
readPrec :: ReadPrec DescribeTemplatePermissionsResponse
$creadPrec :: ReadPrec DescribeTemplatePermissionsResponse
readList :: ReadS [DescribeTemplatePermissionsResponse]
$creadList :: ReadS [DescribeTemplatePermissionsResponse]
readsPrec :: Int -> ReadS DescribeTemplatePermissionsResponse
$creadsPrec :: Int -> ReadS DescribeTemplatePermissionsResponse
Prelude.Read, Int -> DescribeTemplatePermissionsResponse -> ShowS
[DescribeTemplatePermissionsResponse] -> ShowS
DescribeTemplatePermissionsResponse -> String
(Int -> DescribeTemplatePermissionsResponse -> ShowS)
-> (DescribeTemplatePermissionsResponse -> String)
-> ([DescribeTemplatePermissionsResponse] -> ShowS)
-> Show DescribeTemplatePermissionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTemplatePermissionsResponse] -> ShowS
$cshowList :: [DescribeTemplatePermissionsResponse] -> ShowS
show :: DescribeTemplatePermissionsResponse -> String
$cshow :: DescribeTemplatePermissionsResponse -> String
showsPrec :: Int -> DescribeTemplatePermissionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeTemplatePermissionsResponse -> ShowS
Prelude.Show, (forall x.
DescribeTemplatePermissionsResponse
-> Rep DescribeTemplatePermissionsResponse x)
-> (forall x.
Rep DescribeTemplatePermissionsResponse x
-> DescribeTemplatePermissionsResponse)
-> Generic DescribeTemplatePermissionsResponse
forall x.
Rep DescribeTemplatePermissionsResponse x
-> DescribeTemplatePermissionsResponse
forall x.
DescribeTemplatePermissionsResponse
-> Rep DescribeTemplatePermissionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTemplatePermissionsResponse x
-> DescribeTemplatePermissionsResponse
$cfrom :: forall x.
DescribeTemplatePermissionsResponse
-> Rep DescribeTemplatePermissionsResponse x
Prelude.Generic)
newDescribeTemplatePermissionsResponse ::
Prelude.Int ->
DescribeTemplatePermissionsResponse
newDescribeTemplatePermissionsResponse :: Int -> DescribeTemplatePermissionsResponse
newDescribeTemplatePermissionsResponse Int
pStatus_ =
DescribeTemplatePermissionsResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ResourcePermission)
-> Int
-> DescribeTemplatePermissionsResponse
DescribeTemplatePermissionsResponse'
{ $sel:requestId:DescribeTemplatePermissionsResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateId:DescribeTemplatePermissionsResponse' :: Maybe Text
templateId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateArn:DescribeTemplatePermissionsResponse' :: Maybe Text
templateArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:permissions:DescribeTemplatePermissionsResponse' :: Maybe (NonEmpty ResourcePermission)
permissions = Maybe (NonEmpty ResourcePermission)
forall a. Maybe a
Prelude.Nothing,
$sel:status:DescribeTemplatePermissionsResponse' :: Int
status = Int
pStatus_
}
describeTemplatePermissionsResponse_requestId :: Lens.Lens' DescribeTemplatePermissionsResponse (Prelude.Maybe Prelude.Text)
describeTemplatePermissionsResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> DescribeTemplatePermissionsResponse
-> f DescribeTemplatePermissionsResponse
describeTemplatePermissionsResponse_requestId = (DescribeTemplatePermissionsResponse -> Maybe Text)
-> (DescribeTemplatePermissionsResponse
-> Maybe Text -> DescribeTemplatePermissionsResponse)
-> Lens
DescribeTemplatePermissionsResponse
DescribeTemplatePermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTemplatePermissionsResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:DescribeTemplatePermissionsResponse' :: DescribeTemplatePermissionsResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: DescribeTemplatePermissionsResponse
s@DescribeTemplatePermissionsResponse' {} Maybe Text
a -> DescribeTemplatePermissionsResponse
s {$sel:requestId:DescribeTemplatePermissionsResponse' :: Maybe Text
requestId = Maybe Text
a} :: DescribeTemplatePermissionsResponse)
describeTemplatePermissionsResponse_templateId :: Lens.Lens' DescribeTemplatePermissionsResponse (Prelude.Maybe Prelude.Text)
describeTemplatePermissionsResponse_templateId :: (Maybe Text -> f (Maybe Text))
-> DescribeTemplatePermissionsResponse
-> f DescribeTemplatePermissionsResponse
describeTemplatePermissionsResponse_templateId = (DescribeTemplatePermissionsResponse -> Maybe Text)
-> (DescribeTemplatePermissionsResponse
-> Maybe Text -> DescribeTemplatePermissionsResponse)
-> Lens
DescribeTemplatePermissionsResponse
DescribeTemplatePermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTemplatePermissionsResponse' {Maybe Text
templateId :: Maybe Text
$sel:templateId:DescribeTemplatePermissionsResponse' :: DescribeTemplatePermissionsResponse -> Maybe Text
templateId} -> Maybe Text
templateId) (\s :: DescribeTemplatePermissionsResponse
s@DescribeTemplatePermissionsResponse' {} Maybe Text
a -> DescribeTemplatePermissionsResponse
s {$sel:templateId:DescribeTemplatePermissionsResponse' :: Maybe Text
templateId = Maybe Text
a} :: DescribeTemplatePermissionsResponse)
describeTemplatePermissionsResponse_templateArn :: Lens.Lens' DescribeTemplatePermissionsResponse (Prelude.Maybe Prelude.Text)
describeTemplatePermissionsResponse_templateArn :: (Maybe Text -> f (Maybe Text))
-> DescribeTemplatePermissionsResponse
-> f DescribeTemplatePermissionsResponse
describeTemplatePermissionsResponse_templateArn = (DescribeTemplatePermissionsResponse -> Maybe Text)
-> (DescribeTemplatePermissionsResponse
-> Maybe Text -> DescribeTemplatePermissionsResponse)
-> Lens
DescribeTemplatePermissionsResponse
DescribeTemplatePermissionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTemplatePermissionsResponse' {Maybe Text
templateArn :: Maybe Text
$sel:templateArn:DescribeTemplatePermissionsResponse' :: DescribeTemplatePermissionsResponse -> Maybe Text
templateArn} -> Maybe Text
templateArn) (\s :: DescribeTemplatePermissionsResponse
s@DescribeTemplatePermissionsResponse' {} Maybe Text
a -> DescribeTemplatePermissionsResponse
s {$sel:templateArn:DescribeTemplatePermissionsResponse' :: Maybe Text
templateArn = Maybe Text
a} :: DescribeTemplatePermissionsResponse)
describeTemplatePermissionsResponse_permissions :: Lens.Lens' DescribeTemplatePermissionsResponse (Prelude.Maybe (Prelude.NonEmpty ResourcePermission))
describeTemplatePermissionsResponse_permissions :: (Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> DescribeTemplatePermissionsResponse
-> f DescribeTemplatePermissionsResponse
describeTemplatePermissionsResponse_permissions = (DescribeTemplatePermissionsResponse
-> Maybe (NonEmpty ResourcePermission))
-> (DescribeTemplatePermissionsResponse
-> Maybe (NonEmpty ResourcePermission)
-> DescribeTemplatePermissionsResponse)
-> Lens
DescribeTemplatePermissionsResponse
DescribeTemplatePermissionsResponse
(Maybe (NonEmpty ResourcePermission))
(Maybe (NonEmpty ResourcePermission))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTemplatePermissionsResponse' {Maybe (NonEmpty ResourcePermission)
permissions :: Maybe (NonEmpty ResourcePermission)
$sel:permissions:DescribeTemplatePermissionsResponse' :: DescribeTemplatePermissionsResponse
-> Maybe (NonEmpty ResourcePermission)
permissions} -> Maybe (NonEmpty ResourcePermission)
permissions) (\s :: DescribeTemplatePermissionsResponse
s@DescribeTemplatePermissionsResponse' {} Maybe (NonEmpty ResourcePermission)
a -> DescribeTemplatePermissionsResponse
s {$sel:permissions:DescribeTemplatePermissionsResponse' :: Maybe (NonEmpty ResourcePermission)
permissions = Maybe (NonEmpty ResourcePermission)
a} :: DescribeTemplatePermissionsResponse) ((Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> DescribeTemplatePermissionsResponse
-> f DescribeTemplatePermissionsResponse)
-> ((Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> (Maybe (NonEmpty ResourcePermission)
-> f (Maybe (NonEmpty ResourcePermission)))
-> DescribeTemplatePermissionsResponse
-> f DescribeTemplatePermissionsResponse
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
describeTemplatePermissionsResponse_status :: Lens.Lens' DescribeTemplatePermissionsResponse Prelude.Int
describeTemplatePermissionsResponse_status :: (Int -> f Int)
-> DescribeTemplatePermissionsResponse
-> f DescribeTemplatePermissionsResponse
describeTemplatePermissionsResponse_status = (DescribeTemplatePermissionsResponse -> Int)
-> (DescribeTemplatePermissionsResponse
-> Int -> DescribeTemplatePermissionsResponse)
-> Lens
DescribeTemplatePermissionsResponse
DescribeTemplatePermissionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTemplatePermissionsResponse' {Int
status :: Int
$sel:status:DescribeTemplatePermissionsResponse' :: DescribeTemplatePermissionsResponse -> Int
status} -> Int
status) (\s :: DescribeTemplatePermissionsResponse
s@DescribeTemplatePermissionsResponse' {} Int
a -> DescribeTemplatePermissionsResponse
s {$sel:status:DescribeTemplatePermissionsResponse' :: Int
status = Int
a} :: DescribeTemplatePermissionsResponse)
instance
Prelude.NFData
DescribeTemplatePermissionsResponse