{-# 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.DescribeFlowDefinition
-- 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)
--
-- Returns information about the specified flow definition.
module Amazonka.SageMaker.DescribeFlowDefinition
  ( -- * Creating a Request
    DescribeFlowDefinition (..),
    newDescribeFlowDefinition,

    -- * Request Lenses
    describeFlowDefinition_flowDefinitionName,

    -- * Destructuring the Response
    DescribeFlowDefinitionResponse (..),
    newDescribeFlowDefinitionResponse,

    -- * Response Lenses
    describeFlowDefinitionResponse_failureReason,
    describeFlowDefinitionResponse_humanLoopRequestSource,
    describeFlowDefinitionResponse_humanLoopActivationConfig,
    describeFlowDefinitionResponse_httpStatus,
    describeFlowDefinitionResponse_flowDefinitionArn,
    describeFlowDefinitionResponse_flowDefinitionName,
    describeFlowDefinitionResponse_flowDefinitionStatus,
    describeFlowDefinitionResponse_creationTime,
    describeFlowDefinitionResponse_humanLoopConfig,
    describeFlowDefinitionResponse_outputConfig,
    describeFlowDefinitionResponse_roleArn,
  )
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:/ 'newDescribeFlowDefinition' smart constructor.
data DescribeFlowDefinition = DescribeFlowDefinition'
  { -- | The name of the flow definition.
    DescribeFlowDefinition -> Text
flowDefinitionName :: Prelude.Text
  }
  deriving (DescribeFlowDefinition -> DescribeFlowDefinition -> Bool
(DescribeFlowDefinition -> DescribeFlowDefinition -> Bool)
-> (DescribeFlowDefinition -> DescribeFlowDefinition -> Bool)
-> Eq DescribeFlowDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFlowDefinition -> DescribeFlowDefinition -> Bool
$c/= :: DescribeFlowDefinition -> DescribeFlowDefinition -> Bool
== :: DescribeFlowDefinition -> DescribeFlowDefinition -> Bool
$c== :: DescribeFlowDefinition -> DescribeFlowDefinition -> Bool
Prelude.Eq, ReadPrec [DescribeFlowDefinition]
ReadPrec DescribeFlowDefinition
Int -> ReadS DescribeFlowDefinition
ReadS [DescribeFlowDefinition]
(Int -> ReadS DescribeFlowDefinition)
-> ReadS [DescribeFlowDefinition]
-> ReadPrec DescribeFlowDefinition
-> ReadPrec [DescribeFlowDefinition]
-> Read DescribeFlowDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFlowDefinition]
$creadListPrec :: ReadPrec [DescribeFlowDefinition]
readPrec :: ReadPrec DescribeFlowDefinition
$creadPrec :: ReadPrec DescribeFlowDefinition
readList :: ReadS [DescribeFlowDefinition]
$creadList :: ReadS [DescribeFlowDefinition]
readsPrec :: Int -> ReadS DescribeFlowDefinition
$creadsPrec :: Int -> ReadS DescribeFlowDefinition
Prelude.Read, Int -> DescribeFlowDefinition -> ShowS
[DescribeFlowDefinition] -> ShowS
DescribeFlowDefinition -> String
(Int -> DescribeFlowDefinition -> ShowS)
-> (DescribeFlowDefinition -> String)
-> ([DescribeFlowDefinition] -> ShowS)
-> Show DescribeFlowDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFlowDefinition] -> ShowS
$cshowList :: [DescribeFlowDefinition] -> ShowS
show :: DescribeFlowDefinition -> String
$cshow :: DescribeFlowDefinition -> String
showsPrec :: Int -> DescribeFlowDefinition -> ShowS
$cshowsPrec :: Int -> DescribeFlowDefinition -> ShowS
Prelude.Show, (forall x. DescribeFlowDefinition -> Rep DescribeFlowDefinition x)
-> (forall x.
    Rep DescribeFlowDefinition x -> DescribeFlowDefinition)
-> Generic DescribeFlowDefinition
forall x. Rep DescribeFlowDefinition x -> DescribeFlowDefinition
forall x. DescribeFlowDefinition -> Rep DescribeFlowDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeFlowDefinition x -> DescribeFlowDefinition
$cfrom :: forall x. DescribeFlowDefinition -> Rep DescribeFlowDefinition x
Prelude.Generic)

-- |
-- Create a value of 'DescribeFlowDefinition' 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:
--
-- 'flowDefinitionName', 'describeFlowDefinition_flowDefinitionName' - The name of the flow definition.
newDescribeFlowDefinition ::
  -- | 'flowDefinitionName'
  Prelude.Text ->
  DescribeFlowDefinition
