{-# 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.AccessAnalyzer.ListAnalyzers
(
ListAnalyzers (..),
newListAnalyzers,
listAnalyzers_nextToken,
listAnalyzers_type,
listAnalyzers_maxResults,
ListAnalyzersResponse (..),
newListAnalyzersResponse,
listAnalyzersResponse_nextToken,
listAnalyzersResponse_httpStatus,
listAnalyzersResponse_analyzers,
)
where
import Amazonka.AccessAnalyzer.Types
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
data ListAnalyzers = ListAnalyzers'
{
ListAnalyzers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAnalyzers -> Maybe Type
type' :: Prelude.Maybe Type,
ListAnalyzers -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
}
deriving (ListAnalyzers -> ListAnalyzers -> Bool
(ListAnalyzers -> ListAnalyzers -> Bool)
-> (ListAnalyzers -> ListAnalyzers -> Bool) -> Eq ListAnalyzers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAnalyzers -> ListAnalyzers -> Bool
$c/= :: ListAnalyzers -> ListAnalyzers -> Bool
== :: ListAnalyzers -> ListAnalyzers -> Bool
$c== :: ListAnalyzers -> ListAnalyzers -> Bool
Prelude.Eq, ReadPrec [ListAnalyzers]
ReadPrec ListAnalyzers
Int -> ReadS ListAnalyzers
ReadS [ListAnalyzers]
(Int -> ReadS ListAnalyzers)
-> ReadS [ListAnalyzers]
-> ReadPrec ListAnalyzers
-> ReadPrec [ListAnalyzers]
-> Read ListAnalyzers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAnalyzers]
$creadListPrec :: ReadPrec [ListAnalyzers]
readPrec :: ReadPrec ListAnalyzers
$creadPrec :: ReadPrec ListAnalyzers
readList :: ReadS [ListAnalyzers]
$creadList :: ReadS [ListAnalyzers]
readsPrec :: Int -> ReadS ListAnalyzers
$creadsPrec :: Int -> ReadS ListAnalyzers
Prelude.Read, Int -> ListAnalyzers -> ShowS
[ListAnalyzers] -> ShowS
ListAnalyzers -> String
(Int -> ListAnalyzers -> ShowS)
-> (ListAnalyzers -> String)
-> ([ListAnalyzers] -> ShowS)
-> Show ListAnalyzers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAnalyzers] -> ShowS
$cshowList :: [ListAnalyzers] -> ShowS
show :: ListAnalyzers -> String
$cshow :: ListAnalyzers -> String
showsPrec :: Int -> ListAnalyzers -> ShowS
$cshowsPrec :: Int -> ListAnalyzers -> ShowS
Prelude.Show, (forall x. ListAnalyzers -> Rep ListAnalyzers x)
-> (forall x. Rep ListAnalyzers x -> ListAnalyzers)
-> Generic ListAnalyzers
forall x. Rep ListAnalyzers x -> ListAnalyzers
forall x. ListAnalyzers -> Rep ListAnalyzers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAnalyzers x -> ListAnalyzers
$cfrom :: forall x. ListAnalyzers -> Rep ListAnalyzers x
Prelude.Generic)
newListAnalyzers ::
ListAnalyzers
newListAnalyzers :: ListAnalyzers
newListAnalyzers =
ListAnalyzers' :: Maybe Text -> Maybe Type -> Maybe Int -> ListAnalyzers
ListAnalyzers'
{ $sel:nextToken:ListAnalyzers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':ListAnalyzers' :: Maybe Type
type' = Maybe Type
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAnalyzers' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
listAnalyzers_nextToken :: Lens.Lens' ListAnalyzers (Prelude.Maybe Prelude.Text)
listAnalyzers_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListAnalyzers -> f ListAnalyzers
listAnalyzers_nextToken = (ListAnalyzers -> Maybe Text)
-> (ListAnalyzers -> Maybe Text -> ListAnalyzers)
-> Lens ListAnalyzers ListAnalyzers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnalyzers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAnalyzers' :: ListAnalyzers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAnalyzers
s@ListAnalyzers' {} Maybe Text
a -> ListAnalyzers
s {$sel:nextToken:ListAnalyzers' :: Maybe Text
nextToken = Maybe Text
a} :: ListAnalyzers)
listAnalyzers_type :: Lens.Lens' ListAnalyzers (Prelude.Maybe Type)
listAnalyzers_type :: (Maybe Type -> f (Maybe Type)) -> ListAnalyzers -> f ListAnalyzers
listAnalyzers_type = (ListAnalyzers -> Maybe Type)
-> (ListAnalyzers -> Maybe Type -> ListAnalyzers)
-> Lens ListAnalyzers ListAnalyzers (Maybe Type) (Maybe Type)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnalyzers' {Maybe Type
type' :: Maybe Type
$sel:type':ListAnalyzers' :: ListAnalyzers -> Maybe Type
type'} -> Maybe Type
type') (\s :: ListAnalyzers
s@ListAnalyzers' {} Maybe Type
a -> ListAnalyzers
s {$sel:type':ListAnalyzers' :: Maybe Type
type' = Maybe Type
a} :: ListAnalyzers)
listAnalyzers_maxResults :: Lens.Lens' ListAnalyzers (Prelude.Maybe Prelude.Int)
listAnalyzers_maxResults :: (Maybe Int -> f (Maybe Int)) -> ListAnalyzers -> f ListAnalyzers
listAnalyzers_maxResults = (ListAnalyzers -> Maybe Int)
-> (ListAnalyzers -> Maybe Int -> ListAnalyzers)
-> Lens ListAnalyzers ListAnalyzers (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnalyzers' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListAnalyzers' :: ListAnalyzers -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListAnalyzers
s@ListAnalyzers' {} Maybe Int
a -> ListAnalyzers
s {$sel:maxResults:ListAnalyzers' :: Maybe Int
maxResults = Maybe Int
a} :: ListAnalyzers)
instance Core.AWSPager ListAnalyzers where
page :: ListAnalyzers -> AWSResponse ListAnalyzers -> Maybe ListAnalyzers
page ListAnalyzers
rq AWSResponse ListAnalyzers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAnalyzers
ListAnalyzersResponse
rs
ListAnalyzersResponse
-> Getting (First Text) ListAnalyzersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAnalyzersResponse
-> Const (First Text) ListAnalyzersResponse
Lens' ListAnalyzersResponse (Maybe Text)
listAnalyzersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAnalyzersResponse
-> Const (First Text) ListAnalyzersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAnalyzersResponse 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 ListAnalyzers
forall a. Maybe a
Prelude.Nothing
| [AnalyzerSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
(AWSResponse ListAnalyzers
ListAnalyzersResponse
rs ListAnalyzersResponse
-> Getting
[AnalyzerSummary] ListAnalyzersResponse [AnalyzerSummary]
-> [AnalyzerSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting [AnalyzerSummary] ListAnalyzersResponse [AnalyzerSummary]
Lens' ListAnalyzersResponse [AnalyzerSummary]
listAnalyzersResponse_analyzers) =
Maybe ListAnalyzers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListAnalyzers -> Maybe ListAnalyzers
forall a. a -> Maybe a
Prelude.Just (ListAnalyzers -> Maybe ListAnalyzers)
-> ListAnalyzers -> Maybe ListAnalyzers
forall a b. (a -> b) -> a -> b
Prelude.$
ListAnalyzers
rq
ListAnalyzers -> (ListAnalyzers -> ListAnalyzers) -> ListAnalyzers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListAnalyzers -> Identity ListAnalyzers
Lens ListAnalyzers ListAnalyzers (Maybe Text) (Maybe Text)
listAnalyzers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListAnalyzers -> Identity ListAnalyzers)
-> Maybe Text -> ListAnalyzers -> ListAnalyzers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAnalyzers
ListAnalyzersResponse
rs
ListAnalyzersResponse
-> Getting (First Text) ListAnalyzersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListAnalyzersResponse
-> Const (First Text) ListAnalyzersResponse
Lens' ListAnalyzersResponse (Maybe Text)
listAnalyzersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListAnalyzersResponse
-> Const (First Text) ListAnalyzersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListAnalyzersResponse 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 ListAnalyzers where
type
AWSResponse ListAnalyzers =
ListAnalyzersResponse
request :: ListAnalyzers -> Request ListAnalyzers
request = Service -> ListAnalyzers -> Request ListAnalyzers
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListAnalyzers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListAnalyzers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListAnalyzers))
-> Logger
-> Service
-> Proxy ListAnalyzers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListAnalyzers)))
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 -> Int -> [AnalyzerSummary] -> ListAnalyzersResponse
ListAnalyzersResponse'
(Maybe Text -> Int -> [AnalyzerSummary] -> ListAnalyzersResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> [AnalyzerSummary] -> ListAnalyzersResponse)
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
"nextToken")
Either String (Int -> [AnalyzerSummary] -> ListAnalyzersResponse)
-> Either String Int
-> Either String ([AnalyzerSummary] -> ListAnalyzersResponse)
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))
Either String ([AnalyzerSummary] -> ListAnalyzersResponse)
-> Either String [AnalyzerSummary]
-> Either String ListAnalyzersResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe [AnalyzerSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"analyzers" Either String (Maybe [AnalyzerSummary])
-> [AnalyzerSummary] -> Either String [AnalyzerSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [AnalyzerSummary]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable ListAnalyzers
instance Prelude.NFData ListAnalyzers
instance Core.ToHeaders ListAnalyzers where
toHeaders :: ListAnalyzers -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListAnalyzers -> 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 ListAnalyzers where
toPath :: ListAnalyzers -> ByteString
toPath = ByteString -> ListAnalyzers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/analyzer"
instance Core.ToQuery ListAnalyzers where
toQuery :: ListAnalyzers -> QueryString
toQuery ListAnalyzers' {Maybe Int
Maybe Text
Maybe Type
maxResults :: Maybe Int
type' :: Maybe Type
nextToken :: Maybe Text
$sel:maxResults:ListAnalyzers' :: ListAnalyzers -> Maybe Int
$sel:type':ListAnalyzers' :: ListAnalyzers -> Maybe Type
$sel:nextToken:ListAnalyzers' :: ListAnalyzers -> 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
"type" ByteString -> Maybe Type -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Type
type',
ByteString
"maxResults" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxResults
]
data ListAnalyzersResponse = ListAnalyzersResponse'
{
ListAnalyzersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAnalyzersResponse -> Int
httpStatus :: Prelude.Int,
ListAnalyzersResponse -> [AnalyzerSummary]
analyzers :: [AnalyzerSummary]
}
deriving (ListAnalyzersResponse -> ListAnalyzersResponse -> Bool
(ListAnalyzersResponse -> ListAnalyzersResponse -> Bool)
-> (ListAnalyzersResponse -> ListAnalyzersResponse -> Bool)
-> Eq ListAnalyzersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAnalyzersResponse -> ListAnalyzersResponse -> Bool
$c/= :: ListAnalyzersResponse -> ListAnalyzersResponse -> Bool
== :: ListAnalyzersResponse -> ListAnalyzersResponse -> Bool
$c== :: ListAnalyzersResponse -> ListAnalyzersResponse -> Bool
Prelude.Eq, ReadPrec [ListAnalyzersResponse]
ReadPrec ListAnalyzersResponse
Int -> ReadS ListAnalyzersResponse
ReadS [ListAnalyzersResponse]
(Int -> ReadS ListAnalyzersResponse)
-> ReadS [ListAnalyzersResponse]
-> ReadPrec ListAnalyzersResponse
-> ReadPrec [ListAnalyzersResponse]
-> Read ListAnalyzersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAnalyzersResponse]
$creadListPrec :: ReadPrec [ListAnalyzersResponse]
readPrec :: ReadPrec ListAnalyzersResponse
$creadPrec :: ReadPrec ListAnalyzersResponse
readList :: ReadS [ListAnalyzersResponse]
$creadList :: ReadS [ListAnalyzersResponse]
readsPrec :: Int -> ReadS ListAnalyzersResponse
$creadsPrec :: Int -> ReadS ListAnalyzersResponse
Prelude.Read, Int -> ListAnalyzersResponse -> ShowS
[ListAnalyzersResponse] -> ShowS
ListAnalyzersResponse -> String
(Int -> ListAnalyzersResponse -> ShowS)
-> (ListAnalyzersResponse -> String)
-> ([ListAnalyzersResponse] -> ShowS)
-> Show ListAnalyzersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAnalyzersResponse] -> ShowS
$cshowList :: [ListAnalyzersResponse] -> ShowS
show :: ListAnalyzersResponse -> String
$cshow :: ListAnalyzersResponse -> String
showsPrec :: Int -> ListAnalyzersResponse -> ShowS
$cshowsPrec :: Int -> ListAnalyzersResponse -> ShowS
Prelude.Show, (forall x. ListAnalyzersResponse -> Rep ListAnalyzersResponse x)
-> (forall x. Rep ListAnalyzersResponse x -> ListAnalyzersResponse)
-> Generic ListAnalyzersResponse
forall x. Rep ListAnalyzersResponse x -> ListAnalyzersResponse
forall x. ListAnalyzersResponse -> Rep ListAnalyzersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAnalyzersResponse x -> ListAnalyzersResponse
$cfrom :: forall x. ListAnalyzersResponse -> Rep ListAnalyzersResponse x
Prelude.Generic)
newListAnalyzersResponse ::
Prelude.Int ->
ListAnalyzersResponse
newListAnalyzersResponse :: Int -> ListAnalyzersResponse
newListAnalyzersResponse Int
pHttpStatus_ =
ListAnalyzersResponse' :: Maybe Text -> Int -> [AnalyzerSummary] -> ListAnalyzersResponse
ListAnalyzersResponse'
{ $sel:nextToken:ListAnalyzersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAnalyzersResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:analyzers:ListAnalyzersResponse' :: [AnalyzerSummary]
analyzers = [AnalyzerSummary]
forall a. Monoid a => a
Prelude.mempty
}
listAnalyzersResponse_nextToken :: Lens.Lens' ListAnalyzersResponse (Prelude.Maybe Prelude.Text)
listAnalyzersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAnalyzersResponse -> f ListAnalyzersResponse
listAnalyzersResponse_nextToken = (ListAnalyzersResponse -> Maybe Text)
-> (ListAnalyzersResponse -> Maybe Text -> ListAnalyzersResponse)
-> Lens' ListAnalyzersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnalyzersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAnalyzersResponse' :: ListAnalyzersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAnalyzersResponse
s@ListAnalyzersResponse' {} Maybe Text
a -> ListAnalyzersResponse
s {$sel:nextToken:ListAnalyzersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAnalyzersResponse)
listAnalyzersResponse_httpStatus :: Lens.Lens' ListAnalyzersResponse Prelude.Int
listAnalyzersResponse_httpStatus :: (Int -> f Int) -> ListAnalyzersResponse -> f ListAnalyzersResponse
listAnalyzersResponse_httpStatus = (ListAnalyzersResponse -> Int)
-> (ListAnalyzersResponse -> Int -> ListAnalyzersResponse)
-> Lens ListAnalyzersResponse ListAnalyzersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnalyzersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAnalyzersResponse' :: ListAnalyzersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAnalyzersResponse
s@ListAnalyzersResponse' {} Int
a -> ListAnalyzersResponse
s {$sel:httpStatus:ListAnalyzersResponse' :: Int
httpStatus = Int
a} :: ListAnalyzersResponse)
listAnalyzersResponse_analyzers :: Lens.Lens' ListAnalyzersResponse [AnalyzerSummary]
listAnalyzersResponse_analyzers :: ([AnalyzerSummary] -> f [AnalyzerSummary])
-> ListAnalyzersResponse -> f ListAnalyzersResponse
listAnalyzersResponse_analyzers = (ListAnalyzersResponse -> [AnalyzerSummary])
-> (ListAnalyzersResponse
-> [AnalyzerSummary] -> ListAnalyzersResponse)
-> Lens' ListAnalyzersResponse [AnalyzerSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnalyzersResponse' {[AnalyzerSummary]
analyzers :: [AnalyzerSummary]
$sel:analyzers:ListAnalyzersResponse' :: ListAnalyzersResponse -> [AnalyzerSummary]
analyzers} -> [AnalyzerSummary]
analyzers) (\s :: ListAnalyzersResponse
s@ListAnalyzersResponse' {} [AnalyzerSummary]
a -> ListAnalyzersResponse
s {$sel:analyzers:ListAnalyzersResponse' :: [AnalyzerSummary]
analyzers = [AnalyzerSummary]
a} :: ListAnalyzersResponse) (([AnalyzerSummary] -> f [AnalyzerSummary])
-> ListAnalyzersResponse -> f ListAnalyzersResponse)
-> (([AnalyzerSummary] -> f [AnalyzerSummary])
-> [AnalyzerSummary] -> f [AnalyzerSummary])
-> ([AnalyzerSummary] -> f [AnalyzerSummary])
-> ListAnalyzersResponse
-> f ListAnalyzersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AnalyzerSummary] -> f [AnalyzerSummary])
-> [AnalyzerSummary] -> f [AnalyzerSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListAnalyzersResponse