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