newDescribeFlowDefinition :: Text -> DescribeFlowDefinition
newDescribeFlowDefinition Text
pFlowDefinitionName_ =
  DescribeFlowDefinition' :: Text -> DescribeFlowDefinition
DescribeFlowDefinition'
    { $sel:flowDefinitionName:DescribeFlowDefinition' :: Text
flowDefinitionName =
        Text
pFlowDefinitionName_
    }

-- | The name of the flow definition.
describeFlowDefinition_flowDefinitionName :: Lens.Lens' DescribeFlowDefinition Prelude.Text
describeFlowDefinition_flowDefinitionName :: (Text -> f Text)
-> DescribeFlowDefinition -> f DescribeFlowDefinition
describeFlowDefinition_flowDefinitionName = (DescribeFlowDefinition -> Text)
-> (DescribeFlowDefinition -> Text -> DescribeFlowDefinition)
-> Lens DescribeFlowDefinition DescribeFlowDefinition Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinition' {Text
flowDefinitionName :: Text
$sel:flowDefinitionName:DescribeFlowDefinition' :: DescribeFlowDefinition -> Text
flowDefinitionName} -> Text
flowDefinitionName) (\s :: DescribeFlowDefinition
s@DescribeFlowDefinition' {} Text
a -> DescribeFlowDefinition
s {$sel:flowDefinitionName:DescribeFlowDefinition' :: Text
flowDefinitionName = Text
a} :: DescribeFlowDefinition)

instance Core.AWSRequest DescribeFlowDefinition where
  type
    AWSResponse DescribeFlowDefinition =
      DescribeFlowDefinitionResponse
  request :: DescribeFlowDefinition -> Request DescribeFlowDefinition
request = Service -> DescribeFlowDefinition -> Request DescribeFlowDefinition
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeFlowDefinition
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeFlowDefinition)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeFlowDefinition))
-> Logger
-> Service
-> Proxy DescribeFlowDefinition
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeFlowDefinition)))
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
-> Maybe HumanLoopRequestSource
-> Maybe HumanLoopActivationConfig
-> Int
-> Text
-> Text
-> FlowDefinitionStatus
-> POSIX
-> HumanLoopConfig
-> FlowDefinitionOutputConfig
-> Text
-> DescribeFlowDefinitionResponse
DescribeFlowDefinitionResponse'
            (Maybe Text
 -> Maybe HumanLoopRequestSource
 -> Maybe HumanLoopActivationConfig
 -> Int
 -> Text
 -> Text
 -> FlowDefinitionStatus
 -> POSIX
 -> HumanLoopConfig
 -> FlowDefinitionOutputConfig
 -> Text
 -> DescribeFlowDefinitionResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe HumanLoopRequestSource
      -> Maybe HumanLoopActivationConfig
      -> Int
      -> Text
      -> Text
      -> FlowDefinitionStatus
      -> POSIX
      -> HumanLoopConfig
      -> FlowDefinitionOutputConfig
      -> Text
      -> DescribeFlowDefinitionResponse)
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
"FailureReason")
            Either
  String
  (Maybe HumanLoopRequestSource
   -> Maybe HumanLoopActivationConfig
   -> Int
   -> Text
   -> Text
   -> FlowDefinitionStatus
   -> POSIX
   -> HumanLoopConfig
   -> FlowDefinitionOutputConfig
   -> Text
   -> DescribeFlowDefinitionResponse)
-> Either String (Maybe HumanLoopRequestSource)
-> Either
     String
     (Maybe HumanLoopActivationConfig
      -> Int
      -> Text
      -> Text
      -> FlowDefinitionStatus
      -> POSIX
      -> HumanLoopConfig
      -> FlowDefinitionOutputConfig
      -> Text
      -> DescribeFlowDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe HumanLoopRequestSource)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"HumanLoopRequestSource")
            Either
  String
  (Maybe HumanLoopActivationConfig
   -> Int
   -> Text
   -> Text
   -> FlowDefinitionStatus
   -> POSIX
   -> HumanLoopConfig
   -> FlowDefinitionOutputConfig
   -> Text
   -> DescribeFlowDefinitionResponse)
-> Either String (Maybe HumanLoopActivationConfig)
-> Either
     String
     (Int
      -> Text
      -> Text
      -> FlowDefinitionStatus
      -> POSIX
      -> HumanLoopConfig
      -> FlowDefinitionOutputConfig
      -> Text
      -> DescribeFlowDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe HumanLoopActivationConfig)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"HumanLoopActivationConfig")
            Either
  String
  (Int
   -> Text
   -> Text
   -> FlowDefinitionStatus
   -> POSIX
   -> HumanLoopConfig
   -> FlowDefinitionOutputConfig
   -> Text
   -> DescribeFlowDefinitionResponse)
