{-# 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.DeleteUsagePlanKey
(
deleteUsagePlanKey
, DeleteUsagePlanKey
, dupkUsagePlanId
, dupkKeyId
, deleteUsagePlanKeyResponse
, DeleteUsagePlanKeyResponse
) 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 DeleteUsagePlanKey = DeleteUsagePlanKey'
{ _dupkUsagePlanId :: !Text
, _dupkKeyId :: !Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteUsagePlanKey
:: Text
-> Text
-> DeleteUsagePlanKey
deleteUsagePlanKey pUsagePlanId_ pKeyId_ =
DeleteUsagePlanKey'
{ _dupkUsagePlanId = pUsagePlanId_
, _dupkKeyId = pKeyId_
}
dupkUsagePlanId :: Lens' DeleteUsagePlanKey Text
dupkUsagePlanId = lens _dupkUsagePlanId (\ s a -> s{_dupkUsagePlanId = a});
dupkKeyId :: Lens' DeleteUsagePlanKey Text
dupkKeyId = lens _dupkKeyId (\ s a -> s{_dupkKeyId = a});
instance AWSRequest DeleteUsagePlanKey where
type Rs DeleteUsagePlanKey =
DeleteUsagePlanKeyResponse
request = delete apiGateway
response = receiveNull DeleteUsagePlanKeyResponse'
instance Hashable DeleteUsagePlanKey
instance NFData DeleteUsagePlanKey
instance ToHeaders DeleteUsagePlanKey where
toHeaders
= const
(mconcat
["Accept" =# ("application/json" :: ByteString)])
instance ToPath DeleteUsagePlanKey where
toPath DeleteUsagePlanKey'{..}
= mconcat
["/usageplans/", toBS _dupkUsagePlanId, "/keys/",
toBS _dupkKeyId]
instance ToQuery DeleteUsagePlanKey where
toQuery = const mempty
data DeleteUsagePlanKeyResponse =
DeleteUsagePlanKeyResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteUsagePlanKeyResponse
:: DeleteUsagePlanKeyResponse
deleteUsagePlanKeyResponse = DeleteUsagePlanKeyResponse'
instance NFData DeleteUsagePlanKeyResponse