{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Network.AWS.IAM.DeleteVirtualMFADevice
(
deleteVirtualMFADevice
, DeleteVirtualMFADevice
, dvmdSerialNumber
, deleteVirtualMFADeviceResponse
, DeleteVirtualMFADeviceResponse
) where
import Network.AWS.IAM.Types
import Network.AWS.IAM.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteVirtualMFADevice = DeleteVirtualMFADevice'
{ _dvmdSerialNumber :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteVirtualMFADevice
:: Text
-> DeleteVirtualMFADevice
deleteVirtualMFADevice pSerialNumber_ =
DeleteVirtualMFADevice'
{ _dvmdSerialNumber = pSerialNumber_
}
dvmdSerialNumber :: Lens' DeleteVirtualMFADevice Text
dvmdSerialNumber = lens _dvmdSerialNumber (\ s a -> s{_dvmdSerialNumber = a});
instance AWSRequest DeleteVirtualMFADevice where
type Rs DeleteVirtualMFADevice =
DeleteVirtualMFADeviceResponse
request = postQuery iam
response
= receiveNull DeleteVirtualMFADeviceResponse'
instance Hashable DeleteVirtualMFADevice
instance NFData DeleteVirtualMFADevice
instance ToHeaders DeleteVirtualMFADevice where
toHeaders = const mempty
instance ToPath DeleteVirtualMFADevice where
toPath = const "/"
instance ToQuery DeleteVirtualMFADevice where
toQuery DeleteVirtualMFADevice'{..}
= mconcat
["Action" =:
("DeleteVirtualMFADevice" :: ByteString),
"Version" =: ("2010-05-08" :: ByteString),
"SerialNumber" =: _dvmdSerialNumber]
data DeleteVirtualMFADeviceResponse =
DeleteVirtualMFADeviceResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteVirtualMFADeviceResponse
:: DeleteVirtualMFADeviceResponse
deleteVirtualMFADeviceResponse = DeleteVirtualMFADeviceResponse'
instance NFData DeleteVirtualMFADeviceResponse