{-# 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.DescribePipeline
-- 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)
--
-- Describes the details of a pipeline.
module Amazonka.SageMaker.DescribePipeline
  ( -- * Creating a Request
    DescribePipeline (..),
    newDescribePipeline,

    -- * Request Lenses
    describePipeline_pipelineName,

    -- * Destructuring the Response
    DescribePipelineResponse (..),
    newDescribePipelineResponse,

    -- * Response Lenses
    describePipelineResponse_creationTime,
    describePipelineResponse_pipelineDisplayName,
    describePipelineResponse_pipelineName,
    describePipelineResponse_createdBy,
    describePipelineResponse_lastRunTime,
    describePipelineResponse_lastModifiedTime,
    describePipelineResponse_pipelineStatus,
    describePipelineResponse_pipelineDescription,
    describePipelineResponse_pipelineArn,
    describePipelineResponse_pipelineDefinition,
    describePipelineResponse_lastModifiedBy,
    describePipelineResponse_roleArn,
    describePipelineResponse_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:/ 'newDescribePipeline' smart constructor.
data DescribePipeline = DescribePipeline'
  { -- | The name of the pipeline to describe.
    DescribePipeline -> Text
pipelineName :: Prelude.Text
  }
  deriving (DescribePipeline -> DescribePipeline -> Bool
(DescribePipeline -> DescribePipeline -> Bool)
-> (DescribePipeline -> DescribePipeline -> Bool)
-> Eq DescribePipeline
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePipeline -> DescribePipeline -> Bool
$c/= :: DescribePipeline -> DescribePipeline -> Bool
== :: DescribePipeline -> DescribePipeline -> Bool
$c== :: DescribePipeline -> DescribePipeline -> Bool
Prelude.Eq, ReadPrec [DescribePipeline]
ReadPrec DescribePipeline
Int -> ReadS DescribePipeline
ReadS [DescribePipeline]
(Int -> ReadS DescribePipeline)
-> ReadS [DescribePipeline]
-> ReadPrec DescribePipeline
-> ReadPrec [DescribePipeline]
-> Read DescribePipeline
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePipeline]
$creadListPrec :: ReadPrec [DescribePipeline]
readPrec :: ReadPrec DescribePipeline
$creadPrec :: ReadPrec DescribePipeline
readList :: ReadS [DescribePipeline]
$creadList :: ReadS [DescribePipeline]
readsPrec :: Int -> ReadS DescribePipeline
$creadsPrec :: Int -> ReadS DescribePipeline
Prelude.Read, Int -> DescribePipeline -> ShowS
[DescribePipeline] -> ShowS
DescribePipeline -> String
(Int -> DescribePipeline -> ShowS)
-> (DescribePipeline -> String)
-> ([DescribePipeline] -> ShowS)
-> Show DescribePipeline
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePipeline] -> ShowS
$cshowList :: [DescribePipeline] -> ShowS
show :: DescribePipeline -> String
$cshow :: DescribePipeline -> String
showsPrec :: Int -> DescribePipeline -> ShowS
$cshowsPrec :: Int -> DescribePipeline -> ShowS
Prelude.Show, (forall x. DescribePipeline -> Rep DescribePipeline x)
-> (forall x. Rep DescribePipeline x -> DescribePipeline)
-> Generic DescribePipeline
forall x. Rep DescribePipeline x -> DescribePipeline
forall x. DescribePipeline -> Rep DescribePipeline x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribePipeline x -> DescribePipeline
$cfrom :: forall x. DescribePipeline -> Rep DescribePipeline x
Prelude.Generic)

-- |
-- Create a value of 'DescribePipeline' 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:
--
-- 'pipelineName', 'describePipeline_pipelineName' - The name of the pipeline to describe.
newDescribePipeline ::
  -- | 'pipelineName'
  Prelude.Text ->
  DescribePipeline
newDescribePipeline :: Text -> DescribePipeline
newDescribePipeline Text
pPipelineName_ =
  DescribePipeline' :: Text -> DescribePipeline
DescribePipeline' {$sel:pipelineName:DescribePipeline' :: Text
pipelineName = Text
pPipelineName_}

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

instance Core.AWSRequest DescribePipeline where
  type
    AWSResponse DescribePipeline =
      DescribePipelineResponse
  request :: DescribePipeline -> Request DescribePipeline
