{-# 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.Lambda.DeleteFunctionConcurrency
(
deleteFunctionConcurrency
, DeleteFunctionConcurrency
, dfcFunctionName
, deleteFunctionConcurrencyResponse
, DeleteFunctionConcurrencyResponse
) where
import Network.AWS.Lambda.Types
import Network.AWS.Lambda.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteFunctionConcurrency = DeleteFunctionConcurrency'
{ _dfcFunctionName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteFunctionConcurrency
:: Text
-> DeleteFunctionConcurrency
deleteFunctionConcurrency pFunctionName_ =
DeleteFunctionConcurrency' {_dfcFunctionName = pFunctionName_}
dfcFunctionName :: Lens' DeleteFunctionConcurrency Text
dfcFunctionName = lens _dfcFunctionName (\ s a -> s{_dfcFunctionName = a})
instance AWSRequest DeleteFunctionConcurrency where
type Rs DeleteFunctionConcurrency =
DeleteFunctionConcurrencyResponse
request = delete lambda
response
= receiveNull DeleteFunctionConcurrencyResponse'
instance Hashable DeleteFunctionConcurrency where
instance NFData DeleteFunctionConcurrency where
instance ToHeaders DeleteFunctionConcurrency where
toHeaders = const mempty
instance ToPath DeleteFunctionConcurrency where
toPath DeleteFunctionConcurrency'{..}
= mconcat
["/2017-10-31/functions/", toBS _dfcFunctionName,
"/concurrency"]
instance ToQuery DeleteFunctionConcurrency where
toQuery = const mempty
data DeleteFunctionConcurrencyResponse =
DeleteFunctionConcurrencyResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteFunctionConcurrencyResponse
:: DeleteFunctionConcurrencyResponse
deleteFunctionConcurrencyResponse = DeleteFunctionConcurrencyResponse'
instance NFData DeleteFunctionConcurrencyResponse
where