{-# 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.AuditManager.Types.AssessmentEvidenceFolder
-- 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.AuditManager.Types.AssessmentEvidenceFolder where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The folder in which Audit Manager stores evidence for an assessment.
--
-- /See:/ 'newAssessmentEvidenceFolder' smart constructor.
data AssessmentEvidenceFolder = AssessmentEvidenceFolder'
  { -- | The total number of issues that were reported directly from Security
    -- Hub, Config, or both.
    AssessmentEvidenceFolder -> Maybe Int
evidenceByTypeComplianceCheckIssuesCount :: Prelude.Maybe Prelude.Int,
    -- | The identifier for the control set.
    AssessmentEvidenceFolder -> Maybe Text
controlSetId :: Prelude.Maybe Prelude.Text,
    -- | The total count of evidence included in the assessment report.
    AssessmentEvidenceFolder -> Maybe Int
assessmentReportSelectionCount :: Prelude.Maybe Prelude.Int,
    -- | The total amount of evidence in the evidence folder.
    AssessmentEvidenceFolder -> Maybe Int
totalEvidence :: Prelude.Maybe Prelude.Int,
    -- | The number of evidence that falls under the manual category. This
    -- evidence is imported manually.
    AssessmentEvidenceFolder -> Maybe Int
evidenceByTypeManualCount :: Prelude.Maybe Prelude.Int,
    -- | The date when the first evidence was added to the evidence folder.
    AssessmentEvidenceFolder -> Maybe POSIX
date :: Prelude.Maybe Core.POSIX,
    -- | The name of the specified evidence folder.
    AssessmentEvidenceFolder -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The number of evidence that falls under the user activity category. This
    -- evidence is collected from CloudTrail logs.
    AssessmentEvidenceFolder -> Maybe Int
evidenceByTypeUserActivityCount :: Prelude.Maybe Prelude.Int,
    -- | The unique identifier for the specified control.
    AssessmentEvidenceFolder -> Maybe Text
controlId :: Prelude.Maybe Prelude.Text,
    -- | The total number of Amazon Web Services resources assessed to generate
    -- the evidence.
    AssessmentEvidenceFolder -> Maybe Int
evidenceAwsServiceSourceCount :: Prelude.Maybe Prelude.Int,
    -- | The name of the user who created the evidence folder.
    AssessmentEvidenceFolder -> Maybe Text
author :: Prelude.Maybe Prelude.Text,
    -- | The identifier for the folder in which evidence is stored.
    AssessmentEvidenceFolder -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Web Service from which the evidence was collected.
    AssessmentEvidenceFolder -> Maybe Text
dataSource :: Prelude.Maybe Prelude.Text,
    -- | The name of the control.
    AssessmentEvidenceFolder -> Maybe Text
controlName :: Prelude.Maybe Prelude.Text,
    -- | The number of evidence that falls under the compliance check category.
    -- This evidence is collected from Config or Security Hub.
    AssessmentEvidenceFolder -> Maybe Int
evidenceByTypeComplianceCheckCount :: Prelude.Maybe Prelude.Int,
    -- | The identifier for the specified assessment.
    AssessmentEvidenceFolder -> Maybe Text
assessmentId :: Prelude.Maybe Prelude.Text,
    -- | The number of evidence that falls under the configuration data category.
    -- This evidence is collected from configuration snapshots of other Amazon
    -- Web Services services such as Amazon EC2, Amazon S3, or IAM.
    AssessmentEvidenceFolder -> Maybe Int
evidenceByTypeConfigurationDataCount :: Prelude.Maybe Prelude.Int,
    -- | The amount of evidence included in the evidence folder.
    AssessmentEvidenceFolder -> Maybe Int
evidenceResourcesIncludedCount :: Prelude.Maybe Prelude.Int
  }
  deriving (AssessmentEvidenceFolder -> AssessmentEvidenceFolder -> Bool
(AssessmentEvidenceFolder -> AssessmentEvidenceFolder -> Bool)
-> (AssessmentEvidenceFolder -> AssessmentEvidenceFolder -> Bool)
-> Eq AssessmentEvidenceFolder
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AssessmentEvidenceFolder -> AssessmentEvidenceFolder -> Bool
$c/= :: AssessmentEvidenceFolder -> AssessmentEvidenceFolder -> Bool
== :: AssessmentEvidenceFolder -> AssessmentEvidenceFolder -> Bool
$c== :: AssessmentEvidenceFolder -> AssessmentEvidenceFolder -> Bool
Prelude.Eq, ReadPrec [AssessmentEvidenceFolder]
ReadPrec AssessmentEvidenceFolder
Int -> ReadS AssessmentEvidenceFolder
ReadS [AssessmentEvidenceFolder]
(Int -> ReadS AssessmentEvidenceFolder)
-> ReadS [AssessmentEvidenceFolder]
-> ReadPrec AssessmentEvidenceFolder
-> ReadPrec [AssessmentEvidenceFolder]
-> Read AssessmentEvidenceFolder
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AssessmentEvidenceFolder]
$creadListPrec :: ReadPrec [AssessmentEvidenceFolder]
readPrec :: ReadPrec AssessmentEvidenceFolder
$creadPrec :: ReadPrec AssessmentEvidenceFolder
readList :: ReadS [AssessmentEvidenceFolder]
$creadList :: ReadS [AssessmentEvidenceFolder]
readsPrec :: Int -> ReadS AssessmentEvidenceFolder
$creadsPrec :: Int -> ReadS AssessmentEvidenceFolder
Prelude.Read, Int -> AssessmentEvidenceFolder -> ShowS
[AssessmentEvidenceFolder] -> ShowS
AssessmentEvidenceFolder -> String
(Int -> AssessmentEvidenceFolder -> ShowS)
-> (AssessmentEvidenceFolder -> String)
-> ([AssessmentEvidenceFolder] -> ShowS)
-> Show AssessmentEvidenceFolder
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AssessmentEvidenceFolder] -> ShowS
$cshowList :: [AssessmentEvidenceFolder] -> ShowS
show :: AssessmentEvidenceFolder -> String
$cshow :: AssessmentEvidenceFolder -> String
showsPrec :: Int -> AssessmentEvidenceFolder -> ShowS
$cshowsPrec :: Int -> AssessmentEvidenceFolder -> ShowS
Prelude.Show, (forall x.
 AssessmentEvidenceFolder -> Rep AssessmentEvidenceFolder x)
