{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.QLDB.ListJournalS3Exports
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns an array of journal export job descriptions for all ledgers that
-- are associated with the current account and Region.
--
-- This action returns a maximum of @MaxResults@ items, and is paginated so
-- that you can retrieve all the items by calling @ListJournalS3Exports@
-- multiple times.
--
-- This action does not return any expired export jobs. For more
-- information, see
-- <https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.request.html#export-journal.request.expiration Export job expiration>
-- in the /Amazon QLDB Developer Guide/.
module Amazonka.QLDB.ListJournalS3Exports
  ( -- * Creating a Request
    ListJournalS3Exports (..),
    newListJournalS3Exports,

    -- * Request Lenses
    listJournalS3Exports_nextToken,
    listJournalS3Exports_maxResults,

    -- * Destructuring the Response
    ListJournalS3ExportsResponse (..),
    newListJournalS3ExportsResponse,

    -- * Response Lenses
    listJournalS3ExportsResponse_journalS3Exports,
    listJournalS3ExportsResponse_nextToken,
    listJournalS3ExportsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QLDB.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListJournalS3Exports' smart constructor.
data ListJournalS3Exports = ListJournalS3Exports'
  { -- | A pagination token, indicating that you want to retrieve the next page
    -- of results. If you received a value for @NextToken@ in the response from
    -- a previous @ListJournalS3Exports@ call, then you should use that value
    -- as input here.
    ListJournalS3Exports -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return in a single
    -- @ListJournalS3Exports@ request. (The actual number of results returned
    -- might be fewer.)
    ListJournalS3Exports -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListJournalS3Exports -> ListJournalS3Exports -> Bool
(ListJournalS3Exports -> ListJournalS3Exports -> Bool)
-> (ListJournalS3Exports -> ListJournalS3Exports -> Bool)
-> Eq ListJournalS3Exports
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListJournalS3Exports -> ListJournalS3Exports -> Bool
$c/= :: ListJournalS3Exports -> ListJournalS3Exports -> Bool
== :: ListJournalS3Exports -> ListJournalS3Exports -> Bool
$c== :: ListJournalS3Exports -> ListJournalS3Exports -> Bool
Prelude.Eq, ReadPrec [ListJournalS3Exports]
ReadPrec ListJournalS3Exports
Int -> ReadS ListJournalS3Exports
ReadS [ListJournalS3Exports]
(Int -> ReadS ListJournalS3Exports)
-> ReadS [ListJournalS3Exports]
-> ReadPrec ListJournalS3Exports
-> ReadPrec [ListJournalS3Exports]
-> Read ListJournalS3Exports
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListJournalS3Exports]
$creadListPrec :: ReadPrec [ListJournalS3Exports]
readPrec :: ReadPrec ListJournalS3Exports
$creadPrec :: ReadPrec ListJournalS3Exports
readList :: ReadS [ListJournalS3Exports]
$creadList :: ReadS [ListJournalS3Exports]
readsPrec :: Int -> ReadS ListJournalS3Exports
$creadsPrec :: Int -> ReadS ListJournalS3Exports
Prelude.Read, Int -> ListJournalS3Exports -> ShowS
[ListJournalS3Exports] -> ShowS
ListJournalS3Exports -> String
(Int -> ListJournalS3Exports -> ShowS)
-> (ListJournalS3Exports -> String)
-> ([ListJournalS3Exports] -> ShowS)
-> Show ListJournalS3Exports
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListJournalS3Exports] -> ShowS
$cshowList :: [ListJournalS3Exports] -> ShowS
show :: ListJournalS3Exports -> String
$cshow :: ListJournalS3Exports -> String
showsPrec :: Int -> ListJournalS3Exports -> ShowS
$cshowsPrec :: Int -> ListJournalS3Exports -> ShowS
Prelude.Show, (forall x. ListJournalS3Exports -> Rep ListJournalS3Exports x)
-> (forall x. Rep ListJournalS3Exports x -> ListJournalS3Exports)
-> Generic ListJournalS3Exports
forall x. Rep ListJournalS3Exports x -> ListJournalS3Exports
forall x. ListJournalS3Exports -> Rep ListJournalS3Exports x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListJournalS3Exports x -> ListJournalS3Exports
$cfrom :: forall x. ListJournalS3Exports -> Rep ListJournalS3Exports x
Prelude.Generic)

