{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SES.UpdateCustomVerificationEmailTemplate
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Updates an existing custom verification email template.
--
-- For more information about custom verification email templates, see
-- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html Using Custom Verification Email Templates>
-- in the /Amazon SES Developer Guide/.
--
-- You can execute this operation no more than once per second.
module Amazonka.SES.UpdateCustomVerificationEmailTemplate
  ( -- * Creating a Request
    UpdateCustomVerificationEmailTemplate (..),
    newUpdateCustomVerificationEmailTemplate,

    -- * Request Lenses
    updateCustomVerificationEmailTemplate_failureRedirectionURL,
    updateCustomVerificationEmailTemplate_fromEmailAddress,
    updateCustomVerificationEmailTemplate_successRedirectionURL,
    updateCustomVerificationEmailTemplate_templateContent,
    updateCustomVerificationEmailTemplate_templateSubject,
    updateCustomVerificationEmailTemplate_templateName,

    -- * Destructuring the Response
    UpdateCustomVerificationEmailTemplateResponse (..),
    newUpdateCustomVerificationEmailTemplateResponse,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SES.Types

-- | Represents a request to update an existing custom verification email
-- template.
--
-- /See:/ 'newUpdateCustomVerificationEmailTemplate' smart constructor.
data UpdateCustomVerificationEmailTemplate = UpdateCustomVerificationEmailTemplate'
  { -- | The URL that the recipient of the verification email is sent to if his
    -- or her address is not successfully verified.
    UpdateCustomVerificationEmailTemplate -> Maybe Text
failureRedirectionURL :: Prelude.Maybe Prelude.Text,
    -- | The email address that the custom verification email is sent from.
    UpdateCustomVerificationEmailTemplate -> Maybe Text
fromEmailAddress :: Prelude.Maybe Prelude.Text,
    -- | The URL that the recipient of the verification email is sent to if his
    -- or her address is successfully verified.
    UpdateCustomVerificationEmailTemplate -> Maybe Text
successRedirectionURL :: Prelude.Maybe Prelude.Text,
    -- | The content of the custom verification email. The total size of the
    -- email must be less than 10 MB. The message body may contain HTML, with
    -- some limitations. For more information, see
    -- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html#custom-verification-emails-faq Custom Verification Email Frequently Asked Questions>
    -- in the /Amazon SES Developer Guide/.
    UpdateCustomVerificationEmailTemplate -> Maybe Text
templateContent :: Prelude.Maybe Prelude.Text,
    -- | The subject line of the custom verification email.
    UpdateCustomVerificationEmailTemplate -> Maybe Text
templateSubject :: Prelude.Maybe Prelude.Text,
    -- | The name of the custom verification email template that you want to
    -- update.
    UpdateCustomVerificationEmailTemplate -> Text
templateName :: Prelude.Text
  }
  deriving (UpdateCustomVerificationEmailTemplate
-> UpdateCustomVerificationEmailTemplate -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCustomVerificationEmailTemplate
-> UpdateCustomVerificationEmailTemplate -> Bool
$c/= :: UpdateCustomVerificationEmailTemplate
-> UpdateCustomVerificationEmailTemplate -> Bool
== :: UpdateCustomVerificationEmailTemplate
-> UpdateCustomVerificationEmailTemplate -> Bool
$c== :: UpdateCustomVerificationEmailTemplate
-> UpdateCustomVerificationEmailTemplate -> Bool
Prelude.Eq, ReadPrec [UpdateCustomVerificationEmailTemplate]
ReadPrec UpdateCustomVerificationEmailTemplate
Int -> ReadS UpdateCustomVerificationEmailTemplate
ReadS [UpdateCustomVerificationEmailTemplate]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCustomVerificationEmailTemplate]
$creadListPrec :: ReadPrec [UpdateCustomVerificationEmailTemplate]
readPrec :: ReadPrec UpdateCustomVerificationEmailTemplate
$creadPrec :: ReadPrec UpdateCustomVerificationEmailTemplate
readList :: ReadS [UpdateCustomVerificationEmailTemplate]
$creadList :: ReadS [UpdateCustomVerificationEmailTemplate]
readsPrec :: Int -> ReadS UpdateCustomVerificationEmailTemplate
$creadsPrec :: Int -> ReadS UpdateCustomVerificationEmailTemplate
Prelude.Read, Int -> UpdateCustomVerificationEmailTemplate -> ShowS
[UpdateCustomVerificationEmailTemplate] -> ShowS
UpdateCustomVerificationEmailTemplate -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCustomVerificationEmailTemplate] -> ShowS
$cshowList :: [UpdateCustomVerificationEmailTemplate] -> ShowS
show :: UpdateCustomVerificationEmailTemplate -> String
$cshow :: UpdateCustomVerificationEmailTemplate -> String
showsPrec :: Int -> UpdateCustomVerificationEmailTemplate -> ShowS
$cshowsPrec :: Int -> UpdateCustomVerificationEmailTemplate -> ShowS
Prelude.Show, forall x.
Rep UpdateCustomVerificationEmailTemplate x
-> UpdateCustomVerificationEmailTemplate
forall x.
UpdateCustomVerificationEmailTemplate
-> Rep UpdateCustomVerificationEmailTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCustomVerificationEmailTemplate x
-> UpdateCustomVerificationEmailTemplate
$cfrom :: forall x.
UpdateCustomVerificationEmailTemplate
-> Rep UpdateCustomVerificationEmailTemplate x
Prelude.Generic)

