{-# 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.SageMaker.UpdatePipeline
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Updates a pipeline.
module Amazonka.SageMaker.UpdatePipeline
  ( -- * Creating a Request
    UpdatePipeline (..),
    newUpdatePipeline,

    -- * Request Lenses
    updatePipeline_pipelineDisplayName,
    updatePipeline_pipelineDescription,
    updatePipeline_pipelineDefinition,
    updatePipeline_roleArn,
    updatePipeline_pipelineName,

    -- * Destructuring the Response
    UpdatePipelineResponse (..),
    newUpdatePipelineResponse,

    -- * Response Lenses
    updatePipelineResponse_pipelineArn,
    updatePipelineResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types

-- | /See:/ 'newUpdatePipeline' smart constructor.
data UpdatePipeline = UpdatePipeline'
  { -- | The display name of the pipeline.
    UpdatePipeline -> Maybe Text
pipelineDisplayName :: Prelude.Maybe Prelude.Text,
    -- | The description of the pipeline.
    UpdatePipeline -> Maybe Text
pipelineDescription :: Prelude.Maybe Prelude.Text,
    -- | The JSON pipeline definition.
    UpdatePipeline -> Maybe Text
pipelineDefinition :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) that the pipeline uses to execute.
    UpdatePipeline -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the pipeline to update.
    UpdatePipeline -> Text
pipelineName :: Prelude.Text
  }
  deriving (UpdatePipeline -> UpdatePipeline -> Bool
(UpdatePipeline -> UpdatePipeline -> Bool)
-> (UpdatePipeline -> UpdatePipeline -> Bool) -> Eq UpdatePipeline
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdatePipeline -> UpdatePipeline -> Bool
$c/= :: UpdatePipeline -> UpdatePipeline -> Bool
== :: UpdatePipeline -> UpdatePipeline -> Bool
$c== :: UpdatePipeline -> UpdatePipeline -> Bool
Prelude.Eq, ReadPrec [UpdatePipeline]
ReadPrec UpdatePipeline
Int -> ReadS UpdatePipeline
ReadS [UpdatePipeline]
(Int -> ReadS UpdatePipeline)
-> ReadS [UpdatePipeline]
-> ReadPrec UpdatePipeline
-> ReadPrec [UpdatePipeline]
-> Read UpdatePipeline
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdatePipeline]
$creadListPrec :: ReadPrec [UpdatePipeline]
readPrec :: ReadPrec UpdatePipeline
$creadPrec :: ReadPrec UpdatePipeline
readList :: ReadS [UpdatePipeline]
$creadList :: ReadS [UpdatePipeline]
readsPrec :: Int -> ReadS UpdatePipeline
$creadsPrec :: Int -> ReadS UpdatePipeline
Prelude.Read, Int -> UpdatePipeline -> ShowS
[UpdatePipeline] -> ShowS
UpdatePipeline -> String
(Int -> UpdatePipeline -> ShowS)
-> (UpdatePipeline -> String)
-> ([UpdatePipeline] -> ShowS)
-> Show UpdatePipeline
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdatePipeline] -> ShowS
$cshowList :: [UpdatePipeline] -> ShowS
show :: UpdatePipeline -> String
$cshow :: UpdatePipeline -> String
showsPrec :: Int -> UpdatePipeline -> ShowS
$cshowsPrec :: Int -> UpdatePipeline -> ShowS
Prelude.Show, (forall x. UpdatePipeline -> Rep UpdatePipeline x)
-> (forall x. Rep UpdatePipeline x -> UpdatePipeline)
-> Generic UpdatePipeline
forall x. Rep UpdatePipeline x -> UpdatePipeline
forall x. UpdatePipeline -> Rep UpdatePipeline x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdatePipeline x -> UpdatePipeline
$cfrom :: forall x. UpdatePipeline -> Rep UpdatePipeline x
Prelude.Generic)

-- |
-- Create a value of 'UpdatePipeline' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'pipelineDisplayName', 'updatePipeline_pipelineDisplayName' - The display name of the pipeline.
--
-- 'pipelineDescription', 'updatePipeline_pipelineDescription' - The description of the pipeline.
--
-- 'pipelineDefinition', 'updatePipeline_pipelineDefinition' - The JSON pipeline definition.
--
-- 'roleArn', 'updatePipeline_roleArn' - The Amazon Resource Name (ARN) that the pipeline uses to execute.
--
-- 'pipelineName', 'updatePipeline_pipelineName' - The name of the pipeline to update.
newUpdatePipeline ::
  -- | 'pipelineName'
  Prelude.Text ->
  UpdatePipeline
