{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.GuardDuty.Types.Finding
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.GuardDuty.Types.Finding where

import qualified Amazonka.Core as Core
import Amazonka.GuardDuty.Types.Resource
import Amazonka.GuardDuty.Types.ServiceInfo
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Contains information about the finding, which is generated when abnormal
-- or suspicious activity is detected.
--
-- /See:/ 'newFinding' smart constructor.
data Finding = Finding'
  { Finding -> Maybe ServiceInfo
service :: Prelude.Maybe ServiceInfo,
    -- | The confidence score for the finding.
    Finding -> Maybe Double
confidence :: Prelude.Maybe Prelude.Double,
    -- | The partition associated with the finding.
    Finding -> Maybe Text
partition :: Prelude.Maybe Prelude.Text,
    -- | The title of the finding.
    Finding -> Maybe Text
title :: Prelude.Maybe Prelude.Text,
    -- | The description of the finding.
    Finding -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The ID of the account in which the finding was generated.
    Finding -> Text
accountId :: Prelude.Text,
    -- | The ARN of the finding.
    Finding -> Text
arn :: Prelude.Text,
    -- | The time and date when the finding was created.
    Finding -> Text
createdAt :: Prelude.Text,
    -- | The ID of the finding.
    Finding -> Text
id :: Prelude.Text,
    -- | The Region where the finding was generated.
    Finding -> Text
region :: Prelude.Text,
    Finding -> Resource
resource :: Resource,
    -- | The version of the schema used for the finding.
    Finding -> Text
schemaVersion :: Prelude.Text,
    -- | The severity of the finding.
    Finding -> Double
severity :: Prelude.Double,
    -- | The type of finding.
    Finding -> Text
type' :: Prelude.Text,
    -- | The time and date when the finding was last updated.
    Finding -> Text
updatedAt :: Prelude.Text
  }
  deriving (Finding -> Finding -> Bool
(Finding -> Finding -> Bool)
-> (Finding -> Finding -> Bool) -> Eq Finding
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Finding -> Finding -> Bool
$c/= :: Finding -> Finding -> Bool
== :: Finding -> Finding -> Bool
$c== :: Finding -> Finding -> Bool
Prelude.Eq, ReadPrec [Finding]
ReadPrec Finding
Int -> ReadS Finding
ReadS [Finding]
(Int -> ReadS Finding)
-> ReadS [Finding]
-> ReadPrec Finding
-> ReadPrec [Finding]
-> Read Finding
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Finding]
$creadListPrec :: ReadPrec [Finding]
readPrec :: ReadPrec Finding
$creadPrec :: ReadPrec Finding
readList :: ReadS [Finding]
$creadList :: ReadS [Finding]
readsPrec :: Int -> ReadS Finding
$creadsPrec :: Int -> ReadS Finding
Prelude.Read, Int -> Finding -> ShowS
[Finding] -> ShowS
Finding -> String
(Int -> Finding -> ShowS)
-> (Finding -> String) -> ([Finding] -> ShowS) -> Show Finding
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Finding] -> ShowS
$cshowList :: [Finding] -> ShowS
show :: Finding -> String
$cshow :: Finding -> String
showsPrec :: Int -> Finding -> ShowS
$cshowsPrec :: Int -> Finding -> ShowS
Prelude.Show, (forall x. Finding -> Rep Finding x)
-> (forall x. Rep Finding x -> Finding) -> Generic Finding
forall x. Rep Finding x -> Finding
forall x. Finding -> Rep Finding x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Finding x -> Finding
$cfrom :: forall x. Finding -> Rep Finding x
Prelude.Generic)

