{-# 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.GuardDuty.GetFilter
(
GetFilter (..),
newGetFilter,
getFilter_detectorId,
getFilter_filterName,
GetFilterResponse (..),
newGetFilterResponse,
getFilterResponse_description,
getFilterResponse_rank,
getFilterResponse_tags,
getFilterResponse_httpStatus,
getFilterResponse_name,
getFilterResponse_action,
getFilterResponse_findingCriteria,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GuardDuty.Types
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 GetFilter = GetFilter'
{
GetFilter -> Text
detectorId :: Prelude.Text,
GetFilter -> Text
filterName :: Prelude.Text
}
deriving (GetFilter -> GetFilter -> Bool
(GetFilter -> GetFilter -> Bool)
-> (GetFilter -> GetFilter -> Bool) -> Eq GetFilter
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFilter -> GetFilter -> Bool
$c/= :: GetFilter -> GetFilter -> Bool
== :: GetFilter -> GetFilter -> Bool
$c== :: GetFilter -> GetFilter -> Bool
Prelude.Eq, ReadPrec [GetFilter]
ReadPrec GetFilter
Int -> ReadS GetFilter
ReadS [GetFilter]
(Int -> ReadS GetFilter)
-> ReadS [GetFilter]
-> ReadPrec GetFilter
-> ReadPrec [GetFilter]
-> Read GetFilter
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFilter]
$creadListPrec :: ReadPrec [GetFilter]
readPrec :: ReadPrec GetFilter
$creadPrec :: ReadPrec GetFilter
readList :: ReadS [GetFilter]
$creadList :: ReadS [GetFilter]
readsPrec :: Int -> ReadS GetFilter
$creadsPrec :: Int -> ReadS GetFilter
Prelude.Read, Int -> GetFilter -> ShowS
[GetFilter] -> ShowS
GetFilter -> String
(Int -> GetFilter -> ShowS)
-> (GetFilter -> String)
-> ([GetFilter] -> ShowS)
-> Show GetFilter
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFilter] -> ShowS
$cshowList :: [GetFilter] -> ShowS
show :: GetFilter -> String
$cshow :: GetFilter -> String
showsPrec :: Int -> GetFilter -> ShowS
$cshowsPrec :: Int -> GetFilter -> ShowS
Prelude.Show, (forall x. GetFilter -> Rep GetFilter x)
-> (forall x. Rep GetFilter x -> GetFilter) -> Generic GetFilter
forall x. Rep GetFilter x -> GetFilter
forall x. GetFilter -> Rep GetFilter x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetFilter x -> GetFilter
$cfrom :: forall x. GetFilter -> Rep GetFilter x
Prelude.Generic)
newGetFilter ::
Prelude.Text ->
Prelude.Text ->
GetFilter
newGetFilter :: Text -> Text -> GetFilter
newGetFilter Text
pDetectorId_ Text
pFilterName_ =
GetFilter' :: Text -> Text -> GetFilter
GetFilter'
{ $sel:detectorId:GetFilter' :: Text
detectorId = Text
pDetectorId_,
$sel:filterName:GetFilter' :: Text
filterName = Text
pFilterName_
}
getFilter_detectorId :: Lens.Lens' GetFilter Prelude.Text
getFilter_detectorId :: (Text -> f Text) -> GetFilter -> f GetFilter
getFilter_detectorId = (GetFilter -> Text)
-> (GetFilter -> Text -> GetFilter)
-> Lens GetFilter GetFilter Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFilter' {Text
detectorId :: Text
$sel:detectorId:GetFilter' :: GetFilter -> Text
detectorId} -> Text
detectorId) (\s :: GetFilter
s@GetFilter' {} Text
a -> GetFilter
s {$sel:detectorId:GetFilter' :: Text
detectorId = Text
a} :: GetFilter)
getFilter_filterName :: Lens.Lens' GetFilter Prelude.Text
getFilter_filterName :: (Text -> f Text) -> GetFilter -> f GetFilter
getFilter_filterName = (GetFilter -> Text)
-> (GetFilter -> Text -> GetFilter)
-> Lens GetFilter GetFilter Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFilter' {Text
filterName :: Text
$sel:filterName:GetFilter' :: GetFilter -> Text
filterName} -> Text
filterName) (\s :: GetFilter
s@GetFilter' {} Text
a -> GetFilter
s {$sel:filterName:GetFilter' :: Text
filterName = Text
a} :: GetFilter)
instance Core.AWSRequest GetFilter where
type AWSResponse GetFilter = GetFilterResponse
request :: GetFilter -> Request GetFilter
request = Service -> GetFilter -> Request GetFilter
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetFilter
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetFilter)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetFilter))
-> Logger
-> Service
-> Proxy GetFilter
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetFilter)))
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 Natural
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> FilterAction
-> FindingCriteria
-> GetFilterResponse
GetFilterResponse'
(Maybe Text
-> Maybe Natural
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> FilterAction
-> FindingCriteria
-> GetFilterResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> FilterAction
-> FindingCriteria
-> GetFilterResponse)
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
"description")
Either
String
(Maybe Natural
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> FilterAction
-> FindingCriteria
-> GetFilterResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe (HashMap Text Text)
-> Int
-> Text
-> FilterAction
-> FindingCriteria
-> GetFilterResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"rank")
Either
String
(Maybe (HashMap Text Text)
-> Int
-> Text
-> FilterAction
-> FindingCriteria
-> GetFilterResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
String
(Int
-> Text -> FilterAction -> FindingCriteria -> GetFilterResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Int
-> Text -> FilterAction -> FindingCriteria -> GetFilterResponse)
-> Either String Int
-> Either
String
(Text -> FilterAction -> FindingCriteria -> GetFilterResponse)
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
(Text -> FilterAction -> FindingCriteria -> GetFilterResponse)
-> Either String Text
-> Either
String (FilterAction -> FindingCriteria -> GetFilterResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"name")
Either
String (FilterAction -> FindingCriteria -> GetFilterResponse)
-> Either String FilterAction
-> Either String (FindingCriteria -> GetFilterResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String FilterAction
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"action")
Either String (FindingCriteria -> GetFilterResponse)
-> Either String FindingCriteria -> Either String GetFilterResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String FindingCriteria
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"findingCriteria")
)
instance Prelude.Hashable GetFilter
instance Prelude.NFData GetFilter
instance Core.ToHeaders GetFilter where
toHeaders :: GetFilter -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetFilter -> 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 GetFilter where
toPath :: GetFilter -> ByteString
toPath GetFilter' {Text
filterName :: Text
detectorId :: Text
$sel:filterName:GetFilter' :: GetFilter -> Text
$sel:detectorId:GetFilter' :: GetFilter -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/detector/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
detectorId,
ByteString
"/filter/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
filterName
]
instance Core.ToQuery GetFilter where
toQuery :: GetFilter -> QueryString
toQuery = QueryString -> GetFilter -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetFilterResponse = GetFilterResponse'
{
GetFilterResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
GetFilterResponse -> Maybe Natural
rank :: Prelude.Maybe Prelude.Natural,
GetFilterResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetFilterResponse -> Int
httpStatus :: Prelude.Int,
GetFilterResponse -> Text
name :: Prelude.Text,
GetFilterResponse -> FilterAction
action :: FilterAction,
GetFilterResponse -> FindingCriteria
findingCriteria :: FindingCriteria
}
deriving (GetFilterResponse -> GetFilterResponse -> Bool
(GetFilterResponse -> GetFilterResponse -> Bool)
-> (GetFilterResponse -> GetFilterResponse -> Bool)
-> Eq GetFilterResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFilterResponse -> GetFilterResponse -> Bool
$c/= :: GetFilterResponse -> GetFilterResponse -> Bool
== :: GetFilterResponse -> GetFilterResponse -> Bool
$c== :: GetFilterResponse -> GetFilterResponse -> Bool
Prelude.Eq, ReadPrec [GetFilterResponse]
ReadPrec GetFilterResponse
Int -> ReadS GetFilterResponse
ReadS [GetFilterResponse]
(Int -> ReadS GetFilterResponse)
-> ReadS [GetFilterResponse]
-> ReadPrec GetFilterResponse
-> ReadPrec [GetFilterResponse]
-> Read GetFilterResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFilterResponse]
$creadListPrec :: ReadPrec [GetFilterResponse]
readPrec :: ReadPrec GetFilterResponse
$creadPrec :: ReadPrec GetFilterResponse
readList :: ReadS [GetFilterResponse]
$creadList :: ReadS [GetFilterResponse]
readsPrec :: Int -> ReadS GetFilterResponse
$creadsPrec :: Int -> ReadS GetFilterResponse
Prelude.Read, Int -> GetFilterResponse -> ShowS
[GetFilterResponse] -> ShowS
GetFilterResponse -> String
(Int -> GetFilterResponse -> ShowS)
-> (GetFilterResponse -> String)
-> ([GetFilterResponse] -> ShowS)
-> Show GetFilterResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFilterResponse] -> ShowS
$cshowList :: [GetFilterResponse] -> ShowS
show :: GetFilterResponse -> String
$cshow :: GetFilterResponse -> String
showsPrec :: Int -> GetFilterResponse -> ShowS
$cshowsPrec :: Int -> GetFilterResponse -> ShowS
Prelude.Show, (forall x. GetFilterResponse -> Rep GetFilterResponse x)
-> (forall x. Rep GetFilterResponse x -> GetFilterResponse)
-> Generic GetFilterResponse
forall x. Rep GetFilterResponse x -> GetFilterResponse
forall x. GetFilterResponse -> Rep GetFilterResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetFilterResponse x -> GetFilterResponse
$cfrom :: forall x. GetFilterResponse -> Rep GetFilterResponse x
Prelude.Generic)
newGetFilterResponse ::
Prelude.Int ->
Prelude.Text ->
FilterAction ->
FindingCriteria ->
GetFilterResponse
newGetFilterResponse :: Int -> Text -> FilterAction -> FindingCriteria -> GetFilterResponse
newGetFilterResponse
Int
pHttpStatus_
Text
pName_
FilterAction
pAction_
FindingCriteria
pFindingCriteria_ =
GetFilterResponse' :: Maybe Text
-> Maybe Natural
-> Maybe (HashMap Text Text)
-> Int
-> Text
-> FilterAction
-> FindingCriteria
-> GetFilterResponse
GetFilterResponse'
{ $sel:description:GetFilterResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:rank:GetFilterResponse' :: Maybe Natural
rank = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetFilterResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetFilterResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:name:GetFilterResponse' :: Text
name = Text
pName_,
$sel:action:GetFilterResponse' :: FilterAction
action = FilterAction
pAction_,
$sel:findingCriteria:GetFilterResponse' :: FindingCriteria
findingCriteria = FindingCriteria
pFindingCriteria_
}
getFilterResponse_description :: Lens.Lens' GetFilterResponse (Prelude.Maybe Prelude.Text)
getFilterResponse_description :: (Maybe Text -> f (Maybe Text))
-> GetFilterResponse -> f GetFilterResponse
getFilterResponse_description = (GetFilterResponse -> Maybe Text)
-> (GetFilterResponse -> Maybe Text -> GetFilterResponse)
-> Lens
GetFilterResponse GetFilterResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFilterResponse' {Maybe Text
description :: Maybe Text
$sel:description:GetFilterResponse' :: GetFilterResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: GetFilterResponse
s@GetFilterResponse' {} Maybe Text
a -> GetFilterResponse
s {$sel:description:GetFilterResponse' :: Maybe Text
description = Maybe Text
a} :: GetFilterResponse)
getFilterResponse_rank :: Lens.Lens' GetFilterResponse (Prelude.Maybe Prelude.Natural)
getFilterResponse_rank :: (Maybe Natural -> f (Maybe Natural))
-> GetFilterResponse -> f GetFilterResponse
getFilterResponse_rank = (GetFilterResponse -> Maybe Natural)
-> (GetFilterResponse -> Maybe Natural -> GetFilterResponse)
-> Lens
GetFilterResponse GetFilterResponse (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFilterResponse' {Maybe Natural
rank :: Maybe Natural
$sel:rank:GetFilterResponse' :: GetFilterResponse -> Maybe Natural
rank} -> Maybe Natural
rank) (\s :: GetFilterResponse
s@GetFilterResponse' {} Maybe Natural
a -> GetFilterResponse
s {$sel:rank:GetFilterResponse' :: Maybe Natural
rank = Maybe Natural
a} :: GetFilterResponse)
getFilterResponse_tags :: Lens.Lens' GetFilterResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getFilterResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetFilterResponse -> f GetFilterResponse
getFilterResponse_tags = (GetFilterResponse -> Maybe (HashMap Text Text))
-> (GetFilterResponse
-> Maybe (HashMap Text Text) -> GetFilterResponse)
-> Lens
GetFilterResponse
GetFilterResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFilterResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetFilterResponse' :: GetFilterResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetFilterResponse
s@GetFilterResponse' {} Maybe (HashMap Text Text)
a -> GetFilterResponse
s {$sel:tags:GetFilterResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetFilterResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetFilterResponse -> f GetFilterResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetFilterResponse
-> f GetFilterResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getFilterResponse_httpStatus :: Lens.Lens' GetFilterResponse Prelude.Int
getFilterResponse_httpStatus :: (Int -> f Int) -> GetFilterResponse -> f GetFilterResponse
getFilterResponse_httpStatus = (GetFilterResponse -> Int)
-> (GetFilterResponse -> Int -> GetFilterResponse)
-> Lens GetFilterResponse GetFilterResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFilterResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetFilterResponse' :: GetFilterResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetFilterResponse
s@GetFilterResponse' {} Int
a -> GetFilterResponse
s {$sel:httpStatus:GetFilterResponse' :: Int
httpStatus = Int
a} :: GetFilterResponse)
getFilterResponse_name :: Lens.Lens' GetFilterResponse Prelude.Text
getFilterResponse_name :: (Text -> f Text) -> GetFilterResponse -> f GetFilterResponse
getFilterResponse_name = (GetFilterResponse -> Text)
-> (GetFilterResponse -> Text -> GetFilterResponse)
-> Lens GetFilterResponse GetFilterResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFilterResponse' {Text
name :: Text
$sel:name:GetFilterResponse' :: GetFilterResponse -> Text
name} -> Text
name) (\s :: GetFilterResponse
s@GetFilterResponse' {} Text
a -> GetFilterResponse
s {$sel:name:GetFilterResponse' :: Text
name = Text
a} :: GetFilterResponse)
getFilterResponse_action :: Lens.Lens' GetFilterResponse FilterAction
getFilterResponse_action :: (FilterAction -> f FilterAction)
-> GetFilterResponse -> f GetFilterResponse
getFilterResponse_action = (GetFilterResponse -> FilterAction)
-> (GetFilterResponse -> FilterAction -> GetFilterResponse)
-> Lens
GetFilterResponse GetFilterResponse FilterAction FilterAction
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFilterResponse' {FilterAction
action :: FilterAction
$sel:action:GetFilterResponse' :: GetFilterResponse -> FilterAction
action} -> FilterAction
action) (\s :: GetFilterResponse
s@GetFilterResponse' {} FilterAction
a -> GetFilterResponse
s {$sel:action:GetFilterResponse' :: FilterAction
action = FilterAction
a} :: GetFilterResponse)
getFilterResponse_findingCriteria :: Lens.Lens' GetFilterResponse FindingCriteria
getFilterResponse_findingCriteria :: (FindingCriteria -> f FindingCriteria)
-> GetFilterResponse -> f GetFilterResponse
getFilterResponse_findingCriteria = (GetFilterResponse -> FindingCriteria)
-> (GetFilterResponse -> FindingCriteria -> GetFilterResponse)
-> Lens
GetFilterResponse GetFilterResponse FindingCriteria FindingCriteria
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFilterResponse' {FindingCriteria
findingCriteria :: FindingCriteria
$sel:findingCriteria:GetFilterResponse' :: GetFilterResponse -> FindingCriteria
findingCriteria} -> FindingCriteria
findingCriteria) (\s :: GetFilterResponse
s@GetFilterResponse' {} FindingCriteria
a -> GetFilterResponse
s {$sel:findingCriteria:GetFilterResponse' :: FindingCriteria
findingCriteria = FindingCriteria
a} :: GetFilterResponse)
instance Prelude.NFData GetFilterResponse