-> (forall x.
    Rep AssessmentEvidenceFolder x -> AssessmentEvidenceFolder)
-> Generic AssessmentEvidenceFolder
forall x.
Rep AssessmentEvidenceFolder x -> AssessmentEvidenceFolder
forall x.
AssessmentEvidenceFolder -> Rep AssessmentEvidenceFolder x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AssessmentEvidenceFolder x -> AssessmentEvidenceFolder
$cfrom :: forall x.
AssessmentEvidenceFolder -> Rep AssessmentEvidenceFolder x
Prelude.Generic)

-- |
-- Create a value of 'AssessmentEvidenceFolder' 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:
--
-- 'evidenceByTypeComplianceCheckIssuesCount', 'assessmentEvidenceFolder_evidenceByTypeComplianceCheckIssuesCount' - The total number of issues that were reported directly from Security
-- Hub, Config, or both.
--
-- 'controlSetId', 'assessmentEvidenceFolder_controlSetId' - The identifier for the control set.
--
-- 'assessmentReportSelectionCount', 'assessmentEvidenceFolder_assessmentReportSelectionCount' - The total count of evidence included in the assessment report.
--
-- 'totalEvidence', 'assessmentEvidenceFolder_totalEvidence' - The total amount of evidence in the evidence folder.
--
-- 'evidenceByTypeManualCount', 'assessmentEvidenceFolder_evidenceByTypeManualCount' - The number of evidence that falls under the manual category. This
-- evidence is imported manually.
--
-- 'date', 'assessmentEvidenceFolder_date' - The date when the first evidence was added to the evidence folder.
--
-- 'name', 'assessmentEvidenceFolder_name' - The name of the specified evidence folder.
--
-- 'evidenceByTypeUserActivityCount', 'assessmentEvidenceFolder_evidenceByTypeUserActivityCount' - The number of evidence that falls under the user activity category. This
-- evidence is collected from CloudTrail logs.
--
-- 'controlId', 'assessmentEvidenceFolder_controlId' - The unique identifier for the specified control.
--
-- 'evidenceAwsServiceSourceCount', 'assessmentEvidenceFolder_evidenceAwsServiceSourceCount' - The total number of Amazon Web Services resources assessed to generate
-- the evidence.
--
-- 'author', 'assessmentEvidenceFolder_author' - The name of the user who created the evidence folder.
--
-- 'id', 'assessmentEvidenceFolder_id' - The identifier for the folder in which evidence is stored.
--
-- 'dataSource', 'assessmentEvidenceFolder_dataSource' - The Amazon Web Service from which the evidence was collected.
--
-- 'controlName', 'assessmentEvidenceFolder_controlName' - The name of the control.
--
-- 'evidenceByTypeComplianceCheckCount', 'assessmentEvidenceFolder_evidenceByTypeComplianceCheckCount' - The number of evidence that falls under the compliance check category.
-- This evidence is collected from Config or Security Hub.
--
-- 'assessmentId', 'assessmentEvidenceFolder_assessmentId' - The identifier for the specified assessment.
--
-- 'evidenceByTypeConfigurationDataCount', 'assessmentEvidenceFolder_evidenceByTypeConfigurationDataCount' - The number of evidence that falls under the configuration data category.
-- This evidence is collected from configuration snapshots of other Amazon
-- Web Services services such as Amazon EC2, Amazon S3, or IAM.
--
-- 'evidenceResourcesIncludedCount', 'assessmentEvidenceFolder_evidenceResourcesIncludedCount' - The amount of evidence included in the evidence folder.
newAssessmentEvidenceFolder ::
  AssessmentEvidenceFolder
