{-# 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.APIGateway.FlushStageAuthorizersCache
(
flushStageAuthorizersCache
, FlushStageAuthorizersCache
, fsacRestAPIId
, fsacStageName
, flushStageAuthorizersCacheResponse
, FlushStageAuthorizersCacheResponse
) where
import Network.AWS.APIGateway.Types
import Network.AWS.APIGateway.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
data FlushStageAuthorizersCache = FlushStageAuthorizersCache'
{ _fsacRestAPIId :: !Text
, _fsacStageName :: !Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
flushStageAuthorizersCache
:: Text
-> Text
-> FlushStageAuthorizersCache
flushStageAuthorizersCache pRestAPIId_ pStageName_ =
FlushStageAuthorizersCache'
{ _fsacRestAPIId = pRestAPIId_
, _fsacStageName = pStageName_
}
fsacRestAPIId :: Lens' FlushStageAuthorizersCache Text
fsacRestAPIId = lens _fsacRestAPIId (\ s a -> s{_fsacRestAPIId = a});
fsacStageName :: Lens' FlushStageAuthorizersCache Text
fsacStageName = lens _fsacStageName (\ s a -> s{_fsacStageName = a});
instance AWSRequest FlushStageAuthorizersCache where
type Rs FlushStageAuthorizersCache =
FlushStageAuthorizersCacheResponse
request = delete apiGateway
response
= receiveNull FlushStageAuthorizersCacheResponse'
instance Hashable FlushStageAuthorizersCache
instance NFData FlushStageAuthorizersCache
instance ToHeaders FlushStageAuthorizersCache where
toHeaders
= const
(mconcat
["Accept" =# ("application/json" :: ByteString)])
instance ToPath FlushStageAuthorizersCache where
toPath FlushStageAuthorizersCache'{..}
= mconcat
["/restapis/", toBS _fsacRestAPIId, "/stages/",
toBS _fsacStageName, "/cache/authorizers"]
instance ToQuery FlushStageAuthorizersCache where
toQuery = const mempty
data FlushStageAuthorizersCacheResponse =
FlushStageAuthorizersCacheResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
flushStageAuthorizersCacheResponse
:: FlushStageAuthorizersCacheResponse
flushStageAuthorizersCacheResponse = FlushStageAuthorizersCacheResponse'
instance NFData FlushStageAuthorizersCacheResponse