{-# 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.SES.VerifyEmailAddress
(
VerifyEmailAddress (..),
newVerifyEmailAddress,
verifyEmailAddress_emailAddress,
VerifyEmailAddressResponse (..),
newVerifyEmailAddressResponse,
)
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
data VerifyEmailAddress = VerifyEmailAddress'
{
VerifyEmailAddress -> Text
emailAddress :: Prelude.Text
}
deriving (VerifyEmailAddress -> VerifyEmailAddress -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VerifyEmailAddress -> VerifyEmailAddress -> Bool
$c/= :: VerifyEmailAddress -> VerifyEmailAddress -> Bool
== :: VerifyEmailAddress -> VerifyEmailAddress -> Bool
$c== :: VerifyEmailAddress -> VerifyEmailAddress -> Bool
Prelude.Eq, ReadPrec [VerifyEmailAddress]
ReadPrec VerifyEmailAddress
Int -> ReadS VerifyEmailAddress
ReadS [VerifyEmailAddress]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VerifyEmailAddress]
$creadListPrec :: ReadPrec [VerifyEmailAddress]
readPrec :: ReadPrec VerifyEmailAddress
$creadPrec :: ReadPrec VerifyEmailAddress
readList :: ReadS [VerifyEmailAddress]
$creadList :: ReadS [VerifyEmailAddress]
readsPrec :: Int -> ReadS VerifyEmailAddress
$creadsPrec :: Int -> ReadS VerifyEmailAddress
Prelude.Read, Int -> VerifyEmailAddress -> ShowS
[VerifyEmailAddress] -> ShowS
VerifyEmailAddress -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VerifyEmailAddress] -> ShowS
$cshowList :: [VerifyEmailAddress] -> ShowS
show :: VerifyEmailAddress -> String
$cshow :: VerifyEmailAddress -> String
showsPrec :: Int -> VerifyEmailAddress -> ShowS
$cshowsPrec :: Int -> VerifyEmailAddress -> ShowS
Prelude.Show, forall x. Rep VerifyEmailAddress x -> VerifyEmailAddress
forall x. VerifyEmailAddress -> Rep VerifyEmailAddress x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VerifyEmailAddress x -> VerifyEmailAddress
$cfrom :: forall x. VerifyEmailAddress -> Rep VerifyEmailAddress x
Prelude.Generic)
newVerifyEmailAddress ::
Prelude.Text ->
VerifyEmailAddress
newVerifyEmailAddress :: Text -> VerifyEmailAddress
newVerifyEmailAddress Text
pEmailAddress_ =
VerifyEmailAddress' {$sel:emailAddress:VerifyEmailAddress' :: Text
emailAddress = Text
pEmailAddress_}
verifyEmailAddress_emailAddress :: Lens.Lens' VerifyEmailAddress Prelude.Text
verifyEmailAddress_emailAddress :: Lens' VerifyEmailAddress Text
verifyEmailAddress_emailAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VerifyEmailAddress' {Text
emailAddress :: Text
$sel:emailAddress:VerifyEmailAddress' :: VerifyEmailAddress -> Text
emailAddress} -> Text
emailAddress) (\s :: VerifyEmailAddress
s@VerifyEmailAddress' {} Text
a -> VerifyEmailAddress
s {$sel:emailAddress:VerifyEmailAddress' :: Text
emailAddress = Text
a} :: VerifyEmailAddress)
instance Core.AWSRequest VerifyEmailAddress where
type
AWSResponse VerifyEmailAddress =
VerifyEmailAddressResponse
request :: (Service -> Service)
-> VerifyEmailAddress -> Request VerifyEmailAddress
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 VerifyEmailAddress
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse VerifyEmailAddress)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull VerifyEmailAddressResponse
VerifyEmailAddressResponse'
instance Prelude.Hashable VerifyEmailAddress where
hashWithSalt :: Int -> VerifyEmailAddress -> Int
hashWithSalt Int
_salt VerifyEmailAddress' {Text
emailAddress :: Text
$sel:emailAddress:VerifyEmailAddress' :: VerifyEmailAddress -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
emailAddress
instance Prelude.NFData VerifyEmailAddress where
rnf :: VerifyEmailAddress -> ()
rnf VerifyEmailAddress' {Text
emailAddress :: Text
$sel:emailAddress:VerifyEmailAddress' :: VerifyEmailAddress -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
emailAddress
instance Data.ToHeaders VerifyEmailAddress where
toHeaders :: VerifyEmailAddress -> [Header]
toHeaders = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath VerifyEmailAddress where
toPath :: VerifyEmailAddress -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery VerifyEmailAddress where
toQuery :: VerifyEmailAddress -> QueryString
toQuery VerifyEmailAddress' {Text
emailAddress :: Text
$sel:emailAddress:VerifyEmailAddress' :: VerifyEmailAddress -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"VerifyEmailAddress" :: Prelude.ByteString),
ByteString
"Version"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
ByteString
"EmailAddress" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
emailAddress
]
data VerifyEmailAddressResponse = VerifyEmailAddressResponse'
{
}
deriving (VerifyEmailAddressResponse -> VerifyEmailAddressResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VerifyEmailAddressResponse -> VerifyEmailAddressResponse -> Bool
$c/= :: VerifyEmailAddressResponse -> VerifyEmailAddressResponse -> Bool
== :: VerifyEmailAddressResponse -> VerifyEmailAddressResponse -> Bool
$c== :: VerifyEmailAddressResponse -> VerifyEmailAddressResponse -> Bool
Prelude.Eq, ReadPrec [VerifyEmailAddressResponse]
ReadPrec VerifyEmailAddressResponse
Int -> ReadS VerifyEmailAddressResponse
ReadS [VerifyEmailAddressResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VerifyEmailAddressResponse]
$creadListPrec :: ReadPrec [VerifyEmailAddressResponse]
readPrec :: ReadPrec VerifyEmailAddressResponse
$creadPrec :: ReadPrec VerifyEmailAddressResponse
readList :: ReadS [VerifyEmailAddressResponse]
$creadList :: ReadS [VerifyEmailAddressResponse]
readsPrec :: Int -> ReadS VerifyEmailAddressResponse
$creadsPrec :: Int -> ReadS VerifyEmailAddressResponse
Prelude.Read, Int -> VerifyEmailAddressResponse -> ShowS
[VerifyEmailAddressResponse] -> ShowS
VerifyEmailAddressResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VerifyEmailAddressResponse] -> ShowS
$cshowList :: [VerifyEmailAddressResponse] -> ShowS
show :: VerifyEmailAddressResponse -> String
$cshow :: VerifyEmailAddressResponse -> String
showsPrec :: Int -> VerifyEmailAddressResponse -> ShowS
$cshowsPrec :: Int -> VerifyEmailAddressResponse -> ShowS
Prelude.Show, forall x.
Rep VerifyEmailAddressResponse x -> VerifyEmailAddressResponse
forall x.
VerifyEmailAddressResponse -> Rep VerifyEmailAddressResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep VerifyEmailAddressResponse x -> VerifyEmailAddressResponse
$cfrom :: forall x.
VerifyEmailAddressResponse -> Rep VerifyEmailAddressResponse x
Prelude.Generic)
newVerifyEmailAddressResponse ::
VerifyEmailAddressResponse
newVerifyEmailAddressResponse :: VerifyEmailAddressResponse
newVerifyEmailAddressResponse =
VerifyEmailAddressResponse
VerifyEmailAddressResponse'
instance Prelude.NFData VerifyEmailAddressResponse where
rnf :: VerifyEmailAddressResponse -> ()
rnf VerifyEmailAddressResponse
_ = ()