-- |
-- Create a value of 'UpdateCustomVerificationEmailTemplate' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'failureRedirectionURL', 'updateCustomVerificationEmailTemplate_failureRedirectionURL' - The URL that the recipient of the verification email is sent to if his
-- or her address is not successfully verified.
--
-- 'fromEmailAddress', 'updateCustomVerificationEmailTemplate_fromEmailAddress' - The email address that the custom verification email is sent from.
--
-- 'successRedirectionURL', 'updateCustomVerificationEmailTemplate_successRedirectionURL' - The URL that the recipient of the verification email is sent to if his
-- or her address is successfully verified.
--
-- 'templateContent', 'updateCustomVerificationEmailTemplate_templateContent' - The content of the custom verification email. The total size of the
-- email must be less than 10 MB. The message body may contain HTML, with
-- some limitations. For more information, see
-- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html#custom-verification-emails-faq Custom Verification Email Frequently Asked Questions>
-- in the /Amazon SES Developer Guide/.
--
-- 'templateSubject', 'updateCustomVerificationEmailTemplate_templateSubject' - The subject line of the custom verification email.
--
-- 'templateName', 'updateCustomVerificationEmailTemplate_templateName' - The name of the custom verification email template that you want to
-- update.
newUpdateCustomVerificationEmailTemplate ::
  -- | 'templateName'
  Prelude.Text ->
  UpdateCustomVerificationEmailTemplate
newUpdateCustomVerificationEmailTemplate :: Text -> UpdateCustomVerificationEmailTemplate
newUpdateCustomVerificationEmailTemplate
  Text
pTemplateName_ =
    UpdateCustomVerificationEmailTemplate'
      { $sel:failureRedirectionURL:UpdateCustomVerificationEmailTemplate' :: Maybe Text
failureRedirectionURL =
          forall a. Maybe a
Prelude.Nothing,
        $sel:fromEmailAddress:UpdateCustomVerificationEmailTemplate' :: Maybe Text
fromEmailAddress = forall a. Maybe a
Prelude.Nothing,
        $sel:successRedirectionURL:UpdateCustomVerificationEmailTemplate' :: Maybe Text
successRedirectionURL =
          forall a. Maybe a
Prelude.Nothing,
        $sel:templateContent:UpdateCustomVerificationEmailTemplate' :: Maybe Text
templateContent = forall a. Maybe a
Prelude.Nothing,
        $sel:templateSubject:UpdateCustomVerificationEmailTemplate' :: Maybe Text
templateSubject = forall a. Maybe a
Prelude.Nothing,
        $sel:templateName:UpdateCustomVerificationEmailTemplate' :: Text
templateName = Text
pTemplateName_
      }

-- | The URL that the recipient of the verification email is sent to if his
-- or her address is not successfully verified.
updateCustomVerificationEmailTemplate_failureRedirectionURL :: Lens.Lens' UpdateCustomVerificationEmailTemplate (Prelude.Maybe Prelude.Text)
updateCustomVerificationEmailTemplate_failureRedirectionURL :: Lens' UpdateCustomVerificationEmailTemplate (Maybe Text)
updateCustomVerificationEmailTemplate_failureRedirectionURL = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomVerificationEmailTemplate' {Maybe Text
failureRedirectionURL :: Maybe Text
$sel:failureRedirectionURL:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
failureRedirectionURL} -> Maybe Text
failureRedirectionURL) (\s :: UpdateCustomVerificationEmailTemplate
s@UpdateCustomVerificationEmailTemplate' {} Maybe Text
a -> UpdateCustomVerificationEmailTemplate
s {$sel:failureRedirectionURL:UpdateCustomVerificationEmailTemplate' :: Maybe Text
failureRedirectionURL = Maybe Text
a} :: UpdateCustomVerificationEmailTemplate)