newAssessmentEvidenceFolder :: AssessmentEvidenceFolder
newAssessmentEvidenceFolder =
  AssessmentEvidenceFolder' :: Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> AssessmentEvidenceFolder
AssessmentEvidenceFolder'
    { $sel:evidenceByTypeComplianceCheckIssuesCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceByTypeComplianceCheckIssuesCount =
        Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:controlSetId:AssessmentEvidenceFolder' :: Maybe Text
controlSetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:assessmentReportSelectionCount:AssessmentEvidenceFolder' :: Maybe Int
assessmentReportSelectionCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:totalEvidence:AssessmentEvidenceFolder' :: Maybe Int
totalEvidence = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:evidenceByTypeManualCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceByTypeManualCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:date:AssessmentEvidenceFolder' :: Maybe POSIX
date = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:name:AssessmentEvidenceFolder' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:evidenceByTypeUserActivityCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceByTypeUserActivityCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:controlId:AssessmentEvidenceFolder' :: Maybe Text
controlId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:evidenceAwsServiceSourceCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceAwsServiceSourceCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:author:AssessmentEvidenceFolder' :: Maybe Text
author = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:AssessmentEvidenceFolder' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dataSource:AssessmentEvidenceFolder' :: Maybe Text
dataSource = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:controlName:AssessmentEvidenceFolder' :: Maybe Text
controlName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:evidenceByTypeComplianceCheckCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceByTypeComplianceCheckCount =
        Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:assessmentId:AssessmentEvidenceFolder' :: Maybe Text
assessmentId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:evidenceByTypeConfigurationDataCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceByTypeConfigurationDataCount =
        Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:evidenceResourcesIncludedCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceResourcesIncludedCount = Maybe Int
forall a. Maybe a
Prelude.Nothing
    }

-- | The total number of issues that were reported directly from Security
-- Hub, Config, or both.
assessmentEvidenceFolder_evidenceByTypeComplianceCheckIssuesCount :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Int)
assessmentEvidenceFolder_evidenceByTypeComplianceCheckIssuesCount :: (Maybe Int -> f (Maybe Int))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_evidenceByTypeComplianceCheckIssuesCount = (AssessmentEvidenceFolder -> Maybe Int)
-> (AssessmentEvidenceFolder
    -> Maybe Int -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Int
evidenceByTypeComplianceCheckIssuesCount :: Maybe Int
$sel:evidenceByTypeComplianceCheckIssuesCount:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Int
evidenceByTypeComplianceCheckIssuesCount} -> Maybe Int
evidenceByTypeComplianceCheckIssuesCount) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Int
a -> AssessmentEvidenceFolder
s {$sel:evidenceByTypeComplianceCheckIssuesCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceByTypeComplianceCheckIssuesCount = Maybe Int
a} :: AssessmentEvidenceFolder)

