{-# 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.Redshift.DeleteEventSubscription
(
deleteEventSubscription
, DeleteEventSubscription
, desSubscriptionName
, deleteEventSubscriptionResponse
, DeleteEventSubscriptionResponse
) where
import Network.AWS.Lens
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 Hashable DeleteEventSubscription where
instance NFData DeleteEventSubscription where
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'
instance NFData DeleteEventSubscriptionResponse where