{-# 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.CloudFormation.DeleteStackSet
(
deleteStackSet
, DeleteStackSet
, dssStackSetName
, deleteStackSetResponse
, DeleteStackSetResponse
, dssrsResponseStatus
) where
import Network.AWS.CloudFormation.Types
import Network.AWS.CloudFormation.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteStackSet = DeleteStackSet'
{ _dssStackSetName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteStackSet
:: Text
-> DeleteStackSet
deleteStackSet pStackSetName_ =
DeleteStackSet' {_dssStackSetName = pStackSetName_}
dssStackSetName :: Lens' DeleteStackSet Text
dssStackSetName = lens _dssStackSetName (\ s a -> s{_dssStackSetName = a})
instance AWSRequest DeleteStackSet where
type Rs DeleteStackSet = DeleteStackSetResponse
request = postQuery cloudFormation
response
= receiveXMLWrapper "DeleteStackSetResult"
(\ s h x ->
DeleteStackSetResponse' <$> (pure (fromEnum s)))
instance Hashable DeleteStackSet where
instance NFData DeleteStackSet where
instance ToHeaders DeleteStackSet where
toHeaders = const mempty
instance ToPath DeleteStackSet where
toPath = const "/"
instance ToQuery DeleteStackSet where
toQuery DeleteStackSet'{..}
= mconcat
["Action" =: ("DeleteStackSet" :: ByteString),
"Version" =: ("2010-05-15" :: ByteString),
"StackSetName" =: _dssStackSetName]
newtype DeleteStackSetResponse = DeleteStackSetResponse'
{ _dssrsResponseStatus :: Int
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteStackSetResponse
:: Int
-> DeleteStackSetResponse
deleteStackSetResponse pResponseStatus_ =
DeleteStackSetResponse' {_dssrsResponseStatus = pResponseStatus_}
dssrsResponseStatus :: Lens' DeleteStackSetResponse Int
dssrsResponseStatus = lens _dssrsResponseStatus (\ s a -> s{_dssrsResponseStatus = a})
instance NFData DeleteStackSetResponse where