-- | The identifier for the control set.
assessmentEvidenceFolder_controlSetId :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Text)
assessmentEvidenceFolder_controlSetId :: (Maybe Text -> f (Maybe Text))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_controlSetId = (AssessmentEvidenceFolder -> Maybe Text)
-> (AssessmentEvidenceFolder
    -> Maybe Text -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Text
controlSetId :: Maybe Text
$sel:controlSetId:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Text
controlSetId} -> Maybe Text
controlSetId) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Text
a -> AssessmentEvidenceFolder
s {$sel:controlSetId:AssessmentEvidenceFolder' :: Maybe Text
controlSetId = Maybe Text
a} :: AssessmentEvidenceFolder)

-- | The total count of evidence included in the assessment report.
assessmentEvidenceFolder_assessmentReportSelectionCount :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Int)
assessmentEvidenceFolder_assessmentReportSelectionCount :: (Maybe Int -> f (Maybe Int))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_assessmentReportSelectionCount = (AssessmentEvidenceFolder -> Maybe Int)
-> (AssessmentEvidenceFolder
    -> Maybe Int -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Int
assessmentReportSelectionCount :: Maybe Int
$sel:assessmentReportSelectionCount:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Int
assessmentReportSelectionCount} -> Maybe Int
assessmentReportSelectionCount) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Int
a -> AssessmentEvidenceFolder
s {$sel:assessmentReportSelectionCount:AssessmentEvidenceFolder' :: Maybe Int
assessmentReportSelectionCount = Maybe Int
a} :: AssessmentEvidenceFolder)

-- | The total amount of evidence in the evidence folder.
assessmentEvidenceFolder_totalEvidence :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Int)
assessmentEvidenceFolder_totalEvidence :: (Maybe Int -> f (Maybe Int))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_totalEvidence = (AssessmentEvidenceFolder -> Maybe Int)
-> (AssessmentEvidenceFolder
    -> Maybe Int -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Int
totalEvidence :: Maybe Int
$sel:totalEvidence:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Int
totalEvidence} -> Maybe Int
totalEvidence) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Int
a -> AssessmentEvidenceFolder
s {$sel:totalEvidence:AssessmentEvidenceFolder' :: Maybe Int
totalEvidence = Maybe Int
a} :: AssessmentEvidenceFolder)

-- | The number of evidence that falls under the manual category. This
-- evidence is imported manually.
assessmentEvidenceFolder_evidenceByTypeManualCount :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Int)
assessmentEvidenceFolder_evidenceByTypeManualCount :: (Maybe Int -> f (Maybe Int))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_evidenceByTypeManualCount = (AssessmentEvidenceFolder -> Maybe Int)
-> (AssessmentEvidenceFolder
    -> Maybe Int -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Int
evidenceByTypeManualCount :: Maybe Int
$sel:evidenceByTypeManualCount:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Int
evidenceByTypeManualCount} -> Maybe Int
evidenceByTypeManualCount) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Int
a -> AssessmentEvidenceFolder
s {$sel:evidenceByTypeManualCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceByTypeManualCount = Maybe Int
a} :: AssessmentEvidenceFolder)

-- | The date when the first evidence was added to the evidence folder.
assessmentEvidenceFolder_date :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.UTCTime)
assessmentEvidenceFolder_date :: (Maybe UTCTime -> f (Maybe UTCTime))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_date = (AssessmentEvidenceFolder -> Maybe POSIX)
-> (AssessmentEvidenceFolder
    -> Maybe POSIX -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe POSIX
date :: Maybe POSIX
$sel:date:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe POSIX
date} -> Maybe POSIX
date) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe POSIX
a -> AssessmentEvidenceFolder
s {$sel:date:AssessmentEvidenceFolder' :: Maybe POSIX
date = Maybe POSIX
a} :: AssessmentEvidenceFolder) ((Maybe POSIX -> f (Maybe POSIX))
 -> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> AssessmentEvidenceFolder
-> f AssessmentEvidenceFolder
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

-- | The name of the specified evidence folder.
assessmentEvidenceFolder_name :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Text)
assessmentEvidenceFolder_name :: (Maybe Text -> f (Maybe Text))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_name = (AssessmentEvidenceFolder -> Maybe Text)
-> (AssessmentEvidenceFolder
    -> Maybe Text -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Text
name :: Maybe Text
$sel:name:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Text
name} -> Maybe Text
name) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Text
a -> AssessmentEvidenceFolder
s {$sel:name:AssessmentEvidenceFolder' :: Maybe Text
name = Maybe Text
a} :: AssessmentEvidenceFolder)