-> Either String Int
-> Either
     String
     (Text
      -> Text
      -> FlowDefinitionStatus
      -> POSIX
      -> HumanLoopConfig
      -> FlowDefinitionOutputConfig
      -> Text
      -> DescribeFlowDefinitionResponse)
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))
            Either
  String
  (Text
   -> Text
   -> FlowDefinitionStatus
   -> POSIX
   -> HumanLoopConfig
   -> FlowDefinitionOutputConfig
   -> Text
   -> DescribeFlowDefinitionResponse)
-> Either String Text
-> Either
     String
     (Text
      -> FlowDefinitionStatus
      -> POSIX
      -> HumanLoopConfig
      -> FlowDefinitionOutputConfig
      -> Text
      -> DescribeFlowDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"FlowDefinitionArn")
            Either
  String
  (Text
   -> FlowDefinitionStatus
   -> POSIX
   -> HumanLoopConfig
   -> FlowDefinitionOutputConfig
   -> Text
   -> DescribeFlowDefinitionResponse)
-> Either String Text
-> Either
     String
     (FlowDefinitionStatus
      -> POSIX
      -> HumanLoopConfig
      -> FlowDefinitionOutputConfig
      -> Text
      -> DescribeFlowDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"FlowDefinitionName")
            Either
  String
  (FlowDefinitionStatus
   -> POSIX
   -> HumanLoopConfig
   -> FlowDefinitionOutputConfig
   -> Text
   -> DescribeFlowDefinitionResponse)
-> Either String FlowDefinitionStatus
-> Either
     String
     (POSIX
      -> HumanLoopConfig
      -> FlowDefinitionOutputConfig
      -> Text
      -> DescribeFlowDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String FlowDefinitionStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"FlowDefinitionStatus")
            Either
  String
  (POSIX
   -> HumanLoopConfig
   -> FlowDefinitionOutputConfig
   -> Text
   -> DescribeFlowDefinitionResponse)
-> Either String POSIX
-> Either
     String
     (HumanLoopConfig
      -> FlowDefinitionOutputConfig
      -> Text
      -> DescribeFlowDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CreationTime")
            Either
  String
  (HumanLoopConfig
   -> FlowDefinitionOutputConfig
   -> Text
   -> DescribeFlowDefinitionResponse)
-> Either String HumanLoopConfig
-> Either
     String
     (FlowDefinitionOutputConfig
      -> Text -> DescribeFlowDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String HumanLoopConfig
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"HumanLoopConfig")
            Either
  String
  (FlowDefinitionOutputConfig
   -> Text -> DescribeFlowDefinitionResponse)
-> Either String FlowDefinitionOutputConfig
-> Either String (Text -> DescribeFlowDefinitionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String FlowDefinitionOutputConfig
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"OutputConfig")
            Either String (Text -> DescribeFlowDefinitionResponse)
-> Either String Text
-> Either String DescribeFlowDefinitionResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"RoleArn")
      )

instance Prelude.Hashable DescribeFlowDefinition

instance Prelude.NFData DescribeFlowDefinition

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

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

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

