{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Network.AWS.SES.VerifyEmailAddress
(
verifyEmailAddress
, VerifyEmailAddress
, veaEmailAddress
, verifyEmailAddressResponse
, VerifyEmailAddressResponse
) where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
import Network.AWS.SES.Types
import Network.AWS.SES.Types.Product
newtype VerifyEmailAddress = VerifyEmailAddress'
{ _veaEmailAddress :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
verifyEmailAddress
:: Text
-> VerifyEmailAddress
verifyEmailAddress pEmailAddress_ =
VerifyEmailAddress' {_veaEmailAddress = pEmailAddress_}
veaEmailAddress :: Lens' VerifyEmailAddress Text
veaEmailAddress = lens _veaEmailAddress (\ s a -> s{_veaEmailAddress = a})
instance AWSRequest VerifyEmailAddress where
type Rs VerifyEmailAddress =
VerifyEmailAddressResponse
request = postQuery ses
response = receiveNull VerifyEmailAddressResponse'
instance Hashable VerifyEmailAddress where
instance NFData VerifyEmailAddress where
instance ToHeaders VerifyEmailAddress where
toHeaders = const mempty
instance ToPath VerifyEmailAddress where
toPath = const "/"
instance ToQuery VerifyEmailAddress where
toQuery VerifyEmailAddress'{..}
= mconcat
["Action" =: ("VerifyEmailAddress" :: ByteString),
"Version" =: ("2010-12-01" :: ByteString),
"EmailAddress" =: _veaEmailAddress]
data VerifyEmailAddressResponse =
VerifyEmailAddressResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
verifyEmailAddressResponse
:: VerifyEmailAddressResponse
verifyEmailAddressResponse = VerifyEmailAddressResponse'
instance NFData VerifyEmailAddressResponse where