{-# 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.ContinueUpdateRollback
(
continueUpdateRollback
, ContinueUpdateRollback
, curStackName
, continueUpdateRollbackResponse
, ContinueUpdateRollbackResponse
, currsResponseStatus
) 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 ContinueUpdateRollback = ContinueUpdateRollback'
{ _curStackName :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
continueUpdateRollback
:: Text
-> ContinueUpdateRollback
continueUpdateRollback pStackName_ =
ContinueUpdateRollback'
{ _curStackName = pStackName_
}
curStackName :: Lens' ContinueUpdateRollback Text
curStackName = lens _curStackName (\ s a -> s{_curStackName = a});
instance AWSRequest ContinueUpdateRollback where
type Rs ContinueUpdateRollback =
ContinueUpdateRollbackResponse
request = postQuery cloudFormation
response
= receiveXMLWrapper "ContinueUpdateRollbackResult"
(\ s h x ->
ContinueUpdateRollbackResponse' <$>
(pure (fromEnum s)))
instance Hashable ContinueUpdateRollback
instance NFData ContinueUpdateRollback
instance ToHeaders ContinueUpdateRollback where
toHeaders = const mempty
instance ToPath ContinueUpdateRollback where
toPath = const "/"
instance ToQuery ContinueUpdateRollback where
toQuery ContinueUpdateRollback'{..}
= mconcat
["Action" =:
("ContinueUpdateRollback" :: ByteString),
"Version" =: ("2010-05-15" :: ByteString),
"StackName" =: _curStackName]
newtype ContinueUpdateRollbackResponse = ContinueUpdateRollbackResponse'
{ _currsResponseStatus :: Int
} deriving (Eq,Read,Show,Data,Typeable,Generic)
continueUpdateRollbackResponse
:: Int
-> ContinueUpdateRollbackResponse
continueUpdateRollbackResponse pResponseStatus_ =
ContinueUpdateRollbackResponse'
{ _currsResponseStatus = pResponseStatus_
}
currsResponseStatus :: Lens' ContinueUpdateRollbackResponse Int
currsResponseStatus = lens _currsResponseStatus (\ s a -> s{_currsResponseStatus = a});
instance NFData ContinueUpdateRollbackResponse