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

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

-- | Represents a share request for a custom framework in Audit Manager.
--
-- /See:/ 'newAssessmentFrameworkShareRequest' smart constructor.
data AssessmentFrameworkShareRequest = AssessmentFrameworkShareRequest'
  { -- | An optional comment from the sender about the share request.
    AssessmentFrameworkShareRequest -> Maybe Text
comment :: Prelude.Maybe Prelude.Text,
    -- | The compliance type that the shared custom framework supports, such as
    -- CIS or HIPAA.
    AssessmentFrameworkShareRequest -> Maybe Text
complianceType :: Prelude.Maybe Prelude.Text,
    -- | The time when the share request was created.
    AssessmentFrameworkShareRequest -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The number of custom controls that are part of the shared custom
    -- framework.
    AssessmentFrameworkShareRequest -> Maybe Int
customControlsCount :: Prelude.Maybe Prelude.Int,
    -- | The Amazon Web Services account of the recipient.
    AssessmentFrameworkShareRequest -> Maybe Text
destinationAccount :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Web Services Region of the recipient.
    AssessmentFrameworkShareRequest -> Maybe Text
destinationRegion :: Prelude.Maybe Prelude.Text,
    -- | The time when the share request expires.
    AssessmentFrameworkShareRequest -> Maybe POSIX
expirationTime :: Prelude.Maybe Data.POSIX,
    -- | The description of the shared custom framework.
    AssessmentFrameworkShareRequest -> Maybe Text
frameworkDescription :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for the shared custom framework.
    AssessmentFrameworkShareRequest -> Maybe Text
frameworkId :: Prelude.Maybe Prelude.Text,
    -- | The name of the custom framework that the share request is for.
    AssessmentFrameworkShareRequest -> Maybe Text
frameworkName :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for the share request.
    AssessmentFrameworkShareRequest -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | Specifies when the share request was last updated.
    AssessmentFrameworkShareRequest -> Maybe POSIX
lastUpdated :: Prelude.Maybe Data.POSIX,
    -- | The Amazon Web Services account of the sender.
    AssessmentFrameworkShareRequest -> Maybe Text
sourceAccount :: Prelude.Maybe Prelude.Text,
    -- | The number of standard controls that are part of the shared custom
    -- framework.
    AssessmentFrameworkShareRequest -> Maybe Int
standardControlsCount :: Prelude.Maybe Prelude.Int,
    -- | The status of the share request.
    AssessmentFrameworkShareRequest -> Maybe ShareRequestStatus
status :: Prelude.Maybe ShareRequestStatus
  }
  deriving (AssessmentFrameworkShareRequest
-> AssessmentFrameworkShareRequest -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AssessmentFrameworkShareRequest
-> AssessmentFrameworkShareRequest -> Bool
$c/= :: AssessmentFrameworkShareRequest
-> AssessmentFrameworkShareRequest -> Bool
== :: AssessmentFrameworkShareRequest
-> AssessmentFrameworkShareRequest -> Bool
$c== :: AssessmentFrameworkShareRequest
-> AssessmentFrameworkShareRequest -> Bool
Prelude.Eq, ReadPrec [AssessmentFrameworkShareRequest]
ReadPrec AssessmentFrameworkShareRequest
Int -> ReadS AssessmentFrameworkShareRequest
ReadS [AssessmentFrameworkShareRequest]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AssessmentFrameworkShareRequest]
$creadListPrec :: ReadPrec [AssessmentFrameworkShareRequest]
readPrec :: ReadPrec AssessmentFrameworkShareRequest
$creadPrec :: ReadPrec AssessmentFrameworkShareRequest
readList :: ReadS [AssessmentFrameworkShareRequest]
$creadList :: ReadS [AssessmentFrameworkShareRequest]
readsPrec :: Int -> ReadS AssessmentFrameworkShareRequest
$creadsPrec :: Int -> ReadS AssessmentFrameworkShareRequest
Prelude.Read, Int -> AssessmentFrameworkShareRequest -> ShowS
[AssessmentFrameworkShareRequest] -> ShowS
AssessmentFrameworkShareRequest -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AssessmentFrameworkShareRequest] -> ShowS
$cshowList :: [AssessmentFrameworkShareRequest] -> ShowS
show :: AssessmentFrameworkShareRequest -> String
$cshow :: AssessmentFrameworkShareRequest -> String
showsPrec :: Int -> AssessmentFrameworkShareRequest -> ShowS
$cshowsPrec :: Int -> AssessmentFrameworkShareRequest -> ShowS
Prelude.Show, forall x.
Rep AssessmentFrameworkShareRequest x
-> AssessmentFrameworkShareRequest
forall x.
AssessmentFrameworkShareRequest
-> Rep AssessmentFrameworkShareRequest x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AssessmentFrameworkShareRequest x
-> AssessmentFrameworkShareRequest
$cfrom :: forall x.
AssessmentFrameworkShareRequest
-> Rep AssessmentFrameworkShareRequest x
Prelude.Generic)