request = Service -> DescribePipeline -> Request DescribePipeline
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribePipeline
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribePipeline)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribePipeline))
-> Logger
-> Service
-> Proxy DescribePipeline
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribePipeline)))
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 POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserContext
-> Maybe POSIX
-> Maybe POSIX
-> Maybe PipelineStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe UserContext
-> Maybe Text
-> Int
-> DescribePipelineResponse
DescribePipelineResponse'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe UserContext
 -> Maybe POSIX
 -> Maybe POSIX
 -> Maybe PipelineStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe UserContext
 -> Maybe Text
 -> Int
 -> DescribePipelineResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe PipelineStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe Text
      -> Int
      -> DescribePipelineResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationTime")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe PipelineStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe Text
   -> Int
   -> DescribePipelineResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe UserContext
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe PipelineStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe Text
      -> Int
      -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => 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
"PipelineDisplayName")
            Either
  String
  (Maybe Text
   -> Maybe UserContext
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe PipelineStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe Text
   -> Int
   -> DescribePipelineResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe UserContext
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe PipelineStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe Text
      -> Int
      -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => 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
"PipelineName")
            Either
  String
  (Maybe UserContext
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe PipelineStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe Text
   -> Int
   -> DescribePipelineResponse)
-> Either String (Maybe UserContext)
-> Either
     String
     (Maybe POSIX
      -> Maybe POSIX
      -> Maybe PipelineStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe Text
      -> Int
      -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe UserContext)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreatedBy")
            Either
  String
  (Maybe POSIX
   -> Maybe POSIX
   -> Maybe PipelineStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe Text
   -> Int
   -> DescribePipelineResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe POSIX
      -> Maybe PipelineStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe Text
      -> Int
      -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastRunTime")
            Either
  String
  (Maybe POSIX
   -> Maybe PipelineStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe Text
   -> Int
   -> DescribePipelineResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe PipelineStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe Text
      -> Int
      -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedTime")
            Either
  String
  (Maybe PipelineStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe Text
   -> Int
   -> DescribePipelineResponse)
-> Either String (Maybe PipelineStatus)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe Text
      -> Int
      -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe PipelineStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PipelineStatus")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe Text
   -> Int
   -> DescribePipelineResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe UserContext
      -> Maybe Text
      -> Int
      -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => 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
"PipelineDescription")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe UserContext
   -> Maybe Text
   -> Int
   -> DescribePipelineResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe UserContext
      -> Maybe Text
      -> Int
      -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => 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
  (Maybe Text
   -> Maybe UserContext
   -> Maybe Text
   -> Int
   -> DescribePipelineResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe UserContext
      -> Maybe Text -> Int -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => 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
"PipelineDefinition")
            Either
  String
  (Maybe UserContext
   -> Maybe Text -> Int -> DescribePipelineResponse)
-> Either String (Maybe UserContext)
-> Either String (Maybe Text -> Int -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe UserContext)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedBy")
            Either String (Maybe Text -> Int -> DescribePipelineResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribePipelineResponse)
forall (f :: * -> *) a b. Applicative f => 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
"RoleArn")
            Either String (Int -> DescribePipelineResponse)
-> Either String Int -> Either String DescribePipelineResponse
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 DescribePipeline

instance Prelude.NFData DescribePipeline

instance Core.ToHeaders DescribePipeline where
  toHeaders :: DescribePipeline -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribePipeline -> 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.DescribePipeline" :: 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 DescribePipeline where
  toJSON :: DescribePipeline -> Value
toJSON DescribePipeline' {Text
pipelineName :: Text
$sel:pipelineName:DescribePipeline' :: DescribePipeline -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [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 DescribePipeline where
  toPath :: DescribePipeline -> ByteString
