{-# 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.GroundStation.ListConfigs
-- 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 a list of @Config@ objects.
--
-- This operation returns paginated results.
module Amazonka.GroundStation.ListConfigs
  ( -- * Creating a Request
    ListConfigs (..),
    newListConfigs,

    -- * Request Lenses
    listConfigs_nextToken,
    listConfigs_maxResults,

    -- * Destructuring the Response
    ListConfigsResponse (..),
    newListConfigsResponse,

    -- * Response Lenses
    listConfigsResponse_configList,
    listConfigsResponse_nextToken,
    listConfigsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.GroundStation.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

-- |
--
-- /See:/ 'newListConfigs' smart constructor.
data ListConfigs = ListConfigs'
  { -- | Next token returned in the request of a previous @ListConfigs@ call.
    -- Used to get the next page of results.
    ListConfigs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Maximum number of @Configs@ returned.
    ListConfigs -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
  }
  deriving (ListConfigs -> ListConfigs -> Bool
(ListConfigs -> ListConfigs -> Bool)
-> (ListConfigs -> ListConfigs -> Bool) -> Eq ListConfigs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConfigs -> ListConfigs -> Bool
$c/= :: ListConfigs -> ListConfigs -> Bool
== :: ListConfigs -> ListConfigs -> Bool
$c== :: ListConfigs -> ListConfigs -> Bool
Prelude.Eq, ReadPrec [ListConfigs]
ReadPrec ListConfigs
Int -> ReadS ListConfigs
ReadS [ListConfigs]
(Int -> ReadS ListConfigs)
-> ReadS [ListConfigs]
-> ReadPrec ListConfigs
-> ReadPrec [ListConfigs]
-> Read ListConfigs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConfigs]
$creadListPrec :: ReadPrec [ListConfigs]
readPrec :: ReadPrec ListConfigs
$creadPrec :: ReadPrec ListConfigs
readList :: ReadS [ListConfigs]
$creadList :: ReadS [ListConfigs]
readsPrec :: Int -> ReadS ListConfigs
$creadsPrec :: Int -> ReadS ListConfigs
Prelude.Read, Int -> ListConfigs -> ShowS
[ListConfigs] -> ShowS
ListConfigs -> String
(Int -> ListConfigs -> ShowS)
-> (ListConfigs -> String)
-> ([ListConfigs] -> ShowS)
-> Show ListConfigs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConfigs] -> ShowS
$cshowList :: [ListConfigs] -> ShowS
show :: ListConfigs -> String
$cshow :: ListConfigs -> String
showsPrec :: Int -> ListConfigs -> ShowS
$cshowsPrec :: Int -> ListConfigs -> ShowS
Prelude.Show, (forall x. ListConfigs -> Rep ListConfigs x)
-> (forall x. Rep ListConfigs x -> ListConfigs)
-> Generic ListConfigs
forall x. Rep ListConfigs x -> ListConfigs
forall x. ListConfigs -> Rep ListConfigs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListConfigs x -> ListConfigs
$cfrom :: forall x. ListConfigs -> Rep ListConfigs x
Prelude.Generic)

-- |
-- Create a value of 'ListConfigs' 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', 'listConfigs_nextToken' - Next token returned in the request of a previous @ListConfigs@ call.
-- Used to get the next page of results.
--
-- 'maxResults', 'listConfigs_maxResults' - Maximum number of @Configs@ returned.
newListConfigs ::
  ListConfigs
newListConfigs :: ListConfigs
newListConfigs =
  ListConfigs' :: Maybe Text -> Maybe Int -> ListConfigs
ListConfigs'
    { $sel:nextToken:ListConfigs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListConfigs' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
    }

-- | Next token returned in the request of a previous @ListConfigs@ call.
-- Used to get the next page of results.
listConfigs_nextToken :: Lens.Lens' ListConfigs (Prelude.Maybe Prelude.Text)
listConfigs_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListConfigs -> f ListConfigs
listConfigs_nextToken = (ListConfigs -> Maybe Text)
-> (ListConfigs -> Maybe Text -> ListConfigs)
-> Lens ListConfigs ListConfigs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConfigs' :: ListConfigs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConfigs
s@ListConfigs' {} Maybe Text
a -> ListConfigs
s {$sel:nextToken:ListConfigs' :: Maybe Text
nextToken = Maybe Text
a} :: ListConfigs)

