{-# 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.QuickSight.ListIngestions
(
ListIngestions (..),
newListIngestions,
listIngestions_nextToken,
listIngestions_maxResults,
listIngestions_dataSetId,
listIngestions_awsAccountId,
ListIngestionsResponse (..),
newListIngestionsResponse,
listIngestionsResponse_requestId,
listIngestionsResponse_nextToken,
listIngestionsResponse_ingestions,
listIngestionsResponse_status,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListIngestions = ListIngestions'
{
ListIngestions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListIngestions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListIngestions -> Text
dataSetId :: Prelude.Text,
ListIngestions -> Text
awsAccountId :: Prelude.Text
}
deriving (ListIngestions -> ListIngestions -> Bool
(ListIngestions -> ListIngestions -> Bool)
-> (ListIngestions -> ListIngestions -> Bool) -> Eq ListIngestions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIngestions -> ListIngestions -> Bool
$c/= :: ListIngestions -> ListIngestions -> Bool
== :: ListIngestions -> ListIngestions -> Bool
$c== :: ListIngestions -> ListIngestions -> Bool
Prelude.Eq, ReadPrec [ListIngestions]
ReadPrec ListIngestions
Int -> ReadS ListIngestions
ReadS [ListIngestions]
(Int -> ReadS ListIngestions)
-> ReadS [ListIngestions]
-> ReadPrec ListIngestions
-> ReadPrec [ListIngestions]
-> Read ListIngestions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIngestions]
$creadListPrec :: ReadPrec [ListIngestions]
readPrec :: ReadPrec ListIngestions
$creadPrec :: ReadPrec ListIngestions
readList :: ReadS [ListIngestions]
$creadList :: ReadS [ListIngestions]
readsPrec :: Int -> ReadS ListIngestions
$creadsPrec :: Int -> ReadS ListIngestions
Prelude.Read, Int -> ListIngestions -> ShowS
[ListIngestions] -> ShowS
ListIngestions -> String
(Int -> ListIngestions -> ShowS)
-> (ListIngestions -> String)
-> ([ListIngestions] -> ShowS)
-> Show ListIngestions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIngestions] -> ShowS
$cshowList :: [ListIngestions] -> ShowS
show :: ListIngestions -> String
$cshow :: ListIngestions -> String
showsPrec :: Int -> ListIngestions -> ShowS
$cshowsPrec :: Int -> ListIngestions -> ShowS
Prelude.Show, (forall x. ListIngestions -> Rep ListIngestions x)
-> (forall x. Rep ListIngestions x -> ListIngestions)
-> Generic ListIngestions
forall x. Rep ListIngestions x -> ListIngestions
forall x. ListIngestions -> Rep ListIngestions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListIngestions x -> ListIngestions
$cfrom :: forall x. ListIngestions -> Rep ListIngestions x
Prelude.Generic)
newListIngestions ::
Prelude.Text ->
Prelude.Text ->
ListIngestions
newListIngestions :: Text -> Text -> ListIngestions
newListIngestions Text
pDataSetId_ Text
pAwsAccountId_ =
ListIngestions' :: Maybe Text -> Maybe Natural -> Text -> Text -> ListIngestions
ListIngestions'
{ $sel:nextToken:ListIngestions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListIngestions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:dataSetId:ListIngestions' :: Text
dataSetId = Text
pDataSetId_,
$sel:awsAccountId:ListIngestions' :: Text
awsAccountId = Text
pAwsAccountId_
}
listIngestions_nextToken :: Lens.Lens' ListIngestions (Prelude.Maybe Prelude.Text)
listIngestions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListIngestions -> f ListIngestions
listIngestions_nextToken = (ListIngestions -> Maybe Text)
-> (ListIngestions -> Maybe Text -> ListIngestions)
-> Lens ListIngestions ListIngestions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIngestions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListIngestions' :: ListIngestions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListIngestions
s@ListIngestions' {} Maybe Text
a -> ListIngestions
s {$sel:nextToken:ListIngestions' :: Maybe Text
nextToken = Maybe Text
a} :: ListIngestions)
listIngestions_maxResults :: Lens.Lens' ListIngestions (Prelude.Maybe Prelude.Natural)
listIngestions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListIngestions -> f ListIngestions
listIngestions_maxResults = (ListIngestions -> Maybe Natural)
-> (ListIngestions -> Maybe Natural -> ListIngestions)
-> Lens
ListIngestions ListIngestions (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIngestions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListIngestions' :: ListIngestions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListIngestions
s@ListIngestions' {} Maybe Natural
a -> ListIngestions
s {$sel:maxResults:ListIngestions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListIngestions)
listIngestions_dataSetId :: Lens.Lens' ListIngestions Prelude.Text
listIngestions_dataSetId :: (Text -> f Text) -> ListIngestions -> f ListIngestions
listIngestions_dataSetId = (ListIngestions -> Text)
-> (ListIngestions -> Text -> ListIngestions)
-> Lens ListIngestions ListIngestions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIngestions' {Text
dataSetId :: Text
$sel:dataSetId:ListIngestions' :: ListIngestions -> Text
dataSetId} -> Text
dataSetId) (\s :: ListIngestions
s@ListIngestions' {} Text
a -> ListIngestions
s {$sel:dataSetId:ListIngestions' :: Text
dataSetId = Text
a} :: ListIngestions)
listIngestions_awsAccountId :: Lens.Lens' ListIngestions Prelude.Text
listIngestions_awsAccountId :: (Text -> f Text) -> ListIngestions -> f ListIngestions
listIngestions_awsAccountId = (ListIngestions -> Text)
-> (ListIngestions -> Text -> ListIngestions)
-> Lens ListIngestions ListIngestions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIngestions' {Text
awsAccountId :: Text
$sel:awsAccountId:ListIngestions' :: ListIngestions -> Text
awsAccountId} -> Text
awsAccountId) (\s :: ListIngestions
s@ListIngestions' {} Text
a -> ListIngestions
s {$sel:awsAccountId:ListIngestions' :: Text
awsAccountId = Text
a} :: ListIngestions)
instance Core.AWSPager ListIngestions where
page :: ListIngestions
-> AWSResponse ListIngestions -> Maybe ListIngestions
page ListIngestions
rq AWSResponse ListIngestions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListIngestions
ListIngestionsResponse
rs
ListIngestionsResponse
-> Getting (First Text) ListIngestionsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListIngestionsResponse
-> Const (First Text) ListIngestionsResponse
Lens' ListIngestionsResponse (Maybe Text)
listIngestionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListIngestionsResponse
-> Const (First Text) ListIngestionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListIngestionsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListIngestions
forall a. Maybe a
Prelude.Nothing
| Maybe [Ingestion] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListIngestions
ListIngestionsResponse
rs
ListIngestionsResponse
-> Getting (First [Ingestion]) ListIngestionsResponse [Ingestion]
-> Maybe [Ingestion]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Ingestion]
-> Const (First [Ingestion]) (Maybe [Ingestion]))
-> ListIngestionsResponse
-> Const (First [Ingestion]) ListIngestionsResponse
Lens' ListIngestionsResponse (Maybe [Ingestion])
listIngestionsResponse_ingestions
((Maybe [Ingestion]
-> Const (First [Ingestion]) (Maybe [Ingestion]))
-> ListIngestionsResponse
-> Const (First [Ingestion]) ListIngestionsResponse)
-> (([Ingestion] -> Const (First [Ingestion]) [Ingestion])
-> Maybe [Ingestion]
-> Const (First [Ingestion]) (Maybe [Ingestion]))
-> Getting (First [Ingestion]) ListIngestionsResponse [Ingestion]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Ingestion] -> Const (First [Ingestion]) [Ingestion])
-> Maybe [Ingestion]
-> Const (First [Ingestion]) (Maybe [Ingestion])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListIngestions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListIngestions -> Maybe ListIngestions
forall a. a -> Maybe a
Prelude.Just (ListIngestions -> Maybe ListIngestions)
-> ListIngestions -> Maybe ListIngestions
forall a b. (a -> b) -> a -> b
Prelude.$
ListIngestions
rq
ListIngestions
-> (ListIngestions -> ListIngestions) -> ListIngestions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListIngestions -> Identity ListIngestions
Lens ListIngestions ListIngestions (Maybe Text) (Maybe Text)
listIngestions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListIngestions -> Identity ListIngestions)
-> Maybe Text -> ListIngestions -> ListIngestions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListIngestions
ListIngestionsResponse
rs
ListIngestionsResponse
-> Getting (First Text) ListIngestionsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListIngestionsResponse
-> Const (First Text) ListIngestionsResponse
Lens' ListIngestionsResponse (Maybe Text)
listIngestionsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListIngestionsResponse
-> Const (First Text) ListIngestionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListIngestionsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListIngestions where
type
AWSResponse ListIngestions =
ListIngestionsResponse
request :: ListIngestions -> Request ListIngestions
request = Service -> ListIngestions -> Request ListIngestions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListIngestions
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListIngestions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListIngestions))
-> Logger
-> Service
-> Proxy ListIngestions
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListIngestions)))
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 Text -> Maybe [Ingestion] -> Int -> ListIngestionsResponse
ListIngestionsResponse'
(Maybe Text
-> Maybe Text
-> Maybe [Ingestion]
-> Int
-> ListIngestionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe [Ingestion] -> Int -> ListIngestionsResponse)
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
"RequestId")
Either
String
(Maybe Text -> Maybe [Ingestion] -> Int -> ListIngestionsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Ingestion] -> Int -> ListIngestionsResponse)
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
"NextToken")
Either String (Maybe [Ingestion] -> Int -> ListIngestionsResponse)
-> Either String (Maybe [Ingestion])
-> Either String (Int -> ListIngestionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Ingestion]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Ingestions" Either String (Maybe (Maybe [Ingestion]))
-> Maybe [Ingestion] -> Either String (Maybe [Ingestion])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Ingestion]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListIngestionsResponse)
-> Either String Int -> Either String ListIngestionsResponse
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 ListIngestions
instance Prelude.NFData ListIngestions
instance Core.ToHeaders ListIngestions where
toHeaders :: ListIngestions -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListIngestions -> 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.0" ::
Prelude.ByteString
)
]
)
instance Core.ToPath ListIngestions where
toPath :: ListIngestions -> ByteString
toPath ListIngestions' {Maybe Natural
Maybe Text
Text
awsAccountId :: Text
dataSetId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:awsAccountId:ListIngestions' :: ListIngestions -> Text
$sel:dataSetId:ListIngestions' :: ListIngestions -> Text
$sel:maxResults:ListIngestions' :: ListIngestions -> Maybe Natural
$sel:nextToken:ListIngestions' :: ListIngestions -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/accounts/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
awsAccountId,
ByteString
"/data-sets/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
dataSetId,
ByteString
"/ingestions"
]
instance Core.ToQuery ListIngestions where
toQuery :: ListIngestions -> QueryString
toQuery ListIngestions' {Maybe Natural
Maybe Text
Text
awsAccountId :: Text
dataSetId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:awsAccountId:ListIngestions' :: ListIngestions -> Text
$sel:dataSetId:ListIngestions' :: ListIngestions -> Text
$sel:maxResults:ListIngestions' :: ListIngestions -> Maybe Natural
$sel:nextToken:ListIngestions' :: ListIngestions -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"next-token" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"max-results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListIngestionsResponse = ListIngestionsResponse'
{
ListIngestionsResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
ListIngestionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListIngestionsResponse -> Maybe [Ingestion]
ingestions :: Prelude.Maybe [Ingestion],
ListIngestionsResponse -> Int
status :: Prelude.Int
}
deriving (ListIngestionsResponse -> ListIngestionsResponse -> Bool
(ListIngestionsResponse -> ListIngestionsResponse -> Bool)
-> (ListIngestionsResponse -> ListIngestionsResponse -> Bool)
-> Eq ListIngestionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIngestionsResponse -> ListIngestionsResponse -> Bool
$c/= :: ListIngestionsResponse -> ListIngestionsResponse -> Bool
== :: ListIngestionsResponse -> ListIngestionsResponse -> Bool
$c== :: ListIngestionsResponse -> ListIngestionsResponse -> Bool
Prelude.Eq, ReadPrec [ListIngestionsResponse]
ReadPrec ListIngestionsResponse
Int -> ReadS ListIngestionsResponse
ReadS [ListIngestionsResponse]
(Int -> ReadS ListIngestionsResponse)
-> ReadS [ListIngestionsResponse]
-> ReadPrec ListIngestionsResponse
-> ReadPrec [ListIngestionsResponse]
-> Read ListIngestionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIngestionsResponse]
$creadListPrec :: ReadPrec [ListIngestionsResponse]
readPrec :: ReadPrec ListIngestionsResponse
$creadPrec :: ReadPrec ListIngestionsResponse
readList :: ReadS [ListIngestionsResponse]
$creadList :: ReadS [ListIngestionsResponse]
readsPrec :: Int -> ReadS ListIngestionsResponse
$creadsPrec :: Int -> ReadS ListIngestionsResponse
Prelude.Read, Int -> ListIngestionsResponse -> ShowS
[ListIngestionsResponse] -> ShowS
ListIngestionsResponse -> String
(Int -> ListIngestionsResponse -> ShowS)
-> (ListIngestionsResponse -> String)
-> ([ListIngestionsResponse] -> ShowS)
-> Show ListIngestionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIngestionsResponse] -> ShowS
$cshowList :: [ListIngestionsResponse] -> ShowS
show :: ListIngestionsResponse -> String
$cshow :: ListIngestionsResponse -> String
showsPrec :: Int -> ListIngestionsResponse -> ShowS
$cshowsPrec :: Int -> ListIngestionsResponse -> ShowS
Prelude.Show, (forall x. ListIngestionsResponse -> Rep ListIngestionsResponse x)
-> (forall x.
Rep ListIngestionsResponse x -> ListIngestionsResponse)
-> Generic ListIngestionsResponse
forall x. Rep ListIngestionsResponse x -> ListIngestionsResponse
forall x. ListIngestionsResponse -> Rep ListIngestionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListIngestionsResponse x -> ListIngestionsResponse
$cfrom :: forall x. ListIngestionsResponse -> Rep ListIngestionsResponse x
Prelude.Generic)
newListIngestionsResponse ::
Prelude.Int ->
ListIngestionsResponse
newListIngestionsResponse :: Int -> ListIngestionsResponse
newListIngestionsResponse Int
pStatus_ =
ListIngestionsResponse' :: Maybe Text
-> Maybe Text -> Maybe [Ingestion] -> Int -> ListIngestionsResponse
ListIngestionsResponse'
{ $sel:requestId:ListIngestionsResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListIngestionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ingestions:ListIngestionsResponse' :: Maybe [Ingestion]
ingestions = Maybe [Ingestion]
forall a. Maybe a
Prelude.Nothing,
$sel:status:ListIngestionsResponse' :: Int
status = Int
pStatus_
}
listIngestionsResponse_requestId :: Lens.Lens' ListIngestionsResponse (Prelude.Maybe Prelude.Text)
listIngestionsResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> ListIngestionsResponse -> f ListIngestionsResponse
listIngestionsResponse_requestId = (ListIngestionsResponse -> Maybe Text)
-> (ListIngestionsResponse -> Maybe Text -> ListIngestionsResponse)
-> Lens' ListIngestionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIngestionsResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListIngestionsResponse' :: ListIngestionsResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListIngestionsResponse
s@ListIngestionsResponse' {} Maybe Text
a -> ListIngestionsResponse
s {$sel:requestId:ListIngestionsResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListIngestionsResponse)
listIngestionsResponse_nextToken :: Lens.Lens' ListIngestionsResponse (Prelude.Maybe Prelude.Text)
listIngestionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListIngestionsResponse -> f ListIngestionsResponse
listIngestionsResponse_nextToken = (ListIngestionsResponse -> Maybe Text)
-> (ListIngestionsResponse -> Maybe Text -> ListIngestionsResponse)
-> Lens' ListIngestionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIngestionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListIngestionsResponse' :: ListIngestionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListIngestionsResponse
s@ListIngestionsResponse' {} Maybe Text
a -> ListIngestionsResponse
s {$sel:nextToken:ListIngestionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListIngestionsResponse)
listIngestionsResponse_ingestions :: Lens.Lens' ListIngestionsResponse (Prelude.Maybe [Ingestion])
listIngestionsResponse_ingestions :: (Maybe [Ingestion] -> f (Maybe [Ingestion]))
-> ListIngestionsResponse -> f ListIngestionsResponse
listIngestionsResponse_ingestions = (ListIngestionsResponse -> Maybe [Ingestion])
-> (ListIngestionsResponse
-> Maybe [Ingestion] -> ListIngestionsResponse)
-> Lens' ListIngestionsResponse (Maybe [Ingestion])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIngestionsResponse' {Maybe [Ingestion]
ingestions :: Maybe [Ingestion]
$sel:ingestions:ListIngestionsResponse' :: ListIngestionsResponse -> Maybe [Ingestion]
ingestions} -> Maybe [Ingestion]
ingestions) (\s :: ListIngestionsResponse
s@ListIngestionsResponse' {} Maybe [Ingestion]
a -> ListIngestionsResponse
s {$sel:ingestions:ListIngestionsResponse' :: Maybe [Ingestion]
ingestions = Maybe [Ingestion]
a} :: ListIngestionsResponse) ((Maybe [Ingestion] -> f (Maybe [Ingestion]))
-> ListIngestionsResponse -> f ListIngestionsResponse)
-> ((Maybe [Ingestion] -> f (Maybe [Ingestion]))
-> Maybe [Ingestion] -> f (Maybe [Ingestion]))
-> (Maybe [Ingestion] -> f (Maybe [Ingestion]))
-> ListIngestionsResponse
-> f ListIngestionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Ingestion] [Ingestion] [Ingestion] [Ingestion]
-> Iso
(Maybe [Ingestion])
(Maybe [Ingestion])
(Maybe [Ingestion])
(Maybe [Ingestion])
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 [Ingestion] [Ingestion] [Ingestion] [Ingestion]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listIngestionsResponse_status :: Lens.Lens' ListIngestionsResponse Prelude.Int
listIngestionsResponse_status :: (Int -> f Int)
-> ListIngestionsResponse -> f ListIngestionsResponse
listIngestionsResponse_status = (ListIngestionsResponse -> Int)
-> (ListIngestionsResponse -> Int -> ListIngestionsResponse)
-> Lens ListIngestionsResponse ListIngestionsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIngestionsResponse' {Int
status :: Int
$sel:status:ListIngestionsResponse' :: ListIngestionsResponse -> Int
status} -> Int
status) (\s :: ListIngestionsResponse
s@ListIngestionsResponse' {} Int
a -> ListIngestionsResponse
s {$sel:status:ListIngestionsResponse' :: Int
status = Int
a} :: ListIngestionsResponse)
instance Prelude.NFData ListIngestionsResponse