-- |
-- Create a value of 'Finding' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'service', 'finding_service' - Undocumented member.
--
-- 'confidence', 'finding_confidence' - The confidence score for the finding.
--
-- 'partition', 'finding_partition' - The partition associated with the finding.
--
-- 'title', 'finding_title' - The title of the finding.
--
-- 'description', 'finding_description' - The description of the finding.
--
-- 'accountId', 'finding_accountId' - The ID of the account in which the finding was generated.
--
-- 'arn', 'finding_arn' - The ARN of the finding.
--
-- 'createdAt', 'finding_createdAt' - The time and date when the finding was created.
--
-- 'id', 'finding_id' - The ID of the finding.
--
-- 'region', 'finding_region' - The Region where the finding was generated.
--
-- 'resource', 'finding_resource' - Undocumented member.
--
-- 'schemaVersion', 'finding_schemaVersion' - The version of the schema used for the finding.
--
-- 'severity', 'finding_severity' - The severity of the finding.
--
-- 'type'', 'finding_type' - The type of finding.
--
-- 'updatedAt', 'finding_updatedAt' - The time and date when the finding was last updated.
newFinding ::
  -- | 'accountId'
  Prelude.Text ->
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.Text ->
  -- | 'id'
  Prelude.Text ->
  -- | 'region'
  Prelude.Text ->
  -- | 'resource'
  Resource ->
  -- | 'schemaVersion'
  Prelude.Text ->
  -- | 'severity'
  Prelude.Double ->
  -- | 'type''
  Prelude.Text ->
  -- | 'updatedAt'
  Prelude.Text ->
  Finding
newFinding :: Text
-> Text
-> Text
-> Text
-> Text
-> Resource
-> Text
-> Double
-> Text
-> Text
-> Finding
newFinding
  Text
pAccountId_
  Text
pArn_
  Text
pCreatedAt_
  Text
pId_
  Text
pRegion_
  Resource
pResource_
  Text
pSchemaVersion_
  Double
pSeverity_
  Text
pType_
  Text
pUpdatedAt_ =
    Finding' :: Maybe ServiceInfo
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> Resource
-> Text
-> Double
-> Text
-> Text
-> Finding
Finding'
      { $sel:service:Finding' :: Maybe ServiceInfo
service = Maybe ServiceInfo
forall a. Maybe a
Prelude.Nothing,
        $sel:confidence:Finding' :: Maybe Double
confidence = Maybe Double
forall a. Maybe a
Prelude.Nothing,
        $sel:partition:Finding' :: Maybe Text
partition = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:title:Finding' :: Maybe Text
title = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:description:Finding' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:accountId:Finding' :: Text
accountId = Text
pAccountId_,
        $sel:arn:Finding' :: Text
arn = Text
pArn_,
        $sel:createdAt:Finding' :: Text
createdAt = Text
pCreatedAt_,
        $sel:id:Finding' :: Text
id = Text
pId_,
        $sel:region:Finding' :: Text
region = Text
pRegion_,
        $sel:resource:Finding' :: Resource
resource = Resource
pResource_,
        $sel:schemaVersion:Finding' :: Text
schemaVersion = Text
pSchemaVersion_,
        $sel:severity:Finding' :: Double
severity = Double
pSeverity_,
        $sel:type':Finding' :: Text
type' = Text
pType_,
        $sel:updatedAt:Finding' :: Text
updatedAt = Text
pUpdatedAt_
      }

-- | Undocumented member.
finding_service :: Lens.Lens' Finding (Prelude.Maybe ServiceInfo)
finding_service :: (Maybe ServiceInfo -> f (Maybe ServiceInfo))
-> Finding -> f Finding
finding_service = (Finding -> Maybe ServiceInfo)
-> (Finding -> Maybe ServiceInfo -> Finding)
-> Lens Finding Finding (Maybe ServiceInfo) (Maybe ServiceInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Maybe ServiceInfo
service :: Maybe ServiceInfo
$sel:service:Finding' :: Finding -> Maybe ServiceInfo
service} -> Maybe ServiceInfo
service) (\s :: Finding
s@Finding' {} Maybe ServiceInfo
a -> Finding
s {$sel:service:Finding' :: Maybe ServiceInfo
service = Maybe ServiceInfo
a} :: Finding)

-- | The confidence score for the finding.
finding_confidence :: Lens.Lens' Finding (Prelude.Maybe Prelude.Double)
finding_confidence :: (Maybe Double -> f (Maybe Double)) -> Finding -> f Finding
finding_confidence = (Finding -> Maybe Double)
-> (Finding -> Maybe Double -> Finding)
-> Lens Finding Finding (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Maybe Double
confidence :: Maybe Double
$sel:confidence:Finding' :: Finding -> Maybe Double
confidence} -> Maybe Double
confidence) (\s :: Finding
s@Finding' {} Maybe Double
a -> Finding
s {$sel:confidence:Finding' :: Maybe Double
confidence = Maybe Double
a} :: Finding)