-- |
-- Create a value of 'AssessmentFrameworkShareRequest' 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:
--
-- 'comment', 'assessmentFrameworkShareRequest_comment' - An optional comment from the sender about the share request.
--
-- 'complianceType', 'assessmentFrameworkShareRequest_complianceType' - The compliance type that the shared custom framework supports, such as
-- CIS or HIPAA.
--
-- 'creationTime', 'assessmentFrameworkShareRequest_creationTime' - The time when the share request was created.
--
-- 'customControlsCount', 'assessmentFrameworkShareRequest_customControlsCount' - The number of custom controls that are part of the shared custom
-- framework.
--
-- 'destinationAccount', 'assessmentFrameworkShareRequest_destinationAccount' - The Amazon Web Services account of the recipient.
--
-- 'destinationRegion', 'assessmentFrameworkShareRequest_destinationRegion' - The Amazon Web Services Region of the recipient.
--
-- 'expirationTime', 'assessmentFrameworkShareRequest_expirationTime' - The time when the share request expires.
--
-- 'frameworkDescription', 'assessmentFrameworkShareRequest_frameworkDescription' - The description of the shared custom framework.
--
-- 'frameworkId', 'assessmentFrameworkShareRequest_frameworkId' - The unique identifier for the shared custom framework.
--
-- 'frameworkName', 'assessmentFrameworkShareRequest_frameworkName' - The name of the custom framework that the share request is for.
--
-- 'id', 'assessmentFrameworkShareRequest_id' - The unique identifier for the share request.
--
-- 'lastUpdated', 'assessmentFrameworkShareRequest_lastUpdated' - Specifies when the share request was last updated.
--
-- 'sourceAccount', 'assessmentFrameworkShareRequest_sourceAccount' - The Amazon Web Services account of the sender.
--
-- 'standardControlsCount', 'assessmentFrameworkShareRequest_standardControlsCount' - The number of standard controls that are part of the shared custom
-- framework.
--
-- 'status', 'assessmentFrameworkShareRequest_status' - The status of the share request.
newAssessmentFrameworkShareRequest ::
  AssessmentFrameworkShareRequest
newAssessmentFrameworkShareRequest :: AssessmentFrameworkShareRequest
newAssessmentFrameworkShareRequest =
  AssessmentFrameworkShareRequest'
    { $sel:comment:AssessmentFrameworkShareRequest' :: Maybe Text
comment =
        forall a. Maybe a
Prelude.Nothing,
      $sel:complianceType:AssessmentFrameworkShareRequest' :: Maybe Text
complianceType = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:AssessmentFrameworkShareRequest' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:customControlsCount:AssessmentFrameworkShareRequest' :: Maybe Int
customControlsCount = forall a. Maybe a
Prelude.Nothing,
      $sel:destinationAccount:AssessmentFrameworkShareRequest' :: Maybe Text
destinationAccount = forall a. Maybe a
Prelude.Nothing,
      $sel:destinationRegion:AssessmentFrameworkShareRequest' :: Maybe Text
destinationRegion = forall a. Maybe a
Prelude.Nothing,
      $sel:expirationTime:AssessmentFrameworkShareRequest' :: Maybe POSIX
expirationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:frameworkDescription:AssessmentFrameworkShareRequest' :: Maybe Text
frameworkDescription = forall a. Maybe a
Prelude.Nothing,
      $sel:frameworkId:AssessmentFrameworkShareRequest' :: Maybe Text
frameworkId = forall a. Maybe a
Prelude.Nothing,
      $sel:frameworkName:AssessmentFrameworkShareRequest' :: Maybe Text
frameworkName = forall a. Maybe a
Prelude.Nothing,
      $sel:id:AssessmentFrameworkShareRequest' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdated:AssessmentFrameworkShareRequest' :: Maybe POSIX
lastUpdated = forall a. Maybe a
Prelude.Nothing,
      $sel:sourceAccount:AssessmentFrameworkShareRequest' :: Maybe Text
sourceAccount = forall a. Maybe a
Prelude.Nothing,
      $sel:standardControlsCount:AssessmentFrameworkShareRequest' :: Maybe Int
standardControlsCount = forall a. Maybe a
Prelude.Nothing,
      $sel:status:AssessmentFrameworkShareRequest' :: Maybe ShareRequestStatus
status = forall a. Maybe a
Prelude.Nothing
    }

