{-# 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.Transfer.CreateWorkflow
(
CreateWorkflow (..),
newCreateWorkflow,
createWorkflow_onExceptionSteps,
createWorkflow_description,
createWorkflow_tags,
createWorkflow_steps,
CreateWorkflowResponse (..),
newCreateWorkflowResponse,
createWorkflowResponse_httpStatus,
createWorkflowResponse_workflowId,
)
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.Transfer.Types
data CreateWorkflow = CreateWorkflow'
{
CreateWorkflow -> Maybe [WorkflowStep]
onExceptionSteps :: Prelude.Maybe [WorkflowStep],
CreateWorkflow -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateWorkflow -> Maybe (NonEmpty Tag)
tags :: Prelude.Maybe (Prelude.NonEmpty Tag),
CreateWorkflow -> [WorkflowStep]
steps :: [WorkflowStep]
}
deriving (CreateWorkflow -> CreateWorkflow -> Bool
(CreateWorkflow -> CreateWorkflow -> Bool)
-> (CreateWorkflow -> CreateWorkflow -> Bool) -> Eq CreateWorkflow
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateWorkflow -> CreateWorkflow -> Bool
$c/= :: CreateWorkflow -> CreateWorkflow -> Bool
== :: CreateWorkflow -> CreateWorkflow -> Bool
$c== :: CreateWorkflow -> CreateWorkflow -> Bool
Prelude.Eq, ReadPrec [CreateWorkflow]
ReadPrec CreateWorkflow
Int -> ReadS CreateWorkflow
ReadS [CreateWorkflow]
(Int -> ReadS CreateWorkflow)
-> ReadS [CreateWorkflow]
-> ReadPrec CreateWorkflow
-> ReadPrec [CreateWorkflow]
-> Read CreateWorkflow
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateWorkflow]
$creadListPrec :: ReadPrec [CreateWorkflow]
readPrec :: ReadPrec CreateWorkflow
$creadPrec :: ReadPrec CreateWorkflow
readList :: ReadS [CreateWorkflow]
$creadList :: ReadS [CreateWorkflow]
readsPrec :: Int -> ReadS CreateWorkflow
$creadsPrec :: Int -> ReadS CreateWorkflow
Prelude.Read, Int -> CreateWorkflow -> ShowS
[CreateWorkflow] -> ShowS
CreateWorkflow -> String
(Int -> CreateWorkflow -> ShowS)
-> (CreateWorkflow -> String)
-> ([CreateWorkflow] -> ShowS)
-> Show CreateWorkflow
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateWorkflow] -> ShowS
$cshowList :: [CreateWorkflow] -> ShowS
show :: CreateWorkflow -> String
$cshow :: CreateWorkflow -> String
showsPrec :: Int -> CreateWorkflow -> ShowS
$cshowsPrec :: Int -> CreateWorkflow -> ShowS
Prelude.Show, (forall x. CreateWorkflow -> Rep CreateWorkflow x)
-> (forall x. Rep CreateWorkflow x -> CreateWorkflow)
-> Generic CreateWorkflow
forall x. Rep CreateWorkflow x -> CreateWorkflow
forall x. CreateWorkflow -> Rep CreateWorkflow x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateWorkflow x -> CreateWorkflow
$cfrom :: forall x. CreateWorkflow -> Rep CreateWorkflow x
Prelude.Generic)
newCreateWorkflow ::
CreateWorkflow
newCreateWorkflow :: CreateWorkflow
newCreateWorkflow =
CreateWorkflow' :: Maybe [WorkflowStep]
-> Maybe Text
-> Maybe (NonEmpty Tag)
-> [WorkflowStep]
-> CreateWorkflow
CreateWorkflow'
{ $sel:onExceptionSteps:CreateWorkflow' :: Maybe [WorkflowStep]
onExceptionSteps = Maybe [WorkflowStep]
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateWorkflow' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateWorkflow' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
forall a. Maybe a
Prelude.Nothing,
$sel:steps:CreateWorkflow' :: [WorkflowStep]
steps = [WorkflowStep]
forall a. Monoid a => a
Prelude.mempty
}
createWorkflow_onExceptionSteps :: Lens.Lens' CreateWorkflow (Prelude.Maybe [WorkflowStep])
createWorkflow_onExceptionSteps :: (Maybe [WorkflowStep] -> f (Maybe [WorkflowStep]))
-> CreateWorkflow -> f CreateWorkflow
createWorkflow_onExceptionSteps = (CreateWorkflow -> Maybe [WorkflowStep])
-> (CreateWorkflow -> Maybe [WorkflowStep] -> CreateWorkflow)
-> Lens
CreateWorkflow
CreateWorkflow
(Maybe [WorkflowStep])
(Maybe [WorkflowStep])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWorkflow' {Maybe [WorkflowStep]
onExceptionSteps :: Maybe [WorkflowStep]
$sel:onExceptionSteps:CreateWorkflow' :: CreateWorkflow -> Maybe [WorkflowStep]
onExceptionSteps} -> Maybe [WorkflowStep]
onExceptionSteps) (\s :: CreateWorkflow
s@CreateWorkflow' {} Maybe [WorkflowStep]
a -> CreateWorkflow
s {$sel:onExceptionSteps:CreateWorkflow' :: Maybe [WorkflowStep]
onExceptionSteps = Maybe [WorkflowStep]
a} :: CreateWorkflow) ((Maybe [WorkflowStep] -> f (Maybe [WorkflowStep]))
-> CreateWorkflow -> f CreateWorkflow)
-> ((Maybe [WorkflowStep] -> f (Maybe [WorkflowStep]))
-> Maybe [WorkflowStep] -> f (Maybe [WorkflowStep]))
-> (Maybe [WorkflowStep] -> f (Maybe [WorkflowStep]))
-> CreateWorkflow
-> f CreateWorkflow
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [WorkflowStep] [WorkflowStep] [WorkflowStep] [WorkflowStep]
-> Iso
(Maybe [WorkflowStep])
(Maybe [WorkflowStep])
(Maybe [WorkflowStep])
(Maybe [WorkflowStep])
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 [WorkflowStep] [WorkflowStep] [WorkflowStep] [WorkflowStep]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createWorkflow_description :: Lens.Lens' CreateWorkflow (Prelude.Maybe Prelude.Text)
createWorkflow_description :: (Maybe Text -> f (Maybe Text))
-> CreateWorkflow -> f CreateWorkflow
createWorkflow_description = (CreateWorkflow -> Maybe Text)
-> (CreateWorkflow -> Maybe Text -> CreateWorkflow)
-> Lens CreateWorkflow CreateWorkflow (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWorkflow' {Maybe Text
description :: Maybe Text
$sel:description:CreateWorkflow' :: CreateWorkflow -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateWorkflow
s@CreateWorkflow' {} Maybe Text
a -> CreateWorkflow
s {$sel:description:CreateWorkflow' :: Maybe Text
description = Maybe Text
a} :: CreateWorkflow)
createWorkflow_tags :: Lens.Lens' CreateWorkflow (Prelude.Maybe (Prelude.NonEmpty Tag))
createWorkflow_tags :: (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateWorkflow -> f CreateWorkflow
createWorkflow_tags = (CreateWorkflow -> Maybe (NonEmpty Tag))
-> (CreateWorkflow -> Maybe (NonEmpty Tag) -> CreateWorkflow)
-> Lens
CreateWorkflow
CreateWorkflow
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWorkflow' {Maybe (NonEmpty Tag)
tags :: Maybe (NonEmpty Tag)
$sel:tags:CreateWorkflow' :: CreateWorkflow -> Maybe (NonEmpty Tag)
tags} -> Maybe (NonEmpty Tag)
tags) (\s :: CreateWorkflow
s@CreateWorkflow' {} Maybe (NonEmpty Tag)
a -> CreateWorkflow
s {$sel:tags:CreateWorkflow' :: Maybe (NonEmpty Tag)
tags = Maybe (NonEmpty Tag)
a} :: CreateWorkflow) ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateWorkflow -> f CreateWorkflow)
-> ((Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> (Maybe (NonEmpty Tag) -> f (Maybe (NonEmpty Tag)))
-> CreateWorkflow
-> f CreateWorkflow
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
-> Iso
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
(Maybe (NonEmpty Tag))
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 (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag) (NonEmpty Tag)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createWorkflow_steps :: Lens.Lens' CreateWorkflow [WorkflowStep]
createWorkflow_steps :: ([WorkflowStep] -> f [WorkflowStep])
-> CreateWorkflow -> f CreateWorkflow
createWorkflow_steps = (CreateWorkflow -> [WorkflowStep])
-> (CreateWorkflow -> [WorkflowStep] -> CreateWorkflow)
-> Lens CreateWorkflow CreateWorkflow [WorkflowStep] [WorkflowStep]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWorkflow' {[WorkflowStep]
steps :: [WorkflowStep]
$sel:steps:CreateWorkflow' :: CreateWorkflow -> [WorkflowStep]
steps} -> [WorkflowStep]
steps) (\s :: CreateWorkflow
s@CreateWorkflow' {} [WorkflowStep]
a -> CreateWorkflow
s {$sel:steps:CreateWorkflow' :: [WorkflowStep]
steps = [WorkflowStep]
a} :: CreateWorkflow) (([WorkflowStep] -> f [WorkflowStep])
-> CreateWorkflow -> f CreateWorkflow)
-> (([WorkflowStep] -> f [WorkflowStep])
-> [WorkflowStep] -> f [WorkflowStep])
-> ([WorkflowStep] -> f [WorkflowStep])
-> CreateWorkflow
-> f CreateWorkflow
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([WorkflowStep] -> f [WorkflowStep])
-> [WorkflowStep] -> f [WorkflowStep]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest CreateWorkflow where
type
AWSResponse CreateWorkflow =
CreateWorkflowResponse
request :: CreateWorkflow -> Request CreateWorkflow
request = Service -> CreateWorkflow -> Request CreateWorkflow
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateWorkflow
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateWorkflow)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateWorkflow))
-> Logger
-> Service
-> Proxy CreateWorkflow
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateWorkflow)))
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 ->
Int -> Text -> CreateWorkflowResponse
CreateWorkflowResponse'
(Int -> Text -> CreateWorkflowResponse)
-> Either String Int
-> Either String (Text -> CreateWorkflowResponse)
forall (f :: * -> *) a b. Functor 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 -> CreateWorkflowResponse)
-> Either String Text -> Either String CreateWorkflowResponse
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
"WorkflowId")
)
instance Prelude.Hashable CreateWorkflow
instance Prelude.NFData CreateWorkflow
instance Core.ToHeaders CreateWorkflow where
toHeaders :: CreateWorkflow -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateWorkflow -> 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
"TransferService.CreateWorkflow" ::
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 CreateWorkflow where
toJSON :: CreateWorkflow -> Value
toJSON CreateWorkflow' {[WorkflowStep]
Maybe [WorkflowStep]
Maybe (NonEmpty Tag)
Maybe Text
steps :: [WorkflowStep]
tags :: Maybe (NonEmpty Tag)
description :: Maybe Text
onExceptionSteps :: Maybe [WorkflowStep]
$sel:steps:CreateWorkflow' :: CreateWorkflow -> [WorkflowStep]
$sel:tags:CreateWorkflow' :: CreateWorkflow -> Maybe (NonEmpty Tag)
$sel:description:CreateWorkflow' :: CreateWorkflow -> Maybe Text
$sel:onExceptionSteps:CreateWorkflow' :: CreateWorkflow -> Maybe [WorkflowStep]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"OnExceptionSteps" Text -> [WorkflowStep] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([WorkflowStep] -> Pair) -> Maybe [WorkflowStep] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [WorkflowStep]
onExceptionSteps,
(Text
"Description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(Text
"Tags" Text -> NonEmpty Tag -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Tag -> Pair) -> Maybe (NonEmpty Tag) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Tag)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Steps" Text -> [WorkflowStep] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [WorkflowStep]
steps)
]
)
instance Core.ToPath CreateWorkflow where
toPath :: CreateWorkflow -> ByteString
toPath = ByteString -> CreateWorkflow -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateWorkflow where
toQuery :: CreateWorkflow -> QueryString
toQuery = QueryString -> CreateWorkflow -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateWorkflowResponse = CreateWorkflowResponse'
{
CreateWorkflowResponse -> Int
httpStatus :: Prelude.Int,
CreateWorkflowResponse -> Text
workflowId :: Prelude.Text
}
deriving (CreateWorkflowResponse -> CreateWorkflowResponse -> Bool
(CreateWorkflowResponse -> CreateWorkflowResponse -> Bool)
-> (CreateWorkflowResponse -> CreateWorkflowResponse -> Bool)
-> Eq CreateWorkflowResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateWorkflowResponse -> CreateWorkflowResponse -> Bool
$c/= :: CreateWorkflowResponse -> CreateWorkflowResponse -> Bool
== :: CreateWorkflowResponse -> CreateWorkflowResponse -> Bool
$c== :: CreateWorkflowResponse -> CreateWorkflowResponse -> Bool
Prelude.Eq, ReadPrec [CreateWorkflowResponse]
ReadPrec CreateWorkflowResponse
Int -> ReadS CreateWorkflowResponse
ReadS [CreateWorkflowResponse]
(Int -> ReadS CreateWorkflowResponse)
-> ReadS [CreateWorkflowResponse]
-> ReadPrec CreateWorkflowResponse
-> ReadPrec [CreateWorkflowResponse]
-> Read CreateWorkflowResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateWorkflowResponse]
$creadListPrec :: ReadPrec [CreateWorkflowResponse]
readPrec :: ReadPrec CreateWorkflowResponse
$creadPrec :: ReadPrec CreateWorkflowResponse
readList :: ReadS [CreateWorkflowResponse]
$creadList :: ReadS [CreateWorkflowResponse]
readsPrec :: Int -> ReadS CreateWorkflowResponse
$creadsPrec :: Int -> ReadS CreateWorkflowResponse
Prelude.Read, Int -> CreateWorkflowResponse -> ShowS
[CreateWorkflowResponse] -> ShowS
CreateWorkflowResponse -> String
(Int -> CreateWorkflowResponse -> ShowS)
-> (CreateWorkflowResponse -> String)
-> ([CreateWorkflowResponse] -> ShowS)
-> Show CreateWorkflowResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateWorkflowResponse] -> ShowS
$cshowList :: [CreateWorkflowResponse] -> ShowS
show :: CreateWorkflowResponse -> String
$cshow :: CreateWorkflowResponse -> String
showsPrec :: Int -> CreateWorkflowResponse -> ShowS
$cshowsPrec :: Int -> CreateWorkflowResponse -> ShowS
Prelude.Show, (forall x. CreateWorkflowResponse -> Rep CreateWorkflowResponse x)
-> (forall x.
Rep CreateWorkflowResponse x -> CreateWorkflowResponse)
-> Generic CreateWorkflowResponse
forall x. Rep CreateWorkflowResponse x -> CreateWorkflowResponse
forall x. CreateWorkflowResponse -> Rep CreateWorkflowResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateWorkflowResponse x -> CreateWorkflowResponse
$cfrom :: forall x. CreateWorkflowResponse -> Rep CreateWorkflowResponse x
Prelude.Generic)
newCreateWorkflowResponse ::
Prelude.Int ->
Prelude.Text ->
CreateWorkflowResponse
newCreateWorkflowResponse :: Int -> Text -> CreateWorkflowResponse
newCreateWorkflowResponse Int
pHttpStatus_ Text
pWorkflowId_ =
CreateWorkflowResponse' :: Int -> Text -> CreateWorkflowResponse
CreateWorkflowResponse'
{ $sel:httpStatus:CreateWorkflowResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:workflowId:CreateWorkflowResponse' :: Text
workflowId = Text
pWorkflowId_
}
createWorkflowResponse_httpStatus :: Lens.Lens' CreateWorkflowResponse Prelude.Int
createWorkflowResponse_httpStatus :: (Int -> f Int)
-> CreateWorkflowResponse -> f CreateWorkflowResponse
createWorkflowResponse_httpStatus = (CreateWorkflowResponse -> Int)
-> (CreateWorkflowResponse -> Int -> CreateWorkflowResponse)
-> Lens CreateWorkflowResponse CreateWorkflowResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWorkflowResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateWorkflowResponse' :: CreateWorkflowResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateWorkflowResponse
s@CreateWorkflowResponse' {} Int
a -> CreateWorkflowResponse
s {$sel:httpStatus:CreateWorkflowResponse' :: Int
httpStatus = Int
a} :: CreateWorkflowResponse)
createWorkflowResponse_workflowId :: Lens.Lens' CreateWorkflowResponse Prelude.Text
createWorkflowResponse_workflowId :: (Text -> f Text)
-> CreateWorkflowResponse -> f CreateWorkflowResponse
createWorkflowResponse_workflowId = (CreateWorkflowResponse -> Text)
-> (CreateWorkflowResponse -> Text -> CreateWorkflowResponse)
-> Lens CreateWorkflowResponse CreateWorkflowResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateWorkflowResponse' {Text
workflowId :: Text
$sel:workflowId:CreateWorkflowResponse' :: CreateWorkflowResponse -> Text
workflowId} -> Text
workflowId) (\s :: CreateWorkflowResponse
s@CreateWorkflowResponse' {} Text
a -> CreateWorkflowResponse
s {$sel:workflowId:CreateWorkflowResponse' :: Text
workflowId = Text
a} :: CreateWorkflowResponse)
instance Prelude.NFData CreateWorkflowResponse