{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SNS.DeletePlatformApplication
(
DeletePlatformApplication (..),
newDeletePlatformApplication,
deletePlatformApplication_platformApplicationArn,
DeletePlatformApplicationResponse (..),
newDeletePlatformApplicationResponse,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SNS.Types
data DeletePlatformApplication = DeletePlatformApplication'
{
DeletePlatformApplication -> Text
platformApplicationArn :: Prelude.Text
}
deriving (DeletePlatformApplication -> DeletePlatformApplication -> Bool
(DeletePlatformApplication -> DeletePlatformApplication -> Bool)
-> (DeletePlatformApplication -> DeletePlatformApplication -> Bool)
-> Eq DeletePlatformApplication
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeletePlatformApplication -> DeletePlatformApplication -> Bool
== :: DeletePlatformApplication -> DeletePlatformApplication -> Bool
$c/= :: DeletePlatformApplication -> DeletePlatformApplication -> Bool
/= :: DeletePlatformApplication -> DeletePlatformApplication -> Bool
Prelude.Eq, ReadPrec [DeletePlatformApplication]
ReadPrec DeletePlatformApplication
Int -> ReadS DeletePlatformApplication
ReadS [DeletePlatformApplication]
(Int -> ReadS DeletePlatformApplication)
-> ReadS [DeletePlatformApplication]
-> ReadPrec DeletePlatformApplication
-> ReadPrec [DeletePlatformApplication]
-> Read DeletePlatformApplication
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS DeletePlatformApplication
readsPrec :: Int -> ReadS DeletePlatformApplication
$creadList :: ReadS [DeletePlatformApplication]
readList :: ReadS [DeletePlatformApplication]
$creadPrec :: ReadPrec DeletePlatformApplication
readPrec :: ReadPrec DeletePlatformApplication
$creadListPrec :: ReadPrec [DeletePlatformApplication]
readListPrec :: ReadPrec [DeletePlatformApplication]
Prelude.Read, Int -> DeletePlatformApplication -> ShowS
[DeletePlatformApplication] -> ShowS
DeletePlatformApplication -> String
(Int -> DeletePlatformApplication -> ShowS)
-> (DeletePlatformApplication -> String)
-> ([DeletePlatformApplication] -> ShowS)
-> Show DeletePlatformApplication
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeletePlatformApplication -> ShowS
showsPrec :: Int -> DeletePlatformApplication -> ShowS
$cshow :: DeletePlatformApplication -> String
show :: DeletePlatformApplication -> String
$cshowList :: [DeletePlatformApplication] -> ShowS
showList :: [DeletePlatformApplication] -> ShowS
Prelude.Show, (forall x.
DeletePlatformApplication -> Rep DeletePlatformApplication x)
-> (forall x.
Rep DeletePlatformApplication x -> DeletePlatformApplication)
-> Generic DeletePlatformApplication
forall x.
Rep DeletePlatformApplication x -> DeletePlatformApplication
forall x.
DeletePlatformApplication -> Rep DeletePlatformApplication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x.
DeletePlatformApplication -> Rep DeletePlatformApplication x
from :: forall x.
DeletePlatformApplication -> Rep DeletePlatformApplication x
$cto :: forall x.
Rep DeletePlatformApplication x -> DeletePlatformApplication
to :: forall x.
Rep DeletePlatformApplication x -> DeletePlatformApplication
Prelude.Generic)
newDeletePlatformApplication ::
Prelude.Text ->
DeletePlatformApplication
newDeletePlatformApplication :: Text -> DeletePlatformApplication
newDeletePlatformApplication Text
pPlatformApplicationArn_ =
DeletePlatformApplication'
{ platformApplicationArn :: Text
platformApplicationArn =
Text
pPlatformApplicationArn_
}
deletePlatformApplication_platformApplicationArn :: Lens.Lens' DeletePlatformApplication Prelude.Text
deletePlatformApplication_platformApplicationArn :: Lens' DeletePlatformApplication Text
deletePlatformApplication_platformApplicationArn = (DeletePlatformApplication -> Text)
-> (DeletePlatformApplication -> Text -> DeletePlatformApplication)
-> Lens' DeletePlatformApplication Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeletePlatformApplication' {Text
platformApplicationArn :: DeletePlatformApplication -> Text
platformApplicationArn :: Text
platformApplicationArn} -> Text
platformApplicationArn) (\s :: DeletePlatformApplication
s@DeletePlatformApplication' {} Text
a -> DeletePlatformApplication
s {platformApplicationArn = a} :: DeletePlatformApplication)
instance Core.AWSRequest DeletePlatformApplication where
type
AWSResponse DeletePlatformApplication =
DeletePlatformApplicationResponse
request :: (Service -> Service)
-> DeletePlatformApplication -> Request DeletePlatformApplication
request Service -> Service
overrides =
Service
-> DeletePlatformApplication -> Request DeletePlatformApplication
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DeletePlatformApplication
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeletePlatformApplication)))
response =
AWSResponse DeletePlatformApplication
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DeletePlatformApplication
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeletePlatformApplication)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeletePlatformApplication
DeletePlatformApplicationResponse
DeletePlatformApplicationResponse'
instance Prelude.Hashable DeletePlatformApplication where
hashWithSalt :: Int -> DeletePlatformApplication -> Int
hashWithSalt Int
_salt DeletePlatformApplication' {Text
platformApplicationArn :: DeletePlatformApplication -> Text
platformApplicationArn :: Text
..} =
Int
_salt Int -> Text -> Int
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
platformApplicationArn
instance Prelude.NFData DeletePlatformApplication where
rnf :: DeletePlatformApplication -> ()
rnf DeletePlatformApplication' {Text
platformApplicationArn :: DeletePlatformApplication -> Text
platformApplicationArn :: Text
..} =
Text -> ()
forall a. NFData a => a -> ()
Prelude.rnf Text
platformApplicationArn
instance Data.ToHeaders DeletePlatformApplication where
toHeaders :: DeletePlatformApplication -> [Header]
toHeaders = [Header] -> DeletePlatformApplication -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Data.ToPath DeletePlatformApplication where
toPath :: DeletePlatformApplication -> ByteString
toPath = ByteString -> DeletePlatformApplication -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DeletePlatformApplication where
toQuery :: DeletePlatformApplication -> QueryString
toQuery DeletePlatformApplication' {Text
platformApplicationArn :: DeletePlatformApplication -> Text
platformApplicationArn :: Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"DeletePlatformApplication" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: (ByteString
"2010-03-31" :: Prelude.ByteString),
ByteString
"PlatformApplicationArn"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
platformApplicationArn
]
data DeletePlatformApplicationResponse = DeletePlatformApplicationResponse'
{
}
deriving (DeletePlatformApplicationResponse
-> DeletePlatformApplicationResponse -> Bool
(DeletePlatformApplicationResponse
-> DeletePlatformApplicationResponse -> Bool)
-> (DeletePlatformApplicationResponse
-> DeletePlatformApplicationResponse -> Bool)
-> Eq DeletePlatformApplicationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeletePlatformApplicationResponse
-> DeletePlatformApplicationResponse -> Bool
== :: DeletePlatformApplicationResponse
-> DeletePlatformApplicationResponse -> Bool
$c/= :: DeletePlatformApplicationResponse
-> DeletePlatformApplicationResponse -> Bool
/= :: DeletePlatformApplicationResponse
-> DeletePlatformApplicationResponse -> Bool
Prelude.Eq, ReadPrec [DeletePlatformApplicationResponse]
ReadPrec DeletePlatformApplicationResponse
Int -> ReadS DeletePlatformApplicationResponse
ReadS [DeletePlatformApplicationResponse]
(Int -> ReadS DeletePlatformApplicationResponse)
-> ReadS [DeletePlatformApplicationResponse]
-> ReadPrec DeletePlatformApplicationResponse
-> ReadPrec [DeletePlatformApplicationResponse]
-> Read DeletePlatformApplicationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS DeletePlatformApplicationResponse
readsPrec :: Int -> ReadS DeletePlatformApplicationResponse
$creadList :: ReadS [DeletePlatformApplicationResponse]
readList :: ReadS [DeletePlatformApplicationResponse]
$creadPrec :: ReadPrec DeletePlatformApplicationResponse
readPrec :: ReadPrec DeletePlatformApplicationResponse
$creadListPrec :: ReadPrec [DeletePlatformApplicationResponse]
readListPrec :: ReadPrec [DeletePlatformApplicationResponse]
Prelude.Read, Int -> DeletePlatformApplicationResponse -> ShowS
[DeletePlatformApplicationResponse] -> ShowS
DeletePlatformApplicationResponse -> String
(Int -> DeletePlatformApplicationResponse -> ShowS)
-> (DeletePlatformApplicationResponse -> String)
-> ([DeletePlatformApplicationResponse] -> ShowS)
-> Show DeletePlatformApplicationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeletePlatformApplicationResponse -> ShowS
showsPrec :: Int -> DeletePlatformApplicationResponse -> ShowS
$cshow :: DeletePlatformApplicationResponse -> String
show :: DeletePlatformApplicationResponse -> String
$cshowList :: [DeletePlatformApplicationResponse] -> ShowS
showList :: [DeletePlatformApplicationResponse] -> ShowS
Prelude.Show, (forall x.
DeletePlatformApplicationResponse
-> Rep DeletePlatformApplicationResponse x)
-> (forall x.
Rep DeletePlatformApplicationResponse x
-> DeletePlatformApplicationResponse)
-> Generic DeletePlatformApplicationResponse
forall x.
Rep DeletePlatformApplicationResponse x
-> DeletePlatformApplicationResponse
forall x.
DeletePlatformApplicationResponse
-> Rep DeletePlatformApplicationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x.
DeletePlatformApplicationResponse
-> Rep DeletePlatformApplicationResponse x
from :: forall x.
DeletePlatformApplicationResponse
-> Rep DeletePlatformApplicationResponse x
$cto :: forall x.
Rep DeletePlatformApplicationResponse x
-> DeletePlatformApplicationResponse
to :: forall x.
Rep DeletePlatformApplicationResponse x
-> DeletePlatformApplicationResponse
Prelude.Generic)
newDeletePlatformApplicationResponse ::
DeletePlatformApplicationResponse
newDeletePlatformApplicationResponse :: DeletePlatformApplicationResponse
newDeletePlatformApplicationResponse =
DeletePlatformApplicationResponse
DeletePlatformApplicationResponse'
instance
Prelude.NFData
DeletePlatformApplicationResponse
where
rnf :: DeletePlatformApplicationResponse -> ()
rnf DeletePlatformApplicationResponse
_ = ()