{-# 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.MQ.ListConfigurations
-- 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 all configurations.
module Amazonka.MQ.ListConfigurations
  ( -- * Creating a Request
    ListConfigurations (..),
    newListConfigurations,

    -- * Request Lenses
    listConfigurations_nextToken,
    listConfigurations_maxResults,

    -- * Destructuring the Response
    ListConfigurationsResponse (..),
    newListConfigurationsResponse,

    -- * Response Lenses
    listConfigurationsResponse_configurations,
    listConfigurationsResponse_nextToken,
    listConfigurationsResponse_maxResults,
    listConfigurationsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListConfigurations' smart constructor.
data ListConfigurations = ListConfigurations'
  { -- | The token that specifies the next page of results Amazon MQ should
    -- return. To request the first page, leave nextToken empty.
    ListConfigurations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of brokers that Amazon MQ can return per page (20 by
    -- default). This value must be an integer from 5 to 100.
    ListConfigurations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListConfigurations -> ListConfigurations -> Bool
(ListConfigurations -> ListConfigurations -> Bool)
-> (ListConfigurations -> ListConfigurations -> Bool)
-> Eq ListConfigurations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConfigurations -> ListConfigurations -> Bool
$c/= :: ListConfigurations -> ListConfigurations -> Bool
== :: ListConfigurations -> ListConfigurations -> Bool
$c== :: ListConfigurations -> ListConfigurations -> Bool
Prelude.Eq, ReadPrec [ListConfigurations]
ReadPrec ListConfigurations
Int -> ReadS ListConfigurations
ReadS [ListConfigurations]
(Int -> ReadS ListConfigurations)
-> ReadS [ListConfigurations]
-> ReadPrec ListConfigurations
-> ReadPrec [ListConfigurations]
-> Read ListConfigurations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConfigurations]
$creadListPrec :: ReadPrec [ListConfigurations]
readPrec :: ReadPrec ListConfigurations
$creadPrec :: ReadPrec ListConfigurations
readList :: ReadS [ListConfigurations]
$creadList :: ReadS [ListConfigurations]
readsPrec :: Int -> ReadS ListConfigurations
$creadsPrec :: Int -> ReadS ListConfigurations
Prelude.Read, Int -> ListConfigurations -> ShowS
[ListConfigurations] -> ShowS
ListConfigurations -> String
(Int -> ListConfigurations -> ShowS)
-> (ListConfigurations -> String)
-> ([ListConfigurations] -> ShowS)
-> Show ListConfigurations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConfigurations] -> ShowS
$cshowList :: [ListConfigurations] -> ShowS
show :: ListConfigurations -> String
$cshow :: ListConfigurations -> String
showsPrec :: Int -> ListConfigurations -> ShowS
$cshowsPrec :: Int -> ListConfigurations -> ShowS
Prelude.Show, (forall x. ListConfigurations -> Rep ListConfigurations x)
-> (forall x. Rep ListConfigurations x -> ListConfigurations)
-> Generic ListConfigurations
forall x. Rep ListConfigurations x -> ListConfigurations
forall x. ListConfigurations -> Rep ListConfigurations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListConfigurations x -> ListConfigurations
$cfrom :: forall x. ListConfigurations -> Rep ListConfigurations x
Prelude.Generic)

-- |
-- Create a value of 'ListConfigurations' 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', 'listConfigurations_nextToken' - The token that specifies the next page of results Amazon MQ should
-- return. To request the first page, leave nextToken empty.
--
-- 'maxResults', 'listConfigurations_maxResults' - The maximum number of brokers that Amazon MQ can return per page (20 by
-- default). This value must be an integer from 5 to 100.
newListConfigurations ::
  ListConfigurations
newListConfigurations :: ListConfigurations
newListConfigurations =
  ListConfigurations' :: Maybe Text -> Maybe Natural -> ListConfigurations