-- | An optional comment from the sender about the share request.
assessmentFrameworkShareRequest_comment :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.Text)
assessmentFrameworkShareRequest_comment :: Lens' AssessmentFrameworkShareRequest (Maybe Text)
assessmentFrameworkShareRequest_comment = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe Text
comment :: Maybe Text
$sel:comment:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
comment} -> Maybe Text
comment) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe Text
a -> AssessmentFrameworkShareRequest
s {$sel:comment:AssessmentFrameworkShareRequest' :: Maybe Text
comment = Maybe Text
a} :: AssessmentFrameworkShareRequest)

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

-- | The time when the share request was created.
assessmentFrameworkShareRequest_creationTime :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.UTCTime)
assessmentFrameworkShareRequest_creationTime :: Lens' AssessmentFrameworkShareRequest (Maybe UTCTime)
assessmentFrameworkShareRequest_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe POSIX
a -> AssessmentFrameworkShareRequest
s {$sel:creationTime:AssessmentFrameworkShareRequest' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: AssessmentFrameworkShareRequest) 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 number of custom controls that are part of the shared custom
-- framework.
assessmentFrameworkShareRequest_customControlsCount :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.Int)
assessmentFrameworkShareRequest_customControlsCount :: Lens' AssessmentFrameworkShareRequest (Maybe Int)
assessmentFrameworkShareRequest_customControlsCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe Int
customControlsCount :: Maybe Int
$sel:customControlsCount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Int
customControlsCount} -> Maybe Int
customControlsCount) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe Int
a -> AssessmentFrameworkShareRequest
s {$sel:customControlsCount:AssessmentFrameworkShareRequest' :: Maybe Int
customControlsCount = Maybe Int
a} :: AssessmentFrameworkShareRequest)

-- | The Amazon Web Services account of the recipient.
assessmentFrameworkShareRequest_destinationAccount :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.Text)
assessmentFrameworkShareRequest_destinationAccount :: Lens' AssessmentFrameworkShareRequest (Maybe Text)
assessmentFrameworkShareRequest_destinationAccount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe Text
destinationAccount :: Maybe Text
$sel:destinationAccount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
destinationAccount} -> Maybe Text
destinationAccount) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe Text
a -> AssessmentFrameworkShareRequest
s {$sel:destinationAccount:AssessmentFrameworkShareRequest' :: Maybe Text
destinationAccount = Maybe Text
a} :: AssessmentFrameworkShareRequest)

-- | The Amazon Web Services Region of the recipient.
assessmentFrameworkShareRequest_destinationRegion :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.Text)
assessmentFrameworkShareRequest_destinationRegion :: Lens' AssessmentFrameworkShareRequest (Maybe Text)
assessmentFrameworkShareRequest_destinationRegion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe Text
destinationRegion :: Maybe Text
$sel:destinationRegion:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
destinationRegion} -> Maybe Text
destinationRegion) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe Text
a -> AssessmentFrameworkShareRequest
s {$sel:destinationRegion:AssessmentFrameworkShareRequest' :: Maybe Text
destinationRegion = Maybe Text
a} :: AssessmentFrameworkShareRequest)

-- | The time when the share request expires.
assessmentFrameworkShareRequest_expirationTime :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.UTCTime)
assessmentFrameworkShareRequest_expirationTime :: Lens' AssessmentFrameworkShareRequest (Maybe UTCTime)
assessmentFrameworkShareRequest_expirationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe POSIX
expirationTime :: Maybe POSIX
$sel:expirationTime:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe POSIX
expirationTime} -> Maybe POSIX
expirationTime) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe POSIX
a -> AssessmentFrameworkShareRequest
s {$sel:expirationTime:AssessmentFrameworkShareRequest' :: Maybe POSIX
expirationTime = Maybe POSIX
a} :: AssessmentFrameworkShareRequest) 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 description of the shared custom framework.
assessmentFrameworkShareRequest_frameworkDescription :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.Text)
assessmentFrameworkShareRequest_frameworkDescription :: Lens' AssessmentFrameworkShareRequest (Maybe Text)
assessmentFrameworkShareRequest_frameworkDescription = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe Text
frameworkDescription :: Maybe Text
$sel:frameworkDescription:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
frameworkDescription} -> Maybe Text
frameworkDescription) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe Text
a -> AssessmentFrameworkShareRequest
s {$sel:frameworkDescription:AssessmentFrameworkShareRequest' :: Maybe Text
frameworkDescription = Maybe Text
a} :: AssessmentFrameworkShareRequest)

