module Network.AWS.Redshift.DeleteHSMConfiguration
(
deleteHSMConfiguration
, DeleteHSMConfiguration
, dhcHSMConfigurationIdentifier
, deleteHSMConfigurationResponse
, DeleteHSMConfigurationResponse
) where
import Network.AWS.Prelude
import Network.AWS.Redshift.Types
import Network.AWS.Redshift.Types.Product
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteHSMConfiguration = DeleteHSMConfiguration'
{ _dhcHSMConfigurationIdentifier :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteHSMConfiguration
:: Text
-> DeleteHSMConfiguration
deleteHSMConfiguration pHSMConfigurationIdentifier_ =
DeleteHSMConfiguration'
{ _dhcHSMConfigurationIdentifier = pHSMConfigurationIdentifier_
}
dhcHSMConfigurationIdentifier :: Lens' DeleteHSMConfiguration Text
dhcHSMConfigurationIdentifier = lens _dhcHSMConfigurationIdentifier (\ s a -> s{_dhcHSMConfigurationIdentifier = a});
instance AWSRequest DeleteHSMConfiguration where
type Sv DeleteHSMConfiguration = Redshift
type Rs DeleteHSMConfiguration =
DeleteHSMConfigurationResponse
request = postQuery
response
= receiveNull DeleteHSMConfigurationResponse'
instance ToHeaders DeleteHSMConfiguration where
toHeaders = const mempty
instance ToPath DeleteHSMConfiguration where
toPath = const "/"
instance ToQuery DeleteHSMConfiguration where
toQuery DeleteHSMConfiguration'{..}
= mconcat
["Action" =:
("DeleteHsmConfiguration" :: ByteString),
"Version" =: ("2012-12-01" :: ByteString),
"HsmConfigurationIdentifier" =:
_dhcHSMConfigurationIdentifier]
data DeleteHSMConfigurationResponse =
DeleteHSMConfigurationResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteHSMConfigurationResponse
:: DeleteHSMConfigurationResponse
deleteHSMConfigurationResponse = DeleteHSMConfigurationResponse'