{-# 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.FMS.DeleteNotificationChannel
(
deleteNotificationChannel
, DeleteNotificationChannel
, deleteNotificationChannelResponse
, DeleteNotificationChannelResponse
) where
import Network.AWS.FMS.Types
import Network.AWS.FMS.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
data DeleteNotificationChannel =
DeleteNotificationChannel'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteNotificationChannel
:: DeleteNotificationChannel
deleteNotificationChannel = DeleteNotificationChannel'
instance AWSRequest DeleteNotificationChannel where
type Rs DeleteNotificationChannel =
DeleteNotificationChannelResponse
request = postJSON fms
response
= receiveNull DeleteNotificationChannelResponse'
instance Hashable DeleteNotificationChannel where
instance NFData DeleteNotificationChannel where
instance ToHeaders DeleteNotificationChannel where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("AWSFMS_20180101.DeleteNotificationChannel" ::
ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteNotificationChannel where
toJSON = const (Object mempty)
instance ToPath DeleteNotificationChannel where
toPath = const "/"
instance ToQuery DeleteNotificationChannel where
toQuery = const mempty
data DeleteNotificationChannelResponse =
DeleteNotificationChannelResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteNotificationChannelResponse
:: DeleteNotificationChannelResponse
deleteNotificationChannelResponse = DeleteNotificationChannelResponse'
instance NFData DeleteNotificationChannelResponse
where