{-# 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 #-}
module Amazonka.WAF.ListLoggingConfigurations
(
ListLoggingConfigurations (..),
newListLoggingConfigurations,
listLoggingConfigurations_nextMarker,
listLoggingConfigurations_limit,
ListLoggingConfigurationsResponse (..),
newListLoggingConfigurationsResponse,
listLoggingConfigurationsResponse_nextMarker,
listLoggingConfigurationsResponse_loggingConfigurations,
listLoggingConfigurationsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WAF.Types
data ListLoggingConfigurations = ListLoggingConfigurations'
{
ListLoggingConfigurations -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListLoggingConfigurations -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural
}
deriving (ListLoggingConfigurations -> ListLoggingConfigurations -> Bool
(ListLoggingConfigurations -> ListLoggingConfigurations -> Bool)
-> (ListLoggingConfigurations -> ListLoggingConfigurations -> Bool)
-> Eq ListLoggingConfigurations
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]
(Int -> ReadS ListLoggingConfigurations)
-> ReadS [ListLoggingConfigurations]
-> ReadPrec ListLoggingConfigurations
-> ReadPrec [ListLoggingConfigurations]
-> Read 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
(Int -> ListLoggingConfigurations -> ShowS)
-> (ListLoggingConfigurations -> String)
-> ([ListLoggingConfigurations] -> ShowS)
-> Show ListLoggingConfigurations
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.
ListLoggingConfigurations -> Rep ListLoggingConfigurations x)
-> (forall x.
Rep ListLoggingConfigurations x -> ListLoggingConfigurations)
-> Generic ListLoggingConfigurations
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)
newListLoggingConfigurations ::
ListLoggingConfigurations
newListLoggingConfigurations :: ListLoggingConfigurations
newListLoggingConfigurations =
ListLoggingConfigurations' :: Maybe Text -> Maybe Natural -> ListLoggingConfigurations
ListLoggingConfigurations'
{ $sel:nextMarker:ListLoggingConfigurations' :: Maybe Text
nextMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListLoggingConfigurations' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listLoggingConfigurations_nextMarker :: Lens.Lens' ListLoggingConfigurations (Prelude.Maybe Prelude.Text)
listLoggingConfigurations_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListLoggingConfigurations -> f ListLoggingConfigurations
listLoggingConfigurations_nextMarker = (ListLoggingConfigurations -> Maybe Text)
-> (ListLoggingConfigurations
-> Maybe Text -> ListLoggingConfigurations)
-> Lens
ListLoggingConfigurations
ListLoggingConfigurations
(Maybe Text)
(Maybe Text)
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)
listLoggingConfigurations_limit :: Lens.Lens' ListLoggingConfigurations (Prelude.Maybe Prelude.Natural)
listLoggingConfigurations_limit :: (Maybe Natural -> f (Maybe Natural))
-> ListLoggingConfigurations -> f ListLoggingConfigurations
listLoggingConfigurations_limit = (ListLoggingConfigurations -> Maybe Natural)
-> (ListLoggingConfigurations
-> Maybe Natural -> ListLoggingConfigurations)
-> Lens
ListLoggingConfigurations
ListLoggingConfigurations
(Maybe Natural)
(Maybe Natural)
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)
instance Core.AWSPager ListLoggingConfigurations where
page :: ListLoggingConfigurations
-> AWSResponse ListLoggingConfigurations
-> Maybe ListLoggingConfigurations
page ListLoggingConfigurations
rq AWSResponse ListLoggingConfigurations
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListLoggingConfigurations
ListLoggingConfigurationsResponse
rs
ListLoggingConfigurationsResponse
-> Getting (First Text) ListLoggingConfigurationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListLoggingConfigurationsResponse
-> Const (First Text) ListLoggingConfigurationsResponse
Lens' ListLoggingConfigurationsResponse (Maybe Text)
listLoggingConfigurationsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListLoggingConfigurationsResponse
-> Const (First Text) ListLoggingConfigurationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListLoggingConfigurationsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListLoggingConfigurations
forall a. Maybe a
Prelude.Nothing
| Maybe [LoggingConfiguration] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListLoggingConfigurations
ListLoggingConfigurationsResponse
rs
ListLoggingConfigurationsResponse
-> Getting
(First [LoggingConfiguration])
ListLoggingConfigurationsResponse
[LoggingConfiguration]
-> Maybe [LoggingConfiguration]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [LoggingConfiguration]
-> Const
(First [LoggingConfiguration]) (Maybe [LoggingConfiguration]))
-> ListLoggingConfigurationsResponse
-> Const
(First [LoggingConfiguration]) ListLoggingConfigurationsResponse
Lens'
ListLoggingConfigurationsResponse (Maybe [LoggingConfiguration])
listLoggingConfigurationsResponse_loggingConfigurations
((Maybe [LoggingConfiguration]
-> Const
(First [LoggingConfiguration]) (Maybe [LoggingConfiguration]))
-> ListLoggingConfigurationsResponse
-> Const
(First [LoggingConfiguration]) ListLoggingConfigurationsResponse)
-> (([LoggingConfiguration]
-> Const (First [LoggingConfiguration]) [LoggingConfiguration])
-> Maybe [LoggingConfiguration]
-> Const
(First [LoggingConfiguration]) (Maybe [LoggingConfiguration]))
-> Getting
(First [LoggingConfiguration])
ListLoggingConfigurationsResponse
[LoggingConfiguration]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([LoggingConfiguration]
-> Const (First [LoggingConfiguration]) [LoggingConfiguration])
-> Maybe [LoggingConfiguration]
-> Const
(First [LoggingConfiguration]) (Maybe [LoggingConfiguration])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListLoggingConfigurations
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListLoggingConfigurations -> Maybe ListLoggingConfigurations
forall a. a -> Maybe a
Prelude.Just (ListLoggingConfigurations -> Maybe ListLoggingConfigurations)
-> ListLoggingConfigurations -> Maybe ListLoggingConfigurations
forall a b. (a -> b) -> a -> b
Prelude.$
ListLoggingConfigurations
rq
ListLoggingConfigurations
-> (ListLoggingConfigurations -> ListLoggingConfigurations)
-> ListLoggingConfigurations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListLoggingConfigurations -> Identity ListLoggingConfigurations
Lens
ListLoggingConfigurations
ListLoggingConfigurations
(Maybe Text)
(Maybe Text)
listLoggingConfigurations_nextMarker
((Maybe Text -> Identity (Maybe Text))
-> ListLoggingConfigurations -> Identity ListLoggingConfigurations)
-> Maybe Text
-> ListLoggingConfigurations
-> ListLoggingConfigurations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListLoggingConfigurations
ListLoggingConfigurationsResponse
rs
ListLoggingConfigurationsResponse
-> Getting (First Text) ListLoggingConfigurationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListLoggingConfigurationsResponse
-> Const (First Text) ListLoggingConfigurationsResponse
Lens' ListLoggingConfigurationsResponse (Maybe Text)
listLoggingConfigurationsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListLoggingConfigurationsResponse
-> Const (First Text) ListLoggingConfigurationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListLoggingConfigurationsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListLoggingConfigurations where
type
AWSResponse ListLoggingConfigurations =
ListLoggingConfigurationsResponse
request :: ListLoggingConfigurations -> Request ListLoggingConfigurations
request = Service
-> ListLoggingConfigurations -> Request ListLoggingConfigurations
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListLoggingConfigurations
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListLoggingConfigurations)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListLoggingConfigurations))
-> Logger
-> Service
-> Proxy ListLoggingConfigurations
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListLoggingConfigurations)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [LoggingConfiguration]
-> Int
-> ListLoggingConfigurationsResponse
ListLoggingConfigurationsResponse'
(Maybe Text
-> Maybe [LoggingConfiguration]
-> Int
-> ListLoggingConfigurationsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [LoggingConfiguration]
-> Int -> ListLoggingConfigurationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextMarker")
Either
String
(Maybe [LoggingConfiguration]
-> Int -> ListLoggingConfigurationsResponse)
-> Either String (Maybe [LoggingConfiguration])
-> Either String (Int -> ListLoggingConfigurationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [LoggingConfiguration]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LoggingConfigurations"
Either String (Maybe (Maybe [LoggingConfiguration]))
-> Maybe [LoggingConfiguration]
-> Either String (Maybe [LoggingConfiguration])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LoggingConfiguration]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListLoggingConfigurationsResponse)
-> Either String Int
-> Either String ListLoggingConfigurationsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListLoggingConfigurations
instance Prelude.NFData ListLoggingConfigurations
instance Core.ToHeaders ListLoggingConfigurations where
toHeaders :: ListLoggingConfigurations -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListLoggingConfigurations -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSWAF_20150824.ListLoggingConfigurations" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListLoggingConfigurations where
toJSON :: ListLoggingConfigurations -> Value
toJSON ListLoggingConfigurations' {Maybe Natural
Maybe Text
limit :: Maybe Natural
nextMarker :: Maybe Text
$sel:limit:ListLoggingConfigurations' :: ListLoggingConfigurations -> Maybe Natural
$sel:nextMarker:ListLoggingConfigurations' :: ListLoggingConfigurations -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextMarker" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextMarker,
(Text
"Limit" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit
]
)
instance Core.ToPath ListLoggingConfigurations where
toPath :: ListLoggingConfigurations -> ByteString
toPath = ByteString -> ListLoggingConfigurations -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListLoggingConfigurations where
toQuery :: ListLoggingConfigurations -> QueryString
toQuery = QueryString -> ListLoggingConfigurations -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListLoggingConfigurationsResponse = ListLoggingConfigurationsResponse'
{
ListLoggingConfigurationsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListLoggingConfigurationsResponse -> Maybe [LoggingConfiguration]
loggingConfigurations :: Prelude.Maybe [LoggingConfiguration],
ListLoggingConfigurationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListLoggingConfigurationsResponse
-> ListLoggingConfigurationsResponse -> Bool
(ListLoggingConfigurationsResponse
-> ListLoggingConfigurationsResponse -> Bool)
-> (ListLoggingConfigurationsResponse
-> ListLoggingConfigurationsResponse -> Bool)
-> Eq ListLoggingConfigurationsResponse
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]
(Int -> ReadS ListLoggingConfigurationsResponse)
-> ReadS [ListLoggingConfigurationsResponse]
-> ReadPrec ListLoggingConfigurationsResponse
-> ReadPrec [ListLoggingConfigurationsResponse]
-> Read 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
(Int -> ListLoggingConfigurationsResponse -> ShowS)
-> (ListLoggingConfigurationsResponse -> String)
-> ([ListLoggingConfigurationsResponse] -> ShowS)
-> Show ListLoggingConfigurationsResponse
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.
ListLoggingConfigurationsResponse
-> Rep ListLoggingConfigurationsResponse x)
-> (forall x.
Rep ListLoggingConfigurationsResponse x
-> ListLoggingConfigurationsResponse)
-> Generic ListLoggingConfigurationsResponse
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)
newListLoggingConfigurationsResponse ::
Prelude.Int ->
ListLoggingConfigurationsResponse
newListLoggingConfigurationsResponse :: Int -> ListLoggingConfigurationsResponse
newListLoggingConfigurationsResponse Int
pHttpStatus_ =
ListLoggingConfigurationsResponse' :: Maybe Text
-> Maybe [LoggingConfiguration]
-> Int
-> ListLoggingConfigurationsResponse
ListLoggingConfigurationsResponse'
{ $sel:nextMarker:ListLoggingConfigurationsResponse' :: Maybe Text
nextMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:loggingConfigurations:ListLoggingConfigurationsResponse' :: Maybe [LoggingConfiguration]
loggingConfigurations = Maybe [LoggingConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListLoggingConfigurationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listLoggingConfigurationsResponse_nextMarker :: Lens.Lens' ListLoggingConfigurationsResponse (Prelude.Maybe Prelude.Text)
listLoggingConfigurationsResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListLoggingConfigurationsResponse
-> f ListLoggingConfigurationsResponse
listLoggingConfigurationsResponse_nextMarker = (ListLoggingConfigurationsResponse -> Maybe Text)
-> (ListLoggingConfigurationsResponse
-> Maybe Text -> ListLoggingConfigurationsResponse)
-> Lens' ListLoggingConfigurationsResponse (Maybe Text)
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)
listLoggingConfigurationsResponse_loggingConfigurations :: Lens.Lens' ListLoggingConfigurationsResponse (Prelude.Maybe [LoggingConfiguration])
listLoggingConfigurationsResponse_loggingConfigurations :: (Maybe [LoggingConfiguration] -> f (Maybe [LoggingConfiguration]))
-> ListLoggingConfigurationsResponse
-> f ListLoggingConfigurationsResponse
listLoggingConfigurationsResponse_loggingConfigurations = (ListLoggingConfigurationsResponse -> Maybe [LoggingConfiguration])
-> (ListLoggingConfigurationsResponse
-> Maybe [LoggingConfiguration]
-> ListLoggingConfigurationsResponse)
-> Lens'
ListLoggingConfigurationsResponse (Maybe [LoggingConfiguration])
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) ((Maybe [LoggingConfiguration] -> f (Maybe [LoggingConfiguration]))
-> ListLoggingConfigurationsResponse
-> f ListLoggingConfigurationsResponse)
-> ((Maybe [LoggingConfiguration]
-> f (Maybe [LoggingConfiguration]))
-> Maybe [LoggingConfiguration]
-> f (Maybe [LoggingConfiguration]))
-> (Maybe [LoggingConfiguration]
-> f (Maybe [LoggingConfiguration]))
-> ListLoggingConfigurationsResponse
-> f ListLoggingConfigurationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[LoggingConfiguration]
[LoggingConfiguration]
[LoggingConfiguration]
[LoggingConfiguration]
-> Iso
(Maybe [LoggingConfiguration])
(Maybe [LoggingConfiguration])
(Maybe [LoggingConfiguration])
(Maybe [LoggingConfiguration])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[LoggingConfiguration]
[LoggingConfiguration]
[LoggingConfiguration]
[LoggingConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listLoggingConfigurationsResponse_httpStatus :: Lens.Lens' ListLoggingConfigurationsResponse Prelude.Int
listLoggingConfigurationsResponse_httpStatus :: (Int -> f Int)
-> ListLoggingConfigurationsResponse
-> f ListLoggingConfigurationsResponse
listLoggingConfigurationsResponse_httpStatus = (ListLoggingConfigurationsResponse -> Int)
-> (ListLoggingConfigurationsResponse
-> Int -> ListLoggingConfigurationsResponse)
-> Lens
ListLoggingConfigurationsResponse
ListLoggingConfigurationsResponse
Int
Int
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