{-# 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.SQS.RemovePermission
(
removePermission
, RemovePermission
, rpQueueURL
, rpLabel
, removePermissionResponse
, RemovePermissionResponse
) where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
import Network.AWS.SQS.Types
import Network.AWS.SQS.Types.Product
data RemovePermission = RemovePermission'
{ _rpQueueURL :: !Text
, _rpLabel :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
removePermission
:: Text
-> Text
-> RemovePermission
removePermission pQueueURL_ pLabel_ =
RemovePermission' {_rpQueueURL = pQueueURL_, _rpLabel = pLabel_}
rpQueueURL :: Lens' RemovePermission Text
rpQueueURL = lens _rpQueueURL (\ s a -> s{_rpQueueURL = a})
rpLabel :: Lens' RemovePermission Text
rpLabel = lens _rpLabel (\ s a -> s{_rpLabel = a})
instance AWSRequest RemovePermission where
type Rs RemovePermission = RemovePermissionResponse
request = postQuery sqs
response = receiveNull RemovePermissionResponse'
instance Hashable RemovePermission where
instance NFData RemovePermission where
instance ToHeaders RemovePermission where
toHeaders = const mempty
instance ToPath RemovePermission where
toPath = const "/"
instance ToQuery RemovePermission where
toQuery RemovePermission'{..}
= mconcat
["Action" =: ("RemovePermission" :: ByteString),
"Version" =: ("2012-11-05" :: ByteString),
"QueueUrl" =: _rpQueueURL, "Label" =: _rpLabel]
data RemovePermissionResponse =
RemovePermissionResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
removePermissionResponse
:: RemovePermissionResponse
removePermissionResponse = RemovePermissionResponse'
instance NFData RemovePermissionResponse where