newUpdatePipeline :: Text -> UpdatePipeline
newUpdatePipeline Text
pPipelineName_ =
  UpdatePipeline' :: Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> Text -> UpdatePipeline
UpdatePipeline'
    { $sel:pipelineDisplayName:UpdatePipeline' :: Maybe Text
pipelineDisplayName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineDescription:UpdatePipeline' :: Maybe Text
pipelineDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineDefinition:UpdatePipeline' :: Maybe Text
pipelineDefinition = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:UpdatePipeline' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineName:UpdatePipeline' :: Text
pipelineName = Text
pPipelineName_
    }

-- | The display name of the pipeline.
updatePipeline_pipelineDisplayName :: Lens.Lens' UpdatePipeline (Prelude.Maybe Prelude.Text)
updatePipeline_pipelineDisplayName :: (Maybe Text -> f (Maybe Text))
-> UpdatePipeline -> f UpdatePipeline
updatePipeline_pipelineDisplayName = (UpdatePipeline -> Maybe Text)
-> (UpdatePipeline -> Maybe Text -> UpdatePipeline)
-> Lens UpdatePipeline UpdatePipeline (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePipeline' {Maybe Text
pipelineDisplayName :: Maybe Text
$sel:pipelineDisplayName:UpdatePipeline' :: UpdatePipeline -> Maybe Text
pipelineDisplayName} -> Maybe Text
pipelineDisplayName) (\s :: UpdatePipeline
s@UpdatePipeline' {} Maybe Text
a -> UpdatePipeline
s {$sel:pipelineDisplayName:UpdatePipeline' :: Maybe Text
pipelineDisplayName = Maybe Text
a} :: UpdatePipeline)

-- | The description of the pipeline.
updatePipeline_pipelineDescription :: Lens.Lens' UpdatePipeline (Prelude.Maybe Prelude.Text)
updatePipeline_pipelineDescription :: (Maybe Text -> f (Maybe Text))
-> UpdatePipeline -> f UpdatePipeline
updatePipeline_pipelineDescription = (UpdatePipeline -> Maybe Text)
-> (UpdatePipeline -> Maybe Text -> UpdatePipeline)
-> Lens UpdatePipeline UpdatePipeline (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePipeline' {Maybe Text
pipelineDescription :: Maybe Text
$sel:pipelineDescription:UpdatePipeline' :: UpdatePipeline -> Maybe Text
pipelineDescription} -> Maybe Text
pipelineDescription) (\s :: UpdatePipeline
s@UpdatePipeline' {} Maybe Text
a -> UpdatePipeline
s {$sel:pipelineDescription:UpdatePipeline' :: Maybe Text
pipelineDescription = Maybe Text
a} :: UpdatePipeline)

-- | The JSON pipeline definition.
updatePipeline_pipelineDefinition :: Lens.Lens' UpdatePipeline (Prelude.Maybe Prelude.Text)
updatePipeline_pipelineDefinition :: (Maybe Text -> f (Maybe Text))
-> UpdatePipeline -> f UpdatePipeline
updatePipeline_pipelineDefinition = (UpdatePipeline -> Maybe Text)
-> (UpdatePipeline -> Maybe Text -> UpdatePipeline)
-> Lens UpdatePipeline UpdatePipeline (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePipeline' {Maybe Text
pipelineDefinition :: Maybe Text
$sel:pipelineDefinition:UpdatePipeline' :: UpdatePipeline -> Maybe Text
pipelineDefinition} -> Maybe Text
pipelineDefinition) (\s :: UpdatePipeline
s@UpdatePipeline' {} Maybe Text
a -> UpdatePipeline
s {$sel:pipelineDefinition:UpdatePipeline' :: Maybe Text
pipelineDefinition = Maybe Text
a} :: UpdatePipeline)

-- | The Amazon Resource Name (ARN) that the pipeline uses to execute.
updatePipeline_roleArn :: Lens.Lens' UpdatePipeline (Prelude.Maybe Prelude.Text)
updatePipeline_roleArn :: (Maybe Text -> f (Maybe Text))
-> UpdatePipeline -> f UpdatePipeline
updatePipeline_roleArn = (UpdatePipeline -> Maybe Text)
-> (UpdatePipeline -> Maybe Text -> UpdatePipeline)
-> Lens UpdatePipeline UpdatePipeline (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePipeline' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:UpdatePipeline' :: UpdatePipeline -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: UpdatePipeline
s@UpdatePipeline' {} Maybe Text
a -> UpdatePipeline
s {$sel:roleArn:UpdatePipeline' :: Maybe Text
roleArn = Maybe Text
a} :: UpdatePipeline)

