{-# 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.ServerlessApplicationRepository.DeleteApplication
(
deleteApplication
, DeleteApplication
, daApplicationId
, deleteApplicationResponse
, DeleteApplicationResponse
) where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
import Network.AWS.ServerlessApplicationRepository.Types
import Network.AWS.ServerlessApplicationRepository.Types.Product
newtype DeleteApplication = DeleteApplication'
{ _daApplicationId :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteApplication
:: Text
-> DeleteApplication
deleteApplication pApplicationId_ =
DeleteApplication' {_daApplicationId = pApplicationId_}
daApplicationId :: Lens' DeleteApplication Text
daApplicationId = lens _daApplicationId (\ s a -> s{_daApplicationId = a})
instance AWSRequest DeleteApplication where
type Rs DeleteApplication = DeleteApplicationResponse
request = delete serverlessApplicationRepository
response = receiveNull DeleteApplicationResponse'
instance Hashable DeleteApplication where
instance NFData DeleteApplication where
instance ToHeaders DeleteApplication where
toHeaders
= const
(mconcat
["Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToPath DeleteApplication where
toPath DeleteApplication'{..}
= mconcat ["/applications/", toBS _daApplicationId]
instance ToQuery DeleteApplication where
toQuery = const mempty
data DeleteApplicationResponse =
DeleteApplicationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteApplicationResponse
:: DeleteApplicationResponse
deleteApplicationResponse = DeleteApplicationResponse'
instance NFData DeleteApplicationResponse where