{-# 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.DeletePendingAggregationRequest
(
deletePendingAggregationRequest
, DeletePendingAggregationRequest
, dparRequesterAccountId
, dparRequesterAWSRegion
, deletePendingAggregationRequestResponse
, DeletePendingAggregationRequestResponse
) 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
data DeletePendingAggregationRequest = DeletePendingAggregationRequest'
{ _dparRequesterAccountId :: !Text
, _dparRequesterAWSRegion :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deletePendingAggregationRequest
:: Text
-> Text
-> DeletePendingAggregationRequest
deletePendingAggregationRequest pRequesterAccountId_ pRequesterAWSRegion_ =
DeletePendingAggregationRequest'
{ _dparRequesterAccountId = pRequesterAccountId_
, _dparRequesterAWSRegion = pRequesterAWSRegion_
}
dparRequesterAccountId :: Lens' DeletePendingAggregationRequest Text
dparRequesterAccountId = lens _dparRequesterAccountId (\ s a -> s{_dparRequesterAccountId = a})
dparRequesterAWSRegion :: Lens' DeletePendingAggregationRequest Text
dparRequesterAWSRegion = lens _dparRequesterAWSRegion (\ s a -> s{_dparRequesterAWSRegion = a})
instance AWSRequest DeletePendingAggregationRequest
where
type Rs DeletePendingAggregationRequest =
DeletePendingAggregationRequestResponse
request = postJSON config
response
= receiveNull
DeletePendingAggregationRequestResponse'
instance Hashable DeletePendingAggregationRequest
where
instance NFData DeletePendingAggregationRequest where
instance ToHeaders DeletePendingAggregationRequest
where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("StarlingDoveService.DeletePendingAggregationRequest"
:: ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeletePendingAggregationRequest where
toJSON DeletePendingAggregationRequest'{..}
= object
(catMaybes
[Just
("RequesterAccountId" .= _dparRequesterAccountId),
Just
("RequesterAwsRegion" .= _dparRequesterAWSRegion)])
instance ToPath DeletePendingAggregationRequest where
toPath = const "/"
instance ToQuery DeletePendingAggregationRequest
where
toQuery = const mempty
data DeletePendingAggregationRequestResponse =
DeletePendingAggregationRequestResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deletePendingAggregationRequestResponse
:: DeletePendingAggregationRequestResponse
deletePendingAggregationRequestResponse =
DeletePendingAggregationRequestResponse'
instance NFData
DeletePendingAggregationRequestResponse
where