-- | /See:/ 'newDescribeFlowDefinitionResponse' smart constructor.
data DescribeFlowDefinitionResponse = DescribeFlowDefinitionResponse'
  { -- | The reason your flow definition failed.
    DescribeFlowDefinitionResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
    -- | Container for configuring the source of human task requests. Used to
    -- specify if Amazon Rekognition or Amazon Textract is used as an
    -- integration source.
    DescribeFlowDefinitionResponse -> Maybe HumanLoopRequestSource
humanLoopRequestSource :: Prelude.Maybe HumanLoopRequestSource,
    -- | An object containing information about what triggers a human review
    -- workflow.
    DescribeFlowDefinitionResponse -> Maybe HumanLoopActivationConfig
humanLoopActivationConfig :: Prelude.Maybe HumanLoopActivationConfig,
    -- | The response's http status code.
    DescribeFlowDefinitionResponse -> Int
httpStatus :: Prelude.Int,
    -- | The Amazon Resource Name (ARN) of the flow defintion.
    DescribeFlowDefinitionResponse -> Text
flowDefinitionArn :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the flow definition.
    DescribeFlowDefinitionResponse -> Text
flowDefinitionName :: Prelude.Text,
    -- | The status of the flow definition. Valid values are listed below.
    DescribeFlowDefinitionResponse -> FlowDefinitionStatus
flowDefinitionStatus :: FlowDefinitionStatus,
    -- | The timestamp when the flow definition was created.
    DescribeFlowDefinitionResponse -> POSIX
creationTime :: Core.POSIX,
    -- | An object containing information about who works on the task, the
    -- workforce task price, and other task details.
    DescribeFlowDefinitionResponse -> HumanLoopConfig
humanLoopConfig :: HumanLoopConfig,
    -- | An object containing information about the output file.
    DescribeFlowDefinitionResponse -> FlowDefinitionOutputConfig
outputConfig :: FlowDefinitionOutputConfig,
    -- | The Amazon Resource Name (ARN) of the Amazon Web Services Identity and
    -- Access Management (IAM) execution role for the flow definition.
    DescribeFlowDefinitionResponse -> Text
roleArn :: Prelude.Text
  }
  deriving (DescribeFlowDefinitionResponse
-> DescribeFlowDefinitionResponse -> Bool
(DescribeFlowDefinitionResponse
 -> DescribeFlowDefinitionResponse -> Bool)
-> (DescribeFlowDefinitionResponse
    -> DescribeFlowDefinitionResponse -> Bool)
-> Eq DescribeFlowDefinitionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeFlowDefinitionResponse
-> DescribeFlowDefinitionResponse -> Bool
$c/= :: DescribeFlowDefinitionResponse
-> DescribeFlowDefinitionResponse -> Bool
== :: DescribeFlowDefinitionResponse
-> DescribeFlowDefinitionResponse -> Bool
$c== :: DescribeFlowDefinitionResponse
-> DescribeFlowDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [DescribeFlowDefinitionResponse]
ReadPrec DescribeFlowDefinitionResponse
Int -> ReadS DescribeFlowDefinitionResponse
ReadS [DescribeFlowDefinitionResponse]
(Int -> ReadS DescribeFlowDefinitionResponse)
-> ReadS [DescribeFlowDefinitionResponse]
-> ReadPrec DescribeFlowDefinitionResponse
-> ReadPrec [DescribeFlowDefinitionResponse]
-> Read DescribeFlowDefinitionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeFlowDefinitionResponse]
$creadListPrec :: ReadPrec [DescribeFlowDefinitionResponse]
readPrec :: ReadPrec DescribeFlowDefinitionResponse
$creadPrec :: ReadPrec DescribeFlowDefinitionResponse
readList :: ReadS [DescribeFlowDefinitionResponse]
$creadList :: ReadS [DescribeFlowDefinitionResponse]
readsPrec :: Int -> ReadS DescribeFlowDefinitionResponse
$creadsPrec :: Int -> ReadS DescribeFlowDefinitionResponse
Prelude.Read, Int -> DescribeFlowDefinitionResponse -> ShowS
[DescribeFlowDefinitionResponse] -> ShowS
DescribeFlowDefinitionResponse -> String
(Int -> DescribeFlowDefinitionResponse -> ShowS)
-> (DescribeFlowDefinitionResponse -> String)
-> ([DescribeFlowDefinitionResponse] -> ShowS)
-> Show DescribeFlowDefinitionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeFlowDefinitionResponse] -> ShowS
$cshowList :: [DescribeFlowDefinitionResponse] -> ShowS
show :: DescribeFlowDefinitionResponse -> String
$cshow :: DescribeFlowDefinitionResponse -> String
showsPrec :: Int -> DescribeFlowDefinitionResponse -> ShowS
$cshowsPrec :: Int -> DescribeFlowDefinitionResponse -> ShowS
Prelude.Show, (forall x.
 DescribeFlowDefinitionResponse
 -> Rep DescribeFlowDefinitionResponse x)
-> (forall x.
    Rep DescribeFlowDefinitionResponse x
    -> DescribeFlowDefinitionResponse)