toPath = ByteString -> DescribePipeline -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newDescribePipelineResponse' smart constructor.
data DescribePipelineResponse = DescribePipelineResponse'
  { -- | The time when the pipeline was created.
    DescribePipelineResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The display name of the pipeline.
    DescribePipelineResponse -> Maybe Text
pipelineDisplayName :: Prelude.Maybe Prelude.Text,
    -- | The name of the pipeline.
    DescribePipelineResponse -> Maybe Text
pipelineName :: Prelude.Maybe Prelude.Text,
    DescribePipelineResponse -> Maybe UserContext
createdBy :: Prelude.Maybe UserContext,
    -- | The time when the pipeline was last run.
    DescribePipelineResponse -> Maybe POSIX
lastRunTime :: Prelude.Maybe Core.POSIX,
    -- | The time when the pipeline was last modified.
    DescribePipelineResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
    -- | The status of the pipeline execution.
    DescribePipelineResponse -> Maybe PipelineStatus
pipelineStatus :: Prelude.Maybe PipelineStatus,
    -- | The description of the pipeline.
    DescribePipelineResponse -> Maybe Text
pipelineDescription :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the pipeline.
    DescribePipelineResponse -> Maybe Text
pipelineArn :: Prelude.Maybe Prelude.Text,
    -- | The JSON pipeline definition.
    DescribePipelineResponse -> Maybe Text
pipelineDefinition :: Prelude.Maybe Prelude.Text,
    DescribePipelineResponse -> Maybe UserContext
lastModifiedBy :: Prelude.Maybe UserContext,
    -- | The Amazon Resource Name (ARN) that the pipeline uses to execute.
    DescribePipelineResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribePipelineResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribePipelineResponse -> DescribePipelineResponse -> Bool
(DescribePipelineResponse -> DescribePipelineResponse -> Bool)
-> (DescribePipelineResponse -> DescribePipelineResponse -> Bool)
-> Eq DescribePipelineResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePipelineResponse -> DescribePipelineResponse -> Bool
$c/= :: DescribePipelineResponse -> DescribePipelineResponse -> Bool
== :: DescribePipelineResponse -> DescribePipelineResponse -> Bool
$c== :: DescribePipelineResponse -> DescribePipelineResponse -> Bool
Prelude.Eq, ReadPrec [DescribePipelineResponse]
ReadPrec DescribePipelineResponse
Int -> ReadS DescribePipelineResponse
ReadS [DescribePipelineResponse]
(Int -> ReadS DescribePipelineResponse)
-> ReadS [DescribePipelineResponse]
-> ReadPrec DescribePipelineResponse
-> ReadPrec [DescribePipelineResponse]
-> Read DescribePipelineResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePipelineResponse]
$creadListPrec :: ReadPrec [DescribePipelineResponse]
readPrec :: ReadPrec DescribePipelineResponse
$creadPrec :: ReadPrec DescribePipelineResponse
readList :: ReadS [DescribePipelineResponse]
$creadList :: ReadS [DescribePipelineResponse]
readsPrec :: Int -> ReadS DescribePipelineResponse
$creadsPrec :: Int -> ReadS DescribePipelineResponse
Prelude.Read, Int -> DescribePipelineResponse -> ShowS
[DescribePipelineResponse] -> ShowS
DescribePipelineResponse -> String
(Int -> DescribePipelineResponse -> ShowS)
-> (DescribePipelineResponse -> String)
-> ([DescribePipelineResponse] -> ShowS)
-> Show DescribePipelineResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePipelineResponse] -> ShowS
$cshowList :: [DescribePipelineResponse] -> ShowS
show :: DescribePipelineResponse -> String
$cshow :: DescribePipelineResponse -> String
showsPrec :: Int -> DescribePipelineResponse -> ShowS
$cshowsPrec :: Int -> DescribePipelineResponse -> ShowS
Prelude.Show, (forall x.
 DescribePipelineResponse -> Rep DescribePipelineResponse x)
-> (forall x.
    Rep DescribePipelineResponse x -> DescribePipelineResponse)
-> Generic DescribePipelineResponse
forall x.
Rep DescribePipelineResponse x -> DescribePipelineResponse
forall x.
DescribePipelineResponse -> Rep DescribePipelineResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePipelineResponse x -> DescribePipelineResponse
$cfrom :: forall x.
DescribePipelineResponse -> Rep DescribePipelineResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribePipelineResponse' 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:
--
-- 'creationTime', 'describePipelineResponse_creationTime' - The time when the pipeline was created.
--
-- 'pipelineDisplayName', 'describePipelineResponse_pipelineDisplayName' - The display name of the pipeline.
--
-- 'pipelineName', 'describePipelineResponse_pipelineName' - The name of the pipeline.
--
-- 'createdBy', 'describePipelineResponse_createdBy' - Undocumented member.
--
-- 'lastRunTime', 'describePipelineResponse_lastRunTime' - The time when the pipeline was last run.
--
-- 'lastModifiedTime', 'describePipelineResponse_lastModifiedTime' - The time when the pipeline was last modified.
--
-- 'pipelineStatus', 'describePipelineResponse_pipelineStatus' - The status of the pipeline execution.
--
-- 'pipelineDescription', 'describePipelineResponse_pipelineDescription' - The description of the pipeline.
--
-- 'pipelineArn', 'describePipelineResponse_pipelineArn' - The Amazon Resource Name (ARN) of the pipeline.
--
-- 'pipelineDefinition', 'describePipelineResponse_pipelineDefinition' - The JSON pipeline definition.
--
-- 'lastModifiedBy', 'describePipelineResponse_lastModifiedBy' - Undocumented member.
--
-- 'roleArn', 'describePipelineResponse_roleArn' - The Amazon Resource Name (ARN) that the pipeline uses to execute.
--
-- 'httpStatus', 'describePipelineResponse_httpStatus' - The response's http status code.
newDescribePipelineResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribePipelineResponse
newDescribePipelineResponse :: Int -> DescribePipelineResponse
newDescribePipelineResponse Int
pHttpStatus_ =
  DescribePipelineResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe UserContext
