{-# 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.DeleteConfigurationSetTrackingOptions
(
deleteConfigurationSetTrackingOptions
, DeleteConfigurationSetTrackingOptions
, dcstoConfigurationSetName
, deleteConfigurationSetTrackingOptionsResponse
, DeleteConfigurationSetTrackingOptionsResponse
, dcstorsResponseStatus
) 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 DeleteConfigurationSetTrackingOptions = DeleteConfigurationSetTrackingOptions'
{ _dcstoConfigurationSetName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteConfigurationSetTrackingOptions
:: Text
-> DeleteConfigurationSetTrackingOptions
deleteConfigurationSetTrackingOptions pConfigurationSetName_ =
DeleteConfigurationSetTrackingOptions'
{_dcstoConfigurationSetName = pConfigurationSetName_}
dcstoConfigurationSetName :: Lens' DeleteConfigurationSetTrackingOptions Text
dcstoConfigurationSetName = lens _dcstoConfigurationSetName (\ s a -> s{_dcstoConfigurationSetName = a})
instance AWSRequest
DeleteConfigurationSetTrackingOptions
where
type Rs DeleteConfigurationSetTrackingOptions =
DeleteConfigurationSetTrackingOptionsResponse
request = postQuery ses
response
= receiveXMLWrapper
"DeleteConfigurationSetTrackingOptionsResult"
(\ s h x ->
DeleteConfigurationSetTrackingOptionsResponse' <$>
(pure (fromEnum s)))
instance Hashable
DeleteConfigurationSetTrackingOptions
where
instance NFData DeleteConfigurationSetTrackingOptions
where
instance ToHeaders
DeleteConfigurationSetTrackingOptions
where
toHeaders = const mempty
instance ToPath DeleteConfigurationSetTrackingOptions
where
toPath = const "/"
instance ToQuery
DeleteConfigurationSetTrackingOptions
where
toQuery DeleteConfigurationSetTrackingOptions'{..}
= mconcat
["Action" =:
("DeleteConfigurationSetTrackingOptions" ::
ByteString),
"Version" =: ("2010-12-01" :: ByteString),
"ConfigurationSetName" =: _dcstoConfigurationSetName]
newtype DeleteConfigurationSetTrackingOptionsResponse = DeleteConfigurationSetTrackingOptionsResponse'
{ _dcstorsResponseStatus :: Int
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteConfigurationSetTrackingOptionsResponse
:: Int
-> DeleteConfigurationSetTrackingOptionsResponse
deleteConfigurationSetTrackingOptionsResponse pResponseStatus_ =
DeleteConfigurationSetTrackingOptionsResponse'
{_dcstorsResponseStatus = pResponseStatus_}
dcstorsResponseStatus :: Lens' DeleteConfigurationSetTrackingOptionsResponse Int
dcstorsResponseStatus = lens _dcstorsResponseStatus (\ s a -> s{_dcstorsResponseStatus = a})
instance NFData
DeleteConfigurationSetTrackingOptionsResponse
where