module Network.AWS.AutoScaling.DeleteScheduledAction
(
DeleteScheduledAction
, deleteScheduledAction
, dsaAutoScalingGroupName
, dsaScheduledActionName
, DeleteScheduledActionResponse
, deleteScheduledActionResponse
) where
import Network.AWS.Prelude
import Network.AWS.Request.Query
import Network.AWS.AutoScaling.Types
import qualified GHC.Exts
data DeleteScheduledAction = DeleteScheduledAction
{ _dsaAutoScalingGroupName :: Maybe Text
, _dsaScheduledActionName :: Text
} deriving (Eq, Ord, Read, Show)
deleteScheduledAction :: Text
-> DeleteScheduledAction
deleteScheduledAction p1 = DeleteScheduledAction
{ _dsaScheduledActionName = p1
, _dsaAutoScalingGroupName = Nothing
}
dsaAutoScalingGroupName :: Lens' DeleteScheduledAction (Maybe Text)
dsaAutoScalingGroupName =
lens _dsaAutoScalingGroupName (\s a -> s { _dsaAutoScalingGroupName = a })
dsaScheduledActionName :: Lens' DeleteScheduledAction Text
dsaScheduledActionName =
lens _dsaScheduledActionName (\s a -> s { _dsaScheduledActionName = a })
data DeleteScheduledActionResponse = DeleteScheduledActionResponse
deriving (Eq, Ord, Read, Show, Generic)
deleteScheduledActionResponse :: DeleteScheduledActionResponse
deleteScheduledActionResponse = DeleteScheduledActionResponse
instance ToPath DeleteScheduledAction where
toPath = const "/"
instance ToQuery DeleteScheduledAction where
toQuery DeleteScheduledAction{..} = mconcat
[ "AutoScalingGroupName" =? _dsaAutoScalingGroupName
, "ScheduledActionName" =? _dsaScheduledActionName
]
instance ToHeaders DeleteScheduledAction
instance AWSRequest DeleteScheduledAction where
type Sv DeleteScheduledAction = AutoScaling
type Rs DeleteScheduledAction = DeleteScheduledActionResponse
request = post "DeleteScheduledAction"
response = nullResponse DeleteScheduledActionResponse