-- | The partition associated with the finding.
finding_partition :: Lens.Lens' Finding (Prelude.Maybe Prelude.Text)
finding_partition :: (Maybe Text -> f (Maybe Text)) -> Finding -> f Finding
finding_partition = (Finding -> Maybe Text)
-> (Finding -> Maybe Text -> Finding)
-> Lens Finding Finding (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Maybe Text
partition :: Maybe Text
$sel:partition:Finding' :: Finding -> Maybe Text
partition} -> Maybe Text
partition) (\s :: Finding
s@Finding' {} Maybe Text
a -> Finding
s {$sel:partition:Finding' :: Maybe Text
partition = Maybe Text
a} :: Finding)

-- | The title of the finding.
finding_title :: Lens.Lens' Finding (Prelude.Maybe Prelude.Text)
finding_title :: (Maybe Text -> f (Maybe Text)) -> Finding -> f Finding
finding_title = (Finding -> Maybe Text)
-> (Finding -> Maybe Text -> Finding)
-> Lens Finding Finding (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Maybe Text
title :: Maybe Text
$sel:title:Finding' :: Finding -> Maybe Text
title} -> Maybe Text
title) (\s :: Finding
s@Finding' {} Maybe Text
a -> Finding
s {$sel:title:Finding' :: Maybe Text
title = Maybe Text
a} :: Finding)

-- | The description of the finding.
finding_description :: Lens.Lens' Finding (Prelude.Maybe Prelude.Text)
finding_description :: (Maybe Text -> f (Maybe Text)) -> Finding -> f Finding
finding_description = (Finding -> Maybe Text)
-> (Finding -> Maybe Text -> Finding)
-> Lens Finding Finding (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Maybe Text
description :: Maybe Text
$sel:description:Finding' :: Finding -> Maybe Text
description} -> Maybe Text
description) (\s :: Finding
s@Finding' {} Maybe Text
a -> Finding
s {$sel:description:Finding' :: Maybe Text
description = Maybe Text
a} :: Finding)

-- | The ID of the account in which the finding was generated.
finding_accountId :: Lens.Lens' Finding Prelude.Text
finding_accountId :: (Text -> f Text) -> Finding -> f Finding
finding_accountId = (Finding -> Text)
-> (Finding -> Text -> Finding) -> Lens Finding Finding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Text
accountId :: Text
$sel:accountId:Finding' :: Finding -> Text
accountId} -> Text
accountId) (\s :: Finding
s@Finding' {} Text
a -> Finding
s {$sel:accountId:Finding' :: Text
accountId = Text
a} :: Finding)

-- | The ARN of the finding.
finding_arn :: Lens.Lens' Finding Prelude.Text
finding_arn :: (Text -> f Text) -> Finding -> f Finding
finding_arn = (Finding -> Text)
-> (Finding -> Text -> Finding) -> Lens Finding Finding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Text
arn :: Text
$sel:arn:Finding' :: Finding -> Text
arn} -> Text
arn) (\s :: Finding
s@Finding' {} Text
a -> Finding
s {$sel:arn:Finding' :: Text
arn = Text
a} :: Finding)

-- | The time and date when the finding was created.
finding_createdAt :: Lens.Lens' Finding Prelude.Text
finding_createdAt :: (Text -> f Text) -> Finding -> f Finding
finding_createdAt = (Finding -> Text)
-> (Finding -> Text -> Finding) -> Lens Finding Finding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Text
createdAt :: Text
$sel:createdAt:Finding' :: Finding -> Text
createdAt} -> Text
createdAt) (\s :: Finding
s@Finding' {} Text
a -> Finding
s {$sel:createdAt:Finding' :: Text
createdAt = Text
a} :: Finding)