-- | The email address that the custom verification email is sent from.
updateCustomVerificationEmailTemplate_fromEmailAddress :: Lens.Lens' UpdateCustomVerificationEmailTemplate (Prelude.Maybe Prelude.Text)
updateCustomVerificationEmailTemplate_fromEmailAddress :: Lens' UpdateCustomVerificationEmailTemplate (Maybe Text)
updateCustomVerificationEmailTemplate_fromEmailAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomVerificationEmailTemplate' {Maybe Text
fromEmailAddress :: Maybe Text
$sel:fromEmailAddress:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
fromEmailAddress} -> Maybe Text
fromEmailAddress) (\s :: UpdateCustomVerificationEmailTemplate
s@UpdateCustomVerificationEmailTemplate' {} Maybe Text
a -> UpdateCustomVerificationEmailTemplate
s {$sel:fromEmailAddress:UpdateCustomVerificationEmailTemplate' :: Maybe Text
fromEmailAddress = Maybe Text
a} :: UpdateCustomVerificationEmailTemplate)

-- | The URL that the recipient of the verification email is sent to if his
-- or her address is successfully verified.
updateCustomVerificationEmailTemplate_successRedirectionURL :: Lens.Lens' UpdateCustomVerificationEmailTemplate (Prelude.Maybe Prelude.Text)
updateCustomVerificationEmailTemplate_successRedirectionURL :: Lens' UpdateCustomVerificationEmailTemplate (Maybe Text)
updateCustomVerificationEmailTemplate_successRedirectionURL = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomVerificationEmailTemplate' {Maybe Text
successRedirectionURL :: Maybe Text
$sel:successRedirectionURL:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
successRedirectionURL} -> Maybe Text
successRedirectionURL) (\s :: UpdateCustomVerificationEmailTemplate
s@UpdateCustomVerificationEmailTemplate' {} Maybe Text
a -> UpdateCustomVerificationEmailTemplate
s {$sel:successRedirectionURL:UpdateCustomVerificationEmailTemplate' :: Maybe Text
successRedirectionURL = Maybe Text
a} :: UpdateCustomVerificationEmailTemplate)

-- | The content of the custom verification email. The total size of the
-- email must be less than 10 MB. The message body may contain HTML, with
-- some limitations. For more information, see
-- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/custom-verification-emails.html#custom-verification-emails-faq Custom Verification Email Frequently Asked Questions>
-- in the /Amazon SES Developer Guide/.
updateCustomVerificationEmailTemplate_templateContent :: Lens.Lens' UpdateCustomVerificationEmailTemplate (Prelude.Maybe Prelude.Text)
updateCustomVerificationEmailTemplate_templateContent :: Lens' UpdateCustomVerificationEmailTemplate (Maybe Text)
updateCustomVerificationEmailTemplate_templateContent = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomVerificationEmailTemplate' {Maybe Text
templateContent :: Maybe Text
$sel:templateContent:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
templateContent} -> Maybe Text
templateContent) (\s :: UpdateCustomVerificationEmailTemplate
s@UpdateCustomVerificationEmailTemplate' {} Maybe Text
a -> UpdateCustomVerificationEmailTemplate
s {$sel:templateContent:UpdateCustomVerificationEmailTemplate' :: Maybe Text
templateContent = Maybe Text
a} :: UpdateCustomVerificationEmailTemplate)

-- | The subject line of the custom verification email.
updateCustomVerificationEmailTemplate_templateSubject :: Lens.Lens' UpdateCustomVerificationEmailTemplate (Prelude.Maybe Prelude.Text)
updateCustomVerificationEmailTemplate_templateSubject :: Lens' UpdateCustomVerificationEmailTemplate (Maybe Text)
updateCustomVerificationEmailTemplate_templateSubject = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomVerificationEmailTemplate' {Maybe Text
templateSubject :: Maybe Text
$sel:templateSubject:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
templateSubject} -> Maybe Text
templateSubject) (\s :: UpdateCustomVerificationEmailTemplate
s@UpdateCustomVerificationEmailTemplate' {} Maybe Text
a -> UpdateCustomVerificationEmailTemplate
s {$sel:templateSubject:UpdateCustomVerificationEmailTemplate' :: Maybe Text
templateSubject = Maybe Text
a} :: UpdateCustomVerificationEmailTemplate)

