{-# 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.UpdateAccountSendingEnabled
(
updateAccountSendingEnabled
, UpdateAccountSendingEnabled
, uaseEnabled
, updateAccountSendingEnabledResponse
, UpdateAccountSendingEnabledResponse
) 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 UpdateAccountSendingEnabled = UpdateAccountSendingEnabled'
{ _uaseEnabled :: Maybe Bool
} deriving (Eq, Read, Show, Data, Typeable, Generic)
updateAccountSendingEnabled
:: UpdateAccountSendingEnabled
updateAccountSendingEnabled =
UpdateAccountSendingEnabled' {_uaseEnabled = Nothing}
uaseEnabled :: Lens' UpdateAccountSendingEnabled (Maybe Bool)
uaseEnabled = lens _uaseEnabled (\ s a -> s{_uaseEnabled = a})
instance AWSRequest UpdateAccountSendingEnabled where
type Rs UpdateAccountSendingEnabled =
UpdateAccountSendingEnabledResponse
request = postQuery ses
response
= receiveNull UpdateAccountSendingEnabledResponse'
instance Hashable UpdateAccountSendingEnabled where
instance NFData UpdateAccountSendingEnabled where
instance ToHeaders UpdateAccountSendingEnabled where
toHeaders = const mempty
instance ToPath UpdateAccountSendingEnabled where
toPath = const "/"
instance ToQuery UpdateAccountSendingEnabled where
toQuery UpdateAccountSendingEnabled'{..}
= mconcat
["Action" =:
("UpdateAccountSendingEnabled" :: ByteString),
"Version" =: ("2010-12-01" :: ByteString),
"Enabled" =: _uaseEnabled]
data UpdateAccountSendingEnabledResponse =
UpdateAccountSendingEnabledResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
updateAccountSendingEnabledResponse
:: UpdateAccountSendingEnabledResponse
updateAccountSendingEnabledResponse = UpdateAccountSendingEnabledResponse'
instance NFData UpdateAccountSendingEnabledResponse
where