{-# 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.SMS.DeleteServerCatalog
(
deleteServerCatalog
, DeleteServerCatalog
, deleteServerCatalogResponse
, DeleteServerCatalogResponse
, dscrsResponseStatus
) where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
import Network.AWS.SMS.Types
import Network.AWS.SMS.Types.Product
data DeleteServerCatalog =
DeleteServerCatalog'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteServerCatalog
:: DeleteServerCatalog
deleteServerCatalog = DeleteServerCatalog'
instance AWSRequest DeleteServerCatalog where
type Rs DeleteServerCatalog =
DeleteServerCatalogResponse
request = postJSON sms
response
= receiveEmpty
(\ s h x ->
DeleteServerCatalogResponse' <$> (pure (fromEnum s)))
instance Hashable DeleteServerCatalog where
instance NFData DeleteServerCatalog where
instance ToHeaders DeleteServerCatalog where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("AWSServerMigrationService_V2016_10_24.DeleteServerCatalog"
:: ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteServerCatalog where
toJSON = const (Object mempty)
instance ToPath DeleteServerCatalog where
toPath = const "/"
instance ToQuery DeleteServerCatalog where
toQuery = const mempty
newtype DeleteServerCatalogResponse = DeleteServerCatalogResponse'
{ _dscrsResponseStatus :: Int
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteServerCatalogResponse
:: Int
-> DeleteServerCatalogResponse
deleteServerCatalogResponse pResponseStatus_ =
DeleteServerCatalogResponse' {_dscrsResponseStatus = pResponseStatus_}
dscrsResponseStatus :: Lens' DeleteServerCatalogResponse Int
dscrsResponseStatus = lens _dscrsResponseStatus (\ s a -> s{_dscrsResponseStatus = a})
instance NFData DeleteServerCatalogResponse where