{-# 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.Route53Resolver.ListResolverConfigs
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves the Resolver configurations that you have defined. Route 53
-- Resolver uses the configurations to manage DNS resolution behavior for
-- your VPCs.
--
-- This operation returns paginated results.
module Amazonka.Route53Resolver.ListResolverConfigs
  ( -- * Creating a Request
    ListResolverConfigs (..),
    newListResolverConfigs,

    -- * Request Lenses
    listResolverConfigs_maxResults,
    listResolverConfigs_nextToken,

    -- * Destructuring the Response
    ListResolverConfigsResponse (..),
    newListResolverConfigsResponse,

    -- * Response Lenses
    listResolverConfigsResponse_nextToken,
    listResolverConfigsResponse_resolverConfigs,
    listResolverConfigsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListResolverConfigs' smart constructor.
data ListResolverConfigs = ListResolverConfigs'
  { -- | The maximum number of Resolver configurations that you want to return in
    -- the response to a @ListResolverConfigs@ request. If you don\'t specify a
    -- value for @MaxResults@, up to 100 Resolver configurations are returned.
    ListResolverConfigs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | (Optional) If the current Amazon Web Services account has more than
    -- @MaxResults@ Resolver configurations, use @NextToken@ to get the second
    -- and subsequent pages of results.
    --
    -- For the first @ListResolverConfigs@ request, omit this value.
    --
    -- For the second and subsequent requests, get the value of @NextToken@
    -- from the previous response and specify that value for @NextToken@ in the
    -- request.
    ListResolverConfigs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListResolverConfigs -> ListResolverConfigs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolverConfigs -> ListResolverConfigs -> Bool
$c/= :: ListResolverConfigs -> ListResolverConfigs -> Bool
== :: ListResolverConfigs -> ListResolverConfigs -> Bool
$c== :: ListResolverConfigs -> ListResolverConfigs -> Bool
Prelude.Eq, ReadPrec [ListResolverConfigs]
ReadPrec ListResolverConfigs
Int -> ReadS ListResolverConfigs
ReadS [ListResolverConfigs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolverConfigs]
$creadListPrec :: ReadPrec [ListResolverConfigs]
readPrec :: ReadPrec ListResolverConfigs
$creadPrec :: ReadPrec ListResolverConfigs
readList :: ReadS [ListResolverConfigs]
$creadList :: ReadS [ListResolverConfigs]
readsPrec :: Int -> ReadS ListResolverConfigs
$creadsPrec :: Int -> ReadS ListResolverConfigs
Prelude.Read, Int -> ListResolverConfigs -> ShowS
[ListResolverConfigs] -> ShowS
ListResolverConfigs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolverConfigs] -> ShowS
$cshowList :: [ListResolverConfigs] -> ShowS
show :: ListResolverConfigs -> String
$cshow :: ListResolverConfigs -> String
showsPrec :: Int -> ListResolverConfigs -> ShowS
$cshowsPrec :: Int -> ListResolverConfigs -> ShowS
Prelude.Show, forall x. Rep ListResolverConfigs x -> ListResolverConfigs
forall x. ListResolverConfigs -> Rep ListResolverConfigs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListResolverConfigs x -> ListResolverConfigs
$cfrom :: forall x. ListResolverConfigs -> Rep ListResolverConfigs x
Prelude.Generic)

-- |
-- Create a value of 'ListResolverConfigs' 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', 'listResolverConfigs_maxResults' - The maximum number of Resolver configurations that you want to return in
-- the response to a @ListResolverConfigs@ request. If you don\'t specify a
-- value for @MaxResults@, up to 100 Resolver configurations are returned.
--
-- 'nextToken', 'listResolverConfigs_nextToken' - (Optional) If the current Amazon Web Services account has more than
-- @MaxResults@ Resolver configurations, use @NextToken@ to get the second
-- and subsequent pages of results.
--
-- For the first @ListResolverConfigs@ request, omit this value.
--
-- For the second and subsequent requests, get the value of @NextToken@
-- from the previous response and specify that value for @NextToken@ in the
-- request.
newListResolverConfigs ::
  ListResolverConfigs
newListResolverConfigs :: ListResolverConfigs
newListResolverConfigs =
  ListResolverConfigs'
    { $sel:maxResults:ListResolverConfigs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListResolverConfigs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of Resolver configurations that you want to return in
-- the response to a @ListResolverConfigs@ request. If you don\'t specify a
-- value for @MaxResults@, up to 100 Resolver configurations are returned.
listResolverConfigs_maxResults :: Lens.Lens' ListResolverConfigs (Prelude.Maybe Prelude.Natural)
listResolverConfigs_maxResults :: Lens' ListResolverConfigs (Maybe Natural)
listResolverConfigs_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverConfigs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListResolverConfigs' :: ListResolverConfigs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListResolverConfigs
s@ListResolverConfigs' {} Maybe Natural
a -> ListResolverConfigs
s {$sel:maxResults:ListResolverConfigs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListResolverConfigs)

-- | (Optional) If the current Amazon Web Services account has more than
-- @MaxResults@ Resolver configurations, use @NextToken@ to get the second
-- and subsequent pages of results.
--
-- For the first @ListResolverConfigs@ request, omit this value.
--
-- For the second and subsequent requests, get the value of @NextToken@
-- from the previous response and specify that value for @NextToken@ in the
-- request.
listResolverConfigs_nextToken :: Lens.Lens' ListResolverConfigs (Prelude.Maybe Prelude.Text)
listResolverConfigs_nextToken :: Lens' ListResolverConfigs (Maybe Text)
listResolverConfigs_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverConfigs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolverConfigs' :: ListResolverConfigs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolverConfigs
s@ListResolverConfigs' {} Maybe Text
a -> ListResolverConfigs
s {$sel:nextToken:ListResolverConfigs' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolverConfigs)

instance Core.AWSPager ListResolverConfigs where
  page :: ListResolverConfigs
-> AWSResponse ListResolverConfigs -> Maybe ListResolverConfigs
page ListResolverConfigs
rq AWSResponse ListResolverConfigs
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListResolverConfigs
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListResolverConfigsResponse (Maybe Text)
listResolverConfigsResponse_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 ListResolverConfigs
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListResolverConfigsResponse (Maybe [ResolverConfig])
listResolverConfigsResponse_resolverConfigs
            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.$ ListResolverConfigs
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListResolverConfigs (Maybe Text)
listResolverConfigs_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListResolverConfigs
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListResolverConfigsResponse (Maybe Text)
listResolverConfigsResponse_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 ListResolverConfigs where
  type
    AWSResponse ListResolverConfigs =
      ListResolverConfigsResponse
  request :: (Service -> Service)
-> ListResolverConfigs -> Request ListResolverConfigs
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListResolverConfigs
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListResolverConfigs)))
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 [ResolverConfig] -> Int -> ListResolverConfigsResponse
ListResolverConfigsResponse'
            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
