{-# 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.DescribePipelineDefinitionForExecution
-- 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 an execution\'s pipeline definition.
module Amazonka.SageMaker.DescribePipelineDefinitionForExecution
  ( -- * Creating a Request
    DescribePipelineDefinitionForExecution (..),
    newDescribePipelineDefinitionForExecution,

    -- * Request Lenses
    describePipelineDefinitionForExecution_pipelineExecutionArn,

    -- * Destructuring the Response
    DescribePipelineDefinitionForExecutionResponse (..),
    newDescribePipelineDefinitionForExecutionResponse,

    -- * Response Lenses
    describePipelineDefinitionForExecutionResponse_creationTime,
    describePipelineDefinitionForExecutionResponse_pipelineDefinition,
    describePipelineDefinitionForExecutionResponse_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:/ 'newDescribePipelineDefinitionForExecution' smart constructor.
data DescribePipelineDefinitionForExecution = DescribePipelineDefinitionForExecution'
  { -- | The Amazon Resource Name (ARN) of the pipeline execution.
    DescribePipelineDefinitionForExecution -> Text
pipelineExecutionArn :: Prelude.Text
  }
  deriving (DescribePipelineDefinitionForExecution
-> DescribePipelineDefinitionForExecution -> Bool
(DescribePipelineDefinitionForExecution
 -> DescribePipelineDefinitionForExecution -> Bool)
-> (DescribePipelineDefinitionForExecution
    -> DescribePipelineDefinitionForExecution -> Bool)
-> Eq DescribePipelineDefinitionForExecution
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePipelineDefinitionForExecution
-> DescribePipelineDefinitionForExecution -> Bool
$c/= :: DescribePipelineDefinitionForExecution
-> DescribePipelineDefinitionForExecution -> Bool
== :: DescribePipelineDefinitionForExecution
-> DescribePipelineDefinitionForExecution -> Bool
$c== :: DescribePipelineDefinitionForExecution
-> DescribePipelineDefinitionForExecution -> Bool
Prelude.Eq, ReadPrec [DescribePipelineDefinitionForExecution]
ReadPrec DescribePipelineDefinitionForExecution
Int -> ReadS DescribePipelineDefinitionForExecution
ReadS [DescribePipelineDefinitionForExecution]
(Int -> ReadS DescribePipelineDefinitionForExecution)
-> ReadS [DescribePipelineDefinitionForExecution]
-> ReadPrec DescribePipelineDefinitionForExecution
-> ReadPrec [DescribePipelineDefinitionForExecution]
-> Read DescribePipelineDefinitionForExecution
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePipelineDefinitionForExecution]
$creadListPrec :: ReadPrec [DescribePipelineDefinitionForExecution]
readPrec :: ReadPrec DescribePipelineDefinitionForExecution
$creadPrec :: ReadPrec DescribePipelineDefinitionForExecution
readList :: ReadS [DescribePipelineDefinitionForExecution]
$creadList :: ReadS [DescribePipelineDefinitionForExecution]
readsPrec :: Int -> ReadS DescribePipelineDefinitionForExecution
$creadsPrec :: Int -> ReadS DescribePipelineDefinitionForExecution
Prelude.Read, Int -> DescribePipelineDefinitionForExecution -> ShowS
[DescribePipelineDefinitionForExecution] -> ShowS
DescribePipelineDefinitionForExecution -> String
(Int -> DescribePipelineDefinitionForExecution -> ShowS)
-> (DescribePipelineDefinitionForExecution -> String)
-> ([DescribePipelineDefinitionForExecution] -> ShowS)
-> Show DescribePipelineDefinitionForExecution
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePipelineDefinitionForExecution] -> ShowS
$cshowList :: [DescribePipelineDefinitionForExecution] -> ShowS
show :: DescribePipelineDefinitionForExecution -> String
$cshow :: DescribePipelineDefinitionForExecution -> String
showsPrec :: Int -> DescribePipelineDefinitionForExecution -> ShowS
$cshowsPrec :: Int -> DescribePipelineDefinitionForExecution -> ShowS
Prelude.Show, (forall x.
 DescribePipelineDefinitionForExecution
 -> Rep DescribePipelineDefinitionForExecution x)
-> (forall x.
    Rep DescribePipelineDefinitionForExecution x
    -> DescribePipelineDefinitionForExecution)
-> Generic DescribePipelineDefinitionForExecution
forall x.
Rep DescribePipelineDefinitionForExecution x
-> DescribePipelineDefinitionForExecution
forall x.
DescribePipelineDefinitionForExecution
-> Rep DescribePipelineDefinitionForExecution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePipelineDefinitionForExecution x
-> DescribePipelineDefinitionForExecution
$cfrom :: forall x.
DescribePipelineDefinitionForExecution
-> Rep DescribePipelineDefinitionForExecution x
Prelude.Generic)

