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

import Amazonka.AuditManager.Types.ControlMappingSource
import Amazonka.AuditManager.Types.ControlType
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

-- | A control in Audit Manager.
--
-- /See:/ 'newControl' smart constructor.
data Control = Control'
  { -- | The recommended actions to carry out if the control isn\'t fulfilled.
    Control -> Maybe Text
actionPlanInstructions :: Prelude.Maybe Prelude.Text,
    -- | The title of the action plan for remediating the control.
    Control -> Maybe Text
actionPlanTitle :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the control.
    Control -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The data mapping sources for the control.
    Control -> Maybe (NonEmpty ControlMappingSource)
controlMappingSources :: Prelude.Maybe (Prelude.NonEmpty ControlMappingSource),
    -- | The data source types that determine where Audit Manager collects
    -- evidence from for the control.
    Control -> Maybe Text
controlSources :: Prelude.Maybe Prelude.Text,
    -- | The time when the control was created.
    Control -> Maybe POSIX
createdAt :: Prelude.Maybe Data.POSIX,
    -- | The IAM user or role that created the control.
    Control -> Maybe Text
createdBy :: Prelude.Maybe Prelude.Text,
    -- | The description of the control.
    Control -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for the control.
    Control -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The time when the control was most recently updated.
    Control -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Data.POSIX,
    -- | The IAM user or role that most recently updated the control.
    Control -> Maybe Text
lastUpdatedBy :: Prelude.Maybe Prelude.Text,
    -- | The name of the control.
    Control -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The tags associated with the control.
    Control -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The steps that you should follow to determine if the control has been
    -- satisfied.
    Control -> Maybe Text
testingInformation :: Prelude.Maybe Prelude.Text,
    -- | The type of control, such as a custom control or a standard control.
    Control -> Maybe ControlType
type' :: Prelude.Maybe ControlType
  }
  deriving (Control -> Control -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Control -> Control -> Bool
$c/= :: Control -> Control -> Bool
== :: Control -> Control -> Bool
$c== :: Control -> Control -> Bool
Prelude.Eq, ReadPrec [Control]
ReadPrec Control
Int -> ReadS Control
ReadS [Control]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Control]
$creadListPrec :: ReadPrec [Control]
readPrec :: ReadPrec Control
$creadPrec :: ReadPrec Control
readList :: ReadS [Control]
$creadList :: ReadS [Control]
readsPrec :: Int -> ReadS Control
$creadsPrec :: Int -> ReadS Control
Prelude.Read, Int -> Control -> ShowS
[Control] -> ShowS
Control -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Control] -> ShowS
$cshowList :: [Control] -> ShowS
show :: Control -> String
$cshow :: Control -> String
showsPrec :: Int -> Control -> ShowS
$cshowsPrec :: Int -> Control -> ShowS
Prelude.Show, forall x. Rep Control x -> Control
forall x. Control -> Rep Control x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Control x -> Control
$cfrom :: forall x. Control -> Rep Control x
Prelude.Generic)

-- |
-- Create a value of 'Control' 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:
--
-- 'actionPlanInstructions', 'control_actionPlanInstructions' - The recommended actions to carry out if the control isn\'t fulfilled.
--
-- 'actionPlanTitle', 'control_actionPlanTitle' - The title of the action plan for remediating the control.
--
-- 'arn', 'control_arn' - The Amazon Resource Name (ARN) of the control.
--
-- 'controlMappingSources', 'control_controlMappingSources' - The data mapping sources for the control.
--
-- 'controlSources', 'control_controlSources' - The data source types that determine where Audit Manager collects
-- evidence from for the control.
--
-- 'createdAt', 'control_createdAt' - The time when the control was created.
--
-- 'createdBy', 'control_createdBy' - The IAM user or role that created the control.
--
-- 'description', 'control_description' - The description of the control.
--
-- 'id', 'control_id' - The unique identifier for the control.
--
-- 'lastUpdatedAt', 'control_lastUpdatedAt' - The time when the control was most recently updated.
--
-- 'lastUpdatedBy', 'control_lastUpdatedBy' - The IAM user or role that most recently updated the control.
--
-- 'name', 'control_name' - The name of the control.
--
-- 'tags', 'control_tags' - The tags associated with the control.
--
-- 'testingInformation', 'control_testingInformation' - The steps that you should follow to determine if the control has been
-- satisfied.
--
-- 'type'', 'control_type' - The type of control, such as a custom control or a standard control.
newControl ::
  Control
