{-# 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 qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FMS.Types
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
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]
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
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.
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 :: (Service -> Service)
-> DeleteNotificationChannel -> Request DeleteNotificationChannel
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DeleteNotificationChannel
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteNotificationChannel)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
DeleteNotificationChannelResponse
DeleteNotificationChannelResponse'
instance Prelude.Hashable DeleteNotificationChannel where
hashWithSalt :: Int -> DeleteNotificationChannel -> Int
hashWithSalt Int
_salt DeleteNotificationChannel
_ =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ()
instance Prelude.NFData DeleteNotificationChannel where
rnf :: DeleteNotificationChannel -> ()
rnf DeleteNotificationChannel
_ = ()
instance Data.ToHeaders DeleteNotificationChannel where
toHeaders :: DeleteNotificationChannel -> [Header]
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> [Header]
Data.=# ( ByteString
"AWSFMS_20180101.DeleteNotificationChannel" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> [Header]
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON DeleteNotificationChannel where
toJSON :: DeleteNotificationChannel -> Value
toJSON = forall a b. a -> b -> a
Prelude.const (Object -> Value
Data.Object forall a. Monoid a => a
Prelude.mempty)
instance Data.ToPath DeleteNotificationChannel where
toPath :: DeleteNotificationChannel -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DeleteNotificationChannel where
toQuery :: DeleteNotificationChannel -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DeleteNotificationChannelResponse = DeleteNotificationChannelResponse'
{
}
deriving (DeleteNotificationChannelResponse
-> DeleteNotificationChannelResponse -> Bool
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]
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
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.
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
where
rnf :: DeleteNotificationChannelResponse -> ()
rnf DeleteNotificationChannelResponse
_ = ()