{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.IoT.Types.AuditFinding where
import qualified Amazonka.Core as Core
import Amazonka.IoT.Types.AuditFindingSeverity
import Amazonka.IoT.Types.NonCompliantResource
import Amazonka.IoT.Types.RelatedResource
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AuditFinding = AuditFinding'
{
AuditFinding -> Maybe Bool
isSuppressed :: Prelude.Maybe Prelude.Bool,
AuditFinding -> Maybe Text
taskId :: Prelude.Maybe Prelude.Text,
AuditFinding -> Maybe POSIX
findingTime :: Prelude.Maybe Core.POSIX,
AuditFinding -> Maybe POSIX
taskStartTime :: Prelude.Maybe Core.POSIX,
AuditFinding -> Maybe Text
reasonForNonComplianceCode :: Prelude.Maybe Prelude.Text,
AuditFinding -> Maybe AuditFindingSeverity
severity :: Prelude.Maybe AuditFindingSeverity,
AuditFinding -> Maybe [RelatedResource]
relatedResources :: Prelude.Maybe [RelatedResource],
AuditFinding -> Maybe Text
checkName :: Prelude.Maybe Prelude.Text,
AuditFinding -> Maybe NonCompliantResource
nonCompliantResource :: Prelude.Maybe NonCompliantResource,
AuditFinding -> Maybe Text
reasonForNonCompliance :: Prelude.Maybe Prelude.Text,
AuditFinding -> Maybe Text
findingId :: Prelude.Maybe Prelude.Text
}
deriving (AuditFinding -> AuditFinding -> Bool
(AuditFinding -> AuditFinding -> Bool)
-> (AuditFinding -> AuditFinding -> Bool) -> Eq AuditFinding
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuditFinding -> AuditFinding -> Bool
$c/= :: AuditFinding -> AuditFinding -> Bool
== :: AuditFinding -> AuditFinding -> Bool
$c== :: AuditFinding -> AuditFinding -> Bool
Prelude.Eq, ReadPrec [AuditFinding]
ReadPrec AuditFinding
Int -> ReadS AuditFinding
ReadS [AuditFinding]
(Int -> ReadS AuditFinding)
-> ReadS [AuditFinding]
-> ReadPrec AuditFinding
-> ReadPrec [AuditFinding]
-> Read AuditFinding
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AuditFinding]
$creadListPrec :: ReadPrec [AuditFinding]
readPrec :: ReadPrec AuditFinding
$creadPrec :: ReadPrec AuditFinding
readList :: ReadS [AuditFinding]
$creadList :: ReadS [AuditFinding]
readsPrec :: Int -> ReadS AuditFinding
$creadsPrec :: Int -> ReadS AuditFinding
Prelude.Read, Int -> AuditFinding -> ShowS
[AuditFinding] -> ShowS
AuditFinding -> String
(Int -> AuditFinding -> ShowS)
-> (AuditFinding -> String)
-> ([AuditFinding] -> ShowS)
-> Show AuditFinding
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuditFinding] -> ShowS
$cshowList :: [AuditFinding] -> ShowS
show :: AuditFinding -> String
$cshow :: AuditFinding -> String
showsPrec :: Int -> AuditFinding -> ShowS
$cshowsPrec :: Int -> AuditFinding -> ShowS
Prelude.Show, (forall x. AuditFinding -> Rep AuditFinding x)
-> (forall x. Rep AuditFinding x -> AuditFinding)
-> Generic AuditFinding
forall x. Rep AuditFinding x -> AuditFinding
forall x. AuditFinding -> Rep AuditFinding x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AuditFinding x -> AuditFinding
$cfrom :: forall x. AuditFinding -> Rep AuditFinding x
Prelude.Generic)
newAuditFinding ::
AuditFinding
newAuditFinding :: AuditFinding
newAuditFinding =
AuditFinding' :: Maybe Bool
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding
AuditFinding'
{ $sel:isSuppressed:AuditFinding' :: Maybe Bool
isSuppressed = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:taskId:AuditFinding' :: Maybe Text
taskId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:findingTime:AuditFinding' :: Maybe POSIX
findingTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:taskStartTime:AuditFinding' :: Maybe POSIX
taskStartTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:reasonForNonComplianceCode:AuditFinding' :: Maybe Text
reasonForNonComplianceCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:severity:AuditFinding' :: Maybe AuditFindingSeverity
severity = Maybe AuditFindingSeverity
forall a. Maybe a
Prelude.Nothing,
$sel:relatedResources:AuditFinding' :: Maybe [RelatedResource]
relatedResources = Maybe [RelatedResource]
forall a. Maybe a
Prelude.Nothing,
$sel:checkName:AuditFinding' :: Maybe Text
checkName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nonCompliantResource:AuditFinding' :: Maybe NonCompliantResource
nonCompliantResource = Maybe NonCompliantResource
forall a. Maybe a
Prelude.Nothing,
$sel:reasonForNonCompliance:AuditFinding' :: Maybe Text
reasonForNonCompliance = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:findingId:AuditFinding' :: Maybe Text
findingId = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
auditFinding_isSuppressed :: Lens.Lens' AuditFinding (Prelude.Maybe Prelude.Bool)
auditFinding_isSuppressed :: (Maybe Bool -> f (Maybe Bool)) -> AuditFinding -> f AuditFinding
auditFinding_isSuppressed = (AuditFinding -> Maybe Bool)
-> (AuditFinding -> Maybe Bool -> AuditFinding)
-> Lens AuditFinding AuditFinding (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe Bool
isSuppressed :: Maybe Bool
$sel:isSuppressed:AuditFinding' :: AuditFinding -> Maybe Bool
isSuppressed} -> Maybe Bool
isSuppressed) (\s :: AuditFinding
s@AuditFinding' {} Maybe Bool
a -> AuditFinding
s {$sel:isSuppressed:AuditFinding' :: Maybe Bool
isSuppressed = Maybe Bool
a} :: AuditFinding)
auditFinding_taskId :: Lens.Lens' AuditFinding (Prelude.Maybe Prelude.Text)
auditFinding_taskId :: (Maybe Text -> f (Maybe Text)) -> AuditFinding -> f AuditFinding
auditFinding_taskId = (AuditFinding -> Maybe Text)
-> (AuditFinding -> Maybe Text -> AuditFinding)
-> Lens AuditFinding AuditFinding (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe Text
taskId :: Maybe Text
$sel:taskId:AuditFinding' :: AuditFinding -> Maybe Text
taskId} -> Maybe Text
taskId) (\s :: AuditFinding
s@AuditFinding' {} Maybe Text
a -> AuditFinding
s {$sel:taskId:AuditFinding' :: Maybe Text
taskId = Maybe Text
a} :: AuditFinding)
auditFinding_findingTime :: Lens.Lens' AuditFinding (Prelude.Maybe Prelude.UTCTime)
auditFinding_findingTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> AuditFinding -> f AuditFinding
auditFinding_findingTime = (AuditFinding -> Maybe POSIX)
-> (AuditFinding -> Maybe POSIX -> AuditFinding)
-> Lens AuditFinding AuditFinding (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe POSIX
findingTime :: Maybe POSIX
$sel:findingTime:AuditFinding' :: AuditFinding -> Maybe POSIX
findingTime} -> Maybe POSIX
findingTime) (\s :: AuditFinding
s@AuditFinding' {} Maybe POSIX
a -> AuditFinding
s {$sel:findingTime:AuditFinding' :: Maybe POSIX
findingTime = Maybe POSIX
a} :: AuditFinding) ((Maybe POSIX -> f (Maybe POSIX))
-> AuditFinding -> f AuditFinding)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> AuditFinding
-> f AuditFinding
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
auditFinding_taskStartTime :: Lens.Lens' AuditFinding (Prelude.Maybe Prelude.UTCTime)
auditFinding_taskStartTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> AuditFinding -> f AuditFinding
auditFinding_taskStartTime = (AuditFinding -> Maybe POSIX)
-> (AuditFinding -> Maybe POSIX -> AuditFinding)
-> Lens AuditFinding AuditFinding (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe POSIX
taskStartTime :: Maybe POSIX
$sel:taskStartTime:AuditFinding' :: AuditFinding -> Maybe POSIX
taskStartTime} -> Maybe POSIX
taskStartTime) (\s :: AuditFinding
s@AuditFinding' {} Maybe POSIX
a -> AuditFinding
s {$sel:taskStartTime:AuditFinding' :: Maybe POSIX
taskStartTime = Maybe POSIX
a} :: AuditFinding) ((Maybe POSIX -> f (Maybe POSIX))
-> AuditFinding -> f AuditFinding)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> AuditFinding
-> f AuditFinding
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
auditFinding_reasonForNonComplianceCode :: Lens.Lens' AuditFinding (Prelude.Maybe Prelude.Text)
auditFinding_reasonForNonComplianceCode :: (Maybe Text -> f (Maybe Text)) -> AuditFinding -> f AuditFinding
auditFinding_reasonForNonComplianceCode = (AuditFinding -> Maybe Text)
-> (AuditFinding -> Maybe Text -> AuditFinding)
-> Lens AuditFinding AuditFinding (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe Text
reasonForNonComplianceCode :: Maybe Text
$sel:reasonForNonComplianceCode:AuditFinding' :: AuditFinding -> Maybe Text
reasonForNonComplianceCode} -> Maybe Text
reasonForNonComplianceCode) (\s :: AuditFinding
s@AuditFinding' {} Maybe Text
a -> AuditFinding
s {$sel:reasonForNonComplianceCode:AuditFinding' :: Maybe Text
reasonForNonComplianceCode = Maybe Text
a} :: AuditFinding)
auditFinding_severity :: Lens.Lens' AuditFinding (Prelude.Maybe AuditFindingSeverity)
auditFinding_severity :: (Maybe AuditFindingSeverity -> f (Maybe AuditFindingSeverity))
-> AuditFinding -> f AuditFinding
auditFinding_severity = (AuditFinding -> Maybe AuditFindingSeverity)
-> (AuditFinding -> Maybe AuditFindingSeverity -> AuditFinding)
-> Lens
AuditFinding
AuditFinding
(Maybe AuditFindingSeverity)
(Maybe AuditFindingSeverity)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe AuditFindingSeverity
severity :: Maybe AuditFindingSeverity
$sel:severity:AuditFinding' :: AuditFinding -> Maybe AuditFindingSeverity
severity} -> Maybe AuditFindingSeverity
severity) (\s :: AuditFinding
s@AuditFinding' {} Maybe AuditFindingSeverity
a -> AuditFinding
s {$sel:severity:AuditFinding' :: Maybe AuditFindingSeverity
severity = Maybe AuditFindingSeverity
a} :: AuditFinding)
auditFinding_relatedResources :: Lens.Lens' AuditFinding (Prelude.Maybe [RelatedResource])
auditFinding_relatedResources :: (Maybe [RelatedResource] -> f (Maybe [RelatedResource]))
-> AuditFinding -> f AuditFinding
auditFinding_relatedResources = (AuditFinding -> Maybe [RelatedResource])
-> (AuditFinding -> Maybe [RelatedResource] -> AuditFinding)
-> Lens
AuditFinding
AuditFinding
(Maybe [RelatedResource])
(Maybe [RelatedResource])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe [RelatedResource]
relatedResources :: Maybe [RelatedResource]
$sel:relatedResources:AuditFinding' :: AuditFinding -> Maybe [RelatedResource]
relatedResources} -> Maybe [RelatedResource]
relatedResources) (\s :: AuditFinding
s@AuditFinding' {} Maybe [RelatedResource]
a -> AuditFinding
s {$sel:relatedResources:AuditFinding' :: Maybe [RelatedResource]
relatedResources = Maybe [RelatedResource]
a} :: AuditFinding) ((Maybe [RelatedResource] -> f (Maybe [RelatedResource]))
-> AuditFinding -> f AuditFinding)
-> ((Maybe [RelatedResource] -> f (Maybe [RelatedResource]))
-> Maybe [RelatedResource] -> f (Maybe [RelatedResource]))
-> (Maybe [RelatedResource] -> f (Maybe [RelatedResource]))
-> AuditFinding
-> f AuditFinding
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RelatedResource]
[RelatedResource]
[RelatedResource]
[RelatedResource]
-> Iso
(Maybe [RelatedResource])
(Maybe [RelatedResource])
(Maybe [RelatedResource])
(Maybe [RelatedResource])
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
[RelatedResource]
[RelatedResource]
[RelatedResource]
[RelatedResource]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
auditFinding_checkName :: Lens.Lens' AuditFinding (Prelude.Maybe Prelude.Text)
auditFinding_checkName :: (Maybe Text -> f (Maybe Text)) -> AuditFinding -> f AuditFinding
auditFinding_checkName = (AuditFinding -> Maybe Text)
-> (AuditFinding -> Maybe Text -> AuditFinding)
-> Lens AuditFinding AuditFinding (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe Text
checkName :: Maybe Text
$sel:checkName:AuditFinding' :: AuditFinding -> Maybe Text
checkName} -> Maybe Text
checkName) (\s :: AuditFinding
s@AuditFinding' {} Maybe Text
a -> AuditFinding
s {$sel:checkName:AuditFinding' :: Maybe Text
checkName = Maybe Text
a} :: AuditFinding)
auditFinding_nonCompliantResource :: Lens.Lens' AuditFinding (Prelude.Maybe NonCompliantResource)
auditFinding_nonCompliantResource :: (Maybe NonCompliantResource -> f (Maybe NonCompliantResource))
-> AuditFinding -> f AuditFinding
auditFinding_nonCompliantResource = (AuditFinding -> Maybe NonCompliantResource)
-> (AuditFinding -> Maybe NonCompliantResource -> AuditFinding)
-> Lens
AuditFinding
AuditFinding
(Maybe NonCompliantResource)
(Maybe NonCompliantResource)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe NonCompliantResource
nonCompliantResource :: Maybe NonCompliantResource
$sel:nonCompliantResource:AuditFinding' :: AuditFinding -> Maybe NonCompliantResource
nonCompliantResource} -> Maybe NonCompliantResource
nonCompliantResource) (\s :: AuditFinding
s@AuditFinding' {} Maybe NonCompliantResource
a -> AuditFinding
s {$sel:nonCompliantResource:AuditFinding' :: Maybe NonCompliantResource
nonCompliantResource = Maybe NonCompliantResource
a} :: AuditFinding)
auditFinding_reasonForNonCompliance :: Lens.Lens' AuditFinding (Prelude.Maybe Prelude.Text)
auditFinding_reasonForNonCompliance :: (Maybe Text -> f (Maybe Text)) -> AuditFinding -> f AuditFinding
auditFinding_reasonForNonCompliance = (AuditFinding -> Maybe Text)
-> (AuditFinding -> Maybe Text -> AuditFinding)
-> Lens AuditFinding AuditFinding (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe Text
reasonForNonCompliance :: Maybe Text
$sel:reasonForNonCompliance:AuditFinding' :: AuditFinding -> Maybe Text
reasonForNonCompliance} -> Maybe Text
reasonForNonCompliance) (\s :: AuditFinding
s@AuditFinding' {} Maybe Text
a -> AuditFinding
s {$sel:reasonForNonCompliance:AuditFinding' :: Maybe Text
reasonForNonCompliance = Maybe Text
a} :: AuditFinding)
auditFinding_findingId :: Lens.Lens' AuditFinding (Prelude.Maybe Prelude.Text)
auditFinding_findingId :: (Maybe Text -> f (Maybe Text)) -> AuditFinding -> f AuditFinding
auditFinding_findingId = (AuditFinding -> Maybe Text)
-> (AuditFinding -> Maybe Text -> AuditFinding)
-> Lens AuditFinding AuditFinding (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuditFinding' {Maybe Text
findingId :: Maybe Text
$sel:findingId:AuditFinding' :: AuditFinding -> Maybe Text
findingId} -> Maybe Text
findingId) (\s :: AuditFinding
s@AuditFinding' {} Maybe Text
a -> AuditFinding
s {$sel:findingId:AuditFinding' :: Maybe Text
findingId = Maybe Text
a} :: AuditFinding)
instance Core.FromJSON AuditFinding where
parseJSON :: Value -> Parser AuditFinding
parseJSON =
String
-> (Object -> Parser AuditFinding) -> Value -> Parser AuditFinding
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AuditFinding"
( \Object
x ->
Maybe Bool
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding
AuditFinding'
(Maybe Bool
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
-> Parser (Maybe Bool)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"isSuppressed")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskId")
Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
-> Parser (Maybe POSIX)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"findingTime")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"taskStartTime")
Parser
(Maybe Text
-> Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
-> Parser (Maybe Text)
-> Parser
(Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"reasonForNonComplianceCode")
Parser
(Maybe AuditFindingSeverity
-> Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
-> Parser (Maybe AuditFindingSeverity)
-> Parser
(Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AuditFindingSeverity)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"severity")
Parser
(Maybe [RelatedResource]
-> Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
-> Parser (Maybe [RelatedResource])
-> Parser
(Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [RelatedResource]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"relatedResources"
Parser (Maybe (Maybe [RelatedResource]))
-> Maybe [RelatedResource] -> Parser (Maybe [RelatedResource])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [RelatedResource]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Text
-> Maybe NonCompliantResource
-> Maybe Text
-> Maybe Text
-> AuditFinding)
-> Parser (Maybe Text)
-> Parser
(Maybe NonCompliantResource
-> Maybe Text -> Maybe Text -> AuditFinding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"checkName")
Parser
(Maybe NonCompliantResource
-> Maybe Text -> Maybe Text -> AuditFinding)
-> Parser (Maybe NonCompliantResource)
-> Parser (Maybe Text -> Maybe Text -> AuditFinding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe NonCompliantResource)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"nonCompliantResource")
Parser (Maybe Text -> Maybe Text -> AuditFinding)
-> Parser (Maybe Text) -> Parser (Maybe Text -> AuditFinding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"reasonForNonCompliance")
Parser (Maybe Text -> AuditFinding)
-> Parser (Maybe Text) -> Parser AuditFinding
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"findingId")
)
instance Prelude.Hashable AuditFinding
instance Prelude.NFData AuditFinding