{-# 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.Pipes.UpdatePipe -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Update an existing pipe. When you call @UpdatePipe@, only the fields -- that are included in the request are changed, the rest are unchanged. -- The exception to this is if you modify any Amazon Web Services-service -- specific fields in the @SourceParameters@, @EnrichmentParameters@, or -- @TargetParameters@ objects. The fields in these objects are updated -- atomically as one and override existing values. This is by design and -- means that if you don\'t specify an optional field in one of these -- Parameters objects, that field will be set to its system-default value -- after the update. -- -- >
For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
module Amazonka.Pipes.UpdatePipe ( -- * Creating a Request UpdatePipe (..), newUpdatePipe, -- * Request Lenses updatePipe_description, updatePipe_desiredState, updatePipe_enrichment, updatePipe_enrichmentParameters, updatePipe_sourceParameters, updatePipe_target, updatePipe_targetParameters, updatePipe_name, updatePipe_roleArn, -- * Destructuring the Response UpdatePipeResponse (..), newUpdatePipeResponse, -- * Response Lenses updatePipeResponse_arn, updatePipeResponse_creationTime, updatePipeResponse_currentState, updatePipeResponse_desiredState, updatePipeResponse_lastModifiedTime, updatePipeResponse_name, updatePipeResponse_httpStatus, ) where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.Pipes.Types import qualified Amazonka.Prelude as Prelude import qualified Amazonka.Request as Request import qualified Amazonka.Response as Response -- | /See:/ 'newUpdatePipe' smart constructor. data UpdatePipe = UpdatePipe' { -- | A description of the pipe. description :: Prelude.Maybe (Data.Sensitive Prelude.Text), -- | The state the pipe should be in. desiredState :: Prelude.Maybe RequestedPipeState, -- | The ARN of the enrichment resource. enrichment :: Prelude.Maybe Prelude.Text, -- | The parameters required to set up enrichment on your pipe. enrichmentParameters :: Prelude.Maybe PipeEnrichmentParameters, -- | The parameters required to set up a source for your pipe. sourceParameters :: Prelude.Maybe UpdatePipeSourceParameters, -- | The ARN of the target resource. target :: Prelude.Maybe Prelude.Text, -- | The parameters required to set up a target for your pipe. targetParameters :: Prelude.Maybe PipeTargetParameters, -- | The name of the pipe. name :: Prelude.Text, -- | The ARN of the role that allows the pipe to send data to the target. roleArn :: Prelude.Text } deriving (Prelude.Eq, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'UpdatePipe' with all optional fields omitted. -- -- Use