-- |
-- Create a value of 'DescribePipelineDefinitionForExecution' 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:
--
-- 'pipelineExecutionArn', 'describePipelineDefinitionForExecution_pipelineExecutionArn' - The Amazon Resource Name (ARN) of the pipeline execution.
newDescribePipelineDefinitionForExecution ::
  -- | 'pipelineExecutionArn'
  Prelude.Text ->
  DescribePipelineDefinitionForExecution
newDescribePipelineDefinitionForExecution :: Text -> DescribePipelineDefinitionForExecution
newDescribePipelineDefinitionForExecution
  Text
pPipelineExecutionArn_ =
    DescribePipelineDefinitionForExecution' :: Text -> DescribePipelineDefinitionForExecution
DescribePipelineDefinitionForExecution'
      { $sel:pipelineExecutionArn:DescribePipelineDefinitionForExecution' :: Text
pipelineExecutionArn =
          Text
pPipelineExecutionArn_
      }

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

instance
  Core.AWSRequest
    DescribePipelineDefinitionForExecution
  where
  type
    AWSResponse
      DescribePipelineDefinitionForExecution =
      DescribePipelineDefinitionForExecutionResponse
  request :: DescribePipelineDefinitionForExecution
-> Request DescribePipelineDefinitionForExecution
request = Service
-> DescribePipelineDefinitionForExecution
-> Request DescribePipelineDefinitionForExecution
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribePipelineDefinitionForExecution
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribePipelineDefinitionForExecution)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DescribePipelineDefinitionForExecution))
-> Logger
-> Service
-> Proxy DescribePipelineDefinitionForExecution
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribePipelineDefinitionForExecution)))
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
-> Int
-> DescribePipelineDefinitionForExecutionResponse
DescribePipelineDefinitionForExecutionResponse'
            (Maybe POSIX
 -> Maybe Text
 -> Int
 -> DescribePipelineDefinitionForExecutionResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Int -> DescribePipelineDefinitionForExecutionResponse)
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
   -> Int -> DescribePipelineDefinitionForExecutionResponse)
-> Either String (Maybe Text)
-> Either
     String (Int -> DescribePipelineDefinitionForExecutionResponse)
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 (Int -> DescribePipelineDefinitionForExecutionResponse)
-> Either String Int
-> Either String DescribePipelineDefinitionForExecutionResponse
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
    DescribePipelineDefinitionForExecution

instance
  Prelude.NFData
    DescribePipelineDefinitionForExecution

instance
  Core.ToHeaders
    DescribePipelineDefinitionForExecution
  where
  toHeaders :: DescribePipelineDefinitionForExecution -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribePipelineDefinitionForExecution -> 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.DescribePipelineDefinitionForExecution" ::
                          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
    DescribePipelineDefinitionForExecution
  where
  toJSON :: DescribePipelineDefinitionForExecution -> Value
toJSON DescribePipelineDefinitionForExecution' {Text
pipelineExecutionArn :: Text
$sel:pipelineExecutionArn:DescribePipelineDefinitionForExecution' :: DescribePipelineDefinitionForExecution -> 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
"PipelineExecutionArn"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
pipelineExecutionArn
              )
          ]
      )

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

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

