{-# 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.IoTAnalytics.DeletePipeline -- 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 the specified pipeline. module Amazonka.IoTAnalytics.DeletePipeline ( -- * Creating a Request DeletePipeline (..), newDeletePipeline, -- * Request Lenses deletePipeline_pipelineName, -- * Destructuring the Response DeletePipelineResponse (..), newDeletePipelineResponse, ) where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.IoTAnalytics.Types import qualified Amazonka.Prelude as Prelude import qualified Amazonka.Request as Request import qualified Amazonka.Response as Response -- | /See:/ 'newDeletePipeline' smart constructor. data DeletePipeline = DeletePipeline' { -- | The name of the pipeline to delete. pipelineName :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DeletePipeline' 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: -- -- 'pipelineName', 'deletePipeline_pipelineName' - The name of the pipeline to delete. newDeletePipeline :: -- | 'pipelineName' Prelude.Text -> DeletePipeline newDeletePipeline pPipelineName_ = DeletePipeline' {pipelineName = pPipelineName_} -- | The name of the pipeline to delete. deletePipeline_pipelineName :: Lens.Lens' DeletePipeline Prelude.Text deletePipeline_pipelineName = Lens.lens (\DeletePipeline' {pipelineName} -> pipelineName) (\s@DeletePipeline' {} a -> s {pipelineName = a} :: DeletePipeline) instance Core.AWSRequest DeletePipeline where type AWSResponse DeletePipeline = DeletePipelineResponse request overrides = Request.delete (overrides defaultService) response = Response.receiveNull DeletePipelineResponse' instance Prelude.Hashable DeletePipeline where hashWithSalt _salt DeletePipeline' {..} = _salt `Prelude.hashWithSalt` pipelineName instance Prelude.NFData DeletePipeline where rnf DeletePipeline' {..} = Prelude.rnf pipelineName instance Data.ToHeaders DeletePipeline where toHeaders = Prelude.const Prelude.mempty instance Data.ToPath DeletePipeline where toPath DeletePipeline' {..} = Prelude.mconcat ["/pipelines/", Data.toBS pipelineName] instance Data.ToQuery DeletePipeline where toQuery = Prelude.const Prelude.mempty -- | /See:/ 'newDeletePipelineResponse' smart constructor. data DeletePipelineResponse = DeletePipelineResponse' { } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DeletePipelineResponse' with all optional fields omitted. -- -- Use or to modify other optional fields. newDeletePipelineResponse :: DeletePipelineResponse newDeletePipelineResponse = DeletePipelineResponse' instance Prelude.NFData DeletePipelineResponse where rnf _ = ()