{-# 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.Firehose.PutRecordBatch
(
PutRecordBatch (..),
newPutRecordBatch,
putRecordBatch_deliveryStreamName,
putRecordBatch_records,
PutRecordBatchResponse (..),
newPutRecordBatchResponse,
putRecordBatchResponse_encrypted,
putRecordBatchResponse_httpStatus,
putRecordBatchResponse_failedPutCount,
putRecordBatchResponse_requestResponses,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Firehose.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 PutRecordBatch = PutRecordBatch'
{
PutRecordBatch -> Text
deliveryStreamName :: Prelude.Text,
PutRecordBatch -> NonEmpty Record
records :: Prelude.NonEmpty Record
}
deriving (PutRecordBatch -> PutRecordBatch -> Bool
(PutRecordBatch -> PutRecordBatch -> Bool)
-> (PutRecordBatch -> PutRecordBatch -> Bool) -> Eq PutRecordBatch
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutRecordBatch -> PutRecordBatch -> Bool
$c/= :: PutRecordBatch -> PutRecordBatch -> Bool
== :: PutRecordBatch -> PutRecordBatch -> Bool
$c== :: PutRecordBatch -> PutRecordBatch -> Bool
Prelude.Eq, ReadPrec [PutRecordBatch]
ReadPrec PutRecordBatch
Int -> ReadS PutRecordBatch
ReadS [PutRecordBatch]
(Int -> ReadS PutRecordBatch)
-> ReadS [PutRecordBatch]
-> ReadPrec PutRecordBatch
-> ReadPrec [PutRecordBatch]
-> Read PutRecordBatch
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutRecordBatch]
$creadListPrec :: ReadPrec [PutRecordBatch]
readPrec :: ReadPrec PutRecordBatch
$creadPrec :: ReadPrec PutRecordBatch
readList :: ReadS [PutRecordBatch]
$creadList :: ReadS [PutRecordBatch]
readsPrec :: Int -> ReadS PutRecordBatch
$creadsPrec :: Int -> ReadS PutRecordBatch
Prelude.Read, Int -> PutRecordBatch -> ShowS
[PutRecordBatch] -> ShowS
PutRecordBatch -> String
(Int -> PutRecordBatch -> ShowS)
-> (PutRecordBatch -> String)
-> ([PutRecordBatch] -> ShowS)
-> Show PutRecordBatch
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutRecordBatch] -> ShowS
$cshowList :: [PutRecordBatch] -> ShowS
show :: PutRecordBatch -> String
$cshow :: PutRecordBatch -> String
showsPrec :: Int -> PutRecordBatch -> ShowS
$cshowsPrec :: Int -> PutRecordBatch -> ShowS
Prelude.Show, (forall x. PutRecordBatch -> Rep PutRecordBatch x)
-> (forall x. Rep PutRecordBatch x -> PutRecordBatch)
-> Generic PutRecordBatch
forall x. Rep PutRecordBatch x -> PutRecordBatch
forall x. PutRecordBatch -> Rep PutRecordBatch x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutRecordBatch x -> PutRecordBatch
$cfrom :: forall x. PutRecordBatch -> Rep PutRecordBatch x
Prelude.Generic)
newPutRecordBatch ::
Prelude.Text ->
Prelude.NonEmpty Record ->
PutRecordBatch
newPutRecordBatch :: Text -> NonEmpty Record -> PutRecordBatch
newPutRecordBatch Text
pDeliveryStreamName_ NonEmpty Record
pRecords_ =
PutRecordBatch' :: Text -> NonEmpty Record -> PutRecordBatch
PutRecordBatch'
{ $sel:deliveryStreamName:PutRecordBatch' :: Text
deliveryStreamName =
Text
pDeliveryStreamName_,
$sel:records:PutRecordBatch' :: NonEmpty Record
records = Tagged (NonEmpty Record) (Identity (NonEmpty Record))
-> Tagged (NonEmpty Record) (Identity (NonEmpty Record))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Record) (Identity (NonEmpty Record))
-> Tagged (NonEmpty Record) (Identity (NonEmpty Record)))
-> NonEmpty Record -> NonEmpty Record
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Record
pRecords_
}
putRecordBatch_deliveryStreamName :: Lens.Lens' PutRecordBatch Prelude.Text
putRecordBatch_deliveryStreamName :: (Text -> f Text) -> PutRecordBatch -> f PutRecordBatch
putRecordBatch_deliveryStreamName = (PutRecordBatch -> Text)
-> (PutRecordBatch -> Text -> PutRecordBatch)
-> Lens PutRecordBatch PutRecordBatch Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRecordBatch' {Text
deliveryStreamName :: Text
$sel:deliveryStreamName:PutRecordBatch' :: PutRecordBatch -> Text
deliveryStreamName} -> Text
deliveryStreamName) (\s :: PutRecordBatch
s@PutRecordBatch' {} Text
a -> PutRecordBatch
s {$sel:deliveryStreamName:PutRecordBatch' :: Text
deliveryStreamName = Text
a} :: PutRecordBatch)
putRecordBatch_records :: Lens.Lens' PutRecordBatch (Prelude.NonEmpty Record)
putRecordBatch_records :: (NonEmpty Record -> f (NonEmpty Record))
-> PutRecordBatch -> f PutRecordBatch
putRecordBatch_records = (PutRecordBatch -> NonEmpty Record)
-> (PutRecordBatch -> NonEmpty Record -> PutRecordBatch)
-> Lens
PutRecordBatch PutRecordBatch (NonEmpty Record) (NonEmpty Record)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRecordBatch' {NonEmpty Record
records :: NonEmpty Record
$sel:records:PutRecordBatch' :: PutRecordBatch -> NonEmpty Record
records} -> NonEmpty Record
records) (\s :: PutRecordBatch
s@PutRecordBatch' {} NonEmpty Record
a -> PutRecordBatch
s {$sel:records:PutRecordBatch' :: NonEmpty Record
records = NonEmpty Record
a} :: PutRecordBatch) ((NonEmpty Record -> f (NonEmpty Record))
-> PutRecordBatch -> f PutRecordBatch)
-> ((NonEmpty Record -> f (NonEmpty Record))
-> NonEmpty Record -> f (NonEmpty Record))
-> (NonEmpty Record -> f (NonEmpty Record))
-> PutRecordBatch
-> f PutRecordBatch
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Record -> f (NonEmpty Record))
-> NonEmpty Record -> f (NonEmpty Record)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest PutRecordBatch where
type
AWSResponse PutRecordBatch =
PutRecordBatchResponse
request :: PutRecordBatch -> Request PutRecordBatch
request = Service -> PutRecordBatch -> Request PutRecordBatch
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PutRecordBatch
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutRecordBatch)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse PutRecordBatch))
-> Logger
-> Service
-> Proxy PutRecordBatch
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutRecordBatch)))
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 Bool
-> Int
-> Natural
-> NonEmpty PutRecordBatchResponseEntry
-> PutRecordBatchResponse
PutRecordBatchResponse'
(Maybe Bool
-> Int
-> Natural
-> NonEmpty PutRecordBatchResponseEntry
-> PutRecordBatchResponse)
-> Either String (Maybe Bool)
-> Either
String
(Int
-> Natural
-> NonEmpty PutRecordBatchResponseEntry
-> PutRecordBatchResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Encrypted")
Either
String
(Int
-> Natural
-> NonEmpty PutRecordBatchResponseEntry
-> PutRecordBatchResponse)
-> Either String Int
-> Either
String
(Natural
-> NonEmpty PutRecordBatchResponseEntry -> PutRecordBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either
String
(Natural
-> NonEmpty PutRecordBatchResponseEntry -> PutRecordBatchResponse)
-> Either String Natural
-> Either
String
(NonEmpty PutRecordBatchResponseEntry -> PutRecordBatchResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Natural
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"FailedPutCount")
Either
String
(NonEmpty PutRecordBatchResponseEntry -> PutRecordBatchResponse)
-> Either String (NonEmpty PutRecordBatchResponseEntry)
-> Either String PutRecordBatchResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (NonEmpty PutRecordBatchResponseEntry)
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"RequestResponses")
)
instance Prelude.Hashable PutRecordBatch
instance Prelude.NFData PutRecordBatch
instance Core.ToHeaders PutRecordBatch where
toHeaders :: PutRecordBatch -> ResponseHeaders
toHeaders =
ResponseHeaders -> PutRecordBatch -> 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
"Firehose_20150804.PutRecordBatch" ::
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 PutRecordBatch where
toJSON :: PutRecordBatch -> Value
toJSON PutRecordBatch' {NonEmpty Record
Text
records :: NonEmpty Record
deliveryStreamName :: Text
$sel:records:PutRecordBatch' :: PutRecordBatch -> NonEmpty Record
$sel:deliveryStreamName:PutRecordBatch' :: PutRecordBatch -> 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
"DeliveryStreamName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
deliveryStreamName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Records" Text -> NonEmpty Record -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Record
records)
]
)
instance Core.ToPath PutRecordBatch where
toPath :: PutRecordBatch -> ByteString
toPath = ByteString -> PutRecordBatch -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery PutRecordBatch where
toQuery :: PutRecordBatch -> QueryString
toQuery = QueryString -> PutRecordBatch -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data PutRecordBatchResponse = PutRecordBatchResponse'
{
PutRecordBatchResponse -> Maybe Bool
encrypted :: Prelude.Maybe Prelude.Bool,
PutRecordBatchResponse -> Int
httpStatus :: Prelude.Int,
PutRecordBatchResponse -> Natural
failedPutCount :: Prelude.Natural,
PutRecordBatchResponse -> NonEmpty PutRecordBatchResponseEntry
requestResponses :: Prelude.NonEmpty PutRecordBatchResponseEntry
}
deriving (PutRecordBatchResponse -> PutRecordBatchResponse -> Bool
(PutRecordBatchResponse -> PutRecordBatchResponse -> Bool)
-> (PutRecordBatchResponse -> PutRecordBatchResponse -> Bool)
-> Eq PutRecordBatchResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutRecordBatchResponse -> PutRecordBatchResponse -> Bool
$c/= :: PutRecordBatchResponse -> PutRecordBatchResponse -> Bool
== :: PutRecordBatchResponse -> PutRecordBatchResponse -> Bool
$c== :: PutRecordBatchResponse -> PutRecordBatchResponse -> Bool
Prelude.Eq, ReadPrec [PutRecordBatchResponse]
ReadPrec PutRecordBatchResponse
Int -> ReadS PutRecordBatchResponse
ReadS [PutRecordBatchResponse]
(Int -> ReadS PutRecordBatchResponse)
-> ReadS [PutRecordBatchResponse]
-> ReadPrec PutRecordBatchResponse
-> ReadPrec [PutRecordBatchResponse]
-> Read PutRecordBatchResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutRecordBatchResponse]
$creadListPrec :: ReadPrec [PutRecordBatchResponse]
readPrec :: ReadPrec PutRecordBatchResponse
$creadPrec :: ReadPrec PutRecordBatchResponse
readList :: ReadS [PutRecordBatchResponse]
$creadList :: ReadS [PutRecordBatchResponse]
readsPrec :: Int -> ReadS PutRecordBatchResponse
$creadsPrec :: Int -> ReadS PutRecordBatchResponse
Prelude.Read, Int -> PutRecordBatchResponse -> ShowS
[PutRecordBatchResponse] -> ShowS
PutRecordBatchResponse -> String
(Int -> PutRecordBatchResponse -> ShowS)
-> (PutRecordBatchResponse -> String)
-> ([PutRecordBatchResponse] -> ShowS)
-> Show PutRecordBatchResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutRecordBatchResponse] -> ShowS
$cshowList :: [PutRecordBatchResponse] -> ShowS
show :: PutRecordBatchResponse -> String
$cshow :: PutRecordBatchResponse -> String
showsPrec :: Int -> PutRecordBatchResponse -> ShowS
$cshowsPrec :: Int -> PutRecordBatchResponse -> ShowS
Prelude.Show, (forall x. PutRecordBatchResponse -> Rep PutRecordBatchResponse x)
-> (forall x.
Rep PutRecordBatchResponse x -> PutRecordBatchResponse)
-> Generic PutRecordBatchResponse
forall x. Rep PutRecordBatchResponse x -> PutRecordBatchResponse
forall x. PutRecordBatchResponse -> Rep PutRecordBatchResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutRecordBatchResponse x -> PutRecordBatchResponse
$cfrom :: forall x. PutRecordBatchResponse -> Rep PutRecordBatchResponse x
Prelude.Generic)
newPutRecordBatchResponse ::
Prelude.Int ->
Prelude.Natural ->
Prelude.NonEmpty PutRecordBatchResponseEntry ->
PutRecordBatchResponse
newPutRecordBatchResponse :: Int
-> Natural
-> NonEmpty PutRecordBatchResponseEntry
-> PutRecordBatchResponse
newPutRecordBatchResponse
Int
pHttpStatus_
Natural
pFailedPutCount_
NonEmpty PutRecordBatchResponseEntry
pRequestResponses_ =
PutRecordBatchResponse' :: Maybe Bool
-> Int
-> Natural
-> NonEmpty PutRecordBatchResponseEntry
-> PutRecordBatchResponse
PutRecordBatchResponse'
{ $sel:encrypted:PutRecordBatchResponse' :: Maybe Bool
encrypted =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PutRecordBatchResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:failedPutCount:PutRecordBatchResponse' :: Natural
failedPutCount = Natural
pFailedPutCount_,
$sel:requestResponses:PutRecordBatchResponse' :: NonEmpty PutRecordBatchResponseEntry
requestResponses =
Tagged
(NonEmpty PutRecordBatchResponseEntry)
(Identity (NonEmpty PutRecordBatchResponseEntry))
-> Tagged
(NonEmpty PutRecordBatchResponseEntry)
(Identity (NonEmpty PutRecordBatchResponseEntry))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged
(NonEmpty PutRecordBatchResponseEntry)
(Identity (NonEmpty PutRecordBatchResponseEntry))
-> Tagged
(NonEmpty PutRecordBatchResponseEntry)
(Identity (NonEmpty PutRecordBatchResponseEntry)))
-> NonEmpty PutRecordBatchResponseEntry
-> NonEmpty PutRecordBatchResponseEntry
forall t b. AReview t b -> b -> t
Lens.# NonEmpty PutRecordBatchResponseEntry
pRequestResponses_
}
putRecordBatchResponse_encrypted :: Lens.Lens' PutRecordBatchResponse (Prelude.Maybe Prelude.Bool)
putRecordBatchResponse_encrypted :: (Maybe Bool -> f (Maybe Bool))
-> PutRecordBatchResponse -> f PutRecordBatchResponse
putRecordBatchResponse_encrypted = (PutRecordBatchResponse -> Maybe Bool)
-> (PutRecordBatchResponse -> Maybe Bool -> PutRecordBatchResponse)
-> Lens
PutRecordBatchResponse
PutRecordBatchResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRecordBatchResponse' {Maybe Bool
encrypted :: Maybe Bool
$sel:encrypted:PutRecordBatchResponse' :: PutRecordBatchResponse -> Maybe Bool
encrypted} -> Maybe Bool
encrypted) (\s :: PutRecordBatchResponse
s@PutRecordBatchResponse' {} Maybe Bool
a -> PutRecordBatchResponse
s {$sel:encrypted:PutRecordBatchResponse' :: Maybe Bool
encrypted = Maybe Bool
a} :: PutRecordBatchResponse)
putRecordBatchResponse_httpStatus :: Lens.Lens' PutRecordBatchResponse Prelude.Int
putRecordBatchResponse_httpStatus :: (Int -> f Int)
-> PutRecordBatchResponse -> f PutRecordBatchResponse
putRecordBatchResponse_httpStatus = (PutRecordBatchResponse -> Int)
-> (PutRecordBatchResponse -> Int -> PutRecordBatchResponse)
-> Lens PutRecordBatchResponse PutRecordBatchResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRecordBatchResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutRecordBatchResponse' :: PutRecordBatchResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutRecordBatchResponse
s@PutRecordBatchResponse' {} Int
a -> PutRecordBatchResponse
s {$sel:httpStatus:PutRecordBatchResponse' :: Int
httpStatus = Int
a} :: PutRecordBatchResponse)
putRecordBatchResponse_failedPutCount :: Lens.Lens' PutRecordBatchResponse Prelude.Natural
putRecordBatchResponse_failedPutCount :: (Natural -> f Natural)
-> PutRecordBatchResponse -> f PutRecordBatchResponse
putRecordBatchResponse_failedPutCount = (PutRecordBatchResponse -> Natural)
-> (PutRecordBatchResponse -> Natural -> PutRecordBatchResponse)
-> Lens
PutRecordBatchResponse PutRecordBatchResponse Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRecordBatchResponse' {Natural
failedPutCount :: Natural
$sel:failedPutCount:PutRecordBatchResponse' :: PutRecordBatchResponse -> Natural
failedPutCount} -> Natural
failedPutCount) (\s :: PutRecordBatchResponse
s@PutRecordBatchResponse' {} Natural
a -> PutRecordBatchResponse
s {$sel:failedPutCount:PutRecordBatchResponse' :: Natural
failedPutCount = Natural
a} :: PutRecordBatchResponse)
putRecordBatchResponse_requestResponses :: Lens.Lens' PutRecordBatchResponse (Prelude.NonEmpty PutRecordBatchResponseEntry)
putRecordBatchResponse_requestResponses :: (NonEmpty PutRecordBatchResponseEntry
-> f (NonEmpty PutRecordBatchResponseEntry))
-> PutRecordBatchResponse -> f PutRecordBatchResponse
putRecordBatchResponse_requestResponses = (PutRecordBatchResponse -> NonEmpty PutRecordBatchResponseEntry)
-> (PutRecordBatchResponse
-> NonEmpty PutRecordBatchResponseEntry -> PutRecordBatchResponse)
-> Lens
PutRecordBatchResponse
PutRecordBatchResponse
(NonEmpty PutRecordBatchResponseEntry)
(NonEmpty PutRecordBatchResponseEntry)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutRecordBatchResponse' {NonEmpty PutRecordBatchResponseEntry
requestResponses :: NonEmpty PutRecordBatchResponseEntry
$sel:requestResponses:PutRecordBatchResponse' :: PutRecordBatchResponse -> NonEmpty PutRecordBatchResponseEntry
requestResponses} -> NonEmpty PutRecordBatchResponseEntry
requestResponses) (\s :: PutRecordBatchResponse
s@PutRecordBatchResponse' {} NonEmpty PutRecordBatchResponseEntry
a -> PutRecordBatchResponse
s {$sel:requestResponses:PutRecordBatchResponse' :: NonEmpty PutRecordBatchResponseEntry
requestResponses = NonEmpty PutRecordBatchResponseEntry
a} :: PutRecordBatchResponse) ((NonEmpty PutRecordBatchResponseEntry
-> f (NonEmpty PutRecordBatchResponseEntry))
-> PutRecordBatchResponse -> f PutRecordBatchResponse)
-> ((NonEmpty PutRecordBatchResponseEntry
-> f (NonEmpty PutRecordBatchResponseEntry))
-> NonEmpty PutRecordBatchResponseEntry
-> f (NonEmpty PutRecordBatchResponseEntry))
-> (NonEmpty PutRecordBatchResponseEntry
-> f (NonEmpty PutRecordBatchResponseEntry))
-> PutRecordBatchResponse
-> f PutRecordBatchResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty PutRecordBatchResponseEntry
-> f (NonEmpty PutRecordBatchResponseEntry))
-> NonEmpty PutRecordBatchResponseEntry
-> f (NonEmpty PutRecordBatchResponseEntry)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData PutRecordBatchResponse