{-# 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.Kafka.ListConfigurationRevisions
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a list of all the MSK configurations in this Region.
--
-- This operation returns paginated results.
module Amazonka.Kafka.ListConfigurationRevisions
  ( -- * Creating a Request
    ListConfigurationRevisions (..),
    newListConfigurationRevisions,

    -- * Request Lenses
    listConfigurationRevisions_maxResults,
    listConfigurationRevisions_nextToken,
    listConfigurationRevisions_arn,

    -- * Destructuring the Response
    ListConfigurationRevisionsResponse (..),
    newListConfigurationRevisionsResponse,

    -- * Response Lenses
    listConfigurationRevisionsResponse_nextToken,
    listConfigurationRevisionsResponse_revisions,
    listConfigurationRevisionsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Kafka.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListConfigurationRevisions' smart constructor.
data ListConfigurationRevisions = ListConfigurationRevisions'
  { -- | The maximum number of results to return in the response. If there are
    -- more results, the response includes a NextToken parameter.
    ListConfigurationRevisions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The paginated results marker. When the result of the operation is
    -- truncated, the call returns NextToken in the response. To get the next
    -- batch, provide this token in your next request.
    ListConfigurationRevisions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) that uniquely identifies an MSK
    -- configuration and all of its revisions.
    ListConfigurationRevisions -> Text
arn :: Prelude.Text
  }
  deriving (ListConfigurationRevisions -> ListConfigurationRevisions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConfigurationRevisions -> ListConfigurationRevisions -> Bool
$c/= :: ListConfigurationRevisions -> ListConfigurationRevisions -> Bool
== :: ListConfigurationRevisions -> ListConfigurationRevisions -> Bool
$c== :: ListConfigurationRevisions -> ListConfigurationRevisions -> Bool
Prelude.Eq, ReadPrec [ListConfigurationRevisions]
ReadPrec ListConfigurationRevisions
Int -> ReadS ListConfigurationRevisions
ReadS [ListConfigurationRevisions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConfigurationRevisions]
$creadListPrec :: ReadPrec [ListConfigurationRevisions]
readPrec :: ReadPrec ListConfigurationRevisions
$creadPrec :: ReadPrec ListConfigurationRevisions
readList :: ReadS [ListConfigurationRevisions]
$creadList :: ReadS [ListConfigurationRevisions]
readsPrec :: Int -> ReadS ListConfigurationRevisions
$creadsPrec :: Int -> ReadS ListConfigurationRevisions
Prelude.Read, Int -> ListConfigurationRevisions -> ShowS
[ListConfigurationRevisions] -> ShowS
ListConfigurationRevisions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConfigurationRevisions] -> ShowS
$cshowList :: [ListConfigurationRevisions] -> ShowS
show :: ListConfigurationRevisions -> String
$cshow :: ListConfigurationRevisions -> String
showsPrec :: Int -> ListConfigurationRevisions -> ShowS
$cshowsPrec :: Int -> ListConfigurationRevisions -> ShowS
Prelude.Show, forall x.
Rep ListConfigurationRevisions x -> ListConfigurationRevisions
forall x.
ListConfigurationRevisions -> Rep ListConfigurationRevisions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListConfigurationRevisions x -> ListConfigurationRevisions
$cfrom :: forall x.
ListConfigurationRevisions -> Rep ListConfigurationRevisions x
Prelude.Generic)

-- |
-- Create a value of 'ListConfigurationRevisions' 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:
--
-- 'maxResults', 'listConfigurationRevisions_maxResults' - The maximum number of results to return in the response. If there are
-- more results, the response includes a NextToken parameter.
--
-- 'nextToken', 'listConfigurationRevisions_nextToken' - The paginated results marker. When the result of the operation is
-- truncated, the call returns NextToken in the response. To get the next
-- batch, provide this token in your next request.
--
-- 'arn', 'listConfigurationRevisions_arn' - The Amazon Resource Name (ARN) that uniquely identifies an MSK
-- configuration and all of its revisions.
newListConfigurationRevisions ::
  -- | 'arn'
  Prelude.Text ->
  ListConfigurationRevisions
newListConfigurationRevisions :: Text -> ListConfigurationRevisions
newListConfigurationRevisions Text
pArn_ =
  ListConfigurationRevisions'
    { $sel:maxResults:ListConfigurationRevisions' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListConfigurationRevisions' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:arn:ListConfigurationRevisions' :: Text
arn = Text
pArn_
    }

-- | The maximum number of results to return in the response. If there are
-- more results, the response includes a NextToken parameter.
listConfigurationRevisions_maxResults :: Lens.Lens' ListConfigurationRevisions (Prelude.Maybe Prelude.Natural)
listConfigurationRevisions_maxResults :: Lens' ListConfigurationRevisions (Maybe Natural)
listConfigurationRevisions_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListConfigurationRevisions
s@ListConfigurationRevisions' {} Maybe Natural
a -> ListConfigurationRevisions
s {$sel:maxResults:ListConfigurationRevisions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListConfigurationRevisions)