-- | The number of evidence that falls under the user activity category. This
-- evidence is collected from CloudTrail logs.
assessmentEvidenceFolder_evidenceByTypeUserActivityCount :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Int)
assessmentEvidenceFolder_evidenceByTypeUserActivityCount :: (Maybe Int -> f (Maybe Int))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_evidenceByTypeUserActivityCount = (AssessmentEvidenceFolder -> Maybe Int)
-> (AssessmentEvidenceFolder
    -> Maybe Int -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Int
evidenceByTypeUserActivityCount :: Maybe Int
$sel:evidenceByTypeUserActivityCount:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Int
evidenceByTypeUserActivityCount} -> Maybe Int
evidenceByTypeUserActivityCount) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Int
a -> AssessmentEvidenceFolder
s {$sel:evidenceByTypeUserActivityCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceByTypeUserActivityCount = Maybe Int
a} :: AssessmentEvidenceFolder)

-- | The unique identifier for the specified control.
assessmentEvidenceFolder_controlId :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Text)
assessmentEvidenceFolder_controlId :: (Maybe Text -> f (Maybe Text))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_controlId = (AssessmentEvidenceFolder -> Maybe Text)
-> (AssessmentEvidenceFolder
    -> Maybe Text -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Text
controlId :: Maybe Text
$sel:controlId:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Text
controlId} -> Maybe Text
controlId) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Text
a -> AssessmentEvidenceFolder
s {$sel:controlId:AssessmentEvidenceFolder' :: Maybe Text
controlId = Maybe Text
a} :: AssessmentEvidenceFolder)

-- | The total number of Amazon Web Services resources assessed to generate
-- the evidence.
assessmentEvidenceFolder_evidenceAwsServiceSourceCount :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Int)
assessmentEvidenceFolder_evidenceAwsServiceSourceCount :: (Maybe Int -> f (Maybe Int))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_evidenceAwsServiceSourceCount = (AssessmentEvidenceFolder -> Maybe Int)
-> (AssessmentEvidenceFolder
    -> Maybe Int -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Int
evidenceAwsServiceSourceCount :: Maybe Int
$sel:evidenceAwsServiceSourceCount:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Int
evidenceAwsServiceSourceCount} -> Maybe Int
evidenceAwsServiceSourceCount) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Int
a -> AssessmentEvidenceFolder
s {$sel:evidenceAwsServiceSourceCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceAwsServiceSourceCount = Maybe Int
a} :: AssessmentEvidenceFolder)

-- | The name of the user who created the evidence folder.
assessmentEvidenceFolder_author :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Text)
assessmentEvidenceFolder_author :: (Maybe Text -> f (Maybe Text))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_author = (AssessmentEvidenceFolder -> Maybe Text)
-> (AssessmentEvidenceFolder
    -> Maybe Text -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Text
author :: Maybe Text
$sel:author:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Text
author} -> Maybe Text
author) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Text
a -> AssessmentEvidenceFolder
s {$sel:author:AssessmentEvidenceFolder' :: Maybe Text
author = Maybe Text
a} :: AssessmentEvidenceFolder)

-- | The identifier for the folder in which evidence is stored.
assessmentEvidenceFolder_id :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Text)
assessmentEvidenceFolder_id :: (Maybe Text -> f (Maybe Text))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_id = (AssessmentEvidenceFolder -> Maybe Text)
-> (AssessmentEvidenceFolder
    -> Maybe Text -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Text
id :: Maybe Text
$sel:id:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Text
id} -> Maybe Text
id) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Text
a -> AssessmentEvidenceFolder
s {$sel:id:AssessmentEvidenceFolder' :: Maybe Text
id = Maybe Text
a} :: AssessmentEvidenceFolder)

