module Network.AWS.APIGateway.DeleteBasePathMapping
(
deleteBasePathMapping
, DeleteBasePathMapping
, dbpmDomainName
, dbpmBasePath
, deleteBasePathMappingResponse
, DeleteBasePathMappingResponse
) where
import Network.AWS.APIGateway.Types
import Network.AWS.APIGateway.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
data DeleteBasePathMapping = DeleteBasePathMapping'
{ _dbpmDomainName :: !Text
, _dbpmBasePath :: !Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteBasePathMapping
:: Text
-> Text
-> DeleteBasePathMapping
deleteBasePathMapping pDomainName_ pBasePath_ =
DeleteBasePathMapping'
{ _dbpmDomainName = pDomainName_
, _dbpmBasePath = pBasePath_
}
dbpmDomainName :: Lens' DeleteBasePathMapping Text
dbpmDomainName = lens _dbpmDomainName (\ s a -> s{_dbpmDomainName = a});
dbpmBasePath :: Lens' DeleteBasePathMapping Text
dbpmBasePath = lens _dbpmBasePath (\ s a -> s{_dbpmBasePath = a});
instance AWSRequest DeleteBasePathMapping where
type Rs DeleteBasePathMapping =
DeleteBasePathMappingResponse
request = delete apiGateway
response = receiveNull DeleteBasePathMappingResponse'
instance Hashable DeleteBasePathMapping
instance ToHeaders DeleteBasePathMapping where
toHeaders
= const
(mconcat
["Accept" =# ("application/json" :: ByteString)])
instance ToPath DeleteBasePathMapping where
toPath DeleteBasePathMapping'{..}
= mconcat
["/domainnames/", toBS _dbpmDomainName,
"/basepathmappings/", toBS _dbpmBasePath]
instance ToQuery DeleteBasePathMapping where
toQuery = const mempty
data DeleteBasePathMappingResponse =
DeleteBasePathMappingResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteBasePathMappingResponse
:: DeleteBasePathMappingResponse
deleteBasePathMappingResponse = DeleteBasePathMappingResponse'