{-# 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.LookoutEquipment.DeleteInferenceScheduler
(
DeleteInferenceScheduler (..),
newDeleteInferenceScheduler,
deleteInferenceScheduler_inferenceSchedulerName,
DeleteInferenceSchedulerResponse (..),
newDeleteInferenceSchedulerResponse,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LookoutEquipment.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteInferenceScheduler = DeleteInferenceScheduler'
{
DeleteInferenceScheduler -> Text
inferenceSchedulerName :: Prelude.Text
}
deriving (DeleteInferenceScheduler -> DeleteInferenceScheduler -> Bool
(DeleteInferenceScheduler -> DeleteInferenceScheduler -> Bool)
-> (DeleteInferenceScheduler -> DeleteInferenceScheduler -> Bool)
-> Eq DeleteInferenceScheduler
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteInferenceScheduler -> DeleteInferenceScheduler -> Bool
$c/= :: DeleteInferenceScheduler -> DeleteInferenceScheduler -> Bool
== :: DeleteInferenceScheduler -> DeleteInferenceScheduler -> Bool
$c== :: DeleteInferenceScheduler -> DeleteInferenceScheduler -> Bool
Prelude.Eq, ReadPrec [DeleteInferenceScheduler]
ReadPrec DeleteInferenceScheduler
Int -> ReadS DeleteInferenceScheduler
ReadS [DeleteInferenceScheduler]
(Int -> ReadS DeleteInferenceScheduler)
-> ReadS [DeleteInferenceScheduler]
-> ReadPrec DeleteInferenceScheduler
-> ReadPrec [DeleteInferenceScheduler]
-> Read DeleteInferenceScheduler
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteInferenceScheduler]
$creadListPrec :: ReadPrec [DeleteInferenceScheduler]
readPrec :: ReadPrec DeleteInferenceScheduler
$creadPrec :: ReadPrec DeleteInferenceScheduler
readList :: ReadS [DeleteInferenceScheduler]
$creadList :: ReadS [DeleteInferenceScheduler]
readsPrec :: Int -> ReadS DeleteInferenceScheduler
$creadsPrec :: Int -> ReadS DeleteInferenceScheduler
Prelude.Read, Int -> DeleteInferenceScheduler -> ShowS
[DeleteInferenceScheduler] -> ShowS
DeleteInferenceScheduler -> String
(Int -> DeleteInferenceScheduler -> ShowS)
-> (DeleteInferenceScheduler -> String)
-> ([DeleteInferenceScheduler] -> ShowS)
-> Show DeleteInferenceScheduler
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteInferenceScheduler] -> ShowS
$cshowList :: [DeleteInferenceScheduler] -> ShowS
show :: DeleteInferenceScheduler -> String
$cshow :: DeleteInferenceScheduler -> String
showsPrec :: Int -> DeleteInferenceScheduler -> ShowS
$cshowsPrec :: Int -> DeleteInferenceScheduler -> ShowS
Prelude.Show, (forall x.
DeleteInferenceScheduler -> Rep DeleteInferenceScheduler x)
-> (forall x.
Rep DeleteInferenceScheduler x -> DeleteInferenceScheduler)
-> Generic DeleteInferenceScheduler
forall x.
Rep DeleteInferenceScheduler x -> DeleteInferenceScheduler
forall x.
DeleteInferenceScheduler -> Rep DeleteInferenceScheduler x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteInferenceScheduler x -> DeleteInferenceScheduler
$cfrom :: forall x.
DeleteInferenceScheduler -> Rep DeleteInferenceScheduler x
Prelude.Generic)
newDeleteInferenceScheduler ::
Prelude.Text ->
DeleteInferenceScheduler
newDeleteInferenceScheduler :: Text -> DeleteInferenceScheduler
newDeleteInferenceScheduler Text
pInferenceSchedulerName_ =
DeleteInferenceScheduler' :: Text -> DeleteInferenceScheduler
DeleteInferenceScheduler'
{ $sel:inferenceSchedulerName:DeleteInferenceScheduler' :: Text
inferenceSchedulerName =
Text
pInferenceSchedulerName_
}
deleteInferenceScheduler_inferenceSchedulerName :: Lens.Lens' DeleteInferenceScheduler Prelude.Text
deleteInferenceScheduler_inferenceSchedulerName :: (Text -> f Text)
-> DeleteInferenceScheduler -> f DeleteInferenceScheduler
deleteInferenceScheduler_inferenceSchedulerName = (DeleteInferenceScheduler -> Text)
-> (DeleteInferenceScheduler -> Text -> DeleteInferenceScheduler)
-> Lens DeleteInferenceScheduler DeleteInferenceScheduler Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteInferenceScheduler' {Text
inferenceSchedulerName :: Text
$sel:inferenceSchedulerName:DeleteInferenceScheduler' :: DeleteInferenceScheduler -> Text
inferenceSchedulerName} -> Text
inferenceSchedulerName) (\s :: DeleteInferenceScheduler
s@DeleteInferenceScheduler' {} Text
a -> DeleteInferenceScheduler
s {$sel:inferenceSchedulerName:DeleteInferenceScheduler' :: Text
inferenceSchedulerName = Text
a} :: DeleteInferenceScheduler)
instance Core.AWSRequest DeleteInferenceScheduler where
type
AWSResponse DeleteInferenceScheduler =
DeleteInferenceSchedulerResponse
request :: DeleteInferenceScheduler -> Request DeleteInferenceScheduler
request = Service
-> DeleteInferenceScheduler -> Request DeleteInferenceScheduler
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteInferenceScheduler
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteInferenceScheduler)))
response =
AWSResponse DeleteInferenceScheduler
-> Logger
-> Service
-> Proxy DeleteInferenceScheduler
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteInferenceScheduler)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeleteInferenceScheduler
DeleteInferenceSchedulerResponse
DeleteInferenceSchedulerResponse'
instance Prelude.Hashable DeleteInferenceScheduler
instance Prelude.NFData DeleteInferenceScheduler
instance Core.ToHeaders DeleteInferenceScheduler where
toHeaders :: DeleteInferenceScheduler -> [Header]
toHeaders =
[Header] -> DeleteInferenceScheduler -> [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
"AWSLookoutEquipmentFrontendService.DeleteInferenceScheduler" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DeleteInferenceScheduler where
toJSON :: DeleteInferenceScheduler -> Value
toJSON DeleteInferenceScheduler' {Text
inferenceSchedulerName :: Text
$sel:inferenceSchedulerName:DeleteInferenceScheduler' :: DeleteInferenceScheduler -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"InferenceSchedulerName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
inferenceSchedulerName
)
]
)
instance Core.ToPath DeleteInferenceScheduler where
toPath :: DeleteInferenceScheduler -> ByteString
toPath = ByteString -> DeleteInferenceScheduler -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DeleteInferenceScheduler where
toQuery :: DeleteInferenceScheduler -> QueryString
toQuery = QueryString -> DeleteInferenceScheduler -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteInferenceSchedulerResponse = DeleteInferenceSchedulerResponse'
{
}
deriving (DeleteInferenceSchedulerResponse
-> DeleteInferenceSchedulerResponse -> Bool
(DeleteInferenceSchedulerResponse
-> DeleteInferenceSchedulerResponse -> Bool)
-> (DeleteInferenceSchedulerResponse
-> DeleteInferenceSchedulerResponse -> Bool)
-> Eq DeleteInferenceSchedulerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteInferenceSchedulerResponse
-> DeleteInferenceSchedulerResponse -> Bool
$c/= :: DeleteInferenceSchedulerResponse
-> DeleteInferenceSchedulerResponse -> Bool
== :: DeleteInferenceSchedulerResponse
-> DeleteInferenceSchedulerResponse -> Bool
$c== :: DeleteInferenceSchedulerResponse
-> DeleteInferenceSchedulerResponse -> Bool
Prelude.Eq, ReadPrec [DeleteInferenceSchedulerResponse]
ReadPrec DeleteInferenceSchedulerResponse
Int -> ReadS DeleteInferenceSchedulerResponse
ReadS [DeleteInferenceSchedulerResponse]
(Int -> ReadS DeleteInferenceSchedulerResponse)
-> ReadS [DeleteInferenceSchedulerResponse]
-> ReadPrec DeleteInferenceSchedulerResponse
-> ReadPrec [DeleteInferenceSchedulerResponse]
-> Read DeleteInferenceSchedulerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteInferenceSchedulerResponse]
$creadListPrec :: ReadPrec [DeleteInferenceSchedulerResponse]
readPrec :: ReadPrec DeleteInferenceSchedulerResponse
$creadPrec :: ReadPrec DeleteInferenceSchedulerResponse
readList :: ReadS [DeleteInferenceSchedulerResponse]
$creadList :: ReadS [DeleteInferenceSchedulerResponse]
readsPrec :: Int -> ReadS DeleteInferenceSchedulerResponse
$creadsPrec :: Int -> ReadS DeleteInferenceSchedulerResponse
Prelude.Read, Int -> DeleteInferenceSchedulerResponse -> ShowS
[DeleteInferenceSchedulerResponse] -> ShowS
DeleteInferenceSchedulerResponse -> String
(Int -> DeleteInferenceSchedulerResponse -> ShowS)
-> (DeleteInferenceSchedulerResponse -> String)
-> ([DeleteInferenceSchedulerResponse] -> ShowS)
-> Show DeleteInferenceSchedulerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteInferenceSchedulerResponse] -> ShowS
$cshowList :: [DeleteInferenceSchedulerResponse] -> ShowS
show :: DeleteInferenceSchedulerResponse -> String
$cshow :: DeleteInferenceSchedulerResponse -> String
showsPrec :: Int -> DeleteInferenceSchedulerResponse -> ShowS
$cshowsPrec :: Int -> DeleteInferenceSchedulerResponse -> ShowS
Prelude.Show, (forall x.
DeleteInferenceSchedulerResponse
-> Rep DeleteInferenceSchedulerResponse x)
-> (forall x.
Rep DeleteInferenceSchedulerResponse x
-> DeleteInferenceSchedulerResponse)
-> Generic DeleteInferenceSchedulerResponse
forall x.
Rep DeleteInferenceSchedulerResponse x
-> DeleteInferenceSchedulerResponse
forall x.
DeleteInferenceSchedulerResponse
-> Rep DeleteInferenceSchedulerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteInferenceSchedulerResponse x
-> DeleteInferenceSchedulerResponse
$cfrom :: forall x.
DeleteInferenceSchedulerResponse
-> Rep DeleteInferenceSchedulerResponse x
Prelude.Generic)
newDeleteInferenceSchedulerResponse ::
DeleteInferenceSchedulerResponse
newDeleteInferenceSchedulerResponse :: DeleteInferenceSchedulerResponse
newDeleteInferenceSchedulerResponse =
DeleteInferenceSchedulerResponse
DeleteInferenceSchedulerResponse'
instance
Prelude.NFData
DeleteInferenceSchedulerResponse