{-# 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.DeleteSlotType
(
deleteSlotType
, DeleteSlotType
, dstName
, deleteSlotTypeResponse
, DeleteSlotTypeResponse
) 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 DeleteSlotType = DeleteSlotType'
{ _dstName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteSlotType
:: Text
-> DeleteSlotType
deleteSlotType pName_ = DeleteSlotType' {_dstName = pName_}
dstName :: Lens' DeleteSlotType Text
dstName = lens _dstName (\ s a -> s{_dstName = a})
instance AWSRequest DeleteSlotType where
type Rs DeleteSlotType = DeleteSlotTypeResponse
request = delete lexModels
response = receiveNull DeleteSlotTypeResponse'
instance Hashable DeleteSlotType where
instance NFData DeleteSlotType where
instance ToHeaders DeleteSlotType where
toHeaders
= const
(mconcat
["Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToPath DeleteSlotType where
toPath DeleteSlotType'{..}
= mconcat ["/slottypes/", toBS _dstName]
instance ToQuery DeleteSlotType where
toQuery = const mempty
data DeleteSlotTypeResponse =
DeleteSlotTypeResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteSlotTypeResponse
:: DeleteSlotTypeResponse
deleteSlotTypeResponse = DeleteSlotTypeResponse'
instance NFData DeleteSlotTypeResponse where