-> Generic DescribeFlowDefinitionResponse
forall x.
Rep DescribeFlowDefinitionResponse x
-> DescribeFlowDefinitionResponse
forall x.
DescribeFlowDefinitionResponse
-> Rep DescribeFlowDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeFlowDefinitionResponse x
-> DescribeFlowDefinitionResponse
$cfrom :: forall x.
DescribeFlowDefinitionResponse
-> Rep DescribeFlowDefinitionResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeFlowDefinitionResponse' 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:
--
-- 'failureReason', 'describeFlowDefinitionResponse_failureReason' - The reason your flow definition failed.
--
-- 'humanLoopRequestSource', 'describeFlowDefinitionResponse_humanLoopRequestSource' - Container for configuring the source of human task requests. Used to
-- specify if Amazon Rekognition or Amazon Textract is used as an
-- integration source.
--
-- 'humanLoopActivationConfig', 'describeFlowDefinitionResponse_humanLoopActivationConfig' - An object containing information about what triggers a human review
-- workflow.
--
-- 'httpStatus', 'describeFlowDefinitionResponse_httpStatus' - The response's http status code.
--
-- 'flowDefinitionArn', 'describeFlowDefinitionResponse_flowDefinitionArn' - The Amazon Resource Name (ARN) of the flow defintion.
--
-- 'flowDefinitionName', 'describeFlowDefinitionResponse_flowDefinitionName' - The Amazon Resource Name (ARN) of the flow definition.
--
-- 'flowDefinitionStatus', 'describeFlowDefinitionResponse_flowDefinitionStatus' - The status of the flow definition. Valid values are listed below.
--
-- 'creationTime', 'describeFlowDefinitionResponse_creationTime' - The timestamp when the flow definition was created.
--
-- 'humanLoopConfig', 'describeFlowDefinitionResponse_humanLoopConfig' - An object containing information about who works on the task, the
-- workforce task price, and other task details.
--
-- 'outputConfig', 'describeFlowDefinitionResponse_outputConfig' - An object containing information about the output file.
--
-- 'roleArn', 'describeFlowDefinitionResponse_roleArn' - The Amazon Resource Name (ARN) of the Amazon Web Services Identity and
-- Access Management (IAM) execution role for the flow definition.
newDescribeFlowDefinitionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'flowDefinitionArn'
  Prelude.Text ->
  -- | 'flowDefinitionName'
  Prelude.Text ->
  -- | 'flowDefinitionStatus'
  FlowDefinitionStatus ->
  -- | 'creationTime'
  Prelude.UTCTime ->
  -- | 'humanLoopConfig'
  HumanLoopConfig ->
  -- | 'outputConfig'
  FlowDefinitionOutputConfig ->
  -- | 'roleArn'
  Prelude.Text ->
  DescribeFlowDefinitionResponse
newDescribeFlowDefinitionResponse :: Int
-> Text
-> Text
-> FlowDefinitionStatus
-> UTCTime
-> HumanLoopConfig
-> FlowDefinitionOutputConfig
-> Text
-> DescribeFlowDefinitionResponse
newDescribeFlowDefinitionResponse
  Int
pHttpStatus_
  Text
pFlowDefinitionArn_
  Text
pFlowDefinitionName_
  FlowDefinitionStatus
pFlowDefinitionStatus_
  UTCTime
pCreationTime_
  HumanLoopConfig
pHumanLoopConfig_
  FlowDefinitionOutputConfig
pOutputConfig_
  Text
pRoleArn_ =
    DescribeFlowDefinitionResponse' :: Maybe Text
-> Maybe HumanLoopRequestSource
-> Maybe HumanLoopActivationConfig
-> Int
-> Text
-> Text
-> FlowDefinitionStatus
-> POSIX
-> HumanLoopConfig
-> FlowDefinitionOutputConfig
-> Text
-> DescribeFlowDefinitionResponse
DescribeFlowDefinitionResponse'
      { $sel:failureReason:DescribeFlowDefinitionResponse' :: Maybe Text
failureReason =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:humanLoopRequestSource:DescribeFlowDefinitionResponse' :: Maybe HumanLoopRequestSource
humanLoopRequestSource = Maybe HumanLoopRequestSource
forall a. Maybe a
Prelude.Nothing,
        $sel:humanLoopActivationConfig:DescribeFlowDefinitionResponse' :: Maybe HumanLoopActivationConfig
humanLoopActivationConfig = Maybe HumanLoopActivationConfig
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeFlowDefinitionResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:flowDefinitionArn:DescribeFlowDefinitionResponse' :: Text
flowDefinitionArn = Text
pFlowDefinitionArn_,
        $sel:flowDefinitionName:DescribeFlowDefinitionResponse' :: Text
flowDefinitionName = Text
pFlowDefinitionName_,
        $sel:flowDefinitionStatus:DescribeFlowDefinitionResponse' :: FlowDefinitionStatus
flowDefinitionStatus =
          FlowDefinitionStatus
pFlowDefinitionStatus_,
        $sel:creationTime:DescribeFlowDefinitionResponse' :: POSIX
creationTime =
          Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
        $sel:humanLoopConfig:DescribeFlowDefinitionResponse' :: HumanLoopConfig
humanLoopConfig = HumanLoopConfig
pHumanLoopConfig_,
        $sel:outputConfig:DescribeFlowDefinitionResponse' :: FlowDefinitionOutputConfig
outputConfig = FlowDefinitionOutputConfig
pOutputConfig_,
        $sel:roleArn:DescribeFlowDefinitionResponse' :: Text
roleArn = Text
pRoleArn_
      }

-- | The reason your flow definition failed.
describeFlowDefinitionResponse_failureReason :: Lens.Lens' DescribeFlowDefinitionResponse (Prelude.Maybe Prelude.Text)
describeFlowDefinitionResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
describeFlowDefinitionResponse_failureReason = (DescribeFlowDefinitionResponse -> Maybe Text)
-> (DescribeFlowDefinitionResponse
    -> Maybe Text -> DescribeFlowDefinitionResponse)
-> Lens
     DescribeFlowDefinitionResponse
     DescribeFlowDefinitionResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinitionResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:DescribeFlowDefinitionResponse' :: DescribeFlowDefinitionResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: DescribeFlowDefinitionResponse
s@DescribeFlowDefinitionResponse' {} Maybe Text
a -> DescribeFlowDefinitionResponse
s {$sel:failureReason:DescribeFlowDefinitionResponse' :: Maybe Text
failureReason = Maybe Text
a} :: DescribeFlowDefinitionResponse)

-- | Container for configuring the source of human task requests. Used to
-- specify if Amazon Rekognition or Amazon Textract is used as an
-- integration source.
describeFlowDefinitionResponse_humanLoopRequestSource :: Lens.Lens' DescribeFlowDefinitionResponse (Prelude.Maybe HumanLoopRequestSource)
describeFlowDefinitionResponse_humanLoopRequestSource :: (Maybe HumanLoopRequestSource -> f (Maybe HumanLoopRequestSource))
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
describeFlowDefinitionResponse_humanLoopRequestSource = (DescribeFlowDefinitionResponse -> Maybe HumanLoopRequestSource)
-> (DescribeFlowDefinitionResponse
    -> Maybe HumanLoopRequestSource -> DescribeFlowDefinitionResponse)
-> Lens
     DescribeFlowDefinitionResponse
     DescribeFlowDefinitionResponse
     (Maybe HumanLoopRequestSource)
     (Maybe HumanLoopRequestSource)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinitionResponse' {Maybe HumanLoopRequestSource
humanLoopRequestSource :: Maybe HumanLoopRequestSource
$sel:humanLoopRequestSource:DescribeFlowDefinitionResponse' :: DescribeFlowDefinitionResponse -> Maybe HumanLoopRequestSource
humanLoopRequestSource} -> Maybe HumanLoopRequestSource
humanLoopRequestSource) (\s :: DescribeFlowDefinitionResponse
s@DescribeFlowDefinitionResponse' {} Maybe HumanLoopRequestSource
a -> DescribeFlowDefinitionResponse
s {$sel:humanLoopRequestSource:DescribeFlowDefinitionResponse' :: Maybe HumanLoopRequestSource
humanLoopRequestSource = Maybe HumanLoopRequestSource
a} :: DescribeFlowDefinitionResponse)

-- | An object containing information about what triggers a human review
-- workflow.
describeFlowDefinitionResponse_humanLoopActivationConfig :: Lens.Lens' DescribeFlowDefinitionResponse (Prelude.Maybe HumanLoopActivationConfig)
describeFlowDefinitionResponse_humanLoopActivationConfig :: (Maybe HumanLoopActivationConfig
 -> f (Maybe HumanLoopActivationConfig))
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
describeFlowDefinitionResponse_humanLoopActivationConfig = (DescribeFlowDefinitionResponse -> Maybe HumanLoopActivationConfig)
-> (DescribeFlowDefinitionResponse
    -> Maybe HumanLoopActivationConfig
    -> DescribeFlowDefinitionResponse)
-> Lens
     DescribeFlowDefinitionResponse
     DescribeFlowDefinitionResponse
     (Maybe HumanLoopActivationConfig)
     (Maybe HumanLoopActivationConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinitionResponse' {Maybe HumanLoopActivationConfig
humanLoopActivationConfig :: Maybe HumanLoopActivationConfig
$sel:humanLoopActivationConfig:DescribeFlowDefinitionResponse' :: DescribeFlowDefinitionResponse -> Maybe HumanLoopActivationConfig
humanLoopActivationConfig} -> Maybe HumanLoopActivationConfig
humanLoopActivationConfig) (\s :: DescribeFlowDefinitionResponse
s@DescribeFlowDefinitionResponse' {} Maybe HumanLoopActivationConfig
a -> DescribeFlowDefinitionResponse
s {$sel:humanLoopActivationConfig:DescribeFlowDefinitionResponse' :: Maybe HumanLoopActivationConfig
humanLoopActivationConfig = Maybe HumanLoopActivationConfig
a} :: DescribeFlowDefinitionResponse)

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