-- | Maximum number of @Configs@ returned.
listConfigs_maxResults :: Lens.Lens' ListConfigs (Prelude.Maybe Prelude.Int)
listConfigs_maxResults :: (Maybe Int -> f (Maybe Int)) -> ListConfigs -> f ListConfigs
listConfigs_maxResults = (ListConfigs -> Maybe Int)
-> (ListConfigs -> Maybe Int -> ListConfigs)
-> Lens ListConfigs ListConfigs (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigs' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListConfigs' :: ListConfigs -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListConfigs
s@ListConfigs' {} Maybe Int
a -> ListConfigs
s {$sel:maxResults:ListConfigs' :: Maybe Int
maxResults = Maybe Int
a} :: ListConfigs)

instance Core.AWSPager ListConfigs where
  page :: ListConfigs -> AWSResponse ListConfigs -> Maybe ListConfigs
page ListConfigs
rq AWSResponse ListConfigs
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListConfigs
ListConfigsResponse
rs
            ListConfigsResponse
-> Getting (First Text) ListConfigsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListConfigsResponse -> Const (First Text) ListConfigsResponse
Lens' ListConfigsResponse (Maybe Text)
listConfigsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListConfigsResponse -> Const (First Text) ListConfigsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListConfigsResponse 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 ListConfigs
forall a. Maybe a
Prelude.Nothing
    | Maybe [ConfigListItem] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListConfigs
ListConfigsResponse
rs
            ListConfigsResponse
-> Getting
     (First [ConfigListItem]) ListConfigsResponse [ConfigListItem]
-> Maybe [ConfigListItem]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ConfigListItem]
 -> Const (First [ConfigListItem]) (Maybe [ConfigListItem]))
-> ListConfigsResponse
-> Const (First [ConfigListItem]) ListConfigsResponse
Lens' ListConfigsResponse (Maybe [ConfigListItem])
listConfigsResponse_configList ((Maybe [ConfigListItem]
  -> Const (First [ConfigListItem]) (Maybe [ConfigListItem]))
 -> ListConfigsResponse
 -> Const (First [ConfigListItem]) ListConfigsResponse)
-> (([ConfigListItem]
     -> Const (First [ConfigListItem]) [ConfigListItem])
    -> Maybe [ConfigListItem]
    -> Const (First [ConfigListItem]) (Maybe [ConfigListItem]))
-> Getting
     (First [ConfigListItem]) ListConfigsResponse [ConfigListItem]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ConfigListItem]
 -> Const (First [ConfigListItem]) [ConfigListItem])
-> Maybe [ConfigListItem]
-> Const (First [ConfigListItem]) (Maybe [ConfigListItem])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListConfigs
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListConfigs -> Maybe ListConfigs
forall a. a -> Maybe a
Prelude.Just (ListConfigs -> Maybe ListConfigs)
-> ListConfigs -> Maybe ListConfigs
forall a b. (a -> b) -> a -> b
Prelude.$
        ListConfigs
rq
          ListConfigs -> (ListConfigs -> ListConfigs) -> ListConfigs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListConfigs -> Identity ListConfigs
Lens ListConfigs ListConfigs (Maybe Text) (Maybe Text)
listConfigs_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListConfigs -> Identity ListConfigs)
-> Maybe Text -> ListConfigs -> ListConfigs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListConfigs
ListConfigsResponse
rs
          ListConfigsResponse
-> Getting (First Text) ListConfigsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListConfigsResponse -> Const (First Text) ListConfigsResponse
Lens' ListConfigsResponse (Maybe Text)
listConfigsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListConfigsResponse -> Const (First Text) ListConfigsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListConfigsResponse 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 ListConfigs where
  type AWSResponse ListConfigs = ListConfigsResponse
  request :: ListConfigs -> Request ListConfigs
