module Network.AWS.RDS.DeleteOptionGroup
(
deleteOptionGroup
, DeleteOptionGroup
, dOptionGroupName
, deleteOptionGroupResponse
, DeleteOptionGroupResponse
) where
import Network.AWS.Prelude
import Network.AWS.RDS.Types
import Network.AWS.RDS.Types.Product
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteOptionGroup = DeleteOptionGroup'
{ _dOptionGroupName :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteOptionGroup
:: Text
-> DeleteOptionGroup
deleteOptionGroup pOptionGroupName_ =
DeleteOptionGroup'
{ _dOptionGroupName = pOptionGroupName_
}
dOptionGroupName :: Lens' DeleteOptionGroup Text
dOptionGroupName = lens _dOptionGroupName (\ s a -> s{_dOptionGroupName = a});
instance AWSRequest DeleteOptionGroup where
type Sv DeleteOptionGroup = RDS
type Rs DeleteOptionGroup = DeleteOptionGroupResponse
request = postQuery
response = receiveNull DeleteOptionGroupResponse'
instance ToHeaders DeleteOptionGroup where
toHeaders = const mempty
instance ToPath DeleteOptionGroup where
toPath = const "/"
instance ToQuery DeleteOptionGroup where
toQuery DeleteOptionGroup'{..}
= mconcat
["Action" =: ("DeleteOptionGroup" :: ByteString),
"Version" =: ("2014-10-31" :: ByteString),
"OptionGroupName" =: _dOptionGroupName]
data DeleteOptionGroupResponse =
DeleteOptionGroupResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteOptionGroupResponse
:: DeleteOptionGroupResponse
deleteOptionGroupResponse = DeleteOptionGroupResponse'