{-# 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.WAFV2.ListLoggingConfigurations
-- 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 an array of your LoggingConfiguration objects.
module Amazonka.WAFV2.ListLoggingConfigurations
  ( -- * Creating a Request
    ListLoggingConfigurations (..),
    newListLoggingConfigurations,

    -- * Request Lenses
    listLoggingConfigurations_limit,
    listLoggingConfigurations_nextMarker,
    listLoggingConfigurations_scope,

    -- * Destructuring the Response
    ListLoggingConfigurationsResponse (..),
    newListLoggingConfigurationsResponse,

    -- * Response Lenses
    listLoggingConfigurationsResponse_loggingConfigurations,
    listLoggingConfigurationsResponse_nextMarker,
    listLoggingConfigurationsResponse_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.WAFV2.Types

-- | /See:/ 'newListLoggingConfigurations' smart constructor.
data ListLoggingConfigurations = ListLoggingConfigurations'
  { -- | The maximum number of objects that you want WAF to return for this
    -- request. If more objects are available, in the response, WAF provides a
    -- @NextMarker@ value that you can use in a subsequent call to get the next
    -- batch of objects.
    ListLoggingConfigurations -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
    -- | When you request a list of objects with a @Limit@ setting, if the number
    -- of objects that are still available for retrieval exceeds the limit, WAF
    -- returns a @NextMarker@ value in the response. To retrieve the next batch
    -- of objects, provide the marker from the prior call in your next request.
    ListLoggingConfigurations -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether this is for an Amazon CloudFront distribution or for a
    -- regional application. A regional application can be an Application Load
    -- Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API,
    -- or an Amazon Cognito user pool.
    --
    -- To work with CloudFront, you must also specify the Region US East (N.
    -- Virginia) as follows:
    --
    -- -   CLI - Specify the Region when you use the CloudFront scope:
    --     @--scope=CLOUDFRONT --region=us-east-1@.
    --
    -- -   API and SDKs - For all calls, use the Region endpoint us-east-1.
    ListLoggingConfigurations -> Scope
scope :: Scope
  }
  deriving (ListLoggingConfigurations -> ListLoggingConfigurations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLoggingConfigurations -> ListLoggingConfigurations -> Bool
$c/= :: ListLoggingConfigurations -> ListLoggingConfigurations -> Bool
== :: ListLoggingConfigurations -> ListLoggingConfigurations -> Bool
$c== :: ListLoggingConfigurations -> ListLoggingConfigurations -> Bool
Prelude.Eq, ReadPrec [ListLoggingConfigurations]
ReadPrec ListLoggingConfigurations
Int -> ReadS ListLoggingConfigurations
ReadS [ListLoggingConfigurations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLoggingConfigurations]
$creadListPrec :: ReadPrec [ListLoggingConfigurations]
readPrec :: ReadPrec ListLoggingConfigurations
$creadPrec :: ReadPrec ListLoggingConfigurations
readList :: ReadS [ListLoggingConfigurations]
$creadList :: ReadS [ListLoggingConfigurations]
readsPrec :: Int -> ReadS ListLoggingConfigurations
$creadsPrec :: Int -> ReadS ListLoggingConfigurations
Prelude.Read, Int -> ListLoggingConfigurations -> ShowS
[ListLoggingConfigurations] -> ShowS
ListLoggingConfigurations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLoggingConfigurations] -> ShowS
$cshowList :: [ListLoggingConfigurations] -> ShowS
show :: ListLoggingConfigurations -> String
$cshow :: ListLoggingConfigurations -> String
showsPrec :: Int -> ListLoggingConfigurations -> ShowS
$cshowsPrec :: Int -> ListLoggingConfigurations -> ShowS
Prelude.Show, forall x.
Rep ListLoggingConfigurations x -> ListLoggingConfigurations
forall x.
ListLoggingConfigurations -> Rep ListLoggingConfigurations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLoggingConfigurations x -> ListLoggingConfigurations
$cfrom :: forall x.
ListLoggingConfigurations -> Rep ListLoggingConfigurations x
Prelude.Generic)

-- |
-- Create a value of 'ListLoggingConfigurations' 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:
--
-- 'limit', 'listLoggingConfigurations_limit' - The maximum number of objects that you want WAF to return for this
-- request. If more objects are available, in the response, WAF provides a
-- @NextMarker@ value that you can use in a subsequent call to get the next
-- batch of objects.
--
-- 'nextMarker', 'listLoggingConfigurations_nextMarker' - When you request a list of objects with a @Limit@ setting, if the number
-- of objects that are still available for retrieval exceeds the limit, WAF
-- returns a @NextMarker@ value in the response. To retrieve the next batch
-- of objects, provide the marker from the prior call in your next request.
--
-- 'scope', 'listLoggingConfigurations_scope' - Specifies whether this is for an Amazon CloudFront distribution or for a
-- regional application. A regional application can be an Application Load
-- Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API,
-- or an Amazon Cognito user pool.
--
-- To work with CloudFront, you must also specify the Region US East (N.
-- Virginia) as follows:
--
-- -   CLI - Specify the Region when you use the CloudFront scope:
--     @--scope=CLOUDFRONT --region=us-east-1@.
--
-- -   API and SDKs - For all calls, use the Region endpoint us-east-1.
newListLoggingConfigurations ::
  -- | 'scope'
  Scope ->
  ListLoggingConfigurations
newListLoggingConfigurations :: Scope -> ListLoggingConfigurations
newListLoggingConfigurations Scope
pScope_ =
  ListLoggingConfigurations'
    { $sel:limit:ListLoggingConfigurations' :: Maybe Natural
limit = forall a. Maybe a
Prelude.Nothing,
      $sel:nextMarker:ListLoggingConfigurations' :: Maybe Text
nextMarker = forall a. Maybe a
Prelude.Nothing,
      $sel:scope:ListLoggingConfigurations' :: Scope
scope = Scope
pScope_
    }

-- | The maximum number of objects that you want WAF to return for this
-- request. If more objects are available, in the response, WAF provides a
-- @NextMarker@ value that you can use in a subsequent call to get the next
-- batch of objects.
listLoggingConfigurations_limit :: Lens.Lens' ListLoggingConfigurations (Prelude.Maybe Prelude.Natural)
listLoggingConfigurations_limit :: Lens' ListLoggingConfigurations (Maybe Natural)
listLoggingConfigurations_limit = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLoggingConfigurations' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListLoggingConfigurations' :: ListLoggingConfigurations -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListLoggingConfigurations
s@ListLoggingConfigurations' {} Maybe Natural
a -> ListLoggingConfigurations
s {$sel:limit:ListLoggingConfigurations' :: Maybe Natural
limit = Maybe Natural
a} :: ListLoggingConfigurations)

-- | When you request a list of objects with a @Limit@ setting, if the number
-- of objects that are still available for retrieval exceeds the limit, WAF
-- returns a @NextMarker@ value in the response. To retrieve the next batch
-- of objects, provide the marker from the prior call in your next request.
listLoggingConfigurations_nextMarker :: Lens.Lens' ListLoggingConfigurations (Prelude.Maybe Prelude.Text)
listLoggingConfigurations_nextMarker :: Lens' ListLoggingConfigurations (Maybe Text)
listLoggingConfigurations_nextMarker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLoggingConfigurations' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListLoggingConfigurations' :: ListLoggingConfigurations -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListLoggingConfigurations
s@ListLoggingConfigurations' {} Maybe Text
a -> ListLoggingConfigurations
s {$sel:nextMarker:ListLoggingConfigurations' :: Maybe Text
nextMarker = Maybe Text
a} :: ListLoggingConfigurations)

-- | Specifies whether this is for an Amazon CloudFront distribution or for a
-- regional application. A regional application can be an Application Load
-- Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API,
-- or an Amazon Cognito user pool.
--
-- To work with CloudFront, you must also specify the Region US East (N.
-- Virginia) as follows:
--
-- -   CLI - Specify the Region when you use the CloudFront scope:
--     @--scope=CLOUDFRONT --region=us-east-1@.
--
-- -   API and SDKs - For all calls, use the Region endpoint us-east-1.
listLoggingConfigurations_scope :: Lens.Lens' ListLoggingConfigurations Scope
listLoggingConfigurations_scope :: Lens' ListLoggingConfigurations Scope
listLoggingConfigurations_scope = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLoggingConfigurations' {Scope
scope :: Scope
$sel:scope:ListLoggingConfigurations' :: ListLoggingConfigurations -> Scope
scope} -> Scope
scope) (\s :: ListLoggingConfigurations
s@ListLoggingConfigurations' {} Scope
a -> ListLoggingConfigurations
s {$sel:scope:ListLoggingConfigurations' :: Scope
scope = Scope
a} :: ListLoggingConfigurations)

instance Core.AWSRequest ListLoggingConfigurations where
  type
    AWSResponse ListLoggingConfigurations =
      ListLoggingConfigurationsResponse
  request :: (Service -> Service)
-> ListLoggingConfigurations -> Request ListLoggingConfigurations
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 ListLoggingConfigurations
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListLoggingConfigurations)))
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 [LoggingConfiguration]
-> Maybe Text -> Int -> ListLoggingConfigurationsResponse
ListLoggingConfigurationsResponse'
            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
"LoggingConfigurations"
                            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