-- | The name of the custom verification email template that you want to
-- update.
updateCustomVerificationEmailTemplate_templateName :: Lens.Lens' UpdateCustomVerificationEmailTemplate Prelude.Text
updateCustomVerificationEmailTemplate_templateName :: Lens' UpdateCustomVerificationEmailTemplate Text
updateCustomVerificationEmailTemplate_templateName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCustomVerificationEmailTemplate' {Text
templateName :: Text
$sel:templateName:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Text
templateName} -> Text
templateName) (\s :: UpdateCustomVerificationEmailTemplate
s@UpdateCustomVerificationEmailTemplate' {} Text
a -> UpdateCustomVerificationEmailTemplate
s {$sel:templateName:UpdateCustomVerificationEmailTemplate' :: Text
templateName = Text
a} :: UpdateCustomVerificationEmailTemplate)

instance
  Core.AWSRequest
    UpdateCustomVerificationEmailTemplate
  where
  type
    AWSResponse
      UpdateCustomVerificationEmailTemplate =
      UpdateCustomVerificationEmailTemplateResponse
  request :: (Service -> Service)
-> UpdateCustomVerificationEmailTemplate
-> Request UpdateCustomVerificationEmailTemplate
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateCustomVerificationEmailTemplate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse UpdateCustomVerificationEmailTemplate)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
      UpdateCustomVerificationEmailTemplateResponse
UpdateCustomVerificationEmailTemplateResponse'

instance
  Prelude.Hashable
    UpdateCustomVerificationEmailTemplate
  where
  hashWithSalt :: Int -> UpdateCustomVerificationEmailTemplate -> Int
hashWithSalt
    Int
_salt
    UpdateCustomVerificationEmailTemplate' {Maybe Text
Text
templateName :: Text
templateSubject :: Maybe Text
templateContent :: Maybe Text
successRedirectionURL :: Maybe Text
fromEmailAddress :: Maybe Text
failureRedirectionURL :: Maybe Text
$sel:templateName:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Text
$sel:templateSubject:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:templateContent:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:successRedirectionURL:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:fromEmailAddress:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:failureRedirectionURL:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureRedirectionURL
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fromEmailAddress
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
successRedirectionURL
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
templateContent
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
templateSubject
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
templateName

instance
  Prelude.NFData
    UpdateCustomVerificationEmailTemplate
  where
  rnf :: UpdateCustomVerificationEmailTemplate -> ()
rnf UpdateCustomVerificationEmailTemplate' {Maybe Text
Text
templateName :: Text
templateSubject :: Maybe Text
templateContent :: Maybe Text
successRedirectionURL :: Maybe Text
fromEmailAddress :: Maybe Text
failureRedirectionURL :: Maybe Text
$sel:templateName:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Text
$sel:templateSubject:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:templateContent:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:successRedirectionURL:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:fromEmailAddress:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:failureRedirectionURL:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureRedirectionURL
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fromEmailAddress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
successRedirectionURL
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
templateContent
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
templateSubject
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
templateName

instance
  Data.ToHeaders
    UpdateCustomVerificationEmailTemplate
  where
  toHeaders :: UpdateCustomVerificationEmailTemplate -> [Header]
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

instance
  Data.ToPath
    UpdateCustomVerificationEmailTemplate
  where
  toPath :: UpdateCustomVerificationEmailTemplate -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Data.ToQuery
    UpdateCustomVerificationEmailTemplate
  where
  toQuery :: UpdateCustomVerificationEmailTemplate -> QueryString
toQuery UpdateCustomVerificationEmailTemplate' {Maybe Text
Text
templateName :: Text
templateSubject :: Maybe Text
templateContent :: Maybe Text
successRedirectionURL :: Maybe Text
fromEmailAddress :: Maybe Text
failureRedirectionURL :: Maybe Text
$sel:templateName:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Text
$sel:templateSubject:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:templateContent:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:successRedirectionURL:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:fromEmailAddress:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
$sel:failureRedirectionURL:UpdateCustomVerificationEmailTemplate' :: UpdateCustomVerificationEmailTemplate -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: ( ByteString
"UpdateCustomVerificationEmailTemplate" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
        ByteString
