{-# 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.AssessmentFrameworkMetadata
-- 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.AssessmentFrameworkMetadata where

import Amazonka.AuditManager.Types.FrameworkType
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The metadata associated with a standard or custom framework.
--
-- /See:/ 'newAssessmentFrameworkMetadata' smart constructor.
data AssessmentFrameworkMetadata = AssessmentFrameworkMetadata'
  { -- | The number of controls associated with the specified framework.
    AssessmentFrameworkMetadata -> Maybe Int
controlsCount :: Prelude.Maybe Prelude.Int,
    -- | Specifies when the framework was most recently updated.
    AssessmentFrameworkMetadata -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Resource Name (ARN) of the framework.
    AssessmentFrameworkMetadata -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | Specifies when the framework was created.
    AssessmentFrameworkMetadata -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The name of the specified framework.
    AssessmentFrameworkMetadata -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The compliance type that the new custom framework supports, such as CIS
    -- or HIPAA.
    AssessmentFrameworkMetadata -> Maybe Text
complianceType :: Prelude.Maybe Prelude.Text,
    -- | The number of control sets associated with the specified framework.
    AssessmentFrameworkMetadata -> Maybe Int
controlSetsCount :: Prelude.Maybe Prelude.Int,
    -- | The unique identified for the specified framework.
    AssessmentFrameworkMetadata -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The framework type, such as standard or custom.
    AssessmentFrameworkMetadata -> Maybe FrameworkType
type' :: Prelude.Maybe FrameworkType,
    -- | The logo associated with the framework.
    AssessmentFrameworkMetadata -> Maybe Text
logo :: Prelude.Maybe Prelude.Text,
    -- | The description of the specified framework.
    AssessmentFrameworkMetadata -> Maybe Text
description :: Prelude.Maybe Prelude.Text
  }
  deriving (AssessmentFrameworkMetadata -> AssessmentFrameworkMetadata -> Bool
(AssessmentFrameworkMetadata
 -> AssessmentFrameworkMetadata -> Bool)
-> (AssessmentFrameworkMetadata
    -> AssessmentFrameworkMetadata -> Bool)
-> Eq AssessmentFrameworkMetadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AssessmentFrameworkMetadata -> AssessmentFrameworkMetadata -> Bool
$c/= :: AssessmentFrameworkMetadata -> AssessmentFrameworkMetadata -> Bool
== :: AssessmentFrameworkMetadata -> AssessmentFrameworkMetadata -> Bool
$c== :: AssessmentFrameworkMetadata -> AssessmentFrameworkMetadata -> Bool
Prelude.Eq, ReadPrec [AssessmentFrameworkMetadata]
ReadPrec AssessmentFrameworkMetadata
Int -> ReadS AssessmentFrameworkMetadata
ReadS [AssessmentFrameworkMetadata]
(Int -> ReadS AssessmentFrameworkMetadata)
-> ReadS [AssessmentFrameworkMetadata]
-> ReadPrec AssessmentFrameworkMetadata
-> ReadPrec [AssessmentFrameworkMetadata]
-> Read AssessmentFrameworkMetadata
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AssessmentFrameworkMetadata]
$creadListPrec :: ReadPrec [AssessmentFrameworkMetadata]
readPrec :: ReadPrec AssessmentFrameworkMetadata
$creadPrec :: ReadPrec AssessmentFrameworkMetadata
readList :: ReadS [AssessmentFrameworkMetadata]
$creadList :: ReadS [AssessmentFrameworkMetadata]
readsPrec :: Int -> ReadS AssessmentFrameworkMetadata
$creadsPrec :: Int -> ReadS AssessmentFrameworkMetadata
Prelude.Read, Int -> AssessmentFrameworkMetadata -> ShowS
[AssessmentFrameworkMetadata] -> ShowS
AssessmentFrameworkMetadata -> String
(Int -> AssessmentFrameworkMetadata -> ShowS)
-> (AssessmentFrameworkMetadata -> String)
-> ([AssessmentFrameworkMetadata] -> ShowS)
-> Show AssessmentFrameworkMetadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AssessmentFrameworkMetadata] -> ShowS
$cshowList :: [AssessmentFrameworkMetadata] -> ShowS
show :: AssessmentFrameworkMetadata -> String
$cshow :: AssessmentFrameworkMetadata -> String
showsPrec :: Int -> AssessmentFrameworkMetadata -> ShowS
$cshowsPrec :: Int -> AssessmentFrameworkMetadata -> ShowS
Prelude.Show, (forall x.
 AssessmentFrameworkMetadata -> Rep AssessmentFrameworkMetadata x)