-- | The Amazon Web Service from which the evidence was collected.
assessmentEvidenceFolder_dataSource :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Text)
assessmentEvidenceFolder_dataSource :: (Maybe Text -> f (Maybe Text))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_dataSource = (AssessmentEvidenceFolder -> Maybe Text)
-> (AssessmentEvidenceFolder
    -> Maybe Text -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Text
dataSource :: Maybe Text
$sel:dataSource:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Text
dataSource} -> Maybe Text
dataSource) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Text
a -> AssessmentEvidenceFolder
s {$sel:dataSource:AssessmentEvidenceFolder' :: Maybe Text
dataSource = Maybe Text
a} :: AssessmentEvidenceFolder)

-- | The name of the control.
assessmentEvidenceFolder_controlName :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Text)
assessmentEvidenceFolder_controlName :: (Maybe Text -> f (Maybe Text))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_controlName = (AssessmentEvidenceFolder -> Maybe Text)
-> (AssessmentEvidenceFolder
    -> Maybe Text -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Text
controlName :: Maybe Text
$sel:controlName:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Text
controlName} -> Maybe Text
controlName) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Text
a -> AssessmentEvidenceFolder
s {$sel:controlName:AssessmentEvidenceFolder' :: Maybe Text
controlName = Maybe Text
a} :: AssessmentEvidenceFolder)

-- | The number of evidence that falls under the compliance check category.
-- This evidence is collected from Config or Security Hub.
assessmentEvidenceFolder_evidenceByTypeComplianceCheckCount :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Int)
assessmentEvidenceFolder_evidenceByTypeComplianceCheckCount :: (Maybe Int -> f (Maybe Int))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_evidenceByTypeComplianceCheckCount = (AssessmentEvidenceFolder -> Maybe Int)
-> (AssessmentEvidenceFolder
    -> Maybe Int -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Int
evidenceByTypeComplianceCheckCount :: Maybe Int
$sel:evidenceByTypeComplianceCheckCount:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Int
evidenceByTypeComplianceCheckCount} -> Maybe Int
evidenceByTypeComplianceCheckCount) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Int
a -> AssessmentEvidenceFolder
s {$sel:evidenceByTypeComplianceCheckCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceByTypeComplianceCheckCount = Maybe Int
a} :: AssessmentEvidenceFolder)

-- | The identifier for the specified assessment.
assessmentEvidenceFolder_assessmentId :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Text)
assessmentEvidenceFolder_assessmentId :: (Maybe Text -> f (Maybe Text))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_assessmentId = (AssessmentEvidenceFolder -> Maybe Text)
-> (AssessmentEvidenceFolder
    -> Maybe Text -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Text
assessmentId :: Maybe Text
$sel:assessmentId:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Text
assessmentId} -> Maybe Text
assessmentId) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Text
a -> AssessmentEvidenceFolder
s {$sel:assessmentId:AssessmentEvidenceFolder' :: Maybe Text
assessmentId = Maybe Text
a} :: AssessmentEvidenceFolder)

-- | The number of evidence that falls under the configuration data category.
-- This evidence is collected from configuration snapshots of other Amazon
-- Web Services services such as Amazon EC2, Amazon S3, or IAM.
assessmentEvidenceFolder_evidenceByTypeConfigurationDataCount :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Int)
assessmentEvidenceFolder_evidenceByTypeConfigurationDataCount :: (Maybe Int -> f (Maybe Int))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_evidenceByTypeConfigurationDataCount = (AssessmentEvidenceFolder -> Maybe Int)
-> (AssessmentEvidenceFolder
    -> Maybe Int -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Int
evidenceByTypeConfigurationDataCount :: Maybe Int
$sel:evidenceByTypeConfigurationDataCount:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Int
evidenceByTypeConfigurationDataCount} -> Maybe Int
evidenceByTypeConfigurationDataCount) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Int
a -> AssessmentEvidenceFolder
s {$sel:evidenceByTypeConfigurationDataCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceByTypeConfigurationDataCount = Maybe Int
a} :: AssessmentEvidenceFolder)

