{-# 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.Config.DeleteConfigurationRecorder
(
deleteConfigurationRecorder
, DeleteConfigurationRecorder
, dcrConfigurationRecorderName
, deleteConfigurationRecorderResponse
, DeleteConfigurationRecorderResponse
) where
import Network.AWS.Config.Types
import Network.AWS.Config.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteConfigurationRecorder = DeleteConfigurationRecorder'
{ _dcrConfigurationRecorderName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteConfigurationRecorder
:: Text
-> DeleteConfigurationRecorder
deleteConfigurationRecorder pConfigurationRecorderName_ =
DeleteConfigurationRecorder'
{_dcrConfigurationRecorderName = pConfigurationRecorderName_}
dcrConfigurationRecorderName :: Lens' DeleteConfigurationRecorder Text
dcrConfigurationRecorderName = lens _dcrConfigurationRecorderName (\ s a -> s{_dcrConfigurationRecorderName = a})
instance AWSRequest DeleteConfigurationRecorder where
type Rs DeleteConfigurationRecorder =
DeleteConfigurationRecorderResponse
request = postJSON config
response
= receiveNull DeleteConfigurationRecorderResponse'
instance Hashable DeleteConfigurationRecorder where
instance NFData DeleteConfigurationRecorder where
instance ToHeaders DeleteConfigurationRecorder where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("StarlingDoveService.DeleteConfigurationRecorder" ::
ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteConfigurationRecorder where
toJSON DeleteConfigurationRecorder'{..}
= object
(catMaybes
[Just
("ConfigurationRecorderName" .=
_dcrConfigurationRecorderName)])
instance ToPath DeleteConfigurationRecorder where
toPath = const "/"
instance ToQuery DeleteConfigurationRecorder where
toQuery = const mempty
data DeleteConfigurationRecorderResponse =
DeleteConfigurationRecorderResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteConfigurationRecorderResponse
:: DeleteConfigurationRecorderResponse
deleteConfigurationRecorderResponse = DeleteConfigurationRecorderResponse'
instance NFData DeleteConfigurationRecorderResponse
where