{-# 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.ListResolverQueryLogConfigAssociations
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists information about associations between Amazon VPCs and query
-- logging configurations.
--
-- This operation returns paginated results.
module Amazonka.Route53Resolver.ListResolverQueryLogConfigAssociations
  ( -- * Creating a Request
    ListResolverQueryLogConfigAssociations (..),
    newListResolverQueryLogConfigAssociations,

    -- * Request Lenses
    listResolverQueryLogConfigAssociations_filters,
    listResolverQueryLogConfigAssociations_maxResults,
    listResolverQueryLogConfigAssociations_nextToken,
    listResolverQueryLogConfigAssociations_sortBy,
    listResolverQueryLogConfigAssociations_sortOrder,

    -- * Destructuring the Response
    ListResolverQueryLogConfigAssociationsResponse (..),
    newListResolverQueryLogConfigAssociationsResponse,

    -- * Response Lenses
    listResolverQueryLogConfigAssociationsResponse_nextToken,
    listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations,
    listResolverQueryLogConfigAssociationsResponse_totalCount,
    listResolverQueryLogConfigAssociationsResponse_totalFilteredCount,
    listResolverQueryLogConfigAssociationsResponse_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:/ 'newListResolverQueryLogConfigAssociations' smart constructor.
data ListResolverQueryLogConfigAssociations = ListResolverQueryLogConfigAssociations'
  { -- | An optional specification to return a subset of query logging
    -- associations.
    --
    -- If you submit a second or subsequent
    -- @ListResolverQueryLogConfigAssociations@ request and specify the
    -- @NextToken@ parameter, you must use the same values for @Filters@, if
    -- any, as in the previous request.
    ListResolverQueryLogConfigAssociations -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
    -- | The maximum number of query logging associations that you want to return
    -- in the response to a @ListResolverQueryLogConfigAssociations@ request.
    -- If you don\'t specify a value for @MaxResults@, Resolver returns up to
    -- 100 query logging associations.
    ListResolverQueryLogConfigAssociations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | For the first @ListResolverQueryLogConfigAssociations@ request, omit
    -- this value.
    --
    -- If there are more than @MaxResults@ query logging associations that
    -- match the values that you specify for @Filters@, you can submit another
    -- @ListResolverQueryLogConfigAssociations@ request to get the next group
    -- of associations. In the next request, specify the value of @NextToken@
    -- from the previous response.
    ListResolverQueryLogConfigAssociations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The element that you want Resolver to sort query logging associations
    -- by.
    --
    -- If you submit a second or subsequent
    -- @ListResolverQueryLogConfigAssociations@ request and specify the
    -- @NextToken@ parameter, you must use the same value for @SortBy@, if any,
    -- as in the previous request.
    --
    -- Valid values include the following elements:
    --
    -- -   @CreationTime@: The ID of the query logging association.
    --
    -- -   @Error@: If the value of @Status@ is @FAILED@, the value of @Error@
    --     indicates the cause:
    --
    --     -   @DESTINATION_NOT_FOUND@: The specified destination (for example,
    --         an Amazon S3 bucket) was deleted.
    --
    --     -   @ACCESS_DENIED@: Permissions don\'t allow sending logs to the
    --         destination.
    --
    --     If @Status@ is a value other than @FAILED@, @ERROR@ is null.
    --
    -- -   @Id@: The ID of the query logging association
    --
    -- -   @ResolverQueryLogConfigId@: The ID of the query logging
    --     configuration
    --
    -- -   @ResourceId@: The ID of the VPC that is associated with the query
    --     logging configuration
    --
    -- -   @Status@: The current status of the configuration. Valid values
    --     include the following:
    --
    --     -   @CREATING@: Resolver is creating an association between an
    --         Amazon VPC and a query logging configuration.
    --
    --     -   @CREATED@: The association between an Amazon VPC and a query
    --         logging configuration was successfully created. Resolver is
    --         logging queries that originate in the specified VPC.
    --
    --     -   @DELETING@: Resolver is deleting this query logging association.
    --
    --     -   @FAILED@: Resolver either couldn\'t create or couldn\'t delete
    --         the query logging association. Here are two common causes:
    --
    --         -   The specified destination (for example, an Amazon S3 bucket)
    --             was deleted.
    --
    --         -   Permissions don\'t allow sending logs to the destination.
    ListResolverQueryLogConfigAssociations -> Maybe Text
sortBy :: Prelude.Maybe Prelude.Text,
    -- | If you specified a value for @SortBy@, the order that you want query
    -- logging associations to be listed in, @ASCENDING@ or @DESCENDING@.
    --
    -- If you submit a second or subsequent
    -- @ListResolverQueryLogConfigAssociations@ request and specify the
    -- @NextToken@ parameter, you must use the same value for @SortOrder@, if
    -- any, as in the previous request.
    ListResolverQueryLogConfigAssociations -> Maybe SortOrder
sortOrder :: Prelude.Maybe SortOrder
  }
  deriving (ListResolverQueryLogConfigAssociations
-> ListResolverQueryLogConfigAssociations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolverQueryLogConfigAssociations
-> ListResolverQueryLogConfigAssociations -> Bool
$c/= :: ListResolverQueryLogConfigAssociations
-> ListResolverQueryLogConfigAssociations -> Bool
== :: ListResolverQueryLogConfigAssociations
-> ListResolverQueryLogConfigAssociations -> Bool
$c== :: ListResolverQueryLogConfigAssociations
-> ListResolverQueryLogConfigAssociations -> Bool
Prelude.Eq, ReadPrec [ListResolverQueryLogConfigAssociations]
ReadPrec ListResolverQueryLogConfigAssociations
Int -> ReadS ListResolverQueryLogConfigAssociations
ReadS [ListResolverQueryLogConfigAssociations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolverQueryLogConfigAssociations]
$creadListPrec :: ReadPrec [ListResolverQueryLogConfigAssociations]
readPrec :: ReadPrec ListResolverQueryLogConfigAssociations
$creadPrec :: ReadPrec ListResolverQueryLogConfigAssociations
readList :: ReadS [ListResolverQueryLogConfigAssociations]
$creadList :: ReadS [ListResolverQueryLogConfigAssociations]
readsPrec :: Int -> ReadS ListResolverQueryLogConfigAssociations
$creadsPrec :: Int -> ReadS ListResolverQueryLogConfigAssociations
Prelude.Read, Int -> ListResolverQueryLogConfigAssociations -> ShowS
[ListResolverQueryLogConfigAssociations] -> ShowS
ListResolverQueryLogConfigAssociations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolverQueryLogConfigAssociations] -> ShowS
$cshowList :: [ListResolverQueryLogConfigAssociations] -> ShowS
show :: ListResolverQueryLogConfigAssociations -> String
$cshow :: ListResolverQueryLogConfigAssociations -> String
showsPrec :: Int -> ListResolverQueryLogConfigAssociations -> ShowS
$cshowsPrec :: Int -> ListResolverQueryLogConfigAssociations -> ShowS
Prelude.Show, forall x.
Rep ListResolverQueryLogConfigAssociations x
-> ListResolverQueryLogConfigAssociations
forall x.
ListResolverQueryLogConfigAssociations
-> Rep ListResolverQueryLogConfigAssociations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResolverQueryLogConfigAssociations x
-> ListResolverQueryLogConfigAssociations
$cfrom :: forall x.
ListResolverQueryLogConfigAssociations
-> Rep ListResolverQueryLogConfigAssociations x
Prelude.Generic)

-- |
-- Create a value of 'ListResolverQueryLogConfigAssociations' 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:
--
-- 'filters', 'listResolverQueryLogConfigAssociations_filters' - An optional specification to return a subset of query logging
-- associations.
--
-- If you submit a second or subsequent
-- @ListResolverQueryLogConfigAssociations@ request and specify the
-- @NextToken@ parameter, you must use the same values for @Filters@, if
-- any, as in the previous request.
--
-- 'maxResults', 'listResolverQueryLogConfigAssociations_maxResults' - The maximum number of query logging associations that you want to return
-- in the response to a @ListResolverQueryLogConfigAssociations@ request.
-- If you don\'t specify a value for @MaxResults@, Resolver returns up to
-- 100 query logging associations.
--
-- 'nextToken', 'listResolverQueryLogConfigAssociations_nextToken' - For the first @ListResolverQueryLogConfigAssociations@ request, omit
-- this value.
--
-- If there are more than @MaxResults@ query logging associations that
-- match the values that you specify for @Filters@, you can submit another
-- @ListResolverQueryLogConfigAssociations@ request to get the next group
-- of associations. In the next request, specify the value of @NextToken@
-- from the previous response.
--
-- 'sortBy', 'listResolverQueryLogConfigAssociations_sortBy' - The element that you want Resolver to sort query logging associations
-- by.
--
-- If you submit a second or subsequent
-- @ListResolverQueryLogConfigAssociations@ request and specify the
-- @NextToken@ parameter, you must use the same value for @SortBy@, if any,
-- as in the previous request.
--
-- Valid values include the following elements:
--
-- -   @CreationTime@: The ID of the query logging association.
--
-- -   @Error@: If the value of @Status@ is @FAILED@, the value of @Error@
--     indicates the cause:
--
--     -   @DESTINATION_NOT_FOUND@: The specified destination (for example,
--         an Amazon S3 bucket) was deleted.
--
--     -   @ACCESS_DENIED@: Permissions don\'t allow sending logs to the
--         destination.
--
--     If @Status@ is a value other than @FAILED@, @ERROR@ is null.
--
-- -   @Id@: The ID of the query logging association
--
-- -   @ResolverQueryLogConfigId@: The ID of the query logging
--     configuration
--
-- -   @ResourceId@: The ID of the VPC that is associated with the query
--     logging configuration
--
-- -   @Status@: The current status of the configuration. Valid values
--     include the following:
--
--     -   @CREATING@: Resolver is creating an association between an
--         Amazon VPC and a query logging configuration.
--
--     -   @CREATED@: The association between an Amazon VPC and a query
--         logging configuration was successfully created. Resolver is
--         logging queries that originate in the specified VPC.
--
--     -   @DELETING@: Resolver is deleting this query logging association.
--
--     -   @FAILED@: Resolver either couldn\'t create or couldn\'t delete
--         the query logging association. Here are two common causes:
--
--         -   The specified destination (for example, an Amazon S3 bucket)
--             was deleted.
--
--         -   Permissions don\'t allow sending logs to the destination.
--
-- 'sortOrder', 'listResolverQueryLogConfigAssociations_sortOrder' - If you specified a value for @SortBy@, the order that you want query
-- logging associations to be listed in, @ASCENDING@ or @DESCENDING@.
--
-- If you submit a second or subsequent
-- @ListResolverQueryLogConfigAssociations@ request and specify the
-- @NextToken@ parameter, you must use the same value for @SortOrder@, if
-- any, as in the previous request.
newListResolverQueryLogConfigAssociations ::
  ListResolverQueryLogConfigAssociations
newListResolverQueryLogConfigAssociations :: ListResolverQueryLogConfigAssociations
newListResolverQueryLogConfigAssociations =
  ListResolverQueryLogConfigAssociations'
    { $sel:filters:ListResolverQueryLogConfigAssociations' :: Maybe [Filter]
filters =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListResolverQueryLogConfigAssociations' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListResolverQueryLogConfigAssociations' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:sortBy:ListResolverQueryLogConfigAssociations' :: Maybe Text
sortBy = forall a. Maybe a
Prelude.Nothing,
      $sel:sortOrder:ListResolverQueryLogConfigAssociations' :: Maybe SortOrder
sortOrder = forall a. Maybe a
Prelude.Nothing
    }

-- | An optional specification to return a subset of query logging
-- associations.
--
-- If you submit a second or subsequent
-- @ListResolverQueryLogConfigAssociations@ request and specify the
-- @NextToken@ parameter, you must use the same values for @Filters@, if
-- any, as in the previous request.
listResolverQueryLogConfigAssociations_filters :: Lens.Lens' ListResolverQueryLogConfigAssociations (Prelude.Maybe [Filter])
listResolverQueryLogConfigAssociations_filters :: Lens' ListResolverQueryLogConfigAssociations (Maybe [Filter])
listResolverQueryLogConfigAssociations_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociations' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: ListResolverQueryLogConfigAssociations
s@ListResolverQueryLogConfigAssociations' {} Maybe [Filter]
a -> ListResolverQueryLogConfigAssociations
s {$sel:filters:ListResolverQueryLogConfigAssociations' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: ListResolverQueryLogConfigAssociations) 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 maximum number of query logging associations that you want to return
-- in the response to a @ListResolverQueryLogConfigAssociations@ request.
-- If you don\'t specify a value for @MaxResults@, Resolver returns up to
-- 100 query logging associations.
listResolverQueryLogConfigAssociations_maxResults :: Lens.Lens' ListResolverQueryLogConfigAssociations (Prelude.Maybe Prelude.Natural)
listResolverQueryLogConfigAssociations_maxResults :: Lens' ListResolverQueryLogConfigAssociations (Maybe Natural)
listResolverQueryLogConfigAssociations_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListResolverQueryLogConfigAssociations
s@ListResolverQueryLogConfigAssociations' {} Maybe Natural
a -> ListResolverQueryLogConfigAssociations
s {$sel:maxResults:ListResolverQueryLogConfigAssociations' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListResolverQueryLogConfigAssociations)

-- | For the first @ListResolverQueryLogConfigAssociations@ request, omit
-- this value.
--
-- If there are more than @MaxResults@ query logging associations that
-- match the values that you specify for @Filters@, you can submit another
-- @ListResolverQueryLogConfigAssociations@ request to get the next group
-- of associations. In the next request, specify the value of @NextToken@
-- from the previous response.
listResolverQueryLogConfigAssociations_nextToken :: Lens.Lens' ListResolverQueryLogConfigAssociations (Prelude.Maybe Prelude.Text)
listResolverQueryLogConfigAssociations_nextToken :: Lens' ListResolverQueryLogConfigAssociations (Maybe Text)
listResolverQueryLogConfigAssociations_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolverQueryLogConfigAssociations
s@ListResolverQueryLogConfigAssociations' {} Maybe Text
a -> ListResolverQueryLogConfigAssociations
s {$sel:nextToken:ListResolverQueryLogConfigAssociations' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolverQueryLogConfigAssociations)

-- | The element that you want Resolver to sort query logging associations
-- by.
--
-- If you submit a second or subsequent
-- @ListResolverQueryLogConfigAssociations@ request and specify the
-- @NextToken@ parameter, you must use the same value for @SortBy@, if any,
-- as in the previous request.
--
-- Valid values include the following elements:
--
-- -   @CreationTime@: The ID of the query logging association.
--
-- -   @Error@: If the value of @Status@ is @FAILED@, the value of @Error@
--     indicates the cause:
--
--     -   @DESTINATION_NOT_FOUND@: The specified destination (for example,
--         an Amazon S3 bucket) was deleted.
--
--     -   @ACCESS_DENIED@: Permissions don\'t allow sending logs to the
--         destination.
--
--     If @Status@ is a value other than @FAILED@, @ERROR@ is null.
--
-- -   @Id@: The ID of the query logging association
--
-- -   @ResolverQueryLogConfigId@: The ID of the query logging
--     configuration
--
-- -   @ResourceId@: The ID of the VPC that is associated with the query
--     logging configuration
--
-- -   @Status@: The current status of the configuration. Valid values
--     include the following:
--
--     -   @CREATING@: Resolver is creating an association between an
--         Amazon VPC and a query logging configuration.
--
--     -   @CREATED@: The association between an Amazon VPC and a query
--         logging configuration was successfully created. Resolver is
--         logging queries that originate in the specified VPC.
--
--     -   @DELETING@: Resolver is deleting this query logging association.
--
--     -   @FAILED@: Resolver either couldn\'t create or couldn\'t delete
--         the query logging association. Here are two common causes:
--
--         -   The specified destination (for example, an Amazon S3 bucket)
--             was deleted.
--
--         -   Permissions don\'t allow sending logs to the destination.
listResolverQueryLogConfigAssociations_sortBy :: Lens.Lens' ListResolverQueryLogConfigAssociations (Prelude.Maybe Prelude.Text)
listResolverQueryLogConfigAssociations_sortBy :: Lens' ListResolverQueryLogConfigAssociations (Maybe Text)
listResolverQueryLogConfigAssociations_sortBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociations' {Maybe Text
sortBy :: Maybe Text
$sel:sortBy:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
sortBy} -> Maybe Text
sortBy) (\s :: ListResolverQueryLogConfigAssociations
s@ListResolverQueryLogConfigAssociations' {} Maybe Text
a -> ListResolverQueryLogConfigAssociations
s {$sel:sortBy:ListResolverQueryLogConfigAssociations' :: Maybe Text
sortBy = Maybe Text
a} :: ListResolverQueryLogConfigAssociations)

-- | If you specified a value for @SortBy@, the order that you want query
-- logging associations to be listed in, @ASCENDING@ or @DESCENDING@.
--
-- If you submit a second or subsequent
-- @ListResolverQueryLogConfigAssociations@ request and specify the
-- @NextToken@ parameter, you must use the same value for @SortOrder@, if
-- any, as in the previous request.
listResolverQueryLogConfigAssociations_sortOrder :: Lens.Lens' ListResolverQueryLogConfigAssociations (Prelude.Maybe SortOrder)
listResolverQueryLogConfigAssociations_sortOrder :: Lens' ListResolverQueryLogConfigAssociations (Maybe SortOrder)
listResolverQueryLogConfigAssociations_sortOrder = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociations' {Maybe SortOrder
sortOrder :: Maybe SortOrder
$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe SortOrder
sortOrder} -> Maybe SortOrder
sortOrder) (\s :: ListResolverQueryLogConfigAssociations
s@ListResolverQueryLogConfigAssociations' {} Maybe SortOrder
a -> ListResolverQueryLogConfigAssociations
s {$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: Maybe SortOrder
sortOrder = Maybe SortOrder
a} :: ListResolverQueryLogConfigAssociations)

