{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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_fromEmailAddress,
    updateCustomVerificationEmailTemplate_failureRedirectionURL,
    updateCustomVerificationEmailTemplate_templateSubject,
    updateCustomVerificationEmailTemplate_successRedirectionURL,
    updateCustomVerificationEmailTemplate_templateContent,
    updateCustomVerificationEmailTemplate_templateName,

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

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
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 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 not successfully verified.
    UpdateCustomVerificationEmailTemplate -> Maybe Text
failureRedirectionURL :: Prelude.Maybe Prelude.Text,
    -- | The subject line of the custom verification email.
    UpdateCustomVerificationEmailTemplate -> Maybe Text
templateSubject :: 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 name of the custom verification email template that you want to
    -- update.
    UpdateCustomVerificationEmailTemplate -> Text
templateName :: Prelude.Text
  }
  deriving (UpdateCustomVerificationEmailTemplate
-> UpdateCustomVerificationEmailTemplate -> Bool
(UpdateCustomVerificationEmailTemplate
 -> UpdateCustomVerificationEmailTemplate -> Bool)
-> (UpdateCustomVerificationEmailTemplate
    -> UpdateCustomVerificationEmailTemplate -> Bool)
-> Eq UpdateCustomVerificationEmailTemplate
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]
(Int -> ReadS UpdateCustomVerificationEmailTemplate)
-> ReadS [UpdateCustomVerificationEmailTemplate]
-> ReadPrec UpdateCustomVerificationEmailTemplate
-> ReadPrec [UpdateCustomVerificationEmailTemplate]
-> Read 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
(Int -> UpdateCustomVerificationEmailTemplate -> ShowS)
-> (UpdateCustomVerificationEmailTemplate -> String)
-> ([UpdateCustomVerificationEmailTemplate] -> ShowS)
-> Show UpdateCustomVerificationEmailTemplate
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.
 UpdateCustomVerificationEmailTemplate
 -> Rep UpdateCustomVerificationEmailTemplate x)
-> (forall x.
    Rep UpdateCustomVerificationEmailTemplate x
    -> UpdateCustomVerificationEmailTemplate)
-> Generic UpdateCustomVerificationEmailTemplate
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:
--
-- 'fromEmailAddress', 'updateCustomVerificationEmailTemplate_fromEmailAddress' - The email address that the custom verification email is sent from.
--
-- 'failureRedirectionURL', 'updateCustomVerificationEmailTemplate_failureRedirectionURL' - The URL that the recipient of the verification email is sent to if his
-- or her address is not successfully verified.
--
-- 'templateSubject', 'updateCustomVerificationEmailTemplate_templateSubject' - The subject line of the custom verification email.
--
-- '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/.
--
-- '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' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> UpdateCustomVerificationEmailTemplate
UpdateCustomVerificationEmailTemplate'
      { $sel:fromEmailAddress:UpdateCustomVerificationEmailTemplate' :: Maybe Text
fromEmailAddress =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:failureRedirectionURL:UpdateCustomVerificationEmailTemplate' :: Maybe Text
failureRedirectionURL =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:templateSubject:UpdateCustomVerificationEmailTemplate' :: Maybe Text
templateSubject = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:successRedirectionURL:UpdateCustomVerificationEmailTemplate' :: Maybe Text
successRedirectionURL =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:templateContent:UpdateCustomVerificationEmailTemplate' :: Maybe Text
templateContent = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:templateName:UpdateCustomVerificationEmailTemplate' :: Text
templateName = Text
pTemplateName_
      }

-- | The email address that the custom verification email is sent from.
updateCustomVerificationEmailTemplate_fromEmailAddress :: Lens.Lens' UpdateCustomVerificationEmailTemplate (Prelude.Maybe Prelude.Text)
updateCustomVerificationEmailTemplate_fromEmailAddress :: (Maybe Text -> f (Maybe Text))
-> UpdateCustomVerificationEmailTemplate
-> f UpdateCustomVerificationEmailTemplate
updateCustomVerificationEmailTemplate_fromEmailAddress = (UpdateCustomVerificationEmailTemplate -> Maybe Text)
-> (UpdateCustomVerificationEmailTemplate
    -> Maybe Text -> UpdateCustomVerificationEmailTemplate)
-> Lens
     UpdateCustomVerificationEmailTemplate
     UpdateCustomVerificationEmailTemplate
     (Maybe Text)
     (Maybe Text)
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 not successfully verified.
updateCustomVerificationEmailTemplate_failureRedirectionURL :: Lens.Lens' UpdateCustomVerificationEmailTemplate (Prelude.Maybe Prelude.Text)
updateCustomVerificationEmailTemplate_failureRedirectionURL :: (Maybe Text -> f (Maybe Text))
-> UpdateCustomVerificationEmailTemplate
-> f UpdateCustomVerificationEmailTemplate
updateCustomVerificationEmailTemplate_failureRedirectionURL = (UpdateCustomVerificationEmailTemplate -> Maybe Text)
-> (UpdateCustomVerificationEmailTemplate
    -> Maybe Text -> UpdateCustomVerificationEmailTemplate)
