{-# 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.APIGateway.DeleteDocumentationVersion
(
deleteDocumentationVersion
, DeleteDocumentationVersion
, ddvRestAPIId
, ddvDocumentationVersion
, deleteDocumentationVersionResponse
, DeleteDocumentationVersionResponse
) 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 DeleteDocumentationVersion = DeleteDocumentationVersion'
{ _ddvRestAPIId :: !Text
, _ddvDocumentationVersion :: !Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteDocumentationVersion
:: Text
-> Text
-> DeleteDocumentationVersion
deleteDocumentationVersion pRestAPIId_ pDocumentationVersion_ =
DeleteDocumentationVersion'
{ _ddvRestAPIId = pRestAPIId_
, _ddvDocumentationVersion = pDocumentationVersion_
}
ddvRestAPIId :: Lens' DeleteDocumentationVersion Text
ddvRestAPIId = lens _ddvRestAPIId (\ s a -> s{_ddvRestAPIId = a});
ddvDocumentationVersion :: Lens' DeleteDocumentationVersion Text
ddvDocumentationVersion = lens _ddvDocumentationVersion (\ s a -> s{_ddvDocumentationVersion = a});
instance AWSRequest DeleteDocumentationVersion where
type Rs DeleteDocumentationVersion =
DeleteDocumentationVersionResponse
request = delete apiGateway
response
= receiveNull DeleteDocumentationVersionResponse'
instance Hashable DeleteDocumentationVersion
instance NFData DeleteDocumentationVersion
instance ToHeaders DeleteDocumentationVersion where
toHeaders
= const
(mconcat
["Accept" =# ("application/json" :: ByteString)])
instance ToPath DeleteDocumentationVersion where
toPath DeleteDocumentationVersion'{..}
= mconcat
["/restapis/", toBS _ddvRestAPIId,
"/documentation/versions/",
toBS _ddvDocumentationVersion]
instance ToQuery DeleteDocumentationVersion where
toQuery = const mempty
data DeleteDocumentationVersionResponse =
DeleteDocumentationVersionResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteDocumentationVersionResponse
:: DeleteDocumentationVersionResponse
deleteDocumentationVersionResponse = DeleteDocumentationVersionResponse'
instance NFData DeleteDocumentationVersionResponse