-- | The paginated results marker. When the result of the operation is
-- truncated, the call returns NextToken in the response. To get the next
-- batch, provide this token in your next request.
listConfigurationRevisions_nextToken :: Lens.Lens' ListConfigurationRevisions (Prelude.Maybe Prelude.Text)
listConfigurationRevisions_nextToken :: Lens' ListConfigurationRevisions (Maybe Text)
listConfigurationRevisions_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConfigurationRevisions
s@ListConfigurationRevisions' {} Maybe Text
a -> ListConfigurationRevisions
s {$sel:nextToken:ListConfigurationRevisions' :: Maybe Text
nextToken = Maybe Text
a} :: ListConfigurationRevisions)

-- | The Amazon Resource Name (ARN) that uniquely identifies an MSK
-- configuration and all of its revisions.
listConfigurationRevisions_arn :: Lens.Lens' ListConfigurationRevisions Prelude.Text
listConfigurationRevisions_arn :: Lens' ListConfigurationRevisions Text
listConfigurationRevisions_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisions' {Text
arn :: Text
$sel:arn:ListConfigurationRevisions' :: ListConfigurationRevisions -> Text
arn} -> Text
arn) (\s :: ListConfigurationRevisions
s@ListConfigurationRevisions' {} Text
a -> ListConfigurationRevisions
s {$sel:arn:ListConfigurationRevisions' :: Text
arn = Text
a} :: ListConfigurationRevisions)

instance Core.AWSPager ListConfigurationRevisions where
  page :: ListConfigurationRevisions
-> AWSResponse ListConfigurationRevisions
-> Maybe ListConfigurationRevisions
page ListConfigurationRevisions
rq AWSResponse ListConfigurationRevisions
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListConfigurationRevisions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListConfigurationRevisionsResponse (Maybe Text)
listConfigurationRevisionsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListConfigurationRevisions
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListConfigurationRevisionsResponse (Maybe [ConfigurationRevision])
listConfigurationRevisionsResponse_revisions
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ ListConfigurationRevisions
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListConfigurationRevisions (Maybe Text)
listConfigurationRevisions_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListConfigurationRevisions
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListConfigurationRevisionsResponse (Maybe Text)
listConfigurationRevisionsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest ListConfigurationRevisions where
  type
    AWSResponse ListConfigurationRevisions =
      ListConfigurationRevisionsResponse
  request :: (Service -> Service)
-> ListConfigurationRevisions -> Request ListConfigurationRevisions
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListConfigurationRevisions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListConfigurationRevisions)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe [ConfigurationRevision]
-> Int
-> ListConfigurationRevisionsResponse
ListConfigurationRevisionsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"revisions" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListConfigurationRevisions where
  hashWithSalt :: Int -> ListConfigurationRevisions -> Int
hashWithSalt Int
_salt ListConfigurationRevisions' {Maybe Natural
Maybe Text
Text
arn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:arn:ListConfigurationRevisions' :: ListConfigurationRevisions -> Text
$sel:nextToken:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Text
$sel:maxResults:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
arn

instance Prelude.NFData ListConfigurationRevisions where
  rnf :: ListConfigurationRevisions -> ()
rnf ListConfigurationRevisions' {Maybe Natural
Maybe Text
Text
arn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:arn:ListConfigurationRevisions' :: ListConfigurationRevisions -> Text
$sel:nextToken:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Text
$sel:maxResults:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
arn

instance Data.ToHeaders ListConfigurationRevisions where
  toHeaders :: ListConfigurationRevisions -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath ListConfigurationRevisions where
  toPath :: ListConfigurationRevisions -> ByteString
toPath ListConfigurationRevisions' {Maybe Natural
Maybe Text
Text
arn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:arn:ListConfigurationRevisions' :: ListConfigurationRevisions -> Text
$sel:nextToken:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Text
$sel:maxResults:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/v1/configurations/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
arn, ByteString
"/revisions"]

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

