{-# 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.DeleteConfigurationAggregator
(
deleteConfigurationAggregator
, DeleteConfigurationAggregator
, dcaConfigurationAggregatorName
, deleteConfigurationAggregatorResponse
, DeleteConfigurationAggregatorResponse
) 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 DeleteConfigurationAggregator = DeleteConfigurationAggregator'
{ _dcaConfigurationAggregatorName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteConfigurationAggregator
:: Text
-> DeleteConfigurationAggregator
deleteConfigurationAggregator pConfigurationAggregatorName_ =
DeleteConfigurationAggregator'
{_dcaConfigurationAggregatorName = pConfigurationAggregatorName_}
dcaConfigurationAggregatorName :: Lens' DeleteConfigurationAggregator Text
dcaConfigurationAggregatorName = lens _dcaConfigurationAggregatorName (\ s a -> s{_dcaConfigurationAggregatorName = a})
instance AWSRequest DeleteConfigurationAggregator
where
type Rs DeleteConfigurationAggregator =
DeleteConfigurationAggregatorResponse
request = postJSON config
response
= receiveNull DeleteConfigurationAggregatorResponse'
instance Hashable DeleteConfigurationAggregator where
instance NFData DeleteConfigurationAggregator where
instance ToHeaders DeleteConfigurationAggregator
where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("StarlingDoveService.DeleteConfigurationAggregator"
:: ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteConfigurationAggregator where
toJSON DeleteConfigurationAggregator'{..}
= object
(catMaybes
[Just
("ConfigurationAggregatorName" .=
_dcaConfigurationAggregatorName)])
instance ToPath DeleteConfigurationAggregator where
toPath = const "/"
instance ToQuery DeleteConfigurationAggregator where
toQuery = const mempty
data DeleteConfigurationAggregatorResponse =
DeleteConfigurationAggregatorResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteConfigurationAggregatorResponse
:: DeleteConfigurationAggregatorResponse
deleteConfigurationAggregatorResponse = DeleteConfigurationAggregatorResponse'
instance NFData DeleteConfigurationAggregatorResponse
where