module Network.AWS.AutoScaling.DeleteNotificationConfiguration
(
deleteNotificationConfiguration
, DeleteNotificationConfiguration
, dncAutoScalingGroupName
, dncTopicARN
, deleteNotificationConfigurationResponse
, DeleteNotificationConfigurationResponse
) where
import Network.AWS.AutoScaling.Types
import Network.AWS.AutoScaling.Types.Product
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
data DeleteNotificationConfiguration = DeleteNotificationConfiguration'
{ _dncAutoScalingGroupName :: !Text
, _dncTopicARN :: !Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteNotificationConfiguration
:: Text
-> Text
-> DeleteNotificationConfiguration
deleteNotificationConfiguration pAutoScalingGroupName_ pTopicARN_ =
DeleteNotificationConfiguration'
{ _dncAutoScalingGroupName = pAutoScalingGroupName_
, _dncTopicARN = pTopicARN_
}
dncAutoScalingGroupName :: Lens' DeleteNotificationConfiguration Text
dncAutoScalingGroupName = lens _dncAutoScalingGroupName (\ s a -> s{_dncAutoScalingGroupName = a});
dncTopicARN :: Lens' DeleteNotificationConfiguration Text
dncTopicARN = lens _dncTopicARN (\ s a -> s{_dncTopicARN = a});
instance AWSRequest DeleteNotificationConfiguration
where
type Rs DeleteNotificationConfiguration =
DeleteNotificationConfigurationResponse
request = postQuery autoScaling
response
= receiveNull
DeleteNotificationConfigurationResponse'
instance ToHeaders DeleteNotificationConfiguration
where
toHeaders = const mempty
instance ToPath DeleteNotificationConfiguration where
toPath = const "/"
instance ToQuery DeleteNotificationConfiguration
where
toQuery DeleteNotificationConfiguration'{..}
= mconcat
["Action" =:
("DeleteNotificationConfiguration" :: ByteString),
"Version" =: ("2011-01-01" :: ByteString),
"AutoScalingGroupName" =: _dncAutoScalingGroupName,
"TopicARN" =: _dncTopicARN]
data DeleteNotificationConfigurationResponse =
DeleteNotificationConfigurationResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteNotificationConfigurationResponse
:: DeleteNotificationConfigurationResponse
deleteNotificationConfigurationResponse =
DeleteNotificationConfigurationResponse'