module Network.AWS.CloudWatchLogs.DeleteMetricFilter
(
DeleteMetricFilter
, deleteMetricFilter
, dmf1FilterName
, dmf1LogGroupName
, DeleteMetricFilterResponse
, deleteMetricFilterResponse
) where
import Network.AWS.Prelude
import Network.AWS.Request.JSON
import Network.AWS.CloudWatchLogs.Types
import qualified GHC.Exts
data DeleteMetricFilter = DeleteMetricFilter
{ _dmf1FilterName :: Text
, _dmf1LogGroupName :: Text
} deriving (Eq, Ord, Show)
deleteMetricFilter :: Text
-> Text
-> DeleteMetricFilter
deleteMetricFilter p1 p2 = DeleteMetricFilter
{ _dmf1LogGroupName = p1
, _dmf1FilterName = p2
}
dmf1FilterName :: Lens' DeleteMetricFilter Text
dmf1FilterName = lens _dmf1FilterName (\s a -> s { _dmf1FilterName = a })
dmf1LogGroupName :: Lens' DeleteMetricFilter Text
dmf1LogGroupName = lens _dmf1LogGroupName (\s a -> s { _dmf1LogGroupName = a })
data DeleteMetricFilterResponse = DeleteMetricFilterResponse
deriving (Eq, Ord, Show, Generic)
deleteMetricFilterResponse :: DeleteMetricFilterResponse
deleteMetricFilterResponse = DeleteMetricFilterResponse
instance ToPath DeleteMetricFilter where
toPath = const "/"
instance ToQuery DeleteMetricFilter where
toQuery = const mempty
instance ToHeaders DeleteMetricFilter
instance ToJSON DeleteMetricFilter where
toJSON DeleteMetricFilter{..} = object
[ "logGroupName" .= _dmf1LogGroupName
, "filterName" .= _dmf1FilterName
]
instance AWSRequest DeleteMetricFilter where
type Sv DeleteMetricFilter = CloudWatchLogs
type Rs DeleteMetricFilter = DeleteMetricFilterResponse
request = post "DeleteMetricFilter"
response = nullResponse DeleteMetricFilterResponse