newControl :: Control
newControl =
  Control'
    { $sel:actionPlanInstructions:Control' :: Maybe Text
actionPlanInstructions = forall a. Maybe a
Prelude.Nothing,
      $sel:actionPlanTitle:Control' :: Maybe Text
actionPlanTitle = forall a. Maybe a
Prelude.Nothing,
      $sel:arn:Control' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:controlMappingSources:Control' :: Maybe (NonEmpty ControlMappingSource)
controlMappingSources = forall a. Maybe a
Prelude.Nothing,
      $sel:controlSources:Control' :: Maybe Text
controlSources = forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:Control' :: Maybe POSIX
createdAt = forall a. Maybe a
Prelude.Nothing,
      $sel:createdBy:Control' :: Maybe Text
createdBy = forall a. Maybe a
Prelude.Nothing,
      $sel:description:Control' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:id:Control' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedAt:Control' :: Maybe POSIX
lastUpdatedAt = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedBy:Control' :: Maybe Text
lastUpdatedBy = forall a. Maybe a
Prelude.Nothing,
      $sel:name:Control' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:Control' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:testingInformation:Control' :: Maybe Text
testingInformation = forall a. Maybe a
Prelude.Nothing,
      $sel:type':Control' :: Maybe ControlType
type' = forall a. Maybe a
Prelude.Nothing
    }

-- | The recommended actions to carry out if the control isn\'t fulfilled.
control_actionPlanInstructions :: Lens.Lens' Control (Prelude.Maybe Prelude.Text)
control_actionPlanInstructions :: Lens' Control (Maybe Text)
control_actionPlanInstructions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe Text
actionPlanInstructions :: Maybe Text
$sel:actionPlanInstructions:Control' :: Control -> Maybe Text
actionPlanInstructions} -> Maybe Text
actionPlanInstructions) (\s :: Control
s@Control' {} Maybe Text
a -> Control
s {$sel:actionPlanInstructions:Control' :: Maybe Text
actionPlanInstructions = Maybe Text
a} :: Control)

-- | The title of the action plan for remediating the control.
control_actionPlanTitle :: Lens.Lens' Control (Prelude.Maybe Prelude.Text)
control_actionPlanTitle :: Lens' Control (Maybe Text)
control_actionPlanTitle = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe Text
actionPlanTitle :: Maybe Text
$sel:actionPlanTitle:Control' :: Control -> Maybe Text
actionPlanTitle} -> Maybe Text
actionPlanTitle) (\s :: Control
s@Control' {} Maybe Text
a -> Control
s {$sel:actionPlanTitle:Control' :: Maybe Text
actionPlanTitle = Maybe Text
a} :: Control)

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

-- | The data mapping sources for the control.
control_controlMappingSources :: Lens.Lens' Control (Prelude.Maybe (Prelude.NonEmpty ControlMappingSource))
control_controlMappingSources :: Lens' Control (Maybe (NonEmpty ControlMappingSource))
control_controlMappingSources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe (NonEmpty ControlMappingSource)
controlMappingSources :: Maybe (NonEmpty ControlMappingSource)
$sel:controlMappingSources:Control' :: Control -> Maybe (NonEmpty ControlMappingSource)
controlMappingSources} -> Maybe (NonEmpty ControlMappingSource)
controlMappingSources) (\s :: Control
s@Control' {} Maybe (NonEmpty ControlMappingSource)
a -> Control
s {$sel:controlMappingSources:Control' :: Maybe (NonEmpty ControlMappingSource)
controlMappingSources = Maybe (NonEmpty ControlMappingSource)
a} :: Control) 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 data source types that determine where Audit Manager collects
-- evidence from for the control.
control_controlSources :: Lens.Lens' Control (Prelude.Maybe Prelude.Text)
control_controlSources :: Lens' Control (Maybe Text)
control_controlSources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe Text
controlSources :: Maybe Text
$sel:controlSources:Control' :: Control -> Maybe Text
controlSources} -> Maybe Text
controlSources) (\s :: Control
s@Control' {} Maybe Text
a -> Control
s {$sel:controlSources:Control' :: Maybe Text
controlSources = Maybe Text
a} :: Control)