ListConfigurations'
    { $sel:nextToken:ListConfigurations' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListConfigurations' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | The token that specifies the next page of results Amazon MQ should
-- return. To request the first page, leave nextToken empty.
listConfigurations_nextToken :: Lens.Lens' ListConfigurations (Prelude.Maybe Prelude.Text)
listConfigurations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConfigurations -> f ListConfigurations
listConfigurations_nextToken = (ListConfigurations -> Maybe Text)
-> (ListConfigurations -> Maybe Text -> ListConfigurations)
-> Lens
     ListConfigurations ListConfigurations (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConfigurations' :: ListConfigurations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConfigurations
s@ListConfigurations' {} Maybe Text
a -> ListConfigurations
s {$sel:nextToken:ListConfigurations' :: Maybe Text
nextToken = Maybe Text
a} :: ListConfigurations)

-- | The maximum number of brokers that Amazon MQ can return per page (20 by
-- default). This value must be an integer from 5 to 100.
listConfigurations_maxResults :: Lens.Lens' ListConfigurations (Prelude.Maybe Prelude.Natural)
listConfigurations_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListConfigurations -> f ListConfigurations
listConfigurations_maxResults = (ListConfigurations -> Maybe Natural)
-> (ListConfigurations -> Maybe Natural -> ListConfigurations)
-> Lens
     ListConfigurations
     ListConfigurations
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListConfigurations' :: ListConfigurations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListConfigurations
s@ListConfigurations' {} Maybe Natural
a -> ListConfigurations
s {$sel:maxResults:ListConfigurations' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListConfigurations)

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

instance Prelude.NFData ListConfigurations

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

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

-- | /See:/ 'newListConfigurationsResponse' smart constructor.
data ListConfigurationsResponse = ListConfigurationsResponse'
  { -- | The list of all revisions for the specified configuration.
    ListConfigurationsResponse -> Maybe [Configuration]
configurations :: Prelude.Maybe [Configuration],
    -- | The token that specifies the next page of results Amazon MQ should
    -- return. To request the first page, leave nextToken empty.
    ListConfigurationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of configurations that Amazon MQ can return per page
    -- (20 by default). This value must be an integer from 5 to 100.
    ListConfigurationsResponse -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
    -- | The response's http status code.
    ListConfigurationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListConfigurationsResponse -> ListConfigurationsResponse -> Bool
(ListConfigurationsResponse -> ListConfigurationsResponse -> Bool)
-> (ListConfigurationsResponse
    -> ListConfigurationsResponse -> Bool)
-> Eq ListConfigurationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConfigurationsResponse -> ListConfigurationsResponse -> Bool
$c/= :: ListConfigurationsResponse -> ListConfigurationsResponse -> Bool
== :: ListConfigurationsResponse -> ListConfigurationsResponse -> Bool
$c== :: ListConfigurationsResponse -> ListConfigurationsResponse -> Bool
Prelude.Eq, ReadPrec [ListConfigurationsResponse]
ReadPrec ListConfigurationsResponse
Int -> ReadS ListConfigurationsResponse
ReadS [ListConfigurationsResponse]
(Int -> ReadS ListConfigurationsResponse)
-> ReadS [ListConfigurationsResponse]
-> ReadPrec ListConfigurationsResponse
-> ReadPrec [ListConfigurationsResponse]
-> Read ListConfigurationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConfigurationsResponse]
$creadListPrec :: ReadPrec [ListConfigurationsResponse]
readPrec :: ReadPrec ListConfigurationsResponse
$creadPrec :: ReadPrec ListConfigurationsResponse
readList :: ReadS [ListConfigurationsResponse]
$creadList :: ReadS [ListConfigurationsResponse]
readsPrec :: Int -> ReadS ListConfigurationsResponse
$creadsPrec :: Int -> ReadS ListConfigurationsResponse
Prelude.Read, Int -> ListConfigurationsResponse -> ShowS
[ListConfigurationsResponse] -> ShowS
ListConfigurationsResponse -> String
(Int -> ListConfigurationsResponse -> ShowS)
-> (ListConfigurationsResponse -> String)
-> ([ListConfigurationsResponse] -> ShowS)
-> Show ListConfigurationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConfigurationsResponse] -> ShowS
$cshowList :: [ListConfigurationsResponse] -> ShowS
show :: ListConfigurationsResponse -> String
$cshow :: ListConfigurationsResponse -> String
showsPrec :: Int -> ListConfigurationsResponse -> ShowS
$cshowsPrec :: Int -> ListConfigurationsResponse -> ShowS
Prelude.Show, (forall x.
 ListConfigurationsResponse -> Rep ListConfigurationsResponse x)
-> (forall x.
    Rep ListConfigurationsResponse x -> ListConfigurationsResponse)
-> Generic ListConfigurationsResponse
forall x.
Rep ListConfigurationsResponse x -> ListConfigurationsResponse
forall x.
ListConfigurationsResponse -> Rep ListConfigurationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListConfigurationsResponse x -> ListConfigurationsResponse
$cfrom :: forall x.
ListConfigurationsResponse -> Rep ListConfigurationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListConfigurationsResponse' 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:
--
-- 'configurations', 'listConfigurationsResponse_configurations' - The list of all revisions for the specified configuration.
--
-- 'nextToken', 'listConfigurationsResponse_nextToken' - The token that specifies the next page of results Amazon MQ should
-- return. To request the first page, leave nextToken empty.
--
-- 'maxResults', 'listConfigurationsResponse_maxResults' - The maximum number of configurations that Amazon MQ can return per page
-- (20 by default). This value must be an integer from 5 to 100.
--
-- 'httpStatus', 'listConfigurationsResponse_httpStatus' - The response's http status code.
newListConfigurationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListConfigurationsResponse
newListConfigurationsResponse :: Int -> ListConfigurationsResponse
newListConfigurationsResponse Int
pHttpStatus_ =
  ListConfigurationsResponse' :: Maybe [Configuration]
-> Maybe Text -> Maybe Int -> Int -> ListConfigurationsResponse
ListConfigurationsResponse'
    { $sel:configurations:ListConfigurationsResponse' :: Maybe [Configuration]
configurations =
        Maybe [Configuration]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListConfigurationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListConfigurationsResponse' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListConfigurationsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The list of all revisions for the specified configuration.
listConfigurationsResponse_configurations :: Lens.Lens' ListConfigurationsResponse (Prelude.Maybe [Configuration])
listConfigurationsResponse_configurations :: (Maybe [Configuration] -> f (Maybe [Configuration]))
-> ListConfigurationsResponse -> f ListConfigurationsResponse
listConfigurationsResponse_configurations = (ListConfigurationsResponse -> Maybe [Configuration])
-> (ListConfigurationsResponse
    -> Maybe [Configuration] -> ListConfigurationsResponse)
-> Lens
     ListConfigurationsResponse
     ListConfigurationsResponse
     (Maybe [Configuration])
     (Maybe [Configuration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationsResponse' {Maybe [Configuration]
configurations :: Maybe [Configuration]
$sel:configurations:ListConfigurationsResponse' :: ListConfigurationsResponse -> Maybe [Configuration]
configurations} -> Maybe [Configuration]
configurations) (\s :: ListConfigurationsResponse
s@ListConfigurationsResponse' {} Maybe [Configuration]
a -> ListConfigurationsResponse
s {$sel:configurations:ListConfigurationsResponse' :: Maybe [Configuration]
configurations = Maybe [Configuration]
a} :: ListConfigurationsResponse) ((Maybe [Configuration] -> f (Maybe [Configuration]))
 -> ListConfigurationsResponse -> f ListConfigurationsResponse)
-> ((Maybe [Configuration] -> f (Maybe [Configuration]))
    -> Maybe [Configuration] -> f (Maybe [Configuration]))
-> (Maybe [Configuration] -> f (Maybe [Configuration]))
-> ListConfigurationsResponse
-> f ListConfigurationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [Configuration] [Configuration] [Configuration] [Configuration]
-> Iso
     (Maybe [Configuration])
     (Maybe [Configuration])
     (Maybe [Configuration])
     (Maybe [Configuration])
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
  [Configuration] [Configuration] [Configuration] [Configuration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token that specifies the next page of results Amazon MQ should
-- return. To request the first page, leave nextToken empty.
listConfigurationsResponse_nextToken :: Lens.Lens' ListConfigurationsResponse (Prelude.Maybe Prelude.Text)
listConfigurationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConfigurationsResponse -> f ListConfigurationsResponse
listConfigurationsResponse_nextToken = (ListConfigurationsResponse -> Maybe Text)
-> (ListConfigurationsResponse
    -> Maybe Text -> ListConfigurationsResponse)
-> Lens
     ListConfigurationsResponse
     ListConfigurationsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConfigurationsResponse' :: ListConfigurationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConfigurationsResponse
s@ListConfigurationsResponse' {} Maybe Text
a -> ListConfigurationsResponse
s {$sel:nextToken:ListConfigurationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListConfigurationsResponse)

-- | The maximum number of configurations that Amazon MQ can return per page
-- (20 by default). This value must be an integer from 5 to 100.
listConfigurationsResponse_maxResults :: Lens.Lens' ListConfigurationsResponse (Prelude.Maybe Prelude.Int)
listConfigurationsResponse_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListConfigurationsResponse -> f ListConfigurationsResponse
listConfigurationsResponse_maxResults = (ListConfigurationsResponse -> Maybe Int)
-> (ListConfigurationsResponse
    -> Maybe Int -> ListConfigurationsResponse)
-> Lens
     ListConfigurationsResponse
     ListConfigurationsResponse
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationsResponse' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListConfigurationsResponse' :: ListConfigurationsResponse -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListConfigurationsResponse
s@ListConfigurationsResponse' {} Maybe Int
a -> ListConfigurationsResponse
s {$sel:maxResults:ListConfigurationsResponse' :: Maybe Int
maxResults = Maybe Int
a} :: ListConfigurationsResponse)

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

instance Prelude.NFData ListConfigurationsResponse