{-# 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.SecurityHub.Types.AwsDynamoDbTableSseDescription where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AwsDynamoDbTableSseDescription = AwsDynamoDbTableSseDescription'
{
AwsDynamoDbTableSseDescription -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
AwsDynamoDbTableSseDescription -> Maybe Text
inaccessibleEncryptionDateTime :: Prelude.Maybe Prelude.Text,
AwsDynamoDbTableSseDescription -> Maybe Text
sseType :: Prelude.Maybe Prelude.Text,
AwsDynamoDbTableSseDescription -> Maybe Text
kmsMasterKeyArn :: Prelude.Maybe Prelude.Text
}
deriving (AwsDynamoDbTableSseDescription
-> AwsDynamoDbTableSseDescription -> Bool
(AwsDynamoDbTableSseDescription
-> AwsDynamoDbTableSseDescription -> Bool)
-> (AwsDynamoDbTableSseDescription
-> AwsDynamoDbTableSseDescription -> Bool)
-> Eq AwsDynamoDbTableSseDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsDynamoDbTableSseDescription
-> AwsDynamoDbTableSseDescription -> Bool
$c/= :: AwsDynamoDbTableSseDescription
-> AwsDynamoDbTableSseDescription -> Bool
== :: AwsDynamoDbTableSseDescription
-> AwsDynamoDbTableSseDescription -> Bool
$c== :: AwsDynamoDbTableSseDescription
-> AwsDynamoDbTableSseDescription -> Bool
Prelude.Eq, ReadPrec [AwsDynamoDbTableSseDescription]
ReadPrec AwsDynamoDbTableSseDescription
Int -> ReadS AwsDynamoDbTableSseDescription
ReadS [AwsDynamoDbTableSseDescription]
(Int -> ReadS AwsDynamoDbTableSseDescription)
-> ReadS [AwsDynamoDbTableSseDescription]
-> ReadPrec AwsDynamoDbTableSseDescription
-> ReadPrec [AwsDynamoDbTableSseDescription]
-> Read AwsDynamoDbTableSseDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsDynamoDbTableSseDescription]
$creadListPrec :: ReadPrec [AwsDynamoDbTableSseDescription]
readPrec :: ReadPrec AwsDynamoDbTableSseDescription
$creadPrec :: ReadPrec AwsDynamoDbTableSseDescription
readList :: ReadS [AwsDynamoDbTableSseDescription]
$creadList :: ReadS [AwsDynamoDbTableSseDescription]
readsPrec :: Int -> ReadS AwsDynamoDbTableSseDescription
$creadsPrec :: Int -> ReadS AwsDynamoDbTableSseDescription
Prelude.Read, Int -> AwsDynamoDbTableSseDescription -> ShowS
[AwsDynamoDbTableSseDescription] -> ShowS
AwsDynamoDbTableSseDescription -> String
(Int -> AwsDynamoDbTableSseDescription -> ShowS)
-> (AwsDynamoDbTableSseDescription -> String)
-> ([AwsDynamoDbTableSseDescription] -> ShowS)
-> Show AwsDynamoDbTableSseDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsDynamoDbTableSseDescription] -> ShowS
$cshowList :: [AwsDynamoDbTableSseDescription] -> ShowS
show :: AwsDynamoDbTableSseDescription -> String
$cshow :: AwsDynamoDbTableSseDescription -> String
showsPrec :: Int -> AwsDynamoDbTableSseDescription -> ShowS
$cshowsPrec :: Int -> AwsDynamoDbTableSseDescription -> ShowS
Prelude.Show, (forall x.
AwsDynamoDbTableSseDescription
-> Rep AwsDynamoDbTableSseDescription x)
-> (forall x.
Rep AwsDynamoDbTableSseDescription x
-> AwsDynamoDbTableSseDescription)
-> Generic AwsDynamoDbTableSseDescription
forall x.
Rep AwsDynamoDbTableSseDescription x
-> AwsDynamoDbTableSseDescription
forall x.
AwsDynamoDbTableSseDescription
-> Rep AwsDynamoDbTableSseDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsDynamoDbTableSseDescription x
-> AwsDynamoDbTableSseDescription
$cfrom :: forall x.
AwsDynamoDbTableSseDescription
-> Rep AwsDynamoDbTableSseDescription x
Prelude.Generic)
newAwsDynamoDbTableSseDescription ::
AwsDynamoDbTableSseDescription
newAwsDynamoDbTableSseDescription :: AwsDynamoDbTableSseDescription
newAwsDynamoDbTableSseDescription =
AwsDynamoDbTableSseDescription' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsDynamoDbTableSseDescription
AwsDynamoDbTableSseDescription'
{ $sel:status:AwsDynamoDbTableSseDescription' :: Maybe Text
status =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:inaccessibleEncryptionDateTime:AwsDynamoDbTableSseDescription' :: Maybe Text
inaccessibleEncryptionDateTime =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sseType:AwsDynamoDbTableSseDescription' :: Maybe Text
sseType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsMasterKeyArn:AwsDynamoDbTableSseDescription' :: Maybe Text
kmsMasterKeyArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
awsDynamoDbTableSseDescription_status :: Lens.Lens' AwsDynamoDbTableSseDescription (Prelude.Maybe Prelude.Text)
awsDynamoDbTableSseDescription_status :: (Maybe Text -> f (Maybe Text))
-> AwsDynamoDbTableSseDescription
-> f AwsDynamoDbTableSseDescription
awsDynamoDbTableSseDescription_status = (AwsDynamoDbTableSseDescription -> Maybe Text)
-> (AwsDynamoDbTableSseDescription
-> Maybe Text -> AwsDynamoDbTableSseDescription)
-> Lens
AwsDynamoDbTableSseDescription
AwsDynamoDbTableSseDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsDynamoDbTableSseDescription' {Maybe Text
status :: Maybe Text
$sel:status:AwsDynamoDbTableSseDescription' :: AwsDynamoDbTableSseDescription -> Maybe Text
status} -> Maybe Text
status) (\s :: AwsDynamoDbTableSseDescription
s@AwsDynamoDbTableSseDescription' {} Maybe Text
a -> AwsDynamoDbTableSseDescription
s {$sel:status:AwsDynamoDbTableSseDescription' :: Maybe Text
status = Maybe Text
a} :: AwsDynamoDbTableSseDescription)
awsDynamoDbTableSseDescription_inaccessibleEncryptionDateTime :: Lens.Lens' AwsDynamoDbTableSseDescription (Prelude.Maybe Prelude.Text)
awsDynamoDbTableSseDescription_inaccessibleEncryptionDateTime :: (Maybe Text -> f (Maybe Text))
-> AwsDynamoDbTableSseDescription
-> f AwsDynamoDbTableSseDescription
awsDynamoDbTableSseDescription_inaccessibleEncryptionDateTime = (AwsDynamoDbTableSseDescription -> Maybe Text)
-> (AwsDynamoDbTableSseDescription
-> Maybe Text -> AwsDynamoDbTableSseDescription)
-> Lens
AwsDynamoDbTableSseDescription
AwsDynamoDbTableSseDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsDynamoDbTableSseDescription' {Maybe Text
inaccessibleEncryptionDateTime :: Maybe Text
$sel:inaccessibleEncryptionDateTime:AwsDynamoDbTableSseDescription' :: AwsDynamoDbTableSseDescription -> Maybe Text
inaccessibleEncryptionDateTime} -> Maybe Text
inaccessibleEncryptionDateTime) (\s :: AwsDynamoDbTableSseDescription
s@AwsDynamoDbTableSseDescription' {} Maybe Text
a -> AwsDynamoDbTableSseDescription
s {$sel:inaccessibleEncryptionDateTime:AwsDynamoDbTableSseDescription' :: Maybe Text
inaccessibleEncryptionDateTime = Maybe Text
a} :: AwsDynamoDbTableSseDescription)
awsDynamoDbTableSseDescription_sseType :: Lens.Lens' AwsDynamoDbTableSseDescription (Prelude.Maybe Prelude.Text)
awsDynamoDbTableSseDescription_sseType :: (Maybe Text -> f (Maybe Text))
-> AwsDynamoDbTableSseDescription
-> f AwsDynamoDbTableSseDescription
awsDynamoDbTableSseDescription_sseType = (AwsDynamoDbTableSseDescription -> Maybe Text)
-> (AwsDynamoDbTableSseDescription
-> Maybe Text -> AwsDynamoDbTableSseDescription)
-> Lens
AwsDynamoDbTableSseDescription
AwsDynamoDbTableSseDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsDynamoDbTableSseDescription' {Maybe Text
sseType :: Maybe Text
$sel:sseType:AwsDynamoDbTableSseDescription' :: AwsDynamoDbTableSseDescription -> Maybe Text
sseType} -> Maybe Text
sseType) (\s :: AwsDynamoDbTableSseDescription
s@AwsDynamoDbTableSseDescription' {} Maybe Text
a -> AwsDynamoDbTableSseDescription
s {$sel:sseType:AwsDynamoDbTableSseDescription' :: Maybe Text
sseType = Maybe Text
a} :: AwsDynamoDbTableSseDescription)
awsDynamoDbTableSseDescription_kmsMasterKeyArn :: Lens.Lens' AwsDynamoDbTableSseDescription (Prelude.Maybe Prelude.Text)
awsDynamoDbTableSseDescription_kmsMasterKeyArn :: (Maybe Text -> f (Maybe Text))
-> AwsDynamoDbTableSseDescription
-> f AwsDynamoDbTableSseDescription
awsDynamoDbTableSseDescription_kmsMasterKeyArn = (AwsDynamoDbTableSseDescription -> Maybe Text)
-> (AwsDynamoDbTableSseDescription
-> Maybe Text -> AwsDynamoDbTableSseDescription)
-> Lens
AwsDynamoDbTableSseDescription
AwsDynamoDbTableSseDescription
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsDynamoDbTableSseDescription' {Maybe Text
kmsMasterKeyArn :: Maybe Text
$sel:kmsMasterKeyArn:AwsDynamoDbTableSseDescription' :: AwsDynamoDbTableSseDescription -> Maybe Text
kmsMasterKeyArn} -> Maybe Text
kmsMasterKeyArn) (\s :: AwsDynamoDbTableSseDescription
s@AwsDynamoDbTableSseDescription' {} Maybe Text
a -> AwsDynamoDbTableSseDescription
s {$sel:kmsMasterKeyArn:AwsDynamoDbTableSseDescription' :: Maybe Text
kmsMasterKeyArn = Maybe Text
a} :: AwsDynamoDbTableSseDescription)
instance Core.FromJSON AwsDynamoDbTableSseDescription where
parseJSON :: Value -> Parser AwsDynamoDbTableSseDescription
parseJSON =
String
-> (Object -> Parser AwsDynamoDbTableSseDescription)
-> Value
-> Parser AwsDynamoDbTableSseDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsDynamoDbTableSseDescription"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsDynamoDbTableSseDescription
AwsDynamoDbTableSseDescription'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsDynamoDbTableSseDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> AwsDynamoDbTableSseDescription)
forall (f :: * -> *) a b. Functor 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
"Status")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> AwsDynamoDbTableSseDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe Text -> AwsDynamoDbTableSseDescription)
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
"InaccessibleEncryptionDateTime")
Parser (Maybe Text -> Maybe Text -> AwsDynamoDbTableSseDescription)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> AwsDynamoDbTableSseDescription)
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
"SseType")
Parser (Maybe Text -> AwsDynamoDbTableSseDescription)
-> Parser (Maybe Text) -> Parser AwsDynamoDbTableSseDescription
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
"KmsMasterKeyArn")
)
instance
Prelude.Hashable
AwsDynamoDbTableSseDescription
instance
Prelude.NFData
AwsDynamoDbTableSseDescription
instance Core.ToJSON AwsDynamoDbTableSseDescription where
toJSON :: AwsDynamoDbTableSseDescription -> Value
toJSON AwsDynamoDbTableSseDescription' {Maybe Text
kmsMasterKeyArn :: Maybe Text
sseType :: Maybe Text
inaccessibleEncryptionDateTime :: Maybe Text
status :: Maybe Text
$sel:kmsMasterKeyArn:AwsDynamoDbTableSseDescription' :: AwsDynamoDbTableSseDescription -> Maybe Text
$sel:sseType:AwsDynamoDbTableSseDescription' :: AwsDynamoDbTableSseDescription -> Maybe Text
$sel:inaccessibleEncryptionDateTime:AwsDynamoDbTableSseDescription' :: AwsDynamoDbTableSseDescription -> Maybe Text
$sel:status:AwsDynamoDbTableSseDescription' :: AwsDynamoDbTableSseDescription -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Status" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
status,
(Text
"InaccessibleEncryptionDateTime" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
inaccessibleEncryptionDateTime,
(Text
"SseType" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
sseType,
(Text
"KmsMasterKeyArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
kmsMasterKeyArn
]
)