-- | /See:/ 'newListConfigurationRevisionsResponse' smart constructor.
data ListConfigurationRevisionsResponse = ListConfigurationRevisionsResponse'
  { -- | Paginated results marker.
    ListConfigurationRevisionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | List of ConfigurationRevision objects.
    ListConfigurationRevisionsResponse -> Maybe [ConfigurationRevision]
revisions :: Prelude.Maybe [ConfigurationRevision],
    -- | The response's http status code.
    ListConfigurationRevisionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool
$c/= :: ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool
== :: ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool
$c== :: ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool
Prelude.Eq, ReadPrec [ListConfigurationRevisionsResponse]
ReadPrec ListConfigurationRevisionsResponse
Int -> ReadS ListConfigurationRevisionsResponse
ReadS [ListConfigurationRevisionsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConfigurationRevisionsResponse]
$creadListPrec :: ReadPrec [ListConfigurationRevisionsResponse]
readPrec :: ReadPrec ListConfigurationRevisionsResponse
$creadPrec :: ReadPrec ListConfigurationRevisionsResponse
readList :: ReadS [ListConfigurationRevisionsResponse]
$creadList :: ReadS [ListConfigurationRevisionsResponse]
readsPrec :: Int -> ReadS ListConfigurationRevisionsResponse
$creadsPrec :: Int -> ReadS ListConfigurationRevisionsResponse
Prelude.Read, Int -> ListConfigurationRevisionsResponse -> ShowS
[ListConfigurationRevisionsResponse] -> ShowS
ListConfigurationRevisionsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConfigurationRevisionsResponse] -> ShowS
$cshowList :: [ListConfigurationRevisionsResponse] -> ShowS
show :: ListConfigurationRevisionsResponse -> String
$cshow :: ListConfigurationRevisionsResponse -> String
showsPrec :: Int -> ListConfigurationRevisionsResponse -> ShowS
$cshowsPrec :: Int -> ListConfigurationRevisionsResponse -> ShowS
Prelude.Show, forall x.
Rep ListConfigurationRevisionsResponse x
-> ListConfigurationRevisionsResponse
forall x.
ListConfigurationRevisionsResponse
-> Rep ListConfigurationRevisionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListConfigurationRevisionsResponse x
-> ListConfigurationRevisionsResponse
$cfrom :: forall x.
ListConfigurationRevisionsResponse
-> Rep ListConfigurationRevisionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListConfigurationRevisionsResponse' 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', 'listConfigurationRevisionsResponse_nextToken' - Paginated results marker.
--
-- 'revisions', 'listConfigurationRevisionsResponse_revisions' - List of ConfigurationRevision objects.
--
-- 'httpStatus', 'listConfigurationRevisionsResponse_httpStatus' - The response's http status code.
newListConfigurationRevisionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListConfigurationRevisionsResponse
newListConfigurationRevisionsResponse :: Int -> ListConfigurationRevisionsResponse
newListConfigurationRevisionsResponse Int
pHttpStatus_ =
  ListConfigurationRevisionsResponse'
    { $sel:nextToken:ListConfigurationRevisionsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:revisions:ListConfigurationRevisionsResponse' :: Maybe [ConfigurationRevision]
revisions = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListConfigurationRevisionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Paginated results marker.
listConfigurationRevisionsResponse_nextToken :: Lens.Lens' ListConfigurationRevisionsResponse (Prelude.Maybe Prelude.Text)
listConfigurationRevisionsResponse_nextToken :: Lens' ListConfigurationRevisionsResponse (Maybe Text)
listConfigurationRevisionsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConfigurationRevisionsResponse' :: ListConfigurationRevisionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConfigurationRevisionsResponse
s@ListConfigurationRevisionsResponse' {} Maybe Text
a -> ListConfigurationRevisionsResponse
s {$sel:nextToken:ListConfigurationRevisionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListConfigurationRevisionsResponse)

-- | List of ConfigurationRevision objects.
listConfigurationRevisionsResponse_revisions :: Lens.Lens' ListConfigurationRevisionsResponse (Prelude.Maybe [ConfigurationRevision])
listConfigurationRevisionsResponse_revisions :: Lens'
  ListConfigurationRevisionsResponse (Maybe [ConfigurationRevision])
listConfigurationRevisionsResponse_revisions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisionsResponse' {Maybe [ConfigurationRevision]
revisions :: Maybe [ConfigurationRevision]
$sel:revisions:ListConfigurationRevisionsResponse' :: ListConfigurationRevisionsResponse -> Maybe [ConfigurationRevision]
revisions} -> Maybe [ConfigurationRevision]
revisions) (\s :: ListConfigurationRevisionsResponse
s@ListConfigurationRevisionsResponse' {} Maybe [ConfigurationRevision]
a -> ListConfigurationRevisionsResponse
s {$sel:revisions:ListConfigurationRevisionsResponse' :: Maybe [ConfigurationRevision]
revisions = Maybe [ConfigurationRevision]
a} :: ListConfigurationRevisionsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    ListConfigurationRevisionsResponse
  where
  rnf :: ListConfigurationRevisionsResponse -> ()
rnf ListConfigurationRevisionsResponse' {Int
Maybe [ConfigurationRevision]
Maybe Text
httpStatus :: Int
revisions :: Maybe [ConfigurationRevision]
nextToken :: Maybe Text
$sel:httpStatus:ListConfigurationRevisionsResponse' :: ListConfigurationRevisionsResponse -> Int
$sel:revisions:ListConfigurationRevisionsResponse' :: ListConfigurationRevisionsResponse -> Maybe [ConfigurationRevision]
$sel:nextToken:ListConfigurationRevisionsResponse' :: ListConfigurationRevisionsResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ConfigurationRevision]
revisions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus