{-# 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.DeleteReceiptRuleSet
(
deleteReceiptRuleSet
, DeleteReceiptRuleSet
, dRuleSetName
, deleteReceiptRuleSetResponse
, DeleteReceiptRuleSetResponse
, drrsrsResponseStatus
) 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 DeleteReceiptRuleSet = DeleteReceiptRuleSet'
{ _dRuleSetName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteReceiptRuleSet
:: Text
-> DeleteReceiptRuleSet
deleteReceiptRuleSet pRuleSetName_ =
DeleteReceiptRuleSet' {_dRuleSetName = pRuleSetName_}
dRuleSetName :: Lens' DeleteReceiptRuleSet Text
dRuleSetName = lens _dRuleSetName (\ s a -> s{_dRuleSetName = a})
instance AWSRequest DeleteReceiptRuleSet where
type Rs DeleteReceiptRuleSet =
DeleteReceiptRuleSetResponse
request = postQuery ses
response
= receiveXMLWrapper "DeleteReceiptRuleSetResult"
(\ s h x ->
DeleteReceiptRuleSetResponse' <$>
(pure (fromEnum s)))
instance Hashable DeleteReceiptRuleSet where
instance NFData DeleteReceiptRuleSet where
instance ToHeaders DeleteReceiptRuleSet where
toHeaders = const mempty
instance ToPath DeleteReceiptRuleSet where
toPath = const "/"
instance ToQuery DeleteReceiptRuleSet where
toQuery DeleteReceiptRuleSet'{..}
= mconcat
["Action" =: ("DeleteReceiptRuleSet" :: ByteString),
"Version" =: ("2010-12-01" :: ByteString),
"RuleSetName" =: _dRuleSetName]
newtype DeleteReceiptRuleSetResponse = DeleteReceiptRuleSetResponse'
{ _drrsrsResponseStatus :: Int
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteReceiptRuleSetResponse
:: Int
-> DeleteReceiptRuleSetResponse
deleteReceiptRuleSetResponse pResponseStatus_ =
DeleteReceiptRuleSetResponse' {_drrsrsResponseStatus = pResponseStatus_}
drrsrsResponseStatus :: Lens' DeleteReceiptRuleSetResponse Int
drrsrsResponseStatus = lens _drrsrsResponseStatus (\ s a -> s{_drrsrsResponseStatus = a})
instance NFData DeleteReceiptRuleSetResponse where