request = Service -> ListConfigs -> Request ListConfigs
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListConfigs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListConfigs)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListConfigs))
-> Logger
-> Service
-> Proxy ListConfigs
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListConfigs)))
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 [ConfigListItem] -> Maybe Text -> Int -> ListConfigsResponse
ListConfigsResponse'
            (Maybe [ConfigListItem]
 -> Maybe Text -> Int -> ListConfigsResponse)
-> Either String (Maybe [ConfigListItem])
-> Either String (Maybe Text -> Int -> ListConfigsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [ConfigListItem]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"configList" Either String (Maybe (Maybe [ConfigListItem]))
-> Maybe [ConfigListItem] -> Either String (Maybe [ConfigListItem])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ConfigListItem]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Maybe Text -> Int -> ListConfigsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListConfigsResponse)
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 -> ListConfigsResponse)
-> Either String Int -> Either String ListConfigsResponse
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 ListConfigs

instance Prelude.NFData ListConfigs

instance Core.ToHeaders ListConfigs where
  toHeaders :: ListConfigs -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListConfigs -> 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.ToPath ListConfigs where
  toPath :: ListConfigs -> ByteString
toPath = ByteString -> ListConfigs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/config"

instance Core.ToQuery ListConfigs where
  toQuery :: ListConfigs -> QueryString
toQuery ListConfigs' {Maybe Int
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:maxResults:ListConfigs' :: ListConfigs -> Maybe Int
$sel:nextToken:ListConfigs' :: ListConfigs -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"maxResults" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxResults
      ]

-- |
--
-- /See:/ 'newListConfigsResponse' smart constructor.
data ListConfigsResponse = ListConfigsResponse'
  { -- | List of @Config@ items.
    ListConfigsResponse -> Maybe [ConfigListItem]
configList :: Prelude.Maybe [ConfigListItem],
    -- | Next token returned in the response of a previous @ListConfigs@ call.
    -- Used to get the next page of results.
    ListConfigsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListConfigsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListConfigsResponse -> ListConfigsResponse -> Bool
(ListConfigsResponse -> ListConfigsResponse -> Bool)
-> (ListConfigsResponse -> ListConfigsResponse -> Bool)
-> Eq ListConfigsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConfigsResponse -> ListConfigsResponse -> Bool
$c/= :: ListConfigsResponse -> ListConfigsResponse -> Bool
== :: ListConfigsResponse -> ListConfigsResponse -> Bool
$c== :: ListConfigsResponse -> ListConfigsResponse -> Bool
Prelude.Eq, ReadPrec [ListConfigsResponse]
ReadPrec ListConfigsResponse
Int -> ReadS ListConfigsResponse
ReadS [ListConfigsResponse]
(Int -> ReadS ListConfigsResponse)
-> ReadS [ListConfigsResponse]
-> ReadPrec ListConfigsResponse
-> ReadPrec [ListConfigsResponse]
-> Read ListConfigsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConfigsResponse]
$creadListPrec :: ReadPrec [ListConfigsResponse]
readPrec :: ReadPrec ListConfigsResponse
$creadPrec :: ReadPrec ListConfigsResponse
readList :: ReadS [ListConfigsResponse]
$creadList :: ReadS [ListConfigsResponse]
readsPrec :: Int -> ReadS ListConfigsResponse
$creadsPrec :: Int -> ReadS ListConfigsResponse
Prelude.Read, Int -> ListConfigsResponse -> ShowS
[ListConfigsResponse] -> ShowS
ListConfigsResponse -> String
(Int -> ListConfigsResponse -> ShowS)
-> (ListConfigsResponse -> String)
-> ([ListConfigsResponse] -> ShowS)
-> Show ListConfigsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConfigsResponse] -> ShowS
$cshowList :: [ListConfigsResponse] -> ShowS
show :: ListConfigsResponse -> String
$cshow :: ListConfigsResponse -> String
showsPrec :: Int -> ListConfigsResponse -> ShowS
$cshowsPrec :: Int -> ListConfigsResponse -> ShowS
Prelude.Show, (forall x. ListConfigsResponse -> Rep ListConfigsResponse x)
-> (forall x. Rep ListConfigsResponse x -> ListConfigsResponse)
-> Generic ListConfigsResponse
forall x. Rep ListConfigsResponse x -> ListConfigsResponse
forall x. ListConfigsResponse -> Rep ListConfigsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListConfigsResponse x -> ListConfigsResponse
$cfrom :: forall x. ListConfigsResponse -> Rep ListConfigsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListConfigsResponse' 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:
--
-- 'configList', 'listConfigsResponse_configList' - List of @Config@ items.
--
-- 'nextToken', 'listConfigsResponse_nextToken' - Next token returned in the response of a previous @ListConfigs@ call.
-- Used to get the next page of results.
--
-- 'httpStatus', 'listConfigsResponse_httpStatus' - The response's http status code.
newListConfigsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListConfigsResponse
newListConfigsResponse :: Int -> ListConfigsResponse
newListConfigsResponse Int
pHttpStatus_ =
  ListConfigsResponse' :: Maybe [ConfigListItem] -> Maybe Text -> Int -> ListConfigsResponse