"ResolverConfigs"
                            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 ListResolverConfigs where
  hashWithSalt :: Int -> ListResolverConfigs -> Int
hashWithSalt Int
_salt ListResolverConfigs' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListResolverConfigs' :: ListResolverConfigs -> Maybe Text
$sel:maxResults:ListResolverConfigs' :: ListResolverConfigs -> 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

instance Prelude.NFData ListResolverConfigs where
  rnf :: ListResolverConfigs -> ()
rnf ListResolverConfigs' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListResolverConfigs' :: ListResolverConfigs -> Maybe Text
$sel:maxResults:ListResolverConfigs' :: ListResolverConfigs -> 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

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

instance Data.ToJSON ListResolverConfigs where
  toJSON :: ListResolverConfigs -> Value
toJSON ListResolverConfigs' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListResolverConfigs' :: ListResolverConfigs -> Maybe Text
$sel:maxResults:ListResolverConfigs' :: ListResolverConfigs -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
          ]
      )

instance Data.ToPath ListResolverConfigs where
  toPath :: ListResolverConfigs -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery ListResolverConfigs where
  toQuery :: ListResolverConfigs -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListResolverConfigsResponse' smart constructor.
data ListResolverConfigsResponse = ListResolverConfigsResponse'
  { -- | If a response includes the last of the Resolver configurations that are
    -- associated with the current Amazon Web Services account, @NextToken@
    -- doesn\'t appear in the response.
    --
    -- If a response doesn\'t include the last of the configurations, you can
    -- get more configurations by submitting another @ListResolverConfigs@
    -- request. Get the value of @NextToken@ that Amazon Route 53 returned in
    -- the previous response and include it in @NextToken@ in the next request.
    ListResolverConfigsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | An array that contains one @ResolverConfigs@ element for each Resolver
    -- configuration that is associated with the current Amazon Web Services
    -- account.
    ListResolverConfigsResponse -> Maybe [ResolverConfig]
resolverConfigs :: Prelude.Maybe [ResolverConfig],
    -- | The response's http status code.
    ListResolverConfigsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListResolverConfigsResponse -> ListResolverConfigsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolverConfigsResponse -> ListResolverConfigsResponse -> Bool
$c/= :: ListResolverConfigsResponse -> ListResolverConfigsResponse -> Bool
== :: ListResolverConfigsResponse -> ListResolverConfigsResponse -> Bool
$c== :: ListResolverConfigsResponse -> ListResolverConfigsResponse -> Bool
Prelude.Eq, ReadPrec [ListResolverConfigsResponse]
ReadPrec ListResolverConfigsResponse
Int -> ReadS ListResolverConfigsResponse
ReadS [ListResolverConfigsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolverConfigsResponse]
$creadListPrec :: ReadPrec [ListResolverConfigsResponse]
readPrec :: ReadPrec ListResolverConfigsResponse
$creadPrec :: ReadPrec ListResolverConfigsResponse
readList :: ReadS [ListResolverConfigsResponse]
$creadList :: ReadS [ListResolverConfigsResponse]
readsPrec :: Int -> ReadS ListResolverConfigsResponse
$creadsPrec :: Int -> ReadS ListResolverConfigsResponse
Prelude.Read, Int -> ListResolverConfigsResponse -> ShowS
[ListResolverConfigsResponse] -> ShowS
ListResolverConfigsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolverConfigsResponse] -> ShowS
$cshowList :: [ListResolverConfigsResponse] -> ShowS
show :: ListResolverConfigsResponse -> String
$cshow :: ListResolverConfigsResponse -> String
showsPrec :: Int -> ListResolverConfigsResponse -> ShowS
$cshowsPrec :: Int -> ListResolverConfigsResponse -> ShowS
Prelude.Show, forall x.
Rep ListResolverConfigsResponse x -> ListResolverConfigsResponse
forall x.
ListResolverConfigsResponse -> Rep ListResolverConfigsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResolverConfigsResponse x -> ListResolverConfigsResponse
$cfrom :: forall x.
ListResolverConfigsResponse -> Rep ListResolverConfigsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListResolverConfigsResponse' 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', 'listResolverConfigsResponse_nextToken' - If a response includes the last of the Resolver configurations that are
-- associated with the current Amazon Web Services account, @NextToken@
-- doesn\'t appear in the response.
--
-- If a response doesn\'t include the last of the configurations, you can
-- get more configurations by submitting another @ListResolverConfigs@
-- request. Get the value of @NextToken@ that Amazon Route 53 returned in
-- the previous response and include it in @NextToken@ in the next request.
--
-- 'resolverConfigs', 'listResolverConfigsResponse_resolverConfigs' - An array that contains one @ResolverConfigs@ element for each Resolver
-- configuration that is associated with the current Amazon Web Services
-- account.
--
-- 'httpStatus', 'listResolverConfigsResponse_httpStatus' - The response's http status code.
newListResolverConfigsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListResolverConfigsResponse
newListResolverConfigsResponse :: Int -> ListResolverConfigsResponse
newListResolverConfigsResponse Int
pHttpStatus_ =
  ListResolverConfigsResponse'
    { $sel:nextToken:ListResolverConfigsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:resolverConfigs:ListResolverConfigsResponse' :: Maybe [ResolverConfig]
resolverConfigs = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListResolverConfigsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | If a response includes the last of the Resolver configurations that are
-- associated with the current Amazon Web Services account, @NextToken@
-- doesn\'t appear in the response.
--
-- If a response doesn\'t include the last of the configurations, you can
-- get more configurations by submitting another @ListResolverConfigs@
-- request. Get the value of @NextToken@ that Amazon Route 53 returned in
-- the previous response and include it in @NextToken@ in the next request.
listResolverConfigsResponse_nextToken :: Lens.Lens' ListResolverConfigsResponse (Prelude.Maybe Prelude.Text)
listResolverConfigsResponse_nextToken :: Lens' ListResolverConfigsResponse (Maybe Text)
listResolverConfigsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverConfigsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolverConfigsResponse' :: ListResolverConfigsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolverConfigsResponse
s@ListResolverConfigsResponse' {} Maybe Text
a -> ListResolverConfigsResponse
s {$sel:nextToken:ListResolverConfigsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolverConfigsResponse)

-- | An array that contains one @ResolverConfigs@ element for each Resolver
-- configuration that is associated with the current Amazon Web Services
-- account.
listResolverConfigsResponse_resolverConfigs :: Lens.Lens' ListResolverConfigsResponse (Prelude.Maybe [ResolverConfig])
listResolverConfigsResponse_resolverConfigs :: Lens' ListResolverConfigsResponse (Maybe [ResolverConfig])
listResolverConfigsResponse_resolverConfigs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverConfigsResponse' {Maybe [ResolverConfig]
resolverConfigs :: Maybe [ResolverConfig]
$sel:resolverConfigs:ListResolverConfigsResponse' :: ListResolverConfigsResponse -> Maybe [ResolverConfig]
resolverConfigs} -> Maybe [ResolverConfig]
resolverConfigs) (\s :: ListResolverConfigsResponse
s@ListResolverConfigsResponse' {} Maybe [ResolverConfig]
a -> ListResolverConfigsResponse
s {$sel:resolverConfigs:ListResolverConfigsResponse' :: Maybe [ResolverConfig]
resolverConfigs = Maybe [ResolverConfig]
a} :: ListResolverConfigsResponse) 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.
listResolverConfigsResponse_httpStatus :: Lens.Lens' ListResolverConfigsResponse Prelude.Int
listResolverConfigsResponse_httpStatus :: Lens' ListResolverConfigsResponse Int
listResolverConfigsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverConfigsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListResolverConfigsResponse' :: ListResolverConfigsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListResolverConfigsResponse
s@ListResolverConfigsResponse' {} Int
a -> ListResolverConfigsResponse
s {$sel:httpStatus:ListResolverConfigsResponse' :: Int
httpStatus = Int
a} :: ListResolverConfigsResponse)

instance Prelude.NFData ListResolverConfigsResponse where
  rnf :: ListResolverConfigsResponse -> ()
rnf ListResolverConfigsResponse' {Int
Maybe [ResolverConfig]
Maybe Text
httpStatus :: Int
resolverConfigs :: Maybe [ResolverConfig]
nextToken :: Maybe Text
$sel:httpStatus:ListResolverConfigsResponse' :: ListResolverConfigsResponse -> Int
$sel:resolverConfigs:ListResolverConfigsResponse' :: ListResolverConfigsResponse -> Maybe [ResolverConfig]
$sel:nextToken:ListResolverConfigsResponse' :: ListResolverConfigsResponse -> 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 [ResolverConfig]
resolverConfigs
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus