{-# 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.SNS.DeletePlatformApplication
(
deletePlatformApplication
, DeletePlatformApplication
, dpaPlatformApplicationARN
, deletePlatformApplicationResponse
, DeletePlatformApplicationResponse
) where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
import Network.AWS.SNS.Types
import Network.AWS.SNS.Types.Product
newtype DeletePlatformApplication = DeletePlatformApplication'
{ _dpaPlatformApplicationARN :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deletePlatformApplication
:: Text
-> DeletePlatformApplication
deletePlatformApplication pPlatformApplicationARN_ =
DeletePlatformApplication'
{_dpaPlatformApplicationARN = pPlatformApplicationARN_}
dpaPlatformApplicationARN :: Lens' DeletePlatformApplication Text
dpaPlatformApplicationARN = lens _dpaPlatformApplicationARN (\ s a -> s{_dpaPlatformApplicationARN = a})
instance AWSRequest DeletePlatformApplication where
type Rs DeletePlatformApplication =
DeletePlatformApplicationResponse
request = postQuery sns
response
= receiveNull DeletePlatformApplicationResponse'
instance Hashable DeletePlatformApplication where
instance NFData DeletePlatformApplication where
instance ToHeaders DeletePlatformApplication where
toHeaders = const mempty
instance ToPath DeletePlatformApplication where
toPath = const "/"
instance ToQuery DeletePlatformApplication where
toQuery DeletePlatformApplication'{..}
= mconcat
["Action" =:
("DeletePlatformApplication" :: ByteString),
"Version" =: ("2010-03-31" :: ByteString),
"PlatformApplicationArn" =:
_dpaPlatformApplicationARN]
data DeletePlatformApplicationResponse =
DeletePlatformApplicationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deletePlatformApplicationResponse
:: DeletePlatformApplicationResponse
deletePlatformApplicationResponse = DeletePlatformApplicationResponse'
instance NFData DeletePlatformApplicationResponse
where