{-# 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.CreateFindingsFilter
(
CreateFindingsFilter (..),
newCreateFindingsFilter,
createFindingsFilter_clientToken,
createFindingsFilter_description,
createFindingsFilter_tags,
createFindingsFilter_position,
createFindingsFilter_action,
createFindingsFilter_findingCriteria,
createFindingsFilter_name,
CreateFindingsFilterResponse (..),
newCreateFindingsFilterResponse,
createFindingsFilterResponse_arn,
createFindingsFilterResponse_id,
createFindingsFilterResponse_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 CreateFindingsFilter = CreateFindingsFilter'
{
CreateFindingsFilter -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateFindingsFilter -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateFindingsFilter -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateFindingsFilter -> Maybe Int
position :: Prelude.Maybe Prelude.Int,
CreateFindingsFilter -> FindingsFilterAction
action :: FindingsFilterAction,
CreateFindingsFilter -> FindingCriteria
findingCriteria :: FindingCriteria,
CreateFindingsFilter -> Text
name :: Prelude.Text
}
deriving (CreateFindingsFilter -> CreateFindingsFilter -> Bool
(CreateFindingsFilter -> CreateFindingsFilter -> Bool)
-> (CreateFindingsFilter -> CreateFindingsFilter -> Bool)
-> Eq CreateFindingsFilter
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateFindingsFilter -> CreateFindingsFilter -> Bool
$c/= :: CreateFindingsFilter -> CreateFindingsFilter -> Bool
== :: CreateFindingsFilter -> CreateFindingsFilter -> Bool
$c== :: CreateFindingsFilter -> CreateFindingsFilter -> Bool
Prelude.Eq, ReadPrec [CreateFindingsFilter]
ReadPrec CreateFindingsFilter
Int -> ReadS CreateFindingsFilter
ReadS [CreateFindingsFilter]
(Int -> ReadS CreateFindingsFilter)
-> ReadS [CreateFindingsFilter]
-> ReadPrec CreateFindingsFilter
-> ReadPrec [CreateFindingsFilter]
-> Read CreateFindingsFilter
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateFindingsFilter]
$creadListPrec :: ReadPrec [CreateFindingsFilter]
readPrec :: ReadPrec CreateFindingsFilter
$creadPrec :: ReadPrec CreateFindingsFilter
readList :: ReadS [CreateFindingsFilter]
$creadList :: ReadS [CreateFindingsFilter]
readsPrec :: Int -> ReadS CreateFindingsFilter
$creadsPrec :: Int -> ReadS CreateFindingsFilter
Prelude.Read, Int -> CreateFindingsFilter -> ShowS
[CreateFindingsFilter] -> ShowS
CreateFindingsFilter -> String
(Int -> CreateFindingsFilter -> ShowS)
-> (CreateFindingsFilter -> String)
-> ([CreateFindingsFilter] -> ShowS)
-> Show CreateFindingsFilter
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateFindingsFilter] -> ShowS
$cshowList :: [CreateFindingsFilter] -> ShowS
show :: CreateFindingsFilter -> String
$cshow :: CreateFindingsFilter -> String
showsPrec :: Int -> CreateFindingsFilter -> ShowS
$cshowsPrec :: Int -> CreateFindingsFilter -> ShowS
Prelude.Show, (forall x. CreateFindingsFilter -> Rep CreateFindingsFilter x)
-> (forall x. Rep CreateFindingsFilter x -> CreateFindingsFilter)
-> Generic CreateFindingsFilter
forall x. Rep CreateFindingsFilter x -> CreateFindingsFilter
forall x. CreateFindingsFilter -> Rep CreateFindingsFilter x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateFindingsFilter x -> CreateFindingsFilter
$cfrom :: forall x. CreateFindingsFilter -> Rep CreateFindingsFilter x
Prelude.Generic)
newCreateFindingsFilter ::
FindingsFilterAction ->
FindingCriteria ->
Prelude.Text ->
CreateFindingsFilter
newCreateFindingsFilter :: FindingsFilterAction
-> FindingCriteria -> Text -> CreateFindingsFilter
newCreateFindingsFilter
FindingsFilterAction
pAction_
FindingCriteria
pFindingCriteria_
Text
pName_ =
CreateFindingsFilter' :: Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Int
-> FindingsFilterAction
-> FindingCriteria
-> Text
-> CreateFindingsFilter
CreateFindingsFilter'
{ $sel:clientToken:CreateFindingsFilter' :: Maybe Text
clientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateFindingsFilter' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateFindingsFilter' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:position:CreateFindingsFilter' :: Maybe Int
position = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:action:CreateFindingsFilter' :: FindingsFilterAction
action = FindingsFilterAction
pAction_,
$sel:findingCriteria:CreateFindingsFilter' :: FindingCriteria
findingCriteria = FindingCriteria
pFindingCriteria_,
$sel:name:CreateFindingsFilter' :: Text
name = Text
pName_
}
createFindingsFilter_clientToken :: Lens.Lens' CreateFindingsFilter (Prelude.Maybe Prelude.Text)
createFindingsFilter_clientToken :: (Maybe Text -> f (Maybe Text))
-> CreateFindingsFilter -> f CreateFindingsFilter
createFindingsFilter_clientToken = (CreateFindingsFilter -> Maybe Text)
-> (CreateFindingsFilter -> Maybe Text -> CreateFindingsFilter)
-> Lens
CreateFindingsFilter CreateFindingsFilter (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFindingsFilter' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateFindingsFilter' :: CreateFindingsFilter -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateFindingsFilter
s@CreateFindingsFilter' {} Maybe Text
a -> CreateFindingsFilter
s {$sel:clientToken:CreateFindingsFilter' :: Maybe Text
clientToken = Maybe Text
a} :: CreateFindingsFilter)
createFindingsFilter_description :: Lens.Lens' CreateFindingsFilter (Prelude.Maybe Prelude.Text)
createFindingsFilter_description :: (Maybe Text -> f (Maybe Text))
-> CreateFindingsFilter -> f CreateFindingsFilter
createFindingsFilter_description = (CreateFindingsFilter -> Maybe Text)
-> (CreateFindingsFilter -> Maybe Text -> CreateFindingsFilter)
-> Lens
CreateFindingsFilter CreateFindingsFilter (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFindingsFilter' {Maybe Text
description :: Maybe Text
$sel:description:CreateFindingsFilter' :: CreateFindingsFilter -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateFindingsFilter
s@CreateFindingsFilter' {} Maybe Text
a -> CreateFindingsFilter
s {$sel:description:CreateFindingsFilter' :: Maybe Text
description = Maybe Text
a} :: CreateFindingsFilter)
createFindingsFilter_tags :: Lens.Lens' CreateFindingsFilter (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createFindingsFilter_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateFindingsFilter -> f CreateFindingsFilter
createFindingsFilter_tags = (CreateFindingsFilter -> Maybe (HashMap Text Text))
-> (CreateFindingsFilter
-> Maybe (HashMap Text Text) -> CreateFindingsFilter)
-> Lens
CreateFindingsFilter
CreateFindingsFilter
(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 (\CreateFindingsFilter' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateFindingsFilter' :: CreateFindingsFilter -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateFindingsFilter
s@CreateFindingsFilter' {} Maybe (HashMap Text Text)
a -> CreateFindingsFilter
s {$sel:tags:CreateFindingsFilter' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateFindingsFilter) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateFindingsFilter -> f CreateFindingsFilter)
-> ((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)))
-> CreateFindingsFilter
-> f CreateFindingsFilter
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
createFindingsFilter_position :: Lens.Lens' CreateFindingsFilter (Prelude.Maybe Prelude.Int)
createFindingsFilter_position :: (Maybe Int -> f (Maybe Int))
-> CreateFindingsFilter -> f CreateFindingsFilter
createFindingsFilter_position = (CreateFindingsFilter -> Maybe Int)
-> (CreateFindingsFilter -> Maybe Int -> CreateFindingsFilter)
-> Lens
CreateFindingsFilter CreateFindingsFilter (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFindingsFilter' {Maybe Int
position :: Maybe Int
$sel:position:CreateFindingsFilter' :: CreateFindingsFilter -> Maybe Int
position} -> Maybe Int
position) (\s :: CreateFindingsFilter
s@CreateFindingsFilter' {} Maybe Int
a -> CreateFindingsFilter
s {$sel:position:CreateFindingsFilter' :: Maybe Int
position = Maybe Int
a} :: CreateFindingsFilter)
createFindingsFilter_action :: Lens.Lens' CreateFindingsFilter FindingsFilterAction
createFindingsFilter_action :: (FindingsFilterAction -> f FindingsFilterAction)
-> CreateFindingsFilter -> f CreateFindingsFilter
createFindingsFilter_action = (CreateFindingsFilter -> FindingsFilterAction)
-> (CreateFindingsFilter
-> FindingsFilterAction -> CreateFindingsFilter)
-> Lens
CreateFindingsFilter
CreateFindingsFilter
FindingsFilterAction
FindingsFilterAction
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFindingsFilter' {FindingsFilterAction
action :: FindingsFilterAction
$sel:action:CreateFindingsFilter' :: CreateFindingsFilter -> FindingsFilterAction
action} -> FindingsFilterAction
action) (\s :: CreateFindingsFilter
s@CreateFindingsFilter' {} FindingsFilterAction
a -> CreateFindingsFilter
s {$sel:action:CreateFindingsFilter' :: FindingsFilterAction
action = FindingsFilterAction
a} :: CreateFindingsFilter)
createFindingsFilter_findingCriteria :: Lens.Lens' CreateFindingsFilter FindingCriteria
createFindingsFilter_findingCriteria :: (FindingCriteria -> f FindingCriteria)
-> CreateFindingsFilter -> f CreateFindingsFilter
createFindingsFilter_findingCriteria = (CreateFindingsFilter -> FindingCriteria)
-> (CreateFindingsFilter
-> FindingCriteria -> CreateFindingsFilter)
-> Lens
CreateFindingsFilter
CreateFindingsFilter
FindingCriteria
FindingCriteria
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFindingsFilter' {FindingCriteria
findingCriteria :: FindingCriteria
$sel:findingCriteria:CreateFindingsFilter' :: CreateFindingsFilter -> FindingCriteria
findingCriteria} -> FindingCriteria
findingCriteria) (\s :: CreateFindingsFilter
s@CreateFindingsFilter' {} FindingCriteria
a -> CreateFindingsFilter
s {$sel:findingCriteria:CreateFindingsFilter' :: FindingCriteria
findingCriteria = FindingCriteria
a} :: CreateFindingsFilter)
createFindingsFilter_name :: Lens.Lens' CreateFindingsFilter Prelude.Text
createFindingsFilter_name :: (Text -> f Text) -> CreateFindingsFilter -> f CreateFindingsFilter
createFindingsFilter_name = (CreateFindingsFilter -> Text)
-> (CreateFindingsFilter -> Text -> CreateFindingsFilter)
-> Lens CreateFindingsFilter CreateFindingsFilter Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFindingsFilter' {Text
name :: Text
$sel:name:CreateFindingsFilter' :: CreateFindingsFilter -> Text
name} -> Text
name) (\s :: CreateFindingsFilter
s@CreateFindingsFilter' {} Text
a -> CreateFindingsFilter
s {$sel:name:CreateFindingsFilter' :: Text
name = Text
a} :: CreateFindingsFilter)
instance Core.AWSRequest CreateFindingsFilter where
type
AWSResponse CreateFindingsFilter =
CreateFindingsFilterResponse
request :: CreateFindingsFilter -> Request CreateFindingsFilter
request = Service -> CreateFindingsFilter -> Request CreateFindingsFilter
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateFindingsFilter
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateFindingsFilter)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateFindingsFilter))
-> Logger
-> Service
-> Proxy CreateFindingsFilter
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateFindingsFilter)))
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 Text -> Int -> CreateFindingsFilterResponse
CreateFindingsFilterResponse'
(Maybe Text -> Maybe Text -> Int -> CreateFindingsFilterResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> CreateFindingsFilterResponse)
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
"arn")
Either String (Maybe Text -> Int -> CreateFindingsFilterResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateFindingsFilterResponse)
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
"id")
Either String (Int -> CreateFindingsFilterResponse)
-> Either String Int -> Either String CreateFindingsFilterResponse
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 CreateFindingsFilter
instance Prelude.NFData CreateFindingsFilter
instance Core.ToHeaders CreateFindingsFilter where
toHeaders :: CreateFindingsFilter -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateFindingsFilter -> 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.ToJSON CreateFindingsFilter where
toJSON :: CreateFindingsFilter -> Value
toJSON CreateFindingsFilter' {Maybe Int
Maybe Text
Maybe (HashMap Text Text)
Text
FindingCriteria
FindingsFilterAction
name :: Text
findingCriteria :: FindingCriteria
action :: FindingsFilterAction
position :: Maybe Int
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
clientToken :: Maybe Text
$sel:name:CreateFindingsFilter' :: CreateFindingsFilter -> Text
$sel:findingCriteria:CreateFindingsFilter' :: CreateFindingsFilter -> FindingCriteria
$sel:action:CreateFindingsFilter' :: CreateFindingsFilter -> FindingsFilterAction
$sel:position:CreateFindingsFilter' :: CreateFindingsFilter -> Maybe Int
$sel:tags:CreateFindingsFilter' :: CreateFindingsFilter -> Maybe (HashMap Text Text)
$sel:description:CreateFindingsFilter' :: CreateFindingsFilter -> Maybe Text
$sel:clientToken:CreateFindingsFilter' :: CreateFindingsFilter -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"clientToken" 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
clientToken,
(Text
"description" 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
description,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
(Text
"position" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
position,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"action" Text -> FindingsFilterAction -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= FindingsFilterAction
action),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"findingCriteria" Text -> FindingCriteria -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= FindingCriteria
findingCriteria),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)
]
)
instance Core.ToPath CreateFindingsFilter where
toPath :: CreateFindingsFilter -> ByteString
toPath = ByteString -> CreateFindingsFilter -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/findingsfilters"
instance Core.ToQuery CreateFindingsFilter where
toQuery :: CreateFindingsFilter -> QueryString
toQuery = QueryString -> CreateFindingsFilter -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateFindingsFilterResponse = CreateFindingsFilterResponse'
{
CreateFindingsFilterResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateFindingsFilterResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
CreateFindingsFilterResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateFindingsFilterResponse
-> CreateFindingsFilterResponse -> Bool
(CreateFindingsFilterResponse
-> CreateFindingsFilterResponse -> Bool)
-> (CreateFindingsFilterResponse
-> CreateFindingsFilterResponse -> Bool)
-> Eq CreateFindingsFilterResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateFindingsFilterResponse
-> CreateFindingsFilterResponse -> Bool
$c/= :: CreateFindingsFilterResponse
-> CreateFindingsFilterResponse -> Bool
== :: CreateFindingsFilterResponse
-> CreateFindingsFilterResponse -> Bool
$c== :: CreateFindingsFilterResponse
-> CreateFindingsFilterResponse -> Bool
Prelude.Eq, ReadPrec [CreateFindingsFilterResponse]
ReadPrec CreateFindingsFilterResponse
Int -> ReadS CreateFindingsFilterResponse
ReadS [CreateFindingsFilterResponse]
(Int -> ReadS CreateFindingsFilterResponse)
-> ReadS [CreateFindingsFilterResponse]
-> ReadPrec CreateFindingsFilterResponse
-> ReadPrec [CreateFindingsFilterResponse]
-> Read CreateFindingsFilterResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateFindingsFilterResponse]
$creadListPrec :: ReadPrec [CreateFindingsFilterResponse]
readPrec :: ReadPrec CreateFindingsFilterResponse
$creadPrec :: ReadPrec CreateFindingsFilterResponse
readList :: ReadS [CreateFindingsFilterResponse]
$creadList :: ReadS [CreateFindingsFilterResponse]
readsPrec :: Int -> ReadS CreateFindingsFilterResponse
$creadsPrec :: Int -> ReadS CreateFindingsFilterResponse
Prelude.Read, Int -> CreateFindingsFilterResponse -> ShowS
[CreateFindingsFilterResponse] -> ShowS
CreateFindingsFilterResponse -> String
(Int -> CreateFindingsFilterResponse -> ShowS)
-> (CreateFindingsFilterResponse -> String)
-> ([CreateFindingsFilterResponse] -> ShowS)
-> Show CreateFindingsFilterResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateFindingsFilterResponse] -> ShowS
$cshowList :: [CreateFindingsFilterResponse] -> ShowS
show :: CreateFindingsFilterResponse -> String
$cshow :: CreateFindingsFilterResponse -> String
showsPrec :: Int -> CreateFindingsFilterResponse -> ShowS
$cshowsPrec :: Int -> CreateFindingsFilterResponse -> ShowS
Prelude.Show, (forall x.
CreateFindingsFilterResponse -> Rep CreateFindingsFilterResponse x)
-> (forall x.
Rep CreateFindingsFilterResponse x -> CreateFindingsFilterResponse)
-> Generic CreateFindingsFilterResponse
forall x.
Rep CreateFindingsFilterResponse x -> CreateFindingsFilterResponse
forall x.
CreateFindingsFilterResponse -> Rep CreateFindingsFilterResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateFindingsFilterResponse x -> CreateFindingsFilterResponse
$cfrom :: forall x.
CreateFindingsFilterResponse -> Rep CreateFindingsFilterResponse x
Prelude.Generic)
newCreateFindingsFilterResponse ::
Prelude.Int ->
CreateFindingsFilterResponse
newCreateFindingsFilterResponse :: Int -> CreateFindingsFilterResponse
newCreateFindingsFilterResponse Int
pHttpStatus_ =
CreateFindingsFilterResponse' :: Maybe Text -> Maybe Text -> Int -> CreateFindingsFilterResponse
CreateFindingsFilterResponse'
{ $sel:arn:CreateFindingsFilterResponse' :: Maybe Text
arn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreateFindingsFilterResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateFindingsFilterResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createFindingsFilterResponse_arn :: Lens.Lens' CreateFindingsFilterResponse (Prelude.Maybe Prelude.Text)
createFindingsFilterResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateFindingsFilterResponse -> f CreateFindingsFilterResponse
createFindingsFilterResponse_arn = (CreateFindingsFilterResponse -> Maybe Text)
-> (CreateFindingsFilterResponse
-> Maybe Text -> CreateFindingsFilterResponse)
-> Lens
CreateFindingsFilterResponse
CreateFindingsFilterResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFindingsFilterResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateFindingsFilterResponse' :: CreateFindingsFilterResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateFindingsFilterResponse
s@CreateFindingsFilterResponse' {} Maybe Text
a -> CreateFindingsFilterResponse
s {$sel:arn:CreateFindingsFilterResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateFindingsFilterResponse)
createFindingsFilterResponse_id :: Lens.Lens' CreateFindingsFilterResponse (Prelude.Maybe Prelude.Text)
createFindingsFilterResponse_id :: (Maybe Text -> f (Maybe Text))
-> CreateFindingsFilterResponse -> f CreateFindingsFilterResponse
createFindingsFilterResponse_id = (CreateFindingsFilterResponse -> Maybe Text)
-> (CreateFindingsFilterResponse
-> Maybe Text -> CreateFindingsFilterResponse)
-> Lens
CreateFindingsFilterResponse
CreateFindingsFilterResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFindingsFilterResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreateFindingsFilterResponse' :: CreateFindingsFilterResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreateFindingsFilterResponse
s@CreateFindingsFilterResponse' {} Maybe Text
a -> CreateFindingsFilterResponse
s {$sel:id:CreateFindingsFilterResponse' :: Maybe Text
id = Maybe Text
a} :: CreateFindingsFilterResponse)
createFindingsFilterResponse_httpStatus :: Lens.Lens' CreateFindingsFilterResponse Prelude.Int
createFindingsFilterResponse_httpStatus :: (Int -> f Int)
-> CreateFindingsFilterResponse -> f CreateFindingsFilterResponse
createFindingsFilterResponse_httpStatus = (CreateFindingsFilterResponse -> Int)
-> (CreateFindingsFilterResponse
-> Int -> CreateFindingsFilterResponse)
-> Lens
CreateFindingsFilterResponse CreateFindingsFilterResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFindingsFilterResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateFindingsFilterResponse' :: CreateFindingsFilterResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateFindingsFilterResponse
s@CreateFindingsFilterResponse' {} Int
a -> CreateFindingsFilterResponse
s {$sel:httpStatus:CreateFindingsFilterResponse' :: Int
httpStatus = Int
a} :: CreateFindingsFilterResponse)
instance Prelude.NFData CreateFindingsFilterResponse