{-# 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 #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.SNS.DeletePlatformApplication -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Deletes a platform application object for one of the supported push -- notification services, such as APNS and GCM (Firebase Cloud Messaging). -- For more information, see -- . module Amazonka.SNS.DeletePlatformApplication ( -- * Creating a Request DeletePlatformApplication (..), newDeletePlatformApplication, -- * Request Lenses deletePlatformApplication_platformApplicationArn, -- * Destructuring the Response 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 -- | Input for DeletePlatformApplication action. -- -- /See:/ 'newDeletePlatformApplication' smart constructor. data DeletePlatformApplication = DeletePlatformApplication' { -- | PlatformApplicationArn of platform application object to delete. platformApplicationArn :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DeletePlatformApplication' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'platformApplicationArn', 'deletePlatformApplication_platformApplicationArn' - PlatformApplicationArn of platform application object to delete. newDeletePlatformApplication :: -- | 'platformApplicationArn' Prelude.Text -> DeletePlatformApplication newDeletePlatformApplication pPlatformApplicationArn_ = DeletePlatformApplication' { platformApplicationArn = pPlatformApplicationArn_ } -- | PlatformApplicationArn of platform application object to delete. deletePlatformApplication_platformApplicationArn :: Lens.Lens' DeletePlatformApplication Prelude.Text deletePlatformApplication_platformApplicationArn = Lens.lens (\DeletePlatformApplication' {platformApplicationArn} -> platformApplicationArn) (\s@DeletePlatformApplication' {} a -> s {platformApplicationArn = a} :: DeletePlatformApplication) instance Core.AWSRequest DeletePlatformApplication where type AWSResponse DeletePlatformApplication = DeletePlatformApplicationResponse request overrides = Request.postQuery (overrides defaultService) response = Response.receiveNull DeletePlatformApplicationResponse' instance Prelude.Hashable DeletePlatformApplication where hashWithSalt _salt DeletePlatformApplication' {..} = _salt `Prelude.hashWithSalt` platformApplicationArn instance Prelude.NFData DeletePlatformApplication where rnf DeletePlatformApplication' {..} = Prelude.rnf platformApplicationArn instance Data.ToHeaders DeletePlatformApplication where toHeaders = Prelude.const Prelude.mempty instance Data.ToPath DeletePlatformApplication where toPath = Prelude.const "/" instance Data.ToQuery DeletePlatformApplication where toQuery DeletePlatformApplication' {..} = Prelude.mconcat [ "Action" Data.=: ("DeletePlatformApplication" :: Prelude.ByteString), "Version" Data.=: ("2010-03-31" :: Prelude.ByteString), "PlatformApplicationArn" Data.=: platformApplicationArn ] -- | /See:/ 'newDeletePlatformApplicationResponse' smart constructor. data DeletePlatformApplicationResponse = DeletePlatformApplicationResponse' { } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DeletePlatformApplicationResponse' with all optional fields omitted. -- -- Use or to modify other optional fields. newDeletePlatformApplicationResponse :: DeletePlatformApplicationResponse newDeletePlatformApplicationResponse = DeletePlatformApplicationResponse' instance Prelude.NFData DeletePlatformApplicationResponse where rnf _ = ()