-> (forall x.
    Rep AssessmentFrameworkMetadata x -> AssessmentFrameworkMetadata)
-> Generic AssessmentFrameworkMetadata
forall x.
Rep AssessmentFrameworkMetadata x -> AssessmentFrameworkMetadata
forall x.
AssessmentFrameworkMetadata -> Rep AssessmentFrameworkMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AssessmentFrameworkMetadata x -> AssessmentFrameworkMetadata
$cfrom :: forall x.
AssessmentFrameworkMetadata -> Rep AssessmentFrameworkMetadata x
Prelude.Generic)

-- |
-- Create a value of 'AssessmentFrameworkMetadata' 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:
--
-- 'controlsCount', 'assessmentFrameworkMetadata_controlsCount' - The number of controls associated with the specified framework.
--
-- 'lastUpdatedAt', 'assessmentFrameworkMetadata_lastUpdatedAt' - Specifies when the framework was most recently updated.
--
-- 'arn', 'assessmentFrameworkMetadata_arn' - The Amazon Resource Name (ARN) of the framework.
--
-- 'createdAt', 'assessmentFrameworkMetadata_createdAt' - Specifies when the framework was created.
--
-- 'name', 'assessmentFrameworkMetadata_name' - The name of the specified framework.
--
-- 'complianceType', 'assessmentFrameworkMetadata_complianceType' - The compliance type that the new custom framework supports, such as CIS
-- or HIPAA.
--
-- 'controlSetsCount', 'assessmentFrameworkMetadata_controlSetsCount' - The number of control sets associated with the specified framework.
--
-- 'id', 'assessmentFrameworkMetadata_id' - The unique identified for the specified framework.
--
-- 'type'', 'assessmentFrameworkMetadata_type' - The framework type, such as standard or custom.
--
-- 'logo', 'assessmentFrameworkMetadata_logo' - The logo associated with the framework.
--
-- 'description', 'assessmentFrameworkMetadata_description' - The description of the specified framework.
newAssessmentFrameworkMetadata ::
  AssessmentFrameworkMetadata
newAssessmentFrameworkMetadata :: AssessmentFrameworkMetadata
newAssessmentFrameworkMetadata =
  AssessmentFrameworkMetadata' :: Maybe Int
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe FrameworkType
-> Maybe Text
-> Maybe Text
-> AssessmentFrameworkMetadata
AssessmentFrameworkMetadata'
    { $sel:controlsCount:AssessmentFrameworkMetadata' :: Maybe Int
controlsCount =
        Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:AssessmentFrameworkMetadata' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:AssessmentFrameworkMetadata' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:AssessmentFrameworkMetadata' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:name:AssessmentFrameworkMetadata' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:complianceType:AssessmentFrameworkMetadata' :: Maybe Text
complianceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:controlSetsCount:AssessmentFrameworkMetadata' :: Maybe Int
controlSetsCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:id:AssessmentFrameworkMetadata' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:type':AssessmentFrameworkMetadata' :: Maybe FrameworkType
type' = Maybe FrameworkType
forall a. Maybe a
Prelude.Nothing,
      $sel:logo:AssessmentFrameworkMetadata' :: Maybe Text
logo = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:AssessmentFrameworkMetadata' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The number of controls associated with the specified framework.
assessmentFrameworkMetadata_controlsCount :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe Prelude.Int)
assessmentFrameworkMetadata_controlsCount :: (Maybe Int -> f (Maybe Int))
-> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata
assessmentFrameworkMetadata_controlsCount = (AssessmentFrameworkMetadata -> Maybe Int)
-> (AssessmentFrameworkMetadata
    -> Maybe Int -> AssessmentFrameworkMetadata)
-> Lens
     AssessmentFrameworkMetadata
     AssessmentFrameworkMetadata
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkMetadata' {Maybe Int
controlsCount :: Maybe Int
$sel:controlsCount:AssessmentFrameworkMetadata' :: AssessmentFrameworkMetadata -> Maybe Int
controlsCount} -> Maybe Int
controlsCount) (\s :: AssessmentFrameworkMetadata
s@AssessmentFrameworkMetadata' {} Maybe Int
a -> AssessmentFrameworkMetadata
s {$sel:controlsCount:AssessmentFrameworkMetadata' :: Maybe Int
controlsCount = Maybe Int
a} :: AssessmentFrameworkMetadata)