-- | The time when the control was created.
control_createdAt :: Lens.Lens' Control (Prelude.Maybe Prelude.UTCTime)
control_createdAt :: Lens' Control (Maybe UTCTime)
control_createdAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:Control' :: Control -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: Control
s@Control' {} Maybe POSIX
a -> Control
s {$sel:createdAt:Control' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: Control) 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 control.
control_createdBy :: Lens.Lens' Control (Prelude.Maybe Prelude.Text)
control_createdBy :: Lens' Control (Maybe Text)
control_createdBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe Text
createdBy :: Maybe Text
$sel:createdBy:Control' :: Control -> Maybe Text
createdBy} -> Maybe Text
createdBy) (\s :: Control
s@Control' {} Maybe Text
a -> Control
s {$sel:createdBy:Control' :: Maybe Text
createdBy = Maybe Text
a} :: Control)

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

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

-- | The time when the control was most recently updated.
control_lastUpdatedAt :: Lens.Lens' Control (Prelude.Maybe Prelude.UTCTime)
control_lastUpdatedAt :: Lens' Control (Maybe UTCTime)
control_lastUpdatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:Control' :: Control -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: Control
s@Control' {} Maybe POSIX
a -> Control
s {$sel:lastUpdatedAt:Control' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: Control) 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 control.
control_lastUpdatedBy :: Lens.Lens' Control (Prelude.Maybe Prelude.Text)
control_lastUpdatedBy :: Lens' Control (Maybe Text)
control_lastUpdatedBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe Text
lastUpdatedBy :: Maybe Text
$sel:lastUpdatedBy:Control' :: Control -> Maybe Text
lastUpdatedBy} -> Maybe Text
lastUpdatedBy) (\s :: Control
s@Control' {} Maybe Text
a -> Control
s {$sel:lastUpdatedBy:Control' :: Maybe Text
lastUpdatedBy = Maybe Text
a} :: Control)

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

-- | The tags associated with the control.
control_tags :: Lens.Lens' Control (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
control_tags :: Lens' Control (Maybe (HashMap Text Text))
control_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:Control' :: Control -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: Control
s@Control' {} Maybe (HashMap Text Text)
a -> Control
s {$sel:tags:Control' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: Control) 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 steps that you should follow to determine if the control has been
-- satisfied.
control_testingInformation :: Lens.Lens' Control (Prelude.Maybe Prelude.Text)
control_testingInformation :: Lens' Control (Maybe Text)
control_testingInformation = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe Text
testingInformation :: Maybe Text
$sel:testingInformation:Control' :: Control -> Maybe Text
testingInformation} -> Maybe Text
testingInformation) (\s :: Control
s@Control' {} Maybe Text
a -> Control
s {$sel:testingInformation:Control' :: Maybe Text
testingInformation = Maybe Text
a} :: Control)

-- | The type of control, such as a custom control or a standard control.
control_type :: Lens.Lens' Control (Prelude.Maybe ControlType)
control_type :: Lens' Control (Maybe ControlType)
control_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Control' {Maybe ControlType
type' :: Maybe ControlType
$sel:type':Control' :: Control -> Maybe ControlType
type'} -> Maybe ControlType
type') (\s :: Control
s@Control' {} Maybe ControlType
a -> Control
s {$sel:type':Control' :: Maybe ControlType
type' = Maybe ControlType
a} :: Control)

instance Data.FromJSON Control where
  parseJSON :: Value -> Parser Control
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Control"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (NonEmpty ControlMappingSource)
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe ControlType
-> Control
Control'
            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