instance
  Core.AWSPager
    ListResolverQueryLogConfigAssociations
  where
  page :: ListResolverQueryLogConfigAssociations
-> AWSResponse ListResolverQueryLogConfigAssociations
-> Maybe ListResolverQueryLogConfigAssociations
page ListResolverQueryLogConfigAssociations
rq AWSResponse ListResolverQueryLogConfigAssociations
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListResolverQueryLogConfigAssociations
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListResolverQueryLogConfigAssociationsResponse (Maybe Text)
listResolverQueryLogConfigAssociationsResponse_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 ListResolverQueryLogConfigAssociations
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  ListResolverQueryLogConfigAssociationsResponse
  (Maybe [ResolverQueryLogConfigAssociation])
listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations
            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.$ ListResolverQueryLogConfigAssociations
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListResolverQueryLogConfigAssociations (Maybe Text)
listResolverQueryLogConfigAssociations_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListResolverQueryLogConfigAssociations
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListResolverQueryLogConfigAssociationsResponse (Maybe Text)
listResolverQueryLogConfigAssociationsResponse_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
    ListResolverQueryLogConfigAssociations
  where
  type
    AWSResponse
      ListResolverQueryLogConfigAssociations =
      ListResolverQueryLogConfigAssociationsResponse
  request :: (Service -> Service)
