{-# 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.ElasticBeanstalk.DeleteApplication
(
deleteApplication
, DeleteApplication
, daTerminateEnvByForce
, daApplicationName
, deleteApplicationResponse
, DeleteApplicationResponse
) where
import Network.AWS.ElasticBeanstalk.Types
import Network.AWS.ElasticBeanstalk.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
data DeleteApplication = DeleteApplication'
{ _daTerminateEnvByForce :: !(Maybe Bool)
, _daApplicationName :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteApplication
:: Text
-> DeleteApplication
deleteApplication pApplicationName_ =
DeleteApplication'
{_daTerminateEnvByForce = Nothing, _daApplicationName = pApplicationName_}
daTerminateEnvByForce :: Lens' DeleteApplication (Maybe Bool)
daTerminateEnvByForce = lens _daTerminateEnvByForce (\ s a -> s{_daTerminateEnvByForce = a})
daApplicationName :: Lens' DeleteApplication Text
daApplicationName = lens _daApplicationName (\ s a -> s{_daApplicationName = a})
instance AWSRequest DeleteApplication where
type Rs DeleteApplication = DeleteApplicationResponse
request = postQuery elasticBeanstalk
response = receiveNull DeleteApplicationResponse'
instance Hashable DeleteApplication where
instance NFData DeleteApplication where
instance ToHeaders DeleteApplication where
toHeaders = const mempty
instance ToPath DeleteApplication where
toPath = const "/"
instance ToQuery DeleteApplication where
toQuery DeleteApplication'{..}
= mconcat
["Action" =: ("DeleteApplication" :: ByteString),
"Version" =: ("2010-12-01" :: ByteString),
"TerminateEnvByForce" =: _daTerminateEnvByForce,
"ApplicationName" =: _daApplicationName]
data DeleteApplicationResponse =
DeleteApplicationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteApplicationResponse
:: DeleteApplicationResponse
deleteApplicationResponse = DeleteApplicationResponse'
instance NFData DeleteApplicationResponse where