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