-- |
-- Create a value of 'ListJournalS3Exports' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listJournalS3Exports_nextToken' - A pagination token, indicating that you want to retrieve the next page
-- of results. If you received a value for @NextToken@ in the response from
-- a previous @ListJournalS3Exports@ call, then you should use that value
-- as input here.
--
-- 'maxResults', 'listJournalS3Exports_maxResults' - The maximum number of results to return in a single
-- @ListJournalS3Exports@ request. (The actual number of results returned
-- might be fewer.)
newListJournalS3Exports ::
  ListJournalS3Exports
newListJournalS3Exports :: ListJournalS3Exports
newListJournalS3Exports =
  ListJournalS3Exports' :: Maybe Text -> Maybe Natural -> ListJournalS3Exports
ListJournalS3Exports'
    { $sel:nextToken:ListJournalS3Exports' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListJournalS3Exports' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | A pagination token, indicating that you want to retrieve the next page
-- of results. If you received a value for @NextToken@ in the response from
-- a previous @ListJournalS3Exports@ call, then you should use that value
-- as input here.
listJournalS3Exports_nextToken :: Lens.Lens' ListJournalS3Exports (Prelude.Maybe Prelude.Text)
listJournalS3Exports_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListJournalS3Exports -> f ListJournalS3Exports
listJournalS3Exports_nextToken = (ListJournalS3Exports -> Maybe Text)
-> (ListJournalS3Exports -> Maybe Text -> ListJournalS3Exports)
-> Lens
     ListJournalS3Exports ListJournalS3Exports (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJournalS3Exports' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListJournalS3Exports' :: ListJournalS3Exports -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListJournalS3Exports
s@ListJournalS3Exports' {} Maybe Text
a -> ListJournalS3Exports
s {$sel:nextToken:ListJournalS3Exports' :: Maybe Text
nextToken = Maybe Text
a} :: ListJournalS3Exports)

-- | The maximum number of results to return in a single
-- @ListJournalS3Exports@ request. (The actual number of results returned
-- might be fewer.)
listJournalS3Exports_maxResults :: Lens.Lens' ListJournalS3Exports (Prelude.Maybe Prelude.Natural)
listJournalS3Exports_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListJournalS3Exports -> f ListJournalS3Exports
listJournalS3Exports_maxResults = (ListJournalS3Exports -> Maybe Natural)
-> (ListJournalS3Exports -> Maybe Natural -> ListJournalS3Exports)
-> Lens
     ListJournalS3Exports
     ListJournalS3Exports
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJournalS3Exports' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListJournalS3Exports' :: ListJournalS3Exports -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListJournalS3Exports
s@ListJournalS3Exports' {} Maybe Natural
a -> ListJournalS3Exports
s {$sel:maxResults:ListJournalS3Exports' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListJournalS3Exports)

instance Core.AWSRequest ListJournalS3Exports where
  type
    AWSResponse ListJournalS3Exports =
      ListJournalS3ExportsResponse
  request :: ListJournalS3Exports -> Request ListJournalS3Exports
request = Service -> ListJournalS3Exports -> Request ListJournalS3Exports
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListJournalS3Exports
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListJournalS3Exports)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListJournalS3Exports))
-> Logger
-> Service
-> Proxy ListJournalS3Exports
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListJournalS3Exports)))
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 [JournalS3ExportDescription]
-> Maybe Text -> Int -> ListJournalS3ExportsResponse
ListJournalS3ExportsResponse'
            (Maybe [JournalS3ExportDescription]
 -> Maybe Text -> Int -> ListJournalS3ExportsResponse)
