{-# 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.Glue.BatchStopJobRun
(
BatchStopJobRun (..),
newBatchStopJobRun,
batchStopJobRun_jobName,
batchStopJobRun_jobRunIds,
BatchStopJobRunResponse (..),
newBatchStopJobRunResponse,
batchStopJobRunResponse_successfulSubmissions,
batchStopJobRunResponse_errors,
batchStopJobRunResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data BatchStopJobRun = BatchStopJobRun'
{
BatchStopJobRun -> Text
jobName :: Prelude.Text,
BatchStopJobRun -> NonEmpty Text
jobRunIds :: Prelude.NonEmpty Prelude.Text
}
deriving (BatchStopJobRun -> BatchStopJobRun -> Bool
(BatchStopJobRun -> BatchStopJobRun -> Bool)
-> (BatchStopJobRun -> BatchStopJobRun -> Bool)
-> Eq BatchStopJobRun
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchStopJobRun -> BatchStopJobRun -> Bool
$c/= :: BatchStopJobRun -> BatchStopJobRun -> Bool
== :: BatchStopJobRun -> BatchStopJobRun -> Bool
$c== :: BatchStopJobRun -> BatchStopJobRun -> Bool
Prelude.Eq, ReadPrec [BatchStopJobRun]
ReadPrec BatchStopJobRun
Int -> ReadS BatchStopJobRun
ReadS [BatchStopJobRun]
(Int -> ReadS BatchStopJobRun)
-> ReadS [BatchStopJobRun]
-> ReadPrec BatchStopJobRun
-> ReadPrec [BatchStopJobRun]
-> Read BatchStopJobRun
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchStopJobRun]
$creadListPrec :: ReadPrec [BatchStopJobRun]
readPrec :: ReadPrec BatchStopJobRun
$creadPrec :: ReadPrec BatchStopJobRun
readList :: ReadS [BatchStopJobRun]
$creadList :: ReadS [BatchStopJobRun]
readsPrec :: Int -> ReadS BatchStopJobRun
$creadsPrec :: Int -> ReadS BatchStopJobRun
Prelude.Read, Int -> BatchStopJobRun -> ShowS
[BatchStopJobRun] -> ShowS
BatchStopJobRun -> String
(Int -> BatchStopJobRun -> ShowS)
-> (BatchStopJobRun -> String)
-> ([BatchStopJobRun] -> ShowS)
-> Show BatchStopJobRun
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchStopJobRun] -> ShowS
$cshowList :: [BatchStopJobRun] -> ShowS
show :: BatchStopJobRun -> String
$cshow :: BatchStopJobRun -> String
showsPrec :: Int -> BatchStopJobRun -> ShowS
$cshowsPrec :: Int -> BatchStopJobRun -> ShowS
Prelude.Show, (forall x. BatchStopJobRun -> Rep BatchStopJobRun x)
-> (forall x. Rep BatchStopJobRun x -> BatchStopJobRun)
-> Generic BatchStopJobRun
forall x. Rep BatchStopJobRun x -> BatchStopJobRun
forall x. BatchStopJobRun -> Rep BatchStopJobRun x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchStopJobRun x -> BatchStopJobRun
$cfrom :: forall x. BatchStopJobRun -> Rep BatchStopJobRun x
Prelude.Generic)
newBatchStopJobRun ::
Prelude.Text ->
Prelude.NonEmpty Prelude.Text ->
BatchStopJobRun
newBatchStopJobRun :: Text -> NonEmpty Text -> BatchStopJobRun
newBatchStopJobRun Text
pJobName_ NonEmpty Text
pJobRunIds_ =
BatchStopJobRun' :: Text -> NonEmpty Text -> BatchStopJobRun
BatchStopJobRun'
{ $sel:jobName:BatchStopJobRun' :: Text
jobName = Text
pJobName_,
$sel:jobRunIds:BatchStopJobRun' :: NonEmpty Text
jobRunIds = Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pJobRunIds_
}
batchStopJobRun_jobName :: Lens.Lens' BatchStopJobRun Prelude.Text
batchStopJobRun_jobName :: (Text -> f Text) -> BatchStopJobRun -> f BatchStopJobRun
batchStopJobRun_jobName = (BatchStopJobRun -> Text)
-> (BatchStopJobRun -> Text -> BatchStopJobRun)
-> Lens BatchStopJobRun BatchStopJobRun Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchStopJobRun' {Text
jobName :: Text
$sel:jobName:BatchStopJobRun' :: BatchStopJobRun -> Text
jobName} -> Text
jobName) (\s :: BatchStopJobRun
s@BatchStopJobRun' {} Text
a -> BatchStopJobRun
s {$sel:jobName:BatchStopJobRun' :: Text
jobName = Text
a} :: BatchStopJobRun)
batchStopJobRun_jobRunIds :: Lens.Lens' BatchStopJobRun (Prelude.NonEmpty Prelude.Text)
batchStopJobRun_jobRunIds :: (NonEmpty Text -> f (NonEmpty Text))
-> BatchStopJobRun -> f BatchStopJobRun
batchStopJobRun_jobRunIds = (BatchStopJobRun -> NonEmpty Text)
-> (BatchStopJobRun -> NonEmpty Text -> BatchStopJobRun)
-> Lens
BatchStopJobRun BatchStopJobRun (NonEmpty Text) (NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchStopJobRun' {NonEmpty Text
jobRunIds :: NonEmpty Text
$sel:jobRunIds:BatchStopJobRun' :: BatchStopJobRun -> NonEmpty Text
jobRunIds} -> NonEmpty Text
jobRunIds) (\s :: BatchStopJobRun
s@BatchStopJobRun' {} NonEmpty Text
a -> BatchStopJobRun
s {$sel:jobRunIds:BatchStopJobRun' :: NonEmpty Text
jobRunIds = NonEmpty Text
a} :: BatchStopJobRun) ((NonEmpty Text -> f (NonEmpty Text))
-> BatchStopJobRun -> f BatchStopJobRun)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> BatchStopJobRun
-> f BatchStopJobRun
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest BatchStopJobRun where
type
AWSResponse BatchStopJobRun =
BatchStopJobRunResponse
request :: BatchStopJobRun -> Request BatchStopJobRun
request = Service -> BatchStopJobRun -> Request BatchStopJobRun
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchStopJobRun
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchStopJobRun)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse BatchStopJobRun))
-> Logger
-> Service
-> Proxy BatchStopJobRun
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse BatchStopJobRun)))
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 [BatchStopJobRunSuccessfulSubmission]
-> Maybe [BatchStopJobRunError] -> Int -> BatchStopJobRunResponse
BatchStopJobRunResponse'
(Maybe [BatchStopJobRunSuccessfulSubmission]
-> Maybe [BatchStopJobRunError] -> Int -> BatchStopJobRunResponse)
-> Either String (Maybe [BatchStopJobRunSuccessfulSubmission])
-> Either
String
(Maybe [BatchStopJobRunError] -> Int -> BatchStopJobRunResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either
String (Maybe (Maybe [BatchStopJobRunSuccessfulSubmission]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SuccessfulSubmissions"
Either String (Maybe (Maybe [BatchStopJobRunSuccessfulSubmission]))
-> Maybe [BatchStopJobRunSuccessfulSubmission]
-> Either String (Maybe [BatchStopJobRunSuccessfulSubmission])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BatchStopJobRunSuccessfulSubmission]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe [BatchStopJobRunError] -> Int -> BatchStopJobRunResponse)
-> Either String (Maybe [BatchStopJobRunError])
-> Either String (Int -> BatchStopJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [BatchStopJobRunError]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Errors" Either String (Maybe (Maybe [BatchStopJobRunError]))
-> Maybe [BatchStopJobRunError]
-> Either String (Maybe [BatchStopJobRunError])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BatchStopJobRunError]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> BatchStopJobRunResponse)
-> Either String Int -> Either String BatchStopJobRunResponse
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 BatchStopJobRun
instance Prelude.NFData BatchStopJobRun
instance Core.ToHeaders BatchStopJobRun where
toHeaders :: BatchStopJobRun -> ResponseHeaders
toHeaders =
ResponseHeaders -> BatchStopJobRun -> 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
"AWSGlue.BatchStopJobRun" :: 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 BatchStopJobRun where
toJSON :: BatchStopJobRun -> Value
toJSON BatchStopJobRun' {NonEmpty Text
Text
jobRunIds :: NonEmpty Text
jobName :: Text
$sel:jobRunIds:BatchStopJobRun' :: BatchStopJobRun -> NonEmpty Text
$sel:jobName:BatchStopJobRun' :: BatchStopJobRun -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"JobName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
jobName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"JobRunIds" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
jobRunIds)
]
)
instance Core.ToPath BatchStopJobRun where
toPath :: BatchStopJobRun -> ByteString
toPath = ByteString -> BatchStopJobRun -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery BatchStopJobRun where
toQuery :: BatchStopJobRun -> QueryString
toQuery = QueryString -> BatchStopJobRun -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchStopJobRunResponse = BatchStopJobRunResponse'
{
BatchStopJobRunResponse
-> Maybe [BatchStopJobRunSuccessfulSubmission]
successfulSubmissions :: Prelude.Maybe [BatchStopJobRunSuccessfulSubmission],
BatchStopJobRunResponse -> Maybe [BatchStopJobRunError]
errors :: Prelude.Maybe [BatchStopJobRunError],
BatchStopJobRunResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchStopJobRunResponse -> BatchStopJobRunResponse -> Bool
(BatchStopJobRunResponse -> BatchStopJobRunResponse -> Bool)
-> (BatchStopJobRunResponse -> BatchStopJobRunResponse -> Bool)
-> Eq BatchStopJobRunResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchStopJobRunResponse -> BatchStopJobRunResponse -> Bool
$c/= :: BatchStopJobRunResponse -> BatchStopJobRunResponse -> Bool
== :: BatchStopJobRunResponse -> BatchStopJobRunResponse -> Bool
$c== :: BatchStopJobRunResponse -> BatchStopJobRunResponse -> Bool
Prelude.Eq, ReadPrec [BatchStopJobRunResponse]
ReadPrec BatchStopJobRunResponse
Int -> ReadS BatchStopJobRunResponse
ReadS [BatchStopJobRunResponse]
(Int -> ReadS BatchStopJobRunResponse)
-> ReadS [BatchStopJobRunResponse]
-> ReadPrec BatchStopJobRunResponse
-> ReadPrec [BatchStopJobRunResponse]
-> Read BatchStopJobRunResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchStopJobRunResponse]
$creadListPrec :: ReadPrec [BatchStopJobRunResponse]
readPrec :: ReadPrec BatchStopJobRunResponse
$creadPrec :: ReadPrec BatchStopJobRunResponse
readList :: ReadS [BatchStopJobRunResponse]
$creadList :: ReadS [BatchStopJobRunResponse]
readsPrec :: Int -> ReadS BatchStopJobRunResponse
$creadsPrec :: Int -> ReadS BatchStopJobRunResponse
Prelude.Read, Int -> BatchStopJobRunResponse -> ShowS
[BatchStopJobRunResponse] -> ShowS
BatchStopJobRunResponse -> String
(Int -> BatchStopJobRunResponse -> ShowS)
-> (BatchStopJobRunResponse -> String)
-> ([BatchStopJobRunResponse] -> ShowS)
-> Show BatchStopJobRunResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchStopJobRunResponse] -> ShowS
$cshowList :: [BatchStopJobRunResponse] -> ShowS
show :: BatchStopJobRunResponse -> String
$cshow :: BatchStopJobRunResponse -> String
showsPrec :: Int -> BatchStopJobRunResponse -> ShowS
$cshowsPrec :: Int -> BatchStopJobRunResponse -> ShowS
Prelude.Show, (forall x.
BatchStopJobRunResponse -> Rep BatchStopJobRunResponse x)
-> (forall x.
Rep BatchStopJobRunResponse x -> BatchStopJobRunResponse)
-> Generic BatchStopJobRunResponse
forall x. Rep BatchStopJobRunResponse x -> BatchStopJobRunResponse
forall x. BatchStopJobRunResponse -> Rep BatchStopJobRunResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep BatchStopJobRunResponse x -> BatchStopJobRunResponse
$cfrom :: forall x. BatchStopJobRunResponse -> Rep BatchStopJobRunResponse x
Prelude.Generic)
newBatchStopJobRunResponse ::
Prelude.Int ->
BatchStopJobRunResponse
newBatchStopJobRunResponse :: Int -> BatchStopJobRunResponse
newBatchStopJobRunResponse Int
pHttpStatus_ =
BatchStopJobRunResponse' :: Maybe [BatchStopJobRunSuccessfulSubmission]
-> Maybe [BatchStopJobRunError] -> Int -> BatchStopJobRunResponse
BatchStopJobRunResponse'
{ $sel:successfulSubmissions:BatchStopJobRunResponse' :: Maybe [BatchStopJobRunSuccessfulSubmission]
successfulSubmissions =
Maybe [BatchStopJobRunSuccessfulSubmission]
forall a. Maybe a
Prelude.Nothing,
$sel:errors:BatchStopJobRunResponse' :: Maybe [BatchStopJobRunError]
errors = Maybe [BatchStopJobRunError]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchStopJobRunResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchStopJobRunResponse_successfulSubmissions :: Lens.Lens' BatchStopJobRunResponse (Prelude.Maybe [BatchStopJobRunSuccessfulSubmission])
batchStopJobRunResponse_successfulSubmissions :: (Maybe [BatchStopJobRunSuccessfulSubmission]
-> f (Maybe [BatchStopJobRunSuccessfulSubmission]))
-> BatchStopJobRunResponse -> f BatchStopJobRunResponse
batchStopJobRunResponse_successfulSubmissions = (BatchStopJobRunResponse
-> Maybe [BatchStopJobRunSuccessfulSubmission])
-> (BatchStopJobRunResponse
-> Maybe [BatchStopJobRunSuccessfulSubmission]
-> BatchStopJobRunResponse)
-> Lens
BatchStopJobRunResponse
BatchStopJobRunResponse
(Maybe [BatchStopJobRunSuccessfulSubmission])
(Maybe [BatchStopJobRunSuccessfulSubmission])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchStopJobRunResponse' {Maybe [BatchStopJobRunSuccessfulSubmission]
successfulSubmissions :: Maybe [BatchStopJobRunSuccessfulSubmission]
$sel:successfulSubmissions:BatchStopJobRunResponse' :: BatchStopJobRunResponse
-> Maybe [BatchStopJobRunSuccessfulSubmission]
successfulSubmissions} -> Maybe [BatchStopJobRunSuccessfulSubmission]
successfulSubmissions) (\s :: BatchStopJobRunResponse
s@BatchStopJobRunResponse' {} Maybe [BatchStopJobRunSuccessfulSubmission]
a -> BatchStopJobRunResponse
s {$sel:successfulSubmissions:BatchStopJobRunResponse' :: Maybe [BatchStopJobRunSuccessfulSubmission]
successfulSubmissions = Maybe [BatchStopJobRunSuccessfulSubmission]
a} :: BatchStopJobRunResponse) ((Maybe [BatchStopJobRunSuccessfulSubmission]
-> f (Maybe [BatchStopJobRunSuccessfulSubmission]))
-> BatchStopJobRunResponse -> f BatchStopJobRunResponse)
-> ((Maybe [BatchStopJobRunSuccessfulSubmission]
-> f (Maybe [BatchStopJobRunSuccessfulSubmission]))
-> Maybe [BatchStopJobRunSuccessfulSubmission]
-> f (Maybe [BatchStopJobRunSuccessfulSubmission]))
-> (Maybe [BatchStopJobRunSuccessfulSubmission]
-> f (Maybe [BatchStopJobRunSuccessfulSubmission]))
-> BatchStopJobRunResponse
-> f BatchStopJobRunResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[BatchStopJobRunSuccessfulSubmission]
[BatchStopJobRunSuccessfulSubmission]
[BatchStopJobRunSuccessfulSubmission]
[BatchStopJobRunSuccessfulSubmission]
-> Iso
(Maybe [BatchStopJobRunSuccessfulSubmission])
(Maybe [BatchStopJobRunSuccessfulSubmission])
(Maybe [BatchStopJobRunSuccessfulSubmission])
(Maybe [BatchStopJobRunSuccessfulSubmission])
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
[BatchStopJobRunSuccessfulSubmission]
[BatchStopJobRunSuccessfulSubmission]
[BatchStopJobRunSuccessfulSubmission]
[BatchStopJobRunSuccessfulSubmission]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchStopJobRunResponse_errors :: Lens.Lens' BatchStopJobRunResponse (Prelude.Maybe [BatchStopJobRunError])
batchStopJobRunResponse_errors :: (Maybe [BatchStopJobRunError] -> f (Maybe [BatchStopJobRunError]))
-> BatchStopJobRunResponse -> f BatchStopJobRunResponse
batchStopJobRunResponse_errors = (BatchStopJobRunResponse -> Maybe [BatchStopJobRunError])
-> (BatchStopJobRunResponse
-> Maybe [BatchStopJobRunError] -> BatchStopJobRunResponse)
-> Lens
BatchStopJobRunResponse
BatchStopJobRunResponse
(Maybe [BatchStopJobRunError])
(Maybe [BatchStopJobRunError])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchStopJobRunResponse' {Maybe [BatchStopJobRunError]
errors :: Maybe [BatchStopJobRunError]
$sel:errors:BatchStopJobRunResponse' :: BatchStopJobRunResponse -> Maybe [BatchStopJobRunError]
errors} -> Maybe [BatchStopJobRunError]
errors) (\s :: BatchStopJobRunResponse
s@BatchStopJobRunResponse' {} Maybe [BatchStopJobRunError]
a -> BatchStopJobRunResponse
s {$sel:errors:BatchStopJobRunResponse' :: Maybe [BatchStopJobRunError]
errors = Maybe [BatchStopJobRunError]
a} :: BatchStopJobRunResponse) ((Maybe [BatchStopJobRunError] -> f (Maybe [BatchStopJobRunError]))
-> BatchStopJobRunResponse -> f BatchStopJobRunResponse)
-> ((Maybe [BatchStopJobRunError]
-> f (Maybe [BatchStopJobRunError]))
-> Maybe [BatchStopJobRunError]
-> f (Maybe [BatchStopJobRunError]))
-> (Maybe [BatchStopJobRunError]
-> f (Maybe [BatchStopJobRunError]))
-> BatchStopJobRunResponse
-> f BatchStopJobRunResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[BatchStopJobRunError]
[BatchStopJobRunError]
[BatchStopJobRunError]
[BatchStopJobRunError]
-> Iso
(Maybe [BatchStopJobRunError])
(Maybe [BatchStopJobRunError])
(Maybe [BatchStopJobRunError])
(Maybe [BatchStopJobRunError])
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
[BatchStopJobRunError]
[BatchStopJobRunError]
[BatchStopJobRunError]
[BatchStopJobRunError]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchStopJobRunResponse_httpStatus :: Lens.Lens' BatchStopJobRunResponse Prelude.Int
batchStopJobRunResponse_httpStatus :: (Int -> f Int)
-> BatchStopJobRunResponse -> f BatchStopJobRunResponse
batchStopJobRunResponse_httpStatus = (BatchStopJobRunResponse -> Int)
-> (BatchStopJobRunResponse -> Int -> BatchStopJobRunResponse)
-> Lens BatchStopJobRunResponse BatchStopJobRunResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchStopJobRunResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchStopJobRunResponse' :: BatchStopJobRunResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchStopJobRunResponse
s@BatchStopJobRunResponse' {} Int
a -> BatchStopJobRunResponse
s {$sel:httpStatus:BatchStopJobRunResponse' :: Int
httpStatus = Int
a} :: BatchStopJobRunResponse)
instance Prelude.NFData BatchStopJobRunResponse