{-# 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.DeleteTemplateAlias
(
DeleteTemplateAlias (..),
newDeleteTemplateAlias,
deleteTemplateAlias_awsAccountId,
deleteTemplateAlias_templateId,
deleteTemplateAlias_aliasName,
DeleteTemplateAliasResponse (..),
newDeleteTemplateAliasResponse,
deleteTemplateAliasResponse_requestId,
deleteTemplateAliasResponse_arn,
deleteTemplateAliasResponse_templateId,
deleteTemplateAliasResponse_aliasName,
deleteTemplateAliasResponse_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 DeleteTemplateAlias = DeleteTemplateAlias'
{
DeleteTemplateAlias -> Text
awsAccountId :: Prelude.Text,
DeleteTemplateAlias -> Text
templateId :: Prelude.Text,
DeleteTemplateAlias -> Text
aliasName :: Prelude.Text
}
deriving (DeleteTemplateAlias -> DeleteTemplateAlias -> Bool
(DeleteTemplateAlias -> DeleteTemplateAlias -> Bool)
-> (DeleteTemplateAlias -> DeleteTemplateAlias -> Bool)
-> Eq DeleteTemplateAlias
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteTemplateAlias -> DeleteTemplateAlias -> Bool
$c/= :: DeleteTemplateAlias -> DeleteTemplateAlias -> Bool
== :: DeleteTemplateAlias -> DeleteTemplateAlias -> Bool
$c== :: DeleteTemplateAlias -> DeleteTemplateAlias -> Bool
Prelude.Eq, ReadPrec [DeleteTemplateAlias]
ReadPrec DeleteTemplateAlias
Int -> ReadS DeleteTemplateAlias
ReadS [DeleteTemplateAlias]
(Int -> ReadS DeleteTemplateAlias)
-> ReadS [DeleteTemplateAlias]
-> ReadPrec DeleteTemplateAlias
-> ReadPrec [DeleteTemplateAlias]
-> Read DeleteTemplateAlias
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteTemplateAlias]
$creadListPrec :: ReadPrec [DeleteTemplateAlias]
readPrec :: ReadPrec DeleteTemplateAlias
$creadPrec :: ReadPrec DeleteTemplateAlias
readList :: ReadS [DeleteTemplateAlias]
$creadList :: ReadS [DeleteTemplateAlias]
readsPrec :: Int -> ReadS DeleteTemplateAlias
$creadsPrec :: Int -> ReadS DeleteTemplateAlias
Prelude.Read, Int -> DeleteTemplateAlias -> ShowS
[DeleteTemplateAlias] -> ShowS
DeleteTemplateAlias -> String
(Int -> DeleteTemplateAlias -> ShowS)
-> (DeleteTemplateAlias -> String)
-> ([DeleteTemplateAlias] -> ShowS)
-> Show DeleteTemplateAlias
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteTemplateAlias] -> ShowS
$cshowList :: [DeleteTemplateAlias] -> ShowS
show :: DeleteTemplateAlias -> String
$cshow :: DeleteTemplateAlias -> String
showsPrec :: Int -> DeleteTemplateAlias -> ShowS
$cshowsPrec :: Int -> DeleteTemplateAlias -> ShowS
Prelude.Show, (forall x. DeleteTemplateAlias -> Rep DeleteTemplateAlias x)
-> (forall x. Rep DeleteTemplateAlias x -> DeleteTemplateAlias)
-> Generic DeleteTemplateAlias
forall x. Rep DeleteTemplateAlias x -> DeleteTemplateAlias
forall x. DeleteTemplateAlias -> Rep DeleteTemplateAlias x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteTemplateAlias x -> DeleteTemplateAlias
$cfrom :: forall x. DeleteTemplateAlias -> Rep DeleteTemplateAlias x
Prelude.Generic)
newDeleteTemplateAlias ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
DeleteTemplateAlias
newDeleteTemplateAlias :: Text -> Text -> Text -> DeleteTemplateAlias
newDeleteTemplateAlias
Text
pAwsAccountId_
Text
pTemplateId_
Text
pAliasName_ =
DeleteTemplateAlias' :: Text -> Text -> Text -> DeleteTemplateAlias
DeleteTemplateAlias'
{ $sel:awsAccountId:DeleteTemplateAlias' :: Text
awsAccountId = Text
pAwsAccountId_,
$sel:templateId:DeleteTemplateAlias' :: Text
templateId = Text
pTemplateId_,
$sel:aliasName:DeleteTemplateAlias' :: Text
aliasName = Text
pAliasName_
}
deleteTemplateAlias_awsAccountId :: Lens.Lens' DeleteTemplateAlias Prelude.Text
deleteTemplateAlias_awsAccountId :: (Text -> f Text) -> DeleteTemplateAlias -> f DeleteTemplateAlias
deleteTemplateAlias_awsAccountId = (DeleteTemplateAlias -> Text)
-> (DeleteTemplateAlias -> Text -> DeleteTemplateAlias)
-> Lens DeleteTemplateAlias DeleteTemplateAlias Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteTemplateAlias' {Text
awsAccountId :: Text
$sel:awsAccountId:DeleteTemplateAlias' :: DeleteTemplateAlias -> Text
awsAccountId} -> Text
awsAccountId) (\s :: DeleteTemplateAlias
s@DeleteTemplateAlias' {} Text
a -> DeleteTemplateAlias
s {$sel:awsAccountId:DeleteTemplateAlias' :: Text
awsAccountId = Text
a} :: DeleteTemplateAlias)
deleteTemplateAlias_templateId :: Lens.Lens' DeleteTemplateAlias Prelude.Text
deleteTemplateAlias_templateId :: (Text -> f Text) -> DeleteTemplateAlias -> f DeleteTemplateAlias
deleteTemplateAlias_templateId = (DeleteTemplateAlias -> Text)
-> (DeleteTemplateAlias -> Text -> DeleteTemplateAlias)
-> Lens DeleteTemplateAlias DeleteTemplateAlias Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteTemplateAlias' {Text
templateId :: Text
$sel:templateId:DeleteTemplateAlias' :: DeleteTemplateAlias -> Text
templateId} -> Text
templateId) (\s :: DeleteTemplateAlias
s@DeleteTemplateAlias' {} Text
a -> DeleteTemplateAlias
s {$sel:templateId:DeleteTemplateAlias' :: Text
templateId = Text
a} :: DeleteTemplateAlias)
deleteTemplateAlias_aliasName :: Lens.Lens' DeleteTemplateAlias Prelude.Text
deleteTemplateAlias_aliasName :: (Text -> f Text) -> DeleteTemplateAlias -> f DeleteTemplateAlias
deleteTemplateAlias_aliasName = (DeleteTemplateAlias -> Text)
-> (DeleteTemplateAlias -> Text -> DeleteTemplateAlias)
-> Lens DeleteTemplateAlias DeleteTemplateAlias Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteTemplateAlias' {Text
aliasName :: Text
$sel:aliasName:DeleteTemplateAlias' :: DeleteTemplateAlias -> Text
aliasName} -> Text
aliasName) (\s :: DeleteTemplateAlias
s@DeleteTemplateAlias' {} Text
a -> DeleteTemplateAlias
s {$sel:aliasName:DeleteTemplateAlias' :: Text
aliasName = Text
a} :: DeleteTemplateAlias)
instance Core.AWSRequest DeleteTemplateAlias where
type
AWSResponse DeleteTemplateAlias =
DeleteTemplateAliasResponse
request :: DeleteTemplateAlias -> Request DeleteTemplateAlias
request = Service -> DeleteTemplateAlias -> Request DeleteTemplateAlias
forall a. ToRequest a => Service -> a -> Request a
Request.delete Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteTemplateAlias
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteTemplateAlias)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DeleteTemplateAlias))
-> Logger
-> Service
-> Proxy DeleteTemplateAlias
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteTemplateAlias)))
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 Text
-> Int
-> DeleteTemplateAliasResponse
DeleteTemplateAliasResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteTemplateAliasResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DeleteTemplateAliasResponse)
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 Text -> Int -> DeleteTemplateAliasResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> DeleteTemplateAliasResponse)
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
"Arn")
Either
String
(Maybe Text -> Maybe Text -> Int -> DeleteTemplateAliasResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> DeleteTemplateAliasResponse)
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 -> Int -> DeleteTemplateAliasResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DeleteTemplateAliasResponse)
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
"AliasName")
Either String (Int -> DeleteTemplateAliasResponse)
-> Either String Int -> Either String DeleteTemplateAliasResponse
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 DeleteTemplateAlias
instance Prelude.NFData DeleteTemplateAlias
instance Core.ToHeaders DeleteTemplateAlias where
toHeaders :: DeleteTemplateAlias -> ResponseHeaders
toHeaders =
ResponseHeaders -> DeleteTemplateAlias -> 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 DeleteTemplateAlias where
toPath :: DeleteTemplateAlias -> ByteString
toPath DeleteTemplateAlias' {Text
aliasName :: Text
templateId :: Text
awsAccountId :: Text
$sel:aliasName:DeleteTemplateAlias' :: DeleteTemplateAlias -> Text
$sel:templateId:DeleteTemplateAlias' :: DeleteTemplateAlias -> Text
$sel:awsAccountId:DeleteTemplateAlias' :: DeleteTemplateAlias -> 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
"/aliases/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
aliasName
]
instance Core.ToQuery DeleteTemplateAlias where
toQuery :: DeleteTemplateAlias -> QueryString
toQuery = QueryString -> DeleteTemplateAlias -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteTemplateAliasResponse = DeleteTemplateAliasResponse'
{
DeleteTemplateAliasResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
DeleteTemplateAliasResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DeleteTemplateAliasResponse -> Maybe Text
templateId :: Prelude.Maybe Prelude.Text,
DeleteTemplateAliasResponse -> Maybe Text
aliasName :: Prelude.Maybe Prelude.Text,
DeleteTemplateAliasResponse -> Int
status :: Prelude.Int
}
deriving (DeleteTemplateAliasResponse -> DeleteTemplateAliasResponse -> Bool
(DeleteTemplateAliasResponse
-> DeleteTemplateAliasResponse -> Bool)
-> (DeleteTemplateAliasResponse
-> DeleteTemplateAliasResponse -> Bool)
-> Eq DeleteTemplateAliasResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteTemplateAliasResponse -> DeleteTemplateAliasResponse -> Bool
$c/= :: DeleteTemplateAliasResponse -> DeleteTemplateAliasResponse -> Bool
== :: DeleteTemplateAliasResponse -> DeleteTemplateAliasResponse -> Bool
$c== :: DeleteTemplateAliasResponse -> DeleteTemplateAliasResponse -> Bool
Prelude.Eq, ReadPrec [DeleteTemplateAliasResponse]
ReadPrec DeleteTemplateAliasResponse
Int -> ReadS DeleteTemplateAliasResponse
ReadS [DeleteTemplateAliasResponse]
(Int -> ReadS DeleteTemplateAliasResponse)
-> ReadS [DeleteTemplateAliasResponse]
-> ReadPrec DeleteTemplateAliasResponse
-> ReadPrec [DeleteTemplateAliasResponse]
-> Read DeleteTemplateAliasResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteTemplateAliasResponse]
$creadListPrec :: ReadPrec [DeleteTemplateAliasResponse]
readPrec :: ReadPrec DeleteTemplateAliasResponse
$creadPrec :: ReadPrec DeleteTemplateAliasResponse
readList :: ReadS [DeleteTemplateAliasResponse]
$creadList :: ReadS [DeleteTemplateAliasResponse]
readsPrec :: Int -> ReadS DeleteTemplateAliasResponse
$creadsPrec :: Int -> ReadS DeleteTemplateAliasResponse
Prelude.Read, Int -> DeleteTemplateAliasResponse -> ShowS
[DeleteTemplateAliasResponse] -> ShowS
DeleteTemplateAliasResponse -> String
(Int -> DeleteTemplateAliasResponse -> ShowS)
-> (DeleteTemplateAliasResponse -> String)
-> ([DeleteTemplateAliasResponse] -> ShowS)
-> Show DeleteTemplateAliasResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteTemplateAliasResponse] -> ShowS
$cshowList :: [DeleteTemplateAliasResponse] -> ShowS
show :: DeleteTemplateAliasResponse -> String
$cshow :: DeleteTemplateAliasResponse -> String
showsPrec :: Int -> DeleteTemplateAliasResponse -> ShowS
$cshowsPrec :: Int -> DeleteTemplateAliasResponse -> ShowS
Prelude.Show, (forall x.
DeleteTemplateAliasResponse -> Rep DeleteTemplateAliasResponse x)
-> (forall x.
Rep DeleteTemplateAliasResponse x -> DeleteTemplateAliasResponse)
-> Generic DeleteTemplateAliasResponse
forall x.
Rep DeleteTemplateAliasResponse x -> DeleteTemplateAliasResponse
forall x.
DeleteTemplateAliasResponse -> Rep DeleteTemplateAliasResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteTemplateAliasResponse x -> DeleteTemplateAliasResponse
$cfrom :: forall x.
DeleteTemplateAliasResponse -> Rep DeleteTemplateAliasResponse x
Prelude.Generic)
newDeleteTemplateAliasResponse ::
Prelude.Int ->
DeleteTemplateAliasResponse
newDeleteTemplateAliasResponse :: Int -> DeleteTemplateAliasResponse
newDeleteTemplateAliasResponse Int
pStatus_ =
DeleteTemplateAliasResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DeleteTemplateAliasResponse
DeleteTemplateAliasResponse'
{ $sel:requestId:DeleteTemplateAliasResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DeleteTemplateAliasResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateId:DeleteTemplateAliasResponse' :: Maybe Text
templateId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:aliasName:DeleteTemplateAliasResponse' :: Maybe Text
aliasName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:DeleteTemplateAliasResponse' :: Int
status = Int
pStatus_
}
deleteTemplateAliasResponse_requestId :: Lens.Lens' DeleteTemplateAliasResponse (Prelude.Maybe Prelude.Text)
deleteTemplateAliasResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> DeleteTemplateAliasResponse -> f DeleteTemplateAliasResponse
deleteTemplateAliasResponse_requestId = (DeleteTemplateAliasResponse -> Maybe Text)
-> (DeleteTemplateAliasResponse
-> Maybe Text -> DeleteTemplateAliasResponse)
-> Lens
DeleteTemplateAliasResponse
DeleteTemplateAliasResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteTemplateAliasResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:DeleteTemplateAliasResponse' :: DeleteTemplateAliasResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: DeleteTemplateAliasResponse
s@DeleteTemplateAliasResponse' {} Maybe Text
a -> DeleteTemplateAliasResponse
s {$sel:requestId:DeleteTemplateAliasResponse' :: Maybe Text
requestId = Maybe Text
a} :: DeleteTemplateAliasResponse)
deleteTemplateAliasResponse_arn :: Lens.Lens' DeleteTemplateAliasResponse (Prelude.Maybe Prelude.Text)
deleteTemplateAliasResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DeleteTemplateAliasResponse -> f DeleteTemplateAliasResponse
deleteTemplateAliasResponse_arn = (DeleteTemplateAliasResponse -> Maybe Text)
-> (DeleteTemplateAliasResponse
-> Maybe Text -> DeleteTemplateAliasResponse)
-> Lens
DeleteTemplateAliasResponse
DeleteTemplateAliasResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteTemplateAliasResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DeleteTemplateAliasResponse' :: DeleteTemplateAliasResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DeleteTemplateAliasResponse
s@DeleteTemplateAliasResponse' {} Maybe Text
a -> DeleteTemplateAliasResponse
s {$sel:arn:DeleteTemplateAliasResponse' :: Maybe Text
arn = Maybe Text
a} :: DeleteTemplateAliasResponse)
deleteTemplateAliasResponse_templateId :: Lens.Lens' DeleteTemplateAliasResponse (Prelude.Maybe Prelude.Text)
deleteTemplateAliasResponse_templateId :: (Maybe Text -> f (Maybe Text))
-> DeleteTemplateAliasResponse -> f DeleteTemplateAliasResponse
deleteTemplateAliasResponse_templateId = (DeleteTemplateAliasResponse -> Maybe Text)
-> (DeleteTemplateAliasResponse
-> Maybe Text -> DeleteTemplateAliasResponse)
-> Lens
DeleteTemplateAliasResponse
DeleteTemplateAliasResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteTemplateAliasResponse' {Maybe Text
templateId :: Maybe Text
$sel:templateId:DeleteTemplateAliasResponse' :: DeleteTemplateAliasResponse -> Maybe Text
templateId} -> Maybe Text
templateId) (\s :: DeleteTemplateAliasResponse
s@DeleteTemplateAliasResponse' {} Maybe Text
a -> DeleteTemplateAliasResponse
s {$sel:templateId:DeleteTemplateAliasResponse' :: Maybe Text
templateId = Maybe Text
a} :: DeleteTemplateAliasResponse)
deleteTemplateAliasResponse_aliasName :: Lens.Lens' DeleteTemplateAliasResponse (Prelude.Maybe Prelude.Text)
deleteTemplateAliasResponse_aliasName :: (Maybe Text -> f (Maybe Text))
-> DeleteTemplateAliasResponse -> f DeleteTemplateAliasResponse
deleteTemplateAliasResponse_aliasName = (DeleteTemplateAliasResponse -> Maybe Text)
-> (DeleteTemplateAliasResponse
-> Maybe Text -> DeleteTemplateAliasResponse)
-> Lens
DeleteTemplateAliasResponse
DeleteTemplateAliasResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteTemplateAliasResponse' {Maybe Text
aliasName :: Maybe Text
$sel:aliasName:DeleteTemplateAliasResponse' :: DeleteTemplateAliasResponse -> Maybe Text
aliasName} -> Maybe Text
aliasName) (\s :: DeleteTemplateAliasResponse
s@DeleteTemplateAliasResponse' {} Maybe Text
a -> DeleteTemplateAliasResponse
s {$sel:aliasName:DeleteTemplateAliasResponse' :: Maybe Text
aliasName = Maybe Text
a} :: DeleteTemplateAliasResponse)
deleteTemplateAliasResponse_status :: Lens.Lens' DeleteTemplateAliasResponse Prelude.Int
deleteTemplateAliasResponse_status :: (Int -> f Int)
-> DeleteTemplateAliasResponse -> f DeleteTemplateAliasResponse
deleteTemplateAliasResponse_status = (DeleteTemplateAliasResponse -> Int)
-> (DeleteTemplateAliasResponse
-> Int -> DeleteTemplateAliasResponse)
-> Lens
DeleteTemplateAliasResponse DeleteTemplateAliasResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteTemplateAliasResponse' {Int
status :: Int
$sel:status:DeleteTemplateAliasResponse' :: DeleteTemplateAliasResponse -> Int
status} -> Int
status) (\s :: DeleteTemplateAliasResponse
s@DeleteTemplateAliasResponse' {} Int
a -> DeleteTemplateAliasResponse
s {$sel:status:DeleteTemplateAliasResponse' :: Int
status = Int
a} :: DeleteTemplateAliasResponse)
instance Prelude.NFData DeleteTemplateAliasResponse