-- | /See:/ 'newDescribePipelineDefinitionForExecutionResponse' smart constructor.
data DescribePipelineDefinitionForExecutionResponse = DescribePipelineDefinitionForExecutionResponse'
  { -- | The time when the pipeline was created.
    DescribePipelineDefinitionForExecutionResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The JSON pipeline definition.
    DescribePipelineDefinitionForExecutionResponse -> Maybe Text
pipelineDefinition :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribePipelineDefinitionForExecutionResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribePipelineDefinitionForExecutionResponse
-> DescribePipelineDefinitionForExecutionResponse -> Bool
(DescribePipelineDefinitionForExecutionResponse
 -> DescribePipelineDefinitionForExecutionResponse -> Bool)
-> (DescribePipelineDefinitionForExecutionResponse
    -> DescribePipelineDefinitionForExecutionResponse -> Bool)
-> Eq DescribePipelineDefinitionForExecutionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePipelineDefinitionForExecutionResponse
-> DescribePipelineDefinitionForExecutionResponse -> Bool
$c/= :: DescribePipelineDefinitionForExecutionResponse
-> DescribePipelineDefinitionForExecutionResponse -> Bool
== :: DescribePipelineDefinitionForExecutionResponse
-> DescribePipelineDefinitionForExecutionResponse -> Bool
$c== :: DescribePipelineDefinitionForExecutionResponse
-> DescribePipelineDefinitionForExecutionResponse -> Bool
Prelude.Eq, ReadPrec [DescribePipelineDefinitionForExecutionResponse]
ReadPrec DescribePipelineDefinitionForExecutionResponse
Int -> ReadS DescribePipelineDefinitionForExecutionResponse
ReadS [DescribePipelineDefinitionForExecutionResponse]
(Int -> ReadS DescribePipelineDefinitionForExecutionResponse)
-> ReadS [DescribePipelineDefinitionForExecutionResponse]
-> ReadPrec DescribePipelineDefinitionForExecutionResponse
-> ReadPrec [DescribePipelineDefinitionForExecutionResponse]
-> Read DescribePipelineDefinitionForExecutionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePipelineDefinitionForExecutionResponse]
$creadListPrec :: ReadPrec [DescribePipelineDefinitionForExecutionResponse]
readPrec :: ReadPrec DescribePipelineDefinitionForExecutionResponse
$creadPrec :: ReadPrec DescribePipelineDefinitionForExecutionResponse
readList :: ReadS [DescribePipelineDefinitionForExecutionResponse]
$creadList :: ReadS [DescribePipelineDefinitionForExecutionResponse]
readsPrec :: Int -> ReadS DescribePipelineDefinitionForExecutionResponse
$creadsPrec :: Int -> ReadS DescribePipelineDefinitionForExecutionResponse
Prelude.Read, Int -> DescribePipelineDefinitionForExecutionResponse -> ShowS
[DescribePipelineDefinitionForExecutionResponse] -> ShowS
DescribePipelineDefinitionForExecutionResponse -> String
(Int -> DescribePipelineDefinitionForExecutionResponse -> ShowS)
-> (DescribePipelineDefinitionForExecutionResponse -> String)
-> ([DescribePipelineDefinitionForExecutionResponse] -> ShowS)
-> Show DescribePipelineDefinitionForExecutionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePipelineDefinitionForExecutionResponse] -> ShowS
$cshowList :: [DescribePipelineDefinitionForExecutionResponse] -> ShowS
show :: DescribePipelineDefinitionForExecutionResponse -> String
$cshow :: DescribePipelineDefinitionForExecutionResponse -> String
showsPrec :: Int -> DescribePipelineDefinitionForExecutionResponse -> ShowS
$cshowsPrec :: Int -> DescribePipelineDefinitionForExecutionResponse -> ShowS
Prelude.Show, (forall x.
 DescribePipelineDefinitionForExecutionResponse
 -> Rep DescribePipelineDefinitionForExecutionResponse x)
-> (forall x.
    Rep DescribePipelineDefinitionForExecutionResponse x
    -> DescribePipelineDefinitionForExecutionResponse)
-> Generic DescribePipelineDefinitionForExecutionResponse
forall x.
Rep DescribePipelineDefinitionForExecutionResponse x
-> DescribePipelineDefinitionForExecutionResponse
forall x.
DescribePipelineDefinitionForExecutionResponse
-> Rep DescribePipelineDefinitionForExecutionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePipelineDefinitionForExecutionResponse x
-> DescribePipelineDefinitionForExecutionResponse
$cfrom :: forall x.
DescribePipelineDefinitionForExecutionResponse
-> Rep DescribePipelineDefinitionForExecutionResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribePipelineDefinitionForExecutionResponse' 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', 'describePipelineDefinitionForExecutionResponse_creationTime' - The time when the pipeline was created.
--
-- 'pipelineDefinition', 'describePipelineDefinitionForExecutionResponse_pipelineDefinition' - The JSON pipeline definition.
--
-- 'httpStatus', 'describePipelineDefinitionForExecutionResponse_httpStatus' - The response's http status code.
newDescribePipelineDefinitionForExecutionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribePipelineDefinitionForExecutionResponse
newDescribePipelineDefinitionForExecutionResponse :: Int -> DescribePipelineDefinitionForExecutionResponse
newDescribePipelineDefinitionForExecutionResponse
  Int