-- | The name of the pipeline to update.
updatePipeline_pipelineName :: Lens.Lens' UpdatePipeline Prelude.Text
updatePipeline_pipelineName :: (Text -> f Text) -> UpdatePipeline -> f UpdatePipeline
updatePipeline_pipelineName = (UpdatePipeline -> Text)
-> (UpdatePipeline -> Text -> UpdatePipeline)
-> Lens UpdatePipeline UpdatePipeline Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePipeline' {Text
pipelineName :: Text
$sel:pipelineName:UpdatePipeline' :: UpdatePipeline -> Text
pipelineName} -> Text
pipelineName) (\s :: UpdatePipeline
s@UpdatePipeline' {} Text
a -> UpdatePipeline
s {$sel:pipelineName:UpdatePipeline' :: Text
pipelineName = Text
a} :: UpdatePipeline)

instance Core.AWSRequest UpdatePipeline where
  type
    AWSResponse UpdatePipeline =
      UpdatePipelineResponse
  request :: UpdatePipeline -> Request UpdatePipeline
request = Service -> UpdatePipeline -> Request UpdatePipeline
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdatePipeline
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdatePipeline)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdatePipeline))
-> Logger
-> Service
-> Proxy UpdatePipeline
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdatePipeline)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text -> Int -> UpdatePipelineResponse
UpdatePipelineResponse'
            (Maybe Text -> Int -> UpdatePipelineResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdatePipelineResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PipelineArn")
            Either String (Int -> UpdatePipelineResponse)
-> Either String Int -> Either String UpdatePipelineResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable UpdatePipeline

instance Prelude.NFData UpdatePipeline

instance Core.ToHeaders UpdatePipeline where
  toHeaders :: UpdatePipeline -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdatePipeline -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"SageMaker.UpdatePipeline" :: Prelude.ByteString),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON UpdatePipeline where
  toJSON :: UpdatePipeline -> Value
toJSON UpdatePipeline' {Maybe Text
Text
pipelineName :: Text
roleArn :: Maybe Text
pipelineDefinition :: Maybe Text
pipelineDescription :: Maybe Text
pipelineDisplayName :: Maybe Text
$sel:pipelineName:UpdatePipeline' :: UpdatePipeline -> Text
$sel:roleArn:UpdatePipeline' :: UpdatePipeline -> Maybe Text
$sel:pipelineDefinition:UpdatePipeline' :: UpdatePipeline -> Maybe Text
$sel:pipelineDescription:UpdatePipeline' :: UpdatePipeline -> Maybe Text
$sel:pipelineDisplayName:UpdatePipeline' :: UpdatePipeline -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"PipelineDisplayName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pipelineDisplayName,
            (Text
"PipelineDescription" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pipelineDescription,
            (Text
"PipelineDefinition" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pipelineDefinition,
            (Text
"RoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
roleArn,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"PipelineName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
pipelineName)
          ]
      )

instance Core.ToPath UpdatePipeline where
  toPath :: UpdatePipeline -> ByteString
toPath = ByteString -> UpdatePipeline -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery UpdatePipeline where
  toQuery :: UpdatePipeline -> QueryString
