{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.FMS.DeleteNotificationChannel
(
DeleteNotificationChannel (..),
newDeleteNotificationChannel,
DeleteNotificationChannelResponse (..),
newDeleteNotificationChannelResponse,
)
where
import qualified Amazonka.Core as Core
import Amazonka.FMS.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteNotificationChannel = DeleteNotificationChannel'
{
}
deriving (DeleteNotificationChannel -> DeleteNotificationChannel -> Bool
(DeleteNotificationChannel -> DeleteNotificationChannel -> Bool)
-> (DeleteNotificationChannel -> DeleteNotificationChannel -> Bool)
-> Eq DeleteNotificationChannel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteNotificationChannel -> DeleteNotificationChannel -> Bool
$c/= :: DeleteNotificationChannel -> DeleteNotificationChannel -> Bool
== :: DeleteNotificationChannel -> DeleteNotificationChannel -> Bool
$c== :: DeleteNotificationChannel -> DeleteNotificationChannel -> Bool
Prelude.Eq, ReadPrec [DeleteNotificationChannel]
ReadPrec DeleteNotificationChannel
Int -> ReadS DeleteNotificationChannel
ReadS [DeleteNotificationChannel]
(Int -> ReadS DeleteNotificationChannel)
-> ReadS [DeleteNotificationChannel]
-> ReadPrec DeleteNotificationChannel
-> ReadPrec [DeleteNotificationChannel]
-> Read DeleteNotificationChannel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteNotificationChannel]
$creadListPrec :: ReadPrec [DeleteNotificationChannel]
readPrec :: ReadPrec DeleteNotificationChannel
$creadPrec :: ReadPrec DeleteNotificationChannel
readList :: ReadS [DeleteNotificationChannel]
$creadList :: ReadS [DeleteNotificationChannel]
readsPrec :: Int -> ReadS DeleteNotificationChannel
$creadsPrec :: Int -> ReadS DeleteNotificationChannel
Prelude.Read, Int -> DeleteNotificationChannel -> ShowS
[DeleteNotificationChannel] -> ShowS
DeleteNotificationChannel -> String
(Int -> DeleteNotificationChannel -> ShowS)
-> (DeleteNotificationChannel -> String)
-> ([DeleteNotificationChannel] -> ShowS)
-> Show DeleteNotificationChannel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteNotificationChannel] -> ShowS
$cshowList :: [DeleteNotificationChannel] -> ShowS
show :: DeleteNotificationChannel -> String
$cshow :: DeleteNotificationChannel -> String
showsPrec :: Int -> DeleteNotificationChannel -> ShowS
$cshowsPrec :: Int -> DeleteNotificationChannel -> ShowS
Prelude.Show, (forall x.
DeleteNotificationChannel -> Rep DeleteNotificationChannel x)
-> (forall x.
Rep DeleteNotificationChannel x -> DeleteNotificationChannel)
-> Generic DeleteNotificationChannel
forall x.
Rep DeleteNotificationChannel x -> DeleteNotificationChannel
forall x.
DeleteNotificationChannel -> Rep DeleteNotificationChannel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteNotificationChannel x -> DeleteNotificationChannel
$cfrom :: forall x.
DeleteNotificationChannel -> Rep DeleteNotificationChannel x
Prelude.Generic)
newDeleteNotificationChannel ::
DeleteNotificationChannel
newDeleteNotificationChannel :: DeleteNotificationChannel
newDeleteNotificationChannel =
DeleteNotificationChannel
DeleteNotificationChannel'
instance Core.AWSRequest DeleteNotificationChannel where
type
AWSResponse DeleteNotificationChannel =
DeleteNotificationChannelResponse
request :: DeleteNotificationChannel -> Request DeleteNotificationChannel
request = Service
-> DeleteNotificationChannel -> Request DeleteNotificationChannel
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteNotificationChannel
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteNotificationChannel)))
response =
AWSResponse DeleteNotificationChannel
-> Logger
-> Service
-> Proxy DeleteNotificationChannel
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteNotificationChannel)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeleteNotificationChannel
DeleteNotificationChannelResponse
DeleteNotificationChannelResponse'
instance Prelude.Hashable DeleteNotificationChannel
instance Prelude.NFData DeleteNotificationChannel
instance Core.ToHeaders DeleteNotificationChannel where
toHeaders :: DeleteNotificationChannel -> [Header]
toHeaders =
[Header] -> DeleteNotificationChannel -> [Header]
forall a b. a -> b -> a
Prelude.const
( [[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"AWSFMS_20180101.DeleteNotificationChannel" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DeleteNotificationChannel where
toJSON :: DeleteNotificationChannel -> Value
toJSON = Value -> DeleteNotificationChannel -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)
instance Core.ToPath DeleteNotificationChannel where
toPath :: DeleteNotificationChannel -> ByteString
toPath = ByteString -> DeleteNotificationChannel -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DeleteNotificationChannel where
toQuery :: DeleteNotificationChannel -> QueryString
toQuery = QueryString -> DeleteNotificationChannel -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteNotificationChannelResponse = DeleteNotificationChannelResponse'
{
}
deriving (DeleteNotificationChannelResponse
-> DeleteNotificationChannelResponse -> Bool
(DeleteNotificationChannelResponse
-> DeleteNotificationChannelResponse -> Bool)
-> (DeleteNotificationChannelResponse
-> DeleteNotificationChannelResponse -> Bool)
-> Eq DeleteNotificationChannelResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteNotificationChannelResponse
-> DeleteNotificationChannelResponse -> Bool
$c/= :: DeleteNotificationChannelResponse
-> DeleteNotificationChannelResponse -> Bool
== :: DeleteNotificationChannelResponse
-> DeleteNotificationChannelResponse -> Bool
$c== :: DeleteNotificationChannelResponse
-> DeleteNotificationChannelResponse -> Bool
Prelude.Eq, ReadPrec [DeleteNotificationChannelResponse]
ReadPrec DeleteNotificationChannelResponse
Int -> ReadS DeleteNotificationChannelResponse
ReadS [DeleteNotificationChannelResponse]
(Int -> ReadS DeleteNotificationChannelResponse)
-> ReadS [DeleteNotificationChannelResponse]
-> ReadPrec DeleteNotificationChannelResponse
-> ReadPrec [DeleteNotificationChannelResponse]
-> Read DeleteNotificationChannelResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteNotificationChannelResponse]
$creadListPrec :: ReadPrec [DeleteNotificationChannelResponse]
readPrec :: ReadPrec DeleteNotificationChannelResponse
$creadPrec :: ReadPrec DeleteNotificationChannelResponse
readList :: ReadS [DeleteNotificationChannelResponse]
$creadList :: ReadS [DeleteNotificationChannelResponse]
readsPrec :: Int -> ReadS DeleteNotificationChannelResponse
$creadsPrec :: Int -> ReadS DeleteNotificationChannelResponse
Prelude.Read, Int -> DeleteNotificationChannelResponse -> ShowS
[DeleteNotificationChannelResponse] -> ShowS
DeleteNotificationChannelResponse -> String
(Int -> DeleteNotificationChannelResponse -> ShowS)
-> (DeleteNotificationChannelResponse -> String)
-> ([DeleteNotificationChannelResponse] -> ShowS)
-> Show DeleteNotificationChannelResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteNotificationChannelResponse] -> ShowS
$cshowList :: [DeleteNotificationChannelResponse] -> ShowS
show :: DeleteNotificationChannelResponse -> String
$cshow :: DeleteNotificationChannelResponse -> String
showsPrec :: Int -> DeleteNotificationChannelResponse -> ShowS
$cshowsPrec :: Int -> DeleteNotificationChannelResponse -> ShowS
Prelude.Show, (forall x.
DeleteNotificationChannelResponse
-> Rep DeleteNotificationChannelResponse x)
-> (forall x.
Rep DeleteNotificationChannelResponse x
-> DeleteNotificationChannelResponse)
-> Generic DeleteNotificationChannelResponse
forall x.
Rep DeleteNotificationChannelResponse x
-> DeleteNotificationChannelResponse
forall x.
DeleteNotificationChannelResponse
-> Rep DeleteNotificationChannelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteNotificationChannelResponse x
-> DeleteNotificationChannelResponse
$cfrom :: forall x.
DeleteNotificationChannelResponse
-> Rep DeleteNotificationChannelResponse x
Prelude.Generic)
newDeleteNotificationChannelResponse ::
DeleteNotificationChannelResponse
newDeleteNotificationChannelResponse :: DeleteNotificationChannelResponse
newDeleteNotificationChannelResponse =
DeleteNotificationChannelResponse
DeleteNotificationChannelResponse'
instance
Prelude.NFData
DeleteNotificationChannelResponse