pHttpStatus_ =
    DescribePipelineDefinitionForExecutionResponse' :: Maybe POSIX
-> Maybe Text
-> Int
-> DescribePipelineDefinitionForExecutionResponse
DescribePipelineDefinitionForExecutionResponse'
      { $sel:creationTime:DescribePipelineDefinitionForExecutionResponse' :: Maybe POSIX
creationTime =
          Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:pipelineDefinition:DescribePipelineDefinitionForExecutionResponse' :: Maybe Text
pipelineDefinition =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribePipelineDefinitionForExecutionResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The time when the pipeline was created.
describePipelineDefinitionForExecutionResponse_creationTime :: Lens.Lens' DescribePipelineDefinitionForExecutionResponse (Prelude.Maybe Prelude.UTCTime)
describePipelineDefinitionForExecutionResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribePipelineDefinitionForExecutionResponse
-> f DescribePipelineDefinitionForExecutionResponse
describePipelineDefinitionForExecutionResponse_creationTime = (DescribePipelineDefinitionForExecutionResponse -> Maybe POSIX)
-> (DescribePipelineDefinitionForExecutionResponse
    -> Maybe POSIX -> DescribePipelineDefinitionForExecutionResponse)
-> Lens
     DescribePipelineDefinitionForExecutionResponse
     DescribePipelineDefinitionForExecutionResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePipelineDefinitionForExecutionResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribePipelineDefinitionForExecutionResponse' :: DescribePipelineDefinitionForExecutionResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribePipelineDefinitionForExecutionResponse
s@DescribePipelineDefinitionForExecutionResponse' {} Maybe POSIX
a -> DescribePipelineDefinitionForExecutionResponse
s {$sel:creationTime:DescribePipelineDefinitionForExecutionResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribePipelineDefinitionForExecutionResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribePipelineDefinitionForExecutionResponse
 -> f DescribePipelineDefinitionForExecutionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribePipelineDefinitionForExecutionResponse
-> f DescribePipelineDefinitionForExecutionResponse
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 JSON pipeline definition.
describePipelineDefinitionForExecutionResponse_pipelineDefinition :: Lens.Lens' DescribePipelineDefinitionForExecutionResponse (Prelude.Maybe Prelude.Text)
describePipelineDefinitionForExecutionResponse_pipelineDefinition :: (Maybe Text -> f (Maybe Text))
-> DescribePipelineDefinitionForExecutionResponse
-> f DescribePipelineDefinitionForExecutionResponse
describePipelineDefinitionForExecutionResponse_pipelineDefinition = (DescribePipelineDefinitionForExecutionResponse -> Maybe Text)
-> (DescribePipelineDefinitionForExecutionResponse
    -> Maybe Text -> DescribePipelineDefinitionForExecutionResponse)
-> Lens
     DescribePipelineDefinitionForExecutionResponse
     DescribePipelineDefinitionForExecutionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePipelineDefinitionForExecutionResponse' {Maybe Text
pipelineDefinition :: Maybe Text
$sel:pipelineDefinition:DescribePipelineDefinitionForExecutionResponse' :: DescribePipelineDefinitionForExecutionResponse -> Maybe Text
pipelineDefinition} -> Maybe Text
pipelineDefinition) (\s :: DescribePipelineDefinitionForExecutionResponse
s@DescribePipelineDefinitionForExecutionResponse' {} Maybe Text
a -> DescribePipelineDefinitionForExecutionResponse
s {$sel:pipelineDefinition:DescribePipelineDefinitionForExecutionResponse' :: Maybe Text
pipelineDefinition = Maybe Text
a} :: DescribePipelineDefinitionForExecutionResponse)

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

instance
  Prelude.NFData
    DescribePipelineDefinitionForExecutionResponse