{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Network.AWS.SageMaker.DeleteNotebookInstance
(
deleteNotebookInstance
, DeleteNotebookInstance
, dNotebookInstanceName
, deleteNotebookInstanceResponse
, DeleteNotebookInstanceResponse
) where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
import Network.AWS.SageMaker.Types
import Network.AWS.SageMaker.Types.Product
newtype DeleteNotebookInstance = DeleteNotebookInstance'
{ _dNotebookInstanceName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteNotebookInstance
:: Text
-> DeleteNotebookInstance
deleteNotebookInstance pNotebookInstanceName_ =
DeleteNotebookInstance' {_dNotebookInstanceName = pNotebookInstanceName_}
dNotebookInstanceName :: Lens' DeleteNotebookInstance Text
dNotebookInstanceName = lens _dNotebookInstanceName (\ s a -> s{_dNotebookInstanceName = a})
instance AWSRequest DeleteNotebookInstance where
type Rs DeleteNotebookInstance =
DeleteNotebookInstanceResponse
request = postJSON sageMaker
response
= receiveNull DeleteNotebookInstanceResponse'
instance Hashable DeleteNotebookInstance where
instance NFData DeleteNotebookInstance where
instance ToHeaders DeleteNotebookInstance where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("SageMaker.DeleteNotebookInstance" :: ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteNotebookInstance where
toJSON DeleteNotebookInstance'{..}
= object
(catMaybes
[Just
("NotebookInstanceName" .= _dNotebookInstanceName)])
instance ToPath DeleteNotebookInstance where
toPath = const "/"
instance ToQuery DeleteNotebookInstance where
toQuery = const mempty
data DeleteNotebookInstanceResponse =
DeleteNotebookInstanceResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteNotebookInstanceResponse
:: DeleteNotebookInstanceResponse
deleteNotebookInstanceResponse = DeleteNotebookInstanceResponse'
instance NFData DeleteNotebookInstanceResponse where