module Network.AWS.Redshift.DeleteEventSubscription
(
deleteEventSubscription
, DeleteEventSubscription
, desSubscriptionName
, deleteEventSubscriptionResponse
, DeleteEventSubscriptionResponse
) where
import Network.AWS.Prelude
import Network.AWS.Redshift.Types
import Network.AWS.Redshift.Types.Product
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteEventSubscription = DeleteEventSubscription'
{ _desSubscriptionName :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteEventSubscription
:: Text
-> DeleteEventSubscription
deleteEventSubscription pSubscriptionName_ =
DeleteEventSubscription'
{ _desSubscriptionName = pSubscriptionName_
}
desSubscriptionName :: Lens' DeleteEventSubscription Text
desSubscriptionName = lens _desSubscriptionName (\ s a -> s{_desSubscriptionName = a});
instance AWSRequest DeleteEventSubscription where
type Rs DeleteEventSubscription =
DeleteEventSubscriptionResponse
request = postQuery redshift
response
= receiveNull DeleteEventSubscriptionResponse'
instance ToHeaders DeleteEventSubscription where
toHeaders = const mempty
instance ToPath DeleteEventSubscription where
toPath = const "/"
instance ToQuery DeleteEventSubscription where
toQuery DeleteEventSubscription'{..}
= mconcat
["Action" =:
("DeleteEventSubscription" :: ByteString),
"Version" =: ("2012-12-01" :: ByteString),
"SubscriptionName" =: _desSubscriptionName]
data DeleteEventSubscriptionResponse =
DeleteEventSubscriptionResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteEventSubscriptionResponse
:: DeleteEventSubscriptionResponse
deleteEventSubscriptionResponse = DeleteEventSubscriptionResponse'