"actionPlanInstructions")
            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
"actionPlanTitle")
            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
"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
"controlMappingSources")
            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
"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
"testingInformation")
            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 Control where
  hashWithSalt :: Int -> Control -> Int
hashWithSalt Int
_salt Control' {Maybe (NonEmpty ControlMappingSource)
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe ControlType
type' :: Maybe ControlType
testingInformation :: Maybe Text
tags :: Maybe (HashMap Text Text)
name :: Maybe Text
lastUpdatedBy :: Maybe Text
lastUpdatedAt :: Maybe POSIX
id :: Maybe Text
description :: Maybe Text
createdBy :: Maybe Text
createdAt :: Maybe POSIX
controlSources :: Maybe Text
controlMappingSources :: Maybe (NonEmpty ControlMappingSource)
arn :: Maybe Text
actionPlanTitle :: Maybe Text
actionPlanInstructions :: Maybe Text
$sel:type':Control' :: Control -> Maybe ControlType
$sel:testingInformation:Control' :: Control -> Maybe Text
$sel:tags:Control' :: Control -> Maybe (HashMap Text Text)
$sel:name:Control' :: Control -> Maybe Text
$sel:lastUpdatedBy:Control' :: Control -> Maybe Text
$sel:lastUpdatedAt:Control' :: Control -> Maybe POSIX
$sel:id:Control' :: Control -> Maybe Text
$sel:description:Control' :: Control -> Maybe Text
$sel:createdBy:Control' :: Control -> Maybe Text
$sel:createdAt:Control' :: Control -> Maybe POSIX
$sel:controlSources:Control' :: Control -> Maybe Text
$sel:controlMappingSources:Control' :: Control -> Maybe (NonEmpty ControlMappingSource)
$sel:arn:Control' :: Control -> Maybe Text
$sel:actionPlanTitle:Control' :: Control -> Maybe Text
$sel:actionPlanInstructions:Control' :: Control -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
actionPlanInstructions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
actionPlanTitle
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty ControlMappingSource)
controlMappingSources
      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
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 Text
testingInformation
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ControlType
type'

instance Prelude.NFData Control where
  rnf :: Control -> ()
rnf Control' {Maybe (NonEmpty ControlMappingSource)
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe ControlType
type' :: Maybe ControlType
testingInformation :: Maybe Text
tags :: Maybe (HashMap Text Text)
name :: Maybe Text
lastUpdatedBy :: Maybe Text
lastUpdatedAt :: Maybe POSIX
id :: Maybe Text
description :: Maybe Text
createdBy :: Maybe Text
createdAt :: Maybe POSIX
controlSources :: Maybe Text
controlMappingSources :: Maybe (NonEmpty ControlMappingSource)
arn :: Maybe Text
actionPlanTitle :: Maybe Text
actionPlanInstructions :: Maybe Text
$sel:type':Control' :: Control -> Maybe ControlType
$sel:testingInformation:Control' :: Control -> Maybe Text
$sel:tags:Control' :: Control -> Maybe (HashMap Text Text)
$sel:name:Control' :: Control -> Maybe Text
$sel:lastUpdatedBy:Control' :: Control -> Maybe Text
$sel:lastUpdatedAt:Control' :: Control -> Maybe POSIX
$sel:id:Control' :: Control -> Maybe Text
$sel:description:Control' :: Control -> Maybe Text
$sel:createdBy:Control' :: Control -> Maybe Text
$sel:createdAt:Control' :: Control -> Maybe POSIX
$sel:controlSources:Control' :: Control -> Maybe Text
$sel:controlMappingSources:Control' :: Control -> Maybe (NonEmpty ControlMappingSource)
$sel:arn:Control' :: Control -> Maybe Text
$sel:actionPlanTitle:Control' :: Control -> Maybe Text
$sel:actionPlanInstructions:Control' :: Control -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
actionPlanInstructions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
actionPlanTitle
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 (NonEmpty ControlMappingSource)
controlMappingSources
      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
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 Text
testingInformation
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ControlType
type'