{-# 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.DeleteEndpointConfig
(
deleteEndpointConfig
, DeleteEndpointConfig
, dEndpointConfigName
, deleteEndpointConfigResponse
, DeleteEndpointConfigResponse
) 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 DeleteEndpointConfig = DeleteEndpointConfig'
{ _dEndpointConfigName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteEndpointConfig
:: Text
-> DeleteEndpointConfig
deleteEndpointConfig pEndpointConfigName_ =
DeleteEndpointConfig' {_dEndpointConfigName = pEndpointConfigName_}
dEndpointConfigName :: Lens' DeleteEndpointConfig Text
dEndpointConfigName = lens _dEndpointConfigName (\ s a -> s{_dEndpointConfigName = a})
instance AWSRequest DeleteEndpointConfig where
type Rs DeleteEndpointConfig =
DeleteEndpointConfigResponse
request = postJSON sageMaker
response = receiveNull DeleteEndpointConfigResponse'
instance Hashable DeleteEndpointConfig where
instance NFData DeleteEndpointConfig where
instance ToHeaders DeleteEndpointConfig where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("SageMaker.DeleteEndpointConfig" :: ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteEndpointConfig where
toJSON DeleteEndpointConfig'{..}
= object
(catMaybes
[Just
("EndpointConfigName" .= _dEndpointConfigName)])
instance ToPath DeleteEndpointConfig where
toPath = const "/"
instance ToQuery DeleteEndpointConfig where
toQuery = const mempty
data DeleteEndpointConfigResponse =
DeleteEndpointConfigResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteEndpointConfigResponse
:: DeleteEndpointConfigResponse
deleteEndpointConfigResponse = DeleteEndpointConfigResponse'
instance NFData DeleteEndpointConfigResponse where