-> Either String (Maybe [JournalS3ExportDescription])
-> Either
     String (Maybe Text -> Int -> ListJournalS3ExportsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [JournalS3ExportDescription]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"JournalS3Exports"
                            Either String (Maybe (Maybe [JournalS3ExportDescription]))
-> Maybe [JournalS3ExportDescription]
-> Either String (Maybe [JournalS3ExportDescription])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [JournalS3ExportDescription]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> ListJournalS3ExportsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListJournalS3ExportsResponse)
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 (Int -> ListJournalS3ExportsResponse)
-> Either String Int -> Either String ListJournalS3ExportsResponse
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 ListJournalS3Exports

instance Prelude.NFData ListJournalS3Exports

instance Core.ToHeaders ListJournalS3Exports where
  toHeaders :: ListJournalS3Exports -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListJournalS3Exports -> 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 ListJournalS3Exports where
  toPath :: ListJournalS3Exports -> ByteString
toPath = ByteString -> ListJournalS3Exports -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/journal-s3-exports"

instance Core.ToQuery ListJournalS3Exports where
  toQuery :: ListJournalS3Exports -> QueryString
toQuery ListJournalS3Exports' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListJournalS3Exports' :: ListJournalS3Exports -> Maybe Natural
$sel:nextToken:ListJournalS3Exports' :: ListJournalS3Exports -> 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
      ]

-- | /See:/ 'newListJournalS3ExportsResponse' smart constructor.
data ListJournalS3ExportsResponse = ListJournalS3ExportsResponse'
  { -- | The array of journal export job descriptions for all ledgers that are
    -- associated with the current account and Region.
    ListJournalS3ExportsResponse -> Maybe [JournalS3ExportDescription]
journalS3Exports :: Prelude.Maybe [JournalS3ExportDescription],
    -- | -   If @NextToken@ is empty, then the last page of results has been
    --     processed and there are no more results to be retrieved.
    --
    -- -   If @NextToken@ is /not/ empty, then there are more results
    --     available. To retrieve the next page of results, use the value of
    --     @NextToken@ in a subsequent @ListJournalS3Exports@ call.
    ListJournalS3ExportsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListJournalS3ExportsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListJournalS3ExportsResponse
-> ListJournalS3ExportsResponse -> Bool
(ListJournalS3ExportsResponse
 -> ListJournalS3ExportsResponse -> Bool)
-> (ListJournalS3ExportsResponse
    -> ListJournalS3ExportsResponse -> Bool)
-> Eq ListJournalS3ExportsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListJournalS3ExportsResponse
-> ListJournalS3ExportsResponse -> Bool
$c/= :: ListJournalS3ExportsResponse
-> ListJournalS3ExportsResponse -> Bool
== :: ListJournalS3ExportsResponse
-> ListJournalS3ExportsResponse -> Bool
$c== :: ListJournalS3ExportsResponse
-> ListJournalS3ExportsResponse -> Bool
Prelude.Eq, ReadPrec [ListJournalS3ExportsResponse]
ReadPrec ListJournalS3ExportsResponse
Int -> ReadS ListJournalS3ExportsResponse
ReadS [ListJournalS3ExportsResponse]
(Int -> ReadS ListJournalS3ExportsResponse)
-> ReadS [ListJournalS3ExportsResponse]
-> ReadPrec ListJournalS3ExportsResponse
-> ReadPrec [ListJournalS3ExportsResponse]
-> Read ListJournalS3ExportsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListJournalS3ExportsResponse]
$creadListPrec :: ReadPrec [ListJournalS3ExportsResponse]
readPrec :: ReadPrec ListJournalS3ExportsResponse
$creadPrec :: ReadPrec ListJournalS3ExportsResponse
readList :: ReadS [ListJournalS3ExportsResponse]
$creadList :: ReadS [ListJournalS3ExportsResponse]
readsPrec :: Int -> ReadS ListJournalS3ExportsResponse
$creadsPrec :: Int -> ReadS ListJournalS3ExportsResponse
Prelude.Read, Int -> ListJournalS3ExportsResponse -> ShowS
[ListJournalS3ExportsResponse] -> ShowS
ListJournalS3ExportsResponse -> String
(Int -> ListJournalS3ExportsResponse -> ShowS)
-> (ListJournalS3ExportsResponse -> String)
-> ([ListJournalS3ExportsResponse] -> ShowS)
-> Show ListJournalS3ExportsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListJournalS3ExportsResponse] -> ShowS
$cshowList :: [ListJournalS3ExportsResponse] -> ShowS
show :: ListJournalS3ExportsResponse -> String
$cshow :: ListJournalS3ExportsResponse -> String
showsPrec :: Int -> ListJournalS3ExportsResponse -> ShowS
$cshowsPrec :: Int -> ListJournalS3ExportsResponse -> ShowS
Prelude.Show, (forall x.
 ListJournalS3ExportsResponse -> Rep ListJournalS3ExportsResponse x)
