{-# 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.CodeGuruProfiler.GetFindingsReportAccountSummary
(
GetFindingsReportAccountSummary (..),
newGetFindingsReportAccountSummary,
getFindingsReportAccountSummary_nextToken,
getFindingsReportAccountSummary_dailyReportsOnly,
getFindingsReportAccountSummary_maxResults,
GetFindingsReportAccountSummaryResponse (..),
newGetFindingsReportAccountSummaryResponse,
getFindingsReportAccountSummaryResponse_nextToken,
getFindingsReportAccountSummaryResponse_httpStatus,
getFindingsReportAccountSummaryResponse_reportSummaries,
)
where
import Amazonka.CodeGuruProfiler.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 GetFindingsReportAccountSummary = GetFindingsReportAccountSummary'
{
GetFindingsReportAccountSummary -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetFindingsReportAccountSummary -> Maybe Bool
dailyReportsOnly :: Prelude.Maybe Prelude.Bool,
GetFindingsReportAccountSummary -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (GetFindingsReportAccountSummary
-> GetFindingsReportAccountSummary -> Bool
(GetFindingsReportAccountSummary
-> GetFindingsReportAccountSummary -> Bool)
-> (GetFindingsReportAccountSummary
-> GetFindingsReportAccountSummary -> Bool)
-> Eq GetFindingsReportAccountSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFindingsReportAccountSummary
-> GetFindingsReportAccountSummary -> Bool
$c/= :: GetFindingsReportAccountSummary
-> GetFindingsReportAccountSummary -> Bool
== :: GetFindingsReportAccountSummary
-> GetFindingsReportAccountSummary -> Bool
$c== :: GetFindingsReportAccountSummary
-> GetFindingsReportAccountSummary -> Bool
Prelude.Eq, ReadPrec [GetFindingsReportAccountSummary]
ReadPrec GetFindingsReportAccountSummary
Int -> ReadS GetFindingsReportAccountSummary
ReadS [GetFindingsReportAccountSummary]
(Int -> ReadS GetFindingsReportAccountSummary)
-> ReadS [GetFindingsReportAccountSummary]
-> ReadPrec GetFindingsReportAccountSummary
-> ReadPrec [GetFindingsReportAccountSummary]
-> Read GetFindingsReportAccountSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFindingsReportAccountSummary]
$creadListPrec :: ReadPrec [GetFindingsReportAccountSummary]
readPrec :: ReadPrec GetFindingsReportAccountSummary
$creadPrec :: ReadPrec GetFindingsReportAccountSummary
readList :: ReadS [GetFindingsReportAccountSummary]
$creadList :: ReadS [GetFindingsReportAccountSummary]
readsPrec :: Int -> ReadS GetFindingsReportAccountSummary
$creadsPrec :: Int -> ReadS GetFindingsReportAccountSummary
Prelude.Read, Int -> GetFindingsReportAccountSummary -> ShowS
[GetFindingsReportAccountSummary] -> ShowS
GetFindingsReportAccountSummary -> String
(Int -> GetFindingsReportAccountSummary -> ShowS)
-> (GetFindingsReportAccountSummary -> String)
-> ([GetFindingsReportAccountSummary] -> ShowS)
-> Show GetFindingsReportAccountSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFindingsReportAccountSummary] -> ShowS
$cshowList :: [GetFindingsReportAccountSummary] -> ShowS
show :: GetFindingsReportAccountSummary -> String
$cshow :: GetFindingsReportAccountSummary -> String
showsPrec :: Int -> GetFindingsReportAccountSummary -> ShowS
$cshowsPrec :: Int -> GetFindingsReportAccountSummary -> ShowS
Prelude.Show, (forall x.
GetFindingsReportAccountSummary
-> Rep GetFindingsReportAccountSummary x)
-> (forall x.
Rep GetFindingsReportAccountSummary x
-> GetFindingsReportAccountSummary)
-> Generic GetFindingsReportAccountSummary
forall x.
Rep GetFindingsReportAccountSummary x
-> GetFindingsReportAccountSummary
forall x.
GetFindingsReportAccountSummary
-> Rep GetFindingsReportAccountSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetFindingsReportAccountSummary x
-> GetFindingsReportAccountSummary
$cfrom :: forall x.
GetFindingsReportAccountSummary
-> Rep GetFindingsReportAccountSummary x
Prelude.Generic)
newGetFindingsReportAccountSummary ::
GetFindingsReportAccountSummary
newGetFindingsReportAccountSummary :: GetFindingsReportAccountSummary
newGetFindingsReportAccountSummary =
GetFindingsReportAccountSummary' :: Maybe Text
-> Maybe Bool -> Maybe Natural -> GetFindingsReportAccountSummary
GetFindingsReportAccountSummary'
{ $sel:nextToken:GetFindingsReportAccountSummary' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dailyReportsOnly:GetFindingsReportAccountSummary' :: Maybe Bool
dailyReportsOnly = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetFindingsReportAccountSummary' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
getFindingsReportAccountSummary_nextToken :: Lens.Lens' GetFindingsReportAccountSummary (Prelude.Maybe Prelude.Text)
getFindingsReportAccountSummary_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetFindingsReportAccountSummary
-> f GetFindingsReportAccountSummary
getFindingsReportAccountSummary_nextToken = (GetFindingsReportAccountSummary -> Maybe Text)
-> (GetFindingsReportAccountSummary
-> Maybe Text -> GetFindingsReportAccountSummary)
-> Lens
GetFindingsReportAccountSummary
GetFindingsReportAccountSummary
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFindingsReportAccountSummary' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetFindingsReportAccountSummary' :: GetFindingsReportAccountSummary -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetFindingsReportAccountSummary
s@GetFindingsReportAccountSummary' {} Maybe Text
a -> GetFindingsReportAccountSummary
s {$sel:nextToken:GetFindingsReportAccountSummary' :: Maybe Text
nextToken = Maybe Text
a} :: GetFindingsReportAccountSummary)
getFindingsReportAccountSummary_dailyReportsOnly :: Lens.Lens' GetFindingsReportAccountSummary (Prelude.Maybe Prelude.Bool)
getFindingsReportAccountSummary_dailyReportsOnly :: (Maybe Bool -> f (Maybe Bool))
-> GetFindingsReportAccountSummary
-> f GetFindingsReportAccountSummary
getFindingsReportAccountSummary_dailyReportsOnly = (GetFindingsReportAccountSummary -> Maybe Bool)
-> (GetFindingsReportAccountSummary
-> Maybe Bool -> GetFindingsReportAccountSummary)
-> Lens
GetFindingsReportAccountSummary
GetFindingsReportAccountSummary
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFindingsReportAccountSummary' {Maybe Bool
dailyReportsOnly :: Maybe Bool
$sel:dailyReportsOnly:GetFindingsReportAccountSummary' :: GetFindingsReportAccountSummary -> Maybe Bool
dailyReportsOnly} -> Maybe Bool
dailyReportsOnly) (\s :: GetFindingsReportAccountSummary
s@GetFindingsReportAccountSummary' {} Maybe Bool
a -> GetFindingsReportAccountSummary
s {$sel:dailyReportsOnly:GetFindingsReportAccountSummary' :: Maybe Bool
dailyReportsOnly = Maybe Bool
a} :: GetFindingsReportAccountSummary)
getFindingsReportAccountSummary_maxResults :: Lens.Lens' GetFindingsReportAccountSummary (Prelude.Maybe Prelude.Natural)
getFindingsReportAccountSummary_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetFindingsReportAccountSummary
-> f GetFindingsReportAccountSummary
getFindingsReportAccountSummary_maxResults = (GetFindingsReportAccountSummary -> Maybe Natural)
-> (GetFindingsReportAccountSummary
-> Maybe Natural -> GetFindingsReportAccountSummary)
-> Lens
GetFindingsReportAccountSummary
GetFindingsReportAccountSummary
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFindingsReportAccountSummary' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetFindingsReportAccountSummary' :: GetFindingsReportAccountSummary -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetFindingsReportAccountSummary
s@GetFindingsReportAccountSummary' {} Maybe Natural
a -> GetFindingsReportAccountSummary
s {$sel:maxResults:GetFindingsReportAccountSummary' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetFindingsReportAccountSummary)
instance
Core.AWSRequest
GetFindingsReportAccountSummary
where
type
AWSResponse GetFindingsReportAccountSummary =
GetFindingsReportAccountSummaryResponse
request :: GetFindingsReportAccountSummary
-> Request GetFindingsReportAccountSummary
request = Service
-> GetFindingsReportAccountSummary
-> Request GetFindingsReportAccountSummary
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetFindingsReportAccountSummary
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetFindingsReportAccountSummary)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetFindingsReportAccountSummary))
-> Logger
-> Service
-> Proxy GetFindingsReportAccountSummary
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetFindingsReportAccountSummary)))
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
-> [FindingsReportSummary]
-> GetFindingsReportAccountSummaryResponse
GetFindingsReportAccountSummaryResponse'
(Maybe Text
-> Int
-> [FindingsReportSummary]
-> GetFindingsReportAccountSummaryResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [FindingsReportSummary]
-> GetFindingsReportAccountSummaryResponse)
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
-> [FindingsReportSummary]
-> GetFindingsReportAccountSummaryResponse)
-> Either String Int
-> Either
String
([FindingsReportSummary]
-> GetFindingsReportAccountSummaryResponse)
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
([FindingsReportSummary]
-> GetFindingsReportAccountSummaryResponse)
-> Either String [FindingsReportSummary]
-> Either String GetFindingsReportAccountSummaryResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [FindingsReportSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"reportSummaries"
Either String (Maybe [FindingsReportSummary])
-> [FindingsReportSummary] -> Either String [FindingsReportSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [FindingsReportSummary]
forall a. Monoid a => a
Prelude.mempty
)
)
instance
Prelude.Hashable
GetFindingsReportAccountSummary
instance
Prelude.NFData
GetFindingsReportAccountSummary
instance
Core.ToHeaders
GetFindingsReportAccountSummary
where
toHeaders :: GetFindingsReportAccountSummary -> ResponseHeaders
toHeaders =
ResponseHeaders
-> GetFindingsReportAccountSummary -> 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 GetFindingsReportAccountSummary where
toPath :: GetFindingsReportAccountSummary -> ByteString
toPath = ByteString -> GetFindingsReportAccountSummary -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/internal/findingsReports"
instance Core.ToQuery GetFindingsReportAccountSummary where
toQuery :: GetFindingsReportAccountSummary -> QueryString
toQuery GetFindingsReportAccountSummary' {Maybe Bool
Maybe Natural
Maybe Text
maxResults :: Maybe Natural
dailyReportsOnly :: Maybe Bool
nextToken :: Maybe Text
$sel:maxResults:GetFindingsReportAccountSummary' :: GetFindingsReportAccountSummary -> Maybe Natural
$sel:dailyReportsOnly:GetFindingsReportAccountSummary' :: GetFindingsReportAccountSummary -> Maybe Bool
$sel:nextToken:GetFindingsReportAccountSummary' :: GetFindingsReportAccountSummary -> 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
"dailyReportsOnly" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
dailyReportsOnly,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data GetFindingsReportAccountSummaryResponse = GetFindingsReportAccountSummaryResponse'
{
GetFindingsReportAccountSummaryResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetFindingsReportAccountSummaryResponse -> Int
httpStatus :: Prelude.Int,
GetFindingsReportAccountSummaryResponse -> [FindingsReportSummary]
reportSummaries :: [FindingsReportSummary]
}
deriving (GetFindingsReportAccountSummaryResponse
-> GetFindingsReportAccountSummaryResponse -> Bool
(GetFindingsReportAccountSummaryResponse
-> GetFindingsReportAccountSummaryResponse -> Bool)
-> (GetFindingsReportAccountSummaryResponse
-> GetFindingsReportAccountSummaryResponse -> Bool)
-> Eq GetFindingsReportAccountSummaryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFindingsReportAccountSummaryResponse
-> GetFindingsReportAccountSummaryResponse -> Bool
$c/= :: GetFindingsReportAccountSummaryResponse
-> GetFindingsReportAccountSummaryResponse -> Bool
== :: GetFindingsReportAccountSummaryResponse
-> GetFindingsReportAccountSummaryResponse -> Bool
$c== :: GetFindingsReportAccountSummaryResponse
-> GetFindingsReportAccountSummaryResponse -> Bool
Prelude.Eq, ReadPrec [GetFindingsReportAccountSummaryResponse]
ReadPrec GetFindingsReportAccountSummaryResponse
Int -> ReadS GetFindingsReportAccountSummaryResponse
ReadS [GetFindingsReportAccountSummaryResponse]
(Int -> ReadS GetFindingsReportAccountSummaryResponse)
-> ReadS [GetFindingsReportAccountSummaryResponse]
-> ReadPrec GetFindingsReportAccountSummaryResponse
-> ReadPrec [GetFindingsReportAccountSummaryResponse]
-> Read GetFindingsReportAccountSummaryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFindingsReportAccountSummaryResponse]
$creadListPrec :: ReadPrec [GetFindingsReportAccountSummaryResponse]
readPrec :: ReadPrec GetFindingsReportAccountSummaryResponse
$creadPrec :: ReadPrec GetFindingsReportAccountSummaryResponse
readList :: ReadS [GetFindingsReportAccountSummaryResponse]
$creadList :: ReadS [GetFindingsReportAccountSummaryResponse]
readsPrec :: Int -> ReadS GetFindingsReportAccountSummaryResponse
$creadsPrec :: Int -> ReadS GetFindingsReportAccountSummaryResponse
Prelude.Read, Int -> GetFindingsReportAccountSummaryResponse -> ShowS
[GetFindingsReportAccountSummaryResponse] -> ShowS
GetFindingsReportAccountSummaryResponse -> String
(Int -> GetFindingsReportAccountSummaryResponse -> ShowS)
-> (GetFindingsReportAccountSummaryResponse -> String)
-> ([GetFindingsReportAccountSummaryResponse] -> ShowS)
-> Show GetFindingsReportAccountSummaryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFindingsReportAccountSummaryResponse] -> ShowS
$cshowList :: [GetFindingsReportAccountSummaryResponse] -> ShowS
show :: GetFindingsReportAccountSummaryResponse -> String
$cshow :: GetFindingsReportAccountSummaryResponse -> String
showsPrec :: Int -> GetFindingsReportAccountSummaryResponse -> ShowS
$cshowsPrec :: Int -> GetFindingsReportAccountSummaryResponse -> ShowS
Prelude.Show, (forall x.
GetFindingsReportAccountSummaryResponse
-> Rep GetFindingsReportAccountSummaryResponse x)
-> (forall x.
Rep GetFindingsReportAccountSummaryResponse x
-> GetFindingsReportAccountSummaryResponse)
-> Generic GetFindingsReportAccountSummaryResponse
forall x.
Rep GetFindingsReportAccountSummaryResponse x
-> GetFindingsReportAccountSummaryResponse
forall x.
GetFindingsReportAccountSummaryResponse
-> Rep GetFindingsReportAccountSummaryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetFindingsReportAccountSummaryResponse x
-> GetFindingsReportAccountSummaryResponse
$cfrom :: forall x.
GetFindingsReportAccountSummaryResponse
-> Rep GetFindingsReportAccountSummaryResponse x
Prelude.Generic)
newGetFindingsReportAccountSummaryResponse ::
Prelude.Int ->
GetFindingsReportAccountSummaryResponse
newGetFindingsReportAccountSummaryResponse :: Int -> GetFindingsReportAccountSummaryResponse
newGetFindingsReportAccountSummaryResponse
Int
pHttpStatus_ =
GetFindingsReportAccountSummaryResponse' :: Maybe Text
-> Int
-> [FindingsReportSummary]
-> GetFindingsReportAccountSummaryResponse
GetFindingsReportAccountSummaryResponse'
{ $sel:nextToken:GetFindingsReportAccountSummaryResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetFindingsReportAccountSummaryResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:reportSummaries:GetFindingsReportAccountSummaryResponse' :: [FindingsReportSummary]
reportSummaries = [FindingsReportSummary]
forall a. Monoid a => a
Prelude.mempty
}
getFindingsReportAccountSummaryResponse_nextToken :: Lens.Lens' GetFindingsReportAccountSummaryResponse (Prelude.Maybe Prelude.Text)
getFindingsReportAccountSummaryResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetFindingsReportAccountSummaryResponse
-> f GetFindingsReportAccountSummaryResponse
getFindingsReportAccountSummaryResponse_nextToken = (GetFindingsReportAccountSummaryResponse -> Maybe Text)
-> (GetFindingsReportAccountSummaryResponse
-> Maybe Text -> GetFindingsReportAccountSummaryResponse)
-> Lens
GetFindingsReportAccountSummaryResponse
GetFindingsReportAccountSummaryResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFindingsReportAccountSummaryResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetFindingsReportAccountSummaryResponse' :: GetFindingsReportAccountSummaryResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetFindingsReportAccountSummaryResponse
s@GetFindingsReportAccountSummaryResponse' {} Maybe Text
a -> GetFindingsReportAccountSummaryResponse
s {$sel:nextToken:GetFindingsReportAccountSummaryResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetFindingsReportAccountSummaryResponse)
getFindingsReportAccountSummaryResponse_httpStatus :: Lens.Lens' GetFindingsReportAccountSummaryResponse Prelude.Int
getFindingsReportAccountSummaryResponse_httpStatus :: (Int -> f Int)
-> GetFindingsReportAccountSummaryResponse
-> f GetFindingsReportAccountSummaryResponse
getFindingsReportAccountSummaryResponse_httpStatus = (GetFindingsReportAccountSummaryResponse -> Int)
-> (GetFindingsReportAccountSummaryResponse
-> Int -> GetFindingsReportAccountSummaryResponse)
-> Lens
GetFindingsReportAccountSummaryResponse
GetFindingsReportAccountSummaryResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFindingsReportAccountSummaryResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetFindingsReportAccountSummaryResponse' :: GetFindingsReportAccountSummaryResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetFindingsReportAccountSummaryResponse
s@GetFindingsReportAccountSummaryResponse' {} Int
a -> GetFindingsReportAccountSummaryResponse
s {$sel:httpStatus:GetFindingsReportAccountSummaryResponse' :: Int
httpStatus = Int
a} :: GetFindingsReportAccountSummaryResponse)
getFindingsReportAccountSummaryResponse_reportSummaries :: Lens.Lens' GetFindingsReportAccountSummaryResponse [FindingsReportSummary]
getFindingsReportAccountSummaryResponse_reportSummaries :: ([FindingsReportSummary] -> f [FindingsReportSummary])
-> GetFindingsReportAccountSummaryResponse
-> f GetFindingsReportAccountSummaryResponse
getFindingsReportAccountSummaryResponse_reportSummaries = (GetFindingsReportAccountSummaryResponse
-> [FindingsReportSummary])
-> (GetFindingsReportAccountSummaryResponse
-> [FindingsReportSummary]
-> GetFindingsReportAccountSummaryResponse)
-> Lens
GetFindingsReportAccountSummaryResponse
GetFindingsReportAccountSummaryResponse
[FindingsReportSummary]
[FindingsReportSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFindingsReportAccountSummaryResponse' {[FindingsReportSummary]
reportSummaries :: [FindingsReportSummary]
$sel:reportSummaries:GetFindingsReportAccountSummaryResponse' :: GetFindingsReportAccountSummaryResponse -> [FindingsReportSummary]
reportSummaries} -> [FindingsReportSummary]
reportSummaries) (\s :: GetFindingsReportAccountSummaryResponse
s@GetFindingsReportAccountSummaryResponse' {} [FindingsReportSummary]
a -> GetFindingsReportAccountSummaryResponse
s {$sel:reportSummaries:GetFindingsReportAccountSummaryResponse' :: [FindingsReportSummary]
reportSummaries = [FindingsReportSummary]
a} :: GetFindingsReportAccountSummaryResponse) (([FindingsReportSummary] -> f [FindingsReportSummary])
-> GetFindingsReportAccountSummaryResponse
-> f GetFindingsReportAccountSummaryResponse)
-> (([FindingsReportSummary] -> f [FindingsReportSummary])
-> [FindingsReportSummary] -> f [FindingsReportSummary])
-> ([FindingsReportSummary] -> f [FindingsReportSummary])
-> GetFindingsReportAccountSummaryResponse
-> f GetFindingsReportAccountSummaryResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([FindingsReportSummary] -> f [FindingsReportSummary])
-> [FindingsReportSummary] -> f [FindingsReportSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
GetFindingsReportAccountSummaryResponse