-> Lens
     UpdateCustomVerificationEmailTemplate
     UpdateCustomVerificationEmailTemplate
     (Maybe Text)
     (Maybe Text)
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 subject line of the custom verification email.
updateCustomVerificationEmailTemplate_templateSubject :: Lens.Lens' UpdateCustomVerificationEmailTemplate (Prelude.Maybe Prelude.Text)
updateCustomVerificationEmailTemplate_templateSubject :: (Maybe Text -> f (Maybe Text))
-> UpdateCustomVerificationEmailTemplate
-> f UpdateCustomVerificationEmailTemplate
updateCustomVerificationEmailTemplate_templateSubject = (UpdateCustomVerificationEmailTemplate -> Maybe Text)
-> (UpdateCustomVerificationEmailTemplate
    -> Maybe Text -> UpdateCustomVerificationEmailTemplate)
-> Lens
     UpdateCustomVerificationEmailTemplate
     UpdateCustomVerificationEmailTemplate
     (Maybe Text)
     (Maybe Text)
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 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 :: (Maybe Text -> f (Maybe Text))
-> UpdateCustomVerificationEmailTemplate
-> f UpdateCustomVerificationEmailTemplate
updateCustomVerificationEmailTemplate_successRedirectionURL = (UpdateCustomVerificationEmailTemplate -> Maybe Text)
-> (UpdateCustomVerificationEmailTemplate
    -> Maybe Text -> UpdateCustomVerificationEmailTemplate)
-> Lens
     UpdateCustomVerificationEmailTemplate
     UpdateCustomVerificationEmailTemplate
     (Maybe Text)
     (Maybe Text)
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 :: (Maybe Text -> f (Maybe Text))
-> UpdateCustomVerificationEmailTemplate
-> f UpdateCustomVerificationEmailTemplate
updateCustomVerificationEmailTemplate_templateContent = (UpdateCustomVerificationEmailTemplate -> Maybe Text)
-> (UpdateCustomVerificationEmailTemplate
    -> Maybe Text -> UpdateCustomVerificationEmailTemplate)
-> Lens
     UpdateCustomVerificationEmailTemplate
     UpdateCustomVerificationEmailTemplate
     (Maybe Text)
     (Maybe Text)
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 name of the custom verification email template that you want to
-- update.
updateCustomVerificationEmailTemplate_templateName :: Lens.Lens' UpdateCustomVerificationEmailTemplate Prelude.Text
updateCustomVerificationEmailTemplate_templateName :: (Text -> f Text)
-> UpdateCustomVerificationEmailTemplate
-> f UpdateCustomVerificationEmailTemplate
updateCustomVerificationEmailTemplate_templateName = (UpdateCustomVerificationEmailTemplate -> Text)
-> (UpdateCustomVerificationEmailTemplate
    -> Text -> UpdateCustomVerificationEmailTemplate)
-> Lens
     UpdateCustomVerificationEmailTemplate
     UpdateCustomVerificationEmailTemplate
     Text
     Text
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 :: UpdateCustomVerificationEmailTemplate
-> Request UpdateCustomVerificationEmailTemplate
request = Service
-> UpdateCustomVerificationEmailTemplate
-> Request UpdateCustomVerificationEmailTemplate
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateCustomVerificationEmailTemplate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse UpdateCustomVerificationEmailTemplate)))
response =
    AWSResponse UpdateCustomVerificationEmailTemplate
-> Logger
-> Service
-> Proxy UpdateCustomVerificationEmailTemplate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse UpdateCustomVerificationEmailTemplate)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
      AWSResponse UpdateCustomVerificationEmailTemplate
UpdateCustomVerificationEmailTemplateResponse
UpdateCustomVerificationEmailTemplateResponse'

instance
  Prelude.Hashable
    UpdateCustomVerificationEmailTemplate

instance
  Prelude.NFData
    UpdateCustomVerificationEmailTemplate

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

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

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

-- | /See:/ 'newUpdateCustomVerificationEmailTemplateResponse' smart constructor.
data UpdateCustomVerificationEmailTemplateResponse = UpdateCustomVerificationEmailTemplateResponse'
  {
  }
  deriving (UpdateCustomVerificationEmailTemplateResponse
-> UpdateCustomVerificationEmailTemplateResponse -> Bool
(UpdateCustomVerificationEmailTemplateResponse
 -> UpdateCustomVerificationEmailTemplateResponse -> Bool)
-> (UpdateCustomVerificationEmailTemplateResponse
    -> UpdateCustomVerificationEmailTemplateResponse -> Bool)
-> Eq UpdateCustomVerificationEmailTemplateResponse
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]
(Int -> ReadS UpdateCustomVerificationEmailTemplateResponse)
-> ReadS [UpdateCustomVerificationEmailTemplateResponse]
-> ReadPrec UpdateCustomVerificationEmailTemplateResponse
-> ReadPrec [UpdateCustomVerificationEmailTemplateResponse]
-> Read 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
(Int -> UpdateCustomVerificationEmailTemplateResponse -> ShowS)
-> (UpdateCustomVerificationEmailTemplateResponse -> String)
-> ([UpdateCustomVerificationEmailTemplateResponse] -> ShowS)
-> Show UpdateCustomVerificationEmailTemplateResponse
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.
 UpdateCustomVerificationEmailTemplateResponse
 -> Rep UpdateCustomVerificationEmailTemplateResponse x)
-> (forall x.
    Rep UpdateCustomVerificationEmailTemplateResponse x
    -> UpdateCustomVerificationEmailTemplateResponse)
-> Generic UpdateCustomVerificationEmailTemplateResponse
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