{-# 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.Framework
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AuditManager.Types.Framework where

import Amazonka.AuditManager.Types.ControlSet
import Amazonka.AuditManager.Types.FrameworkType
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | The file that\'s used to structure and automate Audit Manager
-- assessments for a given compliance standard.
--
-- /See:/ 'newFramework' smart constructor.
data Framework = Framework'
  { -- | The Amazon Resource Name (ARN) of the framework.
    Framework -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The compliance type that the new custom framework supports, such as CIS
    -- or HIPAA.
    Framework -> Maybe Text
complianceType :: Prelude.Maybe Prelude.Text,
    -- | The control sets that are associated with the framework.
    Framework -> Maybe (NonEmpty ControlSet)
controlSets :: Prelude.Maybe (Prelude.NonEmpty ControlSet),
    -- | The sources that Audit Manager collects evidence from for the control.
    Framework -> Maybe Text
controlSources :: Prelude.Maybe Prelude.Text,
    -- | The time when the framework was created.
    Framework -> Maybe POSIX
createdAt :: Prelude.Maybe Data.POSIX,
    -- | The IAM user or role that created the framework.
    Framework -> Maybe Text
createdBy :: Prelude.Maybe Prelude.Text,
    -- | The description of the framework.
    Framework -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for the framework.
    Framework -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The time when the framework was most recently updated.
    Framework -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Data.POSIX,
    -- | The IAM user or role that most recently updated the framework.
    Framework -> Maybe Text
lastUpdatedBy :: Prelude.Maybe Prelude.Text,
    -- | The logo that\'s associated with the framework.
    Framework -> Maybe Text
logo :: Prelude.Maybe Prelude.Text,
    -- | The name of the framework.
    Framework -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The tags that are associated with the framework.
    Framework -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The framework type, such as a custom framework or a standard framework.
    Framework -> Maybe FrameworkType
type' :: Prelude.Maybe FrameworkType
  }
  deriving (Framework -> Framework -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Framework -> Framework -> Bool
$c/= :: Framework -> Framework -> Bool
== :: Framework -> Framework -> Bool
$c== :: Framework -> Framework -> Bool
Prelude.Eq, ReadPrec [Framework]
ReadPrec Framework
Int -> ReadS Framework
ReadS [Framework]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Framework]
$creadListPrec :: ReadPrec [Framework]
readPrec :: ReadPrec Framework
$creadPrec :: ReadPrec Framework
readList :: ReadS [Framework]
$creadList :: ReadS [Framework]
readsPrec :: Int -> ReadS Framework
$creadsPrec :: Int -> ReadS Framework
Prelude.Read, Int -> Framework -> ShowS
[Framework] -> ShowS
Framework -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Framework] -> ShowS
$cshowList :: [Framework] -> ShowS
show :: Framework -> String
$cshow :: Framework -> String
showsPrec :: Int -> Framework -> ShowS
$cshowsPrec :: Int -> Framework -> ShowS
Prelude.Show, forall x. Rep Framework x -> Framework
forall x. Framework -> Rep Framework x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Framework x -> Framework
$cfrom :: forall x. Framework -> Rep Framework x
Prelude.Generic)

-- |
-- Create a value of 'Framework' 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:
--
-- 'arn', 'framework_arn' - The Amazon Resource Name (ARN) of the framework.
--
-- 'complianceType', 'framework_complianceType' - The compliance type that the new custom framework supports, such as CIS
-- or HIPAA.
--
-- 'controlSets', 'framework_controlSets' - The control sets that are associated with the framework.
--
-- 'controlSources', 'framework_controlSources' - The sources that Audit Manager collects evidence from for the control.
--
-- 'createdAt', 'framework_createdAt' - The time when the framework was created.
--
-- 'createdBy', 'framework_createdBy' - The IAM user or role that created the framework.
--
-- 'description', 'framework_description' - The description of the framework.
--
-- 'id', 'framework_id' - The unique identifier for the framework.
--
-- 'lastUpdatedAt', 'framework_lastUpdatedAt' - The time when the framework was most recently updated.
--
-- 'lastUpdatedBy', 'framework_lastUpdatedBy' - The IAM user or role that most recently updated the framework.
--
-- 'logo', 'framework_logo' - The logo that\'s associated with the framework.
--
-- 'name', 'framework_name' - The name of the framework.
--
-- 'tags', 'framework_tags' - The tags that are associated with the framework.
--
-- 'type'', 'framework_type' - The framework type, such as a custom framework or a standard framework.
newFramework ::
  Framework
