{-# 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.MacieV2.ListFindingsFilters
(
ListFindingsFilters (..),
newListFindingsFilters,
listFindingsFilters_nextToken,
listFindingsFilters_maxResults,
ListFindingsFiltersResponse (..),
newListFindingsFiltersResponse,
listFindingsFiltersResponse_findingsFilterListItems,
listFindingsFiltersResponse_nextToken,
listFindingsFiltersResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MacieV2.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListFindingsFilters = ListFindingsFilters'
{
ListFindingsFilters -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListFindingsFilters -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListFindingsFilters -> ListFindingsFilters -> Bool
(ListFindingsFilters -> ListFindingsFilters -> Bool)
-> (ListFindingsFilters -> ListFindingsFilters -> Bool)
-> Eq ListFindingsFilters
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFindingsFilters -> ListFindingsFilters -> Bool
$c/= :: ListFindingsFilters -> ListFindingsFilters -> Bool
== :: ListFindingsFilters -> ListFindingsFilters -> Bool
$c== :: ListFindingsFilters -> ListFindingsFilters -> Bool
Prelude.Eq, ReadPrec [ListFindingsFilters]
ReadPrec ListFindingsFilters
Int -> ReadS ListFindingsFilters
ReadS [ListFindingsFilters]
(Int -> ReadS ListFindingsFilters)
-> ReadS [ListFindingsFilters]
-> ReadPrec ListFindingsFilters
-> ReadPrec [ListFindingsFilters]
-> Read ListFindingsFilters
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFindingsFilters]
$creadListPrec :: ReadPrec [ListFindingsFilters]
readPrec :: ReadPrec ListFindingsFilters
$creadPrec :: ReadPrec ListFindingsFilters
readList :: ReadS [ListFindingsFilters]
$creadList :: ReadS [ListFindingsFilters]
readsPrec :: Int -> ReadS ListFindingsFilters
$creadsPrec :: Int -> ReadS ListFindingsFilters
Prelude.Read, Int -> ListFindingsFilters -> ShowS
[ListFindingsFilters] -> ShowS
ListFindingsFilters -> String
(Int -> ListFindingsFilters -> ShowS)
-> (ListFindingsFilters -> String)
-> ([ListFindingsFilters] -> ShowS)
-> Show ListFindingsFilters
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFindingsFilters] -> ShowS
$cshowList :: [ListFindingsFilters] -> ShowS
show :: ListFindingsFilters -> String
$cshow :: ListFindingsFilters -> String
showsPrec :: Int -> ListFindingsFilters -> ShowS
$cshowsPrec :: Int -> ListFindingsFilters -> ShowS
Prelude.Show, (forall x. ListFindingsFilters -> Rep ListFindingsFilters x)
-> (forall x. Rep ListFindingsFilters x -> ListFindingsFilters)
-> Generic ListFindingsFilters
forall x. Rep ListFindingsFilters x -> ListFindingsFilters
forall x. ListFindingsFilters -> Rep ListFindingsFilters x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListFindingsFilters x -> ListFindingsFilters
$cfrom :: forall x. ListFindingsFilters -> Rep ListFindingsFilters x
Prelude.Generic)
newListFindingsFilters ::
ListFindingsFilters
newListFindingsFilters :: ListFindingsFilters
newListFindingsFilters =
ListFindingsFilters' :: Maybe Text -> Maybe Natural -> ListFindingsFilters
ListFindingsFilters'
{ $sel:nextToken:ListFindingsFilters' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListFindingsFilters' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listFindingsFilters_nextToken :: Lens.Lens' ListFindingsFilters (Prelude.Maybe Prelude.Text)
listFindingsFilters_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFindingsFilters -> f ListFindingsFilters
listFindingsFilters_nextToken = (ListFindingsFilters -> Maybe Text)
-> (ListFindingsFilters -> Maybe Text -> ListFindingsFilters)
-> Lens
ListFindingsFilters ListFindingsFilters (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFindingsFilters' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFindingsFilters' :: ListFindingsFilters -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFindingsFilters
s@ListFindingsFilters' {} Maybe Text
a -> ListFindingsFilters
s {$sel:nextToken:ListFindingsFilters' :: Maybe Text
nextToken = Maybe Text
a} :: ListFindingsFilters)
listFindingsFilters_maxResults :: Lens.Lens' ListFindingsFilters (Prelude.Maybe Prelude.Natural)
listFindingsFilters_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListFindingsFilters -> f ListFindingsFilters
listFindingsFilters_maxResults = (ListFindingsFilters -> Maybe Natural)
-> (ListFindingsFilters -> Maybe Natural -> ListFindingsFilters)
-> Lens
ListFindingsFilters
ListFindingsFilters
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFindingsFilters' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListFindingsFilters' :: ListFindingsFilters -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListFindingsFilters
s@ListFindingsFilters' {} Maybe Natural
a -> ListFindingsFilters
s {$sel:maxResults:ListFindingsFilters' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListFindingsFilters)
instance Core.AWSPager ListFindingsFilters where
page :: ListFindingsFilters
-> AWSResponse ListFindingsFilters -> Maybe ListFindingsFilters
page ListFindingsFilters
rq AWSResponse ListFindingsFilters
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListFindingsFilters
ListFindingsFiltersResponse
rs
ListFindingsFiltersResponse
-> Getting (First Text) ListFindingsFiltersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListFindingsFiltersResponse
-> Const (First Text) ListFindingsFiltersResponse
Lens' ListFindingsFiltersResponse (Maybe Text)
listFindingsFiltersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListFindingsFiltersResponse
-> Const (First Text) ListFindingsFiltersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListFindingsFiltersResponse 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 ListFindingsFilters
forall a. Maybe a
Prelude.Nothing
| Maybe [FindingsFilterListItem] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListFindingsFilters
ListFindingsFiltersResponse
rs
ListFindingsFiltersResponse
-> Getting
(First [FindingsFilterListItem])
ListFindingsFiltersResponse
[FindingsFilterListItem]
-> Maybe [FindingsFilterListItem]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [FindingsFilterListItem]
-> Const
(First [FindingsFilterListItem]) (Maybe [FindingsFilterListItem]))
-> ListFindingsFiltersResponse
-> Const
(First [FindingsFilterListItem]) ListFindingsFiltersResponse
Lens' ListFindingsFiltersResponse (Maybe [FindingsFilterListItem])
listFindingsFiltersResponse_findingsFilterListItems
((Maybe [FindingsFilterListItem]
-> Const
(First [FindingsFilterListItem]) (Maybe [FindingsFilterListItem]))
-> ListFindingsFiltersResponse
-> Const
(First [FindingsFilterListItem]) ListFindingsFiltersResponse)
-> (([FindingsFilterListItem]
-> Const (First [FindingsFilterListItem]) [FindingsFilterListItem])
-> Maybe [FindingsFilterListItem]
-> Const
(First [FindingsFilterListItem]) (Maybe [FindingsFilterListItem]))
-> Getting
(First [FindingsFilterListItem])
ListFindingsFiltersResponse
[FindingsFilterListItem]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([FindingsFilterListItem]
-> Const (First [FindingsFilterListItem]) [FindingsFilterListItem])
-> Maybe [FindingsFilterListItem]
-> Const
(First [FindingsFilterListItem]) (Maybe [FindingsFilterListItem])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListFindingsFilters
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListFindingsFilters -> Maybe ListFindingsFilters
forall a. a -> Maybe a
Prelude.Just (ListFindingsFilters -> Maybe ListFindingsFilters)
-> ListFindingsFilters -> Maybe ListFindingsFilters
forall a b. (a -> b) -> a -> b
Prelude.$
ListFindingsFilters
rq
ListFindingsFilters
-> (ListFindingsFilters -> ListFindingsFilters)
-> ListFindingsFilters
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListFindingsFilters -> Identity ListFindingsFilters
Lens
ListFindingsFilters ListFindingsFilters (Maybe Text) (Maybe Text)
listFindingsFilters_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListFindingsFilters -> Identity ListFindingsFilters)
-> Maybe Text -> ListFindingsFilters -> ListFindingsFilters
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListFindingsFilters
ListFindingsFiltersResponse
rs
ListFindingsFiltersResponse
-> Getting (First Text) ListFindingsFiltersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListFindingsFiltersResponse
-> Const (First Text) ListFindingsFiltersResponse
Lens' ListFindingsFiltersResponse (Maybe Text)
listFindingsFiltersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListFindingsFiltersResponse
-> Const (First Text) ListFindingsFiltersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListFindingsFiltersResponse 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 ListFindingsFilters where
type
AWSResponse ListFindingsFilters =
ListFindingsFiltersResponse
request :: ListFindingsFilters -> Request ListFindingsFilters
request = Service -> ListFindingsFilters -> Request ListFindingsFilters
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListFindingsFilters
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListFindingsFilters)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListFindingsFilters))
-> Logger
-> Service
-> Proxy ListFindingsFilters
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListFindingsFilters)))
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 [FindingsFilterListItem]
-> Maybe Text -> Int -> ListFindingsFiltersResponse
ListFindingsFiltersResponse'
(Maybe [FindingsFilterListItem]
-> Maybe Text -> Int -> ListFindingsFiltersResponse)
-> Either String (Maybe [FindingsFilterListItem])
-> Either String (Maybe Text -> Int -> ListFindingsFiltersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [FindingsFilterListItem]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"findingsFilterListItems"
Either String (Maybe (Maybe [FindingsFilterListItem]))
-> Maybe [FindingsFilterListItem]
-> Either String (Maybe [FindingsFilterListItem])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FindingsFilterListItem]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListFindingsFiltersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListFindingsFiltersResponse)
forall (f :: * -> *) a b. Applicative f => 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
"nextToken")
Either String (Int -> ListFindingsFiltersResponse)
-> Either String Int -> Either String ListFindingsFiltersResponse
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 ListFindingsFilters
instance Prelude.NFData ListFindingsFilters
instance Core.ToHeaders ListFindingsFilters where
toHeaders :: ListFindingsFilters -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListFindingsFilters -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath ListFindingsFilters where
toPath :: ListFindingsFilters -> ByteString
toPath = ByteString -> ListFindingsFilters -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/findingsfilters"
instance Core.ToQuery ListFindingsFilters where
toQuery :: ListFindingsFilters -> QueryString
toQuery ListFindingsFilters' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListFindingsFilters' :: ListFindingsFilters -> Maybe Natural
$sel:nextToken:ListFindingsFilters' :: ListFindingsFilters -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListFindingsFiltersResponse = ListFindingsFiltersResponse'
{
ListFindingsFiltersResponse -> Maybe [FindingsFilterListItem]
findingsFilterListItems :: Prelude.Maybe [FindingsFilterListItem],
ListFindingsFiltersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListFindingsFiltersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListFindingsFiltersResponse -> ListFindingsFiltersResponse -> Bool
(ListFindingsFiltersResponse
-> ListFindingsFiltersResponse -> Bool)
-> (ListFindingsFiltersResponse
-> ListFindingsFiltersResponse -> Bool)
-> Eq ListFindingsFiltersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFindingsFiltersResponse -> ListFindingsFiltersResponse -> Bool
$c/= :: ListFindingsFiltersResponse -> ListFindingsFiltersResponse -> Bool
== :: ListFindingsFiltersResponse -> ListFindingsFiltersResponse -> Bool
$c== :: ListFindingsFiltersResponse -> ListFindingsFiltersResponse -> Bool
Prelude.Eq, ReadPrec [ListFindingsFiltersResponse]
ReadPrec ListFindingsFiltersResponse
Int -> ReadS ListFindingsFiltersResponse
ReadS [ListFindingsFiltersResponse]
(Int -> ReadS ListFindingsFiltersResponse)
-> ReadS [ListFindingsFiltersResponse]
-> ReadPrec ListFindingsFiltersResponse
-> ReadPrec [ListFindingsFiltersResponse]
-> Read ListFindingsFiltersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFindingsFiltersResponse]
$creadListPrec :: ReadPrec [ListFindingsFiltersResponse]
readPrec :: ReadPrec ListFindingsFiltersResponse
$creadPrec :: ReadPrec ListFindingsFiltersResponse
readList :: ReadS [ListFindingsFiltersResponse]
$creadList :: ReadS [ListFindingsFiltersResponse]
readsPrec :: Int -> ReadS ListFindingsFiltersResponse
$creadsPrec :: Int -> ReadS ListFindingsFiltersResponse
Prelude.Read, Int -> ListFindingsFiltersResponse -> ShowS
[ListFindingsFiltersResponse] -> ShowS
ListFindingsFiltersResponse -> String
(Int -> ListFindingsFiltersResponse -> ShowS)
-> (ListFindingsFiltersResponse -> String)
-> ([ListFindingsFiltersResponse] -> ShowS)
-> Show ListFindingsFiltersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFindingsFiltersResponse] -> ShowS
$cshowList :: [ListFindingsFiltersResponse] -> ShowS
show :: ListFindingsFiltersResponse -> String
$cshow :: ListFindingsFiltersResponse -> String
showsPrec :: Int -> ListFindingsFiltersResponse -> ShowS
$cshowsPrec :: Int -> ListFindingsFiltersResponse -> ShowS
Prelude.Show, (forall x.
ListFindingsFiltersResponse -> Rep ListFindingsFiltersResponse x)
-> (forall x.
Rep ListFindingsFiltersResponse x -> ListFindingsFiltersResponse)
-> Generic ListFindingsFiltersResponse
forall x.
Rep ListFindingsFiltersResponse x -> ListFindingsFiltersResponse
forall x.
ListFindingsFiltersResponse -> Rep ListFindingsFiltersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFindingsFiltersResponse x -> ListFindingsFiltersResponse
$cfrom :: forall x.
ListFindingsFiltersResponse -> Rep ListFindingsFiltersResponse x
Prelude.Generic)
newListFindingsFiltersResponse ::
Prelude.Int ->
ListFindingsFiltersResponse
newListFindingsFiltersResponse :: Int -> ListFindingsFiltersResponse
newListFindingsFiltersResponse Int
pHttpStatus_ =
ListFindingsFiltersResponse' :: Maybe [FindingsFilterListItem]
-> Maybe Text -> Int -> ListFindingsFiltersResponse
ListFindingsFiltersResponse'
{ $sel:findingsFilterListItems:ListFindingsFiltersResponse' :: Maybe [FindingsFilterListItem]
findingsFilterListItems =
Maybe [FindingsFilterListItem]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListFindingsFiltersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListFindingsFiltersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listFindingsFiltersResponse_findingsFilterListItems :: Lens.Lens' ListFindingsFiltersResponse (Prelude.Maybe [FindingsFilterListItem])
listFindingsFiltersResponse_findingsFilterListItems :: (Maybe [FindingsFilterListItem]
-> f (Maybe [FindingsFilterListItem]))
-> ListFindingsFiltersResponse -> f ListFindingsFiltersResponse
listFindingsFiltersResponse_findingsFilterListItems = (ListFindingsFiltersResponse -> Maybe [FindingsFilterListItem])
-> (ListFindingsFiltersResponse
-> Maybe [FindingsFilterListItem] -> ListFindingsFiltersResponse)
-> Lens'
ListFindingsFiltersResponse (Maybe [FindingsFilterListItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFindingsFiltersResponse' {Maybe [FindingsFilterListItem]
findingsFilterListItems :: Maybe [FindingsFilterListItem]
$sel:findingsFilterListItems:ListFindingsFiltersResponse' :: ListFindingsFiltersResponse -> Maybe [FindingsFilterListItem]
findingsFilterListItems} -> Maybe [FindingsFilterListItem]
findingsFilterListItems) (\s :: ListFindingsFiltersResponse
s@ListFindingsFiltersResponse' {} Maybe [FindingsFilterListItem]
a -> ListFindingsFiltersResponse
s {$sel:findingsFilterListItems:ListFindingsFiltersResponse' :: Maybe [FindingsFilterListItem]
findingsFilterListItems = Maybe [FindingsFilterListItem]
a} :: ListFindingsFiltersResponse) ((Maybe [FindingsFilterListItem]
-> f (Maybe [FindingsFilterListItem]))
-> ListFindingsFiltersResponse -> f ListFindingsFiltersResponse)
-> ((Maybe [FindingsFilterListItem]
-> f (Maybe [FindingsFilterListItem]))
-> Maybe [FindingsFilterListItem]
-> f (Maybe [FindingsFilterListItem]))
-> (Maybe [FindingsFilterListItem]
-> f (Maybe [FindingsFilterListItem]))
-> ListFindingsFiltersResponse
-> f ListFindingsFiltersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[FindingsFilterListItem]
[FindingsFilterListItem]
[FindingsFilterListItem]
[FindingsFilterListItem]
-> Iso
(Maybe [FindingsFilterListItem])
(Maybe [FindingsFilterListItem])
(Maybe [FindingsFilterListItem])
(Maybe [FindingsFilterListItem])
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
[FindingsFilterListItem]
[FindingsFilterListItem]
[FindingsFilterListItem]
[FindingsFilterListItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listFindingsFiltersResponse_nextToken :: Lens.Lens' ListFindingsFiltersResponse (Prelude.Maybe Prelude.Text)
listFindingsFiltersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFindingsFiltersResponse -> f ListFindingsFiltersResponse
listFindingsFiltersResponse_nextToken = (ListFindingsFiltersResponse -> Maybe Text)
-> (ListFindingsFiltersResponse
-> Maybe Text -> ListFindingsFiltersResponse)
-> Lens' ListFindingsFiltersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFindingsFiltersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFindingsFiltersResponse' :: ListFindingsFiltersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFindingsFiltersResponse
s@ListFindingsFiltersResponse' {} Maybe Text
a -> ListFindingsFiltersResponse
s {$sel:nextToken:ListFindingsFiltersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListFindingsFiltersResponse)
listFindingsFiltersResponse_httpStatus :: Lens.Lens' ListFindingsFiltersResponse Prelude.Int
listFindingsFiltersResponse_httpStatus :: (Int -> f Int)
-> ListFindingsFiltersResponse -> f ListFindingsFiltersResponse
listFindingsFiltersResponse_httpStatus = (ListFindingsFiltersResponse -> Int)
-> (ListFindingsFiltersResponse
-> Int -> ListFindingsFiltersResponse)
-> Lens
ListFindingsFiltersResponse ListFindingsFiltersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFindingsFiltersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListFindingsFiltersResponse' :: ListFindingsFiltersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListFindingsFiltersResponse
s@ListFindingsFiltersResponse' {} Int
a -> ListFindingsFiltersResponse
s {$sel:httpStatus:ListFindingsFiltersResponse' :: Int
httpStatus = Int
a} :: ListFindingsFiltersResponse)
instance Prelude.NFData ListFindingsFiltersResponse