-- | The amount of evidence included in the evidence folder.
assessmentEvidenceFolder_evidenceResourcesIncludedCount :: Lens.Lens' AssessmentEvidenceFolder (Prelude.Maybe Prelude.Int)
assessmentEvidenceFolder_evidenceResourcesIncludedCount :: (Maybe Int -> f (Maybe Int))
-> AssessmentEvidenceFolder -> f AssessmentEvidenceFolder
assessmentEvidenceFolder_evidenceResourcesIncludedCount = (AssessmentEvidenceFolder -> Maybe Int)
-> (AssessmentEvidenceFolder
    -> Maybe Int -> AssessmentEvidenceFolder)
-> Lens
     AssessmentEvidenceFolder
     AssessmentEvidenceFolder
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentEvidenceFolder' {Maybe Int
evidenceResourcesIncludedCount :: Maybe Int
$sel:evidenceResourcesIncludedCount:AssessmentEvidenceFolder' :: AssessmentEvidenceFolder -> Maybe Int
evidenceResourcesIncludedCount} -> Maybe Int
evidenceResourcesIncludedCount) (\s :: AssessmentEvidenceFolder
s@AssessmentEvidenceFolder' {} Maybe Int
a -> AssessmentEvidenceFolder
s {$sel:evidenceResourcesIncludedCount:AssessmentEvidenceFolder' :: Maybe Int
evidenceResourcesIncludedCount = Maybe Int
a} :: AssessmentEvidenceFolder)

instance Core.FromJSON AssessmentEvidenceFolder where
  parseJSON :: Value -> Parser AssessmentEvidenceFolder
parseJSON =
    String
-> (Object -> Parser AssessmentEvidenceFolder)
-> Value
-> Parser AssessmentEvidenceFolder
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AssessmentEvidenceFolder"
      ( \Object
x ->
          Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> AssessmentEvidenceFolder
AssessmentEvidenceFolder'
            (Maybe Int
 -> Maybe Text
 -> Maybe Int
 -> Maybe Int
 -> Maybe Int
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Int
 -> Maybe Int
 -> AssessmentEvidenceFolder)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> Maybe Int
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"evidenceByTypeComplianceCheckIssuesCount"
                        )
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> Maybe Int
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Int
      -> Maybe Int
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
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
"controlSetId")
            Parser
  (Maybe Int
   -> Maybe Int
   -> Maybe Int
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Int)
-> Parser
     (Maybe Int
      -> Maybe Int
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"assessmentReportSelectionCount")
            Parser
  (Maybe Int
   -> Maybe Int
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Int)
-> Parser
     (Maybe Int
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"totalEvidence")
            Parser
  (Maybe Int
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Int)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"evidenceByTypeManualCount")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
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
"date")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
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
"name")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"evidenceByTypeUserActivityCount")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
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
"controlId")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"evidenceAwsServiceSourceCount")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
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
"author")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
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
"id")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
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
"dataSource")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Int
      -> Maybe Int
      -> AssessmentEvidenceFolder)
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
"controlName")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Int
   -> Maybe Int
   -> AssessmentEvidenceFolder)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text -> Maybe Int -> Maybe Int -> AssessmentEvidenceFolder)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"evidenceByTypeComplianceCheckCount")
            Parser
  (Maybe Text -> Maybe Int -> Maybe Int -> AssessmentEvidenceFolder)
-> Parser (Maybe Text)
-> Parser (Maybe Int -> Maybe Int -> AssessmentEvidenceFolder)
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
"assessmentId")
            Parser (Maybe Int -> Maybe Int -> AssessmentEvidenceFolder)
-> Parser (Maybe Int)
-> Parser (Maybe Int -> AssessmentEvidenceFolder)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"evidenceByTypeConfigurationDataCount")
            Parser (Maybe Int -> AssessmentEvidenceFolder)
-> Parser (Maybe Int) -> Parser AssessmentEvidenceFolder
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"evidenceResourcesIncludedCount")
      )

instance Prelude.Hashable AssessmentEvidenceFolder

instance Prelude.NFData AssessmentEvidenceFolder