"NextMarker")
            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 ListLoggingConfigurations where
  hashWithSalt :: Int -> ListLoggingConfigurations -> Int
hashWithSalt Int
_salt ListLoggingConfigurations' {Maybe Natural
Maybe Text
Scope
scope :: Scope
nextMarker :: Maybe Text
limit :: Maybe Natural
$sel:scope:ListLoggingConfigurations' :: ListLoggingConfigurations -> Scope
$sel:nextMarker:ListLoggingConfigurations' :: ListLoggingConfigurations -> Maybe Text
$sel:limit:ListLoggingConfigurations' :: ListLoggingConfigurations -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
limit
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextMarker
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Scope
scope

instance Prelude.NFData ListLoggingConfigurations where
  rnf :: ListLoggingConfigurations -> ()
rnf ListLoggingConfigurations' {Maybe Natural
Maybe Text
Scope
scope :: Scope
nextMarker :: Maybe Text
limit :: Maybe Natural
$sel:scope:ListLoggingConfigurations' :: ListLoggingConfigurations -> Scope
$sel:nextMarker:ListLoggingConfigurations' :: ListLoggingConfigurations -> Maybe Text
$sel:limit:ListLoggingConfigurations' :: ListLoggingConfigurations -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
limit
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextMarker
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Scope
scope

instance Data.ToHeaders ListLoggingConfigurations where
  toHeaders :: ListLoggingConfigurations -> 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
"AWSWAF_20190729.ListLoggingConfigurations" ::
                          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 ListLoggingConfigurations where
  toJSON :: ListLoggingConfigurations -> Value
toJSON ListLoggingConfigurations' {Maybe Natural
Maybe Text
Scope
scope :: Scope
nextMarker :: Maybe Text
limit :: Maybe Natural
$sel:scope:ListLoggingConfigurations' :: ListLoggingConfigurations -> Scope
$sel:nextMarker:ListLoggingConfigurations' :: ListLoggingConfigurations -> Maybe Text
$sel:limit:ListLoggingConfigurations' :: ListLoggingConfigurations -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Limit" 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
limit,
            (Key
"NextMarker" 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
nextMarker,
            forall a. a -> Maybe a
Prelude.Just (Key
"Scope" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Scope
scope)
          ]
      )

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

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