ListConfigsResponse'
    { $sel:configList:ListConfigsResponse' :: Maybe [ConfigListItem]
configList = Maybe [ConfigListItem]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListConfigsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListConfigsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | List of @Config@ items.
listConfigsResponse_configList :: Lens.Lens' ListConfigsResponse (Prelude.Maybe [ConfigListItem])
listConfigsResponse_configList :: (Maybe [ConfigListItem] -> f (Maybe [ConfigListItem]))
-> ListConfigsResponse -> f ListConfigsResponse
listConfigsResponse_configList = (ListConfigsResponse -> Maybe [ConfigListItem])
-> (ListConfigsResponse
    -> Maybe [ConfigListItem] -> ListConfigsResponse)
-> Lens' ListConfigsResponse (Maybe [ConfigListItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigsResponse' {Maybe [ConfigListItem]
configList :: Maybe [ConfigListItem]
$sel:configList:ListConfigsResponse' :: ListConfigsResponse -> Maybe [ConfigListItem]
configList} -> Maybe [ConfigListItem]
configList) (\s :: ListConfigsResponse
s@ListConfigsResponse' {} Maybe [ConfigListItem]
a -> ListConfigsResponse
s {$sel:configList:ListConfigsResponse' :: Maybe [ConfigListItem]
configList = Maybe [ConfigListItem]
a} :: ListConfigsResponse) ((Maybe [ConfigListItem] -> f (Maybe [ConfigListItem]))
 -> ListConfigsResponse -> f ListConfigsResponse)
-> ((Maybe [ConfigListItem] -> f (Maybe [ConfigListItem]))
    -> Maybe [ConfigListItem] -> f (Maybe [ConfigListItem]))
-> (Maybe [ConfigListItem] -> f (Maybe [ConfigListItem]))
-> ListConfigsResponse
-> f ListConfigsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ConfigListItem] [ConfigListItem] [ConfigListItem] [ConfigListItem]
-> Iso
     (Maybe [ConfigListItem])
     (Maybe [ConfigListItem])
     (Maybe [ConfigListItem])
     (Maybe [ConfigListItem])
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
  [ConfigListItem] [ConfigListItem] [ConfigListItem] [ConfigListItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Next token returned in the response of a previous @ListConfigs@ call.
-- Used to get the next page of results.
listConfigsResponse_nextToken :: Lens.Lens' ListConfigsResponse (Prelude.Maybe Prelude.Text)
listConfigsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConfigsResponse -> f ListConfigsResponse
listConfigsResponse_nextToken = (ListConfigsResponse -> Maybe Text)
-> (ListConfigsResponse -> Maybe Text -> ListConfigsResponse)
-> Lens' ListConfigsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConfigsResponse' :: ListConfigsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConfigsResponse
s@ListConfigsResponse' {} Maybe Text
a -> ListConfigsResponse
s {$sel:nextToken:ListConfigsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListConfigsResponse)

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

instance Prelude.NFData ListConfigsResponse