-- | The ID of the finding.
finding_id :: Lens.Lens' Finding Prelude.Text
finding_id :: (Text -> f Text) -> Finding -> f Finding
finding_id = (Finding -> Text)
-> (Finding -> Text -> Finding) -> Lens Finding Finding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Text
id :: Text
$sel:id:Finding' :: Finding -> Text
id} -> Text
id) (\s :: Finding
s@Finding' {} Text
a -> Finding
s {$sel:id:Finding' :: Text
id = Text
a} :: Finding)

-- | The Region where the finding was generated.
finding_region :: Lens.Lens' Finding Prelude.Text
finding_region :: (Text -> f Text) -> Finding -> f Finding
finding_region = (Finding -> Text)
-> (Finding -> Text -> Finding) -> Lens Finding Finding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Text
region :: Text
$sel:region:Finding' :: Finding -> Text
region} -> Text
region) (\s :: Finding
s@Finding' {} Text
a -> Finding
s {$sel:region:Finding' :: Text
region = Text
a} :: Finding)

-- | Undocumented member.
finding_resource :: Lens.Lens' Finding Resource
finding_resource :: (Resource -> f Resource) -> Finding -> f Finding
finding_resource = (Finding -> Resource)
-> (Finding -> Resource -> Finding)
-> Lens Finding Finding Resource Resource
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Resource
resource :: Resource
$sel:resource:Finding' :: Finding -> Resource
resource} -> Resource
resource) (\s :: Finding
s@Finding' {} Resource
a -> Finding
s {$sel:resource:Finding' :: Resource
resource = Resource
a} :: Finding)

-- | The version of the schema used for the finding.
finding_schemaVersion :: Lens.Lens' Finding Prelude.Text
finding_schemaVersion :: (Text -> f Text) -> Finding -> f Finding
finding_schemaVersion = (Finding -> Text)
-> (Finding -> Text -> Finding) -> Lens Finding Finding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Text
schemaVersion :: Text
$sel:schemaVersion:Finding' :: Finding -> Text
schemaVersion} -> Text
schemaVersion) (\s :: Finding
s@Finding' {} Text
a -> Finding
s {$sel:schemaVersion:Finding' :: Text
schemaVersion = Text
a} :: Finding)

-- | The severity of the finding.
finding_severity :: Lens.Lens' Finding Prelude.Double
finding_severity :: (Double -> f Double) -> Finding -> f Finding
finding_severity = (Finding -> Double)
-> (Finding -> Double -> Finding)
-> Lens Finding Finding Double Double
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Double
severity :: Double
$sel:severity:Finding' :: Finding -> Double
severity} -> Double
severity) (\s :: Finding
s@Finding' {} Double
a -> Finding
s {$sel:severity:Finding' :: Double
severity = Double
a} :: Finding)

-- | The type of finding.
finding_type :: Lens.Lens' Finding Prelude.Text
finding_type :: (Text -> f Text) -> Finding -> f Finding
finding_type = (Finding -> Text)
-> (Finding -> Text -> Finding) -> Lens Finding Finding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Text
type' :: Text
$sel:type':Finding' :: Finding -> Text
type'} -> Text
type') (\s :: Finding
s@Finding' {} Text
a -> Finding
s {$sel:type':Finding' :: Text
type' = Text
a} :: Finding)

-- | The time and date when the finding was last updated.
finding_updatedAt :: Lens.Lens' Finding Prelude.Text
finding_updatedAt :: (Text -> f Text) -> Finding -> f Finding
finding_updatedAt = (Finding -> Text)
-> (Finding -> Text -> Finding) -> Lens Finding Finding Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Finding' {Text
updatedAt :: Text
$sel:updatedAt:Finding' :: Finding -> Text
updatedAt} -> Text
updatedAt) (\s :: Finding
s@Finding' {} Text
a -> Finding
s {$sel:updatedAt:Finding' :: Text
updatedAt = Text
a} :: Finding)

instance Core.FromJSON Finding where
  parseJSON :: Value -> Parser Finding