-> Maybe POSIX
-> Maybe POSIX
-> Maybe PipelineStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe UserContext
-> Maybe Text
-> Int
-> DescribePipelineResponse
DescribePipelineResponse'
    { $sel:creationTime:DescribePipelineResponse' :: Maybe POSIX
creationTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineDisplayName:DescribePipelineResponse' :: Maybe Text
pipelineDisplayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineName:DescribePipelineResponse' :: Maybe Text
pipelineName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdBy:DescribePipelineResponse' :: Maybe UserContext
createdBy = Maybe UserContext
forall a. Maybe a
Prelude.Nothing,
      $sel:lastRunTime:DescribePipelineResponse' :: Maybe POSIX
lastRunTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:DescribePipelineResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineStatus:DescribePipelineResponse' :: Maybe PipelineStatus
pipelineStatus = Maybe PipelineStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineDescription:DescribePipelineResponse' :: Maybe Text
pipelineDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineArn:DescribePipelineResponse' :: Maybe Text
pipelineArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineDefinition:DescribePipelineResponse' :: Maybe Text
pipelineDefinition = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedBy:DescribePipelineResponse' :: Maybe UserContext
lastModifiedBy = Maybe UserContext
forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:DescribePipelineResponse' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribePipelineResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The time when the pipeline was created.
describePipelineResponse_creationTime :: Lens.Lens' DescribePipelineResponse (Prelude.Maybe Prelude.UTCTime)
describePipelineResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribePipelineResponse -> f DescribePipelineResponse
describePipelineResponse_creationTime = (DescribePipelineResponse -> Maybe POSIX)
-> (DescribePipelineResponse
    -> Maybe POSIX -> DescribePipelineResponse)
-> Lens
     DescribePipelineResponse
     DescribePipelineResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePipelineResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribePipelineResponse' :: DescribePipelineResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribePipelineResponse
s@DescribePipelineResponse' {} Maybe POSIX
a -> DescribePipelineResponse
s {$sel:creationTime:DescribePipelineResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribePipelineResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribePipelineResponse -> f DescribePipelineResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribePipelineResponse
-> f DescribePipelineResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

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

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

-- | Undocumented member.
describePipelineResponse_createdBy :: Lens.Lens' DescribePipelineResponse (Prelude.Maybe UserContext)
describePipelineResponse_createdBy :: (Maybe UserContext -> f (Maybe UserContext))
-> DescribePipelineResponse -> f DescribePipelineResponse
describePipelineResponse_createdBy = (DescribePipelineResponse -> Maybe UserContext)
-> (DescribePipelineResponse
    -> Maybe UserContext -> DescribePipelineResponse)
-> Lens
     DescribePipelineResponse
     DescribePipelineResponse
     (Maybe UserContext)
     (Maybe UserContext)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePipelineResponse' {Maybe UserContext
createdBy :: Maybe UserContext
$sel:createdBy:DescribePipelineResponse' :: DescribePipelineResponse -> Maybe UserContext
createdBy} -> Maybe UserContext
createdBy) (\s :: DescribePipelineResponse
s@DescribePipelineResponse' {} Maybe UserContext
a -> DescribePipelineResponse
s {$sel:createdBy:DescribePipelineResponse' :: Maybe UserContext
createdBy = Maybe UserContext
a} :: DescribePipelineResponse)

-- | The time when the pipeline was last run.
describePipelineResponse_lastRunTime :: Lens.Lens' DescribePipelineResponse (Prelude.Maybe Prelude.UTCTime)
describePipelineResponse_lastRunTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribePipelineResponse -> f DescribePipelineResponse
describePipelineResponse_lastRunTime = (DescribePipelineResponse -> Maybe POSIX)
-> (DescribePipelineResponse
    -> Maybe POSIX -> DescribePipelineResponse)
