module Network.AWS.EC2.DeleteNetworkInterface
(
deleteNetworkInterface
, DeleteNetworkInterface
, dninDryRun
, dninNetworkInterfaceId
, deleteNetworkInterfaceResponse
, DeleteNetworkInterfaceResponse
) where
import Network.AWS.EC2.Types
import Network.AWS.EC2.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
data DeleteNetworkInterface = DeleteNetworkInterface'
{ _dninDryRun :: !(Maybe Bool)
, _dninNetworkInterfaceId :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteNetworkInterface
:: Text
-> DeleteNetworkInterface
deleteNetworkInterface pNetworkInterfaceId_ =
DeleteNetworkInterface'
{_dninDryRun = Nothing, _dninNetworkInterfaceId = pNetworkInterfaceId_}
dninDryRun :: Lens' DeleteNetworkInterface (Maybe Bool)
dninDryRun = lens _dninDryRun (\ s a -> s{_dninDryRun = a});
dninNetworkInterfaceId :: Lens' DeleteNetworkInterface Text
dninNetworkInterfaceId = lens _dninNetworkInterfaceId (\ s a -> s{_dninNetworkInterfaceId = a});
instance AWSRequest DeleteNetworkInterface where
type Rs DeleteNetworkInterface =
DeleteNetworkInterfaceResponse
request = postQuery ec2
response
= receiveNull DeleteNetworkInterfaceResponse'
instance Hashable DeleteNetworkInterface where
instance NFData DeleteNetworkInterface where
instance ToHeaders DeleteNetworkInterface where
toHeaders = const mempty
instance ToPath DeleteNetworkInterface where
toPath = const "/"
instance ToQuery DeleteNetworkInterface where
toQuery DeleteNetworkInterface'{..}
= mconcat
["Action" =:
("DeleteNetworkInterface" :: ByteString),
"Version" =: ("2016-11-15" :: ByteString),
"DryRun" =: _dninDryRun,
"NetworkInterfaceId" =: _dninNetworkInterfaceId]
data DeleteNetworkInterfaceResponse =
DeleteNetworkInterfaceResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteNetworkInterfaceResponse
:: DeleteNetworkInterfaceResponse
deleteNetworkInterfaceResponse = DeleteNetworkInterfaceResponse'
instance NFData DeleteNetworkInterfaceResponse where