{-# 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.MigrationHubOrchestrator.UpdateWorkflow
(
UpdateWorkflow (..),
newUpdateWorkflow,
updateWorkflow_description,
updateWorkflow_inputParameters,
updateWorkflow_name,
updateWorkflow_stepTargets,
updateWorkflow_id,
UpdateWorkflowResponse (..),
newUpdateWorkflowResponse,
updateWorkflowResponse_adsApplicationConfigurationId,
updateWorkflowResponse_arn,
updateWorkflowResponse_creationTime,
updateWorkflowResponse_description,
updateWorkflowResponse_id,
updateWorkflowResponse_lastModifiedTime,
updateWorkflowResponse_name,
updateWorkflowResponse_status,
updateWorkflowResponse_stepTargets,
updateWorkflowResponse_tags,
updateWorkflowResponse_templateId,
updateWorkflowResponse_workflowInputs,
updateWorkflowResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MigrationHubOrchestrator.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateWorkflow = UpdateWorkflow'
{
UpdateWorkflow -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
UpdateWorkflow -> Maybe (Sensitive (HashMap Text StepInput))
inputParameters :: Prelude.Maybe (Data.Sensitive (Prelude.HashMap Prelude.Text StepInput)),
UpdateWorkflow -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateWorkflow -> Maybe [Text]
stepTargets :: Prelude.Maybe [Prelude.Text],
UpdateWorkflow -> Text
id :: Prelude.Text
}
deriving (UpdateWorkflow -> UpdateWorkflow -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateWorkflow -> UpdateWorkflow -> Bool
$c/= :: UpdateWorkflow -> UpdateWorkflow -> Bool
== :: UpdateWorkflow -> UpdateWorkflow -> Bool
$c== :: UpdateWorkflow -> UpdateWorkflow -> Bool
Prelude.Eq, Int -> UpdateWorkflow -> ShowS
[UpdateWorkflow] -> ShowS
UpdateWorkflow -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateWorkflow] -> ShowS
$cshowList :: [UpdateWorkflow] -> ShowS
show :: UpdateWorkflow -> String
$cshow :: UpdateWorkflow -> String
showsPrec :: Int -> UpdateWorkflow -> ShowS
$cshowsPrec :: Int -> UpdateWorkflow -> ShowS
Prelude.Show, forall x. Rep UpdateWorkflow x -> UpdateWorkflow
forall x. UpdateWorkflow -> Rep UpdateWorkflow x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateWorkflow x -> UpdateWorkflow
$cfrom :: forall x. UpdateWorkflow -> Rep UpdateWorkflow x
Prelude.Generic)
newUpdateWorkflow ::
Prelude.Text ->
UpdateWorkflow
newUpdateWorkflow :: Text -> UpdateWorkflow
newUpdateWorkflow Text
pId_ =
UpdateWorkflow'
{ $sel:description:UpdateWorkflow' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:inputParameters:UpdateWorkflow' :: Maybe (Sensitive (HashMap Text StepInput))
inputParameters = forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateWorkflow' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:stepTargets:UpdateWorkflow' :: Maybe [Text]
stepTargets = forall a. Maybe a
Prelude.Nothing,
$sel:id:UpdateWorkflow' :: Text
id = Text
pId_
}
updateWorkflow_description :: Lens.Lens' UpdateWorkflow (Prelude.Maybe Prelude.Text)
updateWorkflow_description :: Lens' UpdateWorkflow (Maybe Text)
updateWorkflow_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflow' {Maybe Text
description :: Maybe Text
$sel:description:UpdateWorkflow' :: UpdateWorkflow -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateWorkflow
s@UpdateWorkflow' {} Maybe Text
a -> UpdateWorkflow
s {$sel:description:UpdateWorkflow' :: Maybe Text
description = Maybe Text
a} :: UpdateWorkflow)
updateWorkflow_inputParameters :: Lens.Lens' UpdateWorkflow (Prelude.Maybe (Prelude.HashMap Prelude.Text StepInput))
updateWorkflow_inputParameters :: Lens' UpdateWorkflow (Maybe (HashMap Text StepInput))
updateWorkflow_inputParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflow' {Maybe (Sensitive (HashMap Text StepInput))
inputParameters :: Maybe (Sensitive (HashMap Text StepInput))
$sel:inputParameters:UpdateWorkflow' :: UpdateWorkflow -> Maybe (Sensitive (HashMap Text StepInput))
inputParameters} -> Maybe (Sensitive (HashMap Text StepInput))
inputParameters) (\s :: UpdateWorkflow
s@UpdateWorkflow' {} Maybe (Sensitive (HashMap Text StepInput))
a -> UpdateWorkflow
s {$sel:inputParameters:UpdateWorkflow' :: Maybe (Sensitive (HashMap Text StepInput))
inputParameters = Maybe (Sensitive (HashMap Text StepInput))
a} :: UpdateWorkflow) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 (forall a. Iso' (Sensitive a) a
Data._Sensitive forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
updateWorkflow_name :: Lens.Lens' UpdateWorkflow (Prelude.Maybe Prelude.Text)
updateWorkflow_name :: Lens' UpdateWorkflow (Maybe Text)
updateWorkflow_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflow' {Maybe Text
name :: Maybe Text
$sel:name:UpdateWorkflow' :: UpdateWorkflow -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateWorkflow
s@UpdateWorkflow' {} Maybe Text
a -> UpdateWorkflow
s {$sel:name:UpdateWorkflow' :: Maybe Text
name = Maybe Text
a} :: UpdateWorkflow)
updateWorkflow_stepTargets :: Lens.Lens' UpdateWorkflow (Prelude.Maybe [Prelude.Text])
updateWorkflow_stepTargets :: Lens' UpdateWorkflow (Maybe [Text])
updateWorkflow_stepTargets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflow' {Maybe [Text]
stepTargets :: Maybe [Text]
$sel:stepTargets:UpdateWorkflow' :: UpdateWorkflow -> Maybe [Text]
stepTargets} -> Maybe [Text]
stepTargets) (\s :: UpdateWorkflow
s@UpdateWorkflow' {} Maybe [Text]
a -> UpdateWorkflow
s {$sel:stepTargets:UpdateWorkflow' :: Maybe [Text]
stepTargets = Maybe [Text]
a} :: UpdateWorkflow) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateWorkflow_id :: Lens.Lens' UpdateWorkflow Prelude.Text
updateWorkflow_id :: Lens' UpdateWorkflow Text
updateWorkflow_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflow' {Text
id :: Text
$sel:id:UpdateWorkflow' :: UpdateWorkflow -> Text
id} -> Text
id) (\s :: UpdateWorkflow
s@UpdateWorkflow' {} Text
a -> UpdateWorkflow
s {$sel:id:UpdateWorkflow' :: Text
id = Text
a} :: UpdateWorkflow)
instance Core.AWSRequest UpdateWorkflow where
type
AWSResponse UpdateWorkflow =
UpdateWorkflowResponse
request :: (Service -> Service) -> UpdateWorkflow -> Request UpdateWorkflow
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateWorkflow
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateWorkflow)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe MigrationWorkflowStatusEnum
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe (Sensitive (HashMap Text StepInput))
-> Int
-> UpdateWorkflowResponse
UpdateWorkflowResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"adsApplicationConfigurationId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"creationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"description")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"lastModifiedTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"status")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"stepTargets" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"templateId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"workflowInputs" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdateWorkflow where
hashWithSalt :: Int -> UpdateWorkflow -> Int
hashWithSalt Int
_salt UpdateWorkflow' {Maybe [Text]
Maybe Text
Maybe (Sensitive (HashMap Text StepInput))
Text
id :: Text
stepTargets :: Maybe [Text]
name :: Maybe Text
inputParameters :: Maybe (Sensitive (HashMap Text StepInput))
description :: Maybe Text
$sel:id:UpdateWorkflow' :: UpdateWorkflow -> Text
$sel:stepTargets:UpdateWorkflow' :: UpdateWorkflow -> Maybe [Text]
$sel:name:UpdateWorkflow' :: UpdateWorkflow -> Maybe Text
$sel:inputParameters:UpdateWorkflow' :: UpdateWorkflow -> Maybe (Sensitive (HashMap Text StepInput))
$sel:description:UpdateWorkflow' :: UpdateWorkflow -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive (HashMap Text StepInput))
inputParameters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
stepTargets
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id
instance Prelude.NFData UpdateWorkflow where
rnf :: UpdateWorkflow -> ()
rnf UpdateWorkflow' {Maybe [Text]
Maybe Text
Maybe (Sensitive (HashMap Text StepInput))
Text
id :: Text
stepTargets :: Maybe [Text]
name :: Maybe Text
inputParameters :: Maybe (Sensitive (HashMap Text StepInput))
description :: Maybe Text
$sel:id:UpdateWorkflow' :: UpdateWorkflow -> Text
$sel:stepTargets:UpdateWorkflow' :: UpdateWorkflow -> Maybe [Text]
$sel:name:UpdateWorkflow' :: UpdateWorkflow -> Maybe Text
$sel:inputParameters:UpdateWorkflow' :: UpdateWorkflow -> Maybe (Sensitive (HashMap Text StepInput))
$sel:description:UpdateWorkflow' :: UpdateWorkflow -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive (HashMap Text StepInput))
inputParameters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
stepTargets
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id
instance Data.ToHeaders UpdateWorkflow where
toHeaders :: UpdateWorkflow -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UpdateWorkflow where
toJSON :: UpdateWorkflow -> Value
toJSON UpdateWorkflow' {Maybe [Text]
Maybe Text
Maybe (Sensitive (HashMap Text StepInput))
Text
id :: Text
stepTargets :: Maybe [Text]
name :: Maybe Text
inputParameters :: Maybe (Sensitive (HashMap Text StepInput))
description :: Maybe Text
$sel:id:UpdateWorkflow' :: UpdateWorkflow -> Text
$sel:stepTargets:UpdateWorkflow' :: UpdateWorkflow -> Maybe [Text]
$sel:name:UpdateWorkflow' :: UpdateWorkflow -> Maybe Text
$sel:inputParameters:UpdateWorkflow' :: UpdateWorkflow -> Maybe (Sensitive (HashMap Text StepInput))
$sel:description:UpdateWorkflow' :: UpdateWorkflow -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"description" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(Key
"inputParameters" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive (HashMap Text StepInput))
inputParameters,
(Key
"name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
(Key
"stepTargets" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
stepTargets
]
)
instance Data.ToPath UpdateWorkflow where
toPath :: UpdateWorkflow -> ByteString
toPath UpdateWorkflow' {Maybe [Text]
Maybe Text
Maybe (Sensitive (HashMap Text StepInput))
Text
id :: Text
stepTargets :: Maybe [Text]
name :: Maybe Text
inputParameters :: Maybe (Sensitive (HashMap Text StepInput))
description :: Maybe Text
$sel:id:UpdateWorkflow' :: UpdateWorkflow -> Text
$sel:stepTargets:UpdateWorkflow' :: UpdateWorkflow -> Maybe [Text]
$sel:name:UpdateWorkflow' :: UpdateWorkflow -> Maybe Text
$sel:inputParameters:UpdateWorkflow' :: UpdateWorkflow -> Maybe (Sensitive (HashMap Text StepInput))
$sel:description:UpdateWorkflow' :: UpdateWorkflow -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/migrationworkflow/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
id]
instance Data.ToQuery UpdateWorkflow where
toQuery :: UpdateWorkflow -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateWorkflowResponse = UpdateWorkflowResponse'
{
UpdateWorkflowResponse -> Maybe Text
adsApplicationConfigurationId :: Prelude.Maybe Prelude.Text,
UpdateWorkflowResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdateWorkflowResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
UpdateWorkflowResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
UpdateWorkflowResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
UpdateWorkflowResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
UpdateWorkflowResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateWorkflowResponse -> Maybe MigrationWorkflowStatusEnum
status :: Prelude.Maybe MigrationWorkflowStatusEnum,
UpdateWorkflowResponse -> Maybe [Text]
stepTargets :: Prelude.Maybe [Prelude.Text],
UpdateWorkflowResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
UpdateWorkflowResponse -> Maybe Text
templateId :: Prelude.Maybe Prelude.Text,
UpdateWorkflowResponse
-> Maybe (Sensitive (HashMap Text StepInput))
workflowInputs :: Prelude.Maybe (Data.Sensitive (Prelude.HashMap Prelude.Text StepInput)),
UpdateWorkflowResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateWorkflowResponse -> UpdateWorkflowResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateWorkflowResponse -> UpdateWorkflowResponse -> Bool
$c/= :: UpdateWorkflowResponse -> UpdateWorkflowResponse -> Bool
== :: UpdateWorkflowResponse -> UpdateWorkflowResponse -> Bool
$c== :: UpdateWorkflowResponse -> UpdateWorkflowResponse -> Bool
Prelude.Eq, Int -> UpdateWorkflowResponse -> ShowS
[UpdateWorkflowResponse] -> ShowS
UpdateWorkflowResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateWorkflowResponse] -> ShowS
$cshowList :: [UpdateWorkflowResponse] -> ShowS
show :: UpdateWorkflowResponse -> String
$cshow :: UpdateWorkflowResponse -> String
showsPrec :: Int -> UpdateWorkflowResponse -> ShowS
$cshowsPrec :: Int -> UpdateWorkflowResponse -> ShowS
Prelude.Show, forall x. Rep UpdateWorkflowResponse x -> UpdateWorkflowResponse
forall x. UpdateWorkflowResponse -> Rep UpdateWorkflowResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateWorkflowResponse x -> UpdateWorkflowResponse
$cfrom :: forall x. UpdateWorkflowResponse -> Rep UpdateWorkflowResponse x
Prelude.Generic)
newUpdateWorkflowResponse ::
Prelude.Int ->
UpdateWorkflowResponse
newUpdateWorkflowResponse :: Int -> UpdateWorkflowResponse
newUpdateWorkflowResponse Int
pHttpStatus_ =
UpdateWorkflowResponse'
{ $sel:adsApplicationConfigurationId:UpdateWorkflowResponse' :: Maybe Text
adsApplicationConfigurationId =
forall a. Maybe a
Prelude.Nothing,
$sel:arn:UpdateWorkflowResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:creationTime:UpdateWorkflowResponse' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateWorkflowResponse' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:id:UpdateWorkflowResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:UpdateWorkflowResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateWorkflowResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:status:UpdateWorkflowResponse' :: Maybe MigrationWorkflowStatusEnum
status = forall a. Maybe a
Prelude.Nothing,
$sel:stepTargets:UpdateWorkflowResponse' :: Maybe [Text]
stepTargets = forall a. Maybe a
Prelude.Nothing,
$sel:tags:UpdateWorkflowResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:templateId:UpdateWorkflowResponse' :: Maybe Text
templateId = forall a. Maybe a
Prelude.Nothing,
$sel:workflowInputs:UpdateWorkflowResponse' :: Maybe (Sensitive (HashMap Text StepInput))
workflowInputs = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateWorkflowResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateWorkflowResponse_adsApplicationConfigurationId :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe Prelude.Text)
updateWorkflowResponse_adsApplicationConfigurationId :: Lens' UpdateWorkflowResponse (Maybe Text)
updateWorkflowResponse_adsApplicationConfigurationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe Text
adsApplicationConfigurationId :: Maybe Text
$sel:adsApplicationConfigurationId:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
adsApplicationConfigurationId} -> Maybe Text
adsApplicationConfigurationId) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe Text
a -> UpdateWorkflowResponse
s {$sel:adsApplicationConfigurationId:UpdateWorkflowResponse' :: Maybe Text
adsApplicationConfigurationId = Maybe Text
a} :: UpdateWorkflowResponse)
updateWorkflowResponse_arn :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe Prelude.Text)
updateWorkflowResponse_arn :: Lens' UpdateWorkflowResponse (Maybe Text)
updateWorkflowResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe Text
a -> UpdateWorkflowResponse
s {$sel:arn:UpdateWorkflowResponse' :: Maybe Text
arn = Maybe Text
a} :: UpdateWorkflowResponse)
updateWorkflowResponse_creationTime :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe Prelude.UTCTime)
updateWorkflowResponse_creationTime :: Lens' UpdateWorkflowResponse (Maybe UTCTime)
updateWorkflowResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe POSIX
a -> UpdateWorkflowResponse
s {$sel:creationTime:UpdateWorkflowResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: UpdateWorkflowResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
updateWorkflowResponse_description :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe Prelude.Text)
updateWorkflowResponse_description :: Lens' UpdateWorkflowResponse (Maybe Text)
updateWorkflowResponse_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe Text
description :: Maybe Text
$sel:description:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe Text
a -> UpdateWorkflowResponse
s {$sel:description:UpdateWorkflowResponse' :: Maybe Text
description = Maybe Text
a} :: UpdateWorkflowResponse)
updateWorkflowResponse_id :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe Prelude.Text)
updateWorkflowResponse_id :: Lens' UpdateWorkflowResponse (Maybe Text)
updateWorkflowResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe Text
id :: Maybe Text
$sel:id:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe Text
a -> UpdateWorkflowResponse
s {$sel:id:UpdateWorkflowResponse' :: Maybe Text
id = Maybe Text
a} :: UpdateWorkflowResponse)
updateWorkflowResponse_lastModifiedTime :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe Prelude.UTCTime)
updateWorkflowResponse_lastModifiedTime :: Lens' UpdateWorkflowResponse (Maybe UTCTime)
updateWorkflowResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe POSIX
a -> UpdateWorkflowResponse
s {$sel:lastModifiedTime:UpdateWorkflowResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: UpdateWorkflowResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
updateWorkflowResponse_name :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe Prelude.Text)
updateWorkflowResponse_name :: Lens' UpdateWorkflowResponse (Maybe Text)
updateWorkflowResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe Text
name :: Maybe Text
$sel:name:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe Text
a -> UpdateWorkflowResponse
s {$sel:name:UpdateWorkflowResponse' :: Maybe Text
name = Maybe Text
a} :: UpdateWorkflowResponse)
updateWorkflowResponse_status :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe MigrationWorkflowStatusEnum)
updateWorkflowResponse_status :: Lens' UpdateWorkflowResponse (Maybe MigrationWorkflowStatusEnum)
updateWorkflowResponse_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe MigrationWorkflowStatusEnum
status :: Maybe MigrationWorkflowStatusEnum
$sel:status:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe MigrationWorkflowStatusEnum
status} -> Maybe MigrationWorkflowStatusEnum
status) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe MigrationWorkflowStatusEnum
a -> UpdateWorkflowResponse
s {$sel:status:UpdateWorkflowResponse' :: Maybe MigrationWorkflowStatusEnum
status = Maybe MigrationWorkflowStatusEnum
a} :: UpdateWorkflowResponse)
updateWorkflowResponse_stepTargets :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe [Prelude.Text])
updateWorkflowResponse_stepTargets :: Lens' UpdateWorkflowResponse (Maybe [Text])
updateWorkflowResponse_stepTargets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe [Text]
stepTargets :: Maybe [Text]
$sel:stepTargets:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe [Text]
stepTargets} -> Maybe [Text]
stepTargets) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe [Text]
a -> UpdateWorkflowResponse
s {$sel:stepTargets:UpdateWorkflowResponse' :: Maybe [Text]
stepTargets = Maybe [Text]
a} :: UpdateWorkflowResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateWorkflowResponse_tags :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateWorkflowResponse_tags :: Lens' UpdateWorkflowResponse (Maybe (HashMap Text Text))
updateWorkflowResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe (HashMap Text Text)
a -> UpdateWorkflowResponse
s {$sel:tags:UpdateWorkflowResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: UpdateWorkflowResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateWorkflowResponse_templateId :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe Prelude.Text)
updateWorkflowResponse_templateId :: Lens' UpdateWorkflowResponse (Maybe Text)
updateWorkflowResponse_templateId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe Text
templateId :: Maybe Text
$sel:templateId:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
templateId} -> Maybe Text
templateId) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe Text
a -> UpdateWorkflowResponse
s {$sel:templateId:UpdateWorkflowResponse' :: Maybe Text
templateId = Maybe Text
a} :: UpdateWorkflowResponse)
updateWorkflowResponse_workflowInputs :: Lens.Lens' UpdateWorkflowResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text StepInput))
updateWorkflowResponse_workflowInputs :: Lens' UpdateWorkflowResponse (Maybe (HashMap Text StepInput))
updateWorkflowResponse_workflowInputs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Maybe (Sensitive (HashMap Text StepInput))
workflowInputs :: Maybe (Sensitive (HashMap Text StepInput))
$sel:workflowInputs:UpdateWorkflowResponse' :: UpdateWorkflowResponse
-> Maybe (Sensitive (HashMap Text StepInput))
workflowInputs} -> Maybe (Sensitive (HashMap Text StepInput))
workflowInputs) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Maybe (Sensitive (HashMap Text StepInput))
a -> UpdateWorkflowResponse
s {$sel:workflowInputs:UpdateWorkflowResponse' :: Maybe (Sensitive (HashMap Text StepInput))
workflowInputs = Maybe (Sensitive (HashMap Text StepInput))
a} :: UpdateWorkflowResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 (forall a. Iso' (Sensitive a) a
Data._Sensitive forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
updateWorkflowResponse_httpStatus :: Lens.Lens' UpdateWorkflowResponse Prelude.Int
updateWorkflowResponse_httpStatus :: Lens' UpdateWorkflowResponse Int
updateWorkflowResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateWorkflowResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateWorkflowResponse
s@UpdateWorkflowResponse' {} Int
a -> UpdateWorkflowResponse
s {$sel:httpStatus:UpdateWorkflowResponse' :: Int
httpStatus = Int
a} :: UpdateWorkflowResponse)
instance Prelude.NFData UpdateWorkflowResponse where
rnf :: UpdateWorkflowResponse -> ()
rnf UpdateWorkflowResponse' {Int
Maybe [Text]
Maybe Text
Maybe (HashMap Text Text)
Maybe (Sensitive (HashMap Text StepInput))
Maybe POSIX
Maybe MigrationWorkflowStatusEnum
httpStatus :: Int
workflowInputs :: Maybe (Sensitive (HashMap Text StepInput))
templateId :: Maybe Text
tags :: Maybe (HashMap Text Text)
stepTargets :: Maybe [Text]
status :: Maybe MigrationWorkflowStatusEnum
name :: Maybe Text
lastModifiedTime :: Maybe POSIX
id :: Maybe Text
description :: Maybe Text
creationTime :: Maybe POSIX
arn :: Maybe Text
adsApplicationConfigurationId :: Maybe Text
$sel:httpStatus:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Int
$sel:workflowInputs:UpdateWorkflowResponse' :: UpdateWorkflowResponse
-> Maybe (Sensitive (HashMap Text StepInput))
$sel:templateId:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
$sel:tags:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe (HashMap Text Text)
$sel:stepTargets:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe [Text]
$sel:status:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe MigrationWorkflowStatusEnum
$sel:name:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
$sel:lastModifiedTime:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe POSIX
$sel:id:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
$sel:description:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
$sel:creationTime:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe POSIX
$sel:arn:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
$sel:adsApplicationConfigurationId:UpdateWorkflowResponse' :: UpdateWorkflowResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
adsApplicationConfigurationId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MigrationWorkflowStatusEnum
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
stepTargets
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
templateId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive (HashMap Text StepInput))
workflowInputs
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus