module Network.AWS.CloudWatch.EnableAlarmActions
(
enableAlarmActions
, EnableAlarmActions
, eaaAlarmNames
, enableAlarmActionsResponse
, EnableAlarmActionsResponse
) where
import Network.AWS.CloudWatch.Types
import Network.AWS.CloudWatch.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype EnableAlarmActions = EnableAlarmActions'
{ _eaaAlarmNames :: [Text]
} deriving (Eq,Read,Show,Data,Typeable,Generic)
enableAlarmActions
:: EnableAlarmActions
enableAlarmActions =
EnableAlarmActions'
{ _eaaAlarmNames = mempty
}
eaaAlarmNames :: Lens' EnableAlarmActions [Text]
eaaAlarmNames = lens _eaaAlarmNames (\ s a -> s{_eaaAlarmNames = a}) . _Coerce;
instance AWSRequest EnableAlarmActions where
type Rs EnableAlarmActions =
EnableAlarmActionsResponse
request = postQuery cloudWatch
response = receiveNull EnableAlarmActionsResponse'
instance Hashable EnableAlarmActions
instance NFData EnableAlarmActions
instance ToHeaders EnableAlarmActions where
toHeaders = const mempty
instance ToPath EnableAlarmActions where
toPath = const "/"
instance ToQuery EnableAlarmActions where
toQuery EnableAlarmActions'{..}
= mconcat
["Action" =: ("EnableAlarmActions" :: ByteString),
"Version" =: ("2010-08-01" :: ByteString),
"AlarmNames" =: toQueryList "member" _eaaAlarmNames]
data EnableAlarmActionsResponse =
EnableAlarmActionsResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
enableAlarmActionsResponse
:: EnableAlarmActionsResponse
enableAlarmActionsResponse = EnableAlarmActionsResponse'
instance NFData EnableAlarmActionsResponse