-> ListResolverQueryLogConfigAssociations
-> Request ListResolverQueryLogConfigAssociations
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 ListResolverQueryLogConfigAssociations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse ListResolverQueryLogConfigAssociations)))
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 [ResolverQueryLogConfigAssociation]
-> Maybe Int
-> Maybe Int
-> Int
-> ListResolverQueryLogConfigAssociationsResponse
ListResolverQueryLogConfigAssociationsResponse'
            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
"ResolverQueryLogConfigAssociations"
                            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.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TotalCount")
            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
"TotalFilteredCount")
            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
    ListResolverQueryLogConfigAssociations
  where
  hashWithSalt :: Int -> ListResolverQueryLogConfigAssociations -> Int
hashWithSalt
    Int
_salt
    ListResolverQueryLogConfigAssociations' {Maybe Natural
Maybe [Filter]
Maybe Text
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe SortOrder
$sel:sortBy:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:nextToken:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:maxResults:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Natural
$sel:filters:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe [Filter]
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Filter]
filters
        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` Maybe Text
sortBy
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SortOrder
sortOrder

instance
  Prelude.NFData
    ListResolverQueryLogConfigAssociations
  where
  rnf :: ListResolverQueryLogConfigAssociations -> ()
rnf ListResolverQueryLogConfigAssociations' {Maybe Natural
Maybe [Filter]
Maybe Text
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe SortOrder
$sel:sortBy:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:nextToken:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:maxResults:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Natural
$sel:filters:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe [Filter]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Filter]
filters
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 Maybe Text
sortBy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SortOrder
sortOrder

instance
  Data.ToHeaders
    ListResolverQueryLogConfigAssociations
  where
  toHeaders :: ListResolverQueryLogConfigAssociations -> 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.ListResolverQueryLogConfigAssociations" ::
                          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
    ListResolverQueryLogConfigAssociations
  where
  toJSON :: ListResolverQueryLogConfigAssociations -> Value
toJSON ListResolverQueryLogConfigAssociations' {Maybe Natural
Maybe [Filter]
Maybe Text
Maybe SortOrder
sortOrder :: Maybe SortOrder
sortBy :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe [Filter]
$sel:sortOrder:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe SortOrder
$sel:sortBy:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:nextToken:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Text
$sel:maxResults:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe Natural
$sel:filters:ListResolverQueryLogConfigAssociations' :: ListResolverQueryLogConfigAssociations -> Maybe [Filter]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Filters" 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 [Filter]
filters,
            (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,
            (Key
"SortBy" 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
sortBy,
            (Key
"SortOrder" 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 SortOrder
sortOrder
          ]
      )

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

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

-- | /See:/ 'newListResolverQueryLogConfigAssociationsResponse' smart constructor.
data ListResolverQueryLogConfigAssociationsResponse = ListResolverQueryLogConfigAssociationsResponse'
  { -- | If there are more than @MaxResults@ query logging associations, you can
    -- submit another @ListResolverQueryLogConfigAssociations@ request to get
    -- the next group of associations. In the next request, specify the value
    -- of @NextToken@ from the previous response.
    ListResolverQueryLogConfigAssociationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A list that contains one @ResolverQueryLogConfigAssociations@ element
    -- for each query logging association that matches the values that you
    -- specified for @Filter@.
    ListResolverQueryLogConfigAssociationsResponse
-> Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations :: Prelude.Maybe [ResolverQueryLogConfigAssociation],
    -- | The total number of query logging associations that were created by the
    -- current account in the specified Region. This count can differ from the
    -- number of associations that are returned in a
    -- @ListResolverQueryLogConfigAssociations@ response, depending on the
    -- values that you specify in the request.
    ListResolverQueryLogConfigAssociationsResponse -> Maybe Int
totalCount :: Prelude.Maybe Prelude.Int,
    -- | The total number of query logging associations that were created by the
    -- current account in the specified Region and that match the filters that
    -- were specified in the @ListResolverQueryLogConfigAssociations@ request.
    -- For the total number of associations that were created by the current
    -- account in the specified Region, see @TotalCount@.
    ListResolverQueryLogConfigAssociationsResponse -> Maybe Int
totalFilteredCount :: Prelude.Maybe Prelude.Int,
    -- | The response's http status code.
    ListResolverQueryLogConfigAssociationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListResolverQueryLogConfigAssociationsResponse
-> ListResolverQueryLogConfigAssociationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResolverQueryLogConfigAssociationsResponse
-> ListResolverQueryLogConfigAssociationsResponse -> Bool
$c/= :: ListResolverQueryLogConfigAssociationsResponse
-> ListResolverQueryLogConfigAssociationsResponse -> Bool
== :: ListResolverQueryLogConfigAssociationsResponse
-> ListResolverQueryLogConfigAssociationsResponse -> Bool
$c== :: ListResolverQueryLogConfigAssociationsResponse
-> ListResolverQueryLogConfigAssociationsResponse -> Bool
Prelude.Eq, ReadPrec [ListResolverQueryLogConfigAssociationsResponse]
ReadPrec ListResolverQueryLogConfigAssociationsResponse
Int -> ReadS ListResolverQueryLogConfigAssociationsResponse
ReadS [ListResolverQueryLogConfigAssociationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResolverQueryLogConfigAssociationsResponse]
$creadListPrec :: ReadPrec [ListResolverQueryLogConfigAssociationsResponse]
readPrec :: ReadPrec ListResolverQueryLogConfigAssociationsResponse
$creadPrec :: ReadPrec ListResolverQueryLogConfigAssociationsResponse
readList :: ReadS [ListResolverQueryLogConfigAssociationsResponse]
$creadList :: ReadS [ListResolverQueryLogConfigAssociationsResponse]
readsPrec :: Int -> ReadS ListResolverQueryLogConfigAssociationsResponse
$creadsPrec :: Int -> ReadS ListResolverQueryLogConfigAssociationsResponse
Prelude.Read, Int -> ListResolverQueryLogConfigAssociationsResponse -> ShowS
[ListResolverQueryLogConfigAssociationsResponse] -> ShowS
ListResolverQueryLogConfigAssociationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResolverQueryLogConfigAssociationsResponse] -> ShowS
$cshowList :: [ListResolverQueryLogConfigAssociationsResponse] -> ShowS
show :: ListResolverQueryLogConfigAssociationsResponse -> String
$cshow :: ListResolverQueryLogConfigAssociationsResponse -> String
showsPrec :: Int -> ListResolverQueryLogConfigAssociationsResponse -> ShowS
$cshowsPrec :: Int -> ListResolverQueryLogConfigAssociationsResponse -> ShowS
Prelude.Show, forall x.
Rep ListResolverQueryLogConfigAssociationsResponse x
-> ListResolverQueryLogConfigAssociationsResponse
forall x.
ListResolverQueryLogConfigAssociationsResponse
-> Rep ListResolverQueryLogConfigAssociationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResolverQueryLogConfigAssociationsResponse x
-> ListResolverQueryLogConfigAssociationsResponse
$cfrom :: forall x.
ListResolverQueryLogConfigAssociationsResponse
-> Rep ListResolverQueryLogConfigAssociationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListResolverQueryLogConfigAssociationsResponse' 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', 'listResolverQueryLogConfigAssociationsResponse_nextToken' - If there are more than @MaxResults@ query logging associations, you can
-- submit another @ListResolverQueryLogConfigAssociations@ request to get
-- the next group of associations. In the next request, specify the value
-- of @NextToken@ from the previous response.
--
-- 'resolverQueryLogConfigAssociations', 'listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations' - A list that contains one @ResolverQueryLogConfigAssociations@ element
-- for each query logging association that matches the values that you
-- specified for @Filter@.
--
-- 'totalCount', 'listResolverQueryLogConfigAssociationsResponse_totalCount' - The total number of query logging associations that were created by the
-- current account in the specified Region. This count can differ from the
-- number of associations that are returned in a
-- @ListResolverQueryLogConfigAssociations@ response, depending on the
-- values that you specify in the request.
--
-- 'totalFilteredCount', 'listResolverQueryLogConfigAssociationsResponse_totalFilteredCount' - The total number of query logging associations that were created by the
-- current account in the specified Region and that match the filters that
-- were specified in the @ListResolverQueryLogConfigAssociations@ request.
-- For the total number of associations that were created by the current
-- account in the specified Region, see @TotalCount@.
--
-- 'httpStatus', 'listResolverQueryLogConfigAssociationsResponse_httpStatus' - The response's http status code.
newListResolverQueryLogConfigAssociationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListResolverQueryLogConfigAssociationsResponse
newListResolverQueryLogConfigAssociationsResponse :: Int -> ListResolverQueryLogConfigAssociationsResponse
newListResolverQueryLogConfigAssociationsResponse
  Int
pHttpStatus_ =
    ListResolverQueryLogConfigAssociationsResponse'
      { $sel:nextToken:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:resolverQueryLogConfigAssociations:ListResolverQueryLogConfigAssociationsResponse' :: Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations =
          forall a. Maybe a
Prelude.Nothing,
        $sel:totalCount:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Int
totalCount =
          forall a. Maybe a
Prelude.Nothing,
        $sel:totalFilteredCount:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Int
totalFilteredCount =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListResolverQueryLogConfigAssociationsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | If there are more than @MaxResults@ query logging associations, you can
-- submit another @ListResolverQueryLogConfigAssociations@ request to get
-- the next group of associations. In the next request, specify the value
-- of @NextToken@ from the previous response.
listResolverQueryLogConfigAssociationsResponse_nextToken :: Lens.Lens' ListResolverQueryLogConfigAssociationsResponse (Prelude.Maybe Prelude.Text)
listResolverQueryLogConfigAssociationsResponse_nextToken :: Lens' ListResolverQueryLogConfigAssociationsResponse (Maybe Text)
listResolverQueryLogConfigAssociationsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResolverQueryLogConfigAssociationsResponse
s@ListResolverQueryLogConfigAssociationsResponse' {} Maybe Text
a -> ListResolverQueryLogConfigAssociationsResponse
s {$sel:nextToken:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListResolverQueryLogConfigAssociationsResponse)

-- | A list that contains one @ResolverQueryLogConfigAssociations@ element
-- for each query logging association that matches the values that you
-- specified for @Filter@.
listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations :: Lens.Lens' ListResolverQueryLogConfigAssociationsResponse (Prelude.Maybe [ResolverQueryLogConfigAssociation])
listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations :: Lens'
  ListResolverQueryLogConfigAssociationsResponse
  (Maybe [ResolverQueryLogConfigAssociation])
listResolverQueryLogConfigAssociationsResponse_resolverQueryLogConfigAssociations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociationsResponse' {Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations :: Maybe [ResolverQueryLogConfigAssociation]
$sel:resolverQueryLogConfigAssociations:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse
-> Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations} -> Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations) (\s :: ListResolverQueryLogConfigAssociationsResponse
s@ListResolverQueryLogConfigAssociationsResponse' {} Maybe [ResolverQueryLogConfigAssociation]
a -> ListResolverQueryLogConfigAssociationsResponse
s {$sel:resolverQueryLogConfigAssociations:ListResolverQueryLogConfigAssociationsResponse' :: Maybe [ResolverQueryLogConfigAssociation]
resolverQueryLogConfigAssociations = Maybe [ResolverQueryLogConfigAssociation]
a} :: ListResolverQueryLogConfigAssociationsResponse) 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 total number of query logging associations that were created by the
-- current account in the specified Region. This count can differ from the
-- number of associations that are returned in a
-- @ListResolverQueryLogConfigAssociations@ response, depending on the
-- values that you specify in the request.
listResolverQueryLogConfigAssociationsResponse_totalCount :: Lens.Lens' ListResolverQueryLogConfigAssociationsResponse (Prelude.Maybe Prelude.Int)
listResolverQueryLogConfigAssociationsResponse_totalCount :: Lens' ListResolverQueryLogConfigAssociationsResponse (Maybe Int)
listResolverQueryLogConfigAssociationsResponse_totalCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociationsResponse' {Maybe Int
totalCount :: Maybe Int
$sel:totalCount:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Maybe Int
totalCount} -> Maybe Int
totalCount) (\s :: ListResolverQueryLogConfigAssociationsResponse
s@ListResolverQueryLogConfigAssociationsResponse' {} Maybe Int
a -> ListResolverQueryLogConfigAssociationsResponse
s {$sel:totalCount:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Int
totalCount = Maybe Int
a} :: ListResolverQueryLogConfigAssociationsResponse)

-- | The total number of query logging associations that were created by the
-- current account in the specified Region and that match the filters that
-- were specified in the @ListResolverQueryLogConfigAssociations@ request.
-- For the total number of associations that were created by the current
-- account in the specified Region, see @TotalCount@.
listResolverQueryLogConfigAssociationsResponse_totalFilteredCount :: Lens.Lens' ListResolverQueryLogConfigAssociationsResponse (Prelude.Maybe Prelude.Int)
listResolverQueryLogConfigAssociationsResponse_totalFilteredCount :: Lens' ListResolverQueryLogConfigAssociationsResponse (Maybe Int)
listResolverQueryLogConfigAssociationsResponse_totalFilteredCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResolverQueryLogConfigAssociationsResponse' {Maybe Int
totalFilteredCount :: Maybe Int
$sel:totalFilteredCount:ListResolverQueryLogConfigAssociationsResponse' :: ListResolverQueryLogConfigAssociationsResponse -> Maybe Int
totalFilteredCount} -> Maybe Int
totalFilteredCount) (\s :: ListResolverQueryLogConfigAssociationsResponse
s@ListResolverQueryLogConfigAssociationsResponse' {} Maybe Int
a -> ListResolverQueryLogConfigAssociationsResponse
s {$sel:totalFilteredCount:ListResolverQueryLogConfigAssociationsResponse' :: Maybe Int
totalFilteredCount = Maybe Int
a} :: ListResolverQueryLogConfigAssociationsResponse)

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

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