{-# 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.Forecast.DeletePredictorBacktestExportJob
(
DeletePredictorBacktestExportJob (..),
newDeletePredictorBacktestExportJob,
deletePredictorBacktestExportJob_predictorBacktestExportJobArn,
DeletePredictorBacktestExportJobResponse (..),
newDeletePredictorBacktestExportJobResponse,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Forecast.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 DeletePredictorBacktestExportJob = DeletePredictorBacktestExportJob'
{
DeletePredictorBacktestExportJob -> Text
predictorBacktestExportJobArn :: Prelude.Text
}
deriving (DeletePredictorBacktestExportJob
-> DeletePredictorBacktestExportJob -> Bool
(DeletePredictorBacktestExportJob
-> DeletePredictorBacktestExportJob -> Bool)
-> (DeletePredictorBacktestExportJob
-> DeletePredictorBacktestExportJob -> Bool)
-> Eq DeletePredictorBacktestExportJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeletePredictorBacktestExportJob
-> DeletePredictorBacktestExportJob -> Bool
$c/= :: DeletePredictorBacktestExportJob
-> DeletePredictorBacktestExportJob -> Bool
== :: DeletePredictorBacktestExportJob
-> DeletePredictorBacktestExportJob -> Bool
$c== :: DeletePredictorBacktestExportJob
-> DeletePredictorBacktestExportJob -> Bool
Prelude.Eq, ReadPrec [DeletePredictorBacktestExportJob]
ReadPrec DeletePredictorBacktestExportJob
Int -> ReadS DeletePredictorBacktestExportJob
ReadS [DeletePredictorBacktestExportJob]
(Int -> ReadS DeletePredictorBacktestExportJob)
-> ReadS [DeletePredictorBacktestExportJob]
-> ReadPrec DeletePredictorBacktestExportJob
-> ReadPrec [DeletePredictorBacktestExportJob]
-> Read DeletePredictorBacktestExportJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeletePredictorBacktestExportJob]
$creadListPrec :: ReadPrec [DeletePredictorBacktestExportJob]
readPrec :: ReadPrec DeletePredictorBacktestExportJob
$creadPrec :: ReadPrec DeletePredictorBacktestExportJob
readList :: ReadS [DeletePredictorBacktestExportJob]
$creadList :: ReadS [DeletePredictorBacktestExportJob]
readsPrec :: Int -> ReadS DeletePredictorBacktestExportJob
$creadsPrec :: Int -> ReadS DeletePredictorBacktestExportJob
Prelude.Read, Int -> DeletePredictorBacktestExportJob -> ShowS
[DeletePredictorBacktestExportJob] -> ShowS
DeletePredictorBacktestExportJob -> String
(Int -> DeletePredictorBacktestExportJob -> ShowS)
-> (DeletePredictorBacktestExportJob -> String)
-> ([DeletePredictorBacktestExportJob] -> ShowS)
-> Show DeletePredictorBacktestExportJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeletePredictorBacktestExportJob] -> ShowS
$cshowList :: [DeletePredictorBacktestExportJob] -> ShowS
show :: DeletePredictorBacktestExportJob -> String
$cshow :: DeletePredictorBacktestExportJob -> String
showsPrec :: Int -> DeletePredictorBacktestExportJob -> ShowS
$cshowsPrec :: Int -> DeletePredictorBacktestExportJob -> ShowS
Prelude.Show, (forall x.
DeletePredictorBacktestExportJob
-> Rep DeletePredictorBacktestExportJob x)
-> (forall x.
Rep DeletePredictorBacktestExportJob x
-> DeletePredictorBacktestExportJob)
-> Generic DeletePredictorBacktestExportJob
forall x.
Rep DeletePredictorBacktestExportJob x
-> DeletePredictorBacktestExportJob
forall x.
DeletePredictorBacktestExportJob
-> Rep DeletePredictorBacktestExportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeletePredictorBacktestExportJob x
-> DeletePredictorBacktestExportJob
$cfrom :: forall x.
DeletePredictorBacktestExportJob
-> Rep DeletePredictorBacktestExportJob x
Prelude.Generic)
newDeletePredictorBacktestExportJob ::
Prelude.Text ->
DeletePredictorBacktestExportJob
newDeletePredictorBacktestExportJob :: Text -> DeletePredictorBacktestExportJob
newDeletePredictorBacktestExportJob
Text
pPredictorBacktestExportJobArn_ =
DeletePredictorBacktestExportJob' :: Text -> DeletePredictorBacktestExportJob
DeletePredictorBacktestExportJob'
{ $sel:predictorBacktestExportJobArn:DeletePredictorBacktestExportJob' :: Text
predictorBacktestExportJobArn =
Text
pPredictorBacktestExportJobArn_
}
deletePredictorBacktestExportJob_predictorBacktestExportJobArn :: Lens.Lens' DeletePredictorBacktestExportJob Prelude.Text
deletePredictorBacktestExportJob_predictorBacktestExportJobArn :: (Text -> f Text)
-> DeletePredictorBacktestExportJob
-> f DeletePredictorBacktestExportJob
deletePredictorBacktestExportJob_predictorBacktestExportJobArn = (DeletePredictorBacktestExportJob -> Text)
-> (DeletePredictorBacktestExportJob
-> Text -> DeletePredictorBacktestExportJob)
-> Lens
DeletePredictorBacktestExportJob
DeletePredictorBacktestExportJob
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeletePredictorBacktestExportJob' {Text
predictorBacktestExportJobArn :: Text
$sel:predictorBacktestExportJobArn:DeletePredictorBacktestExportJob' :: DeletePredictorBacktestExportJob -> Text
predictorBacktestExportJobArn} -> Text
predictorBacktestExportJobArn) (\s :: DeletePredictorBacktestExportJob
s@DeletePredictorBacktestExportJob' {} Text
a -> DeletePredictorBacktestExportJob
s {$sel:predictorBacktestExportJobArn:DeletePredictorBacktestExportJob' :: Text
predictorBacktestExportJobArn = Text
a} :: DeletePredictorBacktestExportJob)
instance
Core.AWSRequest
DeletePredictorBacktestExportJob
where
type
AWSResponse DeletePredictorBacktestExportJob =
DeletePredictorBacktestExportJobResponse
request :: DeletePredictorBacktestExportJob
-> Request DeletePredictorBacktestExportJob
request = Service
-> DeletePredictorBacktestExportJob
-> Request DeletePredictorBacktestExportJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DeletePredictorBacktestExportJob
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeletePredictorBacktestExportJob)))
response =
AWSResponse DeletePredictorBacktestExportJob
-> Logger
-> Service
-> Proxy DeletePredictorBacktestExportJob
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DeletePredictorBacktestExportJob)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeletePredictorBacktestExportJob
DeletePredictorBacktestExportJobResponse
DeletePredictorBacktestExportJobResponse'
instance
Prelude.Hashable
DeletePredictorBacktestExportJob
instance
Prelude.NFData
DeletePredictorBacktestExportJob
instance
Core.ToHeaders
DeletePredictorBacktestExportJob
where
toHeaders :: DeletePredictorBacktestExportJob -> [Header]
toHeaders =
[Header] -> DeletePredictorBacktestExportJob -> [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
"AmazonForecast.DeletePredictorBacktestExportJob" ::
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 DeletePredictorBacktestExportJob where
toJSON :: DeletePredictorBacktestExportJob -> Value
toJSON DeletePredictorBacktestExportJob' {Text
predictorBacktestExportJobArn :: Text
$sel:predictorBacktestExportJobArn:DeletePredictorBacktestExportJob' :: DeletePredictorBacktestExportJob -> 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
"PredictorBacktestExportJobArn"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
predictorBacktestExportJobArn
)
]
)
instance Core.ToPath DeletePredictorBacktestExportJob where
toPath :: DeletePredictorBacktestExportJob -> ByteString
toPath = ByteString -> DeletePredictorBacktestExportJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DeletePredictorBacktestExportJob
where
toQuery :: DeletePredictorBacktestExportJob -> QueryString
toQuery = QueryString -> DeletePredictorBacktestExportJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeletePredictorBacktestExportJobResponse = DeletePredictorBacktestExportJobResponse'
{
}
deriving (DeletePredictorBacktestExportJobResponse
-> DeletePredictorBacktestExportJobResponse -> Bool
(DeletePredictorBacktestExportJobResponse
-> DeletePredictorBacktestExportJobResponse -> Bool)
-> (DeletePredictorBacktestExportJobResponse
-> DeletePredictorBacktestExportJobResponse -> Bool)
-> Eq DeletePredictorBacktestExportJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeletePredictorBacktestExportJobResponse
-> DeletePredictorBacktestExportJobResponse -> Bool
$c/= :: DeletePredictorBacktestExportJobResponse
-> DeletePredictorBacktestExportJobResponse -> Bool
== :: DeletePredictorBacktestExportJobResponse
-> DeletePredictorBacktestExportJobResponse -> Bool
$c== :: DeletePredictorBacktestExportJobResponse
-> DeletePredictorBacktestExportJobResponse -> Bool
Prelude.Eq, ReadPrec [DeletePredictorBacktestExportJobResponse]
ReadPrec DeletePredictorBacktestExportJobResponse
Int -> ReadS DeletePredictorBacktestExportJobResponse
ReadS [DeletePredictorBacktestExportJobResponse]
(Int -> ReadS DeletePredictorBacktestExportJobResponse)
-> ReadS [DeletePredictorBacktestExportJobResponse]
-> ReadPrec DeletePredictorBacktestExportJobResponse
-> ReadPrec [DeletePredictorBacktestExportJobResponse]
-> Read DeletePredictorBacktestExportJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeletePredictorBacktestExportJobResponse]
$creadListPrec :: ReadPrec [DeletePredictorBacktestExportJobResponse]
readPrec :: ReadPrec DeletePredictorBacktestExportJobResponse
$creadPrec :: ReadPrec DeletePredictorBacktestExportJobResponse
readList :: ReadS [DeletePredictorBacktestExportJobResponse]
$creadList :: ReadS [DeletePredictorBacktestExportJobResponse]
readsPrec :: Int -> ReadS DeletePredictorBacktestExportJobResponse
$creadsPrec :: Int -> ReadS DeletePredictorBacktestExportJobResponse
Prelude.Read, Int -> DeletePredictorBacktestExportJobResponse -> ShowS
[DeletePredictorBacktestExportJobResponse] -> ShowS
DeletePredictorBacktestExportJobResponse -> String
(Int -> DeletePredictorBacktestExportJobResponse -> ShowS)
-> (DeletePredictorBacktestExportJobResponse -> String)
-> ([DeletePredictorBacktestExportJobResponse] -> ShowS)
-> Show DeletePredictorBacktestExportJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeletePredictorBacktestExportJobResponse] -> ShowS
$cshowList :: [DeletePredictorBacktestExportJobResponse] -> ShowS
show :: DeletePredictorBacktestExportJobResponse -> String
$cshow :: DeletePredictorBacktestExportJobResponse -> String
showsPrec :: Int -> DeletePredictorBacktestExportJobResponse -> ShowS
$cshowsPrec :: Int -> DeletePredictorBacktestExportJobResponse -> ShowS
Prelude.Show, (forall x.
DeletePredictorBacktestExportJobResponse
-> Rep DeletePredictorBacktestExportJobResponse x)
-> (forall x.
Rep DeletePredictorBacktestExportJobResponse x
-> DeletePredictorBacktestExportJobResponse)
-> Generic DeletePredictorBacktestExportJobResponse
forall x.
Rep DeletePredictorBacktestExportJobResponse x
-> DeletePredictorBacktestExportJobResponse
forall x.
DeletePredictorBacktestExportJobResponse
-> Rep DeletePredictorBacktestExportJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeletePredictorBacktestExportJobResponse x
-> DeletePredictorBacktestExportJobResponse
$cfrom :: forall x.
DeletePredictorBacktestExportJobResponse
-> Rep DeletePredictorBacktestExportJobResponse x
Prelude.Generic)
newDeletePredictorBacktestExportJobResponse ::
DeletePredictorBacktestExportJobResponse
newDeletePredictorBacktestExportJobResponse :: DeletePredictorBacktestExportJobResponse
newDeletePredictorBacktestExportJobResponse =
DeletePredictorBacktestExportJobResponse
DeletePredictorBacktestExportJobResponse'
instance
Prelude.NFData
DeletePredictorBacktestExportJobResponse