-> (forall x.
    Rep ListJournalS3ExportsResponse x -> ListJournalS3ExportsResponse)
-> Generic ListJournalS3ExportsResponse
forall x.
Rep ListJournalS3ExportsResponse x -> ListJournalS3ExportsResponse
forall x.
ListJournalS3ExportsResponse -> Rep ListJournalS3ExportsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListJournalS3ExportsResponse x -> ListJournalS3ExportsResponse
$cfrom :: forall x.
ListJournalS3ExportsResponse -> Rep ListJournalS3ExportsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListJournalS3ExportsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'journalS3Exports', 'listJournalS3ExportsResponse_journalS3Exports' - The array of journal export job descriptions for all ledgers that are
-- associated with the current account and Region.
--
-- 'nextToken', 'listJournalS3ExportsResponse_nextToken' - -   If @NextToken@ is empty, then the last page of results has been
--     processed and there are no more results to be retrieved.
--
-- -   If @NextToken@ is /not/ empty, then there are more results
--     available. To retrieve the next page of results, use the value of
--     @NextToken@ in a subsequent @ListJournalS3Exports@ call.
--
-- 'httpStatus', 'listJournalS3ExportsResponse_httpStatus' - The response's http status code.
newListJournalS3ExportsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListJournalS3ExportsResponse
newListJournalS3ExportsResponse :: Int -> ListJournalS3ExportsResponse
newListJournalS3ExportsResponse Int
pHttpStatus_ =
  ListJournalS3ExportsResponse' :: Maybe [JournalS3ExportDescription]
