module Network.AWS.Config.StopConfigurationRecorder
(
StopConfigurationRecorder
, stopConfigurationRecorder
, scrConfigurationRecorderName
, StopConfigurationRecorderResponse
, stopConfigurationRecorderResponse
) where
import Network.AWS.Prelude
import Network.AWS.Request.JSON
import Network.AWS.Config.Types
import qualified GHC.Exts
newtype StopConfigurationRecorder = StopConfigurationRecorder
{ _scrConfigurationRecorderName :: Text
} deriving (Eq, Ord, Show, Monoid, IsString)
stopConfigurationRecorder :: Text
-> StopConfigurationRecorder
stopConfigurationRecorder p1 = StopConfigurationRecorder
{ _scrConfigurationRecorderName = p1
}
scrConfigurationRecorderName :: Lens' StopConfigurationRecorder Text
scrConfigurationRecorderName =
lens _scrConfigurationRecorderName
(\s a -> s { _scrConfigurationRecorderName = a })
data StopConfigurationRecorderResponse = StopConfigurationRecorderResponse
deriving (Eq, Ord, Show, Generic)
stopConfigurationRecorderResponse :: StopConfigurationRecorderResponse
stopConfigurationRecorderResponse = StopConfigurationRecorderResponse
instance ToPath StopConfigurationRecorder where
toPath = const "/"
instance ToQuery StopConfigurationRecorder where
toQuery = const mempty
instance ToHeaders StopConfigurationRecorder
instance ToJSON StopConfigurationRecorder where
toJSON StopConfigurationRecorder{..} = object
[ "ConfigurationRecorderName" .= _scrConfigurationRecorderName
]
instance AWSRequest StopConfigurationRecorder where
type Sv StopConfigurationRecorder = Config
type Rs StopConfigurationRecorder = StopConfigurationRecorderResponse
request = post "StopConfigurationRecorder"
response = nullResponse StopConfigurationRecorderResponse