{-# 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.RobOMaker.StartSimulationJobBatch
(
StartSimulationJobBatch (..),
newStartSimulationJobBatch,
startSimulationJobBatch_batchPolicy,
startSimulationJobBatch_clientRequestToken,
startSimulationJobBatch_tags,
startSimulationJobBatch_createSimulationJobRequests,
StartSimulationJobBatchResponse (..),
newStartSimulationJobBatchResponse,
startSimulationJobBatchResponse_failureReason,
startSimulationJobBatchResponse_status,
startSimulationJobBatchResponse_arn,
startSimulationJobBatchResponse_createdAt,
startSimulationJobBatchResponse_failureCode,
startSimulationJobBatchResponse_failedRequests,
startSimulationJobBatchResponse_batchPolicy,
startSimulationJobBatchResponse_createdRequests,
startSimulationJobBatchResponse_pendingRequests,
startSimulationJobBatchResponse_clientRequestToken,
startSimulationJobBatchResponse_tags,
startSimulationJobBatchResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.RobOMaker.Types
data StartSimulationJobBatch = StartSimulationJobBatch'
{
StartSimulationJobBatch -> Maybe BatchPolicy
batchPolicy :: Prelude.Maybe BatchPolicy,
StartSimulationJobBatch -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
StartSimulationJobBatch -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
StartSimulationJobBatch -> NonEmpty SimulationJobRequest
createSimulationJobRequests :: Prelude.NonEmpty SimulationJobRequest
}
deriving (StartSimulationJobBatch -> StartSimulationJobBatch -> Bool
(StartSimulationJobBatch -> StartSimulationJobBatch -> Bool)
-> (StartSimulationJobBatch -> StartSimulationJobBatch -> Bool)
-> Eq StartSimulationJobBatch
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartSimulationJobBatch -> StartSimulationJobBatch -> Bool
$c/= :: StartSimulationJobBatch -> StartSimulationJobBatch -> Bool
== :: StartSimulationJobBatch -> StartSimulationJobBatch -> Bool
$c== :: StartSimulationJobBatch -> StartSimulationJobBatch -> Bool
Prelude.Eq, ReadPrec [StartSimulationJobBatch]
ReadPrec StartSimulationJobBatch
Int -> ReadS StartSimulationJobBatch
ReadS [StartSimulationJobBatch]
(Int -> ReadS StartSimulationJobBatch)
-> ReadS [StartSimulationJobBatch]
-> ReadPrec StartSimulationJobBatch
-> ReadPrec [StartSimulationJobBatch]
-> Read StartSimulationJobBatch
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartSimulationJobBatch]
$creadListPrec :: ReadPrec [StartSimulationJobBatch]
readPrec :: ReadPrec StartSimulationJobBatch
$creadPrec :: ReadPrec StartSimulationJobBatch
readList :: ReadS [StartSimulationJobBatch]
$creadList :: ReadS [StartSimulationJobBatch]
readsPrec :: Int -> ReadS StartSimulationJobBatch
$creadsPrec :: Int -> ReadS StartSimulationJobBatch
Prelude.Read, Int -> StartSimulationJobBatch -> ShowS
[StartSimulationJobBatch] -> ShowS
StartSimulationJobBatch -> String
(Int -> StartSimulationJobBatch -> ShowS)
-> (StartSimulationJobBatch -> String)
-> ([StartSimulationJobBatch] -> ShowS)
-> Show StartSimulationJobBatch
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartSimulationJobBatch] -> ShowS
$cshowList :: [StartSimulationJobBatch] -> ShowS
show :: StartSimulationJobBatch -> String
$cshow :: StartSimulationJobBatch -> String
showsPrec :: Int -> StartSimulationJobBatch -> ShowS
$cshowsPrec :: Int -> StartSimulationJobBatch -> ShowS
Prelude.Show, (forall x.
StartSimulationJobBatch -> Rep StartSimulationJobBatch x)
-> (forall x.
Rep StartSimulationJobBatch x -> StartSimulationJobBatch)
-> Generic StartSimulationJobBatch
forall x. Rep StartSimulationJobBatch x -> StartSimulationJobBatch
forall x. StartSimulationJobBatch -> Rep StartSimulationJobBatch x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartSimulationJobBatch x -> StartSimulationJobBatch
$cfrom :: forall x. StartSimulationJobBatch -> Rep StartSimulationJobBatch x
Prelude.Generic)
newStartSimulationJobBatch ::
Prelude.NonEmpty SimulationJobRequest ->
StartSimulationJobBatch
newStartSimulationJobBatch :: NonEmpty SimulationJobRequest -> StartSimulationJobBatch
newStartSimulationJobBatch
NonEmpty SimulationJobRequest
pCreateSimulationJobRequests_ =
StartSimulationJobBatch' :: Maybe BatchPolicy
-> Maybe Text
-> Maybe (HashMap Text Text)
-> NonEmpty SimulationJobRequest
-> StartSimulationJobBatch
StartSimulationJobBatch'
{ $sel:batchPolicy:StartSimulationJobBatch' :: Maybe BatchPolicy
batchPolicy =
Maybe BatchPolicy
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:StartSimulationJobBatch' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:StartSimulationJobBatch' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:createSimulationJobRequests:StartSimulationJobBatch' :: NonEmpty SimulationJobRequest
createSimulationJobRequests =
Tagged
(NonEmpty SimulationJobRequest)
(Identity (NonEmpty SimulationJobRequest))
-> Tagged
(NonEmpty SimulationJobRequest)
(Identity (NonEmpty SimulationJobRequest))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
(Tagged
(NonEmpty SimulationJobRequest)
(Identity (NonEmpty SimulationJobRequest))
-> Tagged
(NonEmpty SimulationJobRequest)
(Identity (NonEmpty SimulationJobRequest)))
-> NonEmpty SimulationJobRequest -> NonEmpty SimulationJobRequest
forall t b. AReview t b -> b -> t
Lens.# NonEmpty SimulationJobRequest
pCreateSimulationJobRequests_
}
startSimulationJobBatch_batchPolicy :: Lens.Lens' StartSimulationJobBatch (Prelude.Maybe BatchPolicy)
startSimulationJobBatch_batchPolicy :: (Maybe BatchPolicy -> f (Maybe BatchPolicy))
-> StartSimulationJobBatch -> f StartSimulationJobBatch
startSimulationJobBatch_batchPolicy = (StartSimulationJobBatch -> Maybe BatchPolicy)
-> (StartSimulationJobBatch
-> Maybe BatchPolicy -> StartSimulationJobBatch)
-> Lens
StartSimulationJobBatch
StartSimulationJobBatch
(Maybe BatchPolicy)
(Maybe BatchPolicy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatch' {Maybe BatchPolicy
batchPolicy :: Maybe BatchPolicy
$sel:batchPolicy:StartSimulationJobBatch' :: StartSimulationJobBatch -> Maybe BatchPolicy
batchPolicy} -> Maybe BatchPolicy
batchPolicy) (\s :: StartSimulationJobBatch
s@StartSimulationJobBatch' {} Maybe BatchPolicy
a -> StartSimulationJobBatch
s {$sel:batchPolicy:StartSimulationJobBatch' :: Maybe BatchPolicy
batchPolicy = Maybe BatchPolicy
a} :: StartSimulationJobBatch)
startSimulationJobBatch_clientRequestToken :: Lens.Lens' StartSimulationJobBatch (Prelude.Maybe Prelude.Text)
startSimulationJobBatch_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> StartSimulationJobBatch -> f StartSimulationJobBatch
startSimulationJobBatch_clientRequestToken = (StartSimulationJobBatch -> Maybe Text)
-> (StartSimulationJobBatch
-> Maybe Text -> StartSimulationJobBatch)
-> Lens
StartSimulationJobBatch
StartSimulationJobBatch
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatch' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:StartSimulationJobBatch' :: StartSimulationJobBatch -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: StartSimulationJobBatch
s@StartSimulationJobBatch' {} Maybe Text
a -> StartSimulationJobBatch
s {$sel:clientRequestToken:StartSimulationJobBatch' :: Maybe Text
clientRequestToken = Maybe Text
a} :: StartSimulationJobBatch)
startSimulationJobBatch_tags :: Lens.Lens' StartSimulationJobBatch (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
startSimulationJobBatch_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartSimulationJobBatch -> f StartSimulationJobBatch
startSimulationJobBatch_tags = (StartSimulationJobBatch -> Maybe (HashMap Text Text))
-> (StartSimulationJobBatch
-> Maybe (HashMap Text Text) -> StartSimulationJobBatch)
-> Lens
StartSimulationJobBatch
StartSimulationJobBatch
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatch' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:StartSimulationJobBatch' :: StartSimulationJobBatch -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: StartSimulationJobBatch
s@StartSimulationJobBatch' {} Maybe (HashMap Text Text)
a -> StartSimulationJobBatch
s {$sel:tags:StartSimulationJobBatch' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: StartSimulationJobBatch) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartSimulationJobBatch -> f StartSimulationJobBatch)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartSimulationJobBatch
-> f StartSimulationJobBatch
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
startSimulationJobBatch_createSimulationJobRequests :: Lens.Lens' StartSimulationJobBatch (Prelude.NonEmpty SimulationJobRequest)
startSimulationJobBatch_createSimulationJobRequests :: (NonEmpty SimulationJobRequest
-> f (NonEmpty SimulationJobRequest))
-> StartSimulationJobBatch -> f StartSimulationJobBatch
startSimulationJobBatch_createSimulationJobRequests = (StartSimulationJobBatch -> NonEmpty SimulationJobRequest)
-> (StartSimulationJobBatch
-> NonEmpty SimulationJobRequest -> StartSimulationJobBatch)
-> Lens
StartSimulationJobBatch
StartSimulationJobBatch
(NonEmpty SimulationJobRequest)
(NonEmpty SimulationJobRequest)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatch' {NonEmpty SimulationJobRequest
createSimulationJobRequests :: NonEmpty SimulationJobRequest
$sel:createSimulationJobRequests:StartSimulationJobBatch' :: StartSimulationJobBatch -> NonEmpty SimulationJobRequest
createSimulationJobRequests} -> NonEmpty SimulationJobRequest
createSimulationJobRequests) (\s :: StartSimulationJobBatch
s@StartSimulationJobBatch' {} NonEmpty SimulationJobRequest
a -> StartSimulationJobBatch
s {$sel:createSimulationJobRequests:StartSimulationJobBatch' :: NonEmpty SimulationJobRequest
createSimulationJobRequests = NonEmpty SimulationJobRequest
a} :: StartSimulationJobBatch) ((NonEmpty SimulationJobRequest
-> f (NonEmpty SimulationJobRequest))
-> StartSimulationJobBatch -> f StartSimulationJobBatch)
-> ((NonEmpty SimulationJobRequest
-> f (NonEmpty SimulationJobRequest))
-> NonEmpty SimulationJobRequest
-> f (NonEmpty SimulationJobRequest))
-> (NonEmpty SimulationJobRequest
-> f (NonEmpty SimulationJobRequest))
-> StartSimulationJobBatch
-> f StartSimulationJobBatch
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty SimulationJobRequest
-> f (NonEmpty SimulationJobRequest))
-> NonEmpty SimulationJobRequest
-> f (NonEmpty SimulationJobRequest)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest StartSimulationJobBatch where
type
AWSResponse StartSimulationJobBatch =
StartSimulationJobBatchResponse
request :: StartSimulationJobBatch -> Request StartSimulationJobBatch
request = Service
-> StartSimulationJobBatch -> Request StartSimulationJobBatch
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartSimulationJobBatch
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartSimulationJobBatch)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartSimulationJobBatch))
-> Logger
-> Service
-> Proxy StartSimulationJobBatch
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartSimulationJobBatch)))
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 SimulationJobBatchStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse
StartSimulationJobBatchResponse'
(Maybe Text
-> Maybe SimulationJobBatchStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe SimulationJobBatchStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
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 SimulationJobBatchStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
-> Either String (Maybe SimulationJobBatchStatus)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SimulationJobBatchStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"arn")
Either
String
(Maybe POSIX
-> Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"createdAt")
Either
String
(Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
-> Either String (Maybe SimulationJobBatchErrorCode)
-> Either
String
(Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SimulationJobBatchErrorCode)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"failureCode")
Either
String
(Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
-> Either String (Maybe [FailedCreateSimulationJobRequest])
-> Either
String
(Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [FailedCreateSimulationJobRequest]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"failedRequests" Either String (Maybe (Maybe [FailedCreateSimulationJobRequest]))
-> Maybe [FailedCreateSimulationJobRequest]
-> Either String (Maybe [FailedCreateSimulationJobRequest])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FailedCreateSimulationJobRequest]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
-> Either String (Maybe BatchPolicy)
-> Either
String
(Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe BatchPolicy)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"batchPolicy")
Either
String
(Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
-> Either String (Maybe [SimulationJobSummary])
-> Either
String
(Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [SimulationJobSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"createdRequests"
Either String (Maybe (Maybe [SimulationJobSummary]))
-> Maybe [SimulationJobSummary]
-> Either String (Maybe [SimulationJobSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SimulationJobSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
-> Either String (Maybe (NonEmpty SimulationJobRequest))
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (NonEmpty SimulationJobRequest))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"pendingRequests")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text)
-> Int -> StartSimulationJobBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"clientRequestToken")
Either
String
(Maybe (HashMap Text Text)
-> Int -> StartSimulationJobBatchResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> StartSimulationJobBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> StartSimulationJobBatchResponse)
-> Either String Int
-> Either String StartSimulationJobBatchResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable StartSimulationJobBatch
instance Prelude.NFData StartSimulationJobBatch
instance Core.ToHeaders StartSimulationJobBatch where
toHeaders :: StartSimulationJobBatch -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartSimulationJobBatch -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 StartSimulationJobBatch where
toJSON :: StartSimulationJobBatch -> Value
toJSON StartSimulationJobBatch' {Maybe Text
Maybe (HashMap Text Text)
Maybe BatchPolicy
NonEmpty SimulationJobRequest
createSimulationJobRequests :: NonEmpty SimulationJobRequest
tags :: Maybe (HashMap Text Text)
clientRequestToken :: Maybe Text
batchPolicy :: Maybe BatchPolicy
$sel:createSimulationJobRequests:StartSimulationJobBatch' :: StartSimulationJobBatch -> NonEmpty SimulationJobRequest
$sel:tags:StartSimulationJobBatch' :: StartSimulationJobBatch -> Maybe (HashMap Text Text)
$sel:clientRequestToken:StartSimulationJobBatch' :: StartSimulationJobBatch -> Maybe Text
$sel:batchPolicy:StartSimulationJobBatch' :: StartSimulationJobBatch -> Maybe BatchPolicy
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"batchPolicy" Text -> BatchPolicy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (BatchPolicy -> Pair) -> Maybe BatchPolicy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe BatchPolicy
batchPolicy,
(Text
"clientRequestToken" 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
clientRequestToken,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"createSimulationJobRequests"
Text -> NonEmpty SimulationJobRequest -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty SimulationJobRequest
createSimulationJobRequests
)
]
)
instance Core.ToPath StartSimulationJobBatch where
toPath :: StartSimulationJobBatch -> ByteString
toPath = ByteString -> StartSimulationJobBatch -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/startSimulationJobBatch"
instance Core.ToQuery StartSimulationJobBatch where
toQuery :: StartSimulationJobBatch -> QueryString
toQuery = QueryString -> StartSimulationJobBatch -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartSimulationJobBatchResponse = StartSimulationJobBatchResponse'
{
StartSimulationJobBatchResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
StartSimulationJobBatchResponse -> Maybe SimulationJobBatchStatus
status :: Prelude.Maybe SimulationJobBatchStatus,
StartSimulationJobBatchResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
StartSimulationJobBatchResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
StartSimulationJobBatchResponse
-> Maybe SimulationJobBatchErrorCode
failureCode :: Prelude.Maybe SimulationJobBatchErrorCode,
StartSimulationJobBatchResponse
-> Maybe [FailedCreateSimulationJobRequest]
failedRequests :: Prelude.Maybe [FailedCreateSimulationJobRequest],
StartSimulationJobBatchResponse -> Maybe BatchPolicy
batchPolicy :: Prelude.Maybe BatchPolicy,
StartSimulationJobBatchResponse -> Maybe [SimulationJobSummary]
createdRequests :: Prelude.Maybe [SimulationJobSummary],
StartSimulationJobBatchResponse
-> Maybe (NonEmpty SimulationJobRequest)
pendingRequests :: Prelude.Maybe (Prelude.NonEmpty SimulationJobRequest),
StartSimulationJobBatchResponse -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
StartSimulationJobBatchResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
StartSimulationJobBatchResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartSimulationJobBatchResponse
-> StartSimulationJobBatchResponse -> Bool
(StartSimulationJobBatchResponse
-> StartSimulationJobBatchResponse -> Bool)
-> (StartSimulationJobBatchResponse
-> StartSimulationJobBatchResponse -> Bool)
-> Eq StartSimulationJobBatchResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartSimulationJobBatchResponse
-> StartSimulationJobBatchResponse -> Bool
$c/= :: StartSimulationJobBatchResponse
-> StartSimulationJobBatchResponse -> Bool
== :: StartSimulationJobBatchResponse
-> StartSimulationJobBatchResponse -> Bool
$c== :: StartSimulationJobBatchResponse
-> StartSimulationJobBatchResponse -> Bool
Prelude.Eq, ReadPrec [StartSimulationJobBatchResponse]
ReadPrec StartSimulationJobBatchResponse
Int -> ReadS StartSimulationJobBatchResponse
ReadS [StartSimulationJobBatchResponse]
(Int -> ReadS StartSimulationJobBatchResponse)
-> ReadS [StartSimulationJobBatchResponse]
-> ReadPrec StartSimulationJobBatchResponse
-> ReadPrec [StartSimulationJobBatchResponse]
-> Read StartSimulationJobBatchResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartSimulationJobBatchResponse]
$creadListPrec :: ReadPrec [StartSimulationJobBatchResponse]
readPrec :: ReadPrec StartSimulationJobBatchResponse
$creadPrec :: ReadPrec StartSimulationJobBatchResponse
readList :: ReadS [StartSimulationJobBatchResponse]
$creadList :: ReadS [StartSimulationJobBatchResponse]
readsPrec :: Int -> ReadS StartSimulationJobBatchResponse
$creadsPrec :: Int -> ReadS StartSimulationJobBatchResponse
Prelude.Read, Int -> StartSimulationJobBatchResponse -> ShowS
[StartSimulationJobBatchResponse] -> ShowS
StartSimulationJobBatchResponse -> String
(Int -> StartSimulationJobBatchResponse -> ShowS)
-> (StartSimulationJobBatchResponse -> String)
-> ([StartSimulationJobBatchResponse] -> ShowS)
-> Show StartSimulationJobBatchResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartSimulationJobBatchResponse] -> ShowS
$cshowList :: [StartSimulationJobBatchResponse] -> ShowS
show :: StartSimulationJobBatchResponse -> String
$cshow :: StartSimulationJobBatchResponse -> String
showsPrec :: Int -> StartSimulationJobBatchResponse -> ShowS
$cshowsPrec :: Int -> StartSimulationJobBatchResponse -> ShowS
Prelude.Show, (forall x.
StartSimulationJobBatchResponse
-> Rep StartSimulationJobBatchResponse x)
-> (forall x.
Rep StartSimulationJobBatchResponse x
-> StartSimulationJobBatchResponse)
-> Generic StartSimulationJobBatchResponse
forall x.
Rep StartSimulationJobBatchResponse x
-> StartSimulationJobBatchResponse
forall x.
StartSimulationJobBatchResponse
-> Rep StartSimulationJobBatchResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartSimulationJobBatchResponse x
-> StartSimulationJobBatchResponse
$cfrom :: forall x.
StartSimulationJobBatchResponse
-> Rep StartSimulationJobBatchResponse x
Prelude.Generic)
newStartSimulationJobBatchResponse ::
Prelude.Int ->
StartSimulationJobBatchResponse
newStartSimulationJobBatchResponse :: Int -> StartSimulationJobBatchResponse
newStartSimulationJobBatchResponse Int
pHttpStatus_ =
StartSimulationJobBatchResponse' :: Maybe Text
-> Maybe SimulationJobBatchStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe SimulationJobBatchErrorCode
-> Maybe [FailedCreateSimulationJobRequest]
-> Maybe BatchPolicy
-> Maybe [SimulationJobSummary]
-> Maybe (NonEmpty SimulationJobRequest)
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> StartSimulationJobBatchResponse
StartSimulationJobBatchResponse'
{ $sel:failureReason:StartSimulationJobBatchResponse' :: Maybe Text
failureReason =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:StartSimulationJobBatchResponse' :: Maybe SimulationJobBatchStatus
status = Maybe SimulationJobBatchStatus
forall a. Maybe a
Prelude.Nothing,
$sel:arn:StartSimulationJobBatchResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:StartSimulationJobBatchResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:failureCode:StartSimulationJobBatchResponse' :: Maybe SimulationJobBatchErrorCode
failureCode = Maybe SimulationJobBatchErrorCode
forall a. Maybe a
Prelude.Nothing,
$sel:failedRequests:StartSimulationJobBatchResponse' :: Maybe [FailedCreateSimulationJobRequest]
failedRequests = Maybe [FailedCreateSimulationJobRequest]
forall a. Maybe a
Prelude.Nothing,
$sel:batchPolicy:StartSimulationJobBatchResponse' :: Maybe BatchPolicy
batchPolicy = Maybe BatchPolicy
forall a. Maybe a
Prelude.Nothing,
$sel:createdRequests:StartSimulationJobBatchResponse' :: Maybe [SimulationJobSummary]
createdRequests = Maybe [SimulationJobSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:pendingRequests:StartSimulationJobBatchResponse' :: Maybe (NonEmpty SimulationJobRequest)
pendingRequests = Maybe (NonEmpty SimulationJobRequest)
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:StartSimulationJobBatchResponse' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:StartSimulationJobBatchResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartSimulationJobBatchResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startSimulationJobBatchResponse_failureReason :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe Prelude.Text)
startSimulationJobBatchResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_failureReason = (StartSimulationJobBatchResponse -> Maybe Text)
-> (StartSimulationJobBatchResponse
-> Maybe Text -> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe Text
a -> StartSimulationJobBatchResponse
s {$sel:failureReason:StartSimulationJobBatchResponse' :: Maybe Text
failureReason = Maybe Text
a} :: StartSimulationJobBatchResponse)
startSimulationJobBatchResponse_status :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe SimulationJobBatchStatus)
startSimulationJobBatchResponse_status :: (Maybe SimulationJobBatchStatus
-> f (Maybe SimulationJobBatchStatus))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_status = (StartSimulationJobBatchResponse -> Maybe SimulationJobBatchStatus)
-> (StartSimulationJobBatchResponse
-> Maybe SimulationJobBatchStatus
-> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe SimulationJobBatchStatus)
(Maybe SimulationJobBatchStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe SimulationJobBatchStatus
status :: Maybe SimulationJobBatchStatus
$sel:status:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse -> Maybe SimulationJobBatchStatus
status} -> Maybe SimulationJobBatchStatus
status) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe SimulationJobBatchStatus
a -> StartSimulationJobBatchResponse
s {$sel:status:StartSimulationJobBatchResponse' :: Maybe SimulationJobBatchStatus
status = Maybe SimulationJobBatchStatus
a} :: StartSimulationJobBatchResponse)
startSimulationJobBatchResponse_arn :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe Prelude.Text)
startSimulationJobBatchResponse_arn :: (Maybe Text -> f (Maybe Text))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_arn = (StartSimulationJobBatchResponse -> Maybe Text)
-> (StartSimulationJobBatchResponse
-> Maybe Text -> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe Text
a -> StartSimulationJobBatchResponse
s {$sel:arn:StartSimulationJobBatchResponse' :: Maybe Text
arn = Maybe Text
a} :: StartSimulationJobBatchResponse)
startSimulationJobBatchResponse_createdAt :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe Prelude.UTCTime)
startSimulationJobBatchResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_createdAt = (StartSimulationJobBatchResponse -> Maybe POSIX)
-> (StartSimulationJobBatchResponse
-> Maybe POSIX -> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe POSIX
a -> StartSimulationJobBatchResponse
s {$sel:createdAt:StartSimulationJobBatchResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: StartSimulationJobBatchResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
startSimulationJobBatchResponse_failureCode :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe SimulationJobBatchErrorCode)
startSimulationJobBatchResponse_failureCode :: (Maybe SimulationJobBatchErrorCode
-> f (Maybe SimulationJobBatchErrorCode))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_failureCode = (StartSimulationJobBatchResponse
-> Maybe SimulationJobBatchErrorCode)
-> (StartSimulationJobBatchResponse
-> Maybe SimulationJobBatchErrorCode
-> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe SimulationJobBatchErrorCode)
(Maybe SimulationJobBatchErrorCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe SimulationJobBatchErrorCode
failureCode :: Maybe SimulationJobBatchErrorCode
$sel:failureCode:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse
-> Maybe SimulationJobBatchErrorCode
failureCode} -> Maybe SimulationJobBatchErrorCode
failureCode) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe SimulationJobBatchErrorCode
a -> StartSimulationJobBatchResponse
s {$sel:failureCode:StartSimulationJobBatchResponse' :: Maybe SimulationJobBatchErrorCode
failureCode = Maybe SimulationJobBatchErrorCode
a} :: StartSimulationJobBatchResponse)
startSimulationJobBatchResponse_failedRequests :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe [FailedCreateSimulationJobRequest])
startSimulationJobBatchResponse_failedRequests :: (Maybe [FailedCreateSimulationJobRequest]
-> f (Maybe [FailedCreateSimulationJobRequest]))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_failedRequests = (StartSimulationJobBatchResponse
-> Maybe [FailedCreateSimulationJobRequest])
-> (StartSimulationJobBatchResponse
-> Maybe [FailedCreateSimulationJobRequest]
-> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe [FailedCreateSimulationJobRequest])
(Maybe [FailedCreateSimulationJobRequest])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe [FailedCreateSimulationJobRequest]
failedRequests :: Maybe [FailedCreateSimulationJobRequest]
$sel:failedRequests:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse
-> Maybe [FailedCreateSimulationJobRequest]
failedRequests} -> Maybe [FailedCreateSimulationJobRequest]
failedRequests) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe [FailedCreateSimulationJobRequest]
a -> StartSimulationJobBatchResponse
s {$sel:failedRequests:StartSimulationJobBatchResponse' :: Maybe [FailedCreateSimulationJobRequest]
failedRequests = Maybe [FailedCreateSimulationJobRequest]
a} :: StartSimulationJobBatchResponse) ((Maybe [FailedCreateSimulationJobRequest]
-> f (Maybe [FailedCreateSimulationJobRequest]))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse)
-> ((Maybe [FailedCreateSimulationJobRequest]
-> f (Maybe [FailedCreateSimulationJobRequest]))
-> Maybe [FailedCreateSimulationJobRequest]
-> f (Maybe [FailedCreateSimulationJobRequest]))
-> (Maybe [FailedCreateSimulationJobRequest]
-> f (Maybe [FailedCreateSimulationJobRequest]))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[FailedCreateSimulationJobRequest]
[FailedCreateSimulationJobRequest]
[FailedCreateSimulationJobRequest]
[FailedCreateSimulationJobRequest]
-> Iso
(Maybe [FailedCreateSimulationJobRequest])
(Maybe [FailedCreateSimulationJobRequest])
(Maybe [FailedCreateSimulationJobRequest])
(Maybe [FailedCreateSimulationJobRequest])
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
[FailedCreateSimulationJobRequest]
[FailedCreateSimulationJobRequest]
[FailedCreateSimulationJobRequest]
[FailedCreateSimulationJobRequest]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
startSimulationJobBatchResponse_batchPolicy :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe BatchPolicy)
startSimulationJobBatchResponse_batchPolicy :: (Maybe BatchPolicy -> f (Maybe BatchPolicy))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_batchPolicy = (StartSimulationJobBatchResponse -> Maybe BatchPolicy)
-> (StartSimulationJobBatchResponse
-> Maybe BatchPolicy -> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe BatchPolicy)
(Maybe BatchPolicy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe BatchPolicy
batchPolicy :: Maybe BatchPolicy
$sel:batchPolicy:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse -> Maybe BatchPolicy
batchPolicy} -> Maybe BatchPolicy
batchPolicy) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe BatchPolicy
a -> StartSimulationJobBatchResponse
s {$sel:batchPolicy:StartSimulationJobBatchResponse' :: Maybe BatchPolicy
batchPolicy = Maybe BatchPolicy
a} :: StartSimulationJobBatchResponse)
startSimulationJobBatchResponse_createdRequests :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe [SimulationJobSummary])
startSimulationJobBatchResponse_createdRequests :: (Maybe [SimulationJobSummary] -> f (Maybe [SimulationJobSummary]))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_createdRequests = (StartSimulationJobBatchResponse -> Maybe [SimulationJobSummary])
-> (StartSimulationJobBatchResponse
-> Maybe [SimulationJobSummary] -> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe [SimulationJobSummary])
(Maybe [SimulationJobSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe [SimulationJobSummary]
createdRequests :: Maybe [SimulationJobSummary]
$sel:createdRequests:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse -> Maybe [SimulationJobSummary]
createdRequests} -> Maybe [SimulationJobSummary]
createdRequests) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe [SimulationJobSummary]
a -> StartSimulationJobBatchResponse
s {$sel:createdRequests:StartSimulationJobBatchResponse' :: Maybe [SimulationJobSummary]
createdRequests = Maybe [SimulationJobSummary]
a} :: StartSimulationJobBatchResponse) ((Maybe [SimulationJobSummary] -> f (Maybe [SimulationJobSummary]))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse)
-> ((Maybe [SimulationJobSummary]
-> f (Maybe [SimulationJobSummary]))
-> Maybe [SimulationJobSummary]
-> f (Maybe [SimulationJobSummary]))
-> (Maybe [SimulationJobSummary]
-> f (Maybe [SimulationJobSummary]))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SimulationJobSummary]
[SimulationJobSummary]
[SimulationJobSummary]
[SimulationJobSummary]
-> Iso
(Maybe [SimulationJobSummary])
(Maybe [SimulationJobSummary])
(Maybe [SimulationJobSummary])
(Maybe [SimulationJobSummary])
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
[SimulationJobSummary]
[SimulationJobSummary]
[SimulationJobSummary]
[SimulationJobSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
startSimulationJobBatchResponse_pendingRequests :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe (Prelude.NonEmpty SimulationJobRequest))
startSimulationJobBatchResponse_pendingRequests :: (Maybe (NonEmpty SimulationJobRequest)
-> f (Maybe (NonEmpty SimulationJobRequest)))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_pendingRequests = (StartSimulationJobBatchResponse
-> Maybe (NonEmpty SimulationJobRequest))
-> (StartSimulationJobBatchResponse
-> Maybe (NonEmpty SimulationJobRequest)
-> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe (NonEmpty SimulationJobRequest))
(Maybe (NonEmpty SimulationJobRequest))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe (NonEmpty SimulationJobRequest)
pendingRequests :: Maybe (NonEmpty SimulationJobRequest)
$sel:pendingRequests:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse
-> Maybe (NonEmpty SimulationJobRequest)
pendingRequests} -> Maybe (NonEmpty SimulationJobRequest)
pendingRequests) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe (NonEmpty SimulationJobRequest)
a -> StartSimulationJobBatchResponse
s {$sel:pendingRequests:StartSimulationJobBatchResponse' :: Maybe (NonEmpty SimulationJobRequest)
pendingRequests = Maybe (NonEmpty SimulationJobRequest)
a} :: StartSimulationJobBatchResponse) ((Maybe (NonEmpty SimulationJobRequest)
-> f (Maybe (NonEmpty SimulationJobRequest)))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse)
-> ((Maybe (NonEmpty SimulationJobRequest)
-> f (Maybe (NonEmpty SimulationJobRequest)))
-> Maybe (NonEmpty SimulationJobRequest)
-> f (Maybe (NonEmpty SimulationJobRequest)))
-> (Maybe (NonEmpty SimulationJobRequest)
-> f (Maybe (NonEmpty SimulationJobRequest)))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty SimulationJobRequest)
(NonEmpty SimulationJobRequest)
(NonEmpty SimulationJobRequest)
(NonEmpty SimulationJobRequest)
-> Iso
(Maybe (NonEmpty SimulationJobRequest))
(Maybe (NonEmpty SimulationJobRequest))
(Maybe (NonEmpty SimulationJobRequest))
(Maybe (NonEmpty SimulationJobRequest))
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 SimulationJobRequest)
(NonEmpty SimulationJobRequest)
(NonEmpty SimulationJobRequest)
(NonEmpty SimulationJobRequest)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
startSimulationJobBatchResponse_clientRequestToken :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe Prelude.Text)
startSimulationJobBatchResponse_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_clientRequestToken = (StartSimulationJobBatchResponse -> Maybe Text)
-> (StartSimulationJobBatchResponse
-> Maybe Text -> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe Text
a -> StartSimulationJobBatchResponse
s {$sel:clientRequestToken:StartSimulationJobBatchResponse' :: Maybe Text
clientRequestToken = Maybe Text
a} :: StartSimulationJobBatchResponse)
startSimulationJobBatchResponse_tags :: Lens.Lens' StartSimulationJobBatchResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
startSimulationJobBatchResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_tags = (StartSimulationJobBatchResponse -> Maybe (HashMap Text Text))
-> (StartSimulationJobBatchResponse
-> Maybe (HashMap Text Text) -> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Maybe (HashMap Text Text)
a -> StartSimulationJobBatchResponse
s {$sel:tags:StartSimulationJobBatchResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: StartSimulationJobBatchResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
startSimulationJobBatchResponse_httpStatus :: Lens.Lens' StartSimulationJobBatchResponse Prelude.Int
startSimulationJobBatchResponse_httpStatus :: (Int -> f Int)
-> StartSimulationJobBatchResponse
-> f StartSimulationJobBatchResponse
startSimulationJobBatchResponse_httpStatus = (StartSimulationJobBatchResponse -> Int)
-> (StartSimulationJobBatchResponse
-> Int -> StartSimulationJobBatchResponse)
-> Lens
StartSimulationJobBatchResponse
StartSimulationJobBatchResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSimulationJobBatchResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartSimulationJobBatchResponse' :: StartSimulationJobBatchResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartSimulationJobBatchResponse
s@StartSimulationJobBatchResponse' {} Int
a -> StartSimulationJobBatchResponse
s {$sel:httpStatus:StartSimulationJobBatchResponse' :: Int
httpStatus = Int
a} :: StartSimulationJobBatchResponse)
instance
Prelude.NFData
StartSimulationJobBatchResponse