-> Lens
     DescribePipelineResponse
     DescribePipelineResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePipelineResponse' {Maybe POSIX
lastRunTime :: Maybe POSIX
$sel:lastRunTime:DescribePipelineResponse' :: DescribePipelineResponse -> Maybe POSIX
lastRunTime} -> Maybe POSIX
lastRunTime) (\s :: DescribePipelineResponse
s@DescribePipelineResponse' {} Maybe POSIX
a -> DescribePipelineResponse
s {$sel:lastRunTime:DescribePipelineResponse' :: Maybe POSIX
lastRunTime = Maybe POSIX
a} :: DescribePipelineResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribePipelineResponse -> f DescribePipelineResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribePipelineResponse
-> f DescribePipelineResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The time when the pipeline was last modified.
describePipelineResponse_lastModifiedTime :: Lens.Lens' DescribePipelineResponse (Prelude.Maybe Prelude.UTCTime)
describePipelineResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribePipelineResponse -> f DescribePipelineResponse
describePipelineResponse_lastModifiedTime = (DescribePipelineResponse -> Maybe POSIX)
-> (DescribePipelineResponse
    -> Maybe POSIX -> DescribePipelineResponse)
-> Lens
     DescribePipelineResponse
     DescribePipelineResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePipelineResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribePipelineResponse' :: DescribePipelineResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribePipelineResponse
s@DescribePipelineResponse' {} Maybe POSIX
a -> DescribePipelineResponse
s {$sel:lastModifiedTime:DescribePipelineResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribePipelineResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribePipelineResponse -> f DescribePipelineResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribePipelineResponse
-> f DescribePipelineResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The status of the pipeline execution.
describePipelineResponse_pipelineStatus :: Lens.Lens' DescribePipelineResponse (Prelude.Maybe PipelineStatus)
describePipelineResponse_pipelineStatus :: (Maybe PipelineStatus -> f (Maybe PipelineStatus))
-> DescribePipelineResponse -> f DescribePipelineResponse
describePipelineResponse_pipelineStatus = (DescribePipelineResponse -> Maybe PipelineStatus)
-> (DescribePipelineResponse
    -> Maybe PipelineStatus -> DescribePipelineResponse)
-> Lens
     DescribePipelineResponse
     DescribePipelineResponse
     (Maybe PipelineStatus)
     (Maybe PipelineStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePipelineResponse' {Maybe PipelineStatus
pipelineStatus :: Maybe PipelineStatus
$sel:pipelineStatus:DescribePipelineResponse' :: DescribePipelineResponse -> Maybe PipelineStatus
pipelineStatus} -> Maybe PipelineStatus
pipelineStatus) (\s :: DescribePipelineResponse
s@DescribePipelineResponse' {} Maybe PipelineStatus
a -> DescribePipelineResponse
s {$sel:pipelineStatus:DescribePipelineResponse' :: Maybe PipelineStatus
pipelineStatus = Maybe PipelineStatus
a} :: DescribePipelineResponse)

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

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

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

-- | Undocumented member.
describePipelineResponse_lastModifiedBy :: Lens.Lens' DescribePipelineResponse (Prelude.Maybe UserContext)
describePipelineResponse_lastModifiedBy :: (Maybe UserContext -> f (Maybe UserContext))
-> DescribePipelineResponse -> f DescribePipelineResponse
describePipelineResponse_lastModifiedBy = (DescribePipelineResponse -> Maybe UserContext)
-> (DescribePipelineResponse
    -> Maybe UserContext -> DescribePipelineResponse)
-> Lens
     DescribePipelineResponse
     DescribePipelineResponse
     (Maybe UserContext)
     (Maybe UserContext)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePipelineResponse' {Maybe UserContext
lastModifiedBy :: Maybe UserContext
$sel:lastModifiedBy:DescribePipelineResponse' :: DescribePipelineResponse -> Maybe UserContext
lastModifiedBy} -> Maybe UserContext
lastModifiedBy) (\s :: DescribePipelineResponse
s@DescribePipelineResponse' {} Maybe UserContext
a -> DescribePipelineResponse
s {$sel:lastModifiedBy:DescribePipelineResponse' :: Maybe UserContext
lastModifiedBy = Maybe UserContext
a} :: DescribePipelineResponse)

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

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

instance Prelude.NFData DescribePipelineResponse