-- | The unique identifier for the shared custom framework.
assessmentFrameworkShareRequest_frameworkId :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.Text)
assessmentFrameworkShareRequest_frameworkId :: Lens' AssessmentFrameworkShareRequest (Maybe Text)
assessmentFrameworkShareRequest_frameworkId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe Text
frameworkId :: Maybe Text
$sel:frameworkId:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
frameworkId} -> Maybe Text
frameworkId) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe Text
a -> AssessmentFrameworkShareRequest
s {$sel:frameworkId:AssessmentFrameworkShareRequest' :: Maybe Text
frameworkId = Maybe Text
a} :: AssessmentFrameworkShareRequest)

-- | The name of the custom framework that the share request is for.
assessmentFrameworkShareRequest_frameworkName :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.Text)
assessmentFrameworkShareRequest_frameworkName :: Lens' AssessmentFrameworkShareRequest (Maybe Text)
assessmentFrameworkShareRequest_frameworkName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe Text
frameworkName :: Maybe Text
$sel:frameworkName:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
frameworkName} -> Maybe Text
frameworkName) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe Text
a -> AssessmentFrameworkShareRequest
s {$sel:frameworkName:AssessmentFrameworkShareRequest' :: Maybe Text
frameworkName = Maybe Text
a} :: AssessmentFrameworkShareRequest)

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

-- | Specifies when the share request was last updated.
assessmentFrameworkShareRequest_lastUpdated :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.UTCTime)
assessmentFrameworkShareRequest_lastUpdated :: Lens' AssessmentFrameworkShareRequest (Maybe UTCTime)
assessmentFrameworkShareRequest_lastUpdated = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe POSIX
lastUpdated :: Maybe POSIX
$sel:lastUpdated:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe POSIX
lastUpdated} -> Maybe POSIX
lastUpdated) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe POSIX
a -> AssessmentFrameworkShareRequest
s {$sel:lastUpdated:AssessmentFrameworkShareRequest' :: Maybe POSIX
lastUpdated = Maybe POSIX
a} :: AssessmentFrameworkShareRequest) 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 Amazon Web Services account of the sender.
assessmentFrameworkShareRequest_sourceAccount :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.Text)
assessmentFrameworkShareRequest_sourceAccount :: Lens' AssessmentFrameworkShareRequest (Maybe Text)
assessmentFrameworkShareRequest_sourceAccount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe Text
sourceAccount :: Maybe Text
$sel:sourceAccount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
sourceAccount} -> Maybe Text
sourceAccount) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe Text
a -> AssessmentFrameworkShareRequest
s {$sel:sourceAccount:AssessmentFrameworkShareRequest' :: Maybe Text
sourceAccount = Maybe Text
a} :: AssessmentFrameworkShareRequest)

-- | The number of standard controls that are part of the shared custom
-- framework.
assessmentFrameworkShareRequest_standardControlsCount :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe Prelude.Int)
assessmentFrameworkShareRequest_standardControlsCount :: Lens' AssessmentFrameworkShareRequest (Maybe Int)
assessmentFrameworkShareRequest_standardControlsCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe Int
standardControlsCount :: Maybe Int
$sel:standardControlsCount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Int
standardControlsCount} -> Maybe Int
standardControlsCount) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe Int
a -> AssessmentFrameworkShareRequest
s {$sel:standardControlsCount:AssessmentFrameworkShareRequest' :: Maybe Int
standardControlsCount = Maybe Int
a} :: AssessmentFrameworkShareRequest)