-- | The Amazon Resource Name (ARN) of the flow defintion.
describeFlowDefinitionResponse_flowDefinitionArn :: Lens.Lens' DescribeFlowDefinitionResponse Prelude.Text
describeFlowDefinitionResponse_flowDefinitionArn :: (Text -> f Text)
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
describeFlowDefinitionResponse_flowDefinitionArn = (DescribeFlowDefinitionResponse -> Text)
-> (DescribeFlowDefinitionResponse
    -> Text -> DescribeFlowDefinitionResponse)
-> Lens
     DescribeFlowDefinitionResponse
     DescribeFlowDefinitionResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinitionResponse' {Text
flowDefinitionArn :: Text
$sel:flowDefinitionArn:DescribeFlowDefinitionResponse' :: DescribeFlowDefinitionResponse -> Text
flowDefinitionArn} -> Text
flowDefinitionArn) (\s :: DescribeFlowDefinitionResponse
s@DescribeFlowDefinitionResponse' {} Text
a -> DescribeFlowDefinitionResponse
s {$sel:flowDefinitionArn:DescribeFlowDefinitionResponse' :: Text
flowDefinitionArn = Text
a} :: DescribeFlowDefinitionResponse)

-- | The Amazon Resource Name (ARN) of the flow definition.
describeFlowDefinitionResponse_flowDefinitionName :: Lens.Lens' DescribeFlowDefinitionResponse Prelude.Text
describeFlowDefinitionResponse_flowDefinitionName :: (Text -> f Text)
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
describeFlowDefinitionResponse_flowDefinitionName = (DescribeFlowDefinitionResponse -> Text)
-> (DescribeFlowDefinitionResponse
    -> Text -> DescribeFlowDefinitionResponse)
-> Lens
     DescribeFlowDefinitionResponse
     DescribeFlowDefinitionResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinitionResponse' {Text
flowDefinitionName :: Text
$sel:flowDefinitionName:DescribeFlowDefinitionResponse' :: DescribeFlowDefinitionResponse -> Text
flowDefinitionName} -> Text
flowDefinitionName) (\s :: DescribeFlowDefinitionResponse
s@DescribeFlowDefinitionResponse' {} Text
a -> DescribeFlowDefinitionResponse
s {$sel:flowDefinitionName:DescribeFlowDefinitionResponse' :: Text
flowDefinitionName = Text
a} :: DescribeFlowDefinitionResponse)

-- | The status of the flow definition. Valid values are listed below.
describeFlowDefinitionResponse_flowDefinitionStatus :: Lens.Lens' DescribeFlowDefinitionResponse FlowDefinitionStatus
describeFlowDefinitionResponse_flowDefinitionStatus :: (FlowDefinitionStatus -> f FlowDefinitionStatus)
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
describeFlowDefinitionResponse_flowDefinitionStatus = (DescribeFlowDefinitionResponse -> FlowDefinitionStatus)
-> (DescribeFlowDefinitionResponse
    -> FlowDefinitionStatus -> DescribeFlowDefinitionResponse)
-> Lens
     DescribeFlowDefinitionResponse
     DescribeFlowDefinitionResponse
     FlowDefinitionStatus
     FlowDefinitionStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinitionResponse' {FlowDefinitionStatus
flowDefinitionStatus :: FlowDefinitionStatus
$sel:flowDefinitionStatus:DescribeFlowDefinitionResponse' :: DescribeFlowDefinitionResponse -> FlowDefinitionStatus
flowDefinitionStatus} -> FlowDefinitionStatus
flowDefinitionStatus) (\s :: DescribeFlowDefinitionResponse
s@DescribeFlowDefinitionResponse' {} FlowDefinitionStatus
a -> DescribeFlowDefinitionResponse
s {$sel:flowDefinitionStatus:DescribeFlowDefinitionResponse' :: FlowDefinitionStatus
flowDefinitionStatus = FlowDefinitionStatus
a} :: DescribeFlowDefinitionResponse)

-- | The timestamp when the flow definition was created.
describeFlowDefinitionResponse_creationTime :: Lens.Lens' DescribeFlowDefinitionResponse Prelude.UTCTime
describeFlowDefinitionResponse_creationTime :: (UTCTime -> f UTCTime)
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
describeFlowDefinitionResponse_creationTime = (DescribeFlowDefinitionResponse -> POSIX)
-> (DescribeFlowDefinitionResponse
    -> POSIX -> DescribeFlowDefinitionResponse)
-> Lens
     DescribeFlowDefinitionResponse
     DescribeFlowDefinitionResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinitionResponse' {POSIX