toQuery = QueryString -> UpdatePipeline -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newUpdatePipelineResponse' smart constructor.
data UpdatePipelineResponse = UpdatePipelineResponse'
  { -- | The Amazon Resource Name (ARN) of the updated pipeline.
    UpdatePipelineResponse -> Maybe Text
pipelineArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    UpdatePipelineResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdatePipelineResponse -> UpdatePipelineResponse -> Bool
(UpdatePipelineResponse -> UpdatePipelineResponse -> Bool)
-> (UpdatePipelineResponse -> UpdatePipelineResponse -> Bool)
-> Eq UpdatePipelineResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdatePipelineResponse -> UpdatePipelineResponse -> Bool
$c/= :: UpdatePipelineResponse -> UpdatePipelineResponse -> Bool
== :: UpdatePipelineResponse -> UpdatePipelineResponse -> Bool
$c== :: UpdatePipelineResponse -> UpdatePipelineResponse -> Bool
Prelude.Eq, ReadPrec [UpdatePipelineResponse]
ReadPrec UpdatePipelineResponse
Int -> ReadS UpdatePipelineResponse
ReadS [UpdatePipelineResponse]
(Int -> ReadS UpdatePipelineResponse)
-> ReadS [UpdatePipelineResponse]
-> ReadPrec UpdatePipelineResponse
-> ReadPrec [UpdatePipelineResponse]
-> Read UpdatePipelineResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdatePipelineResponse]
$creadListPrec :: ReadPrec [UpdatePipelineResponse]
readPrec :: ReadPrec UpdatePipelineResponse
$creadPrec :: ReadPrec UpdatePipelineResponse
readList :: ReadS [UpdatePipelineResponse]
$creadList :: ReadS [UpdatePipelineResponse]
readsPrec :: Int -> ReadS UpdatePipelineResponse
$creadsPrec :: Int -> ReadS UpdatePipelineResponse
Prelude.Read, Int -> UpdatePipelineResponse -> ShowS
[UpdatePipelineResponse] -> ShowS
UpdatePipelineResponse -> String
(Int -> UpdatePipelineResponse -> ShowS)
-> (UpdatePipelineResponse -> String)
-> ([UpdatePipelineResponse] -> ShowS)
-> Show UpdatePipelineResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdatePipelineResponse] -> ShowS
$cshowList :: [UpdatePipelineResponse] -> ShowS
show :: UpdatePipelineResponse -> String
$cshow :: UpdatePipelineResponse -> String
showsPrec :: Int -> UpdatePipelineResponse -> ShowS
$cshowsPrec :: Int -> UpdatePipelineResponse -> ShowS
Prelude.Show, (forall x. UpdatePipelineResponse -> Rep UpdatePipelineResponse x)
-> (forall x.
    Rep UpdatePipelineResponse x -> UpdatePipelineResponse)
-> Generic UpdatePipelineResponse
forall x. Rep UpdatePipelineResponse x -> UpdatePipelineResponse
forall x. UpdatePipelineResponse -> Rep UpdatePipelineResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdatePipelineResponse x -> UpdatePipelineResponse
$cfrom :: forall x. UpdatePipelineResponse -> Rep UpdatePipelineResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdatePipelineResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'pipelineArn', 'updatePipelineResponse_pipelineArn' - The Amazon Resource Name (ARN) of the updated pipeline.
--
-- 'httpStatus', 'updatePipelineResponse_httpStatus' - The response's http status code.
newUpdatePipelineResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdatePipelineResponse
newUpdatePipelineResponse :: Int -> UpdatePipelineResponse
newUpdatePipelineResponse Int
pHttpStatus_ =
  UpdatePipelineResponse' :: Maybe Text -> Int -> UpdatePipelineResponse
UpdatePipelineResponse'
    { $sel:pipelineArn:UpdatePipelineResponse' :: Maybe Text
pipelineArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdatePipelineResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name (ARN) of the updated pipeline.
updatePipelineResponse_pipelineArn :: Lens.Lens' UpdatePipelineResponse (Prelude.Maybe Prelude.Text)
updatePipelineResponse_pipelineArn :: (Maybe Text -> f (Maybe Text))
-> UpdatePipelineResponse -> f UpdatePipelineResponse
updatePipelineResponse_pipelineArn = (UpdatePipelineResponse -> Maybe Text)
-> (UpdatePipelineResponse -> Maybe Text -> UpdatePipelineResponse)
-> Lens
     UpdatePipelineResponse
     UpdatePipelineResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePipelineResponse' {Maybe Text
pipelineArn :: Maybe Text
$sel:pipelineArn:UpdatePipelineResponse' :: UpdatePipelineResponse -> Maybe Text
pipelineArn} -> Maybe Text
pipelineArn) (\s :: UpdatePipelineResponse
s@UpdatePipelineResponse' {} Maybe Text
a -> UpdatePipelineResponse
s {$sel:pipelineArn:UpdatePipelineResponse' :: Maybe Text
pipelineArn = Maybe Text
a} :: UpdatePipelineResponse)

-- | The response's http status code.
updatePipelineResponse_httpStatus :: Lens.Lens' UpdatePipelineResponse Prelude.Int
updatePipelineResponse_httpStatus :: (Int -> f Int)
-> UpdatePipelineResponse -> f UpdatePipelineResponse
updatePipelineResponse_httpStatus = (UpdatePipelineResponse -> Int)
-> (UpdatePipelineResponse -> Int -> UpdatePipelineResponse)
-> Lens UpdatePipelineResponse UpdatePipelineResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePipelineResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdatePipelineResponse' :: UpdatePipelineResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdatePipelineResponse
s@UpdatePipelineResponse' {} Int
a -> UpdatePipelineResponse
s {$sel:httpStatus:UpdatePipelineResponse' :: Int
httpStatus = Int
a} :: UpdatePipelineResponse)

instance Prelude.NFData UpdatePipelineResponse