{-# 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.DeleteConfigurationSet
(
deleteConfigurationSet
, DeleteConfigurationSet
, dConfigurationSetName
, deleteConfigurationSetResponse
, DeleteConfigurationSetResponse
, drsResponseStatus
) 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 DeleteConfigurationSet = DeleteConfigurationSet'
{ _dConfigurationSetName :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteConfigurationSet
:: Text
-> DeleteConfigurationSet
deleteConfigurationSet pConfigurationSetName_ =
DeleteConfigurationSet'
{ _dConfigurationSetName = pConfigurationSetName_
}
dConfigurationSetName :: Lens' DeleteConfigurationSet Text
dConfigurationSetName = lens _dConfigurationSetName (\ s a -> s{_dConfigurationSetName = a});
instance AWSRequest DeleteConfigurationSet where
type Rs DeleteConfigurationSet =
DeleteConfigurationSetResponse
request = postQuery ses
response
= receiveXMLWrapper "DeleteConfigurationSetResult"
(\ s h x ->
DeleteConfigurationSetResponse' <$>
(pure (fromEnum s)))
instance Hashable DeleteConfigurationSet
instance NFData DeleteConfigurationSet
instance ToHeaders DeleteConfigurationSet where
toHeaders = const mempty
instance ToPath DeleteConfigurationSet where
toPath = const "/"
instance ToQuery DeleteConfigurationSet where
toQuery DeleteConfigurationSet'{..}
= mconcat
["Action" =:
("DeleteConfigurationSet" :: ByteString),
"Version" =: ("2010-12-01" :: ByteString),
"ConfigurationSetName" =: _dConfigurationSetName]
newtype DeleteConfigurationSetResponse = DeleteConfigurationSetResponse'
{ _drsResponseStatus :: Int
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteConfigurationSetResponse
:: Int
-> DeleteConfigurationSetResponse
deleteConfigurationSetResponse pResponseStatus_ =
DeleteConfigurationSetResponse'
{ _drsResponseStatus = pResponseStatus_
}
drsResponseStatus :: Lens' DeleteConfigurationSetResponse Int
drsResponseStatus = lens _drsResponseStatus (\ s a -> s{_drsResponseStatus = a});
instance NFData DeleteConfigurationSetResponse