module Stratosphere.S3.Bucket.JournalTableConfigurationProperty (
module Exports, JournalTableConfigurationProperty(..),
mkJournalTableConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.S3.Bucket.MetadataTableEncryptionConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.S3.Bucket.RecordExpirationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data JournalTableConfigurationProperty
=
JournalTableConfigurationProperty {JournalTableConfigurationProperty -> ()
haddock_workaround_ :: (),
JournalTableConfigurationProperty
-> Maybe MetadataTableEncryptionConfigurationProperty
encryptionConfiguration :: (Prelude.Maybe MetadataTableEncryptionConfigurationProperty),
JournalTableConfigurationProperty -> RecordExpirationProperty
recordExpiration :: RecordExpirationProperty,
JournalTableConfigurationProperty -> Maybe (Value Text)
tableArn :: (Prelude.Maybe (Value Prelude.Text)),
JournalTableConfigurationProperty -> Maybe (Value Text)
tableName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (JournalTableConfigurationProperty
-> JournalTableConfigurationProperty -> Bool
(JournalTableConfigurationProperty
-> JournalTableConfigurationProperty -> Bool)
-> (JournalTableConfigurationProperty
-> JournalTableConfigurationProperty -> Bool)
-> Eq JournalTableConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: JournalTableConfigurationProperty
-> JournalTableConfigurationProperty -> Bool
== :: JournalTableConfigurationProperty
-> JournalTableConfigurationProperty -> Bool
$c/= :: JournalTableConfigurationProperty
-> JournalTableConfigurationProperty -> Bool
/= :: JournalTableConfigurationProperty
-> JournalTableConfigurationProperty -> Bool
Prelude.Eq, Int -> JournalTableConfigurationProperty -> ShowS
[JournalTableConfigurationProperty] -> ShowS
JournalTableConfigurationProperty -> String
(Int -> JournalTableConfigurationProperty -> ShowS)
-> (JournalTableConfigurationProperty -> String)
-> ([JournalTableConfigurationProperty] -> ShowS)
-> Show JournalTableConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> JournalTableConfigurationProperty -> ShowS
showsPrec :: Int -> JournalTableConfigurationProperty -> ShowS
$cshow :: JournalTableConfigurationProperty -> String
show :: JournalTableConfigurationProperty -> String
$cshowList :: [JournalTableConfigurationProperty] -> ShowS
showList :: [JournalTableConfigurationProperty] -> ShowS
Prelude.Show)
mkJournalTableConfigurationProperty ::
RecordExpirationProperty -> JournalTableConfigurationProperty
mkJournalTableConfigurationProperty :: RecordExpirationProperty -> JournalTableConfigurationProperty
mkJournalTableConfigurationProperty RecordExpirationProperty
recordExpiration
= JournalTableConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), recordExpiration :: RecordExpirationProperty
recordExpiration = RecordExpirationProperty
recordExpiration,
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
encryptionConfiguration = Maybe MetadataTableEncryptionConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
tableArn :: Maybe (Value Text)
tableArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tableName :: Maybe (Value Text)
tableName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties JournalTableConfigurationProperty where
toResourceProperties :: JournalTableConfigurationProperty -> ResourceProperties
toResourceProperties JournalTableConfigurationProperty {Maybe (Value Text)
Maybe MetadataTableEncryptionConfigurationProperty
()
RecordExpirationProperty
haddock_workaround_ :: JournalTableConfigurationProperty -> ()
encryptionConfiguration :: JournalTableConfigurationProperty
-> Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: JournalTableConfigurationProperty -> RecordExpirationProperty
tableArn :: JournalTableConfigurationProperty -> Maybe (Value Text)
tableName :: JournalTableConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: RecordExpirationProperty
tableArn :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::S3::Bucket.JournalTableConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"RecordExpiration" Key -> RecordExpirationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= RecordExpirationProperty
recordExpiration]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> MetadataTableEncryptionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EncryptionConfiguration"
(MetadataTableEncryptionConfigurationProperty -> (Key, Value))
-> Maybe MetadataTableEncryptionConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetadataTableEncryptionConfigurationProperty
encryptionConfiguration,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TableArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tableArn,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TableName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tableName]))}
instance JSON.ToJSON JournalTableConfigurationProperty where
toJSON :: JournalTableConfigurationProperty -> Value
toJSON JournalTableConfigurationProperty {Maybe (Value Text)
Maybe MetadataTableEncryptionConfigurationProperty
()
RecordExpirationProperty
haddock_workaround_ :: JournalTableConfigurationProperty -> ()
encryptionConfiguration :: JournalTableConfigurationProperty
-> Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: JournalTableConfigurationProperty -> RecordExpirationProperty
tableArn :: JournalTableConfigurationProperty -> Maybe (Value Text)
tableName :: JournalTableConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: RecordExpirationProperty
tableArn :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"RecordExpiration" Key -> RecordExpirationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= RecordExpirationProperty
recordExpiration]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> MetadataTableEncryptionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EncryptionConfiguration"
(MetadataTableEncryptionConfigurationProperty -> (Key, Value))
-> Maybe MetadataTableEncryptionConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetadataTableEncryptionConfigurationProperty
encryptionConfiguration,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TableArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tableArn,
Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TableName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tableName])))
instance Property "EncryptionConfiguration" JournalTableConfigurationProperty where
type PropertyType "EncryptionConfiguration" JournalTableConfigurationProperty = MetadataTableEncryptionConfigurationProperty
set :: PropertyType
"EncryptionConfiguration" JournalTableConfigurationProperty
-> JournalTableConfigurationProperty
-> JournalTableConfigurationProperty
set PropertyType
"EncryptionConfiguration" JournalTableConfigurationProperty
newValue JournalTableConfigurationProperty {Maybe (Value Text)
Maybe MetadataTableEncryptionConfigurationProperty
()
RecordExpirationProperty
haddock_workaround_ :: JournalTableConfigurationProperty -> ()
encryptionConfiguration :: JournalTableConfigurationProperty
-> Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: JournalTableConfigurationProperty -> RecordExpirationProperty
tableArn :: JournalTableConfigurationProperty -> Maybe (Value Text)
tableName :: JournalTableConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: RecordExpirationProperty
tableArn :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
= JournalTableConfigurationProperty
{encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
encryptionConfiguration = MetadataTableEncryptionConfigurationProperty
-> Maybe MetadataTableEncryptionConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"EncryptionConfiguration" JournalTableConfigurationProperty
MetadataTableEncryptionConfigurationProperty
newValue, Maybe (Value Text)
()
RecordExpirationProperty
haddock_workaround_ :: ()
recordExpiration :: RecordExpirationProperty
tableArn :: Maybe (Value Text)
tableName :: Maybe (Value Text)
haddock_workaround_ :: ()
recordExpiration :: RecordExpirationProperty
tableArn :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
instance Property "RecordExpiration" JournalTableConfigurationProperty where
type PropertyType "RecordExpiration" JournalTableConfigurationProperty = RecordExpirationProperty
set :: PropertyType "RecordExpiration" JournalTableConfigurationProperty
-> JournalTableConfigurationProperty
-> JournalTableConfigurationProperty
set PropertyType "RecordExpiration" JournalTableConfigurationProperty
newValue JournalTableConfigurationProperty {Maybe (Value Text)
Maybe MetadataTableEncryptionConfigurationProperty
()
RecordExpirationProperty
haddock_workaround_ :: JournalTableConfigurationProperty -> ()
encryptionConfiguration :: JournalTableConfigurationProperty
-> Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: JournalTableConfigurationProperty -> RecordExpirationProperty
tableArn :: JournalTableConfigurationProperty -> Maybe (Value Text)
tableName :: JournalTableConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: RecordExpirationProperty
tableArn :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
= JournalTableConfigurationProperty
{recordExpiration :: RecordExpirationProperty
recordExpiration = PropertyType "RecordExpiration" JournalTableConfigurationProperty
RecordExpirationProperty
newValue, Maybe (Value Text)
Maybe MetadataTableEncryptionConfigurationProperty
()
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
tableArn :: Maybe (Value Text)
tableName :: Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
tableArn :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
instance Property "TableArn" JournalTableConfigurationProperty where
type PropertyType "TableArn" JournalTableConfigurationProperty = Value Prelude.Text
set :: PropertyType "TableArn" JournalTableConfigurationProperty
-> JournalTableConfigurationProperty
-> JournalTableConfigurationProperty
set PropertyType "TableArn" JournalTableConfigurationProperty
newValue JournalTableConfigurationProperty {Maybe (Value Text)
Maybe MetadataTableEncryptionConfigurationProperty
()
RecordExpirationProperty
haddock_workaround_ :: JournalTableConfigurationProperty -> ()
encryptionConfiguration :: JournalTableConfigurationProperty
-> Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: JournalTableConfigurationProperty -> RecordExpirationProperty
tableArn :: JournalTableConfigurationProperty -> Maybe (Value Text)
tableName :: JournalTableConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: RecordExpirationProperty
tableArn :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
= JournalTableConfigurationProperty
{tableArn :: Maybe (Value Text)
tableArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TableArn" JournalTableConfigurationProperty
Value Text
newValue, Maybe (Value Text)
Maybe MetadataTableEncryptionConfigurationProperty
()
RecordExpirationProperty
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: RecordExpirationProperty
tableName :: Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: RecordExpirationProperty
tableName :: Maybe (Value Text)
..}
instance Property "TableName" JournalTableConfigurationProperty where
type PropertyType "TableName" JournalTableConfigurationProperty = Value Prelude.Text
set :: PropertyType "TableName" JournalTableConfigurationProperty
-> JournalTableConfigurationProperty
-> JournalTableConfigurationProperty
set PropertyType "TableName" JournalTableConfigurationProperty
newValue JournalTableConfigurationProperty {Maybe (Value Text)
Maybe MetadataTableEncryptionConfigurationProperty
()
RecordExpirationProperty
haddock_workaround_ :: JournalTableConfigurationProperty -> ()
encryptionConfiguration :: JournalTableConfigurationProperty
-> Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: JournalTableConfigurationProperty -> RecordExpirationProperty
tableArn :: JournalTableConfigurationProperty -> Maybe (Value Text)
tableName :: JournalTableConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: RecordExpirationProperty
tableArn :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
= JournalTableConfigurationProperty
{tableName :: Maybe (Value Text)
tableName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TableName" JournalTableConfigurationProperty
Value Text
newValue, Maybe (Value Text)
Maybe MetadataTableEncryptionConfigurationProperty
()
RecordExpirationProperty
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: RecordExpirationProperty
tableArn :: Maybe (Value Text)
haddock_workaround_ :: ()
encryptionConfiguration :: Maybe MetadataTableEncryptionConfigurationProperty
recordExpiration :: RecordExpirationProperty
tableArn :: Maybe (Value Text)
..}