creationTime :: POSIX
$sel:creationTime:DescribeFlowDefinitionResponse' :: DescribeFlowDefinitionResponse -> POSIX
creationTime} -> POSIX
creationTime) (\s :: DescribeFlowDefinitionResponse
s@DescribeFlowDefinitionResponse' {} POSIX
a -> DescribeFlowDefinitionResponse
s {$sel:creationTime:DescribeFlowDefinitionResponse' :: POSIX
creationTime = POSIX
a} :: DescribeFlowDefinitionResponse) ((POSIX -> f POSIX)
 -> DescribeFlowDefinitionResponse
 -> f DescribeFlowDefinitionResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | An object containing information about who works on the task, the
-- workforce task price, and other task details.
describeFlowDefinitionResponse_humanLoopConfig :: Lens.Lens' DescribeFlowDefinitionResponse HumanLoopConfig
describeFlowDefinitionResponse_humanLoopConfig :: (HumanLoopConfig -> f HumanLoopConfig)
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
describeFlowDefinitionResponse_humanLoopConfig = (DescribeFlowDefinitionResponse -> HumanLoopConfig)
-> (DescribeFlowDefinitionResponse
    -> HumanLoopConfig -> DescribeFlowDefinitionResponse)
-> Lens
     DescribeFlowDefinitionResponse
     DescribeFlowDefinitionResponse
     HumanLoopConfig
     HumanLoopConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinitionResponse' {HumanLoopConfig
humanLoopConfig :: HumanLoopConfig
$sel:humanLoopConfig:DescribeFlowDefinitionResponse' :: DescribeFlowDefinitionResponse -> HumanLoopConfig
humanLoopConfig} -> HumanLoopConfig
humanLoopConfig) (\s :: DescribeFlowDefinitionResponse
s@DescribeFlowDefinitionResponse' {} HumanLoopConfig
a -> DescribeFlowDefinitionResponse
s {$sel:humanLoopConfig:DescribeFlowDefinitionResponse' :: HumanLoopConfig
humanLoopConfig = HumanLoopConfig
a} :: DescribeFlowDefinitionResponse)

-- | An object containing information about the output file.
describeFlowDefinitionResponse_outputConfig :: Lens.Lens' DescribeFlowDefinitionResponse FlowDefinitionOutputConfig
describeFlowDefinitionResponse_outputConfig :: (FlowDefinitionOutputConfig -> f FlowDefinitionOutputConfig)
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
describeFlowDefinitionResponse_outputConfig = (DescribeFlowDefinitionResponse -> FlowDefinitionOutputConfig)
-> (DescribeFlowDefinitionResponse
    -> FlowDefinitionOutputConfig -> DescribeFlowDefinitionResponse)
-> Lens
     DescribeFlowDefinitionResponse
     DescribeFlowDefinitionResponse
     FlowDefinitionOutputConfig
     FlowDefinitionOutputConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinitionResponse' {FlowDefinitionOutputConfig
outputConfig :: FlowDefinitionOutputConfig
$sel:outputConfig:DescribeFlowDefinitionResponse' :: DescribeFlowDefinitionResponse -> FlowDefinitionOutputConfig
outputConfig} -> FlowDefinitionOutputConfig
outputConfig) (\s :: DescribeFlowDefinitionResponse
s@DescribeFlowDefinitionResponse' {} FlowDefinitionOutputConfig
a -> DescribeFlowDefinitionResponse
s {$sel:outputConfig:DescribeFlowDefinitionResponse' :: FlowDefinitionOutputConfig
outputConfig = FlowDefinitionOutputConfig
a} :: DescribeFlowDefinitionResponse)

-- | The Amazon Resource Name (ARN) of the Amazon Web Services Identity and
-- Access Management (IAM) execution role for the flow definition.
describeFlowDefinitionResponse_roleArn :: Lens.Lens' DescribeFlowDefinitionResponse Prelude.Text
describeFlowDefinitionResponse_roleArn :: (Text -> f Text)
-> DescribeFlowDefinitionResponse
-> f DescribeFlowDefinitionResponse
describeFlowDefinitionResponse_roleArn = (DescribeFlowDefinitionResponse -> Text)
-> (DescribeFlowDefinitionResponse
    -> Text -> DescribeFlowDefinitionResponse)
-> Lens
     DescribeFlowDefinitionResponse
     DescribeFlowDefinitionResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeFlowDefinitionResponse' {Text
roleArn :: Text
$sel:roleArn:DescribeFlowDefinitionResponse' :: DescribeFlowDefinitionResponse -> Text
roleArn} -> Text
roleArn) (\s :: DescribeFlowDefinitionResponse
s@DescribeFlowDefinitionResponse' {} Text
a -> DescribeFlowDefinitionResponse
s {$sel:roleArn:DescribeFlowDefinitionResponse' :: Text
roleArn = Text
a} :: DescribeFlowDefinitionResponse)

instance
  Prelude.NFData
    DescribeFlowDefinitionResponse