"FailureRedirectionURL"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
failureRedirectionURL,
        ByteString
"FromEmailAddress" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
fromEmailAddress,
        ByteString
"SuccessRedirectionURL"
          forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
successRedirectionURL,
        ByteString
"TemplateContent" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
templateContent,
        ByteString
"TemplateSubject" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
templateSubject,
        ByteString
"TemplateName" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
templateName
      ]

-- | /See:/ 'newUpdateCustomVerificationEmailTemplateResponse' smart constructor.
data UpdateCustomVerificationEmailTemplateResponse = UpdateCustomVerificationEmailTemplateResponse'
  {
  }
  deriving (UpdateCustomVerificationEmailTemplateResponse
-> UpdateCustomVerificationEmailTemplateResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCustomVerificationEmailTemplateResponse
-> UpdateCustomVerificationEmailTemplateResponse -> Bool
$c/= :: UpdateCustomVerificationEmailTemplateResponse
-> UpdateCustomVerificationEmailTemplateResponse -> Bool
== :: UpdateCustomVerificationEmailTemplateResponse
-> UpdateCustomVerificationEmailTemplateResponse -> Bool
$c== :: UpdateCustomVerificationEmailTemplateResponse
-> UpdateCustomVerificationEmailTemplateResponse -> Bool
Prelude.Eq, ReadPrec [UpdateCustomVerificationEmailTemplateResponse]
ReadPrec UpdateCustomVerificationEmailTemplateResponse
Int -> ReadS UpdateCustomVerificationEmailTemplateResponse
ReadS [UpdateCustomVerificationEmailTemplateResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCustomVerificationEmailTemplateResponse]
$creadListPrec :: ReadPrec [UpdateCustomVerificationEmailTemplateResponse]
readPrec :: ReadPrec UpdateCustomVerificationEmailTemplateResponse
$creadPrec :: ReadPrec UpdateCustomVerificationEmailTemplateResponse
readList :: ReadS [UpdateCustomVerificationEmailTemplateResponse]
$creadList :: ReadS [UpdateCustomVerificationEmailTemplateResponse]
readsPrec :: Int -> ReadS UpdateCustomVerificationEmailTemplateResponse
$creadsPrec :: Int -> ReadS UpdateCustomVerificationEmailTemplateResponse
Prelude.Read, Int -> UpdateCustomVerificationEmailTemplateResponse -> ShowS
[UpdateCustomVerificationEmailTemplateResponse] -> ShowS
UpdateCustomVerificationEmailTemplateResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCustomVerificationEmailTemplateResponse] -> ShowS
$cshowList :: [UpdateCustomVerificationEmailTemplateResponse] -> ShowS
show :: UpdateCustomVerificationEmailTemplateResponse -> String
$cshow :: UpdateCustomVerificationEmailTemplateResponse -> String
showsPrec :: Int -> UpdateCustomVerificationEmailTemplateResponse -> ShowS
$cshowsPrec :: Int -> UpdateCustomVerificationEmailTemplateResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateCustomVerificationEmailTemplateResponse x
-> UpdateCustomVerificationEmailTemplateResponse
forall x.
UpdateCustomVerificationEmailTemplateResponse
-> Rep UpdateCustomVerificationEmailTemplateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCustomVerificationEmailTemplateResponse x
-> UpdateCustomVerificationEmailTemplateResponse
$cfrom :: forall x.
UpdateCustomVerificationEmailTemplateResponse
-> Rep UpdateCustomVerificationEmailTemplateResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateCustomVerificationEmailTemplateResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
newUpdateCustomVerificationEmailTemplateResponse ::
  UpdateCustomVerificationEmailTemplateResponse
newUpdateCustomVerificationEmailTemplateResponse :: UpdateCustomVerificationEmailTemplateResponse
newUpdateCustomVerificationEmailTemplateResponse =
  UpdateCustomVerificationEmailTemplateResponse
UpdateCustomVerificationEmailTemplateResponse'

instance
  Prelude.NFData
    UpdateCustomVerificationEmailTemplateResponse
  where
  rnf :: UpdateCustomVerificationEmailTemplateResponse -> ()
rnf UpdateCustomVerificationEmailTemplateResponse
_ = ()