{-# 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 #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Network.AWS.SES.DeleteReceiptRuleSet -- Copyright : (c) 2013-2015 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Deletes the specified receipt rule set and all of the receipt rules it -- contains. -- -- The currently active rule set cannot be deleted. -- -- For information about managing receipt rule sets, see the -- . -- -- This action is throttled at one request per second. -- -- /See:/ for DeleteReceiptRuleSet. module Network.AWS.SES.DeleteReceiptRuleSet ( -- * Creating a Request deleteReceiptRuleSet , DeleteReceiptRuleSet -- * Request Lenses , dRuleSetName -- * Destructuring the Response , deleteReceiptRuleSetResponse , DeleteReceiptRuleSetResponse -- * Response Lenses , drrsrsResponseStatus ) where import Network.AWS.Prelude import Network.AWS.Request import Network.AWS.Response import Network.AWS.SES.Types import Network.AWS.SES.Types.Product -- | /See:/ 'deleteReceiptRuleSet' smart constructor. newtype DeleteReceiptRuleSet = DeleteReceiptRuleSet' { _dRuleSetName :: Text } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'DeleteReceiptRuleSet' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'dRuleSetName' deleteReceiptRuleSet :: Text -- ^ 'dRuleSetName' -> DeleteReceiptRuleSet deleteReceiptRuleSet pRuleSetName_ = DeleteReceiptRuleSet' { _dRuleSetName = pRuleSetName_ } -- | The name of the receipt rule set to delete. 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 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] -- | /See:/ 'deleteReceiptRuleSetResponse' smart constructor. newtype DeleteReceiptRuleSetResponse = DeleteReceiptRuleSetResponse' { _drrsrsResponseStatus :: Int } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'DeleteReceiptRuleSetResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'drrsrsResponseStatus' deleteReceiptRuleSetResponse :: Int -- ^ 'drrsrsResponseStatus' -> DeleteReceiptRuleSetResponse deleteReceiptRuleSetResponse pResponseStatus_ = DeleteReceiptRuleSetResponse' { _drrsrsResponseStatus = pResponseStatus_ } -- | The response status code. drrsrsResponseStatus :: Lens' DeleteReceiptRuleSetResponse Int drrsrsResponseStatus = lens _drrsrsResponseStatus (\ s a -> s{_drrsrsResponseStatus = a});