-- | Specifies when the framework was most recently updated.
assessmentFrameworkMetadata_lastUpdatedAt :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe Prelude.UTCTime)
assessmentFrameworkMetadata_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata
assessmentFrameworkMetadata_lastUpdatedAt = (AssessmentFrameworkMetadata -> Maybe POSIX)
-> (AssessmentFrameworkMetadata
    -> Maybe POSIX -> AssessmentFrameworkMetadata)
-> Lens
     AssessmentFrameworkMetadata
     AssessmentFrameworkMetadata
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkMetadata' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:AssessmentFrameworkMetadata' :: AssessmentFrameworkMetadata -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: AssessmentFrameworkMetadata
s@AssessmentFrameworkMetadata' {} Maybe POSIX
a -> AssessmentFrameworkMetadata
s {$sel:lastUpdatedAt:AssessmentFrameworkMetadata' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: AssessmentFrameworkMetadata) ((Maybe POSIX -> f (Maybe POSIX))
 -> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> AssessmentFrameworkMetadata
-> f AssessmentFrameworkMetadata
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 Amazon Resource Name (ARN) of the framework.
assessmentFrameworkMetadata_arn :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe Prelude.Text)
assessmentFrameworkMetadata_arn :: (Maybe Text -> f (Maybe Text))
-> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata
assessmentFrameworkMetadata_arn = (AssessmentFrameworkMetadata -> Maybe Text)
-> (AssessmentFrameworkMetadata
    -> Maybe Text -> AssessmentFrameworkMetadata)
-> Lens
     AssessmentFrameworkMetadata
     AssessmentFrameworkMetadata
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkMetadata' {Maybe Text
arn :: Maybe Text
$sel:arn:AssessmentFrameworkMetadata' :: AssessmentFrameworkMetadata -> Maybe Text
arn} -> Maybe Text
arn) (\s :: AssessmentFrameworkMetadata
s@AssessmentFrameworkMetadata' {} Maybe Text
a -> AssessmentFrameworkMetadata
s {$sel:arn:AssessmentFrameworkMetadata' :: Maybe Text
arn = Maybe Text
a} :: AssessmentFrameworkMetadata)

-- | Specifies when the framework was created.
assessmentFrameworkMetadata_createdAt :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe Prelude.UTCTime)
assessmentFrameworkMetadata_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata
assessmentFrameworkMetadata_createdAt = (AssessmentFrameworkMetadata -> Maybe POSIX)
-> (AssessmentFrameworkMetadata
    -> Maybe POSIX -> AssessmentFrameworkMetadata)
-> Lens
     AssessmentFrameworkMetadata
     AssessmentFrameworkMetadata
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkMetadata' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:AssessmentFrameworkMetadata' :: AssessmentFrameworkMetadata -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: AssessmentFrameworkMetadata
s@AssessmentFrameworkMetadata' {} Maybe POSIX
a -> AssessmentFrameworkMetadata
s {$sel:createdAt:AssessmentFrameworkMetadata' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: AssessmentFrameworkMetadata) ((Maybe POSIX -> f (Maybe POSIX))
 -> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> AssessmentFrameworkMetadata
-> f AssessmentFrameworkMetadata
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 framework.
assessmentFrameworkMetadata_name :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe Prelude.Text)
assessmentFrameworkMetadata_name :: (Maybe Text -> f (Maybe Text))
-> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata
assessmentFrameworkMetadata_name = (AssessmentFrameworkMetadata -> Maybe Text)
-> (AssessmentFrameworkMetadata
    -> Maybe Text -> AssessmentFrameworkMetadata)
-> Lens
     AssessmentFrameworkMetadata
     AssessmentFrameworkMetadata
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkMetadata' {Maybe Text
name :: Maybe Text
$sel:name:AssessmentFrameworkMetadata' :: AssessmentFrameworkMetadata -> Maybe Text
name} -> Maybe Text
name) (\s :: AssessmentFrameworkMetadata
s@AssessmentFrameworkMetadata' {} Maybe Text
a -> AssessmentFrameworkMetadata
s {$sel:name:AssessmentFrameworkMetadata' :: Maybe Text
name = Maybe Text
a} :: AssessmentFrameworkMetadata)

-- | The compliance type that the new custom framework supports, such as CIS
-- or HIPAA.
assessmentFrameworkMetadata_complianceType :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe Prelude.Text)
assessmentFrameworkMetadata_complianceType :: (Maybe Text -> f (Maybe Text))
-> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata
assessmentFrameworkMetadata_complianceType = (AssessmentFrameworkMetadata -> Maybe Text)
-> (AssessmentFrameworkMetadata
    -> Maybe Text -> AssessmentFrameworkMetadata)
-> Lens
     AssessmentFrameworkMetadata
     AssessmentFrameworkMetadata
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkMetadata' {Maybe Text
complianceType :: Maybe Text
$sel:complianceType:AssessmentFrameworkMetadata' :: AssessmentFrameworkMetadata -> Maybe Text
complianceType} -> Maybe Text
complianceType) (\s :: AssessmentFrameworkMetadata
s@AssessmentFrameworkMetadata' {} Maybe Text
a -> AssessmentFrameworkMetadata
s {$sel:complianceType:AssessmentFrameworkMetadata' :: Maybe Text
complianceType = Maybe Text
a} :: AssessmentFrameworkMetadata)

-- | The number of control sets associated with the specified framework.
assessmentFrameworkMetadata_controlSetsCount :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe Prelude.Int)
assessmentFrameworkMetadata_controlSetsCount :: (Maybe Int -> f (Maybe Int))
-> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata
assessmentFrameworkMetadata_controlSetsCount = (AssessmentFrameworkMetadata -> Maybe Int)
-> (AssessmentFrameworkMetadata
    -> Maybe Int -> AssessmentFrameworkMetadata)
-> Lens
     AssessmentFrameworkMetadata
     AssessmentFrameworkMetadata
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkMetadata' {Maybe Int
controlSetsCount :: Maybe Int
$sel:controlSetsCount:AssessmentFrameworkMetadata' :: AssessmentFrameworkMetadata -> Maybe Int
controlSetsCount} -> Maybe Int
controlSetsCount) (\s :: AssessmentFrameworkMetadata
s@AssessmentFrameworkMetadata' {} Maybe Int
a -> AssessmentFrameworkMetadata
s {$sel:controlSetsCount:AssessmentFrameworkMetadata' :: Maybe Int
controlSetsCount = Maybe Int
a} :: AssessmentFrameworkMetadata)

-- | The unique identified for the specified framework.
assessmentFrameworkMetadata_id :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe Prelude.Text)
assessmentFrameworkMetadata_id :: (Maybe Text -> f (Maybe Text))
-> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata
assessmentFrameworkMetadata_id = (AssessmentFrameworkMetadata -> Maybe Text)
-> (AssessmentFrameworkMetadata
    -> Maybe Text -> AssessmentFrameworkMetadata)
-> Lens
     AssessmentFrameworkMetadata
     AssessmentFrameworkMetadata
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkMetadata' {Maybe Text
id :: Maybe Text
$sel:id:AssessmentFrameworkMetadata' :: AssessmentFrameworkMetadata -> Maybe Text
id} -> Maybe Text
id) (\s :: AssessmentFrameworkMetadata
s@AssessmentFrameworkMetadata' {} Maybe Text
a -> AssessmentFrameworkMetadata
s {$sel:id:AssessmentFrameworkMetadata' :: Maybe Text
id = Maybe Text
a} :: AssessmentFrameworkMetadata)

-- | The framework type, such as standard or custom.
assessmentFrameworkMetadata_type :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe FrameworkType)
assessmentFrameworkMetadata_type :: (Maybe FrameworkType -> f (Maybe FrameworkType))
-> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata
assessmentFrameworkMetadata_type = (AssessmentFrameworkMetadata -> Maybe FrameworkType)
-> (AssessmentFrameworkMetadata
    -> Maybe FrameworkType -> AssessmentFrameworkMetadata)
-> Lens
     AssessmentFrameworkMetadata
     AssessmentFrameworkMetadata
     (Maybe FrameworkType)
     (Maybe FrameworkType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkMetadata' {Maybe FrameworkType
type' :: Maybe FrameworkType
$sel:type':AssessmentFrameworkMetadata' :: AssessmentFrameworkMetadata -> Maybe FrameworkType
type'} -> Maybe FrameworkType
type') (\s :: AssessmentFrameworkMetadata
s@AssessmentFrameworkMetadata' {} Maybe FrameworkType
a -> AssessmentFrameworkMetadata
s {$sel:type':AssessmentFrameworkMetadata' :: Maybe FrameworkType
type' = Maybe FrameworkType
a} :: AssessmentFrameworkMetadata)

-- | The logo associated with the framework.
assessmentFrameworkMetadata_logo :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe Prelude.Text)
 = (AssessmentFrameworkMetadata -> Maybe Text)
-> (AssessmentFrameworkMetadata
    -> Maybe Text -> AssessmentFrameworkMetadata)
-> Lens
     AssessmentFrameworkMetadata
     AssessmentFrameworkMetadata
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkMetadata' {Maybe Text
logo :: Maybe Text
$sel:logo:AssessmentFrameworkMetadata' :: AssessmentFrameworkMetadata -> Maybe Text
logo} -> Maybe Text
logo) (\s :: AssessmentFrameworkMetadata
s@AssessmentFrameworkMetadata' {} Maybe Text
a -> AssessmentFrameworkMetadata
s {$sel:logo:AssessmentFrameworkMetadata' :: Maybe Text
logo = Maybe Text
a} :: AssessmentFrameworkMetadata)

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

instance Core.FromJSON AssessmentFrameworkMetadata where
  parseJSON :: Value -> Parser AssessmentFrameworkMetadata
parseJSON =
    String
-> (Object -> Parser AssessmentFrameworkMetadata)
-> Value
-> Parser AssessmentFrameworkMetadata
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AssessmentFrameworkMetadata"
      ( \Object
x ->
          Maybe Int
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe FrameworkType
-> Maybe Text
-> Maybe Text
-> AssessmentFrameworkMetadata
AssessmentFrameworkMetadata'
            (Maybe Int
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe FrameworkType
 -> Maybe Text
 -> Maybe Text
 -> AssessmentFrameworkMetadata)
-> Parser (Maybe Int)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe FrameworkType
      -> Maybe Text
      -> Maybe Text
      -> AssessmentFrameworkMetadata)
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
"controlsCount")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe FrameworkType
   -> Maybe Text
   -> Maybe Text
   -> AssessmentFrameworkMetadata)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe FrameworkType
      -> Maybe Text
      -> Maybe Text
      -> AssessmentFrameworkMetadata)
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
"lastUpdatedAt")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe FrameworkType
   -> Maybe Text
   -> Maybe Text
   -> AssessmentFrameworkMetadata)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe FrameworkType
      -> Maybe Text
      -> Maybe Text
      -> AssessmentFrameworkMetadata)
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
"arn")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe FrameworkType
   -> Maybe Text
   -> Maybe Text
   -> AssessmentFrameworkMetadata)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe FrameworkType
      -> Maybe Text
      -> Maybe Text
      -> AssessmentFrameworkMetadata)
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
"createdAt")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe FrameworkType
   -> Maybe Text
   -> Maybe Text
   -> AssessmentFrameworkMetadata)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe FrameworkType
      -> Maybe Text
      -> Maybe Text
      -> AssessmentFrameworkMetadata)
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 Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe FrameworkType
   -> Maybe Text
   -> Maybe Text
   -> AssessmentFrameworkMetadata)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe FrameworkType
      -> Maybe Text
      -> Maybe Text
      -> AssessmentFrameworkMetadata)
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
"complianceType")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe FrameworkType
   -> Maybe Text
   -> Maybe Text
   -> AssessmentFrameworkMetadata)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe FrameworkType
      -> Maybe Text
      -> Maybe Text
      -> AssessmentFrameworkMetadata)
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
"controlSetsCount")
            Parser
  (Maybe Text
   -> Maybe FrameworkType
   -> Maybe Text
   -> Maybe Text
   -> AssessmentFrameworkMetadata)
-> Parser (Maybe Text)
-> Parser
     (Maybe FrameworkType
      -> Maybe Text -> Maybe Text -> AssessmentFrameworkMetadata)
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 FrameworkType
   -> Maybe Text -> Maybe Text -> AssessmentFrameworkMetadata)
-> Parser (Maybe FrameworkType)
-> Parser (Maybe Text -> Maybe Text -> AssessmentFrameworkMetadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe FrameworkType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"type")
            Parser (Maybe Text -> Maybe Text -> AssessmentFrameworkMetadata)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> AssessmentFrameworkMetadata)
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
"logo")
            Parser (Maybe Text -> AssessmentFrameworkMetadata)
-> Parser (Maybe Text) -> Parser AssessmentFrameworkMetadata
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")
      )

instance Prelude.Hashable AssessmentFrameworkMetadata

instance Prelude.NFData AssessmentFrameworkMetadata