parseJSON =
    String -> (Object -> Parser Finding) -> Value -> Parser Finding
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"Finding"
      ( \Object
x ->
          Maybe ServiceInfo
-> Maybe Double
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> Resource
-> Text
-> Double
-> Text
-> Text
-> Finding
Finding'
            (Maybe ServiceInfo
 -> Maybe Double
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Text
 -> Text
 -> Text
 -> Text
 -> Text
 -> Resource
 -> Text
 -> Double
 -> Text
 -> Text
 -> Finding)
-> Parser (Maybe ServiceInfo)
-> Parser
     (Maybe Double
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> Resource
      -> Text
      -> Double
      -> Text
      -> Text
      -> Finding)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ServiceInfo)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"service")
            Parser
  (Maybe Double
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Text
   -> Text
   -> Text
   -> Text
   -> Text
   -> Resource
   -> Text
   -> Double
   -> Text
   -> Text
   -> Finding)
-> Parser (Maybe Double)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> Resource
      -> Text
      -> Double
      -> Text
      -> Text
      -> Finding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"confidence")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Text
   -> Text
   -> Text
   -> Text
   -> Text
   -> Resource
   -> Text
   -> Double
   -> Text
   -> Text
   -> Finding)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> Resource
      -> Text
      -> Double
      -> Text
      -> Text
      -> Finding)
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
"partition")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Text
   -> Text
   -> Text
   -> Text
   -> Text
   -> Resource
   -> Text
   -> Double
   -> Text
   -> Text
   -> Finding)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> Resource
      -> Text
      -> Double
      -> Text
      -> Text
      -> Finding)
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
"title")
            Parser
  (Maybe Text
   -> Text
   -> Text
   -> Text
   -> Text
   -> Text
   -> Resource
   -> Text
   -> Double
   -> Text
   -> Text
   -> Finding)
-> Parser (Maybe Text)
-> Parser
     (Text
      -> Text
      -> Text
      -> Text
      -> Text
      -> Resource
      -> Text
      -> Double
      -> Text
      -> Text
      -> Finding)
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
"description")
            Parser
  (Text
   -> Text
   -> Text
   -> Text
   -> Text
   -> Resource
   -> Text
   -> Double
   -> Text
   -> Text
   -> Finding)
-> Parser Text
-> Parser
     (Text
      -> Text
      -> Text
      -> Text
      -> Resource
      -> Text
      -> Double
      -> Text
      -> Text
      -> Finding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"accountId")
            Parser
  (Text
   -> Text
   -> Text
   -> Text
   -> Resource
   -> Text
   -> Double
   -> Text
   -> Text
   -> Finding)
-> Parser Text
-> Parser
     (Text
      -> Text
      -> Text
      -> Resource
      -> Text
      -> Double
      -> Text
      -> Text
      -> Finding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"arn")
            Parser
  (Text
   -> Text
   -> Text
   -> Resource
   -> Text
   -> Double
   -> Text
   -> Text
   -> Finding)
-> Parser Text
-> Parser
     (Text
      -> Text -> Resource -> Text -> Double -> Text -> Text -> Finding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"createdAt")
            Parser
  (Text
   -> Text -> Resource -> Text -> Double -> Text -> Text -> Finding)
-> Parser Text
-> Parser
     (Text -> Resource -> Text -> Double -> Text -> Text -> Finding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"id")
            Parser
  (Text -> Resource -> Text -> Double -> Text -> Text -> Finding)
-> Parser Text
-> Parser (Resource -> Text -> Double -> Text -> Text -> Finding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"region")
            Parser (Resource -> Text -> Double -> Text -> Text -> Finding)
-> Parser Resource
-> Parser (Text -> Double -> Text -> Text -> Finding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Resource
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"resource")
            Parser (Text -> Double -> Text -> Text -> Finding)
-> Parser Text -> Parser (Double -> Text -> Text -> Finding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"schemaVersion")
            Parser (Double -> Text -> Text -> Finding)
-> Parser Double -> Parser (Text -> Text -> Finding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Double
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"severity")
            Parser (Text -> Text -> Finding)
-> Parser Text -> Parser (Text -> Finding)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"type")
            Parser (Text -> Finding) -> Parser Text -> Parser Finding
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"updatedAt")
      )

instance Prelude.Hashable Finding

instance Prelude.NFData Finding