{-# 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 #-}
module Amazonka.SageMaker.DescribeFlowDefinition
(
DescribeFlowDefinition (..),
newDescribeFlowDefinition,
describeFlowDefinition_flowDefinitionName,
DescribeFlowDefinitionResponse (..),
newDescribeFlowDefinitionResponse,
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
data DescribeFlowDefinition = DescribeFlowDefinition'
{
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)
newDescribeFlowDefinition ::
Prelude.Text ->
DescribeFlowDefinition
newDescribeFlowDefinition :: Text -> DescribeFlowDefinition
newDescribeFlowDefinition Text
pFlowDefinitionName_ =
DescribeFlowDefinition' :: Text -> DescribeFlowDefinition
DescribeFlowDefinition'
{ $sel:flowDefinitionName:DescribeFlowDefinition' :: Text
flowDefinitionName =
Text
pFlowDefinitionName_
}
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
data DescribeFlowDefinitionResponse = DescribeFlowDefinitionResponse'
{
DescribeFlowDefinitionResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
DescribeFlowDefinitionResponse -> Maybe HumanLoopRequestSource
humanLoopRequestSource :: Prelude.Maybe HumanLoopRequestSource,
DescribeFlowDefinitionResponse -> Maybe HumanLoopActivationConfig
humanLoopActivationConfig :: Prelude.Maybe HumanLoopActivationConfig,
DescribeFlowDefinitionResponse -> Int
httpStatus :: Prelude.Int,
DescribeFlowDefinitionResponse -> Text
flowDefinitionArn :: Prelude.Text,
DescribeFlowDefinitionResponse -> Text
flowDefinitionName :: Prelude.Text,
DescribeFlowDefinitionResponse -> FlowDefinitionStatus
flowDefinitionStatus :: FlowDefinitionStatus,
DescribeFlowDefinitionResponse -> POSIX
creationTime :: Core.POSIX,
DescribeFlowDefinitionResponse -> HumanLoopConfig
humanLoopConfig :: HumanLoopConfig,
DescribeFlowDefinitionResponse -> FlowDefinitionOutputConfig
outputConfig :: FlowDefinitionOutputConfig,
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)
newDescribeFlowDefinitionResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
FlowDefinitionStatus ->
Prelude.UTCTime ->
HumanLoopConfig ->
FlowDefinitionOutputConfig ->
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_
}
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)
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)
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)
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)
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)
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)
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)
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
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)
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)
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