{-# 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.DeleteBotChannelAssociation
(
deleteBotChannelAssociation
, DeleteBotChannelAssociation
, dbcaName
, dbcaBotName
, dbcaBotAlias
, deleteBotChannelAssociationResponse
, DeleteBotChannelAssociationResponse
) 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
data DeleteBotChannelAssociation = DeleteBotChannelAssociation'
{ _dbcaName :: !Text
, _dbcaBotName :: !Text
, _dbcaBotAlias :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBotChannelAssociation
:: Text
-> Text
-> Text
-> DeleteBotChannelAssociation
deleteBotChannelAssociation pName_ pBotName_ pBotAlias_ =
DeleteBotChannelAssociation'
{_dbcaName = pName_, _dbcaBotName = pBotName_, _dbcaBotAlias = pBotAlias_}
dbcaName :: Lens' DeleteBotChannelAssociation Text
dbcaName = lens _dbcaName (\ s a -> s{_dbcaName = a})
dbcaBotName :: Lens' DeleteBotChannelAssociation Text
dbcaBotName = lens _dbcaBotName (\ s a -> s{_dbcaBotName = a})
dbcaBotAlias :: Lens' DeleteBotChannelAssociation Text
dbcaBotAlias = lens _dbcaBotAlias (\ s a -> s{_dbcaBotAlias = a})
instance AWSRequest DeleteBotChannelAssociation where
type Rs DeleteBotChannelAssociation =
DeleteBotChannelAssociationResponse
request = delete lexModels
response
= receiveNull DeleteBotChannelAssociationResponse'
instance Hashable DeleteBotChannelAssociation where
instance NFData DeleteBotChannelAssociation where
instance ToHeaders DeleteBotChannelAssociation where
toHeaders
= const
(mconcat
["Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToPath DeleteBotChannelAssociation where
toPath DeleteBotChannelAssociation'{..}
= mconcat
["/bots/", toBS _dbcaBotName, "/aliases/",
toBS _dbcaBotAlias, "/channels/", toBS _dbcaName]
instance ToQuery DeleteBotChannelAssociation where
toQuery = const mempty
data DeleteBotChannelAssociationResponse =
DeleteBotChannelAssociationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteBotChannelAssociationResponse
:: DeleteBotChannelAssociationResponse
deleteBotChannelAssociationResponse = DeleteBotChannelAssociationResponse'
instance NFData DeleteBotChannelAssociationResponse
where