{-# 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.EC2.DeleteNetworkACL
(
deleteNetworkACL
, DeleteNetworkACL
, dnaDryRun
, dnaNetworkACLId
, deleteNetworkACLResponse
, DeleteNetworkACLResponse
) 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 DeleteNetworkACL = DeleteNetworkACL'
{ _dnaDryRun :: !(Maybe Bool)
, _dnaNetworkACLId :: !Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteNetworkACL
:: Text
-> DeleteNetworkACL
deleteNetworkACL pNetworkACLId_ =
DeleteNetworkACL'
{ _dnaDryRun = Nothing
, _dnaNetworkACLId = pNetworkACLId_
}
dnaDryRun :: Lens' DeleteNetworkACL (Maybe Bool)
dnaDryRun = lens _dnaDryRun (\ s a -> s{_dnaDryRun = a});
dnaNetworkACLId :: Lens' DeleteNetworkACL Text
dnaNetworkACLId = lens _dnaNetworkACLId (\ s a -> s{_dnaNetworkACLId = a});
instance AWSRequest DeleteNetworkACL where
type Rs DeleteNetworkACL = DeleteNetworkACLResponse
request = postQuery ec2
response = receiveNull DeleteNetworkACLResponse'
instance Hashable DeleteNetworkACL
instance NFData DeleteNetworkACL
instance ToHeaders DeleteNetworkACL where
toHeaders = const mempty
instance ToPath DeleteNetworkACL where
toPath = const "/"
instance ToQuery DeleteNetworkACL where
toQuery DeleteNetworkACL'{..}
= mconcat
["Action" =: ("DeleteNetworkAcl" :: ByteString),
"Version" =: ("2016-11-15" :: ByteString),
"DryRun" =: _dnaDryRun,
"NetworkAclId" =: _dnaNetworkACLId]
data DeleteNetworkACLResponse =
DeleteNetworkACLResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteNetworkACLResponse
:: DeleteNetworkACLResponse
deleteNetworkACLResponse = DeleteNetworkACLResponse'
instance NFData DeleteNetworkACLResponse