{-# 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.GlobalAccelerator.DeleteCustomRoutingListener
(
DeleteCustomRoutingListener (..),
newDeleteCustomRoutingListener,
deleteCustomRoutingListener_listenerArn,
DeleteCustomRoutingListenerResponse (..),
newDeleteCustomRoutingListenerResponse,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.GlobalAccelerator.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteCustomRoutingListener = DeleteCustomRoutingListener'
{
DeleteCustomRoutingListener -> Text
listenerArn :: Prelude.Text
}
deriving (DeleteCustomRoutingListener -> DeleteCustomRoutingListener -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteCustomRoutingListener -> DeleteCustomRoutingListener -> Bool
$c/= :: DeleteCustomRoutingListener -> DeleteCustomRoutingListener -> Bool
== :: DeleteCustomRoutingListener -> DeleteCustomRoutingListener -> Bool
$c== :: DeleteCustomRoutingListener -> DeleteCustomRoutingListener -> Bool
Prelude.Eq, ReadPrec [DeleteCustomRoutingListener]
ReadPrec DeleteCustomRoutingListener
Int -> ReadS DeleteCustomRoutingListener
ReadS [DeleteCustomRoutingListener]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteCustomRoutingListener]
$creadListPrec :: ReadPrec [DeleteCustomRoutingListener]
readPrec :: ReadPrec DeleteCustomRoutingListener
$creadPrec :: ReadPrec DeleteCustomRoutingListener
readList :: ReadS [DeleteCustomRoutingListener]
$creadList :: ReadS [DeleteCustomRoutingListener]
readsPrec :: Int -> ReadS DeleteCustomRoutingListener
$creadsPrec :: Int -> ReadS DeleteCustomRoutingListener
Prelude.Read, Int -> DeleteCustomRoutingListener -> ShowS
[DeleteCustomRoutingListener] -> ShowS
DeleteCustomRoutingListener -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteCustomRoutingListener] -> ShowS
$cshowList :: [DeleteCustomRoutingListener] -> ShowS
show :: DeleteCustomRoutingListener -> String
$cshow :: DeleteCustomRoutingListener -> String
showsPrec :: Int -> DeleteCustomRoutingListener -> ShowS
$cshowsPrec :: Int -> DeleteCustomRoutingListener -> ShowS
Prelude.Show, forall x.
Rep DeleteCustomRoutingListener x -> DeleteCustomRoutingListener
forall x.
DeleteCustomRoutingListener -> Rep DeleteCustomRoutingListener x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteCustomRoutingListener x -> DeleteCustomRoutingListener
$cfrom :: forall x.
DeleteCustomRoutingListener -> Rep DeleteCustomRoutingListener x
Prelude.Generic)
newDeleteCustomRoutingListener ::
Prelude.Text ->
DeleteCustomRoutingListener
newDeleteCustomRoutingListener :: Text -> DeleteCustomRoutingListener
newDeleteCustomRoutingListener Text
pListenerArn_ =
DeleteCustomRoutingListener'
{ $sel:listenerArn:DeleteCustomRoutingListener' :: Text
listenerArn =
Text
pListenerArn_
}
deleteCustomRoutingListener_listenerArn :: Lens.Lens' DeleteCustomRoutingListener Prelude.Text
deleteCustomRoutingListener_listenerArn :: Lens' DeleteCustomRoutingListener Text
deleteCustomRoutingListener_listenerArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteCustomRoutingListener' {Text
listenerArn :: Text
$sel:listenerArn:DeleteCustomRoutingListener' :: DeleteCustomRoutingListener -> Text
listenerArn} -> Text
listenerArn) (\s :: DeleteCustomRoutingListener
s@DeleteCustomRoutingListener' {} Text
a -> DeleteCustomRoutingListener
s {$sel:listenerArn:DeleteCustomRoutingListener' :: Text
listenerArn = Text
a} :: DeleteCustomRoutingListener)
instance Core.AWSRequest DeleteCustomRoutingListener where
type
AWSResponse DeleteCustomRoutingListener =
DeleteCustomRoutingListenerResponse
request :: (Service -> Service)
-> DeleteCustomRoutingListener
-> Request DeleteCustomRoutingListener
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 DeleteCustomRoutingListener
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteCustomRoutingListener)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
DeleteCustomRoutingListenerResponse
DeleteCustomRoutingListenerResponse'
instance Prelude.Hashable DeleteCustomRoutingListener where
hashWithSalt :: Int -> DeleteCustomRoutingListener -> Int
hashWithSalt Int
_salt DeleteCustomRoutingListener' {Text
listenerArn :: Text
$sel:listenerArn:DeleteCustomRoutingListener' :: DeleteCustomRoutingListener -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
listenerArn
instance Prelude.NFData DeleteCustomRoutingListener where
rnf :: DeleteCustomRoutingListener -> ()
rnf DeleteCustomRoutingListener' {Text
listenerArn :: Text
$sel:listenerArn:DeleteCustomRoutingListener' :: DeleteCustomRoutingListener -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
listenerArn
instance Data.ToHeaders DeleteCustomRoutingListener where
toHeaders :: DeleteCustomRoutingListener -> [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
"GlobalAccelerator_V20180706.DeleteCustomRoutingListener" ::
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 DeleteCustomRoutingListener where
toJSON :: DeleteCustomRoutingListener -> Value
toJSON DeleteCustomRoutingListener' {Text
listenerArn :: Text
$sel:listenerArn:DeleteCustomRoutingListener' :: DeleteCustomRoutingListener -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"ListenerArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
listenerArn)]
)
instance Data.ToPath DeleteCustomRoutingListener where
toPath :: DeleteCustomRoutingListener -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DeleteCustomRoutingListener where
toQuery :: DeleteCustomRoutingListener -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DeleteCustomRoutingListenerResponse = DeleteCustomRoutingListenerResponse'
{
}
deriving (DeleteCustomRoutingListenerResponse
-> DeleteCustomRoutingListenerResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteCustomRoutingListenerResponse
-> DeleteCustomRoutingListenerResponse -> Bool
$c/= :: DeleteCustomRoutingListenerResponse
-> DeleteCustomRoutingListenerResponse -> Bool
== :: DeleteCustomRoutingListenerResponse
-> DeleteCustomRoutingListenerResponse -> Bool
$c== :: DeleteCustomRoutingListenerResponse
-> DeleteCustomRoutingListenerResponse -> Bool
Prelude.Eq, ReadPrec [DeleteCustomRoutingListenerResponse]
ReadPrec DeleteCustomRoutingListenerResponse
Int -> ReadS DeleteCustomRoutingListenerResponse
ReadS [DeleteCustomRoutingListenerResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteCustomRoutingListenerResponse]
$creadListPrec :: ReadPrec [DeleteCustomRoutingListenerResponse]
readPrec :: ReadPrec DeleteCustomRoutingListenerResponse
$creadPrec :: ReadPrec DeleteCustomRoutingListenerResponse
readList :: ReadS [DeleteCustomRoutingListenerResponse]
$creadList :: ReadS [DeleteCustomRoutingListenerResponse]
readsPrec :: Int -> ReadS DeleteCustomRoutingListenerResponse
$creadsPrec :: Int -> ReadS DeleteCustomRoutingListenerResponse
Prelude.Read, Int -> DeleteCustomRoutingListenerResponse -> ShowS
[DeleteCustomRoutingListenerResponse] -> ShowS
DeleteCustomRoutingListenerResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteCustomRoutingListenerResponse] -> ShowS
$cshowList :: [DeleteCustomRoutingListenerResponse] -> ShowS
show :: DeleteCustomRoutingListenerResponse -> String
$cshow :: DeleteCustomRoutingListenerResponse -> String
showsPrec :: Int -> DeleteCustomRoutingListenerResponse -> ShowS
$cshowsPrec :: Int -> DeleteCustomRoutingListenerResponse -> ShowS
Prelude.Show, forall x.
Rep DeleteCustomRoutingListenerResponse x
-> DeleteCustomRoutingListenerResponse
forall x.
DeleteCustomRoutingListenerResponse
-> Rep DeleteCustomRoutingListenerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteCustomRoutingListenerResponse x
-> DeleteCustomRoutingListenerResponse
$cfrom :: forall x.
DeleteCustomRoutingListenerResponse
-> Rep DeleteCustomRoutingListenerResponse x
Prelude.Generic)
newDeleteCustomRoutingListenerResponse ::
DeleteCustomRoutingListenerResponse
newDeleteCustomRoutingListenerResponse :: DeleteCustomRoutingListenerResponse
newDeleteCustomRoutingListenerResponse =
DeleteCustomRoutingListenerResponse
DeleteCustomRoutingListenerResponse'
instance
Prelude.NFData
DeleteCustomRoutingListenerResponse
where
rnf :: DeleteCustomRoutingListenerResponse -> ()
rnf DeleteCustomRoutingListenerResponse
_ = ()