-- | The status of the share request.
assessmentFrameworkShareRequest_status :: Lens.Lens' AssessmentFrameworkShareRequest (Prelude.Maybe ShareRequestStatus)
assessmentFrameworkShareRequest_status :: Lens' AssessmentFrameworkShareRequest (Maybe ShareRequestStatus)
assessmentFrameworkShareRequest_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AssessmentFrameworkShareRequest' {Maybe ShareRequestStatus
status :: Maybe ShareRequestStatus
$sel:status:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe ShareRequestStatus
status} -> Maybe ShareRequestStatus
status) (\s :: AssessmentFrameworkShareRequest
s@AssessmentFrameworkShareRequest' {} Maybe ShareRequestStatus
a -> AssessmentFrameworkShareRequest
s {$sel:status:AssessmentFrameworkShareRequest' :: Maybe ShareRequestStatus
status = Maybe ShareRequestStatus
a} :: AssessmentFrameworkShareRequest)

instance
  Data.FromJSON
    AssessmentFrameworkShareRequest
  where
  parseJSON :: Value -> Parser AssessmentFrameworkShareRequest
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"AssessmentFrameworkShareRequest"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe ShareRequestStatus
-> AssessmentFrameworkShareRequest
AssessmentFrameworkShareRequest'
            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
"comment")
            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
"creationTime")
            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
"customControlsCount")
            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
"destinationAccount")
            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
"destinationRegion")
            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
"expirationTime")
            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
"frameworkDescription")
            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
"frameworkId")
            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
"frameworkName")
            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
"lastUpdated")
            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
"sourceAccount")
            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
"standardControlsCount")
            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
"status")
      )

instance
  Prelude.Hashable
    AssessmentFrameworkShareRequest
  where
  hashWithSalt :: Int -> AssessmentFrameworkShareRequest -> Int
hashWithSalt
    Int
_salt
    AssessmentFrameworkShareRequest' {Maybe Int
Maybe Text
Maybe POSIX
Maybe ShareRequestStatus
status :: Maybe ShareRequestStatus
standardControlsCount :: Maybe Int
sourceAccount :: Maybe Text
lastUpdated :: Maybe POSIX
id :: Maybe Text
frameworkName :: Maybe Text
frameworkId :: Maybe Text
frameworkDescription :: Maybe Text
expirationTime :: Maybe POSIX
destinationRegion :: Maybe Text
destinationAccount :: Maybe Text
customControlsCount :: Maybe Int
creationTime :: Maybe POSIX
complianceType :: Maybe Text
comment :: Maybe Text
$sel:status:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe ShareRequestStatus
$sel:standardControlsCount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Int
$sel:sourceAccount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:lastUpdated:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe POSIX
$sel:id:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:frameworkName:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:frameworkId:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:frameworkDescription:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:expirationTime:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe POSIX
$sel:destinationRegion:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:destinationAccount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:customControlsCount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Int
$sel:creationTime:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe POSIX
$sel:complianceType:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:comment:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
comment
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
complianceType
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
customControlsCount
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
destinationAccount
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
destinationRegion
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
expirationTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
frameworkDescription
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
frameworkId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
frameworkName
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdated
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sourceAccount
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
standardControlsCount
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ShareRequestStatus
status

instance
  Prelude.NFData
    AssessmentFrameworkShareRequest
  where
  rnf :: AssessmentFrameworkShareRequest -> ()
rnf AssessmentFrameworkShareRequest' {Maybe Int
Maybe Text
Maybe POSIX
Maybe ShareRequestStatus
status :: Maybe ShareRequestStatus
standardControlsCount :: Maybe Int
sourceAccount :: Maybe Text
lastUpdated :: Maybe POSIX
id :: Maybe Text
frameworkName :: Maybe Text
frameworkId :: Maybe Text
frameworkDescription :: Maybe Text
expirationTime :: Maybe POSIX
destinationRegion :: Maybe Text
destinationAccount :: Maybe Text
customControlsCount :: Maybe Int
creationTime :: Maybe POSIX
complianceType :: Maybe Text
comment :: Maybe Text
$sel:status:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe ShareRequestStatus
$sel:standardControlsCount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Int
$sel:sourceAccount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:lastUpdated:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe POSIX
$sel:id:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:frameworkName:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:frameworkId:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:frameworkDescription:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:expirationTime:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe POSIX
$sel:destinationRegion:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:destinationAccount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:customControlsCount:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Int
$sel:creationTime:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe POSIX
$sel:complianceType:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
$sel:comment:AssessmentFrameworkShareRequest' :: AssessmentFrameworkShareRequest -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
comment
      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 POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
customControlsCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
destinationAccount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
destinationRegion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
expirationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
frameworkDescription
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
frameworkId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
frameworkName
      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
lastUpdated
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceAccount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
standardControlsCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ShareRequestStatus
status