newFramework :: Framework
newFramework =
  Framework'
    { $sel:arn:Framework' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:complianceType:Framework' :: Maybe Text
complianceType = forall a. Maybe a
Prelude.Nothing,
      $sel:controlSets:Framework' :: Maybe (NonEmpty ControlSet)
controlSets = forall a. Maybe a
Prelude.Nothing,
      $sel:controlSources:Framework' :: Maybe Text
controlSources = forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:Framework' :: Maybe POSIX
createdAt = forall a. Maybe a
Prelude.Nothing,
      $sel:createdBy:Framework' :: Maybe Text
createdBy = forall a. Maybe a
Prelude.Nothing,
      $sel:description:Framework' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:id:Framework' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:Framework' :: Maybe POSIX
lastUpdatedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedBy:Framework' :: Maybe Text
lastUpdatedBy = forall a. Maybe a
Prelude.Nothing,
      $sel:logo:Framework' :: Maybe Text
logo = forall a. Maybe a
Prelude.Nothing,
      $sel:name:Framework' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:Framework' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:type':Framework' :: Maybe FrameworkType
type' = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the framework.
framework_arn :: Lens.Lens' Framework (Prelude.Maybe Prelude.Text)
framework_arn :: Lens' Framework (Maybe Text)
framework_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Framework' {Maybe Text
arn :: Maybe Text
$sel:arn:Framework' :: Framework -> Maybe Text
arn} -> Maybe Text
arn) (\s :: Framework
s@Framework' {} Maybe Text
a -> Framework
s {$sel:arn:Framework' :: Maybe Text
arn = Maybe Text
a} :: Framework)

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

-- | The control sets that are associated with the framework.
framework_controlSets :: Lens.Lens' Framework (Prelude.Maybe (Prelude.NonEmpty ControlSet))
framework_controlSets :: Lens' Framework (Maybe (NonEmpty ControlSet))
framework_controlSets = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Framework' {Maybe (NonEmpty ControlSet)
controlSets :: Maybe (NonEmpty ControlSet)
$sel:controlSets:Framework' :: Framework -> Maybe (NonEmpty ControlSet)
controlSets} -> Maybe (NonEmpty ControlSet)
controlSets) (\s :: Framework
s@Framework' {} Maybe (NonEmpty ControlSet)
a -> Framework
s {$sel:controlSets:Framework' :: Maybe (NonEmpty ControlSet)
controlSets = Maybe (NonEmpty ControlSet)
a} :: Framework) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The sources that Audit Manager collects evidence from for the control.
framework_controlSources :: Lens.Lens' Framework (Prelude.Maybe Prelude.Text)
framework_controlSources :: Lens' Framework (Maybe Text)
framework_controlSources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Framework' {Maybe Text
controlSources :: Maybe Text
$sel:controlSources:Framework' :: Framework -> Maybe Text
controlSources} -> Maybe Text
controlSources) (\s :: Framework
s@Framework' {} Maybe Text
a -> Framework
s {$sel:controlSources:Framework' :: Maybe Text
controlSources = Maybe Text
a} :: Framework)

-- | The time when the framework was created.
framework_createdAt :: Lens.Lens' Framework (Prelude.Maybe Prelude.UTCTime)
framework_createdAt :: Lens' Framework (Maybe UTCTime)
framework_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Framework' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:Framework' :: Framework -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: Framework
s@Framework' {} Maybe POSIX
a -> Framework
s {$sel:createdAt:Framework' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: Framework) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The IAM user or role that created the framework.
framework_createdBy :: Lens.Lens' Framework (Prelude.Maybe Prelude.Text)
framework_createdBy :: Lens' Framework (Maybe Text)
framework_createdBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Framework' {Maybe Text
createdBy :: Maybe Text
$sel:createdBy:Framework' :: Framework -> Maybe Text
createdBy} -> Maybe Text
createdBy) (\s :: Framework
s@Framework' {} Maybe Text
a -> Framework
s {$sel:createdBy:Framework' :: Maybe Text
createdBy = Maybe Text
a} :: Framework)

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

-- | The unique identifier for the framework.
framework_id :: Lens.Lens' Framework (Prelude.Maybe Prelude.Text)
framework_id :: Lens' Framework (Maybe Text)
framework_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Framework' {Maybe Text
id :: Maybe Text
$sel:id:Framework' :: Framework -> Maybe Text
id} -> Maybe Text
id) (\s :: Framework
s@Framework' {} Maybe Text
a -> Framework
s {$sel:id:Framework' :: Maybe Text
id = Maybe Text
a} :: Framework)

-- | The time when the framework was most recently updated.
framework_lastUpdatedAt :: Lens.Lens' Framework (Prelude.Maybe Prelude.UTCTime)
framework_lastUpdatedAt :: Lens' Framework (Maybe UTCTime)
framework_lastUpdatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Framework' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:Framework' :: Framework -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: Framework
s@Framework' {} Maybe POSIX
a -> Framework
s {$sel:lastUpdatedAt:Framework' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: Framework) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The IAM user or role that most recently updated the framework.
framework_lastUpdatedBy :: Lens.Lens' Framework (Prelude.Maybe Prelude.Text)
framework_lastUpdatedBy :: Lens' Framework (Maybe Text)
framework_lastUpdatedBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Framework' {Maybe Text
lastUpdatedBy :: Maybe Text
$sel:lastUpdatedBy:Framework' :: Framework -> Maybe Text
lastUpdatedBy} -> Maybe Text
lastUpdatedBy) (\s :: Framework
s@Framework' {} Maybe Text
a -> Framework
s {$sel:lastUpdatedBy:Framework' :: Maybe Text
lastUpdatedBy = Maybe Text
a} :: Framework)

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

