{-# 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.LexModels.DeleteIntent
(
deleteIntent
, DeleteIntent
, diName
, deleteIntentResponse
, DeleteIntentResponse
) where
import Network.AWS.Lens
import Network.AWS.LexModels.Types
import Network.AWS.LexModels.Types.Product
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteIntent = DeleteIntent'
{ _diName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteIntent
:: Text
-> DeleteIntent
deleteIntent pName_ = DeleteIntent' {_diName = pName_}
diName :: Lens' DeleteIntent Text
diName = lens _diName (\ s a -> s{_diName = a})
instance AWSRequest DeleteIntent where
type Rs DeleteIntent = DeleteIntentResponse
request = delete lexModels
response = receiveNull DeleteIntentResponse'
instance Hashable DeleteIntent where
instance NFData DeleteIntent where
instance ToHeaders DeleteIntent where
toHeaders
= const
(mconcat
["Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToPath DeleteIntent where
toPath DeleteIntent'{..}
= mconcat ["/intents/", toBS _diName]
instance ToQuery DeleteIntent where
toQuery = const mempty
data DeleteIntentResponse =
DeleteIntentResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteIntentResponse
:: DeleteIntentResponse
deleteIntentResponse = DeleteIntentResponse'
instance NFData DeleteIntentResponse where