-- | /See:/ 'newListLoggingConfigurationsResponse' smart constructor.
data ListLoggingConfigurationsResponse = ListLoggingConfigurationsResponse'
  { ListLoggingConfigurationsResponse -> Maybe [LoggingConfiguration]
loggingConfigurations :: Prelude.Maybe [LoggingConfiguration],
    -- | When you request a list of objects with a @Limit@ setting, if the number
    -- of objects that are still available for retrieval exceeds the limit, WAF
    -- returns a @NextMarker@ value in the response. To retrieve the next batch
    -- of objects, provide the marker from the prior call in your next request.
    ListLoggingConfigurationsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListLoggingConfigurationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLoggingConfigurationsResponse
-> ListLoggingConfigurationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLoggingConfigurationsResponse
-> ListLoggingConfigurationsResponse -> Bool
$c/= :: ListLoggingConfigurationsResponse
-> ListLoggingConfigurationsResponse -> Bool
== :: ListLoggingConfigurationsResponse
-> ListLoggingConfigurationsResponse -> Bool
$c== :: ListLoggingConfigurationsResponse
-> ListLoggingConfigurationsResponse -> Bool
Prelude.Eq, ReadPrec [ListLoggingConfigurationsResponse]
ReadPrec ListLoggingConfigurationsResponse
Int -> ReadS ListLoggingConfigurationsResponse
ReadS [ListLoggingConfigurationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLoggingConfigurationsResponse]
$creadListPrec :: ReadPrec [ListLoggingConfigurationsResponse]
readPrec :: ReadPrec ListLoggingConfigurationsResponse
$creadPrec :: ReadPrec ListLoggingConfigurationsResponse
readList :: ReadS [ListLoggingConfigurationsResponse]
$creadList :: ReadS [ListLoggingConfigurationsResponse]
readsPrec :: Int -> ReadS ListLoggingConfigurationsResponse
$creadsPrec :: Int -> ReadS ListLoggingConfigurationsResponse
Prelude.Read, Int -> ListLoggingConfigurationsResponse -> ShowS
[ListLoggingConfigurationsResponse] -> ShowS
ListLoggingConfigurationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLoggingConfigurationsResponse] -> ShowS
$cshowList :: [ListLoggingConfigurationsResponse] -> ShowS
show :: ListLoggingConfigurationsResponse -> String
$cshow :: ListLoggingConfigurationsResponse -> String
showsPrec :: Int -> ListLoggingConfigurationsResponse -> ShowS
$cshowsPrec :: Int -> ListLoggingConfigurationsResponse -> ShowS
Prelude.Show, forall x.
Rep ListLoggingConfigurationsResponse x
-> ListLoggingConfigurationsResponse
forall x.
ListLoggingConfigurationsResponse
-> Rep ListLoggingConfigurationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLoggingConfigurationsResponse x
-> ListLoggingConfigurationsResponse
$cfrom :: forall x.
ListLoggingConfigurationsResponse
-> Rep ListLoggingConfigurationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLoggingConfigurationsResponse' 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:
--
-- 'loggingConfigurations', 'listLoggingConfigurationsResponse_loggingConfigurations' -
--
-- 'nextMarker', 'listLoggingConfigurationsResponse_nextMarker' - When you request a list of objects with a @Limit@ setting, if the number
-- of objects that are still available for retrieval exceeds the limit, WAF
-- returns a @NextMarker@ value in the response. To retrieve the next batch
-- of objects, provide the marker from the prior call in your next request.
--
-- 'httpStatus', 'listLoggingConfigurationsResponse_httpStatus' - The response's http status code.
newListLoggingConfigurationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLoggingConfigurationsResponse
newListLoggingConfigurationsResponse :: Int -> ListLoggingConfigurationsResponse
newListLoggingConfigurationsResponse Int
pHttpStatus_ =
  ListLoggingConfigurationsResponse'
    { $sel:loggingConfigurations:ListLoggingConfigurationsResponse' :: Maybe [LoggingConfiguration]
loggingConfigurations =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextMarker:ListLoggingConfigurationsResponse' :: Maybe Text
nextMarker = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLoggingConfigurationsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

listLoggingConfigurationsResponse_loggingConfigurations :: Lens.Lens' ListLoggingConfigurationsResponse (Prelude.Maybe [LoggingConfiguration])
listLoggingConfigurationsResponse_loggingConfigurations :: Lens'
  ListLoggingConfigurationsResponse (Maybe [LoggingConfiguration])
listLoggingConfigurationsResponse_loggingConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLoggingConfigurationsResponse' {Maybe [LoggingConfiguration]
loggingConfigurations :: Maybe [LoggingConfiguration]
$sel:loggingConfigurations:ListLoggingConfigurationsResponse' :: ListLoggingConfigurationsResponse -> Maybe [LoggingConfiguration]
loggingConfigurations} -> Maybe [LoggingConfiguration]
loggingConfigurations) (\s :: ListLoggingConfigurationsResponse
s@ListLoggingConfigurationsResponse' {} Maybe [LoggingConfiguration]
a -> ListLoggingConfigurationsResponse
s {$sel:loggingConfigurations:ListLoggingConfigurationsResponse' :: Maybe [LoggingConfiguration]
loggingConfigurations = Maybe [LoggingConfiguration]
a} :: ListLoggingConfigurationsResponse) 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

-- | When you request a list of objects with a @Limit@ setting, if the number
-- of objects that are still available for retrieval exceeds the limit, WAF
-- returns a @NextMarker@ value in the response. To retrieve the next batch
-- of objects, provide the marker from the prior call in your next request.
listLoggingConfigurationsResponse_nextMarker :: Lens.Lens' ListLoggingConfigurationsResponse (Prelude.Maybe Prelude.Text)
listLoggingConfigurationsResponse_nextMarker :: Lens' ListLoggingConfigurationsResponse (Maybe Text)
listLoggingConfigurationsResponse_nextMarker = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLoggingConfigurationsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListLoggingConfigurationsResponse' :: ListLoggingConfigurationsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListLoggingConfigurationsResponse
s@ListLoggingConfigurationsResponse' {} Maybe Text
a -> ListLoggingConfigurationsResponse
s {$sel:nextMarker:ListLoggingConfigurationsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListLoggingConfigurationsResponse)

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

instance
  Prelude.NFData
    ListLoggingConfigurationsResponse
  where
  rnf :: ListLoggingConfigurationsResponse -> ()
rnf ListLoggingConfigurationsResponse' {Int
Maybe [LoggingConfiguration]
Maybe Text
httpStatus :: Int
nextMarker :: Maybe Text
loggingConfigurations :: Maybe [LoggingConfiguration]
$sel:httpStatus:ListLoggingConfigurationsResponse' :: ListLoggingConfigurationsResponse -> Int
$sel:nextMarker:ListLoggingConfigurationsResponse' :: ListLoggingConfigurationsResponse -> Maybe Text
$sel:loggingConfigurations:ListLoggingConfigurationsResponse' :: ListLoggingConfigurationsResponse -> Maybe [LoggingConfiguration]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [LoggingConfiguration]
loggingConfigurations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextMarker
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus