{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.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
data AssessmentFrameworkMetadata = AssessmentFrameworkMetadata'
{
AssessmentFrameworkMetadata -> Maybe Int
controlsCount :: Prelude.Maybe Prelude.Int,
AssessmentFrameworkMetadata -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
AssessmentFrameworkMetadata -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
AssessmentFrameworkMetadata -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
AssessmentFrameworkMetadata -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
AssessmentFrameworkMetadata -> Maybe Text
complianceType :: Prelude.Maybe Prelude.Text,
AssessmentFrameworkMetadata -> Maybe Int
controlSetsCount :: Prelude.Maybe Prelude.Int,
AssessmentFrameworkMetadata -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
AssessmentFrameworkMetadata -> Maybe FrameworkType
type' :: Prelude.Maybe FrameworkType,
AssessmentFrameworkMetadata -> Maybe Text
logo :: Prelude.Maybe Prelude.Text,
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)
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
}
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)
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
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)
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
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)
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)
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)
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)
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)
assessmentFrameworkMetadata_logo :: Lens.Lens' AssessmentFrameworkMetadata (Prelude.Maybe Prelude.Text)
assessmentFrameworkMetadata_logo :: (Maybe Text -> f (Maybe Text))
-> AssessmentFrameworkMetadata -> f AssessmentFrameworkMetadata
assessmentFrameworkMetadata_logo = (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)
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