-- | The name of the framework.
framework_name :: Lens.Lens' Framework (Prelude.Maybe Prelude.Text)
framework_name :: Lens' Framework (Maybe Text)
framework_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Framework' {Maybe Text
name :: Maybe Text
$sel:name:Framework' :: Framework -> Maybe Text
name} -> Maybe Text
name) (\s :: Framework
s@Framework' {} Maybe Text
a -> Framework
s {$sel:name:Framework' :: Maybe Text
name = Maybe Text
a} :: Framework)

-- | The tags that are associated with the framework.
framework_tags :: Lens.Lens' Framework (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
framework_tags :: Lens' Framework (Maybe (HashMap Text Text))
framework_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Framework' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:Framework' :: Framework -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: Framework
s@Framework' {} Maybe (HashMap Text Text)
a -> Framework
s {$sel:tags:Framework' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: Framework) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Data.FromJSON Framework where
  parseJSON :: Value -> Parser Framework
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Framework"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ControlSet)
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe FrameworkType
-> Framework
Framework'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"complianceType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"controlSets")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"controlSources")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"createdAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"createdBy")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"id")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastUpdatedAt")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastUpdatedBy")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"logo")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"type")
      )

instance Prelude.Hashable Framework where
  hashWithSalt :: Int -> Framework -> Int
hashWithSalt Int
_salt Framework' {Maybe (NonEmpty ControlSet)
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe FrameworkType
type' :: Maybe FrameworkType
tags :: Maybe (HashMap Text Text)
name :: Maybe Text
logo :: Maybe Text
lastUpdatedBy :: Maybe Text
lastUpdatedAt :: Maybe POSIX
id :: Maybe Text
description :: Maybe Text
createdBy :: Maybe Text
createdAt :: Maybe POSIX
controlSources :: Maybe Text
controlSets :: Maybe (NonEmpty ControlSet)
complianceType :: Maybe Text
arn :: Maybe Text
$sel:type':Framework' :: Framework -> Maybe FrameworkType
$sel:tags:Framework' :: Framework -> Maybe (HashMap Text Text)
$sel:name:Framework' :: Framework -> Maybe Text
$sel:logo:Framework' :: Framework -> Maybe Text
$sel:lastUpdatedBy:Framework' :: Framework -> Maybe Text
$sel:lastUpdatedAt:Framework' :: Framework -> Maybe POSIX
$sel:id:Framework' :: Framework -> Maybe Text
$sel:description:Framework' :: Framework -> Maybe Text
$sel:createdBy:Framework' :: Framework -> Maybe Text
$sel:createdAt:Framework' :: Framework -> Maybe POSIX
$sel:controlSources:Framework' :: Framework -> Maybe Text
$sel:controlSets:Framework' :: Framework -> Maybe (NonEmpty ControlSet)
$sel:complianceType:Framework' :: Framework -> Maybe Text
$sel:arn:Framework' :: Framework -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
complianceType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty ControlSet)
controlSets
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
controlSources
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
createdAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
createdBy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedAt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
lastUpdatedBy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
logo
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FrameworkType
type'

instance Prelude.NFData Framework where
  rnf :: Framework -> ()
rnf Framework' {Maybe (NonEmpty ControlSet)
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe FrameworkType
type' :: Maybe FrameworkType
tags :: Maybe (HashMap Text Text)
name :: Maybe Text
logo :: Maybe Text
lastUpdatedBy :: Maybe Text
lastUpdatedAt :: Maybe POSIX
id :: Maybe Text
description :: Maybe Text
createdBy :: Maybe Text
createdAt :: Maybe POSIX
controlSources :: Maybe Text
controlSets :: Maybe (NonEmpty ControlSet)
complianceType :: Maybe Text
arn :: Maybe Text
$sel:type':Framework' :: Framework -> Maybe FrameworkType
$sel:tags:Framework' :: Framework -> Maybe (HashMap Text Text)
$sel:name:Framework' :: Framework -> Maybe Text
$sel:logo:Framework' :: Framework -> Maybe Text
$sel:lastUpdatedBy:Framework' :: Framework -> Maybe Text
$sel:lastUpdatedAt:Framework' :: Framework -> Maybe POSIX
$sel:id:Framework' :: Framework -> Maybe Text
$sel:description:Framework' :: Framework -> Maybe Text
$sel:createdBy:Framework' :: Framework -> Maybe Text
$sel:createdAt:Framework' :: Framework -> Maybe POSIX
$sel:controlSources:Framework' :: Framework -> Maybe Text
$sel:controlSets:Framework' :: Framework -> Maybe (NonEmpty ControlSet)
$sel:complianceType:Framework' :: Framework -> Maybe Text
$sel:arn:Framework' :: Framework -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
complianceType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty ControlSet)
controlSets
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
controlSources
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
createdBy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lastUpdatedBy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
logo
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FrameworkType
type'