-> Maybe Text -> Int -> ListJournalS3ExportsResponse
ListJournalS3ExportsResponse'
    { $sel:journalS3Exports:ListJournalS3ExportsResponse' :: Maybe [JournalS3ExportDescription]
journalS3Exports =
        Maybe [JournalS3ExportDescription]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListJournalS3ExportsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListJournalS3ExportsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The array of journal export job descriptions for all ledgers that are
-- associated with the current account and Region.
listJournalS3ExportsResponse_journalS3Exports :: Lens.Lens' ListJournalS3ExportsResponse (Prelude.Maybe [JournalS3ExportDescription])
listJournalS3ExportsResponse_journalS3Exports :: (Maybe [JournalS3ExportDescription]
 -> f (Maybe [JournalS3ExportDescription]))
-> ListJournalS3ExportsResponse -> f ListJournalS3ExportsResponse
listJournalS3ExportsResponse_journalS3Exports = (ListJournalS3ExportsResponse
 -> Maybe [JournalS3ExportDescription])
-> (ListJournalS3ExportsResponse
    -> Maybe [JournalS3ExportDescription]
    -> ListJournalS3ExportsResponse)
-> Lens
     ListJournalS3ExportsResponse
     ListJournalS3ExportsResponse
     (Maybe [JournalS3ExportDescription])
     (Maybe [JournalS3ExportDescription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJournalS3ExportsResponse' {Maybe [JournalS3ExportDescription]
journalS3Exports :: Maybe [JournalS3ExportDescription]
$sel:journalS3Exports:ListJournalS3ExportsResponse' :: ListJournalS3ExportsResponse -> Maybe [JournalS3ExportDescription]
journalS3Exports} -> Maybe [JournalS3ExportDescription]
journalS3Exports) (\s :: ListJournalS3ExportsResponse
s@ListJournalS3ExportsResponse' {} Maybe [JournalS3ExportDescription]
a -> ListJournalS3ExportsResponse
s {$sel:journalS3Exports:ListJournalS3ExportsResponse' :: Maybe [JournalS3ExportDescription]
journalS3Exports = Maybe [JournalS3ExportDescription]
a} :: ListJournalS3ExportsResponse) ((Maybe [JournalS3ExportDescription]
  -> f (Maybe [JournalS3ExportDescription]))
 -> ListJournalS3ExportsResponse -> f ListJournalS3ExportsResponse)
-> ((Maybe [JournalS3ExportDescription]
     -> f (Maybe [JournalS3ExportDescription]))
    -> Maybe [JournalS3ExportDescription]
    -> f (Maybe [JournalS3ExportDescription]))
-> (Maybe [JournalS3ExportDescription]
    -> f (Maybe [JournalS3ExportDescription]))
-> ListJournalS3ExportsResponse
-> f ListJournalS3ExportsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [JournalS3ExportDescription]
  [JournalS3ExportDescription]
  [JournalS3ExportDescription]
  [JournalS3ExportDescription]
-> Iso
     (Maybe [JournalS3ExportDescription])
     (Maybe [JournalS3ExportDescription])
     (Maybe [JournalS3ExportDescription])
     (Maybe [JournalS3ExportDescription])
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
  [JournalS3ExportDescription]
  [JournalS3ExportDescription]
  [JournalS3ExportDescription]
  [JournalS3ExportDescription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | -   If @NextToken@ is empty, then the last page of results has been
--     processed and there are no more results to be retrieved.
--
-- -   If @NextToken@ is /not/ empty, then there are more results
--     available. To retrieve the next page of results, use the value of
--     @NextToken@ in a subsequent @ListJournalS3Exports@ call.
listJournalS3ExportsResponse_nextToken :: Lens.Lens' ListJournalS3ExportsResponse (Prelude.Maybe Prelude.Text)
listJournalS3ExportsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListJournalS3ExportsResponse -> f ListJournalS3ExportsResponse
listJournalS3ExportsResponse_nextToken = (ListJournalS3ExportsResponse -> Maybe Text)
-> (ListJournalS3ExportsResponse
    -> Maybe Text -> ListJournalS3ExportsResponse)
-> Lens
     ListJournalS3ExportsResponse
     ListJournalS3ExportsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJournalS3ExportsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListJournalS3ExportsResponse' :: ListJournalS3ExportsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListJournalS3ExportsResponse
s@ListJournalS3ExportsResponse' {} Maybe Text
a -> ListJournalS3ExportsResponse
s {$sel:nextToken:ListJournalS3ExportsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListJournalS3ExportsResponse)

-- | The response's http status code.
listJournalS3ExportsResponse_httpStatus :: Lens.Lens' ListJournalS3ExportsResponse Prelude.Int
listJournalS3ExportsResponse_httpStatus :: (Int -> f Int)
-> ListJournalS3ExportsResponse -> f ListJournalS3ExportsResponse
listJournalS3ExportsResponse_httpStatus = (ListJournalS3ExportsResponse -> Int)
-> (ListJournalS3ExportsResponse
    -> Int -> ListJournalS3ExportsResponse)
-> Lens
     ListJournalS3ExportsResponse ListJournalS3ExportsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListJournalS3ExportsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListJournalS3ExportsResponse' :: ListJournalS3ExportsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListJournalS3ExportsResponse
s@ListJournalS3ExportsResponse' {} Int
a -> ListJournalS3ExportsResponse
s {$sel:httpStatus:ListJournalS3ExportsResponse' :: Int
httpStatus = Int
a} :: ListJournalS3ExportsResponse)

instance Prelude.NFData ListJournalS3ExportsResponse